/* ==========================================================================
   Medyatek SaaS — Corporate View Grids & Module Layouts
   File: frontend/css/views.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Dashboard (.v-dash-*) — Clean Corporate Workspace
   -------------------------------------------------------------------------- */
.v-dash-welcome {
  position: relative;
  z-index: 30;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 2px 0 20px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.v-dash-welcome-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.v-dash-welcome-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

.v-dash-welcome-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.v-dash-welcome-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v-dash-spend-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-dash-spend-label {
  font-size: 12px;
  color: var(--text-muted);
}

.v-dash-spend-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

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

.v-dash-section-title {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Primary 2-Column Workspace Grid (1.55fr Selected Account + 1fr Side Stack) */
.v-dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* 4-Column Sub-Metric Grid inside Selected Account Performance Card */
.v-dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.v-dash-kpi-grid > * {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

/* Compact Inline Card Header Switcher (e.g. Selected Account | Comparison) */
.v-dash-mini-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-dash-mini-tabs button,
.v-dash-mini-tab {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-dash-mini-tabs button:hover,
.v-dash-mini-tab:hover {
  color: var(--text-primary);
}

.v-dash-mini-tabs button.is-active,
.v-dash-mini-tabs button[aria-selected="true"],
.v-dash-mini-tab.is-active,
.v-dash-mini-tab[aria-selected="true"] {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-dash-mini-tabs button.is-active,
html[data-theme="light"] .v-dash-mini-tabs button[aria-selected="true"],
html[data-theme="light"] .v-dash-mini-tab.is-active,
html[data-theme="light"] .v-dash-mini-tab[aria-selected="true"] {
  background-color: #FFFFFF;
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

/* Horizontal Corporate Account Ranking List */
.v-dash-rank-list {
  display: flex;
  flex-direction: column;
}

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

.v-dash-rank-row:first-child {
  padding-top: 2px;
}

.v-dash-rank-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.v-dash-rank-row.is-active {
  color: var(--text-primary);
}

.v-dash-rank-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-dash-rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v-dash-rank-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-dash-rank-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-dash-rank-bar {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-muted);
  overflow: hidden;
}

.v-dash-rank-bar > span,
.v-dash-rank-bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background-color: var(--accent-primary);
  transition: width var(--duration-base) var(--ease-out);
}

/* Recent System & Autopilot Feed List */
.v-dash-feed-list {
  display: flex;
  flex-direction: column;
}

.v-dash-feed-list > *,
.v-dash-feed-row,
.v-dash-feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.v-dash-feed-list > *:first-child,
.v-dash-feed-row:first-child,
.v-dash-feed-item:first-child {
  padding-top: 2px;
}

.v-dash-feed-list > *:last-child,
.v-dash-feed-row:last-child,
.v-dash-feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

/* Connected Digital Assets Clean Table */
.v-dash-asset-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.v-dash-asset-table thead th {
  height: 40px;
  padding: 0 16px;
  background-color: var(--bg-table-head);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.v-dash-asset-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration-fast);
}

.v-dash-asset-table tbody tr:last-child {
  border-bottom: 0;
}

.v-dash-asset-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.v-dash-asset-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  color: var(--text-primary);
}

.v-dash-asset-table .is-num {
  text-align: right;
  white-space: nowrap;
}

/* Preserved Dashboard Grids (Clean Corporate Compatibility) */
.v-dash-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.v-dash-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Clean Vertical Quick Actions List */
.v-dash-qa-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-dash-qa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background-color: var(--bg-subtle);
  text-align: left;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.v-dash-qa-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
}

.v-dash-qa-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-dash-qa-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v-dash-qa-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-dash-qa-hint {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-dash-qa-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.v-dash-qa-item:hover .v-dash-qa-arrow {
  color: var(--accent-primary);
  transform: translateX(2px);
}

/* Connected Accounts / Assets Rows */
.v-dash-account-list {
  display: flex;
  flex-direction: column;
}

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

.v-dash-account-row:first-child {
  padding-top: 2px;
}

.v-dash-account-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

/* Legacy Quick Action Grid (Clean Flat Cards) */
.v-dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v-dash-quick-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-dash-quick-card:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-elevated);
}

.v-dash-quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-dash-quick-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-dash-quick-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-dash-quick-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.v-dash-quick-arrow {
  color: var(--text-faint);
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform var(--duration-fast), color var(--duration-fast);
}

.v-dash-quick-card:hover .v-dash-quick-arrow {
  transform: translateX(2px);
  color: var(--accent-primary);
}

.v-dash-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.v-dash-channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-dash-channel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  gap: 14px;
}

.v-dash-mini-stat {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.v-dash-activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v-dash-activity-row {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.v-dash-activity-row:nth-child(odd) {
  border-right: 1px solid var(--border-hairline);
}

/* --------------------------------------------------------------------------
   2. Meta Ads (.v-meta-*) — Corporate Ads Manager Workspace
   -------------------------------------------------------------------------- */
#vMetaAlertsSlot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#vMetaAlertsSlot:empty,
#vMetaAlertsSlot[hidden] {
  display: none;
}

.v-meta-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  max-width: 100%;
}

.v-meta-controls-left,
.v-meta-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-meta-date-select {
  height: 34px;
  width: auto;
  min-width: 148px;
  font-size: 12.5px;
}

.v-meta-sync-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-meta-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-control);
  box-shadow: none;
  max-width: 100%;
}

.mtk-table-wrap > .v-meta-bulk-bar {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid var(--accent-border);
}

.v-meta-bulk-left,
.v-meta-bulk-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 13px;
  color: var(--text-primary);
}

.v-meta-bulk-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-meta-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.v-meta-filter-chip-clear,
.v-meta-filter-chip > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.v-meta-filter-chip-clear:hover,
.v-meta-filter-chip > button:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v-meta-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v-meta-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  max-width: 100%;
}

.v-meta-toolbar-group,
.v-meta-toolbar-left,
.v-meta-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-meta-search-wrap {
  position: relative;
  min-width: 185px;
  flex: 0 1 210px;
  display: flex;
  align-items: center;
}

.v-meta-search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-meta-search-input,
.v-meta-search-wrap .mtk-input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.v-meta-search-input::placeholder {
  color: var(--text-faint);
}

.v-meta-search-input:hover {
  border-color: var(--border-strong);
}

.v-meta-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-meta-status-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.v-meta-status-pill,
.v-meta-status-pills > button {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-meta-status-pill:hover,
.v-meta-status-pills > button:hover {
  color: var(--text-primary);
}

.v-meta-status-pill.is-active,
.v-meta-status-pill[aria-pressed="true"],
.v-meta-status-pills > button.is-active,
.v-meta-status-pills > button[aria-pressed="true"] {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-meta-status-pill.is-active,
html[data-theme="light"] .v-meta-status-pill[aria-pressed="true"],
html[data-theme="light"] .v-meta-status-pills > button.is-active,
html[data-theme="light"] .v-meta-status-pills > button[aria-pressed="true"] {
  background-color: #FFFFFF;
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.v-meta-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.v-meta-table thead th {
  height: 42px;
  padding: 0 10px;
}

.v-meta-table tbody td {
  padding: 10px 10px;
}

.v-meta-table tbody tr.is-selected {
  background-color: var(--accent-soft);
}

.v-meta-table tbody tr.is-selected:hover {
  background-color: var(--accent-soft);
}

.v-meta-table th.is-sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

.v-meta-table th.is-sortable:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.v-meta-table th.is-sortable.is-sorted {
  color: var(--text-primary);
}

.v-meta-sort-ind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  font-size: 10px;
  line-height: 1;
  color: var(--text-faint);
  vertical-align: middle;
  transition: color var(--duration-fast);
}

.v-meta-table th.is-sortable:hover .v-meta-sort-ind {
  color: var(--text-secondary);
}

.v-meta-table th.is-sorted .v-meta-sort-ind,
.v-meta-sort-ind.is-active {
  color: var(--accent-primary);
}

.v-meta-chk-col,
.v-meta-table thead th.v-meta-chk-col,
.v-meta-table tbody td.v-meta-chk-col,
.v-meta-table tfoot td.v-meta-chk-col {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding-left: 12px;
  padding-right: 6px;
  text-align: center;
}

.v-meta-chk {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  vertical-align: middle;
}

.v-meta-entity-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
  max-width: 280px;
}

.v-meta-entity-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.v-meta-entity-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.v-meta-entity-sub {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.v-meta-row-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.v-meta-table tbody tr:hover .v-meta-row-actions,
.v-meta-table tbody tr:focus-within .v-meta-row-actions,
.v-meta-table tbody tr.is-selected .v-meta-row-actions,
.mtk-table tbody tr:hover .v-meta-row-actions,
.mtk-table tbody tr:focus-within .v-meta-row-actions {
  opacity: 1;
}

.v-meta-row-action,
.v-meta-row-actions > button,
.v-meta-row-actions > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.v-meta-row-action:hover,
.v-meta-row-action:focus-visible,
.v-meta-row-actions > button:hover,
.v-meta-row-actions > button:focus-visible,
.v-meta-row-actions > a:hover,
.v-meta-row-actions > a:focus-visible {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.v-meta-row-action-sep {
  color: var(--text-faint);
  font-size: 11px;
  user-select: none;
}

.v-meta-ad-media {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 190px;
  max-width: 280px;
}

.v-meta-ad-media .v-meta-entity-cell,
.v-meta-ad-media .v-meta-entity-meta {
  min-width: 0;
  max-width: none;
  flex: 1;
}

.v-meta-ad-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  flex-shrink: 0;
  display: block;
}

.v-meta-ad-thumb-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-meta-budget-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.v-meta-budget-locked {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: help;
}

.v-meta-budget-locked svg {
  color: var(--text-faint);
  flex-shrink: 0;
}

.v-meta-tfoot td,
.v-meta-table tfoot td {
  padding: 10px 10px;
  background-color: var(--bg-table-head);
  border-top: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  vertical-align: middle;
}

.v-meta-tfoot-label {
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v-meta-activity-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.v-meta-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration-fast);
}

.v-meta-activity-item:last-child {
  border-bottom: 0;
}

.v-meta-activity-item:hover {
  background-color: var(--bg-hover);
}

.v-meta-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background-color: var(--text-faint);
}

.v-meta-activity-dot.is-info {
  background-color: var(--status-info);
}

.v-meta-activity-dot.is-success {
  background-color: var(--status-success);
}

.v-meta-activity-dot.is-warning {
  background-color: var(--status-warning);
}

.v-meta-activity-dot.is-danger {
  background-color: var(--status-danger);
}

.v-meta-activity-dot.is-accent {
  background-color: var(--accent-primary);
}

.v-meta-activity-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-meta-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-meta-activity-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-meta-activity-time {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-meta-activity-detail {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.v-meta-activity-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (min-width: 1025px) {
  .v-meta-toolbar-left,
  .v-meta-toolbar-right {
    flex-wrap: nowrap;
  }
}

@media (hover: none), (pointer: coarse) {
  .v-meta-row-actions {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .v-meta-controls-bar,
  .v-meta-toolbar,
  .v-meta-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-meta-controls-bar {
    padding: 12px 14px;
  }

  .v-meta-toolbar {
    padding: 12px 14px;
  }

  .v-meta-controls-left,
  .v-meta-controls-right,
  .v-meta-toolbar-group,
  .v-meta-toolbar-left,
  .v-meta-toolbar-right,
  .v-meta-bulk-left,
  .v-meta-bulk-info,
  .v-meta-bulk-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .v-meta-date-select {
    width: 100%;
    min-width: 0;
  }

  .v-meta-search-wrap {
    min-width: 0;
    flex: 1 1 100%;
    width: 100%;
  }

  .v-meta-status-pills {
    width: 100%;
    justify-content: space-between;
  }

  .v-meta-status-pill,
  .v-meta-status-pills > button {
    flex: 1;
  }

  .v-meta-entity-cell,
  .v-meta-ad-media {
    min-width: 180px;
    max-width: 260px;
  }

  .v-meta-row-actions {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   3. Meta Campaign Wizard (.v-wiz-*) — Calm Corporate 3-Step Flow
   -------------------------------------------------------------------------- */

/* 3-Step Horizontal Stepper */
.v-wiz-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 5px;
  gap: 6px;
}

.v-wiz-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-step-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-wiz-step-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-wiz-step-btn.is-active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-wiz-step-btn.is-active {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.v-wiz-step-btn.is-done {
  color: var(--text-primary);
}

.v-wiz-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-step-btn.is-active .v-wiz-step-num {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--text-on-accent);
}

.v-wiz-step-btn.is-done .v-wiz-step-num {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-wiz-step-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main 2-Column Layout & Form Stacks */
.v-wiz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-bottom: 84px;
}

.v-wiz-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.v-wiz-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

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

/* Campaign Name Row & Macro Popover */
.v-wiz-name-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.v-wiz-name-row > .mtk-input,
.v-wiz-name-row > input {
  flex: 1;
  min-width: 0;
}

.v-wiz-macro-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.v-wiz-macro-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--z-popover);
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-wiz-macro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-wiz-macro-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-macro-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.v-wiz-macro-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-wiz-macro-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-word;
}

/* Selectable Objective Cards (2-Column Grid) */
.v-wiz-obj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v-wiz-obj-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-wiz-obj-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.v-wiz-obj-card:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-wiz-obj-card.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

html[data-theme="light"] .v-wiz-obj-card {
  background: var(--bg-surface);
}

html[data-theme="light"] .v-wiz-obj-card:hover {
  background: var(--bg-subtle);
}

html[data-theme="light"] .v-wiz-obj-card.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

.v-wiz-obj-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-obj-card.is-selected .v-wiz-obj-icon {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--text-on-accent);
}

.v-wiz-obj-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.v-wiz-obj-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-wiz-obj-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Pill / Segmented Option Groups */
.v-wiz-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.v-wiz-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-pill-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.v-wiz-pill-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-wiz-pill-btn.is-active,
.v-wiz-pill-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-wiz-pill-btn.is-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: var(--radius-xs);
}

/* Budget Tier Advisory Strip */
.v-wiz-budget-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
  flex-wrap: wrap;
}

.v-wiz-budget-note.is-locked {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

.v-wiz-budget-note-title {
  font-weight: 600;
  color: var(--text-primary);
}

.v-wiz-budget-note.is-locked .v-wiz-budget-note-title {
  color: var(--status-warning-text);
}

/* Collapsible Native <details> Section */
.v-wiz-details {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  overflow: hidden;
}

.v-wiz-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-details > summary::-webkit-details-marker {
  display: none;
}

.v-wiz-details > summary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-wiz-details > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--border-focus);
}

.v-wiz-details > summary:not(:has(.v-wiz-details-chevron))::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast);
  flex-shrink: 0;
  margin-right: 2px;
}

.v-wiz-details[open] > summary:not(:has(.v-wiz-details-chevron))::after {
  transform: rotate(-135deg);
}

.v-wiz-details-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-fast);
}

.v-wiz-details[open] > summary .v-wiz-details-chevron {
  transform: rotate(180deg);
}

.v-wiz-details-body {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Audience Targeting Chips, Search Results, Reach & Saved Audiences */
.v-wiz-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v-wiz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
}

.v-wiz-chip-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-chip-rm:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-wiz-search-results {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
}

.v-wiz-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  transition: background-color var(--duration-fast);
}

.v-wiz-search-row:hover {
  background: var(--bg-hover);
}

.v-wiz-search-row:last-child {
  border-bottom: 0;
}

.v-wiz-reach-card {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-wiz-reach-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.v-wiz-aud-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.v-wiz-aud-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-wiz-aud-item:hover {
  border-color: var(--border-strong);
}

.v-wiz-aud-item.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

/* Creative Sources: Tabs, Library Grid, Uploaded Media & Organic List */
.v-wiz-source-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-wiz-source-tabs > button {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-wiz-source-tabs > button:hover {
  color: var(--text-primary);
}

.v-wiz-source-tabs > button.is-active,
.v-wiz-source-tabs > button[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-wiz-source-tabs > button.is-active,
html[data-theme="light"] .v-wiz-source-tabs > button[aria-selected="true"] {
  background: var(--bg-surface);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.v-wiz-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.v-wiz-library-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-wiz-library-tile:hover {
  border-color: var(--border-strong);
}

.v-wiz-library-tile:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-wiz-library-tile.is-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.v-wiz-library-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--bg-input);
}

.v-wiz-library-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
}

.v-wiz-library-tile.is-selected .v-wiz-library-check {
  opacity: 1;
}

.v-wiz-library-caption {
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-wiz-media-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.v-wiz-media-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  flex-shrink: 0;
  display: block;
}

.v-wiz-organic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.v-wiz-organic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-wiz-organic-item:hover {
  border-color: var(--border-strong);
}

.v-wiz-organic-item.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

/* AI Copy Critic & Refined Copy Box */
.v-wiz-critic-card {
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-wiz-score-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.v-wiz-score-pill {
  padding: 11px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-wiz-score-pill.is-good {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
}

.v-wiz-score-pill.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.v-wiz-score-pill.is-bad {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

.v-wiz-score-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.v-wiz-score-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.v-wiz-refined-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sticky Right Aside & Step 1 Calm Summary */
.v-wiz-aside {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-wiz-summary-card {
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-wiz-summary-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.v-wiz-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.v-wiz-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.v-wiz-summary-row:last-child {
  border-bottom: 0;
}

.v-wiz-summary-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.v-wiz-summary-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  word-break: break-word;
}

.v-wiz-summary-note {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Compact Phone Preview (Zero Copilot Overlap inside 900px Viewport) */
.v-wiz-phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.v-wiz-phone-frame {
  width: 100%;
  max-width: 312px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  overflow: hidden;
}

.v-wiz-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-wiz-phone-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.v-wiz-phone-feed-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 148px;
  background: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-wiz-phone-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-wiz-phone-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.v-wiz-phone-cta-bar > div {
  min-width: 0;
}

.v-wiz-phone-cta-bar > .mtk-btn {
  width: 100%;
  justify-content: center;
}

.v-wiz-phone-feed-body {
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-wiz-phone-copy {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-wiz-phone-icebreakers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--border-subtle);
}

.v-wiz-phone-ice-chip {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-wiz-phone-reels {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 410px;
  background: #0B1120;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v-wiz-reels-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-wiz-reels-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.56) 0%, rgba(11, 17, 32, 0.08) 38%, rgba(11, 17, 32, 0.26) 62%, rgba(11, 17, 32, 0.88) 100%);
  pointer-events: none;
}

.v-wiz-reels-top {
  position: relative;
  z-index: 2;
  padding: 11px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.v-wiz-reels-bottom {
  position: relative;
  z-index: 2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #FFFFFF;
}

.v-wiz-ix-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 10.5px;
  font-weight: 600;
}

.v-wiz-phone-reels .v-wiz-ix-badge {
  background: rgba(11, 17, 32, 0.78);
  border-color: rgba(20, 184, 166, 0.45);
  color: #CCFBF1;
}

/* Step 3 Review Grid, Pre-Launch Checks, Drafts & Action Bar */
.v-wiz-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v-wiz-review-cell {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.v-wiz-review-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.v-wiz-review-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.v-wiz-review-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.v-wiz-gate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.v-wiz-gate-summary.is-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
}

.v-wiz-gate-summary.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.v-wiz-gate-summary.is-block {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

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

.v-wiz-gate-item {
  padding: 13px 15px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.v-wiz-gate-item.is-pass {
  border-left: 3px solid var(--status-success);
}

.v-wiz-gate-item.is-fix {
  border-left: 3px solid var(--accent-primary);
}

.v-wiz-gate-item.is-warn {
  border-left: 3px solid var(--status-warning);
}

.v-wiz-gate-item.is-block {
  border-left: 3px solid var(--status-danger);
}

.v-wiz-draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  flex-wrap: wrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-wiz-draft-row:hover {
  border-color: var(--border-strong);
}

.v-wiz-draft-row.is-active {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-wiz-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   4. Strategy Plan & Sector Guides (.v-strat-*) — Calm Corporate System
   -------------------------------------------------------------------------- */
.v-strat-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 84px;
  min-width: 0;
}

/* Business Mode Selector (Matching Faz 3 Corporate Card System) */
.v-strat-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v-strat-mode-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-strat-mode-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.v-strat-mode-card:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-strat-mode-card.is-selected,
.v-strat-mode-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

html[data-theme="light"] .v-strat-mode-card {
  background: var(--bg-surface);
}

html[data-theme="light"] .v-strat-mode-card:hover {
  background: var(--bg-subtle);
}

html[data-theme="light"] .v-strat-mode-card.is-selected,
html[data-theme="light"] .v-strat-mode-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-strat-mode-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-strat-mode-card.is-selected .v-strat-mode-icon,
.v-strat-mode-card[aria-pressed="true"] .v-strat-mode-icon {
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--text-on-accent);
}

.v-strat-mode-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.v-strat-mode-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-strat-mode-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Generator Form Grid, Budget Presets & Budget Explanation Strip */
.v-strat-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: end;
}

.v-strat-preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.v-strat-preset-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-strat-preset-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.v-strat-preset-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-strat-preset-chip.is-active,
.v-strat-preset-chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-strat-budget-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
  flex-wrap: wrap;
}

.v-strat-budget-note.is-locked {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

.v-strat-budget-note-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.v-strat-budget-note-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-strat-budget-note.is-locked .v-strat-budget-note-title {
  color: var(--status-warning-text);
}

.v-strat-budget-note-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Active 15-Day Strategy Control Header & Progress Bar */
.v-strat-active-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-strat-active-bar.is-paused {
  border-color: var(--status-warning-border);
}

.v-strat-active-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.v-strat-active-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.v-strat-active-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v-strat-active-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-strat-active-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

.v-strat-active-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.v-strat-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-strat-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-strat-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.v-strat-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.v-strat-active-bar.is-paused .v-strat-progress-fill {
  background: var(--status-warning);
}

/* 3-Stage Strategy Plan Cards & Clean Action Checklist */
.v-strat-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v-strat-stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-strat-stage-card.is-active {
  border-color: var(--accent-primary);
  box-shadow: none;
}

.v-strat-stage-card.is-done {
  border-color: var(--status-success-border);
  box-shadow: none;
}

.v-strat-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-strat-stage-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v-strat-action-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.v-strat-action-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.v-strat-action-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.v-strat-action-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-strat-stage-card.is-done .v-strat-action-icon {
  color: var(--status-success);
}

.v-strat-action-text {
  min-width: 0;
  flex: 1;
  color: var(--text-secondary);
  word-break: break-word;
}

.v-strat-action-day {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.v-strat-countdown {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.v-strat-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.v-strat-log-row {
  padding: 11px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.v-strat-log-row > *:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-strat-log-row > *:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.v-strat-log-row:last-child {
  border-bottom: 0;
}

/* Collapsible <details> Accordion for Optional Audience & Creative Pairing */
.v-strat-details {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  overflow: hidden;
}

.v-strat-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-strat-details > summary::-webkit-details-marker {
  display: none;
}

.v-strat-details > summary:hover {
  background: var(--bg-hover);
}

.v-strat-details > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--border-focus);
}

.v-strat-details > summary:not(:has(.v-strat-details-chevron))::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast);
  flex-shrink: 0;
  margin-right: 2px;
}

.v-strat-details[open] > summary:not(:has(.v-strat-details-chevron))::after {
  transform: rotate(-135deg);
}

.v-strat-details-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-fast);
}

.v-strat-details[open] > summary .v-strat-details-chevron {
  transform: rotate(180deg);
}

.v-strat-details-summary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.v-strat-details-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.v-strat-details-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-strat-table-scroll,
.v-strat-matrix-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.v-strat-history-row.is-selected {
  background: var(--bg-subtle);
}

/* Sector Guides Reader, Sidebar List, Offer Box & Hook Rows */
.v-strat-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.v-strat-reader {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.v-strat-reader-aside {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-strat-sector-list {
  max-height: 540px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-strat-sector-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-strat-sector-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-strat-sector-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-strat-sector-btn.is-active,
.v-strat-sector-btn[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text-primary);
  font-weight: 600;
}

.v-strat-offer-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-strat-offer-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.v-strat-hook-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.v-strat-hook-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.v-strat-hook-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.v-strat-hook-text {
  min-width: 0;
  flex: 1;
  color: var(--text-secondary);
  word-break: break-word;
}

.v-strat-hook-num {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   5. Optimization AI (.v-opt-*)
   -------------------------------------------------------------------------- */
.v-opt-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 84px;
}

.v-opt-master-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v-opt-master-bar.is-enabled {
  border-color: var(--accent-border);
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

.v-opt-master-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 320px;
}

.v-opt-master-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-opt-master-bar.is-enabled .v-opt-master-icon {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-opt-master-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.v-opt-master-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-opt-master-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-opt-master-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 68ch;
}

.v-opt-master-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.v-opt-master-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-opt-master-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.v-opt-master-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-opt-master-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-opt-master-btn.is-active:hover {
  border-color: var(--accent-primary);
}

.v-opt-master-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Period & Summary Header */
.v-opt-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-opt-summary-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.v-opt-summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v-opt-period-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.v-opt-period-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-opt-period-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-opt-period-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Global Safety Shields Collapsible Bar */
.v-opt-guards {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.v-opt-guards-trigger {
  width: 100%;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--duration-fast);
}

.v-opt-guards-trigger:hover {
  background: var(--bg-hover);
}

.v-opt-guards-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--border-focus);
}

.v-opt-guards-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.v-opt-guards-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-opt-guards-hint {
  font-size: 12.5px;
  color: var(--text-muted);
}

.v-opt-guards-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.v-opt-guards-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.v-opt-guards-body[hidden] {
  display: none;
}

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

.v-opt-guard-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.v-opt-guard-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-opt-guard-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v-opt-guard-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-opt-guard-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.48;
}

/* Rules Filter Toolbar */
.v-opt-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
}

.v-opt-basis-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-opt-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  max-width: 300px;
  min-width: 180px;
}

.v-opt-search-input {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 160px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.v-opt-search-wrap > .v-opt-search-input {
  width: 100%;
  max-width: none;
}

.v-opt-search-input::placeholder {
  color: var(--text-faint);
}

.v-opt-search-input:hover {
  border-color: var(--border-strong);
}

.v-opt-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-opt-filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.v-opt-filter-right .v-opt-search-wrap {
  flex: 0 1 250px;
  width: 240px;
  min-width: 170px;
}

/* Accordion Header & Rule Cards */
.v-opt-rules-wrap.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.v-opt-acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.v-opt-acc-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v-opt-acc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-opt-acc-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.v-opt-rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  text-align: left;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), opacity var(--duration-fast);
}

.v-opt-rule-card:hover {
  border-color: var(--border-strong);
}

.v-opt-rule-card.is-disabled {
  opacity: 0.7;
  background: var(--bg-subtle);
}

.v-opt-rule-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.v-opt-rule-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.v-opt-rule-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-opt-rule-icon.is-inc {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-opt-rule-icon.is-dec {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-opt-rule-icon.is-close {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-opt-rule-icon.is-open {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-opt-rule-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.v-opt-rule-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
}

.v-opt-rule-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
}

.v-opt-rule-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  word-break: break-word;
}

.v-opt-rule-details {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-opt-rule-details[hidden] {
  display: none;
}

.v-opt-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.45;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-opt-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.v-opt-detail-label,
.v-opt-detail-row > span:first-child {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.v-opt-detail-val,
.v-opt-detail-row > span:last-child,
.v-opt-detail-row > strong {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.v-opt-rule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.v-opt-rule-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* History Tab */
.v-opt-hist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-opt-hist-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.v-opt-hist-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.v-opt-hist-select {
  width: auto;
  min-width: 136px;
  height: 34px;
  font-size: 13px;
}

.v-opt-hist-controls .v-opt-search-wrap {
  flex: 0 1 210px;
  width: 200px;
  min-width: 150px;
}

.v-opt-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.v-opt-table-scroll .mtk-table th:first-child,
.v-opt-table-scroll .mtk-table td:first-child {
  white-space: nowrap;
}

.v-opt-hist-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-footer-bar);
  font-size: 12.5px;
  color: var(--text-muted);
}

.v-opt-hist-pager-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v-opt-hist-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.v-opt-hist-status-pill.is-applied {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-opt-hist-status-pill.is-dry-run {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-opt-hist-status-pill.is-blocked {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-opt-reason-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 340px;
  min-width: 180px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  word-break: break-word;
}

/* Rule Settings Sheet, Campaign Picker, Thresholds & Modals */
.v-opt-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.v-opt-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.v-opt-sheet-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.v-opt-sheet-section > .v-opt-search-input {
  flex: none;
  width: 100%;
  max-width: none;
  height: 38px;
}

.v-opt-sheet-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-opt-campaign-picker {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}

.v-opt-campaign-picker::-webkit-scrollbar {
  width: 6px;
}

.v-opt-campaign-picker::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: var(--radius-pill);
}

.v-opt-campaign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--duration-fast);
}

.v-opt-campaign-row:hover {
  background: var(--bg-hover);
}

.v-opt-campaign-row.is-all {
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  font-weight: 600;
  margin-bottom: 2px;
  padding-bottom: 9px;
}

.v-opt-campaign-row input[type="checkbox"] {
  flex-shrink: 0;
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.v-opt-campaign-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.v-opt-sim-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-opt-sim-focus-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--accent-border);
  box-shadow: inset 3px 0 0 var(--accent-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Double-Confirmed Rule Execution Panel (.v-opt-exec-*) */
.v-opt-exec-col {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.v-opt-exec-trigger.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.v-opt-exec-readonly-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.v-opt-exec-host[hidden] {
  display: none;
}

.v-opt-exec-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-xs);
}

.v-opt-exec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-opt-exec-head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 240px;
}

.v-opt-exec-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v-opt-exec-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-opt-exec-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.v-opt-exec-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.v-opt-exec-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-opt-exec-meta-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.v-opt-exec-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-opt-exec-meta-sub {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-opt-exec-shield {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--status-info-bg);
  border: 1px solid var(--status-info-border);
}

.v-opt-exec-shield-icon {
  flex-shrink: 0;
  color: var(--status-info-text);
  margin-top: 1px;
}

.v-opt-exec-shield-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v-opt-exec-shield-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-opt-exec-shield-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.v-opt-exec-budget-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.v-opt-exec-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v-opt-exec-budget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-opt-exec-budget-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.v-opt-exec-inline-err {
  font-size: 12px;
  font-weight: 500;
  color: var(--status-danger-text);
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
}

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

.v-opt-exec-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.v-opt-exec-mode-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-opt-exec-mode-card.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-opt-exec-mode-card[data-exec-mode-card="live"].is-selected {
  border-color: var(--status-danger-border);
  background: var(--status-danger-bg);
}

.v-opt-exec-mode-card input[type="radio"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.v-opt-exec-mode-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v-opt-exec-mode-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-opt-exec-mode-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.v-opt-exec-guard-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
}

.v-opt-exec-guard-box[hidden] {
  display: none;
}

.v-opt-exec-guard-box.is-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.v-opt-exec-guard-box.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

.v-opt-exec-guard-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-opt-exec-guard-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.v-opt-exec-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-primary);
  cursor: pointer;
}

.v-opt-exec-check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.v-opt-exec-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.v-opt-exec-submit-live:not(:disabled) {
  background: var(--status-danger);
  border-color: var(--status-danger);
  color: var(--text-on-accent);
}

.v-opt-exec-submit-live:not(:disabled):hover {
  filter: brightness(1.06);
}

.v-opt-exec-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.v-opt-exec-result.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
}

.v-opt-exec-result.is-success .v-opt-exec-result-icon {
  color: var(--status-success-text);
}

.v-opt-exec-result.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
}

.v-opt-exec-result.is-info .v-opt-exec-result-icon {
  color: var(--status-info-text);
}

.v-opt-exec-result.is-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.v-opt-exec-result.is-warning .v-opt-exec-result-icon {
  color: var(--status-warning-text);
}

.v-opt-exec-result.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

.v-opt-exec-result.is-danger .v-opt-exec-result-icon {
  color: var(--status-danger-text);
}

.v-opt-exec-result-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.v-opt-exec-result-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v-opt-exec-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-opt-exec-result-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.v-opt-exec-result-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.v-opt-ap-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.v-opt-ap-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.45;
}

.v-opt-ap-checks input[type="checkbox"] {
  flex-shrink: 0;
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.v-opt-digest-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-opt-digest-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
}

.v-opt-digest-pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 210px;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   6. Audiences (.v-aud-*) — Flat Corporate Audience Management Suite
   -------------------------------------------------------------------------- */
.v-aud-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 84px;
  min-width: 0;
}

/* Header & Inline Actions */
.v-aud-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v-aud-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 280px;
}

.v-aud-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Calm 4-Cell Flat Summary Strip */
.v-aud-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.v-aud-summary-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-aud-summary-cell:hover {
  border-color: var(--border-strong);
}

.v-aud-summary-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.3;
}

.v-aud-summary-val {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-aud-summary-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.38;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Calm Segmented Tab Bar */
.v-aud-tabs {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

html[data-theme="light"] .v-aud-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

.v-aud-tabs::-webkit-scrollbar {
  display: none;
}

.v-aud-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-aud-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-aud-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-aud-tab.is-active,
.v-aud-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-aud-tab.is-active,
html[data-theme="light"] .v-aud-tab[aria-selected="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.v-aud-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-aud-tab.is-active .v-aud-tab-count,
.v-aud-tab[aria-selected="true"] .v-aud-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* Sections, Surfaces, Empty & Error States */
.v-aud-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-aud-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-aud-section-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: none;
}

.v-aud-section-head > .v-aud-section-copy {
  flex: 1 1 260px;
}

.v-aud-section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-aud-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.48;
}

.v-aud-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-aud-empty {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.v-aud-error-bar {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  color: var(--status-danger-text);
  font-size: 13px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-aud-info-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-aud-live-warning-host:empty {
  display: none;
}

/* Filter Row & Search Box */
.v-aud-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.v-aud-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-aud-filter-pill {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-aud-filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-aud-filter-pill.is-active,
.v-aud-filter-pill[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-aud-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
  flex: 0 1 320px;
}

.v-aud-search-box .mtk-input,
input.v-aud-search-box {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.v-aud-search-box .mtk-input:focus,
input.v-aud-search-box:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* My Audiences Corporate Table */
.v-aud-list-wrap {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.v-aud-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.v-aud-table thead th {
  height: 40px;
  padding: 0 16px;
  background: var(--bg-table-head);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.v-aud-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration-fast);
}

.v-aud-table tbody tr:last-child {
  border-bottom: 0;
}

.v-aud-table tbody tr:hover {
  background: var(--bg-hover);
}

.v-aud-table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  color: var(--text-primary);
}

.v-aud-table thead th:last-child,
.v-aud-table tbody td:last-child {
  text-align: right;
  white-space: nowrap;
}

.v-aud-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
}

.v-aud-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.v-aud-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.v-aud-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.v-aud-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.v-aud-status-pill.is-live {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-aud-status-pill.is-saved {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

/* Ready Packs & Retargeting Card Grid */
.v-aud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v-aud-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  text-align: left;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-aud-card:hover {
  border-color: var(--border-strong);
}

.v-aud-card.is-interactive {
  cursor: pointer;
}

.v-aud-card.is-created {
  border-color: var(--status-success-border);
  box-shadow: inset 3px 0 0 var(--status-success);
}

.v-aud-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-aud-card-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 0;
}

.v-aud-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.38;
  word-break: break-word;
}

.v-aud-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.v-aud-card-tags,
.v-aud-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-aud-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 100%;
}

.v-aud-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.v-aud-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Featured Cross-Channel 180d Banner */
.v-aud-featured-row {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: inset 3px 0 0 var(--accent-primary);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.v-aud-featured-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 320px;
}

.v-aud-featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 2-Column Studio Layouts (Detailed Targeting & Lookalike) */
.v-aud-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.v-aud-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-aud-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-aud-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-aud-panel-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 3px;
}

.v-aud-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-aud-field-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.v-aud-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.v-aud-field > .mtk-input,
.v-aud-field > .mtk-select,
.v-aud-field > input[type="text"],
.v-aud-field > input[type="number"],
.v-aud-field > input[type="search"],
.v-aud-field > select {
  width: 100%;
  height: 38px;
  flex: none;
}

.v-aud-field > .mtk-textarea,
.v-aud-field > textarea {
  width: 100%;
  min-height: 76px;
  flex: none;
}

.v-aud-field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-aud-field-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Segmented Controls (Kind / Ratio / Source) */
.v-aud-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  max-width: 100%;
}

.v-aud-seg-group.is-full {
  display: flex;
  width: 100%;
}

.v-aud-seg-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-aud-seg-group.is-full .v-aud-seg-btn {
  flex: 1 1 0;
}

.v-aud-seg-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-aud-seg-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-aud-seg-btn.is-active,
.v-aud-seg-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-aud-seg-btn.is-active,
html[data-theme="light"] .v-aud-seg-btn[aria-pressed="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

/* Targeting Search & Results */
.v-aud-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-aud-search-bar > .mtk-input,
.v-aud-search-bar > input {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
}

.v-aud-search-bar > .mtk-btn {
  flex-shrink: 0;
  height: 38px;
}

.v-aud-search-results {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.v-aud-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration-fast);
}

.v-aud-result-item:last-child {
  border-bottom: 0;
}

.v-aud-result-item:hover {
  background: var(--bg-hover);
}

.v-aud-result-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v-aud-result-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-aud-result-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-aud-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-aud-removable-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 8px 2px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  max-width: 100%;
}

.v-aud-chip-remove {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-aud-chip-remove:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Reach Meter & Key-Value Summary */
.v-aud-reach-box,
.v-aud-reach-meter {
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-aud-reach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-aud-reach-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.v-aud-reach-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.v-aud-reach-badge.is-optimal {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-aud-reach-badge.is-narrow {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-aud-reach-badge.is-broad {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-aud-reach-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.48;
}

.v-aud-kv-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.v-aud-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.v-aud-kv-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.v-aud-kv-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.v-aud-kv-val {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  min-width: 0;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

/* Sheet Form & Confirmation Modal Helpers */
.v-aud-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-aud-sheet-body .mtk-input,
.v-aud-sheet-body .mtk-select {
  width: 100%;
  height: 38px;
  flex: none;
}

.v-aud-sheet-body .mtk-textarea {
  width: 100%;
  min-height: 76px;
  flex: none;
}

.v-aud-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-aud-modal-summary {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-aud-modal-live-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
}

.v-aud-modal-live-opt input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.v-aud-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Design Studio (.v-des-*) — Flat Corporate Creative Workspace
   -------------------------------------------------------------------------- */
.v-des-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 84px;
  min-width: 0;
}

/* Header & Inline Actions */
.v-des-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v-des-header-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 280px;
}

.v-des-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Credit Balance Pill */
.v-des-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 6px 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  flex-shrink: 0;
}

.v-des-credit-pill.is-low {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.v-des-credit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.v-des-credit-pill.is-low .v-des-credit-icon {
  color: var(--status-warning-text);
}

.v-des-credit-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-des-credit-pill.is-low .v-des-credit-val {
  color: var(--status-warning-text);
}

.v-des-credit-lbl {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.v-des-credit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-des-credit-link:hover {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--text-on-accent);
}

.v-des-credit-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
}

/* Calm Top Mode Bar & Segmented Tabs */
.v-des-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-des-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

html[data-theme="light"] .v-des-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

.v-des-tabs::-webkit-scrollbar {
  display: none;
}

.v-des-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-des-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-des-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-tab.is-active,
.v-des-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-des-tab.is-active,
html[data-theme="light"] .v-des-tab[aria-selected="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.v-des-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-des-tab.is-active .v-des-tab-count,
.v-des-tab[aria-selected="true"] .v-des-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* Info & Error Feedback Bars */
.v-des-info-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-des-error-bar {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  color: var(--status-danger-text);
  font-size: 13px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 2-Column Studio Split (Balanced Left Form + Sticky Right Preview) */
.v-des-split {
  display: grid;
  grid-template-columns: minmax(380px, 440px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.v-des-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-des-form-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-des-form-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.v-des-form-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.48;
  margin: 0;
}

.v-des-canvas-panel {
  position: sticky;
  top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Media Attachment Triggers & Thumbnail Strip */
.v-des-attach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-des-attach-btn {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-attach-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-des-attach-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-attach-btn.has-media {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
}

.v-des-attach-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-attach-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.v-des-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-des-attach-thumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  max-width: 100%;
  min-width: 0;
}

.v-des-attach-thumb-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  flex-shrink: 0;
  display: block;
}

.v-des-attach-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 145px;
}

.v-des-attach-role {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1.2;
}

.v-des-attach-name {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-attach-rm {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-attach-rm:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

/* Collapsible Ready Templates & Prompts Accordion */
.v-des-accordion {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  overflow: hidden;
  min-width: 0;
}

.v-des-accordion-trigger {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: background-color var(--duration-fast);
}

.v-des-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.v-des-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-des-accordion-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.v-des-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-des-accordion-trigger:hover {
  background: var(--bg-hover);
}

.v-des-accordion-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--border-focus);
}

.v-des-accordion-body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-des-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-des-tpl-item {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-tpl-item:hover {
  border-color: var(--border-strong);
}

.v-des-tpl-item.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.v-des-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-des-tpl-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-des-tpl-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.48;
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.v-des-tpl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.v-des-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v-des-prompt-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  transition: border-color var(--duration-fast), color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-prompt-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

/* Form Controls, Counters, Aspect Ratios & Collapsible Advanced Details */
.v-des-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-des-field > .mtk-input,
.v-des-field > .mtk-select,
.v-des-field > input[type="text"],
.v-des-field > input[type="url"],
.v-des-field > input[type="number"],
.v-des-field > select {
  width: 100%;
  height: 38px;
  flex: none;
}

.v-des-form-panel .mtk-select {
  padding-right: 32px;
}

.v-des-field > .mtk-textarea,
.v-des-field > textarea {
  width: 100%;
  min-height: 96px;
  flex: none;
}

.v-des-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-des-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
}

.v-des-label-req {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.v-des-counter {
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.v-des-counter.is-over {
  color: var(--status-danger-text);
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.v-des-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.v-des-prompt-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--bg-input);
  overflow: hidden;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.v-des-prompt-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-des-prompt-wrap.is-error,
.v-des-prompt-wrap:has(> .mtk-textarea.is-error) {
  border-color: var(--status-danger);
}

.v-des-prompt-wrap.is-error:focus-within,
.v-des-prompt-wrap:has(> .mtk-textarea.is-error):focus-within {
  border-color: var(--status-danger);
  box-shadow: 0 0 0 3px var(--status-danger-bg);
}

.v-des-prompt-wrap > .mtk-textarea,
.v-des-prompt-wrap > textarea {
  width: 100%;
  min-height: 104px;
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  resize: vertical;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
  flex: none;
}

.v-des-prompt-wrap > .mtk-textarea:focus,
.v-des-prompt-wrap > textarea:focus {
  outline: none;
  box-shadow: none;
}

.v-des-prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

/* Aspect Ratio Selector (Calm Subtle Active Accent) */
.v-des-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-des-ratio-btn {
  padding: 9px 6px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-ratio-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-des-ratio-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-ratio-btn.is-active,
.v-des-ratio-btn[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-des-ratio-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.v-des-ratio-btn.is-active .v-des-ratio-sub,
.v-des-ratio-btn[aria-pressed="true"] .v-des-ratio-sub {
  color: var(--accent-primary);
}

/* Collapsible Advanced Settings (<details>) */
.v-des-details {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  overflow: hidden;
  min-width: 0;
}

.v-des-details > summary {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-details > summary::-webkit-details-marker {
  display: none;
}

.v-des-details > summary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-des-details[open] > summary {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.v-des-details-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-des-field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-des-field-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Calm Segmented Control */
.v-des-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  max-width: 100%;
}

.v-des-seg-group.is-full {
  display: flex;
  width: 100%;
}

.v-des-seg-btn {
  min-height: 32px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-des-seg-group.is-full .v-des-seg-btn {
  flex: 1 1 0;
}

.v-des-seg-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-des-seg-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-seg-btn.is-active,
.v-des-seg-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-des-seg-btn.is-active,
html[data-theme="light"] .v-des-seg-btn[aria-pressed="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.v-des-seg-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Submit Footer, Credit Cost Note & Inline Alert */
.v-des-submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.v-des-credit-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.v-des-cost-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  white-space: nowrap;
}

.mtk-btn-outline .v-des-cost-tag,
.mtk-btn-secondary .v-des-cost-tag,
.mtk-btn-ghost .v-des-cost-tag {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}

.v-des-alert-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.v-des-alert-inline.is-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

/* Right Preview Canvas, Stage, Recent Strip & Revision Bar */
.v-des-canvas-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
  max-width: 100%;
}

.v-des-canvas-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  flex: none;
}

.v-des-canvas-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-canvas-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-des-canvas-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}

.v-des-canvas-actions > .mtk-btn,
.v-des-canvas-actions > a.mtk-btn {
  max-width: 100%;
}

.v-des-stage {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  min-height: 360px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.v-des-stage-placeholder {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.v-des-stage-placeholder.ratio-1-1 {
  max-width: 340px;
  aspect-ratio: 1 / 1;
}

.v-des-stage-placeholder.ratio-4-5 {
  max-width: 300px;
  aspect-ratio: 4 / 5;
}

.v-des-stage-placeholder.ratio-9-16 {
  max-width: 248px;
  aspect-ratio: 9 / 16;
}

.v-des-stage-placeholder.ratio-16-9 {
  max-width: 440px;
  aspect-ratio: 16 / 9;
}

.v-des-stage-placeholder.ratio-4-3 {
  max-width: 390px;
  aspect-ratio: 4 / 3;
}

.v-des-stage-placeholder-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-des-stage-placeholder-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.v-des-stage-placeholder-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 300px;
}

.v-des-stage-img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  object-fit: contain;
  display: block;
}

.v-des-img-fallback {
  width: 100%;
  min-height: 220px;
  padding: 20px 16px;
  border-radius: var(--radius-control);
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.v-des-img-fallback.is-thumb {
  min-height: 0;
  height: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
}

.v-des-rev-card .v-des-img-fallback.is-thumb {
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  padding: 14px 10px;
  font-size: 12px;
}

.v-des-img-fallback.is-thumb.is-compact {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.v-des-stage-video {
  max-width: 100%;
  max-height: 520px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: #000000;
  display: block;
}

.v-des-stage-video.is-portrait {
  width: 290px;
  aspect-ratio: 9 / 16;
}

.v-des-stage-loading {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* Recent Images Compact Strip */
.v-des-recent-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-des-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.v-des-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-des-recent-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: border-color var(--duration-fast);
}

.v-des-recent-thumb:hover {
  border-color: var(--border-strong);
}

.v-des-recent-thumb.is-active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Revision Bar & Revision Stack Modal Grid */
.v-des-rev-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-des-rev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-des-rev-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.v-des-rev-row > .mtk-input,
.v-des-rev-row > input {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
}

.v-des-rev-row > .mtk-btn {
  flex-shrink: 0;
  height: 38px;
}

.v-des-rev-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-des-rev-chip {
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-rev-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.v-des-rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.v-des-rev-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-des-rev-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-control);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: block;
}

/* Shared Library, Video/UGC, Calendar & Upload Modal Classes */
.v-des-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-des-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-des-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-des-gallery.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v-des-gallery.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v-des-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-des-lib-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-des-lib-card:hover {
  border-color: var(--border-strong);
}

.v-des-lib-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-control);
  overflow: hidden;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-des-lib-thumb img,
.v-des-lib-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-des-lib-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.v-des-lib-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-lib-prompt {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-des-lib-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.v-des-phone-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.v-des-script-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-des-duration-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-des-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-des-modal-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-des-modal-list {
  display: flex;
  flex-direction: column;
}

.v-des-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.v-des-modal-item:last-child {
  border-bottom: 0;
}

.v-des-upload-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-des-dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-dropzone:hover {
  border-color: var(--accent-border);
  background: var(--bg-hover);
}

.v-des-dropzone.is-dragover {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-des-url-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.v-des-url-row > .mtk-input,
.v-des-url-row > input {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
}

.v-des-url-row > .mtk-btn {
  flex-shrink: 0;
  height: 38px;
}

/* Video Studio Flat Corporate Controls, Storyboard & Recent Videos (V3 Faz 8) */
.v-des-attach-single {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.v-des-attach-single > * {
  flex: none;
}

.v-des-dur-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-des-dur-btn {
  padding: 9px 8px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-dur-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-des-dur-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-dur-btn.is-active,
.v-des-dur-btn[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-des-dur-main {
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.v-des-dur-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.v-des-dur-btn.is-active .v-des-dur-sub,
.v-des-dur-btn[aria-pressed="true"] .v-des-dur-sub {
  color: var(--accent-primary);
}

.v-des-stage-video.ratio-9-16 {
  width: 290px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
}

.v-des-stage-video.ratio-4-5 {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
}

.v-des-stage-video.ratio-1-1 {
  width: 380px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.v-des-stage-video.ratio-16-9 {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
}

.v-des-stage-video.ratio-4-3 {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
}

.v-des-storyboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-des-storyboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

.v-des-storyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-des-beat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

html[data-theme="light"] .v-des-beat-card {
  border-color: var(--border-default);
}

.v-des-beat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.v-des-beat-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-des-beat-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-beat-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-des-recent-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: border-color var(--duration-fast);
}

.v-des-recent-video-thumb:hover {
  border-color: var(--border-strong);
}

.v-des-recent-video-thumb:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-recent-video-thumb.is-active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-recent-video-thumb video,
.v-des-recent-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-des-recent-video-play,
.v-des-recent-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.v-des-recent-video-thumb:hover .v-des-recent-video-play,
.v-des-recent-video-thumb:hover .v-des-recent-play {
  background: rgba(11, 14, 20, 0.88);
  border-color: rgba(255, 255, 255, 0.32);
}

.v-des-recent-video-thumb:not(:has(.v-des-recent-video-play, .v-des-recent-play, .v-des-img-fallback, svg))::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 1;
}

.v-des-recent-video-thumb:not(:has(.v-des-recent-video-play, .v-des-recent-play, .v-des-img-fallback, svg))::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-36%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #FFFFFF;
  pointer-events: none;
  z-index: 2;
}

.v-des-recent-dur-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* UGC Studio Flat Corporate Controls, Character Progress & Picker Modals (V3 Faz 9) */
.v-des-ugc-dur-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-des-ugc-dur-grid .v-des-dur-btn {
  padding: 10px 10px;
  min-height: 54px;
  height: 100%;
  gap: 3px;
}

.v-des-ugc-dur-grid .v-des-dur-sub {
  font-size: 11px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.v-des-char-progress {
  display: block;
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-subtle);
  margin: 0;
  flex: none;
}

.v-des-char-progress::-webkit-progress-bar {
  background: var(--bg-subtle);
  border-radius: 999px;
}

.v-des-char-progress::-webkit-progress-value {
  background: var(--accent-primary);
  border-radius: 999px;
  transition: width var(--duration-fast) var(--ease-out), background-color var(--duration-fast);
}

.v-des-char-progress::-moz-progress-bar {
  background: var(--accent-primary);
  border-radius: 999px;
}

.v-des-char-progress.is-over::-webkit-progress-value {
  background: var(--status-danger);
}

.v-des-char-progress.is-over::-moz-progress-bar {
  background: var(--status-danger);
}

.v-des-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.v-des-picker-card {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-picker-card:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-des-picker-card:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-picker-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.v-des-picker-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}

.v-des-picker-avatar svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.v-des-picker-avatar.tone-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.26);
}

html[data-theme="light"] .v-des-picker-avatar.tone-indigo {
  background: #EEF2FF;
  color: #4338CA;
  border-color: #C7D2FE;
}

.v-des-picker-avatar.tone-rose {
  background: var(--ch-rose-bg);
  color: var(--ch-rose);
  border-color: var(--ch-rose-border);
}

.v-des-picker-avatar.tone-sky {
  background: var(--ch-meta-bg);
  color: var(--ch-meta);
  border-color: var(--ch-meta-border);
}

.v-des-picker-avatar.tone-emerald {
  background: var(--ch-seo-bg);
  color: var(--ch-seo);
  border-color: var(--ch-seo-border);
}

.v-des-picker-avatar.tone-amber {
  background: var(--ch-maps-bg);
  color: var(--ch-maps);
  border-color: var(--ch-maps-border);
}

.v-des-picker-avatar.tone-slate {
  background: var(--ch-ai-bg);
  color: var(--ch-ai);
  border-color: var(--ch-ai-border);
}

.v-des-picker-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.v-des-picker-kicker {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-picker-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-picker-meta {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-picker-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Avatar & Voice Picker Modals */
.v-des-picker-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-des-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-des-modal-toolbar > .mtk-input,
.v-des-modal-toolbar > input {
  flex: 1 1 180px;
  min-width: 0;
  height: 36px;
}

.v-des-filter-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.v-des-filter-chip {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-des-filter-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-filter-chip.is-active,
.v-des-filter-chip[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-des-actor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px;
  min-width: 0;
}

.v-des-actor-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-actor-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-des-actor-card:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-actor-card.is-selected,
.v-des-actor-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-des-actor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v-des-actor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.v-des-actor-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-actor-role {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-actor-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-des-actor-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: auto;
}

.v-des-voice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px;
  min-width: 0;
}

.v-des-voice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-primary);
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-des-voice-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-des-voice-row:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-voice-row.is-selected,
.v-des-voice-row[aria-selected="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-des-voice-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.v-des-voice-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-des-voice-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.v-des-voice-sample {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.v-des-voice-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Asset Library Toolbar, Cards & Lightbox Detail Modal (V3 Faz 10) */
.v-des-lib-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-des-lib-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-des-lib-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-des-lib-search-wrap {
  flex: 1 1 240px;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.v-des-lib-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.v-des-lib-search-icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.v-des-lib-search-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding-left: 34px;
  padding-right: 32px;
}

.v-des-lib-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-des-lib-search-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-des-lib-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
  color: var(--text-primary);
}

.v-des-lib-select {
  width: auto;
  min-width: 176px;
  height: 36px;
  padding-right: 36px;
  flex: 0 0 auto;
}

.v-des-lib-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.v-des-filter-chip.is-active .v-des-lib-pill-count,
.v-des-filter-chip[aria-pressed="true"] .v-des-lib-pill-count,
.v-des-seg-btn.is-active .v-des-lib-pill-count,
.v-des-seg-btn[aria-pressed="true"] .v-des-lib-pill-count {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

.mtk-btn-primary .v-des-lib-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-on-accent);
}

.v-des-lib-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.v-des-lib-thumb-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-des-lib-thumb-btn .v-des-lib-thumb {
  transition: border-color var(--duration-fast);
}

.v-des-lib-thumb-btn:hover .v-des-lib-thumb {
  border-color: var(--border-strong);
}

.v-des-lib-thumb-btn:focus-visible .v-des-lib-thumb {
  border-color: var(--border-focus);
}

.v-des-lib-thumb-overlay-tl,
.v-des-lib-thumb-overlay-tr {
  position: absolute;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  max-width: calc(50% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-lib-thumb-overlay-tl {
  left: 8px;
}

.v-des-lib-thumb-overlay-tr {
  right: 8px;
  font-family: var(--font-mono);
}

.v-des-lib-card.is-archived {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  opacity: 0.84;
}

.v-des-lib-card.is-archived:hover {
  opacity: 1;
}

.v-des-lib-card.is-archived .v-des-lib-thumb {
  opacity: 0.78;
}

.v-des-lib-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-des-lib-card-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-des-lib-card-actions-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.v-des-lib-card-actions-secondary > .mtk-btn,
.v-des-lib-card-actions-secondary > a.mtk-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.v-des-lib-card-actions-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-des-lib-card-actions-primary > .mtk-btn,
.v-des-lib-card-actions-primary > a.mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* Asset Detail / Lightbox Modal */
.v-des-preview-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-des-preview-stage {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  max-height: 440px;
  overflow: hidden;
  min-width: 0;
}

.v-des-preview-stage img,
.v-des-preview-stage video {
  max-width: 100%;
  max-height: 412px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.v-des-preview-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-des-preview-meta-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v-des-preview-meta-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-preview-meta-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-des-preview-prompt-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-des-preview-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.v-des-preview-prompt-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

.v-des-preview-prompt-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
}

.v-des-rename-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-des-rename-row > .mtk-input,
.v-des-rename-row > input {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
}

.v-des-rename-row > .mtk-btn {
  flex-shrink: 0;
  height: 36px;
}

.v-des-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

/* --------------------------------------------------------------------------
   8. Catalog 2D Canvas Studio & Sets (.v-cat-*)
   -------------------------------------------------------------------------- */
.v-cat-editor-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.v-cat-stage-wrap {
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(45deg, var(--bg-checker) 25%, transparent 25%),
    linear-gradient(-45deg, var(--bg-checker) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--bg-checker) 75%),
    linear-gradient(-45deg, transparent 75%, var(--bg-checker) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.v-cat-stage-canvas {
  background-color: #FFFFFF;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   12. Integrations (.v-int-*) — Corporate Platform Sections & Slide-Over Drawers
   -------------------------------------------------------------------------- */
.v-int-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.v-int-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.v-int-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-int-card:hover {
  border-color: var(--border-strong);
}

.v-int-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.v-int-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Main Page Vertical Section Stack */
.v-int-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v-int-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-int-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.v-int-section-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.v-int-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

.v-int-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.v-int-section-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Uniform 4-Column Platform Tile Grid */
.v-int-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.v-int-tile {
  width: 100%;
  min-height: 138px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.v-int-tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.v-int-tile:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-int-tile.is-connected {
  border-color: var(--accent-border);
  background: var(--bg-subtle);
}

.v-int-tile.is-connected:hover {
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
}

html[data-theme="light"] .v-int-tile {
  background: #F9FAFB;
}

html[data-theme="light"] .v-int-tile:hover {
  background: #FFFFFF;
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-int-tile.is-connected {
  background: #FFFFFF;
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-int-tile.is-connected:hover {
  border-color: var(--accent-primary);
}

.v-int-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.v-int-tile-logo,
.v-int-tile .v-int-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-int-tile-gear {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 140ms ease, background-color 140ms ease;
}

.v-int-tile:hover .v-int-tile-gear {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.v-int-tile-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
}

.v-int-tile-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-int-tile-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-int-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.v-int-tile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.v-int-tile-status.is-connected {
  color: var(--status-success-text);
}

.v-int-tile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-success);
  flex-shrink: 0;
}

.v-int-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-primary);
  white-space: nowrap;
  transition: color 140ms ease;
}

.v-int-tile:hover .v-int-tile-cta {
  color: var(--accent-primary-hover);
}

/* Drawer Toolbar, Search & Status Filter Pills */
.v-int-drawer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.v-int-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.v-int-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-int-search-input,
.v-int-search-wrap .mtk-input {
  width: 100%;
  height: 36px;
  padding-left: 36px;
  padding-right: 12px;
  font-size: 13px;
}

.v-int-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.v-int-filter-pill,
.v-int-filter-pills > button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.v-int-filter-pill:hover,
.v-int-filter-pills > button:hover {
  color: var(--text-primary);
}

.v-int-filter-pill.is-active,
.v-int-filter-pill[aria-pressed="true"],
.v-int-filter-pills > button.is-active,
.v-int-filter-pills > button[aria-pressed="true"] {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-int-filter-pill.is-active,
html[data-theme="light"] .v-int-filter-pill[aria-pressed="true"],
html[data-theme="light"] .v-int-filter-pills > button.is-active,
html[data-theme="light"] .v-int-filter-pills > button[aria-pressed="true"] {
  background-color: #FFFFFF;
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

/* Meta Accounts Table inside Drawer */
.v-int-acc-table-wrap {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  overflow-x: auto;
}

.v-int-acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.v-int-acc-table thead th {
  height: 38px;
  padding: 0 12px;
  background-color: var(--bg-table-head);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.v-int-acc-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 140ms ease;
}

.v-int-acc-table tbody tr:last-child {
  border-bottom: 0;
}

.v-int-acc-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.v-int-acc-table tbody tr.is-selected {
  background-color: var(--accent-soft);
}

.v-int-acc-table tbody td {
  padding: 11px 12px;
  vertical-align: middle;
  color: var(--text-primary);
}

.v-int-acc-table .is-num {
  text-align: right;
  white-space: nowrap;
}

.v-int-acc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-int-acc-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.v-int-acc-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

/* Asset Completeness Tags (Sayfa, IG, Pixel, Katalog) */
.v-int-asset-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.v-int-asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  background: transparent;
}

.v-int-asset-chip.is-ok {
  background-color: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-int-asset-chip.is-missing {
  background-color: transparent;
  border-color: var(--border-default);
  color: var(--text-faint);
}

/* Meta 3-Step Setup Horizontal Stepper inside Drawer */
.v-int-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-int-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  overflow-x: auto;
}

.v-int-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.v-int-step:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.v-int-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-int-step.is-active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: var(--bg-subtle);
  border-color: var(--border-default);
}

.v-int-step.is-active .v-int-step-num {
  background: var(--btn-primary-bg);
  border-color: transparent;
  color: #FFFFFF;
}

.v-int-step.is-done {
  color: var(--text-primary);
}

.v-int-step.is-done .v-int-step-num {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-int-step-sep {
  flex: 1;
  min-width: 16px;
  height: 1px;
  background-color: var(--border-default);
}

/* Spacious Vertical Form Stack inside Drawers */
.v-int-form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.v-int-field-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.v-int-summary-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-int-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.v-int-summary-label {
  color: var(--text-muted);
}

.v-int-summary-val {
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

/* Google Search Console Sites & GBP Locations List inside Drawer */
.v-int-prop-list {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  overflow-x: auto;
}

.v-int-prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 140ms ease;
}

.v-int-prop-row:last-child {
  border-bottom: 0;
}

.v-int-prop-row:hover {
  background-color: var(--bg-hover);
}

.v-int-prop-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v-int-prop-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-int-prop-sub {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-int-prop-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Drawer Footer Split (Disconnect Left / Cancel + Save Right) */
.v-int-drawer-footer-split {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-int-drawer-footer-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Live System Readiness Inspector (.v-int-ready-*) */
.v-int-ready-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-int-ready-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.v-int-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
}

.v-int-ready-pill-ok {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-int-ready-pill-warn {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-int-ready-pill-muted {
  background-color: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-muted);
}

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

.v-int-ready-row {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-int-ready-row:hover {
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-int-ready-row {
  background-color: var(--bg-table-head);
}

html[data-theme="light"] .v-int-ready-row:hover {
  background-color: var(--bg-surface);
}

.v-int-ready-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-int-ready-row-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.v-int-ready-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-int-ready-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-int-ready-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-int-ready-status.is-live {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-int-ready-status.is-partial {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-int-ready-status.is-missing {
  background-color: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-int-ready-desc {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v-int-ready-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-int-ready-env {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v-int-ready-probe-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
}

.v-int-ready-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-int-ready-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  background-color: var(--bg-elevated);
}

html[data-theme="light"] .v-int-ready-btn:hover:not(:disabled) {
  background-color: var(--bg-hover);
}

.v-int-ready-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-int-ready-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1120px) {
  .v-int-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .v-int-ready-grid {
    grid-template-columns: 1fr;
  }

  .v-int-ready-summary {
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .v-int-section-card {
    padding: 16px;
  }

  .v-int-drawer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-int-search-wrap {
    min-width: 0;
    width: 100%;
  }

  .v-int-filter-pills {
    width: 100%;
    justify-content: space-between;
  }

  .v-int-filter-pill,
  .v-int-filter-pills > button {
    flex: 1;
    justify-content: center;
  }

  .v-int-form-row {
    grid-template-columns: 1fr;
  }

  .v-int-drawer-footer-split {
    flex-direction: column;
    align-items: stretch;
  }

  .v-int-drawer-footer-group {
    width: 100%;
    justify-content: flex-end;
  }

  .v-int-acc-table-wrap {
    overflow-x: hidden;
  }

  .v-int-acc-table thead {
    display: none;
  }

  .v-int-acc-table,
  .v-int-acc-table tbody {
    display: block;
    width: 100%;
  }

  .v-int-acc-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 12px 14px;
    width: 100%;
  }

  .v-int-acc-table tbody td {
    display: block;
    padding: 0;
    border: 0;
  }

  .v-int-acc-table tbody td:first-child {
    flex: 1 1 100%;
  }

  .v-int-acc-table tbody td.is-num {
    text-align: left;
  }

  .v-int-acc-table tbody td:last-child {
    flex: 1 1 100%;
    margin-top: 4px;
  }

  .v-int-acc-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .v-int-platform-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   15. View-Level Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .v-cat-editor-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .v-opt-rule-grid,
  .v-aud-grid,
  .v-int-grid,
  .v-des-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .v-wiz-grid,
  .v-strat-stages,
  .v-strat-reader {
    grid-template-columns: 1fr;
  }

  .v-wiz-aside {
    position: static;
    top: auto;
  }

  .v-strat-sector-list {
    max-height: 260px;
  }

  .v-opt-hist-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 1024px) {
  .v-dash-main-grid,
  .v-dash-visual-grid,
  .v-dash-bento-grid,
  .v-wiz-grid,
  .v-strat-reader,
  .v-dash-activity-list {
    grid-template-columns: 1fr;
  }

  .v-dash-quick-grid,
  .v-dash-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-dash-activity-row:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 960px) {
  .v-opt-rule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .v-dash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-dash-quick-grid,
  .v-dash-summary-grid,
  .v-strat-stages,
  .v-opt-rule-grid,
  .v-opt-guards-grid,
  .v-opt-threshold-grid,
  .v-opt-exec-summary,
  .v-opt-exec-budget-grid,
  .v-opt-exec-modes,
  .v-aud-grid,
  .v-int-grid,
  .v-cat-editor-grid,
  .v-des-gallery,
  .v-des-gallery.cols-2,
  .v-des-gallery.cols-4,
  .v-des-calendar-grid,
  .v-wiz-form-grid,
  .v-wiz-gate-grid {
    grid-template-columns: 1fr;
  }

  .v-opt-master-bar {
    padding: 16px;
  }

  .v-opt-master-actions {
    width: 100%;
  }

  .v-opt-master-actions > .mtk-btn,
  .v-opt-master-actions > .v-opt-master-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-opt-filter-bar,
  .v-opt-hist-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-opt-filter-right {
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .v-opt-hist-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .v-opt-search-wrap,
  .v-opt-filter-right .v-opt-search-wrap,
  .v-opt-hist-controls .v-opt-search-wrap {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .v-opt-filter-bar .v-opt-search-input,
  .v-opt-hist-toolbar .v-opt-search-input,
  .v-opt-hist-toolbar .mtk-input,
  .v-opt-hist-toolbar .mtk-select,
  .v-opt-hist-filters .mtk-input,
  .v-opt-hist-filters .mtk-select,
  .v-opt-hist-select {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
  }

  .v-opt-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .v-opt-detail-val,
  .v-opt-detail-row > span:last-child,
  .v-opt-detail-row > strong {
    text-align: left;
  }

  .v-opt-hist-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .v-opt-hist-pager-actions {
    justify-content: flex-end;
  }

  .v-dash-welcome {
    padding: 0 0 16px;
    align-items: flex-start;
  }

  .v-dash-welcome-title {
    font-size: 22px;
  }

  .v-dash-welcome-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .v-dash-welcome-right .mtk-combo,
  .v-dash-welcome-right .mtk-context-picker,
  .v-dash-welcome-right .mtk-select,
  .v-dash-welcome-right .v-dash-spend-chip {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }

  .v-dash-welcome-right .mtk-combo-trigger {
    width: 100%;
  }

  .v-dash-welcome-right .mtk-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .v-wiz-stepper,
  .v-wiz-obj-grid,
  .v-wiz-form-grid,
  .v-wiz-form-grid-3,
  .v-wiz-review-grid,
  .v-wiz-gate-grid,
  .v-strat-mode-grid,
  .v-strat-form-grid {
    grid-template-columns: 1fr;
  }

  .v-strat-active-bar {
    padding: 14px 16px;
  }

  .v-strat-active-top {
    flex-direction: column;
    align-items: stretch;
  }

  .v-strat-active-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .v-strat-active-actions > .mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-strat-stage-card {
    padding: 16px;
  }

  .v-strat-hook-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .v-strat-details > summary {
    padding: 12px 14px;
  }

  .v-strat-details-body {
    padding: 0 14px 14px;
  }

  .v-wiz-score-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-wiz-name-row {
    flex-direction: column;
  }

  .v-wiz-name-row > .mtk-input,
  .v-wiz-name-row > input {
    flex: none;
    width: 100%;
    min-height: 40px;
  }

  .v-wiz-macro-wrap {
    width: 100%;
  }

  .v-wiz-macro-popover {
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
  }

  .v-wiz-source-tabs {
    width: 100%;
  }

  .v-wiz-source-tabs > button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-wiz-aud-item,
  .v-wiz-organic-item,
  .v-wiz-search-row {
    flex-wrap: wrap;
  }

  .v-wiz-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-wiz-phone-frame {
    max-width: 100%;
  }
}

/* Audiences (.v-aud-*) Responsive Breakpoints */
@media (max-width: 1200px) {
  .v-aud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-aud-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .v-aud-filter-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 1024px) {
  .v-aud-studio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .v-aud-grid {
    grid-template-columns: 1fr;
  }

  .v-aud-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .v-aud-summary-cell {
    padding: 14px;
  }

  .v-aud-summary-val {
    font-size: 20px;
  }

  .v-aud-header {
    flex-direction: column;
    align-items: stretch;
  }

  .v-aud-header-main {
    flex: none;
    width: 100%;
  }

  .v-aud-header-actions {
    width: 100%;
  }

  .v-aud-header-actions > .mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-aud-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-self: stretch;
    overflow-x: visible;
  }

  .v-aud-tab {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .v-aud-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-aud-filter-pills {
    width: 100%;
    flex-wrap: wrap;
  }

  .v-aud-search-box {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .v-aud-search-box .mtk-input,
  input.v-aud-search-box {
    width: 100%;
    min-height: 40px;
    flex: none;
  }

  .v-aud-featured-row {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .v-aud-featured-main {
    flex: none;
    width: 100%;
  }

  .v-aud-featured-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .v-aud-featured-actions > .mtk-btn {
    width: 100%;
    justify-content: center;
  }

  .v-aud-panel,
  .v-aud-surface {
    padding: 16px;
  }

  .v-aud-field-row,
  .v-aud-field-row.cols-2 {
    grid-template-columns: 1fr;
  }

  .v-aud-field > .mtk-input,
  .v-aud-field > .mtk-select,
  .v-aud-field > input[type="text"],
  .v-aud-field > input[type="number"],
  .v-aud-field > input[type="search"],
  .v-aud-field > select,
  .v-aud-sheet-body .mtk-input,
  .v-aud-sheet-body .mtk-select {
    width: 100%;
    min-height: 40px;
    flex: none;
  }

  .v-aud-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-aud-search-bar > .mtk-input,
  .v-aud-search-bar > input,
  .v-aud-search-bar > .mtk-btn {
    width: 100%;
    min-height: 40px;
    flex: none;
  }

  .v-aud-seg-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .v-aud-seg-btn {
    flex: 1 1 auto;
    min-height: 36px;
  }

  .v-aud-kv-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .v-aud-kv-val {
    text-align: left;
  }

  .v-aud-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-aud-actions-row > .mtk-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Design Studio (.v-des-*) Responsive Breakpoints */
@media (max-width: 1080px) {
  .v-des-split {
    grid-template-columns: 1fr;
  }

  .v-des-canvas-panel {
    position: static;
    top: auto;
  }

  .v-des-gallery,
  .v-des-gallery.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .v-des-header {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-header-main {
    flex: none;
    width: 100%;
  }

  .v-des-header-actions {
    width: 100%;
  }

  .v-des-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .v-des-tab {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .v-des-credit-pill {
    width: 100%;
    justify-content: space-between;
  }

  .v-des-form-panel,
  .v-des-canvas-panel {
    padding: 16px;
  }

  .v-des-attach-grid {
    grid-template-columns: 1fr;
  }

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

  .v-des-field-row,
  .v-des-field-row.cols-2 {
    grid-template-columns: 1fr;
  }

  .v-des-field > .mtk-input,
  .v-des-field > .mtk-select,
  .v-des-field > input[type="text"],
  .v-des-field > input[type="url"],
  .v-des-field > input[type="number"],
  .v-des-field > select {
    width: 100%;
    min-height: 40px;
    flex: none;
  }

  .v-des-canvas-head {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-canvas-title-wrap {
    flex: none;
    width: 100%;
  }

  .v-des-canvas-actions {
    width: 100%;
  }

  .v-des-canvas-actions > .mtk-btn,
  .v-des-canvas-actions > a.mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-des-stage {
    min-height: 280px;
    padding: 14px;
  }

  .v-des-stage-placeholder {
    max-width: 100%;
  }

  .v-des-stage-video.is-portrait {
    width: 100%;
    max-width: 290px;
  }

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

  .v-des-rev-row,
  .v-des-url-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-rev-row > .mtk-input,
  .v-des-rev-row > input,
  .v-des-rev-row > .mtk-btn,
  .v-des-url-row > .mtk-input,
  .v-des-url-row > input,
  .v-des-url-row > .mtk-btn {
    width: 100%;
    min-height: 40px;
    flex: none;
  }

  .v-des-seg-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .v-des-seg-btn {
    flex: 1 1 auto;
    min-height: 36px;
  }

  .v-des-gallery,
  .v-des-gallery.cols-2,
  .v-des-gallery.cols-4,
  .v-des-calendar-grid {
    grid-template-columns: 1fr;
  }

  .v-des-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-prompt-footer {
    justify-content: flex-start;
  }

  .v-des-storyboard-grid {
    grid-template-columns: 1fr;
  }

  .v-des-beat-card,
  .v-des-attach-single > * {
    flex: none;
  }

  .v-des-dur-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v-des-stage-video.ratio-9-16,
  .v-des-stage-video.ratio-4-5,
  .v-des-stage-video.ratio-1-1,
  .v-des-stage-video.ratio-16-9,
  .v-des-stage-video.ratio-4-3 {
    width: 100%;
    max-width: 100%;
  }

  .v-des-stage-video.ratio-9-16 {
    max-width: 290px;
  }

  .v-des-ugc-dur-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-des-picker-grid {
    grid-template-columns: 1fr;
  }

  .v-des-modal-toolbar > .mtk-input,
  .v-des-modal-toolbar > input {
    flex: 1 1 100%;
    width: 100%;
  }

  .v-des-lib-toolbar {
    padding: 12px;
    gap: 10px;
  }

  .v-des-lib-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-lib-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-lib-search-wrap,
  .v-des-lib-select {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .v-des-lib-toolbar-controls > .v-des-seg-group,
  .v-des-lib-toolbar-controls > .mtk-btn {
    flex: none;
    width: 100%;
  }

  .v-des-preview-stage {
    min-height: 200px;
    max-height: 320px;
    padding: 10px;
  }

  .v-des-preview-stage img,
  .v-des-preview-stage video {
    max-height: 296px;
  }

  .v-des-preview-actions > .mtk-btn,
  .v-des-preview-actions > a.mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .v-des-root {
    padding-bottom: 84px;
  }

  .v-des-dur-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .v-des-dur-btn {
    padding: 8px 4px;
  }

  .v-des-dur-main {
    font-size: 12px;
  }

  .v-des-dur-sub {
    font-size: 10px;
  }

  .v-des-ugc-dur-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .v-des-ugc-dur-grid .v-des-dur-btn {
    padding: 8px 6px;
    min-height: 50px;
  }

  .v-des-picker-grid,
  .v-des-actor-grid {
    grid-template-columns: 1fr;
  }

  .v-des-actor-grid,
  .v-des-voice-list {
    max-height: 300px;
  }

  .v-des-modal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-modal-toolbar > .mtk-input,
  .v-des-modal-toolbar > input,
  .v-des-modal-toolbar > .v-des-filter-chips {
    width: 100%;
    flex: none;
  }

  .v-des-voice-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .v-des-voice-main,
  .v-des-voice-actions {
    width: 100%;
    flex: none;
  }

  .v-des-voice-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .v-des-voice-actions > .mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-des-picker-card,
  .v-des-actor-card {
    flex: none;
  }

  .v-des-storyboard {
    padding: 12px;
  }

  .v-des-storyboard-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v-des-beat-card,
  .v-des-attach-single > * {
    flex: none;
  }

  .v-des-rename-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-des-rename-row > .mtk-input,
  .v-des-rename-row > input,
  .v-des-rename-row > .mtk-btn {
    width: 100%;
    flex: none;
    min-height: 38px;
  }

  .v-des-preview-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   V3 Faz 11 — Katalog Stüdyosu (.v-cat-*)
   Calm corporate flat surfaces, solid semantic tokens, zero inline styles
   ========================================================================== */

.v-cat-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 96px;
  min-width: 0;
  color: var(--text-primary);
}

.v-cat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

html[data-theme="light"] .v-cat-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

.v-cat-tabs::-webkit-scrollbar {
  display: none;
}

.v-cat-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-cat-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-cat-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-tab.is-active,
.v-cat-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-cat-tab.is-active,
html[data-theme="light"] .v-cat-tab[aria-selected="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.v-cat-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-cat-tab.is-active .v-cat-tab-count,
.v-cat-tab[aria-selected="true"] .v-cat-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* Inline Viewer & Error Feedback Bars */
.v-cat-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-cat-error-bar {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  color: var(--status-danger-text);
  font-size: 13px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Connection Gate */
.v-cat-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 12px;
  min-width: 0;
}

.v-cat-gate-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 0;
}

.v-cat-gate-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-cat-gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.v-cat-gate-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
}

.v-cat-gate-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 460px;
}

.v-cat-gate-providers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.v-cat-gate-providers > span,
.v-cat-gate-provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.v-cat-gate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding-top: 6px;
}

/* Store Health & KPI Strip */
.v-cat-health-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-cat-health-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-health-store {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-health-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-health-details {
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.v-cat-health-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  user-select: none;
}

.v-cat-health-details > summary::-webkit-details-marker {
  display: none;
}

.v-cat-health-details[open] > summary {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-cat-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-cat-kpi-card {
  padding: 13px 15px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.v-cat-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cat-kpi-val {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.v-cat-kpi-val.is-success {
  color: var(--status-success-text);
}

.v-cat-kpi-val.is-warning {
  color: var(--status-warning-text);
}

.v-cat-kpi-val.is-accent {
  color: var(--accent-primary);
}

.v-cat-kpi-val.is-danger {
  color: var(--status-danger-text);
}

.v-cat-kpi-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section Headers */
.v-cat-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-cat-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
}

.v-cat-section-desc {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.v-cat-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Section A — Smart Built-In Sets */
.v-cat-smart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.v-cat-smart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-cat-smart-card:hover {
  border-color: var(--border-strong);
}

.v-cat-smart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-cat-smart-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-cat-smart-icon.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-cat-smart-icon.is-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-cat-smart-icon.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-cat-smart-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.v-cat-smart-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.v-cat-smart-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  flex-wrap: nowrap;
}

.v-cat-smart-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.v-cat-smart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-cat-smart-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-smart-actions > .mtk-btn,
.v-cat-smart-actions > a.mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* Section B — Custom Sets Toolbar & Grid */
.v-cat-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-cat-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-filter-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v-cat-filter-chip {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-cat-filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-cat-filter-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-filter-chip.is-active,
.v-cat-filter-chip[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-cat-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.v-cat-filter-chip.is-active .v-cat-pill-count,
.v-cat-filter-chip[aria-pressed="true"] .v-cat-pill-count,
.v-cat-seg-btn.is-active .v-cat-pill-count,
.v-cat-seg-btn[aria-pressed="true"] .v-cat-pill-count {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

.v-cat-search-wrap {
  flex: 1 1 240px;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.v-cat-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.v-cat-search-icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.v-cat-search-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding-left: 34px;
  padding-right: 32px;
}

.v-cat-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-cat-search-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-cat-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
  color: var(--text-primary);
}

.v-cat-select {
  width: auto;
  min-width: 172px;
  height: 36px;
  padding-right: 36px;
  flex: 0 0 auto;
}

.v-cat-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-cat-set-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-cat-set-card:hover {
  border-color: var(--border-strong);
}

.v-cat-set-card.is-archived {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  opacity: 0.84;
}

.v-cat-set-card.is-archived:hover {
  opacity: 1;
}

.v-cat-set-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-cat-set-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  word-break: break-word;
}

.v-cat-set-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-cat-set-rules {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v-cat-sample-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-sample-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v-cat-sample-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.v-cat-sample-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-cat-sample-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v-cat-sample-title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cat-sample-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.v-cat-sample-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-cat-sample-old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.v-cat-sample-disc {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--status-success-bg);
  border: 1px solid var(--status-success-border);
  color: var(--status-success-text);
}

.v-cat-set-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-set-actions-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.v-cat-set-actions-secondary > .mtk-btn,
.v-cat-set-actions-secondary > a.mtk-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.v-cat-set-actions-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-cat-set-actions-primary > .mtk-btn,
.v-cat-set-actions-primary > a.mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.v-cat-empty-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* Modals: Store Connect, Custom Set Builder & Product Explorer */
.v-cat-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-cat-provider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-cat-provider-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-cat-provider-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-cat-provider-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-provider-btn.is-active,
.v-cat-provider-btn[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.v-cat-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  max-width: 100%;
}

.v-cat-seg-btn {
  min-height: 32px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-cat-seg-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-cat-seg-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-seg-btn.is-active,
.v-cat-seg-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

html[data-theme="light"] .v-cat-seg-btn.is-active,
html[data-theme="light"] .v-cat-seg-btn[aria-pressed="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.v-cat-xml-textarea {
  width: 100%;
  min-height: 128px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.v-cat-hidden {
  display: none !important;
}

.v-cat-footer-spacer {
  margin-right: auto;
}

.v-cat-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v-cat-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-cat-field-span-2 {
  grid-column: span 2;
}

.v-cat-check-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.v-cat-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-cat-check-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-cat-check-pill input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.v-cat-match-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.v-cat-pick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-cat-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-cat-pick-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-cat-pick-item.is-selected {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.v-cat-pick-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.v-cat-explorer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-explorer-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.v-cat-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.v-cat-price-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}

.v-cat-sku-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

/* Tab 2 — 2D Frame Design Studio Structural Classes */
.v-cat-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-cat-editor-bar-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 0;
}

.v-cat-editor-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.v-cat-rules-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-cat-rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-cat-rules-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.v-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-cat-frame-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-cat-frame-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-cat-card-dual {
  display: grid;
  grid-template-columns: 1.35fr 0.78fr;
  gap: 8px;
  padding: 10px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.v-cat-card-single {
  padding: 10px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.v-cat-card-img-wrap {
  position: relative;
  border-radius: var(--radius-control);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  width: 100%;
}

.v-cat-card-img-sq {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.v-cat-card-img-st {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.v-cat-card-dim {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.84);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Tab 3 — 7-Sector Catalog Video Studio Structural Classes */
.v-cat-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 380px);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.v-cat-video-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.v-cat-video-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  min-width: 0;
}

.v-cat-ratio-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.v-cat-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.v-cat-sticky-col {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-cat-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-cat-sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 13px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-subtle);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-cat-sector-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-cat-sector-card:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-sector-card.is-active,
.v-cat-sector-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-cat-sector-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #FFFFFF;
  flex-shrink: 0;
}

.v-cat-sector-icon.is-theme-tekstil {
  background: #DB2777;
}

.v-cat-sector-icon.is-theme-ayakkabi_canta {
  background: #D97706;
}

.v-cat-sector-icon.is-theme-ev_yasam {
  background: #059669;
}

.v-cat-sector-icon.is-theme-kozmetik {
  background: #7C3AED;
}

.v-cat-sector-icon.is-theme-taki_aksesuar {
  background: #CA8A04;
}

.v-cat-sector-icon.is-theme-gida {
  background: #EA580C;
}

.v-cat-sector-icon.is-theme-pazaryeri {
  background: #0F9D8E;
}

.v-cat-stage-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-cat-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-cat-stage-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
}

.v-cat-stage-status.is-done {
  color: var(--status-success-text);
}

.v-cat-stage-status.is-failed {
  color: var(--status-danger-text);
}

.v-cat-stage-progress {
  display: block;
  width: 100%;
  height: 5px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-muted);
  margin: 0;
}

.v-cat-stage-progress::-webkit-progress-bar {
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
}

.v-cat-stage-progress::-webkit-progress-value {
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-fast) var(--ease-out), background-color var(--duration-fast);
}

.v-cat-stage-progress::-moz-progress-bar {
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.v-cat-stage-progress.is-done::-webkit-progress-value {
  background: var(--status-success);
}

.v-cat-stage-progress.is-done::-moz-progress-bar {
  background: var(--status-success);
}

.v-cat-stage-progress.is-failed::-webkit-progress-value {
  background: var(--status-danger);
}

.v-cat-stage-progress.is-failed::-moz-progress-bar {
  background: var(--status-danger);
}

.v-cat-stage-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-cat-stage-pill {
  padding: 9px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-cat-stage-pill.is-done {
  border-color: var(--status-success-border);
  background: var(--status-success-bg);
  color: var(--status-success-text);
  font-weight: 600;
}

.v-cat-stage-pill.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-cat-stage-pill.is-failed {
  border-color: var(--status-danger-border);
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  font-weight: 600;
}

.v-cat-job-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-cat-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: pointer;
  width: 100%;
  text-align: left;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-cat-job-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-cat-job-row:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-job-row.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-cat-phone-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-cat-iphone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-cat-iphone-island {
  width: 72px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.v-cat-phone-screen {
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #080B12;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-cat-phone-video {
  width: 100%;
  max-height: 460px;
  display: block;
  background: #080B12;
}

.v-cat-phone-empty {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #94A3B8;
}

.v-cat-phone-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.28);
  color: #14B8A6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-cat-phone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

/* Catalog Studio (.v-cat-*) Responsive Breakpoints */
@media (max-width: 1120px) {
  .v-cat-smart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .v-cat-video-layout {
    grid-template-columns: 1fr;
  }

  .v-cat-sticky-col {
    position: static;
    top: auto;
  }
}

@media (max-width: 1024px) {
  .v-cat-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .v-cat-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-cat-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .v-cat-tab {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .v-cat-toolbar {
    padding: 12px;
    gap: 10px;
  }

  .v-cat-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-cat-search-wrap,
  .v-cat-select {
    flex: none;
    width: 100%;
    min-width: 0;
  }

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

  .v-cat-stage-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v-cat-health-card {
    padding: 14px 16px;
  }

  .v-cat-health-actions {
    width: 100%;
  }

  .v-cat-health-actions > .mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-cat-explorer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-cat-explorer-bar > .v-cat-search-wrap,
  .v-cat-explorer-bar > .v-cat-select {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 640px) {
  .v-cat-kpi-label {
    white-space: normal;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
  }

  .v-cat-sets-grid {
    grid-template-columns: 1fr;
  }

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

  .v-cat-cards-grid {
    grid-template-columns: 1fr;
  }

  .v-cat-editor-bar {
    padding: 14px 16px;
  }

  .v-cat-editor-bar-actions {
    width: 100%;
  }

  .v-cat-editor-bar-actions > .mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .v-cat-smart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .v-cat-root {
    padding-bottom: 96px;
  }

  .v-cat-gate-card {
    padding: 24px 18px;
  }

  .v-cat-gate-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .v-cat-gate-actions > .mtk-btn,
  .v-cat-gate-actions > a.mtk-btn {
    width: 100%;
    justify-content: center;
  }

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

  .v-cat-kpi-card {
    padding: 11px 12px;
  }

  .v-cat-kpi-val {
    font-size: 18px;
  }

  .v-cat-filter-grid {
    grid-template-columns: 1fr;
  }

  .v-cat-field-span-2 {
    grid-column: span 1;
  }

  .v-cat-seg {
    width: 100%;
    flex-wrap: wrap;
  }

  .v-cat-seg-btn {
    flex: 1 1 auto;
  }

  .v-cat-sector-grid {
    grid-template-columns: 1fr;
  }

  .v-cat-phone-wrap {
    max-width: 100%;
  }
}

/* ==========================================================================
   V3 Faz 12 — Catalog Design Sub-Tabs, Presets, Templates & 2D Canvas Editor
   Calm corporate surfaces, dark default + crisp light theme, zero inline styles
   ========================================================================== */

/* Design Sub-Tabs & Action Bar */
.v-cat-design-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.v-cat-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-cat-subtabs::-webkit-scrollbar {
  display: none;
}

.v-cat-subtab {
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-cat-subtab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-cat-subtab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-subtab.is-active,
.v-cat-subtab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-cat-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-hover);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-cat-subtab.is-active .v-cat-subtab-count,
.v-cat-subtab[aria-selected="true"] .v-cat-subtab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* Ready Presets Gallery (Hazır Şablonlar) */
.v-cat-preset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-cat-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-cat-preset-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-cat-preset-card:hover {
  border-color: var(--border-strong);
}

.v-cat-preset-stage {
  height: 196px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.v-cat-preset-stage.is-story {
  padding: 10px 14px;
}

.v-cat-preset-mock {
  --mock-bg: #111827;
  --mock-border: rgba(255, 255, 255, 0.14);
  --mock-ribbon-bg: #1E293B;
  --mock-ribbon-fg: #F8FAFC;
  --mock-badge-bg: #E11D48;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: rgba(255, 255, 255, 0.06);
  --mock-product-border: rgba(255, 255, 255, 0.10);
  --mock-oldprice-fg: #94A3B8;
  --mock-price-bg: #0F9D8E;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #059669;
  --mock-pill-fg: #FFFFFF;

  width: 158px;
  height: 158px;
  padding: 9px;
  border-radius: 10px;
  background: var(--mock-bg);
  border: 1px solid var(--mock-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.v-cat-preset-stage.is-story .v-cat-preset-mock,
.v-cat-preset-mock.is-story {
  width: 100px;
  height: 174px;
  padding: 8px 7px;
  border-radius: 11px;
}

.v-cat-preset-mock.is-theme-classic {
  --mock-bg: #111827;
  --mock-border: rgba(255, 255, 255, 0.14);
  --mock-ribbon-bg: #1E293B;
  --mock-ribbon-fg: #F8FAFC;
  --mock-badge-bg: #E11D48;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #1A2234;
  --mock-product-border: rgba(255, 255, 255, 0.08);
  --mock-oldprice-fg: #CBD5E1;
  --mock-price-bg: #0E8A9E;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #059669;
  --mock-pill-fg: #FFFFFF;
}

.v-cat-preset-mock.is-theme-minimal {
  --mock-bg: #F8FAFC;
  --mock-border: #CBD5E1;
  --mock-ribbon-bg: #E2E8F0;
  --mock-ribbon-fg: #0F172A;
  --mock-badge-bg: #0F172A;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #EEF2F6;
  --mock-product-border: #CBD5E1;
  --mock-oldprice-fg: #64748B;
  --mock-price-bg: #111827;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #E2E8F0;
  --mock-pill-fg: #334155;
}

.v-cat-preset-mock.is-theme-season {
  --mock-bg: #0F172A;
  --mock-border: rgba(20, 184, 166, 0.32);
  --mock-ribbon-bg: #0F766E;
  --mock-ribbon-fg: #F0FDFA;
  --mock-badge-bg: #D97706;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #162235;
  --mock-product-border: rgba(20, 184, 166, 0.18);
  --mock-oldprice-fg: #94A3B8;
  --mock-price-bg: #0E8A9E;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #1E293B;
  --mock-pill-fg: #E2E8F0;
}

.v-cat-preset-mock.is-theme-luxury {
  --mock-bg: #0B0E14;
  --mock-border: #334155;
  --mock-ribbon-bg: #1E293B;
  --mock-ribbon-fg: #FDE68A;
  --mock-badge-bg: #B45309;
  --mock-badge-fg: #FFFBEB;
  --mock-product-bg: #141923;
  --mock-product-border: rgba(251, 191, 36, 0.22);
  --mock-oldprice-fg: #94A3B8;
  --mock-price-bg: #1E293B;
  --mock-price-fg: #FDE68A;
  --mock-pill-bg: #1F2937;
  --mock-pill-fg: #CBD5E1;
}

.v-cat-preset-mock.is-theme-clean {
  --mock-bg: #FFFFFF;
  --mock-border: #CBD5E1;
  --mock-ribbon-bg: #ECFDF5;
  --mock-ribbon-fg: #065F46;
  --mock-badge-bg: #0F9D8E;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #F1F5F9;
  --mock-product-border: #E2E8F0;
  --mock-oldprice-fg: #64748B;
  --mock-price-bg: #1E293B;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #D1FAE5;
  --mock-pill-fg: #065F46;
}

.v-cat-preset-mock.is-theme-warm {
  --mock-bg: #FAF5EF;
  --mock-border: #E5D5C3;
  --mock-ribbon-bg: #451A03;
  --mock-ribbon-fg: #FEF3C7;
  --mock-badge-bg: #C2410C;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #F3E8DC;
  --mock-product-border: #DECBB7;
  --mock-oldprice-fg: #78716C;
  --mock-price-bg: #9A3412;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #EFE2D3;
  --mock-pill-fg: #7C2D12;
}

.v-cat-preset-mock.is-theme-story-bold,
.v-cat-preset-mock.is-theme-story_bold {
  --mock-bg: #111827;
  --mock-border: rgba(59, 130, 246, 0.35);
  --mock-ribbon-bg: #1D4ED8;
  --mock-ribbon-fg: #FFFFFF;
  --mock-badge-bg: #DC2626;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #1A2438;
  --mock-product-border: rgba(255, 255, 255, 0.10);
  --mock-oldprice-fg: #94A3B8;
  --mock-price-bg: #FFFFFF;
  --mock-price-fg: #0F172A;
  --mock-pill-bg: #1E293B;
  --mock-pill-fg: #E2E8F0;
}

.v-cat-preset-mock.is-theme-story-flash,
.v-cat-preset-mock.is-theme-story_flash {
  --mock-bg: #1E293B;
  --mock-border: rgba(217, 119, 6, 0.38);
  --mock-ribbon-bg: #B91C1C;
  --mock-ribbon-fg: #FFFFFF;
  --mock-badge-bg: #D97706;
  --mock-badge-fg: #FFFFFF;
  --mock-product-bg: #0F172A;
  --mock-product-border: rgba(255, 255, 255, 0.10);
  --mock-oldprice-fg: #CBD5E1;
  --mock-price-bg: #059669;
  --mock-price-fg: #FFFFFF;
  --mock-pill-bg: #0F172A;
  --mock-pill-fg: #F8FAFC;
}

.v-cat-preset-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.v-cat-preset-mock-ribbon {
  display: inline-flex;
  align-items: center;
  max-width: 68%;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--mock-ribbon-bg);
  color: var(--mock-ribbon-fg);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cat-preset-mock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--mock-badge-bg);
  color: var(--mock-badge-fg);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.v-cat-preset-mock-product {
  flex: 1 1 auto;
  min-height: 38px;
  border-radius: 6px;
  background: var(--mock-product-bg);
  border: 1px solid var(--mock-product-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mock-oldprice-fg);
}

.v-cat-preset-mock-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-cat-preset-mock-oldprice {
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--mock-oldprice-fg);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-cat-preset-mock-price {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--mock-price-bg);
  color: var(--mock-price-fg);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-cat-preset-mock-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--mock-pill-bg);
  color: var(--mock-pill-fg);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cat-preset-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-cat-preset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-cat-preset-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  word-break: break-word;
}

.v-cat-preset-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-cat-preset-set-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.v-cat-preset-set-row .mtk-select,
.v-cat-preset-set-row select {
  width: 100%;
  height: 34px;
  font-size: 12.5px;
}

.v-cat-preset-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-preset-actions > .mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* My Saved Templates Gallery (Şablonlarım) */
.v-cat-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-cat-tpl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-cat-tpl-card:hover {
  border-color: var(--border-strong);
}

.v-cat-tpl-card.is-inactive {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

.v-cat-tpl-card.is-archived {
  background: var(--bg-subtle);
  border-style: dashed;
  border-color: var(--border-strong);
  opacity: 0.86;
}

.v-cat-tpl-card.is-archived:hover {
  opacity: 1;
}

.v-cat-tpl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-cat-tpl-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  word-break: break-word;
}

.v-cat-tpl-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v-cat-tpl-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  min-width: 0;
}

.v-cat-tpl-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-tpl-actions-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.v-cat-tpl-actions-secondary > .mtk-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.v-cat-tpl-actions-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-cat-tpl-actions-primary > .mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* Generated Cards & Designed XML Feed (Oluşturulan Görseller) */
.v-cat-feed-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.v-cat-feed-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}

.v-cat-feed-url-text {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.v-cat-job-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-cat-job-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-cat-job-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-cat-job-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-cat-job-chip.is-active {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-cat-lightbox-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-cat-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.v-cat-lightbox-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
}

/* 2D Canvas Frame Editor (.v-ce-*) — Replaces legacy runtime style injection */
.v-ce-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: var(--text-primary);
}

.v-ce-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  min-width: 0;
}

.v-ce-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-ce-toolbar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.v-ce-toolbar-spacer {
  margin-left: auto;
}

.v-ce-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  max-width: 100%;
}

.v-ce-seg-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-ce-seg-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-ce-seg-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-ce-seg-btn.is-active,
.v-ce-seg-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-ce-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-ce-check-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-ce-check-pill input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.v-ce-readonly-banner {
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v-ce-workspace {
  display: grid;
  grid-template-columns: 264px minmax(300px, 1fr) 292px;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.v-ce-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.v-ce-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
}

.v-ce-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.v-ce-panel-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-ce-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.v-ce-token-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 30px;
  padding: 6px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-control);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 10.8px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-ce-token-btn > svg {
  flex-shrink: 0;
}

.v-ce-token-btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-ce-token-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.v-ce-token-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-ce-token-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.v-ce-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-ce-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-ce-layer-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-ce-layer-row.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-ce-layer-row.is-hidden {
  opacity: 0.56;
}

.v-ce-layer-row.is-locked {
  border-style: dashed;
}

.v-ce-layer-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-ce-layer-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-ce-layer-meta {
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-ce-layer-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.v-ce-icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-ce-icon-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.v-ce-icon-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-ce-icon-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.v-ce-stage-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-ce-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
}

.v-ce-stage-canvas-wrap {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  min-height: 360px;
  min-width: 0;
}

.v-ce-canvas {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  cursor: default;
  touch-action: none;
  user-select: none;
  max-width: 100%;
}

.v-ce-canvas.is-square {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  height: auto;
}

.v-ce-canvas.is-story {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  height: auto;
}

.v-ce-canvas.is-hover-layer {
  cursor: grab;
}

.v-ce-canvas.is-dragging {
  cursor: grabbing;
}

.v-ce-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

.v-ce-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-ce-inspector-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-ce-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-ce-inline-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.v-ce-inline-label > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-ce-val-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 1px 6px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.v-ce-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-ce-color-input {
  width: 36px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-subtle);
  cursor: pointer;
  flex-shrink: 0;
}

.v-ce-swatch-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.v-ce-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--duration-fast);
}

.v-ce-swatch:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

.v-ce-swatch.is-active {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

/* Pre-defined Canvas Editor Swatch Palette (Zero inline styles) */
.v-ce-sw-white {
  background-color: #FFFFFF;
}

.v-ce-sw-slate100 {
  background-color: #F8FAFC;
}

.v-ce-sw-slate300 {
  background-color: #CBD5E1;
}

.v-ce-sw-slate800 {
  background-color: #1E293B;
}

.v-ce-sw-slate900 {
  background-color: #0F172A;
}

.v-ce-sw-black {
  background-color: #111827;
}

.v-ce-sw-rose {
  background-color: #E11D48;
}

.v-ce-sw-red {
  background-color: #DC2626;
}

.v-ce-sw-amber {
  background-color: #D97706;
}

.v-ce-sw-emerald {
  background-color: #059669;
}

.v-ce-sw-teal {
  background-color: #0E8A9E;
}

.v-ce-sw-blue {
  background-color: #2563EB;
}

.v-ce-range {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.v-ce-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.v-ce-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.v-ce-toggle-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.v-ce-rules-card {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-ce-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.v-ce-empty-insp {
  padding: 20px 12px;
  text-align: center;
  border-radius: var(--radius-control);
  border: 1px dashed var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Light Theme Contrast Adjustments (V3 Faz 12) */
html[data-theme="light"] .v-cat-subtabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-cat-subtab.is-active,
html[data-theme="light"] .v-cat-subtab[aria-selected="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-cat-preset-stage {
  background: #EEF1F6;
  border-bottom-color: var(--border-default);
}

html[data-theme="light"] .v-cat-feed-url-box {
  background: #F8FAFC;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-ce-panel-head,
html[data-theme="light"] .v-ce-stage-head,
html[data-theme="light"] .v-ce-stage-foot {
  background: #F8FAFC;
}

html[data-theme="light"] .v-ce-stage-canvas-wrap {
  background: #EEF1F6;
}

html[data-theme="light"] .v-ce-seg-btn.is-active,
html[data-theme="light"] .v-ce-seg-btn[aria-pressed="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-ce-sw-white,
html[data-theme="light"] .v-ce-sw-slate100 {
  border-color: #94A3B8;
}

/* Responsive Breakpoints (V3 Faz 12) */
@media (max-width: 1180px) {
  .v-ce-workspace {
    grid-template-columns: 1fr;
  }

  .v-ce-stage-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .v-cat-design-subbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-cat-subtabs {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .v-cat-subtab {
    flex: 1 1 auto;
  }

  .v-cat-preset-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .v-cat-presets-grid,
  .v-cat-templates-grid {
    grid-template-columns: 1fr;
  }

  .v-cat-feed-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .v-cat-lightbox-grid {
    grid-template-columns: 1fr;
  }

  .v-ce-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .v-ce-toolbar-spacer {
    margin-left: 0;
    width: 100%;
  }

  .v-ce-row-2,
  .v-ce-token-grid {
    grid-template-columns: 1fr;
  }

  .v-ce-stage-canvas-wrap {
    padding: 12px;
    min-height: 280px;
  }
}

/* ==========================================================================
   V3 Faz 13 — Catalog Video Templates, Scene Studio & Video Library
   Calm corporate surfaces, dark default + crisp light parity
   ========================================================================== */

/* Video Templates Gallery (Hazır Şablonlar) */
.v-cat-vtmpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-cat-vtmpl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: border-color 150ms ease;
}

.v-cat-vtmpl-card:hover {
  border-color: var(--border-strong);
}

.v-cat-vtmpl-stage {
  padding: 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 204px;
  position: relative;
  overflow: hidden;
}

.v-cat-vtmpl-frame {
  --vt-bg: #111827;
  --vt-border: rgba(255, 255, 255, 0.14);
  --vt-accent: #0F9D8E;
  --vt-hook-bg: #1E293B;
  --vt-hook-fg: #F8FAFC;
  --vt-slide-bg: #1A2234;
  --vt-slide-border: rgba(255, 255, 255, 0.10);
  --vt-pill-bg: #0F172A;
  --vt-pill-fg: #F8FAFC;

  width: 110px;
  aspect-ratio: 9 / 16;
  padding: 7px 6px;
  border-radius: 10px;
  background: var(--vt-bg);
  border: 1px solid var(--vt-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.v-cat-vtmpl-frame.is-ratio-9_16 {
  width: 110px;
  aspect-ratio: 9 / 16;
  padding: 7px 6px;
}

.v-cat-vtmpl-frame.is-ratio-1_1 {
  width: 164px;
  aspect-ratio: 1 / 1;
  padding: 9px;
}

.v-cat-vtmpl-frame.is-ratio-4_5 {
  width: 138px;
  aspect-ratio: 4 / 5;
  padding: 8px;
}

.v-cat-vtmpl-frame.is-theme-tekstil {
  --vt-bg: #18141E;
  --vt-border: rgba(219, 39, 119, 0.34);
  --vt-accent: #DB2777;
  --vt-hook-bg: #9D174D;
  --vt-hook-fg: #FDF2F8;
  --vt-slide-bg: #231A2B;
  --vt-slide-border: rgba(219, 39, 119, 0.22);
  --vt-pill-bg: #26192C;
  --vt-pill-fg: #FBCFE8;
}

.v-cat-vtmpl-frame.is-theme-ayakkabi_canta {
  --vt-bg: #191613;
  --vt-border: rgba(217, 119, 6, 0.34);
  --vt-accent: #D97706;
  --vt-hook-bg: #92400E;
  --vt-hook-fg: #FFFBEB;
  --vt-slide-bg: #25201A;
  --vt-slide-border: rgba(217, 119, 6, 0.22);
  --vt-pill-bg: #262018;
  --vt-pill-fg: #FDE68A;
}

.v-cat-vtmpl-frame.is-theme-ev_yasam {
  --vt-bg: #121B19;
  --vt-border: rgba(5, 150, 105, 0.34);
  --vt-accent: #059669;
  --vt-hook-bg: #065F46;
  --vt-hook-fg: #ECFDF5;
  --vt-slide-bg: #182522;
  --vt-slide-border: rgba(5, 150, 105, 0.22);
  --vt-pill-bg: #152521;
  --vt-pill-fg: #A7F3D0;
}

.v-cat-vtmpl-frame.is-theme-kozmetik {
  --vt-bg: #171522;
  --vt-border: rgba(124, 58, 237, 0.34);
  --vt-accent: #7C3AED;
  --vt-hook-bg: #5B21B6;
  --vt-hook-fg: #F5F3FF;
  --vt-slide-bg: #211D30;
  --vt-slide-border: rgba(124, 58, 237, 0.22);
  --vt-pill-bg: #201B30;
  --vt-pill-fg: #DDD6FE;
}

.v-cat-vtmpl-frame.is-theme-taki_aksesuar {
  --vt-bg: #151412;
  --vt-border: rgba(202, 138, 4, 0.36);
  --vt-accent: #CA8A04;
  --vt-hook-bg: #854D0E;
  --vt-hook-fg: #FEFCE8;
  --vt-slide-bg: #201E19;
  --vt-slide-border: rgba(202, 138, 4, 0.24);
  --vt-pill-bg: #211E17;
  --vt-pill-fg: #FEF08A;
}

.v-cat-vtmpl-frame.is-theme-gida {
  --vt-bg: #1B1512;
  --vt-border: rgba(234, 88, 12, 0.34);
  --vt-accent: #EA580C;
  --vt-hook-bg: #9A3412;
  --vt-hook-fg: #FFF7ED;
  --vt-slide-bg: #281E1A;
  --vt-slide-border: rgba(234, 88, 12, 0.22);
  --vt-pill-bg: #291E18;
  --vt-pill-fg: #FED7AA;
}

.v-cat-vtmpl-frame.is-theme-pazaryeri {
  --vt-bg: #111923;
  --vt-border: rgba(15, 157, 142, 0.36);
  --vt-accent: #0F9D8E;
  --vt-hook-bg: #0F766E;
  --vt-hook-fg: #F0FDFA;
  --vt-slide-bg: #182331;
  --vt-slide-border: rgba(15, 157, 142, 0.24);
  --vt-pill-bg: #142230;
  --vt-pill-fg: #99F6E4;
}

.v-cat-vtmpl-hook {
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--vt-hook-bg);
  color: var(--vt-hook-fg);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 0;
}

.v-cat-vtmpl-slides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  flex: 1 1 auto;
  min-height: 48px;
  align-items: stretch;
  min-width: 0;
}

.v-cat-vtmpl-slide {
  border-radius: 5px;
  background: var(--vt-slide-bg);
  border: 1px solid var(--vt-slide-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  min-width: 0;
  overflow: hidden;
  color: var(--vt-pill-fg);
  font-size: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v-cat-vtmpl-slide:first-child {
  border-color: var(--vt-accent);
}

.v-cat-vtmpl-play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  align-self: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--vt-pill-bg);
  border: 1px solid var(--vt-border);
  color: var(--vt-pill-fg);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-cat-vtmpl-play-pill > svg {
  flex-shrink: 0;
}

.v-cat-vtmpl-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-cat-vtmpl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-cat-vtmpl-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  word-break: break-word;
}

.v-cat-vtmpl-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-cat-vtmpl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  min-width: 0;
}

.v-cat-vtmpl-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-vtmpl-actions > .mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* Studio Scene Picker & Ordering (Video Stüdyosu) */
.v-cat-studio-template-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  font-size: 12.5px;
  line-height: 1.4;
  min-width: 0;
}

.v-cat-studio-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-cat-scene-box {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-cat-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-cat-scene-selected {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-cat-scene-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  min-width: 0;
  transition: border-color 150ms ease;
}

.v-cat-scene-item:hover {
  border-color: var(--border-strong);
}

.v-cat-scene-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-cat-scene-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  flex-shrink: 0;
}

.v-cat-scene-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-cat-scene-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-cat-scene-info strong,
.v-cat-scene-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cat-scene-info span,
.v-cat-scene-price {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cat-scene-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.v-cat-scene-btns > .mtk-btn {
  padding: 4px 6px;
  min-height: 26px;
}

.v-cat-scene-picker-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
  min-width: 0;
}

.v-cat-scene-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  min-width: 0;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.v-cat-scene-pick-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-cat-scene-pick-row.is-picked {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.v-cat-phone-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
}

/* Video Library (Oluşturulan Videolar) */
.v-cat-vlib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
  gap: 16px;
  min-width: 0;
}

.v-cat-vlib-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: border-color 150ms ease;
}

.v-cat-vlib-card:hover {
  border-color: var(--border-strong);
}

.v-cat-vlib-card.is-archived {
  background: var(--bg-subtle);
  border-style: dashed;
  border-color: var(--border-strong);
  opacity: 0.86;
}

.v-cat-vlib-card.is-archived:hover {
  opacity: 1;
}

.v-cat-vlib-media {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.v-cat-vlib-video {
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: #090d14;
  object-fit: contain;
  display: block;
}

.v-cat-vlib-failed-box {
  width: 100%;
  min-height: 184px;
  padding: 18px 16px;
  border-radius: 8px;
  border: 1px dashed var(--status-danger-border);
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
}

.v-cat-vlib-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-cat-vlib-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-cat-vlib-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  word-break: break-word;
}

.v-cat-vlib-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.v-cat-vlib-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-cat-vlib-actions-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.v-cat-vlib-actions-secondary > .mtk-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.v-cat-vlib-actions-secondary > .mtk-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.v-cat-vlib-actions-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.v-cat-vlib-actions-primary > .mtk-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.v-cat-vmodal-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-cat-vmodal-player {
  width: 100%;
  max-height: 66vh;
  border-radius: 10px;
  background: #090d14;
  display: block;
  object-fit: contain;
}

/* Light Theme Contrast Adjustments (V3 Faz 13) */
html[data-theme="light"] .v-cat-vtmpl-card,
html[data-theme="light"] .v-cat-vlib-card {
  background: #FFFFFF;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-cat-vlib-card.is-archived {
  background: #F8FAFC;
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-cat-vtmpl-stage,
html[data-theme="light"] .v-cat-vlib-media {
  background: #EEF1F6;
  border-bottom-color: var(--border-default);
}

html[data-theme="light"] .v-cat-vtmpl-frame {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .v-cat-studio-template-banner {
  background: #ECFDF8;
  border-color: #A7F3D0;
  color: #0F172A;
}

html[data-theme="light"] .v-cat-scene-box,
html[data-theme="light"] .v-cat-phone-meta-strip {
  background: #F8FAFC;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-cat-scene-item,
html[data-theme="light"] .v-cat-scene-pick-row {
  background: #FFFFFF;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-cat-scene-pick-row:hover {
  background: #F3F4F6;
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-cat-scene-pick-row.is-picked {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-cat-scene-thumb {
  background: #F1F5F9;
  border-color: var(--border-default);
}

/* Responsive Breakpoints (V3 Faz 13) */
@media (max-width: 640px) {
  .v-cat-vtmpl-grid,
  .v-cat-vlib-grid,
  .v-cat-studio-meta-grid {
    grid-template-columns: 1fr;
  }

  .v-cat-studio-template-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   V3 Faz 14 — AI Sales Assistant, Mini CRM & Meta CAPI
   Calm corporate surfaces, dark default + crisp light parity, zero inline styles
   ========================================================================== */

/* Shell & Feedback Bars */
.v-crm-root {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  color: var(--text-primary);
}

.v-crm-hidden {
  display: none !important;
}

.v-crm-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-error-bar {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  color: var(--status-danger-text);
  font-size: 13px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

/* KPI Strip (4 Equal-Height Corporate Cards) */
.v-crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.v-crm-kpi-grid > * {
  min-width: 0;
}

.v-crm-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-crm-kpi-card:hover {
  border-color: var(--border-strong);
}

.v-crm-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-crm-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.v-crm-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-crm-kpi-icon.is-accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-crm-kpi-icon.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-crm-kpi-icon.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-crm-kpi-icon.is-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-crm-kpi-val {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-crm-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top Toolbar & Tabs */
.v-crm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-crm-tabs::-webkit-scrollbar {
  display: none;
}

.v-crm-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-crm-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-crm-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-crm-tab.is-active,
.v-crm-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-crm-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-crm-tab.is-active .v-crm-tab-count,
.v-crm-tab[aria-selected="true"] .v-crm-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-crm-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-crm-credit-pill:hover {
  border-color: var(--accent-border);
  background: var(--bg-elevated);
}

.v-crm-credit-pill:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-crm-credit-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

/* Tab 1 — Unified Inbox & Thread Layout */
.v-crm-inbox-grid {
  display: grid;
  grid-template-columns: minmax(300px, 356px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.v-crm-inbox-grid > * {
  min-width: 0;
}

.v-crm-list-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.v-crm-list-head {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-crm-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-filter-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-crm-filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-crm-filter-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-crm-filter-chip.is-active,
.v-crm-filter-chip[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-crm-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.v-crm-filter-chip.is-active .v-crm-pill-count,
.v-crm-filter-chip[aria-pressed="true"] .v-crm-pill-count {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

.v-crm-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.v-crm-search-icon {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.v-crm-search-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding-left: 34px;
  padding-right: 32px;
  font-size: 13px;
}

.v-crm-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.v-crm-search-clear {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-crm-search-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-crm-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
  color: var(--text-primary);
}

.v-crm-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-crm-select-sm {
  width: 100%;
  min-width: 0;
  height: 34px;
  font-size: 12.5px;
  padding: 0 28px 0 10px;
}

.v-crm-stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.v-crm-pill-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-crm-pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-crm-pill-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-crm-pill-btn.is-active,
.v-crm-pill-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-crm-lead-list {
  max-height: 620px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  min-width: 0;
}

.v-crm-lead-card {
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-crm-lead-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-crm-lead-card:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-crm-lead-card.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.v-crm-lead-card.is-archived {
  border-style: dashed;
  border-color: var(--border-strong);
  opacity: 0.84;
}

.v-crm-lead-card.is-archived:hover,
.v-crm-lead-card.is-archived.is-selected {
  opacity: 1;
}

.v-crm-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-crm-lead-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.v-crm-lead-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.v-crm-ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  white-space: nowrap;
}

.v-crm-code-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--ch-ai-bg);
  border: 1px solid var(--ch-ai-border);
  color: var(--ch-ai);
  overflow-wrap: anywhere;
  max-width: 100%;
}

.v-crm-lead-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.v-crm-lead-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

/* Right Thread Panel */
.v-crm-thread-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.v-crm-thread-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-thread-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 240px;
}

.v-crm-thread-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-thread-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.v-crm-thread-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.v-crm-thread-notes {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 7px 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  margin-top: 2px;
}

.v-crm-thread-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-stage-select {
  width: auto;
  min-width: 128px;
  height: 34px;
  font-size: 12.5px;
  padding: 0 28px 0 10px;
}

.v-crm-archived-banner {
  margin: 14px 20px 0;
  padding: 11px 14px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning-text);
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-ai-banner {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-ai-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-primary);
  min-width: 0;
}

.v-crm-messages {
  padding: 18px 20px;
  min-height: 300px;
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-subtle);
  min-width: 0;
}

.v-crm-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  min-width: 0;
}

.v-crm-msg-row.is-inbound {
  align-self: flex-start;
  align-items: flex-start;
}

.v-crm-msg-row.is-outbound {
  align-self: flex-end;
  align-items: flex-end;
}

.v-crm-msg-row.is-system {
  align-self: center;
  align-items: center;
  max-width: 92%;
}

.v-crm-bubble {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.v-crm-msg-row.is-inbound .v-crm-bubble {
  background: var(--bg-surface);
  border-color: var(--border-default);
  border-bottom-left-radius: 4px;
}

.v-crm-msg-row.is-outbound-ai .v-crm-bubble {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  border-bottom-right-radius: 4px;
}

.v-crm-msg-row.is-outbound-human .v-crm-bubble {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  border-bottom-right-radius: 4px;
}

.v-crm-msg-row.is-system .v-crm-bubble {
  background: var(--bg-muted);
  border-color: var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.v-crm-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  min-width: 0;
}

.v-crm-msg-err {
  font-size: 11.5px;
  color: var(--status-danger-text);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.v-crm-msg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.v-crm-msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.v-crm-draft-strip {
  margin-top: 6px;
  padding: 8px 11px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning-text);
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

/* Composer */
.v-crm-composer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
  min-width: 0;
}

.v-crm-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  gap: 3px;
  flex-wrap: wrap;
  max-width: 100%;
}

.v-crm-mode-btn {
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-crm-mode-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-crm-mode-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-crm-mode-btn.is-active,
.v-crm-mode-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-crm-mode-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.v-crm-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Empty States */
.v-crm-empty-box {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  min-width: 0;
}

.v-crm-empty-thread {
  min-height: 420px;
}

.v-crm-empty-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-crm-empty-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 340px;
}

/* Tab 2 — Sales Pipeline */
.v-crm-pipe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-pipeline-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  min-width: 0;
}

.v-crm-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-crm-pipe-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.v-crm-pipe-head {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-table-head);
}

.v-crm-pipe-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-crm-pipe-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-crm-pipe-sum {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-crm-pipe-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  min-width: 0;
}

.v-crm-pipe-card {
  padding: 10px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-crm-pipe-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-crm-pipe-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-crm-pipe-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.v-crm-pipe-empty {
  padding: 24px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-control);
}

.v-crm-lost-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-crm-lost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  min-width: 0;
}

/* Tab 3 — Meta CAPI Log */
.v-crm-capi-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.v-crm-capi-table-scroll {
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.v-crm-capi-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-crm-capi-head-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 260px;
}

.v-crm-capi-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-capi-filters > .v-crm-select-sm {
  width: auto;
  min-width: 150px;
}

.v-crm-table-date {
  white-space: nowrap;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}

.v-crm-table-lead {
  overflow-wrap: anywhere;
  font-weight: 500;
  color: var(--text-primary);
}

.v-crm-json-pre {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}

/* Tab 4 — Settings & Modals */
.v-crm-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-crm-settings-grid > * {
  min-width: 0;
}

.v-crm-settings-grid .mtk-field,
.v-crm-form-row2 .mtk-field,
.v-crm-settings-grid .mtk-select,
.v-crm-form-row2 .mtk-select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.v-crm-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-crm-form-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-crm-form-row2 > * {
  min-width: 0;
}

.v-crm-webhook-box {
  padding: 11px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-mono-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 1 1 200px;
  min-width: 0;
}

.v-crm-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.v-crm-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.v-crm-token-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-crm-token-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-crm-footer-spacer {
  margin-right: auto;
}

/* Light Theme Parity (V3 Faz 14) */
html[data-theme="light"] .v-crm-kpi-card,
html[data-theme="light"] .v-crm-list-panel,
html[data-theme="light"] .v-crm-thread-panel,
html[data-theme="light"] .v-crm-pipe-col,
html[data-theme="light"] .v-crm-lost-section,
html[data-theme="light"] .v-crm-capi-panel,
html[data-theme="light"] .v-crm-credit-pill {
  background: #FFFFFF;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-crm-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-crm-tab.is-active,
html[data-theme="light"] .v-crm-tab[aria-selected="true"],
html[data-theme="light"] .v-crm-mode-btn.is-active,
html[data-theme="light"] .v-crm-mode-btn[aria-pressed="true"] {
  background: #FFFFFF;
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-crm-lead-card,
html[data-theme="light"] .v-crm-pipe-card {
  background: #F9FAFB;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-crm-lead-card:hover,
html[data-theme="light"] .v-crm-pipe-card:hover {
  background: #FFFFFF;
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-crm-lead-card.is-selected {
  background: #ECFDF8;
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-crm-ch-pill {
  background: #FFFFFF;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-crm-messages {
  background: #F7F8FA;
}

html[data-theme="light"] .v-crm-msg-row.is-inbound .v-crm-bubble {
  background: #FFFFFF;
  border-color: var(--border-default);
}

html[data-theme="light"] .v-crm-msg-row.is-outbound-ai .v-crm-bubble {
  background: #ECFDF8;
  border-color: #A7F3D0;
}

html[data-theme="light"] .v-crm-msg-row.is-outbound-human .v-crm-bubble {
  background: #EEF1F6;
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-crm-ai-banner {
  background: #ECFDF8;
  border-color: #A7F3D0;
  color: #0F172A;
}

html[data-theme="light"] .v-crm-archived-banner,
html[data-theme="light"] .v-crm-draft-strip {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
}

html[data-theme="light"] .v-crm-json-pre,
html[data-theme="light"] .v-crm-webhook-box,
html[data-theme="light"] .v-crm-thread-notes {
  background: #F8FAFC;
  border-color: var(--border-default);
}

/* Responsive Breakpoints (V3 Faz 14) */
@media (max-width: 1180px) {
  .v-crm-pipeline-grid {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }
}

@media (max-width: 1080px) {
  .v-crm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-crm-inbox-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-crm-lead-list {
    max-height: 300px;
  }

  .v-crm-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .v-crm-root {
    gap: 14px;
  }

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

  .v-crm-kpi-card {
    padding: 12px 13px;
  }

  .v-crm-kpi-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .v-crm-kpi-val {
    font-size: 19px;
  }

  .v-crm-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-crm-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .v-crm-tab {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .v-crm-tab > span:not(.v-crm-tab-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .v-crm-topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .v-crm-filter-row,
  .v-crm-form-row2,
  .v-crm-lost-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-crm-thread-head,
  .v-crm-messages,
  .v-crm-composer,
  .v-crm-capi-toolbar {
    padding: 14px;
  }

  .v-crm-ai-banner,
  .v-crm-archived-banner {
    margin: 12px 14px 0;
  }

  .v-crm-msg-row {
    max-width: 94%;
  }

  .v-crm-thread-actions {
    width: 100%;
  }

  .v-crm-stage-select {
    flex: 1 1 120px;
  }

  .v-crm-composer-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .v-crm-composer-footer > .mtk-btn {
    width: 100%;
    justify-content: center;
  }

  .v-crm-capi-filters {
    width: 100%;
  }

  .v-crm-capi-filters > .v-crm-select-sm {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* ==========================================================================
   V3 Faz 15 — Web SEO & GEO Autopilot (#/seo-geo)
   Calm corporate surfaces, dark default + crisp light parity, zero inline styles
   ========================================================================== */

/* Shell, Utility & Banners */
.v-seo-root {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  color: var(--text-primary);
}

.v-seo-hidden {
  display: none !important;
}

.v-seo-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-error-bar {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  color: var(--status-danger-text);
  font-size: 13px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-archived-banner {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--status-warning-text);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Site Switcher & Status Bar */
.v-seo-site-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-site-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 320px;
  min-width: 0;
}

.v-seo-filter-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-seo-filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-seo-filter-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-seo-filter-chip.is-active,
.v-seo-filter-chip[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-seo-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.v-seo-filter-chip.is-active .v-seo-pill-count,
.v-seo-filter-chip[aria-pressed="true"] .v-seo-pill-count {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

.v-seo-site-select {
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 220px;
  height: 34px;
  font-size: 13px;
  padding: 0 28px 0 11px;
}

.v-seo-site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

/* KPI Strip (4 Equal-Height Corporate Cards) */
.v-seo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.v-seo-kpi-grid > * {
  min-width: 0;
}

.v-seo-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-seo-kpi-card:hover {
  border-color: var(--border-strong);
}

.v-seo-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-seo-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.v-seo-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-seo-kpi-icon.is-accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-seo-kpi-icon.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-seo-kpi-icon.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-seo-kpi-icon.is-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-seo-kpi-val {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-seo-kpi-val.is-pass {
  color: var(--status-success-text);
}

.v-seo-kpi-val.is-warn {
  color: var(--status-warning-text);
}

.v-seo-kpi-val.is-fail {
  color: var(--status-danger-text);
}

.v-seo-kpi-denom {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 2px;
}

.v-seo-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Topbar & 5-Tab Bar */
.v-seo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-seo-tabs::-webkit-scrollbar {
  display: none;
}

.v-seo-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-seo-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-seo-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-seo-tab.is-active,
.v-seo-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-seo-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-seo-tab.is-active .v-seo-tab-count,
.v-seo-tab[aria-selected="true"] .v-seo-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-seo-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-seo-credit-pill:hover {
  border-color: var(--accent-border);
  background: var(--bg-elevated);
}

.v-seo-credit-pill:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-seo-credit-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

/* Status & Semantic Pills */
.v-seo-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.v-seo-status-pill.is-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-seo-status-pill.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-seo-status-pill.is-fail {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-seo-status-pill.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-seo-status-pill.is-neutral {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

/* Shared Stack / Action Helpers */
.v-seo-col-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-seo-card-body-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-seo-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Tab 1 — 25-Criterion Technical Audit */
.v-seo-audit-grid {
  display: grid;
  grid-template-columns: minmax(320px, 372px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-seo-audit-grid > * {
  min-width: 0;
}

.v-seo-score-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}

.v-seo-score-ring {
  position: relative;
  width: 124px;
  height: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-seo-score-ring svg {
  width: 124px;
  height: 124px;
  transform: rotate(-90deg);
  filter: none;
}

.v-seo-ring-track {
  fill: none;
  stroke: var(--border-default);
  stroke-width: 8;
}

.v-seo-ring-arc {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--duration-base) var(--ease-out);
}

.v-seo-ring-arc.is-pass {
  stroke: var(--status-success);
}

.v-seo-ring-arc.is-warn {
  stroke: var(--status-warning);
}

.v-seo-ring-arc.is-fail {
  stroke: var(--status-danger);
}

.v-seo-ring-arc.is-neutral {
  stroke: var(--text-faint);
}

.v-seo-score-val {
  position: absolute;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-seo-score-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* SERP Preview & Native Progress Gauges */
.v-seo-serp-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.v-seo-serp-url {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.v-seo-serp-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v-seo-serp-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v-seo-gauge-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.v-seo-gauge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-seo-progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--border-default);
  overflow: hidden;
}

.v-seo-progress::-webkit-progress-bar {
  background-color: var(--border-default);
  border-radius: var(--radius-pill);
}

.v-seo-progress::-webkit-progress-value {
  background-color: var(--accent-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-out);
}

.v-seo-progress::-moz-progress-bar {
  background-color: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.v-seo-progress.is-pass::-webkit-progress-value {
  background-color: var(--status-success);
}

.v-seo-progress.is-pass::-moz-progress-bar {
  background-color: var(--status-success);
}

.v-seo-progress.is-warn::-webkit-progress-value {
  background-color: var(--status-warning);
}

.v-seo-progress.is-warn::-moz-progress-bar {
  background-color: var(--status-warning);
}

.v-seo-progress.is-fail::-webkit-progress-value {
  background-color: var(--status-danger);
}

.v-seo-progress.is-fail::-moz-progress-bar {
  background-color: var(--status-danger);
}

.v-seo-progress.is-accent::-webkit-progress-value {
  background-color: var(--accent-primary);
}

.v-seo-progress.is-accent::-moz-progress-bar {
  background-color: var(--accent-primary);
}

/* Heading Breakdown & Content Keyword Chips */
.v-seo-h-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  min-width: 0;
}

.v-seo-h-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.v-seo-h-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}

.v-seo-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.v-seo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-primary);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.v-seo-chip-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Criteria Filter Pills & 25-Point List */
.v-seo-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-pill-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-seo-pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-seo-pill-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-seo-pill-btn.is-active,
.v-seo-pill-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-seo-criteria-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-seo-criterion {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-seo-criterion:first-child {
  padding-top: 4px;
}

.v-seo-criterion:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.v-seo-criterion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-criterion-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.v-seo-criterion-num {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-seo-criterion-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-criterion-val {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.v-seo-criterion-detail {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v-seo-criterion-rec {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Diagnostics Grid (Missing Alt, Broken Links, Audit History) */
.v-seo-diag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.v-seo-diag-grid > * {
  min-width: 0;
}

.v-seo-diag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  min-width: 0;
}

.v-seo-diag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
}

.v-seo-diag-row.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--text-primary);
}

.v-seo-diag-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 210px;
}

.v-seo-diag-row.is-danger .v-seo-diag-mono {
  color: var(--text-primary);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: none;
}

/* Tab 2 (GSC) & Tab 3 (Keywords) — Bars, Two-Col & Table Panels */
.v-seo-bar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  min-width: 0;
}

.v-seo-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-select-sm {
  width: auto;
  min-width: 120px;
  height: 34px;
  font-size: 12.5px;
  padding: 0 28px 0 10px;
}

.v-seo-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-seo-two-col > * {
  min-width: 0;
}

.v-seo-table-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.v-seo-table-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-table-scroll {
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.v-seo-cell-strong {
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.v-seo-cell-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.v-seo-cell-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.v-seo-cell-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-secondary);
}

.v-seo-cell-upside {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  color: var(--status-success-text);
}

/* Tab 4 — AI Article Studio, Search & Filters */
.v-seo-gsc-banner {
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.45;
  min-width: 0;
}

.v-seo-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-seo-form-stack .mtk-input[readonly] {
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

.v-seo-form-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.v-seo-form-row2 > * {
  min-width: 0;
}

.v-seo-art-grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.v-seo-art-grid-4 > * {
  min-width: 0;
}

.v-seo-form-row2 .mtk-field,
.v-seo-art-grid-4 .mtk-field {
  gap: 6px;
  min-width: 0;
}

.v-seo-form-row2 .mtk-label,
.v-seo-art-grid-4 .mtk-label {
  line-height: 1.35;
}

.v-seo-form-row2 .mtk-input,
.v-seo-form-row2 .mtk-select,
.v-seo-art-grid-4 .mtk-input,
.v-seo-art-grid-4 .mtk-select {
  height: 38px;
  line-height: 1.35;
  box-sizing: border-box;
}

.v-seo-art-grid-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.v-seo-art-grid-submit > * {
  min-width: 0;
}

.v-seo-article-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 360px;
}

.v-seo-search-icon {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.v-seo-search-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding-left: 34px;
  padding-right: 32px;
  font-size: 13px;
}

.v-seo-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.v-seo-search-clear {
  position: absolute;
  right: 5px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-seo-search-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-seo-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
  color: var(--text-primary);
}

.v-seo-row-clickable {
  cursor: pointer;
  transition: background-color var(--duration-fast);
}

.v-seo-row-clickable:hover td {
  background: var(--bg-hover);
}

.v-seo-row-archived {
  opacity: 0.78;
}

.v-seo-row-archived:hover {
  opacity: 1;
}

.v-seo-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.v-seo-inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

/* Tab 5 — GEO & Technical Tools */
.v-seo-bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 9px;
  min-width: 0;
}

.v-seo-bot-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-primary);
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-seo-bot-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-seo-bot-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.v-seo-bot-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-seo-code-box {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
  max-height: 220px;
  overflow: auto;
  margin: 0;
  white-space: pre;
  min-width: 0;
}

.v-seo-warn-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  min-width: 0;
}

.v-seo-schema-details {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  padding: 13px 16px;
  min-width: 0;
}

.v-seo-schema-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

.v-seo-schema-summary::-webkit-details-marker {
  display: none;
}

.v-seo-schema-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-seo-schema-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modals (Site Settings & XL Article Editor) */
.v-seo-modal-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-seo-modal-meta-list {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.v-seo-modal-section-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.v-seo-critic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 9px;
  min-width: 0;
}

.v-seo-critic-item {
  padding: 9px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 0;
}

.v-seo-improvements-box {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
  min-width: 0;
}

.v-seo-improvements-box ul {
  margin: 6px 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-seo-modal-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.v-seo-modal-grid-2 > * {
  min-width: 0;
}

.v-seo-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  min-width: 0;
}

.v-seo-char-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-seo-textarea-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
}

.v-seo-article-preview {
  padding: 18px 20px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.7;
  max-height: 440px;
  overflow-x: auto;
  overflow-y: auto;
  min-width: 0;
}

.v-seo-article-preview h1,
.v-seo-article-preview h2,
.v-seo-article-preview h3 {
  color: var(--text-primary);
  margin: 16px 0 8px;
  line-height: 1.35;
}

.v-seo-article-preview h1 {
  font-size: 20px;
  margin-top: 0;
}

.v-seo-article-preview h2 {
  font-size: 17px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.v-seo-article-preview h3 {
  font-size: 15px;
}

.v-seo-article-preview p {
  margin: 0 0 10px;
}

.v-seo-article-preview ul,
.v-seo-article-preview ol {
  margin: 8px 0 12px 20px;
  padding: 0;
}

.v-seo-article-preview blockquote {
  margin: 12px 0;
  padding: 11px 15px;
  border-left: 3px solid var(--accent-primary);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  color: var(--text-primary);
}

.v-seo-article-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}

.v-seo-article-preview th,
.v-seo-article-preview td {
  padding: 8px 10px;
  border: 1px solid var(--border-default);
  text-align: left;
}

.v-seo-article-preview th {
  background: var(--bg-table-head);
  font-weight: 600;
}

.v-seo-article-preview a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.v-seo-confirm-box {
  padding: 13px 15px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  cursor: pointer;
  min-width: 0;
}

.v-seo-confirm-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.v-seo-result-box {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--accent-border);
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.v-seo-result-err {
  color: var(--status-danger-text);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.v-seo-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.v-seo-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.v-seo-token-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-seo-token-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-seo-footer-spacer {
  margin-right: auto;
}

/* Empty States */
.v-seo-empty-box {
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  min-width: 0;
}

.v-seo-empty-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-seo-empty-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-seo-empty-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.v-seo-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Light Theme Parity (V3 Faz 15) */
html[data-theme="light"] .v-seo-site-bar,
html[data-theme="light"] .v-seo-kpi-card,
html[data-theme="light"] .v-seo-score-card,
html[data-theme="light"] .v-seo-bar-card,
html[data-theme="light"] .v-seo-table-panel,
html[data-theme="light"] .v-seo-credit-pill {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-seo-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-seo-tab:not(.is-active):hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

html[data-theme="light"] .v-seo-tab.is-active,
html[data-theme="light"] .v-seo-tab[aria-selected="true"] {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-seo-filter-chip:not(.is-active):hover,
html[data-theme="light"] .v-seo-pill-btn:not(.is-active):hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

html[data-theme="light"] .v-seo-serp-box,
html[data-theme="light"] .v-seo-code-box,
html[data-theme="light"] .v-seo-schema-details,
html[data-theme="light"] .v-seo-modal-meta-bar,
html[data-theme="light"] .v-seo-critic-item,
html[data-theme="light"] .v-seo-article-preview,
html[data-theme="light"] .v-seo-result-box,
html[data-theme="light"] .v-seo-diag-row,
html[data-theme="light"] .v-seo-bot-toggle {
  background: var(--gray-100);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-seo-diag-row.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

html[data-theme="light"] .v-seo-gsc-banner {
  background: var(--ch-cyan-bg);
  border-color: var(--ch-cyan-border);
  color: var(--text-primary);
}

html[data-theme="light"] .v-seo-archived-banner,
html[data-theme="light"] .v-seo-warn-box,
html[data-theme="light"] .v-seo-confirm-box,
html[data-theme="light"] .v-seo-improvements-box {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

html[data-theme="light"] .v-seo-confirm-box,
html[data-theme="light"] .v-seo-warn-box,
html[data-theme="light"] .v-seo-improvements-box {
  color: var(--text-primary);
}

/* Responsive Breakpoints (V3 Faz 15) */
@media (max-width: 1080px) {
  .v-seo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-seo-audit-grid,
  .v-seo-two-col,
  .v-seo-diag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-seo-art-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .v-seo-root {
    gap: 14px;
  }

  .v-seo-site-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .v-seo-site-bar-left {
    flex: 1 1 auto;
  }

  .v-seo-site-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .v-seo-site-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .v-seo-kpi-card {
    padding: 12px 13px;
  }

  .v-seo-kpi-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .v-seo-kpi-val {
    font-size: 19px;
  }

  .v-seo-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-seo-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .v-seo-tab {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .v-seo-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .v-seo-tab > span:not(.v-seo-tab-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .v-seo-topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .v-seo-bar-card {
    padding: 14px;
  }

  .v-seo-table-head,
  .v-seo-article-toolbar {
    padding: 13px 14px;
  }

  .v-seo-search-wrap {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .v-seo-bar-controls {
    width: 100%;
  }

  .v-seo-bar-controls > .v-seo-select-sm {
    flex: 1 1 140px;
    min-width: 0;
  }

  .v-seo-art-grid-4,
  .v-seo-art-grid-submit,
  .v-seo-form-row2,
  .v-seo-modal-grid-2,
  .v-seo-bot-grid,
  .v-seo-critic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-seo-diag-mono {
    max-width: 140px;
  }

  .v-seo-empty-box {
    padding: 32px 16px;
  }
}

/* ==========================================================================
   V3 Faz 16 — Harita SEO & GEO (.v-maps-*)
   Calm corporate surfaces, dark default + crisp light parity, zero inline styles
   ========================================================================== */

/* Shell, Visibility & Utility Helpers */
.v-maps-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 96px;
  min-width: 0;
  max-width: 100%;
  color: var(--text-primary);
}

.v-maps-hidden {
  display: none !important;
}

.v-maps-btn-link {
  text-decoration: none;
}

.v-maps-btn-center {
  justify-content: center;
}

/* Uniform Control Alignment for Side-by-Side Inputs & Selects */
.v-maps-root .mtk-input,
.v-maps-form-stack .mtk-input,
.v-maps-modal-stack .mtk-input,
.v-maps-modal-grid-2 .mtk-input {
  min-height: 36px;
  height: 36px;
  box-sizing: border-box;
}

.v-maps-root .mtk-select,
.v-maps-form-stack .mtk-select,
.v-maps-modal-stack .mtk-select,
.v-maps-modal-grid-2 .mtk-select {
  min-height: 36px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 28px 0 12px;
}

.v-maps-loc-select-wrap .mtk-select,
.v-maps-filter-bar .mtk-input,
.v-maps-filter-bar .mtk-select,
.v-maps-filter-bar .v-maps-search-input,
.v-maps-filter-bar .v-maps-filter-select {
  min-height: 34px;
  height: 34px;
  box-sizing: border-box;
}

.v-maps-loc-select-wrap .mtk-select,
.v-maps-filter-bar .mtk-select,
.v-maps-filter-bar .v-maps-filter-select {
  padding: 0 28px 0 11px;
}

/* Role & Archived State Bars */
.v-maps-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-archived-bar {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--status-warning-text);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Location Switcher & Status Filter Bar */
.v-maps-loc-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.v-maps-loc-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 1 1 240px;
  min-width: 0;
}

.v-maps-loc-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.v-maps-loc-bar-right .mtk-btn-sm {
  padding: 0 10px;
}

.v-maps-loc-bar-right .v-maps-credit-pill {
  padding: 0 10px;
  gap: 5px;
}

.v-maps-loc-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 180px;
  max-width: 280px;
  min-width: 140px;
}

.v-maps-loc-select-wrap .mtk-select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}

.v-maps-status-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-chip {
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-maps-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-maps-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-maps-chip.is-active,
.v-maps-chip[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Toolbar, Tabs & Live Credit Pill */
.v-maps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-maps-tabs::-webkit-scrollbar {
  display: none;
}

.v-maps-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-maps-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-maps-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-maps-tab.is-active,
.v-maps-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-maps-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-maps-tab.is-active .v-maps-tab-count,
.v-maps-tab[aria-selected="true"] .v-maps-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-maps-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-maps-credit-pill:hover {
  border-color: var(--accent-border);
  background: var(--bg-elevated);
}

.v-maps-credit-pill:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

/* Empty State */
.v-maps-empty {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  min-width: 0;
}

.v-maps-empty-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-maps-empty-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-maps-empty-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.v-maps-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* KPI Strip (4 Equal Columns) */
.v-maps-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.v-maps-kpi-grid > * {
  min-width: 0;
}

.v-maps-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-maps-kpi-card:hover {
  border-color: var(--border-strong);
}

.v-maps-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 0;
}

.v-maps-kpi-val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-kpi-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.v-maps-kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Tab 1 — Audit Layout, Checks, Progress & JSON-LD Schema */
.v-maps-audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-maps-audit-grid > * {
  min-width: 0;
}

.v-maps-col-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-maps-card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-check-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-maps-check-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-maps-check-row:first-child {
  padding-top: 2px;
}

.v-maps-check-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.v-maps-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-check-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-check-index {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-maps-check-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.v-maps-check-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v-maps-check-score {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-maps-check-detail {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v-maps-check-action {
  font-size: 12px;
  color: var(--accent-primary);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.v-maps-action-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-maps-action-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-maps-action-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.v-maps-action-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Native Progress Bar */
.v-maps-progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--border-default);
  overflow: hidden;
}

.v-maps-progress::-webkit-progress-bar {
  background-color: var(--border-default);
  border-radius: var(--radius-pill);
}

.v-maps-progress::-webkit-progress-value {
  background-color: var(--accent-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-out);
}

.v-maps-progress::-moz-progress-bar {
  background-color: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.v-maps-progress.is-pass::-webkit-progress-value {
  background-color: var(--status-success);
}

.v-maps-progress.is-pass::-moz-progress-bar {
  background-color: var(--status-success);
}

.v-maps-progress.is-warn::-webkit-progress-value {
  background-color: var(--status-warning);
}

.v-maps-progress.is-warn::-moz-progress-bar {
  background-color: var(--status-warning);
}

.v-maps-progress.is-fail::-webkit-progress-value {
  background-color: var(--status-danger);
}

.v-maps-progress.is-fail::-moz-progress-bar {
  background-color: var(--status-danger);
}

/* Collapsible LocalBusiness JSON-LD Schema */
.v-maps-schema-details {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  padding: 13px 16px;
  min-width: 0;
}

.v-maps-schema-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

.v-maps-schema-summary::-webkit-details-marker {
  display: none;
}

.v-maps-schema-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-maps-schema-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-maps-schema-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.v-maps-schema-pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 12px 14px;
}

/* 300 DPI QR Review Card Panel */
.v-maps-qr-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-maps-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-maps-qr-img {
  width: 100%;
  max-width: 232px;
  aspect-ratio: 1240 / 1748;
  object-fit: contain;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.v-maps-qr-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-maps-qr-code-box {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.45;
}

.v-maps-qr-template-box {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.v-maps-dpi-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Tab 2 — 5x5 GeoGrid Matrix, Point Detail, Spam Radar & Scan History */
.v-maps-geogrid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-maps-geogrid-layout > * {
  min-width: 0;
}

.v-maps-geogrid-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-maps-geogrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.v-maps-geo-cell {
  aspect-ratio: 1 / 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-maps-geo-cell:hover {
  border-color: var(--border-strong);
}

.v-maps-geo-cell:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

.v-maps-geo-cell.rank-top {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-maps-geo-cell.rank-mid {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-maps-geo-cell.rank-low {
  background-color: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-maps-geo-cell.rank-pending {
  background-color: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

.v-maps-geo-cell.is-selected {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  border-color: var(--accent-primary);
}

.v-maps-geo-center-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
}

.v-maps-geo-rank {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.v-maps-geo-sub {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.v-maps-geo-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.v-maps-point-detail {
  padding: 15px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-maps-point-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-point-coords {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.v-maps-comp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-maps-comp-item {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-maps-comp-main {
  min-width: 0;
  flex: 1 1 auto;
}

.v-maps-comp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-comp-addr {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.v-maps-comp-stats {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-maps-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--status-warning-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v-maps-spam-item {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--status-danger-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-maps-spam-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-maps-spam-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.v-maps-spam-reasons {
  margin: 2px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.v-maps-spam-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.v-maps-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-maps-history-row {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
  color: var(--text-primary);
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-maps-history-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-maps-history-row.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.v-maps-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

.v-maps-history-meta {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.v-maps-history-date {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Tab 3 (Reviews) & Tab 4 (Posts) — Two-Column Workspace & Item Lists */
.v-maps-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-maps-two-col > * {
  min-width: 0;
}

.v-maps-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-maps-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 0;
}

.v-maps-search-wrap > :not(input) {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.v-maps-search-input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}

.v-maps-search-wrap > :not(input) + .v-maps-search-input {
  padding-left: 34px;
}

.v-maps-filter-select {
  width: auto;
  min-width: 150px;
  max-width: 220px;
  font-size: 13px;
  flex: 0 1 auto;
}

.v-maps-item-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-maps-item-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-maps-item-card:first-child {
  padding-top: 4px;
}

.v-maps-item-card:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.v-maps-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.v-maps-item-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.v-maps-item-head > .v-maps-item-meta,
.v-maps-item-head > .v-maps-pill {
  flex-shrink: 0;
  justify-content: flex-end;
}

.v-maps-item-quote {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v-maps-item-quote-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.v-maps-item-content {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.v-maps-item-content-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  margin-bottom: 3px;
}

.v-maps-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

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

/* Studio Forms & Generated Result Box */
.v-maps-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-maps-result-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v-maps-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
}

.v-maps-result-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.v-maps-result-divider {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.v-maps-char-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.v-maps-char-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Status Pills, Banners & Modals */
.v-maps-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.v-maps-pill.is-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-maps-pill.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-maps-pill.is-fail {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-maps-pill.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-maps-pill.is-neutral {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.v-maps-banner {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 0;
}

.v-maps-banner.is-info {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.v-maps-banner.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

.v-maps-banner.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-maps-banner-icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  color: var(--accent-primary);
}

.v-maps-banner.is-warn .v-maps-banner-icon {
  color: var(--status-warning-text);
}

.v-maps-banner.is-danger .v-maps-banner-icon {
  color: var(--status-danger-text);
}

.v-maps-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-maps-modal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.v-maps-modal-grid-2 > * {
  min-width: 0;
}

.v-maps-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

/* Google Places Autocomplete inside Location Modal */
.v-maps-ac-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-maps-ac-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-maps-ac-input-wrap .mtk-input {
  flex: 1 1 auto;
  min-width: 0;
}

.v-maps-ac-spin {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.v-maps-ac-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
}

.v-maps-ac-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
  color: var(--text-primary);
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.v-maps-ac-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}

.v-maps-ac-primary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-maps-ac-secondary {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Preview Test & Confirmation Boxes inside Publish Modals */
.v-maps-dryrun-box {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.v-maps-dryrun-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-primary);
}

.v-maps-dryrun-error {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--status-danger-text);
  overflow-wrap: anywhere;
}

.v-maps-confirm-box {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.48;
  min-width: 0;
}

.v-maps-confirm-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* Light Theme Parity (V3 Faz 16) */
html[data-theme="light"] .v-maps-loc-bar,
html[data-theme="light"] .v-maps-kpi-card,
html[data-theme="light"] .v-maps-credit-pill,
html[data-theme="light"] .v-maps-comp-item {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-maps-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-maps-tab:not(.is-active):hover,
html[data-theme="light"] .v-maps-chip:not(.is-active):hover,
html[data-theme="light"] .v-maps-history-row:not(.is-active):hover,
html[data-theme="light"] .v-maps-ac-item:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

html[data-theme="light"] .v-maps-tab.is-active,
html[data-theme="light"] .v-maps-tab[aria-selected="true"] {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-maps-credit-pill:hover {
  background: var(--bg-muted);
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-maps-viewer-bar,
html[data-theme="light"] .v-maps-point-detail,
html[data-theme="light"] .v-maps-history-row,
html[data-theme="light"] .v-maps-qr-frame,
html[data-theme="light"] .v-maps-qr-code-box,
html[data-theme="light"] .v-maps-qr-template-box,
html[data-theme="light"] .v-maps-schema-details,
html[data-theme="light"] .v-maps-item-quote,
html[data-theme="light"] .v-maps-result-card,
html[data-theme="light"] .v-maps-dryrun-box,
html[data-theme="light"] .v-maps-ac-results {
  background: var(--gray-100);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-maps-geo-cell.rank-pending {
  background: var(--gray-100);
  border-color: var(--border-strong);
  color: var(--text-muted);
}

html[data-theme="light"] .v-maps-banner.is-info {
  background: var(--ch-cyan-bg);
  border-color: var(--ch-cyan-border);
  color: var(--text-primary);
}

html[data-theme="light"] .v-maps-archived-bar,
html[data-theme="light"] .v-maps-banner.is-warn,
html[data-theme="light"] .v-maps-confirm-box {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

html[data-theme="light"] .v-maps-archived-bar {
  color: var(--status-warning-text);
}

html[data-theme="light"] .v-maps-banner.is-warn,
html[data-theme="light"] .v-maps-confirm-box {
  color: var(--text-primary);
}

html[data-theme="light"] .v-maps-spam-item,
html[data-theme="light"] .v-maps-banner.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

/* Responsive Breakpoints (V3 Faz 16) */
@media (max-width: 1180px) {
  .v-maps-loc-bar {
    flex-wrap: wrap;
  }

  .v-maps-loc-bar-left {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .v-maps-loc-select-wrap {
    max-width: 380px;
  }

  .v-maps-loc-bar-right {
    flex-wrap: wrap;
    flex-shrink: 1;
  }
}

@media (max-width: 1080px) {
  .v-maps-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-maps-audit-grid,
  .v-maps-geogrid-layout,
  .v-maps-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .v-maps-root {
    gap: 14px;
  }

  .v-maps-loc-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .v-maps-loc-bar-left,
  .v-maps-loc-bar-right,
  .v-maps-loc-select-wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .v-maps-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-maps-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .v-maps-tab {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 11.5px;
    gap: 5px;
  }

  .v-maps-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .v-maps-tab > span:not(.v-maps-tab-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .v-maps-item-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .v-maps-item-head > .v-maps-item-meta {
    justify-content: flex-start;
  }

  .v-maps-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .v-maps-kpi-card {
    padding: 14px;
  }

  .v-maps-kpi-val {
    font-size: 21px;
  }

  .v-maps-geogrid {
    gap: 5px;
    max-width: 100%;
  }

  .v-maps-geo-cell {
    padding: 4px 2px;
  }

  .v-maps-geo-rank {
    font-size: 13px;
  }

  .v-maps-geo-sub {
    font-size: 9.5px;
  }

  .v-maps-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .v-maps-search-wrap,
  .v-maps-filter-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .v-maps-modal-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-maps-modal-footer {
    justify-content: stretch;
  }

  .v-maps-modal-footer > .mtk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .v-maps-empty {
    padding: 32px 16px;
  }
}

/* ==========================================================================
   V3 Faz 17 — Raporlar (.v-rep-*)
   Calm corporate surfaces, dark default + crisp light parity, zero inline styles
   ========================================================================== */

/* Shell, Visibility & Utility Helpers */
.v-rep-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 96px;
  min-width: 0;
  max-width: 100%;
  color: var(--text-primary);
}

.v-rep-hidden {
  display: none !important;
}

.v-rep-btn-link {
  text-decoration: none;
}

/* Uniform Control Alignment for Side-by-Side Inputs & Selects (Native Chevron Preserved) */
.v-rep-root .mtk-input,
.v-rep-modal-stack .mtk-input {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}

.v-rep-root .mtk-select,
.v-rep-modal-stack .mtk-select {
  height: 36px;
  min-height: 36px;
  padding: 0 28px 0 12px;
  box-sizing: border-box;
}

.v-rep-date-bar .mtk-input,
.v-rep-date-bar .v-rep-date-input,
.v-rep-table-controls .mtk-input,
.v-rep-table-controls .v-rep-search-input,
.v-rep-filter-bar .mtk-input,
.v-rep-filter-bar .v-rep-search-input {
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
}

.v-rep-date-bar .mtk-select,
.v-rep-date-bar .v-rep-date-select,
.v-rep-table-controls .mtk-select,
.v-rep-table-controls .v-rep-filter-select,
.v-rep-filter-bar .mtk-select,
.v-rep-filter-bar .v-rep-filter-select {
  height: 34px;
  min-height: 34px;
  padding: 0 28px 0 11px;
  box-sizing: border-box;
}

/* Role Notice & Meta Connection Callout */
.v-rep-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-meta-callout {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-meta-callout-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}

.v-rep-meta-callout-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-rep-meta-callout-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-rep-meta-callout-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-rep-meta-callout-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Global Date Picker Toolbar */
.v-rep-date-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-date-left {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.v-rep-date-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.v-rep-date-select {
  width: auto;
  min-width: 156px;
  max-width: 100%;
  font-size: 13px;
}

.v-rep-date-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.v-rep-date-input {
  width: 146px;
  min-width: 132px;
  max-width: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.v-rep-date-sep {
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
}

.v-rep-date-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}

.v-rep-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

/* Tab Toolbar & Segmented Navigation */
.v-rep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-rep-tabs::-webkit-scrollbar {
  display: none;
}

.v-rep-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-rep-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-rep-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-rep-tab.is-active,
.v-rep-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-rep-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-rep-tab.is-active .v-rep-tab-count,
.v-rep-tab[aria-selected="true"] .v-rep-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* 4 Equal KPI Cards */
.v-rep-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.v-rep-kpi-grid > * {
  min-width: 0;
}

.v-rep-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-rep-kpi-card:hover {
  border-color: var(--border-strong);
}

.v-rep-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 0;
}

.v-rep-kpi-val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.v-rep-kpi-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
}

/* Overview Tab — Card Headers, Spend Chart & Multi-Channel Summary */
.v-rep-card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-chart-box {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
}

.v-rep-mc-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-rep-mc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-mc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.v-rep-mc-grid > * {
  min-width: 0;
}

.v-rep-mc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-rep-mc-card:hover {
  border-color: var(--border-strong);
}

.v-rep-mc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-rep-mc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-rep-mc-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-rep-mc-icon.is-seo {
  background: var(--ch-seo-bg);
  border-color: var(--ch-seo-border);
  color: var(--ch-seo);
}

.v-rep-mc-icon.is-maps {
  background: var(--ch-maps-bg);
  border-color: var(--ch-maps-border);
  color: var(--ch-maps);
}

.v-rep-mc-icon.is-ga4 {
  background: var(--ch-cyan-bg);
  border-color: var(--ch-cyan-border);
  color: var(--ch-cyan);
}

.v-rep-mc-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-rep-mc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-rep-mc-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-rep-mc-rows {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-rep-mc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.v-rep-mc-row:first-child {
  padding-top: 2px;
}

.v-rep-mc-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.v-rep-mc-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.v-rep-mc-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Ads Performance Table & Collapsible Doctor Notes */
.v-rep-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.v-rep-table-toolbar {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-table-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 170px;
}

.v-rep-search-wrap > :not(input) {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.v-rep-search-input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}

.v-rep-search-wrap > :not(input) + .v-rep-search-input {
  padding-left: 34px;
}

.v-rep-filter-select {
  width: auto;
  min-width: 145px;
  max-width: 220px;
  font-size: 13px;
  flex: 0 1 auto;
}

.v-rep-table-scroll {
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.v-rep-ad-row {
  cursor: pointer;
  transition: background-color var(--duration-fast);
}

.v-rep-ad-row:hover {
  background: var(--bg-hover);
}

.v-rep-ad-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.v-rep-ad-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.v-rep-notes-details {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  min-width: 0;
}

.v-rep-notes-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  min-width: 0;
}

.v-rep-notes-summary::-webkit-details-marker {
  display: none;
}

.v-rep-notes-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 6px 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.v-rep-notes-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Breakdowns Tab — 2x2 Grid & Native Progress Bars */
.v-rep-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-rep-charts-grid > * {
  min-width: 0;
}

.v-rep-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-rep-breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-rep-breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  min-width: 0;
}

.v-rep-breakdown-lbl {
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.v-rep-breakdown-val {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-rep-breakdown-val strong {
  color: var(--text-primary);
  font-weight: 600;
}

.v-rep-progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--border-default);
  overflow: hidden;
}

.v-rep-progress::-webkit-progress-bar {
  background-color: var(--border-default);
  border-radius: var(--radius-pill);
}

.v-rep-progress::-webkit-progress-value {
  background-color: var(--accent-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-out);
}

.v-rep-progress::-moz-progress-bar {
  background-color: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.v-rep-progress.is-accent::-webkit-progress-value {
  background-color: var(--accent-primary);
}

.v-rep-progress.is-accent::-moz-progress-bar {
  background-color: var(--accent-primary);
}

.v-rep-progress.is-info::-webkit-progress-value {
  background-color: var(--status-info);
}

.v-rep-progress.is-info::-moz-progress-bar {
  background-color: var(--status-info);
}

.v-rep-progress.is-success::-webkit-progress-value {
  background-color: var(--status-success);
}

.v-rep-progress.is-success::-moz-progress-bar {
  background-color: var(--status-success);
}

.v-rep-progress.is-warning::-webkit-progress-value {
  background-color: var(--status-warning);
}

.v-rep-progress.is-warning::-moz-progress-bar {
  background-color: var(--status-warning);
}

.v-rep-city-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v-rep-city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.v-rep-city-row:first-child {
  padding-top: 2px;
}

.v-rep-city-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

/* Messages & Calls Funnel Tab */
.v-rep-funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.v-rep-funnel-grid > * {
  min-width: 0;
}

.v-rep-funnel-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-rep-funnel-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.v-rep-funnel-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-rep-funnel-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Weekly Digest & Saved A4 PDF Archive Tab */
.v-rep-digest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.v-rep-digest-layout > * {
  min-width: 0;
}

.v-rep-col-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-rep-digest-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-digest-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 200px;
  min-width: 0;
}

.v-rep-digest-pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow-y: auto;
}

.v-rep-digest-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-rep-status-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-rep-chip {
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}

.v-rep-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-rep-chip:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-rep-chip.is-active,
.v-rep-chip[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.v-rep-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-rep-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-rep-history-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-rep-history-row.is-selected {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.v-rep-history-main {
  flex: 1 1 180px;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v-rep-history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v-rep-history-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  line-height: 1.45;
  min-width: 0;
}

.v-rep-history-meta > span {
  overflow-wrap: anywhere;
}

.v-rep-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.v-rep-archive-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-rep-archive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.v-rep-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-rep-archive-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-rep-archive-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 220px;
  min-width: 0;
}

.v-rep-archive-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v-rep-archive-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  line-height: 1.45;
  min-width: 0;
}

.v-rep-archive-meta > span {
  overflow-wrap: anywhere;
}

.v-rep-archive-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Diagnostic Sheet, A4 PDF Modal & Live Digest Send Modal */
.v-rep-a4-frame {
  width: 100%;
  min-height: 70dvh;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  color-scheme: light;
  background-color: Canvas;
  display: block;
}

.v-rep-sheet-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.v-rep-sheet-metrics > * {
  min-width: 0;
}

.v-rep-sheet-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-rep-sheet-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.v-rep-sheet-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.v-rep-sheet-diag {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-rep-sheet-diag-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-rep-sheet-diag-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.v-rep-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-rep-confirm-box {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.48;
  min-width: 0;
}

.v-rep-confirm-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.v-rep-banner {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 0;
}

.v-rep-banner.is-info {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.v-rep-banner.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

.v-rep-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.v-rep-pill.is-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-rep-pill.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-rep-pill.is-fail {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-rep-pill.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-rep-pill.is-neutral {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.v-rep-empty {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
}

/* Light Theme Parity (V3 Faz 17) */
html[data-theme="light"] .v-rep-date-bar,
html[data-theme="light"] .v-rep-meta-callout,
html[data-theme="light"] .v-rep-kpi-card,
html[data-theme="light"] .v-rep-mc-card,
html[data-theme="light"] .v-rep-table-card,
html[data-theme="light"] .v-rep-notes-details {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-rep-meta-callout {
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-rep-tabs {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-rep-tab.is-active,
html[data-theme="light"] .v-rep-tab[aria-selected="true"] {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-rep-tab:not(.is-active):hover,
html[data-theme="light"] .v-rep-chip:not(.is-active):hover,
html[data-theme="light"] .v-rep-ad-row:hover,
html[data-theme="light"] .v-rep-history-row:not(.is-selected):hover,
html[data-theme="light"] .v-rep-archive-row:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

html[data-theme="light"] .v-rep-chip:not(.is-active):hover,
html[data-theme="light"] .v-rep-history-row:not(.is-selected):hover,
html[data-theme="light"] .v-rep-archive-row:hover {
  border-color: var(--border-strong);
}

html[data-theme="light"] .v-rep-viewer-bar,
html[data-theme="light"] .v-rep-period-badge,
html[data-theme="light"] .v-rep-funnel-cell,
html[data-theme="light"] .v-rep-history-row,
html[data-theme="light"] .v-rep-archive-row,
html[data-theme="light"] .v-rep-sheet-cell,
html[data-theme="light"] .v-rep-sheet-diag,
html[data-theme="light"] .v-rep-digest-pre {
  background: var(--gray-100);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-rep-history-row.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-rep-banner.is-info {
  background: var(--ch-cyan-bg);
  border-color: var(--ch-cyan-border);
  color: var(--text-primary);
}

html[data-theme="light"] .v-rep-banner.is-warn,
html[data-theme="light"] .v-rep-confirm-box {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

/* Responsive Breakpoints (V3 Faz 17) */
@media (max-width: 1080px) {
  .v-rep-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .v-rep-digest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .v-rep-charts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .v-rep-mc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .v-rep-root {
    gap: 14px;
  }

  .v-rep-date-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .v-rep-date-left,
  .v-rep-date-right,
  .v-rep-date-custom {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .v-rep-date-right {
    margin-left: 0;
    justify-content: flex-start;
  }

  .v-rep-date-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .v-rep-date-input {
    flex: 1 1 132px;
    width: auto;
    min-width: 0;
  }

  .v-rep-date-custom .mtk-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .v-rep-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v-rep-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .v-rep-tab {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 11.5px;
    gap: 5px;
  }

  .v-rep-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .v-rep-tab > span:not(.v-rep-tab-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .v-rep-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .v-rep-kpi-card {
    padding: 14px;
  }

  .v-rep-kpi-val {
    font-size: 21px;
  }

  .v-rep-table-toolbar,
  .v-rep-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .v-rep-table-controls {
    width: 100%;
  }

  .v-rep-search-wrap,
  .v-rep-filter-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .v-rep-history-row,
  .v-rep-archive-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v-rep-history-actions,
  .v-rep-archive-actions,
  .v-rep-digest-actions,
  .v-rep-card-actions {
    width: 100%;
  }

  .v-rep-sheet-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-rep-empty {
    padding: 28px 14px;
  }
}

@media (max-width: 540px) {
  .v-rep-funnel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   V3 Faz 18 — Abonelik, Paketler, AI Kredi ve Faturalar (.v-bill-*)
   ========================================================================== */

/* Layout & Chrome */
.v-bill-root {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 96px;
  min-width: 0;
}

.v-bill-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.v-bill-hidden {
  display: none !important;
}

/* Uniform Control Alignment for Inputs & Native Selects (Native Chevron Preserved) */
.v-bill-root .mtk-input,
.v-bill-modal-stack .mtk-input {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}

.v-bill-root .mtk-select,
.v-bill-modal-stack .mtk-select {
  height: 36px;
  min-height: 36px;
  padding: 0 28px 0 12px;
  box-sizing: border-box;
}

.v-bill-table-controls .mtk-input,
.v-bill-table-controls .v-bill-search-input {
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
}

.v-bill-table-controls .mtk-select,
.v-bill-table-controls .v-bill-filter-select {
  height: 34px;
  min-height: 34px;
  padding: 0 28px 0 11px;
  box-sizing: border-box;
}

.v-bill-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-return-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.v-bill-return-banner.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--text-primary);
}

.v-bill-return-banner.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--text-primary);
}

.v-bill-return-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-bill-return-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.v-bill-return-banner.is-success .v-bill-return-icon {
  color: var(--status-success-text);
}

.v-bill-return-banner.is-danger .v-bill-return-icon {
  color: var(--status-danger-text);
}

.v-bill-return-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v-bill-return-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-bill-return-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v-bill-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  align-self: flex-start;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-bill-tabs::-webkit-scrollbar {
  display: none;
}

.v-bill-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-bill-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-bill-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-bill-tab.is-active,
.v-bill-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-bill-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-bill-tab.is-active .v-bill-tab-count,
.v-bill-tab[aria-selected="true"] .v-bill-tab-count {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-bill-fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--status-info-border);
  background: var(--status-info-bg);
  color: var(--status-info-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Active Subscription Status Bar */
.v-bill-sub-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-sub-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 320px;
  min-width: 0;
}

.v-bill-sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-sub-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.v-bill-sub-quotas {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  min-width: 0;
}

.v-bill-sub-quota-val {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-bill-sub-trial {
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.v-bill-sub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Plans Toolbar, Stepper, Cycle Toggle & 4-Tier Plan Cards */
.v-bill-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-badges-row {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-right-controls {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-bill-stepper-info {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-stepper-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.v-bill-stepper-lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.v-bill-stepper-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.v-bill-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.v-bill-stepper-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.v-bill-stepper-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-bill-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.v-bill-stepper-val {
  min-width: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-bill-cycle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
}

.v-bill-cycle-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-bill-cycle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-bill-cycle-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-bill-cycle-btn.is-active,
.v-bill-cycle-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-bill-save-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--status-success-text);
  font-variant-numeric: tabular-nums;
}

.v-bill-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.v-bill-plans-grid > * {
  min-width: 0;
}

.v-bill-plan-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-bill-plan-card:hover {
  border-color: var(--border-strong);
}

.v-bill-plan-card.is-featured {
  border-color: var(--accent-primary);
}

.v-bill-plan-card.is-current {
  border-color: var(--status-success-border);
}

.v-bill-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-bill-plan-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-bill-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.v-bill-price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.v-bill-price-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.v-bill-price-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.v-bill-slot-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.v-bill-features {
  border-top: 1px solid var(--border-subtle);
  padding-top: 15px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 0;
}

.v-bill-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  min-width: 0;
}

.v-bill-feature-icon {
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.v-bill-fx-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* AI Credits Tab — Wallet KPIs, Packs, Tariff & Filterable Ledger */
.v-bill-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.v-bill-wallet-grid > * {
  min-width: 0;
}

.v-bill-wallet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-bill-wallet-card:hover {
  border-color: var(--border-strong);
}

.v-bill-wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.v-bill-wallet-val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-bill-wallet-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.v-bill-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-bill-section-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.v-bill-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.v-bill-packs-grid > * {
  min-width: 0;
}

.v-bill-pack-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  height: 100%;
  transition: border-color var(--duration-fast);
}

.v-bill-pack-card:hover {
  border-color: var(--border-strong);
}

.v-bill-pack-card.is-featured {
  border-color: var(--accent-primary);
}

.v-bill-pack-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.v-bill-pack-credits {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.v-bill-pack-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.v-bill-pack-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-bill-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.v-bill-table-toolbar {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-table-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 170px;
}

.v-bill-search-wrap > :not(input) {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.v-bill-search-input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}

.v-bill-search-wrap > :not(input) + .v-bill-search-input {
  padding-left: 34px;
}

.v-bill-filter-select {
  width: auto;
  min-width: 150px;
  max-width: 220px;
  font-size: 13px;
  flex: 0 1 auto;
}

.v-bill-table-scroll {
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.v-bill-delta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-bill-delta.is-pos {
  color: var(--status-success-text);
}

.v-bill-delta.is-neg {
  color: var(--status-warning-text);
}

.v-bill-delta.is-zero {
  color: var(--text-muted);
}

.v-bill-cell-strong {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-bill-cell-muted {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.v-bill-cell-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Saved Payment Cards Tab */
.v-bill-card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-bill-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  min-width: 0;
}

.v-bill-cards-grid > * {
  min-width: 0;
}

.v-bill-saved-card {
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color var(--duration-fast);
}

.v-bill-saved-card:hover {
  border-color: var(--border-strong);
}

.v-bill-saved-card.is-default {
  border-color: var(--accent-border);
}

.v-bill-saved-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.v-bill-saved-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-bill-saved-card-brand svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.v-bill-saved-card-pan {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.v-bill-saved-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 6px 10px;
  flex-wrap: wrap;
}

.v-bill-saved-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.v-bill-card-remove-btn {
  margin-left: auto;
  color: var(--status-danger-text);
}

.v-bill-card-remove-btn:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

/* Invoices & Billing Info Tab */
.v-bill-form-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-bill-entity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  align-self: flex-start;
  flex-wrap: wrap;
}

.v-bill-entity-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-bill-entity-opt:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.v-bill-entity-opt.is-active {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-bill-entity-opt input[type="radio"] {
  accent-color: var(--accent-primary);
  margin: 0;
  cursor: pointer;
}

.v-bill-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.v-bill-form-grid > * {
  min-width: 0;
}

.v-bill-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-bill-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

.v-bill-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.v-bill-locked-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.v-bill-locked-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-bill-locked-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-bill-locked-desc {
  margin: 0;
  max-width: 460px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Quote + BIN Installment Checkout Modal */
.v-bill-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-bill-quote-box {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  padding: 6px 16px;
  min-width: 0;
}

.v-bill-quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  min-width: 0;
}

.v-bill-quote-lbl {
  color: var(--text-muted);
  min-width: 0;
}

.v-bill-quote-val {
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex-shrink: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.v-bill-quote-val.is-bold {
  font-weight: 600;
}

.v-bill-quote-val.is-success {
  color: var(--status-success-text);
  font-weight: 600;
}

.v-bill-quote-val.is-warning {
  color: var(--status-warning-text);
  font-weight: 600;
}

.v-bill-quote-vat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-bill-quote-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-bill-quote-total-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v-bill-quote-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-bill-quote-controls > * {
  min-width: 0;
}

.v-bill-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.v-bill-input-row .mtk-input {
  flex: 1 1 auto;
  min-width: 0;
}

.v-bill-input-upper {
  text-transform: uppercase;
}

.v-bill-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  align-self: flex-start;
}

.v-bill-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.v-bill-inst-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
}

.v-bill-inst-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-bill-inst-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v-bill-inst-grid > * {
  min-width: 0;
}

.v-bill-inst-btn {
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-control);
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.v-bill-inst-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.v-bill-inst-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-bill-inst-btn.is-selected,
.v-bill-inst-btn[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-bill-inst-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-bill-inst-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.v-bill-inst-total {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.v-bill-quote-loading {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Bottom Trust & Legal Footer Band + Shared Utilities */
.v-bill-trust-footer {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-bill-trust-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-trust-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-bill-trust-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.v-bill-trust-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-bill-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.v-bill-legal-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.v-bill-legal-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: var(--radius-xs);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

.v-bill-legal-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-bill-banner {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 0;
}

.v-bill-banner.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--text-primary);
}

.v-bill-banner.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

.v-bill-banner.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--text-primary);
}

.v-bill-banner.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--text-primary);
}

.v-bill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.v-bill-pill.is-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-bill-pill.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-bill-pill.is-fail {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-bill-pill.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-bill-pill.is-neutral {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.v-bill-pill.is-accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-bill-empty {
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
}

.v-bill-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Light Theme Parity (V3 Faz 18) */
html[data-theme="light"] .v-bill-sub-bar,
html[data-theme="light"] .v-bill-plan-card,
html[data-theme="light"] .v-bill-wallet-card,
html[data-theme="light"] .v-bill-pack-card,
html[data-theme="light"] .v-bill-table-card,
html[data-theme="light"] .v-bill-locked-card,
html[data-theme="light"] .v-bill-trust-footer {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-bill-plan-card.is-featured,
html[data-theme="light"] .v-bill-pack-card.is-featured {
  border-color: var(--accent-primary);
}

html[data-theme="light"] .v-bill-plan-card.is-current {
  border-color: var(--status-success-border);
}

html[data-theme="light"] .v-bill-tabs,
html[data-theme="light"] .v-bill-stepper,
html[data-theme="light"] .v-bill-cycle-toggle,
html[data-theme="light"] .v-bill-entity-toggle {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-bill-tab.is-active,
html[data-theme="light"] .v-bill-tab[aria-selected="true"],
html[data-theme="light"] .v-bill-cycle-btn.is-active,
html[data-theme="light"] .v-bill-cycle-btn[aria-pressed="true"],
html[data-theme="light"] .v-bill-entity-opt.is-active {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-bill-tab:not(.is-active):hover,
html[data-theme="light"] .v-bill-cycle-btn:not(.is-active):hover,
html[data-theme="light"] .v-bill-entity-opt:not(.is-active):hover,
html[data-theme="light"] .v-bill-stepper-btn:hover:not(:disabled),
html[data-theme="light"] .v-bill-inst-btn:not(.is-selected):hover,
html[data-theme="light"] .v-bill-legal-link:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

html[data-theme="light"] .v-bill-viewer-bar,
html[data-theme="light"] .v-bill-saved-card,
html[data-theme="light"] .v-bill-quote-box,
html[data-theme="light"] .v-bill-trust-badge,
html[data-theme="light"] .v-bill-locked-icon {
  background: var(--gray-100);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-bill-saved-card.is-default {
  border-color: var(--accent-border);
}

html[data-theme="light"] .v-bill-inst-btn.is-selected,
html[data-theme="light"] .v-bill-inst-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
}

/* Responsive Breakpoints (V3 Faz 18) */
@media (max-width: 1180px) {
  .v-bill-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .v-bill-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .v-bill-packs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .v-bill-wallet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .v-bill-root {
    gap: 16px;
  }

  .v-bill-tabs {
    width: 100%;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .v-bill-tab {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 11.5px;
    gap: 5px;
  }

  .v-bill-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .v-bill-tab > span:not(.v-bill-tab-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .v-bill-sub-bar,
  .v-bill-controls-row,
  .v-bill-table-toolbar,
  .v-bill-card-head-row,
  .v-bill-trust-top {
    flex-direction: column;
    align-items: stretch;
  }

  .v-bill-sub-main {
    flex: 0 0 auto;
    width: 100%;
  }

  .v-bill-badges-row .v-bill-pill,
  .v-bill-sub-head .v-bill-pill {
    white-space: normal;
    max-width: 100%;
    text-align: left;
  }

  .v-bill-sub-bar,
  .v-bill-trust-footer {
    padding: 14px 16px;
  }

  .v-bill-card-body,
  .v-bill-form-body {
    padding: 16px;
  }

  .v-bill-table-toolbar {
    padding: 12px 14px;
  }

  .v-bill-right-controls,
  .v-bill-sub-actions,
  .v-bill-table-controls,
  .v-bill-form-actions {
    width: 100%;
  }

  .v-bill-stepper {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .v-bill-stepper .mtk-btn {
    flex: 1 0 100%;
    justify-content: center;
  }

  .v-bill-cycle-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-bill-cycle-btn {
    width: 100%;
    padding: 0 8px;
  }

  .v-bill-plans-grid,
  .v-bill-form-grid,
  .v-bill-cards-grid,
  .v-bill-quote-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-bill-search-wrap,
  .v-bill-filter-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .v-bill-entity-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-bill-entity-opt {
    justify-content: center;
    padding: 7px 8px;
    font-size: 12.5px;
  }

  .v-bill-form-actions .mtk-btn,
  .v-bill-sub-actions .mtk-btn {
    width: 100%;
    justify-content: center;
  }

  .v-bill-empty,
  .v-bill-locked-card {
    padding: 28px 16px;
  }
}

@media (max-width: 540px) {
  .v-bill-inst-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   V3 FAZ 19 — ACCOUNT (.v-acc-*)
   ========================================================================== */

/* Layout & Chrome */
.v-acc-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 96px;
  min-width: 0;
}

.v-acc-hidden {
  display: none !important;
}

.v-acc-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Uniform Control Alignment (Native Select Chevron Preserved) */
.v-acc-root .mtk-input,
.v-acc-modal-stack .mtk-input {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}

.v-acc-root .mtk-input[readonly] {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: default;
}

.v-acc-root .mtk-input:disabled,
.v-acc-root .mtk-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.v-acc-root .mtk-select,
.v-acc-modal-stack .mtk-select {
  height: 36px;
  min-height: 36px;
  padding: 0 28px 0 12px;
  box-sizing: border-box;
}

/* Viewer / Read-Only Role Notice Bar */
.v-acc-viewer-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* 4-Tab Bar */
.v-acc-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  align-self: flex-start;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.v-acc-tabs::-webkit-scrollbar {
  display: none;
}

.v-acc-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-acc-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-acc-tab:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-acc-tab.is-active,
.v-acc-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.v-acc-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.v-acc-tab.is-active .v-acc-tab-badge,
.v-acc-tab[aria-selected="true"] .v-acc-tab-badge {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* Identity Summary Hero Card */
.v-acc-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-acc-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.v-acc-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 0;
}

.v-acc-hero-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.v-acc-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}

.v-acc-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* 2-Column Corporate Settings Card & Rows */
.v-acc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 4px 24px;
  min-width: 0;
}

.v-acc-row {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
  min-width: 0;
}

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

.v-acc-row-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-acc-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-acc-row-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-acc-row-title.is-danger {
  color: var(--status-danger-text);
}

.v-acc-row-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.v-acc-row-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Forms, Monospace Copy Fields & Password Rules */
.v-acc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.v-acc-form-grid > * {
  min-width: 0;
}

.v-acc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-acc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v-acc-input-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v-acc-input-copy .mtk-input {
  flex: 1 1 auto;
  min-width: 0;
}

.v-acc-input-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.v-acc-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.v-acc-pass-wrap .mtk-input {
  width: 100%;
  padding-right: 40px;
  min-width: 0;
}

.v-acc-pass-toggle {
  position: absolute;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

.v-acc-pass-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-acc-pass-toggle:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-acc-pass-toggle[aria-pressed="true"] {
  color: var(--accent-primary);
  background: var(--accent-soft);
}

.v-acc-pass-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-acc-pass-rule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  min-width: 0;
}

.v-acc-pass-rule svg {
  flex-shrink: 0;
  color: var(--text-faint);
}

.v-acc-pass-rule.is-met {
  color: var(--status-success-text);
  font-weight: 500;
}

.v-acc-pass-rule.is-met svg {
  color: var(--status-success-text);
}

.v-acc-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Language Switcher */
.v-acc-lang-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  align-self: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
}

.v-acc-lang-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.v-acc-lang-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.v-acc-lang-btn:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.v-acc-lang-btn.is-active,
.v-acc-lang-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

/* Notification Preferences */
.v-acc-pref-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  overflow: hidden;
  min-width: 0;
}

.v-acc-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.v-acc-pref-item:last-child {
  border-bottom: 0;
}

.v-acc-pref-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.v-acc-pref-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-acc-pref-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Support Access Controls */
.v-acc-support-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  min-width: 0;
}

.v-acc-support-select {
  width: auto;
  min-width: 140px;
  max-width: 220px;
  height: 34px;
  min-height: 34px;
  padding: 0 28px 0 11px;
  font-size: 13px;
  box-sizing: border-box;
}

.v-acc-support-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Security Actions & Audit/Referral Table Cards */
.v-acc-security-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-acc-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.v-acc-table-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-acc-table-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.v-acc-table-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.v-acc-table-scroll {
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.v-acc-cell-strong {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.v-acc-cell-muted {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.v-acc-cell-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 15% Web Badge Section */
.v-acc-badge-preview {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-width: 0;
}

.v-acc-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}

.v-acc-badge-chip-icon {
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-acc-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.v-acc-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v-acc-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.v-acc-url-row .mtk-input {
  flex: 1 1 220px;
  min-width: 0;
}

.v-acc-snippet-box {
  width: 100%;
  min-height: 82px;
  padding: 11px 13px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.v-acc-snippet-box:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.v-acc-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Referrals KPIs, Native Cap Progress & Tiers */
.v-acc-ref-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.v-acc-ref-kpis > * {
  min-width: 0;
}

.v-acc-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.v-acc-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.v-acc-kpi-val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.v-acc-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.v-acc-progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  accent-color: var(--accent-primary);
  background: var(--bg-muted);
  color: var(--accent-primary);
  overflow: hidden;
}

.v-acc-progress::-webkit-progress-bar {
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
}

.v-acc-progress::-webkit-progress-value {
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-out);
}

.v-acc-progress::-moz-progress-bar {
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.v-acc-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.v-acc-tier-grid > * {
  min-width: 0;
}

.v-acc-tier-card {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.v-acc-tier-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.v-acc-tier-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* Modals, Banners, Pills, Empty & Guest States */
.v-acc-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v-acc-otp-input {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.v-acc-banner {
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.v-acc-banner.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--text-primary);
}

.v-acc-banner.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--text-primary);
}

.v-acc-banner.is-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--text-primary);
}

.v-acc-banner.is-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--text-primary);
}

.v-acc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.v-acc-pill.is-pass {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-acc-pill.is-warn {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-acc-pill.is-fail {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-acc-pill.is-info {
  background: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-acc-pill.is-neutral {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.v-acc-pill.is-accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-acc-empty {
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
}

.v-acc-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-acc-guest-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.v-acc-guest-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-acc-guest-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-acc-guest-desc {
  margin: 0;
  max-width: 460px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Light Theme Parity (V3 Faz 19) */
html[data-theme="light"] .v-acc-hero,
html[data-theme="light"] .v-acc-card,
html[data-theme="light"] .v-acc-table-card,
html[data-theme="light"] .v-acc-kpi-card,
html[data-theme="light"] .v-acc-guest-card,
html[data-theme="light"] .v-acc-badge-chip {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-acc-tabs,
html[data-theme="light"] .v-acc-lang-group {
  background: var(--bg-subtle);
  border-color: var(--border-default);
}

html[data-theme="light"] .v-acc-tab.is-active,
html[data-theme="light"] .v-acc-tab[aria-selected="true"],
html[data-theme="light"] .v-acc-lang-btn.is-active,
html[data-theme="light"] .v-acc-lang-btn[aria-pressed="true"] {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

html[data-theme="light"] .v-acc-tab:not(.is-active):hover,
html[data-theme="light"] .v-acc-lang-btn:not(.is-active):hover,
html[data-theme="light"] .v-acc-pass-toggle:not([aria-pressed="true"]):hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

html[data-theme="light"] .v-acc-pass-toggle[aria-pressed="true"] {
  color: var(--accent-primary);
  background: var(--accent-soft);
}

html[data-theme="light"] .v-acc-viewer-bar,
html[data-theme="light"] .v-acc-pref-list,
html[data-theme="light"] .v-acc-support-controls,
html[data-theme="light"] .v-acc-pass-rules,
html[data-theme="light"] .v-acc-badge-preview,
html[data-theme="light"] .v-acc-tier-card,
html[data-theme="light"] .v-acc-guest-icon {
  background: var(--gray-100);
  border-color: var(--border-default);
}

/* Responsive Breakpoints (V3 Faz 19) */
@media (max-width: 960px) {
  .v-acc-card {
    padding: 4px 18px;
  }

  .v-acc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .v-acc-ref-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .v-acc-root {
    gap: 16px;
  }

  .v-acc-tabs {
    width: 100%;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .v-acc-tab {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 11.5px;
    gap: 5px;
  }

  .v-acc-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .v-acc-tab > span:not(.v-acc-tab-badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .v-acc-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .v-acc-hero-info,
  .v-acc-row-meta,
  .v-acc-row-body {
    flex: 0 0 auto;
    width: 100%;
  }

  .v-acc-hero-actions {
    margin-left: 0;
    width: 100%;
  }

  .v-acc-card {
    padding: 2px 16px;
  }

  .v-acc-row {
    gap: 12px;
    padding: 16px 0;
  }

  .v-acc-form-grid,
  .v-acc-pass-rules,
  .v-acc-ref-kpis,
  .v-acc-tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-acc-lang-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-acc-lang-btn {
    width: 100%;
    padding: 0 8px;
  }

  .v-acc-input-copy,
  .v-acc-url-row,
  .v-acc-support-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .v-acc-input-copy .mtk-input,
  .v-acc-url-row .mtk-input {
    flex: 0 0 auto;
    width: 100%;
  }

  .v-acc-support-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .v-acc-form-actions .mtk-btn,
  .v-acc-security-actions .mtk-btn,
  .v-acc-btn-row .mtk-btn,
  .v-acc-hero-actions .mtk-btn,
  .v-acc-url-row .mtk-btn,
  .v-acc-input-copy .mtk-btn {
    width: 100%;
    justify-content: center;
  }

  .v-acc-table-head {
    padding: 13px 14px;
  }

  .v-acc-empty,
  .v-acc-guest-card {
    padding: 28px 16px;
  }

  .v-acc-pill {
    white-space: normal;
    max-width: 100%;
    text-align: left;
  }
}


/* ==========================================================================
   V3 FAZ 20: AUTH (.v-auth-*) & ONBOARDING (.v-onb-*)
   Calm Corporate Dark & Light Parity — Strict Design Tokens Only
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Full-Page Auth Stage (.v-auth-*)
   -------------------------------------------------------------------------- */
.v-auth-stage {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.v-auth-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.v-auth-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  object-fit: contain;
  display: block;
}

.v-auth-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
}

.v-auth-topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v-auth-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-auth-ctrl-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Split Corporate Shell (Login & Register) */
.v-auth-shell {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
}

/* Focused Single Card (Forgot / Reset / Verify Email) */
.v-auth-single {
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-modal);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

html[data-theme="light"] .v-auth-shell,
html[data-theme="light"] .v-auth-single {
  box-shadow: var(--shadow-card);
}

.v-auth-aside {
  background-color: var(--bg-subtle);
  border-right: 1px solid var(--border-default);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.v-auth-aside-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.v-auth-aside-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.v-auth-aside-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.v-auth-aside-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.v-auth-aside-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.v-auth-aside-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-control);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.v-auth-aside-foot {
  padding-top: 18px;
  border-top: 1px solid var(--border-default);
}

.v-auth-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.v-auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.v-auth-panel {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.v-auth-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-auth-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

.v-auth-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Status & Context Banners */
.v-auth-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.v-auth-banner-info {
  background-color: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-auth-banner-warn {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-auth-banner-success {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-auth-banner-danger {
  background-color: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.v-auth-banner-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.v-auth-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.v-auth-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  background-color: var(--status-success-bg);
  border: 1px solid var(--status-success-border);
  color: var(--status-success-text);
  font-size: 12.5px;
  font-weight: 500;
}

.v-auth-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 12.5px;
  font-weight: 500;
}

/* SSO Buttons & Divider */
.v-auth-sso-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v-auth-sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.v-auth-sso-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}

.v-auth-sso-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.v-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.v-auth-divider::before,
.v-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-default);
}

/* Auth Form & Fields */
.v-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.v-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v-auth-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.v-auth-link-inline {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-primary);
  transition: color var(--duration-fast);
}

.v-auth-link-inline:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.v-auth-input-pw {
  width: 100%;
  padding-right: 40px;
}

.v-auth-pw-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 5px;
  margin: auto 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.v-auth-pw-toggle:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.v-auth-field-error {
  font-size: 12px;
  color: var(--status-danger-text);
  line-height: 1.4;
}

.v-auth-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.v-auth-pw-rules {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 2px;
}

.v-auth-pw-rule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.v-auth-pw-rule-ok {
  color: var(--status-success-text);
}

.v-auth-otp-input {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.24em;
  font-variant-numeric: tabular-nums;
}

.v-auth-submit {
  width: 100%;
  margin-top: 4px;
}

.v-auth-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.v-auth-foot-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-auth-legal-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.v-auth-legal-bar a {
  transition: color var(--duration-fast);
}

.v-auth-legal-bar a:hover {
  color: var(--text-primary);
}

/* Focused Completion / Verification State Box */
.v-auth-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 4px 4px;
}

.v-auth-state-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background-color: var(--status-success-bg);
  border: 1px solid var(--status-success-border);
  color: var(--status-success-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v-auth-state-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-auth-state-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 360px;
}

.v-auth-state-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   B. Full-Page Onboarding Wizard (.v-onb-*)
   -------------------------------------------------------------------------- */
.v-onb-stage {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.v-onb-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-onb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.v-onb-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  object-fit: contain;
  display: block;
}

.v-onb-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
}

.v-onb-topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v-onb-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-control);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.v-onb-ctrl-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.v-onb-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-onb-kicker {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-primary);
}

.v-onb-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

.v-onb-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 3-Step Corporate Progress Stepper */
.v-onb-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.v-onb-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  min-width: 0;
}

.v-onb-step-active {
  border-color: var(--accent-primary);
  background-color: var(--bg-elevated);
}

.v-onb-step-done {
  border-color: var(--status-success-border);
}

.v-onb-step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.v-onb-step-active .v-onb-step-num {
  background-color: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.v-onb-step-done .v-onb-step-num {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-onb-step-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v-onb-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-onb-step-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Main Onboarding Card */
.v-onb-card {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.v-onb-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v-onb-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-onb-section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-onb-section-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.v-onb-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

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

.v-onb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.v-onb-field .mtk-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-onb-field-full {
  grid-column: 1 / -1;
}

.v-onb-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.v-onb-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Primary Sales Channel Picker Cards */
.v-onb-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v-onb-channel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  text-align: left;
  width: 100%;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.v-onb-channel-card:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}

.v-onb-channel-card.v-onb-channel-active,
.v-onb-channel-card.v-onb-channel-active:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.v-onb-channel-active .v-onb-channel-title {
  color: var(--accent-primary);
}

.v-onb-channel-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-onb-channel-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Step 2 Live ROAS & Budget Lock Preview Strip */
.v-onb-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-onb-preview-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v-onb-preview-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.v-onb-preview-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Step 3 X-Ray KPI Summary */
.v-onb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.v-onb-kpi-card {
  padding: 16px;
  border-radius: var(--radius-card);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.v-onb-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.v-onb-kpi-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.v-onb-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.v-onb-offer-box {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-onb-offer-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

.v-onb-offer-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Brand Color Swatches (CSP-safe SVG circle, zero inline styles) */
.v-onb-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.v-onb-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
}

.v-onb-swatch-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

/* Creative Angles & Video Script Box */
.v-onb-angles-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.v-onb-angle-item {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.v-onb-angle-item:last-child {
  border-bottom: 0;
}

.v-onb-script-box {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-onb-script-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-onb-script-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}

/* Meta Asset Discovery & Manual Fallback */
.v-onb-meta-box {
  padding: 18px;
  border-radius: var(--radius-card);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-onb-meta-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-onb-meta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v-onb-meta-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.v-onb-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.v-onb-banner-success {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

.v-onb-banner-warn {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
}

.v-onb-banner-info {
  background-color: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
}

.v-onb-manual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  align-self: flex-start;
  padding: 4px 0;
  transition: color var(--duration-fast);
}

.v-onb-manual-toggle:hover {
  color: var(--accent-primary-hover);
}

.v-onb-manual-panel {
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-default);
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Guided No-Account Step-by-Step Setup List */
.v-onb-guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-onb-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

.v-onb-guide-num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.v-onb-guide-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v-onb-guide-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.v-onb-guide-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Wizard Footer Action Row */
.v-onb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.v-onb-footer-left,
.v-onb-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Viewer / Member Read-Only RBAC Card */
.v-onb-ro-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: var(--radius-modal);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   C. V3 Faz 20 Responsive Breakpoints (Tablet <=900px & Mobile <=640px / 390x844)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .v-auth-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }

  .v-auth-aside {
    display: none;
  }

  .v-onb-stepper,
  .v-onb-grid-3,
  .v-onb-kpi-grid,
  .v-onb-preview-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .v-auth-stage,
  .v-onb-stage {
    gap: 16px;
  }

  .v-auth-panel,
  .v-auth-single,
  .v-onb-card,
  .v-onb-ro-card {
    padding: 22px 18px;
  }

  .v-auth-sso-grid,
  .v-auth-grid-2,
  .v-onb-grid-2,
  .v-onb-channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-auth-banner,
  .v-auth-foot-links,
  .v-onb-meta-head,
  .v-onb-footer,
  .v-onb-footer-left,
  .v-onb-footer-right {
    flex-direction: column;
    align-items: stretch;
  }

  .v-auth-banner > *,
  .v-auth-banner-body,
  .v-auth-banner-actions,
  .v-onb-footer-left,
  .v-onb-footer-right,
  .v-onb-footer-left > .mtk-btn,
  .v-onb-footer-right > .mtk-btn,
  .v-onb-meta-actions > .mtk-btn {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }
}
