/* =========================================================================
   FIKROVA · APP V2
   New visual language. No cards. No sidebar tree. Surfaces from fill,
   not borders. Type does the design.
   ========================================================================= */

:root[data-theme="dark"] body.app-v2,
body.app-v2 {
  --v2-bg-0: #0A0A0B;
  --v2-bg-1: #0F0F11;
  --v2-bg-2: #16161A;
  --v2-bg-3: #1E1E22;
  --v2-line: #1F1F23;
  --v2-line-strong: #2A2A2F;
  --v2-text-1: #FAFAFA;
  --v2-text-2: #A1A1AA;
  --v2-text-3: #6B6B73;
  --v2-text-4: #45454C;
  --v2-accent: #7C7CE8;
  --v2-accent-soft: rgba(124, 124, 232, 0.12);
  --v2-accent-ring: rgba(124, 124, 232, 0.35);
  --v2-success: #4ADE80;
  --v2-warn: #FBBF24;
  --v2-danger: #F87171;
  --v2-info: #60A5FA;
  --v2-rail-w: 56px;
  --v2-bar-h: 48px;
}

:root:not([data-theme="dark"]) body.app-v2 {
  --v2-bg-0: #FFFFFF;
  --v2-bg-1: #FAFAFA;
  --v2-bg-2: #F2F2F3;
  --v2-bg-3: #E8E8EA;
  --v2-line: #E8E8EA;
  --v2-line-strong: #D4D4D8;
  --v2-text-1: #09090B;
  --v2-text-2: #52525B;
  --v2-text-3: #71717A;
  --v2-text-4: #A1A1AA;
  --v2-accent: #5B5BD6;
  --v2-accent-soft: rgba(91, 91, 214, 0.10);
  --v2-accent-ring: rgba(91, 91, 214, 0.28);
  --v2-success: #15803D;
  --v2-warn: #B45309;
  --v2-danger: #B91C1C;
  --v2-info: #1D4ED8;
}

body.app-v2 {
  margin: 0;
  background: var(--v2-bg-0);
  color: var(--v2-text-1);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

body.app-v2 *,
body.app-v2 *::before,
body.app-v2 *::after {
  box-sizing: border-box;
}

body.app-v2 a {
  color: inherit;
  text-decoration: none;
}

body.app-v2 a:focus-visible,
body.app-v2 button:focus-visible,
body.app-v2 input:focus-visible,
body.app-v2 [tabindex]:focus-visible {
  outline: 2px solid var(--v2-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ================================================================
   APP SHELL — 56px icon rail + 48px topbar + canvas
   ================================================================ */
.app-v2 .app {
  display: grid;
  grid-template-columns: var(--v2-rail-w) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--v2-bg-0);
}

.app-v2 .app-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--v2-bg-1);
  border-right: 1px solid var(--v2-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
}

.app-v2 .app-rail-brand {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  margin-bottom: 12px;
  background: transparent;
  overflow: hidden;
}

.app-v2 .app-rail-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-v2 .app-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  align-items: center;
}

.app-v2 .app-rail-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--v2-text-3);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 80ms ease, color 80ms ease;
}

.app-v2 .app-rail-item:hover {
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
}

.app-v2 .app-rail-item.is-active {
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
}

.app-v2 .app-rail-item.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--v2-accent);
}

.app-v2 .app-rail-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tooltip on hover */
.app-v2 .app-rail-item[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 4px 8px;
  background: var(--v2-bg-3);
  color: var(--v2-text-1);
  font-size: 11px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.app-v2 .app-rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.app-v2 .app-rail-theme svg {
  width: 14px;
  height: 14px;
}

:root[data-theme="dark"] .app-v2 .app-rail-theme .icon-sun { display: block; }
:root[data-theme="dark"] .app-v2 .app-rail-theme .icon-moon { display: none; }
:root:not([data-theme="dark"]) .app-v2 .app-rail-theme .icon-sun { display: none; }
:root:not([data-theme="dark"]) .app-v2 .app-rail-theme .icon-moon { display: block; }

/* ================================================================
   APP BAR — topbar with command bar
   ================================================================ */
.app-v2 .app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-v2 .app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  height: var(--v2-bar-h);
  padding: 0 16px;
  background: var(--v2-bg-0);
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .app-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-v2 .app-bar-crumb {
  font-size: 12px;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .app-bar-sep {
  color: var(--v2-text-4);
  font-size: 12px;
}

.app-v2 .app-bar-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--v2-text-1);
}

.app-v2 .app-bar-right {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

/* Command bar trigger in topbar */
.app-v2 .cmdk-trigger {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px 0 10px;
  min-width: 360px;
  max-width: 480px;
  width: 100%;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-text-3);
  font: 500 12px/1 "Inter", sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color 80ms ease, background 80ms ease;
}

.app-v2 .cmdk-trigger:hover {
  border-color: var(--v2-line-strong);
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
}

.app-v2 .cmdk-trigger svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .cmdk-trigger span {
  flex: 1;
  text-align: left;
}

.app-v2 .cmdk-trigger kbd,
.app-v2 .cmdk kbd {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  font: 500 10px/1 "Inter", sans-serif;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: 3px;
  color: var(--v2-text-3);
}

/* ================================================================
   CANVAS
   ================================================================ */
.app-v2 .app-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--v2-bg-0);
}

/* ================================================================
   COMMON PRIMITIVES (used by Inbox & future workspaces)
   ================================================================ */
.app-v2 .v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  background: var(--v2-bg-1);
  color: var(--v2-text-1);
  font: 500 12px/1 "Inter", sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 80ms ease, border-color 80ms ease;
}

.app-v2 .v2-btn:hover {
  background: var(--v2-bg-2);
  border-color: var(--v2-line-strong);
}

.app-v2 .v2-btn-primary {
  background: var(--v2-text-1);
  color: var(--v2-bg-0);
  border-color: var(--v2-text-1);
}

.app-v2 .v2-btn-primary:hover {
  opacity: 0.9;
  background: var(--v2-text-1);
}

.app-v2 .v2-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--v2-text-2);
}

.app-v2 .v2-btn-ghost:hover {
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
}

.app-v2 .v2-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .v2-btn kbd {
  margin-left: 4px;
  font: 500 10px/1 "Inter", sans-serif;
  color: var(--v2-text-3);
}

.app-v2 .v2-mono,
.app-v2 code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.app-v2 .v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
  font: 500 10.5px/1 "Inter", sans-serif;
  letter-spacing: 0;
}

.app-v2 .v2-chip-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.app-v2 .v2-chip.tone-warn { color: var(--v2-warn); background: rgba(245, 158, 11, 0.12); }
.app-v2 .v2-chip.tone-danger { color: var(--v2-danger); background: rgba(239, 68, 68, 0.12); }
.app-v2 .v2-chip.tone-success { color: var(--v2-success); background: rgba(34, 197, 94, 0.12); }
.app-v2 .v2-chip.tone-info { color: var(--v2-info); background: rgba(59, 130, 246, 0.12); }
.app-v2 .v2-chip.tone-accent { color: var(--v2-accent); background: var(--v2-accent-soft); }

.app-v2 kbd.v2-key {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  font: 500 10.5px/1 "Inter", sans-serif;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: 3px;
  color: var(--v2-text-3);
}

/* ================================================================
   INBOX
   ================================================================ */
.app-v2 .inbox {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.app-v2 .inbox-header {
  padding: 32px 32px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.app-v2 .inbox-header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-v2 .inbox-greeting {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .inbox-headline {
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--v2-text-1);
}

.app-v2 .inbox-headline .v2-mono {
  font-size: 22px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .inbox-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--v2-text-2);
}

.app-v2 .inbox-summary > div {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--v2-line);
}

.app-v2 .inbox-summary > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.app-v2 .inbox-summary span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .inbox-summary strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--v2-text-1);
  font-variant-numeric: tabular-nums;
}

/* Filter chips */
.app-v2 .inbox-filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 32px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .inbox-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  font: 500 12px/1 "Inter", sans-serif;
  color: var(--v2-text-3);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 80ms ease;
}

.app-v2 .inbox-chip:hover {
  color: var(--v2-text-1);
}

.app-v2 .inbox-chip.is-active {
  color: var(--v2-text-1);
  border-bottom-color: var(--v2-text-1);
}

.app-v2 .inbox-chip-count {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--v2-text-4);
  padding: 1px 5px;
  background: var(--v2-bg-2);
  border-radius: 999px;
}

.app-v2 .inbox-chip.is-active .inbox-chip-count {
  background: var(--v2-bg-3);
  color: var(--v2-text-2);
}

/* Stream */
.app-v2 .inbox-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-v2 .inbox-row {
  display: grid;
  grid-template-columns: 8px 28px 1.4fr 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  height: 56px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  cursor: pointer;
  transition: background 80ms ease;
  text-align: left;
  position: relative;
}

.app-v2 .inbox-row:hover {
  background: var(--v2-bg-1);
}

.app-v2 .inbox-row:focus-visible {
  outline: none;
  background: var(--v2-bg-2);
}

.app-v2 .inbox-row:focus-visible::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--v2-accent);
  border-radius: 2px;
}

.app-v2 .inbox-row-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-text-4);
}

.app-v2 .inbox-row[data-tone="warn"] .inbox-row-dot { background: var(--v2-warn); }
.app-v2 .inbox-row[data-tone="danger"] .inbox-row-dot { background: var(--v2-danger); }
.app-v2 .inbox-row[data-tone="success"] .inbox-row-dot { background: var(--v2-success); }
.app-v2 .inbox-row[data-tone="info"] .inbox-row-dot { background: var(--v2-info); }
.app-v2 .inbox-row[data-tone="accent"] .inbox-row-dot { background: var(--v2-accent); }

.app-v2 .inbox-row-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
}

.app-v2 .inbox-row[data-tone="warn"] .inbox-row-icon { color: var(--v2-warn); background: rgba(245, 158, 11, 0.10); }
.app-v2 .inbox-row[data-tone="danger"] .inbox-row-icon { color: var(--v2-danger); background: rgba(239, 68, 68, 0.10); }
.app-v2 .inbox-row[data-tone="success"] .inbox-row-icon { color: var(--v2-success); background: rgba(34, 197, 94, 0.10); }
.app-v2 .inbox-row[data-tone="info"] .inbox-row-icon { color: var(--v2-info); background: rgba(59, 130, 246, 0.10); }
.app-v2 .inbox-row[data-tone="accent"] .inbox-row-icon { color: var(--v2-accent); background: var(--v2-accent-soft); }

.app-v2 .inbox-row-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .inbox-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-v2 .inbox-row-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--v2-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .inbox-row-sub {
  font-size: 11.5px;
  color: var(--v2-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .inbox-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--v2-text-3);
  min-width: 0;
}

.app-v2 .inbox-row-meta strong {
  color: var(--v2-text-2);
  font-weight: 500;
}

.app-v2 .inbox-row-time {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-v2 .inbox-row-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--v2-text-3);
  font-size: 11px;
  opacity: 0;
  transition: opacity 80ms ease;
}

.app-v2 .inbox-row:hover .inbox-row-action,
.app-v2 .inbox-row:focus-visible .inbox-row-action {
  opacity: 1;
}

.app-v2 .inbox-row-action svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* Inbox zero state */
.app-v2 .inbox-zero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 96px 32px;
  text-align: center;
}

.app-v2 .inbox-zero-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  color: var(--v2-text-3);
}

.app-v2 .inbox-zero-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .inbox-zero-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-text-1);
  margin: 0;
}

.app-v2 .inbox-zero-text {
  font-size: 12px;
  color: var(--v2-text-3);
  margin: 0;
  max-width: 36ch;
}

.app-v2 .inbox-zero-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--v2-text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-v2 .inbox-zero-hint kbd {
  font: 500 10px/1 "Inter", sans-serif;
  padding: 2px 5px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: 3px;
  color: var(--v2-text-2);
}

/* ================================================================
   COMMAND PALETTE (⌘K)
   ================================================================ */
.app-v2 .cmdk[open] {
  display: flex;
  flex-direction: column;
}

.app-v2 .cmdk {
  position: fixed;
  top: 14vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px));
  max-height: 68vh;
  margin: 0;
  padding: 0;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line-strong);
  border-radius: 12px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.55),
    0 12px 24px -8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  color: var(--v2-text-1);
}

.app-v2 .cmdk[open] {
  animation: cmdk-pop 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmdk-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.985); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.app-v2 .cmdk::backdrop {
  background: rgba(8, 10, 14, 0.5);
  backdrop-filter: blur(3px);
  animation: cmdk-fade 140ms ease;
}

@keyframes cmdk-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .app-v2 .cmdk[open],
  .app-v2 .cmdk::backdrop { animation: none; }
}

.app-v2 .cmdk-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .cmdk-input-icon {
  width: 15px;
  height: 15px;
  stroke: var(--v2-text-3);
  stroke-width: 1.5;
  fill: none;
  flex: none;
}

/* Spinner replaces the search glyph while live results load. */
.app-v2 .cmdk-spinner {
  display: none;
  width: 15px;
  height: 15px;
  flex: none;
  border: 1.5px solid var(--v2-line-strong);
  border-top-color: var(--v2-accent, var(--v2-text-1));
  border-radius: 50%;
  animation: cmdk-spin 600ms linear infinite;
}

.app-v2 .cmdk[data-loading] .cmdk-input-icon { display: none; }
.app-v2 .cmdk[data-loading] .cmdk-spinner { display: inline-block; }

@keyframes cmdk-spin { to { transform: rotate(360deg); } }

.app-v2 .cmdk-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--v2-text-1);
  font: 500 14.5px/1.4 "Inter", sans-serif;
  letter-spacing: -0.005em;
}

.app-v2 .cmdk-input input::placeholder {
  color: var(--v2-text-3);
}

.app-v2 .cmdk-input input::-webkit-search-cancel-button { display: none; }

.app-v2 .cmdk-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  scroll-padding: 8px 0;
}

.app-v2 .cmdk-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-v2 .cmdk-group + .cmdk-group {
  margin-top: 6px;
}

.app-v2 .cmdk-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 5px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-4);
  font-weight: 600;
}

.app-v2 .cmdk-group-label em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--v2-text-4);
  opacity: 0.7;
}

.app-v2 .cmdk-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 7px;
  color: var(--v2-text-1);
  cursor: pointer;
  font-size: 13px;
  position: relative;
}

.app-v2 .cmdk-item[aria-selected="true"] {
  background: var(--v2-bg-2);
}

.app-v2 .cmdk-item[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--v2-accent, var(--v2-text-1));
}

.app-v2 .cmdk-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
}

.app-v2 .cmdk-item[aria-selected="true"] .cmdk-item-icon {
  background: var(--v2-bg-1);
  border-color: var(--v2-line-strong);
}

.app-v2 .cmdk-item-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  color: var(--v2-text-3);
}

.app-v2 .cmdk-item[aria-selected="true"] .cmdk-item-icon svg {
  color: var(--v2-text-1);
}

.app-v2 .cmdk-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.app-v2 .cmdk-item-text strong {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-v2 .cmdk-item-text span {
  font-size: 11px;
  color: var(--v2-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-v2 .cmdk-item-text mark {
  background: transparent;
  color: var(--v2-accent, var(--v2-text-1));
  font-weight: 600;
}

.app-v2 .cmdk-item-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-v2 .cmdk-item-enter {
  font-size: 12px;
  color: var(--v2-text-4);
  opacity: 0;
  transition: opacity 80ms ease;
}

.app-v2 .cmdk-item[aria-selected="true"] .cmdk-item-enter {
  opacity: 1;
}

.app-v2 .cmdk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 40px 24px;
  text-align: center;
}

.app-v2 .cmdk-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
}

.app-v2 .cmdk-empty-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--v2-text-3);
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .cmdk-empty strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .cmdk-empty span {
  font-size: 12px;
  color: var(--v2-text-3);
}

.app-v2 .cmdk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--v2-line);
  font-size: 11px;
  color: var(--v2-text-3);
  background: var(--v2-bg-2);
}

.app-v2 .cmdk-count {
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
}

.app-v2 .cmdk-foot-hints {
  display: inline-flex;
  gap: 14px;
}

.app-v2 .cmdk-foot-hints span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ================================================================
   CONTROL PLANE — Overview page (Datadog / Vercel feel, Linear calm)
   ================================================================ */
.app-v2 .ops {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.app-v2 .ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .ops-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--v2-text-2);
}

.app-v2 .ops-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v2-text-4);
  flex: 0 0 auto;
}

.app-v2 .ops-status-dot.ops-status-operational {
  background: var(--v2-success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.app-v2 .ops-status-dot.ops-status-degraded,
.app-v2 .ops-status-dot.ops-status-warning {
  background: var(--v2-warn);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.app-v2 .ops-status-dot.ops-status-down {
  background: var(--v2-danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.app-v2 .ops-status-dot.ops-status-idle {
  background: var(--v2-text-4);
}

.app-v2 .ops-status-text {
  font-weight: 500;
  color: var(--v2-text-1);
  font-size: 13px;
}

.app-v2 .ops-status-sep {
  color: var(--v2-text-4);
}

.app-v2 .ops-status-rate {
  color: var(--v2-text-3);
}

/* Range picker (segmented) */
.app-v2 .ops-range {
  display: inline-flex;
  padding: 2px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  gap: 1px;
}

.app-v2 .ops-range-item {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font: 500 11px/1 "Inter", sans-serif;
  color: var(--v2-text-3);
  border-radius: 4px;
  transition: color 80ms ease, background 80ms ease;
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-range-item:hover {
  color: var(--v2-text-1);
}

.app-v2 .ops-range-item.is-active {
  background: var(--v2-bg-0);
  color: var(--v2-text-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Layout */
.app-v2 .ops-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-v2 .ops-band {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .ops-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 12px;
}

.app-v2 .ops-band-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
  margin: 0;
}

.app-v2 .ops-band-meta {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-empty {
  padding: 24px;
  font-size: 12px;
  color: var(--v2-text-3);
  text-align: center;
}

/* Systems table */
.app-v2 .ops-systems {
  display: flex;
  flex-direction: column;
  padding: 0 0 12px;
}

.app-v2 .ops-system {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(80px, 100px) 90px 100px 130px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  color: var(--v2-text-1);
  border-bottom: 1px solid var(--v2-line);
  transition: background 80ms ease;
  cursor: pointer;
  font-size: 12px;
}

.app-v2 .ops-system:last-child {
  border-bottom: 0;
}

.app-v2 .ops-system:hover {
  background: var(--v2-bg-1);
}

.app-v2 .ops-system-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-v2 .ops-system-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-v2 .ops-system-name strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: -0.005em;
}

.app-v2 .ops-system-name span {
  font-size: 10.5px;
  color: var(--v2-text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-v2 .ops-system-status {
  font-size: 11px;
  color: var(--v2-text-3);
  margin-left: 4px;
}

.app-v2 .ops-system-spark {
  color: var(--v2-accent);
  height: 24px;
}

.app-v2 .ops-system-spark svg {
  width: 100%;
  height: 100%;
}

.app-v2 .ops-system-rate,
.app-v2 .ops-system-checks,
.app-v2 .ops-system-trend {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-system-rate strong,
.app-v2 .ops-system-checks strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .ops-system-rate span,
.app-v2 .ops-system-checks span,
.app-v2 .ops-system-trend span {
  font-size: 10px;
  color: var(--v2-text-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-v2 .ops-system-trend {
  align-items: flex-end;
}

.app-v2 .ops-trend-up {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-success);
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-trend-down {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-danger);
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-trend-flat {
  font-size: 12px;
  color: var(--v2-text-3);
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-system-trials {
  justify-self: flex-end;
}

/* Alerts list */
.app-v2 .ops-alerts {
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
}

.app-v2 .ops-alert {
  display: grid;
  grid-template-columns: 8px 80px 1fr auto 12px;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--v2-text-1);
  border-top: 1px solid var(--v2-line);
  transition: background 80ms ease;
  font-size: 12px;
}

.app-v2 .ops-alert:first-child {
  border-top: 0;
}

.app-v2 .ops-alert:hover {
  background: var(--v2-bg-1);
}

.app-v2 .ops-severity-critical { background: var(--v2-danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }
.app-v2 .ops-severity-warning { background: var(--v2-warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15); }
.app-v2 .ops-severity-info { background: var(--v2-info); box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15); }

.app-v2 .ops-alert-severity {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--v2-text-3);
}

.app-v2 .ops-alert:has(.ops-severity-critical) .ops-alert-severity { color: var(--v2-danger); }
.app-v2 .ops-alert:has(.ops-severity-warning) .ops-alert-severity { color: var(--v2-warn); }
.app-v2 .ops-alert:has(.ops-severity-info) .ops-alert-severity { color: var(--v2-info); }

.app-v2 .ops-alert-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-v2 .ops-alert-main strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: -0.005em;
}

.app-v2 .ops-alert-main span {
  font-size: 11.5px;
  color: var(--v2-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .ops-alert-time {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-v2 .ops-alert-action {
  display: grid;
  place-items: center;
  color: var(--v2-text-4);
  opacity: 0;
  transition: opacity 80ms ease;
}

.app-v2 .ops-alert:hover .ops-alert-action {
  opacity: 1;
}

.app-v2 .ops-alert-action svg {
  width: 12px;
  height: 12px;
}

/* Activity sparkline (bar chart) */
.app-v2 .ops-activity {
  padding: 8px 24px 24px;
}

.app-v2 .ops-activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  padding: 12px 0 8px;
}

.app-v2 .ops-activity-bar {
  flex: 1;
  background: var(--v2-accent-soft);
  border-radius: 1px;
  transition: background 80ms ease;
}

.app-v2 .ops-activity-bar:hover {
  background: var(--v2-accent);
}

.app-v2 .ops-activity-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
  border-top: 1px solid var(--v2-line);
}

/* Resources (metric tiles, no borders) */
.app-v2 .ops-resources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 0 24px;
}

@media (max-width: 900px) {
  .app-v2 .ops-resources { grid-template-columns: repeat(2, 1fr); }
}

.app-v2 .ops-resource {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  border-left: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  transition: background 80ms ease;
}

.app-v2 .ops-resource:first-child {
  border-left: 0;
}

.app-v2 .ops-resource:hover {
  background: var(--v2-bg-1);
}

.app-v2 .ops-resource strong {
  font-size: 28px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.app-v2 .ops-resource span {
  font-size: 11px;
  color: var(--v2-text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-v2 .ops-resource em {
  font-style: normal;
  font-size: 11px;
  color: var(--v2-text-4);
  margin-top: 2px;
}

/* Footer */
.app-v2 .ops-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 24px;
  font-size: 11px;
  color: var(--v2-text-4);
}

/* ================================================================
   WORKSPACE — list + detail two-pane layout
   ================================================================ */
.app-v2 .ws {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.app-v2 .ws-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--v2-line);
  background: var(--v2-bg-0);
}

.app-v2 .ws-filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.app-v2 .ws-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  font: 500 11.5px/1 "Inter", sans-serif;
  color: var(--v2-text-3);
  transition: background 80ms ease, color 80ms ease;
  letter-spacing: -0.005em;
}

.app-v2 .ws-pill:hover {
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
}

.app-v2 .ws-pill.is-active {
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
}

.app-v2 .ws-pill span {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--v2-bg-3);
  color: var(--v2-text-2);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.app-v2 .ws-pill.is-muted {
  opacity: 0.58;
  pointer-events: none;
}

.app-v2 .ws-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin-left: 8px;
}

.app-v2 .ws-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--v2-text-3);
  pointer-events: none;
}

.app-v2 .ws-search input {
  width: 100%;
  height: 28px;
  padding: 0 12px 0 30px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-text-1);
  font: 500 12px/1 "Inter", sans-serif;
  letter-spacing: -0.005em;
  transition: border-color 80ms ease;
}

.app-v2 .ws-search input::placeholder {
  color: var(--v2-text-3);
}

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

.app-v2 .ws-header .v2-btn-primary {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.app-v2 .ws-header .v2-btn-primary kbd {
  margin-left: 6px;
  background: rgba(255,255,255,0.18);
  color: inherit;
  border-color: transparent;
}

:root:not([data-theme="dark"]) .app-v2 .ws-header .v2-btn-primary kbd {
  background: rgba(255,255,255,0.25);
}

.app-v2 .ws-body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

@media (max-width: 980px) {
  .app-v2 .ws-body { grid-template-columns: 1fr; }
  .app-v2 .ws-detail { display: none; }
  .app-v2 .ws-body.has-selected .ws-detail { display: flex; }
  .app-v2 .ws-body.has-selected .ws-list { display: none; }
}

/* List pane */
.app-v2 .ws-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--v2-line);
  background: var(--v2-bg-0);
  overflow: hidden;
}

.app-v2 .ws-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .ws-list-count {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .ws-list-clear {
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .ws-list-clear:hover {
  color: var(--v2-accent);
}

.app-v2 .ws-list-stream {
  flex: 1;
  overflow-y: auto;
}

.app-v2 .ws-list-empty {
  padding: 24px 16px;
  font-size: 12px;
  color: var(--v2-text-3);
  text-align: center;
}

.app-v2 .ws-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  position: relative;
  transition: background 80ms ease;
}

.app-v2 .ws-row:hover {
  background: var(--v2-bg-1);
}

.app-v2 .ws-row:focus-visible {
  outline: none;
  background: var(--v2-bg-2);
}

.app-v2 .ws-row.is-selected {
  background: var(--v2-bg-2);
}

.app-v2 .ws-row.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--v2-accent);
  border-radius: 2px;
}

.app-v2 .ws-row-status {
  display: grid;
  place-items: center;
}

.app-v2 .ws-row-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-v2 .ws-row-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .ws-row-sub {
  font-size: 11px;
  color: var(--v2-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .ws-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.app-v2 .ws-row-meta-text {
  font-size: 10.5px;
  color: var(--v2-text-3);
  font-variant-numeric: tabular-nums;
}

/* Detail pane */
.app-v2 .ws-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--v2-bg-0);
}

.app-v2 .ws-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 64px 32px;
  text-align: center;
}

.app-v2 .ws-detail-empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  color: var(--v2-text-3);
  margin-bottom: 8px;
}

.app-v2 .ws-detail-empty-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .ws-detail-empty h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.app-v2 .ws-detail-empty p {
  font-size: 12px;
  color: var(--v2-text-3);
  margin: 0;
  max-width: 36ch;
}

.app-v2 .ws-detail-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-v2 .ws-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--v2-line);
  margin-bottom: 16px;
}

.app-v2 .ws-detail-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-v2 .ws-detail-eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .ws-detail-key {
  font-size: 18px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: 0.02em;
  margin: 0;
  word-break: break-all;
}

.app-v2 .ws-detail-sub {
  font-size: 12px;
  color: var(--v2-text-2);
  margin: 0;
}

.app-v2 .ws-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--v2-text-1);
  white-space: nowrap;
}

.app-v2 .ws-detail-band {
  padding: 16px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .ws-detail-band:last-of-type {
  border-bottom: 0;
}

.app-v2 .ws-detail-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.app-v2 .ws-detail-band-head h3 {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
  margin: 0;
}

.app-v2 .ws-detail-band-meta {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
}

.app-v2 .ws-detail-spark {
  height: 48px;
  color: var(--v2-accent);
  padding: 4px 0;
}

.app-v2 .ws-detail-spark svg {
  width: 100%;
  height: 100%;
}

.app-v2 .ws-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

@media (max-width: 720px) {
  .app-v2 .ws-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.app-v2 .ws-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px 10px 0;
}

.app-v2 .ws-detail-grid > div + div {
  border-left: 1px solid var(--v2-line);
  padding-left: 16px;
}

.app-v2 .ws-detail-grid span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .ws-detail-grid strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .ws-detail-machines,
.app-v2 .ws-detail-activity {
  display: flex;
  flex-direction: column;
}

.app-v2 .ws-machine,
.app-v2 .ws-activity-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--v2-line);
  font-size: 12px;
}

.app-v2 .ws-machine:last-child,
.app-v2 .ws-activity-row:last-child {
  border-bottom: 0;
}

.app-v2 .ws-machine > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-v2 .ws-machine strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .ws-machine span {
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .ws-machine time,
.app-v2 .ws-activity-row time {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
}

.app-v2 .ws-activity-row {
  grid-template-columns: 8px 80px 1fr auto;
}

.app-v2 .ws-activity-action {
  font-size: 11.5px;
  color: var(--v2-text-2);
  font-weight: 500;
}

.app-v2 .ws-activity-detail {
  font-size: 11px;
  color: var(--v2-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .ws-audit-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .ws-audit-row:last-child {
  border-bottom: 0;
}

.app-v2 .ws-audit-row .ops-status-dot {
  margin-top: 5px;
}

.app-v2 .ws-audit-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.app-v2 .ws-audit-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.app-v2 .ws-audit-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--v2-text-1);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .ws-audit-title time {
  flex: 0 0 auto;
  color: var(--v2-text-4);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.app-v2 .ws-audit-content p {
  margin: 0;
  color: var(--v2-text-2);
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.app-v2 .ws-audit-meta {
  color: var(--v2-text-4);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.app-v2 .ws-detail-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .ws-action-form {
  margin: 0;
}

.app-v2 .request-center .request-filterbar {
  background: var(--v2-bg-1);
}

.app-v2 .request-center .request-filterbar .v2-btn {
  flex: 0 0 auto;
  min-width: 92px;
  white-space: nowrap;
}

.app-v2 .request-center .request-filterbar .v2-btn-primary {
  min-width: 112px;
}

.app-v2 .request-center .form-select,
.app-v2 .request-center .form-control {
  min-height: 34px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-bg-0);
  color: var(--v2-text-1);
  font: 500 12px/1.3 "Inter", sans-serif;
}

.app-v2 .request-center .form-select:focus,
.app-v2 .request-center .form-control:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-ring);
}

.app-v2 .request-payment-panel {
  margin: 2px 0 0;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.07), rgba(59, 130, 246, 0.05));
}

.app-v2 .request-receipt-cell {
  grid-column: span 2;
}

.app-v2 .request-receipt-cell small {
  display: block;
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 12px;
}

.app-v2 .request-readonly-field {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-surface-muted);
}

.app-v2 .request-readonly-field span {
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-v2 .request-readonly-field strong {
  color: var(--v2-text);
}

.app-v2 .request-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .app-v2 .request-action-grid {
    grid-template-columns: 1fr;
  }
}

.app-v2 .request-decision-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-bg-1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.app-v2 .request-decision-card.is-approve {
  border-color: rgba(59, 130, 246, 0.24);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), var(--v2-bg-1) 46%);
}

.app-v2 .request-decision-card strong {
  color: var(--v2-text-1);
  font-size: 13px;
  font-weight: 650;
}

.app-v2 .request-decision-card > span {
  color: var(--v2-text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.app-v2 .request-decision-card .v2-btn {
  justify-content: center;
  min-height: 34px;
}

.app-v2 .request-support-thread .ws-detail-band-meta {
  color: var(--v2-text-3);
  font-size: 11.5px;
}

.app-v2 .support-thread {
  display: grid;
  gap: 10px;
}

.app-v2 .support-message {
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--v2-bg-2);
}

.app-v2 .support-message.is-admin {
  border-color: rgba(59, 130, 246, 0.24);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), var(--v2-bg-1));
}

.app-v2 .support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.app-v2 .support-message-meta strong {
  color: var(--v2-text-1);
  font-size: 12px;
  font-weight: 700;
}

.app-v2 .support-message-meta time {
  color: var(--v2-text-3);
  font-size: 11px;
}

.app-v2 .support-message p {
  margin: 0;
  color: var(--v2-text-2);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.app-v2 .ws-btn-danger {
  color: var(--v2-danger);
}

.app-v2 .ws-btn-danger:hover {
  background: rgba(248, 113, 113, 0.10);
  border-color: var(--v2-danger);
}

/* Flash banner */
.app-v2 .ws-flash {
  margin: 12px 16px 0;
  padding: 10px 14px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-left: 3px solid var(--v2-accent);
  border-radius: 5px;
  font-size: 12px;
  color: var(--v2-text-1);
}

/* Customer-specific list/detail extras */
.app-v2 .ws-customer-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
  font: 500 11px/1 "Inter", sans-serif;
  letter-spacing: 0;
  flex: 0 0 auto;
  text-transform: uppercase;
}

.app-v2 .ws-row .ws-customer-avatar {
  margin-right: 0;
}

.app-v2 .ws-customer-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  font-size: 14px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
}

.app-v2 .ws-customer-head {
  flex-direction: row !important;
  align-items: center;
  gap: 14px !important;
}

.app-v2 .ws-customer-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Customer licenses preview list */
.app-v2 .ws-customer-licenses {
  display: flex;
  flex-direction: column;
}

.app-v2 .ws-customer-license {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  font-size: 12px;
  transition: background 80ms ease;
}

.app-v2 .ws-customer-license:hover {
  background: var(--v2-bg-1);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.app-v2 .ws-customer-license:last-of-type {
  border-bottom: 0;
}

.app-v2 .ws-customer-license > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-v2 .ws-customer-license strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .ws-customer-license span {
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .ws-customer-license time {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.app-v2 .ws-customer-license-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--v2-accent);
  font-weight: 500;
}

.app-v2 .ws-customer-license-more svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .ws-customer-notes {
  font-size: 13px;
  color: var(--v2-text-2);
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

/* Event stream rows */
.app-v2 .ws-event-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  position: relative;
  transition: background 80ms ease;
}

.app-v2 .ws-event-row:hover {
  background: var(--v2-bg-1);
}

.app-v2 .ws-event-row.is-unread {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), transparent 62%);
}

.app-v2 .ws-event-row.is-unread .ws-event-action strong {
  font-weight: 800;
}

.app-v2 .ws-event-row:focus-visible {
  outline: none;
  background: var(--v2-bg-2);
}

.app-v2 .ws-event-row.is-selected {
  background: var(--v2-bg-2);
}

.app-v2 .ws-event-row.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--v2-accent);
  border-radius: 2px;
}

.app-v2 .ws-event-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-v2 .ws-event-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-v2 .ws-event-action strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .ws-event-entity {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-4);
}

.app-v2 .ws-event-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .ws-event-dot {
  display: inline-block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--v2-text-4);
}

.app-v2 .ws-event-row time {
  font-size: 11px;
  color: var(--v2-text-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-v2 .ws-event-payload {
  margin: 0;
  padding: 12px 14px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--v2-text-2);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
}

/* Product icon (square, like an app icon) */
.app-v2 .ws-product-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--v2-bg-2);
  flex: 0 0 auto;
}

.app-v2 .ws-product-icon-fallback {
  display: grid;
  place-items: center;
  font: 500 12px/1 "Inter", sans-serif;
  color: var(--v2-text-2);
  text-transform: uppercase;
}

.app-v2 .ws-product-icon-lg {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  font-size: 16px;
}

.app-v2 .ws-issue-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-size: 12px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--v2-text-1) !important;
  cursor: pointer;
}

.app-v2 .ws-issue-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--v2-accent);
}

/* Issue slide-over */
.app-v2 .ws-issue {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--v2-bg-1);
  border-left: 1px solid var(--v2-line);
  box-shadow: -16px 0 48px rgba(0,0,0,0.3);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-v2 .ws-issue.is-open {
  transform: translateX(0);
}

.app-v2 .ws-issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .ws-issue-head h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.app-v2 .ws-issue-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.app-v2 .ws-issue-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .ws-issue-form .form-control,
.app-v2 .ws-issue-form .form-select {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  background: var(--v2-bg-0);
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-text-1);
}

.app-v2 .ws-issue-form .form-control:focus,
.app-v2 .ws-issue-form .form-select:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-ring);
}

.app-v2 .ws-issue-actions {
  display: inline-flex;
  gap: 6px;
  padding-top: 4px;
}

/* ================================================================
   SETTINGS hub
   ================================================================ */
.app-v2 .settings {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-v2 .settings-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-v2 .settings-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .settings-title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 4px 0;
  color: var(--v2-text-1);
}

.app-v2 .settings-text {
  font-size: 13px;
  color: var(--v2-text-3);
  margin: 0;
  max-width: 60ch;
}

.app-v2 .settings-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-v2 .settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-v2 .settings-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
}

.app-v2 .settings-group-head h2 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  color: var(--v2-text-1);
  letter-spacing: -0.005em;
}

.app-v2 .settings-group-head span {
  font-size: 11px;
  color: var(--v2-text-3);
  letter-spacing: 0;
}

.app-v2 .settings-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .settings-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  transition: background 80ms ease, padding 80ms ease;
  position: relative;
}

.app-v2 .settings-row:hover {
  background: var(--v2-bg-1);
  padding-left: 14px;
  padding-right: 14px;
}

.app-v2 .settings-row:focus-visible {
  outline: none;
  background: var(--v2-bg-2);
  padding-left: 14px;
  padding-right: 14px;
}

.app-v2 .settings-row:focus-visible::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--v2-accent);
  border-radius: 2px;
}

.app-v2 .settings-row-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
}

.app-v2 .settings-row-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .settings-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-v2 .settings-row-main strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: -0.005em;
}

.app-v2 .settings-row-main span {
  font-size: 11.5px;
  color: var(--v2-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .settings-row-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--v2-text-2);
  white-space: nowrap;
}

.app-v2 .settings-row-statustext {
  font-size: 11.5px;
  color: var(--v2-text-2);
}

.app-v2 .settings-row-meta {
  font-size: 11px;
  color: var(--v2-text-3);
  padding: 2px 7px;
  background: var(--v2-bg-2);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.app-v2 .settings-row-arrow {
  width: 13px;
  height: 13px;
  color: var(--v2-text-4);
  flex: 0 0 auto;
}

.app-v2 .settings-row:hover .settings-row-arrow {
  color: var(--v2-text-2);
}

.app-v2 .settings-foot {
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
  font-size: 12px;
  color: var(--v2-text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 720px) {
  .app-v2 .settings {
    padding: 20px 16px 40px;
  }
  .app-v2 .settings-row-meta {
    display: none;
  }
}

/* ================================================================
   LEGACY OVERRIDE LAYER — when fikrova.css markup renders inside
   the new app shell, force the v2 visual language on top of it.
   These selectors are scoped to .app-v2 so they only fire on the
   new shell; the old shell (still used by portal/auth/marketing)
   is unaffected.
   ================================================================ */
.app-v2 .app-canvas {
  padding: 28px 32px 40px;
  gap: 24px;
}

/* ---- Hero strips → calm one-line header --------------------- */
.app-v2 .page-hero,
.app-v2 .page-hero.compact,
.app-v2 .request-hero,
.app-v2 .communication-hero,
.app-v2 .notification-hero,
.app-v2 .template-hero,
.app-v2 .automation-hero,
.app-v2 .timeline-hero,
.app-v2 .access-hero,
.app-v2 .offline-generator-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 4px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.app-v2 .page-hero > div:first-child,
.app-v2 .request-hero > div:first-child,
.app-v2 .communication-hero > div:first-child,
.app-v2 .notification-hero > div:first-child,
.app-v2 .template-hero > div:first-child,
.app-v2 .automation-hero > div:first-child,
.app-v2 .timeline-hero > div:first-child,
.app-v2 .access-hero > div:first-child,
.app-v2 .offline-generator-hero > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 60ch;
}

.app-v2 .page-hero .eyebrow,
.app-v2 .request-hero .eyebrow,
.app-v2 .communication-hero .eyebrow,
.app-v2 .notification-hero .eyebrow,
.app-v2 .template-hero .eyebrow,
.app-v2 .automation-hero .eyebrow,
.app-v2 .timeline-hero .eyebrow,
.app-v2 .access-hero .eyebrow,
.app-v2 .offline-generator-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
  background: none;
  padding: 0;
  margin: 0 0 2px;
}

.app-v2 .page-hero h2,
.app-v2 .request-hero h2,
.app-v2 .communication-hero h2,
.app-v2 .notification-hero h2,
.app-v2 .template-hero h2,
.app-v2 .automation-hero h2,
.app-v2 .timeline-hero h2,
.app-v2 .access-hero h2,
.app-v2 .offline-generator-hero h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--v2-text-1);
  margin: 0 0 4px;
}

.app-v2 .page-hero p,
.app-v2 .request-hero p,
.app-v2 .communication-hero p,
.app-v2 .notification-hero p,
.app-v2 .template-hero p,
.app-v2 .automation-hero p,
.app-v2 .timeline-hero p,
.app-v2 .access-hero p,
.app-v2 .offline-generator-hero p {
  font-size: 13px;
  color: var(--v2-text-3);
  margin: 0;
}

/* ---- Hero stat strip → inline operational summary ---------- */
.app-v2 .hero-stat-group {
  display: inline-flex;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-bg-1);
  overflow: hidden;
  box-shadow: none;
}

.app-v2 .hero-stat {
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--v2-line);
  min-width: 110px;
  background: none;
}

.app-v2 .hero-stat:last-child { border-right: 0; }

.app-v2 .hero-stat span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .hero-stat strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--v2-text-1);
  font-variant-numeric: tabular-nums;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ---- Cards → flat surfaces with hairline borders ----------- */
.app-v2 .card,
.app-v2 .surface,
.app-v2 .data-card,
.app-v2 .form-card,
.app-v2 .request-list-card,
.app-v2 .request-preview-card,
.app-v2 .request-command-card,
.app-v2 .communication-history-card,
.app-v2 .communication-preview-card,
.app-v2 .communication-composer,
.app-v2 .template-library-card,
.app-v2 .template-editor-card,
.app-v2 .template-preview-card,
.app-v2 .automation-rules-card,
.app-v2 .automation-editor-card,
.app-v2 .automation-delivery-card,
.app-v2 .timeline-stream-card,
.app-v2 .timeline-preview-card,
.app-v2 .timeline-command-card,
.app-v2 .notification-card,
.app-v2 .notification-control-card,
.app-v2 .release-form-card,
.app-v2 .release-list-card,
.app-v2 .release-analytics-card,
.app-v2 .access-control-card,
.app-v2 .access-role-card,
.app-v2 .health-score-card,
.app-v2 .health-metric-card,
.app-v2 .health-product-panel,
.app-v2 .health-command-center,
.app-v2 .health-panel,
.app-v2 .reset-queue-card,
.app-v2 .renewal-queue-card,
.app-v2 .offline-generator-card,
.app-v2 .offline-history-card,
.app-v2 .activation-key-panel,
.app-v2 .backup-import-card,
.app-v2 .backup-warning-card,
.app-v2 .backup-danger-card,
.app-v2 .app-recovery-code-card,
.app-v2 .email-preview-card,
.app-v2 .message-preview {
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: none;
  gap: 12px;
}

.app-v2 .card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.app-v2 .card-title-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-v2 .section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: -0.005em;
  margin: 0;
}

.app-v2 .muted,
.app-v2 .card p.muted {
  font-size: 12px;
  color: var(--v2-text-3);
  margin: 0;
}

/* ---- Buttons → v2 button language ------------------------- */
.app-v2 .btn,
.app-v2 button.btn,
.app-v2 a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  background: var(--v2-bg-1);
  color: var(--v2-text-1);
  font: 500 12px/1 "Inter", sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 80ms ease, border-color 80ms ease;
  text-decoration: none;
  box-shadow: none;
}

.app-v2 .btn:hover {
  background: var(--v2-bg-2);
  border-color: var(--v2-line-strong);
}

.app-v2 .btn-primary {
  background: var(--v2-text-1);
  color: var(--v2-bg-0);
  border-color: var(--v2-text-1);
}

.app-v2 .btn-primary:hover {
  opacity: 0.9;
  background: var(--v2-text-1);
}

.app-v2 .btn-outline {
  background: var(--v2-bg-1);
  color: var(--v2-text-1);
  border-color: var(--v2-line);
}

.app-v2 .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--v2-text-2);
}

.app-v2 .btn-ghost:hover { background: var(--v2-bg-2); color: var(--v2-text-1); }

.app-v2 .btn-danger-outline {
  background: transparent;
  color: var(--v2-danger);
  border-color: var(--v2-line);
}

.app-v2 .btn-danger-outline:hover {
  background: rgba(248, 113, 113, 0.10);
  border-color: var(--v2-danger);
}

.app-v2 .btn-sm { height: 26px; padding: 0 10px; font-size: 11.5px; }
.app-v2 .btn-lg { height: 36px; padding: 0 14px; font-size: 13px; }

/* ---- Forms → v2 control language --------------------------- */
.app-v2 .form-control,
.app-v2 .form-select,
.app-v2 input[type="text"].form-control,
.app-v2 input[type="email"].form-control,
.app-v2 input[type="password"].form-control,
.app-v2 input[type="search"].form-control,
.app-v2 input[type="number"].form-control,
.app-v2 input[type="date"].form-control,
.app-v2 textarea.form-control {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-text-1);
  font: 500 13px/18px "Inter", sans-serif;
  letter-spacing: -0.005em;
  box-shadow: none;
  transition: border-color 80ms ease, box-shadow 80ms ease;
}

.app-v2 textarea.form-control {
  height: auto;
  padding: 8px 10px;
  line-height: 1.5;
}

.app-v2 .form-control:focus,
.app-v2 .form-select:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-ring);
}

.app-v2 .form-control::placeholder { color: var(--v2-text-3); }

.app-v2 .form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--v2-text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.app-v2 .form-control-sm,
.app-v2 .form-select-sm { height: 28px; font-size: 12px; }

/* ---- Tables → calm hairline rows --------------------------- */
.app-v2 .table-shell {
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--v2-bg-1);
}

.app-v2 .table,
.app-v2 table.polished-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.app-v2 .table thead th,
.app-v2 table.polished-table thead th {
  background: var(--v2-bg-2);
  border-bottom: 1px solid var(--v2-line);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  padding: 9px 12px;
  text-align: left;
}

.app-v2 .table tbody td,
.app-v2 table.polished-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--v2-line);
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .table tbody tr:last-child td { border-bottom: 0; }

.app-v2 .table tbody tr:hover td { background: var(--v2-bg-1); }

.app-v2 .empty-row {
  text-align: center !important;
  color: var(--v2-text-3) !important;
  padding: 24px 16px !important;
  font-size: 12px;
}

.app-v2 .key-code,
.app-v2 code.key-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--v2-text-1);
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Badges → v2 chips ------------------------------------ */
.app-v2 .badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
  font: 500 10.5px/1 "Inter", sans-serif;
  letter-spacing: 0;
  border: 0;
}

.app-v2 .badge-soft::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.app-v2 .badge-soft.badge-warning { color: var(--v2-warn); background: rgba(245, 158, 11, 0.12); }
.app-v2 .badge-soft.badge-danger { color: var(--v2-danger); background: rgba(239, 68, 68, 0.12); }
.app-v2 .badge-soft.badge-info { color: var(--v2-info); background: rgba(59, 130, 246, 0.12); }
.app-v2 .badge-soft.badge-muted { color: var(--v2-text-3); }

/* ---- Stacked cell / product identity ----------------------- */
.app-v2 .stacked-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-v2 .stacked-cell strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .stacked-cell span {
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .product-identity-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-v2 .product-identity-cell img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}

.app-v2 .product-icon-fallback {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
  font-size: 11px;
  font-weight: 500;
}

/* ---- Status dot reuse from new shell ---------------------- */
.app-v2 .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-success);
  margin-right: 6px;
  vertical-align: middle;
}

/* ---- Alerts (legacy) -------------------------------------- */
.app-v2 .alert {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--v2-line);
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: none;
}

.app-v2 .alert-info { background: rgba(96, 165, 250, 0.10); border-color: transparent; color: var(--v2-info); }
.app-v2 .alert-success { background: rgba(74, 222, 128, 0.10); border-color: transparent; color: var(--v2-success); }
.app-v2 .alert-warning { background: rgba(245, 158, 11, 0.10); border-color: transparent; color: var(--v2-warn); }
.app-v2 .alert-danger { background: rgba(248, 113, 113, 0.10); border-color: transparent; color: var(--v2-danger); }

/* ---- Switch lines and check rows -------------------------- */
.app-v2 .switch-line,
.app-v2 .check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: var(--v2-bg-1);
  cursor: pointer;
}

.app-v2 .switch-line:hover,
.app-v2 .check-row:hover { border-color: var(--v2-line-strong); }

.app-v2 .switch-line strong,
.app-v2 .check-row strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--v2-text-1);
  display: block;
}

.app-v2 .switch-line small,
.app-v2 .check-row small {
  display: block;
  font-size: 11.5px;
  color: var(--v2-text-3);
  margin-top: 2px;
}

.app-v2 .switch-line input,
.app-v2 .check-row input { accent-color: var(--v2-accent); }

/* ---- Card icons → v2 squares ------------------------------ */
.app-v2 .card-icon,
.app-v2 .license-card-icon,
.app-v2 .communication-icon,
.app-v2 .notification-card-icon,
.app-v2 .notification-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
  font-size: 11px;
  font-weight: 500;
}

.app-v2 .card-icon svg,
.app-v2 .license-card-icon svg,
.app-v2 .communication-icon svg,
.app-v2 .notification-card-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ---- Management grid + filter rows → calm row pattern ---- */
.app-v2 .management-grid {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .app-v2 .management-grid { grid-template-columns: 1fr; }
}

.app-v2 .event-filter-form,
.app-v2 .customer-filter,
.app-v2 .license-vault-filter,
.app-v2 .timeline-filter-form,
.app-v2 .release-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  align-items: flex-end;
}

.app-v2 .event-filter-form > div,
.app-v2 .customer-filter > * {
  flex: 1 1 180px;
  min-width: 160px;
}

/* ---- License vault (legacy) ------------------------------- */
.app-v2 .license-vault-panel,
.app-v2 .license-issue-panel,
.app-v2 .vault-stats {
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  padding: 18px;
}

.app-v2 .license-table-frame,
.app-v2 .table-shell.wide {
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  overflow: auto;
  background: var(--v2-bg-1);
}

/* ---- Layout variants (Communications, Requests, Timeline, etc.) -- */
.app-v2 .event-log-layout,
.app-v2 .request-inbox-layout,
.app-v2 .communication-layout,
.app-v2 .template-workspace,
.app-v2 .automation-grid,
.app-v2 .timeline-replay-layout,
.app-v2 .notification-grid,
.app-v2 .release-center-grid,
.app-v2 .offline-workspace,
.app-v2 .backup-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 1.3fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .app-v2 .event-log-layout,
  .app-v2 .request-inbox-layout,
  .app-v2 .communication-layout,
  .app-v2 .template-workspace,
  .app-v2 .automation-grid,
  .app-v2 .timeline-replay-layout,
  .app-v2 .notification-grid,
  .app-v2 .release-center-grid,
  .app-v2 .offline-workspace,
  .app-v2 .backup-layout { grid-template-columns: 1fr; }
}

/* ---- Misc legacy patches --------------------------------- */
.app-v2 .table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.app-v2 .text-danger { color: var(--v2-danger); }
.app-v2 .small { font-size: 11.5px; }
.app-v2 .info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--v2-line);
  font-size: 12.5px;
}

.app-v2 .info-list > div > span { color: var(--v2-text-3); font-size: 11.5px; }
.app-v2 .info-list > div > strong { color: var(--v2-text-1); font-weight: 500; font-size: 12.5px; }

.app-v2 .machine-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  font-size: 10.5px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  color: var(--v2-text-1);
  border: 1px solid var(--v2-line);
}

/* ================================================================
   AUTH (Login / Forgot / Reset) — v2 redesign
   Drops the legacy dual-pane hero+form. Single centered card.
   ================================================================ */
.app-v2 body.app-v2,
.app-v2 .auth-page,
.app-v2 .marketing-page {
  background: var(--v2-bg-0);
}

.app-v2 .admin-login-shell {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  margin: 0 auto;
}

.app-v2 .admin-login-layout {
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
}

/* Hide the noisy hero panel entirely on v2 — keep the form */
.app-v2 .admin-login-hero,
.app-v2 .admin-login-preview,
.app-v2 .admin-login-points,
.app-v2 .admin-login-copy {
  display: none !important;
}

.app-v2 .admin-login-card {
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--v2-bg-0) 0 0 0 0,
              0 32px 64px -16px rgba(0, 0, 0, 0.4),
              0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.app-v2 .admin-login-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 4px;
}

.app-v2 .admin-login-lock {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  border: 0;
}

.app-v2 .admin-login-lock svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .admin-login-card-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.app-v2 .admin-login-eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .admin-login-card-head h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--v2-text-1);
  margin: 0;
}

.app-v2 .admin-login-card-head p {
  font-size: 13px;
  color: var(--v2-text-3);
  margin: 0;
  max-width: 32ch;
}

.app-v2 .admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-v2 .admin-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-v2 .admin-login-field > label,
.app-v2 .admin-login-label-row label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .admin-login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-v2 .admin-login-label-row a {
  font-size: 11px;
  color: var(--v2-text-3);
  text-decoration: none;
}

.app-v2 .admin-login-label-row a:hover { color: var(--v2-accent); }

.app-v2 .admin-login-input-wrap {
  position: relative;
}

.app-v2 .admin-login-input-wrap .form-control {
  height: 38px;
  padding-left: 36px;
  padding-right: 12px;
  font-size: 13px;
}

.app-v2 .admin-login-input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--v2-text-3);
  pointer-events: none;
}

.app-v2 .admin-login-input-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .admin-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--v2-text-3);
  cursor: pointer;
  border-radius: 4px;
}

.app-v2 .admin-login-password-toggle:hover {
  color: var(--v2-text-1);
  background: var(--v2-bg-2);
}

.app-v2 .admin-login-password-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .admin-login-submit {
  height: 38px;
  background: var(--v2-text-1);
  color: var(--v2-bg-0);
  border: 0;
  border-radius: 6px;
  font: 500 13px/1 "Inter", sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.app-v2 .admin-login-submit:hover { opacity: 0.9; }

.app-v2 .admin-login-submit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .admin-login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--v2-line);
  padding-top: 14px;
  font-size: 11.5px;
  color: var(--v2-text-3);
}

.app-v2 .admin-login-footer a {
  font-size: 11.5px;
  color: var(--v2-text-3);
  text-decoration: none;
}

.app-v2 .admin-login-footer a:hover { color: var(--v2-accent); }

.app-v2 .admin-login-dev-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--v2-bg-2);
  border: 1px dashed var(--v2-line-strong);
  border-radius: 6px;
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .admin-login-dev-note code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--v2-text-1);
}

.app-v2 .admin-login-alert {
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.10);
  border-radius: 6px;
  color: var(--v2-danger);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Brand mark above the form */
.app-v2 .admin-login-shell::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  background: url('/img/brand/fikrova-mark.svg') center/contain no-repeat;
  border-radius: 8px;
}

/* ================================================================
   PORTAL — v2 customer-facing rebrand
   ================================================================ */
.app-v2 .portal-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  background: var(--v2-bg-0);
}

.app-v2 .portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--v2-line);
  margin-bottom: 32px;
}

.app-v2 .portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-text-1);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.app-v2 .portal-brand strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .portal-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.app-v2 .portal-language {
  display: inline-flex;
  gap: 4px;
  font-size: 12px;
  color: var(--v2-text-3);
}

.app-v2 .portal-language a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--v2-text-3);
  text-decoration: none;
}

.app-v2 .portal-language a:hover { color: var(--v2-text-1); }
.app-v2 .portal-language a.active {
  color: var(--v2-text-1);
  background: var(--v2-bg-2);
}

/* Portal home hero */
.app-v2 .portal-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--v2-line);
  margin-bottom: 32px;
}

@media (max-width: 880px) {
  .app-v2 .portal-hero { grid-template-columns: 1fr; gap: 32px; }
}

.app-v2 .portal-home-hero-content .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.app-v2 .portal-home-hero-content h1 {
  font-size: 32px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--v2-text-1);
}

.app-v2 .portal-home-hero-content p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--v2-text-3);
  margin: 0 0 24px;
  max-width: 50ch;
}

.app-v2 .portal-home-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-v2 .portal-home-actions .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.app-v2 .portal-home-trust {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--v2-text-3);
}

.app-v2 .portal-home-trust span {
  padding: 4px 10px;
  background: var(--v2-bg-2);
  border-radius: 999px;
}

/* Portal visual window */
.app-v2 .portal-home-visual {
  display: flex;
  justify-content: center;
}

.app-v2 .portal-visual-window {
  width: 100%;
  max-width: 360px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  overflow: hidden;
}

.app-v2 .portal-visual-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--v2-line);
  background: var(--v2-bg-2);
}

.app-v2 .portal-visual-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-bg-3);
}

.app-v2 .portal-visual-license,
.app-v2 .portal-visual-grid,
.app-v2 .portal-visual-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .portal-visual-row:last-child { border-bottom: 0; }

.app-v2 .portal-visual-license {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.app-v2 .portal-visual-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
}

.app-v2 .portal-visual-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .portal-visual-license div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-v2 .portal-visual-license div span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
}

.app-v2 .portal-visual-license div strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--v2-text-1);
  font-weight: 500;
}

.app-v2 .portal-visual-license em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--v2-success);
}

.app-v2 .portal-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.app-v2 .portal-visual-grid > div { display: flex; flex-direction: column; gap: 1px; }
.app-v2 .portal-visual-grid span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
}

.app-v2 .portal-visual-grid strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--v2-text-1);
  font-weight: 500;
}

.app-v2 .portal-visual-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.app-v2 .portal-visual-row span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-text-3);
}

.app-v2 .portal-visual-row.short span:first-child { background: var(--v2-text-4); }
.app-v2 .portal-visual-row strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-2);
}

/* Portal panels */
.app-v2 .portal-account-grid,
.app-v2 .portal-dashboard {
  display: grid;
  gap: 16px;
}

.app-v2 .portal-account-grid { grid-template-columns: 1fr 1fr; }
.app-v2 .portal-dashboard { grid-template-columns: 1.4fr 1fr; align-items: start; }

@media (max-width: 880px) {
  .app-v2 .portal-account-grid,
  .app-v2 .portal-dashboard { grid-template-columns: 1fr; }
}

.app-v2 .portal-account-panel,
.app-v2 .portal-license-panel,
.app-v2 .portal-releases-panel,
.app-v2 .portal-requests-panel,
.app-v2 .portal-machines-panel,
.app-v2 .portal-action-panel,
.app-v2 .portal-choice-card,
.app-v2 .portal-account-summary,
.app-v2 .portal-trial-card,
.app-v2 .portal-trial-form-panel,
.app-v2 .portal-trial-result-panel,
.app-v2 .portal-onboarding-card,
.app-v2 .portal-verify-card,
.app-v2 .portal-auth-card {
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-v2 .portal-action-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .portal-action-heading > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.app-v2 .portal-action-heading h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--v2-text-1);
}

.app-v2 .portal-action-heading p {
  font-size: 12px;
  color: var(--v2-text-3);
  margin: 0;
}

.app-v2 .portal-action-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  margin-bottom: 4px;
  display: block;
}

.app-v2 .portal-status-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  font: 500 11px/1 "Inter", sans-serif;
  color: var(--v2-text-2);
}

.app-v2 .portal-status-pill.state-active { color: var(--v2-success); background: rgba(74, 222, 128, 0.12); }
.app-v2 .portal-status-pill.state-warn,
.app-v2 .portal-status-pill.state-warning { color: var(--v2-warn); background: rgba(245, 158, 11, 0.12); }
.app-v2 .portal-status-pill.state-danger { color: var(--v2-danger); background: rgba(248, 113, 113, 0.12); }

.app-v2 .portal-key-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--v2-bg-2);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.app-v2 .portal-key-strip span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-family: "Inter", sans-serif;
}

.app-v2 .portal-key-strip code {
  font-family: "JetBrains Mono", monospace;
  color: var(--v2-text-1);
  font-size: 12px;
}

.app-v2 .portal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--v2-line);
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  overflow: hidden;
}

.app-v2 .portal-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--v2-bg-1);
}

.app-v2 .portal-detail-grid span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-text-3);
}

.app-v2 .portal-detail-grid strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--v2-text-1);
  font-weight: 500;
}

.app-v2 .portal-usage {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-v2 .portal-usage > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--v2-text-3);
}

.app-v2 .portal-usage strong {
  color: var(--v2-text-1);
  font-weight: 500;
}

.app-v2 .portal-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--v2-bg-2);
  overflow: hidden;
}

.app-v2 .portal-progress span {
  display: block;
  height: 100%;
  background: var(--v2-accent);
  border-radius: 2px;
  transition: width 200ms ease;
}

/* Portal onboarding (forgot/reset/verify/signup) */
.app-v2 .portal-onboarding-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.app-v2 .portal-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.app-v2 .portal-auth-layout {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 880px) {
  .app-v2 .portal-auth-layout { grid-template-columns: 1fr; }
  .app-v2 .portal-auth-copy { display: none !important; }
}

.app-v2 .portal-auth-card {
  padding: 32px;
  background: var(--v2-bg-1);
}

.app-v2 .portal-auth-copy {
  padding: 40px 32px;
  background: var(--v2-bg-2);
  border-right: 1px solid var(--v2-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.app-v2 .portal-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v2-text-1);
  text-decoration: none;
}

.app-v2 .portal-auth-brand strong {
  font-size: 14px;
  font-weight: 500;
}

.app-v2 .portal-auth-copy-center h1 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--v2-text-1);
  margin: 0 0 12px;
}

.app-v2 .portal-auth-copy-center p {
  font-size: 13px;
  color: var(--v2-text-3);
  margin: 0 0 20px;
}

.app-v2 .btn-auth-ghost {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--v2-line);
  color: var(--v2-text-1);
  border-radius: 6px;
  font: 500 12px/1 "Inter", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.app-v2 .btn-auth-ghost:hover { background: var(--v2-bg-2); }

.app-v2 .portal-auth-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.app-v2 .portal-auth-card-head h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--v2-text-1);
}

.app-v2 .portal-auth-card-head p {
  font-size: 12.5px;
  color: var(--v2-text-3);
  margin: 0;
}

.app-v2 .portal-auth-form,
.app-v2 .portal-register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-v2 .portal-input-wrap {
  position: relative;
}

.app-v2 .portal-input-wrap .form-control {
  padding-left: 36px;
  height: 36px;
}

.app-v2 .portal-auth-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v2-text-3);
  pointer-events: none;
}

.app-v2 .portal-auth-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.app-v2 .portal-forgot-link {
  font-size: 11.5px;
  color: var(--v2-text-3);
  text-decoration: none;
  text-align: right;
  margin-top: -4px;
}

.app-v2 .portal-forgot-link:hover { color: var(--v2-accent); }

.app-v2 .portal-auth-switch {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
  font-size: 12px;
  color: var(--v2-text-3);
  text-align: center;
}

.app-v2 .portal-auth-switch button,
.app-v2 .portal-auth-switch a {
  background: transparent;
  border: 0;
  color: var(--v2-accent);
  font: 500 12px/1 "Inter", sans-serif;
  cursor: pointer;
  text-decoration: none;
  margin-left: 4px;
}

.app-v2 .portal-auth-switch a:hover,
.app-v2 .portal-auth-switch button:hover { text-decoration: underline; }

/* Hide login/signup pane based on mode */
.app-v2 .portal-auth-shell.is-login .portal-form-signup,
.app-v2 .portal-auth-shell.is-login .portal-copy-login,
.app-v2 .portal-auth-shell.is-signup .portal-form-login,
.app-v2 .portal-auth-shell.is-signup .portal-copy-signup { display: none; }

/* Country picker (legacy markup, just restyle) */
.app-v2 .portal-country-picker { position: relative; }
.app-v2 .portal-country-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding-left: 36px;
  padding-right: 12px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-text-1);
  font: 500 13px/1 "Inter", sans-serif;
  cursor: pointer;
}

.app-v2 .portal-country-trigger:hover { border-color: var(--v2-line-strong); }
.app-v2 .portal-country-trigger-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.app-v2 .portal-country-caret { margin-left: auto; color: var(--v2-text-3); }
.app-v2 .portal-country-caret svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.app-v2 .portal-country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.4);
  max-height: 320px;
  overflow: hidden;
}

.app-v2 .portal-country-picker.is-open .portal-country-menu { display: flex; }

.app-v2 .portal-country-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .portal-country-search svg { width: 14px; height: 14px; stroke: var(--v2-text-3); stroke-width: 1.5; fill: none; }
.app-v2 .portal-country-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--v2-text-1);
  font: 500 13px/1 "Inter", sans-serif;
}

.app-v2 .portal-country-list { overflow-y: auto; padding: 4px; }
.app-v2 .portal-country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--v2-text-1);
  font: 500 12.5px/1 "Inter", sans-serif;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.app-v2 .portal-country-option:hover { background: var(--v2-bg-2); }
.app-v2 .portal-country-option.is-selected { background: var(--v2-accent-soft); color: var(--v2-accent); }
.app-v2 .portal-country-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.app-v2 .portal-country-code { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--v2-text-3); }

/* Portal license/release/request lists */
.app-v2 .portal-account-license-list,
.app-v2 .portal-release-list,
.app-v2 .portal-request-list,
.app-v2 .portal-machine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-v2 .portal-account-license-row,
.app-v2 .portal-release-row,
.app-v2 .portal-request-row,
.app-v2 .portal-machine-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
}

.app-v2 .portal-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--v2-text-3);
  font-size: 12.5px;
  border: 1px dashed var(--v2-line);
  border-radius: 8px;
}

.app-v2 .portal-empty-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ================================================================
   MARKETING — Landing, Privacy, Error
   ================================================================ */
.app-v2 .company-home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  background: var(--v2-bg-0);
  color: var(--v2-text-1);
}

.app-v2 .company-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-text-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.app-v2 .company-nav-links {
  display: inline-flex;
  gap: 28px;
  font-size: 13px;
}

.app-v2 .company-nav-links a {
  color: var(--v2-text-3);
  text-decoration: none;
}

.app-v2 .company-nav-links a:hover { color: var(--v2-text-1); }

.app-v2 .company-nav-actions {
  display: inline-flex;
  gap: 8px;
}

.app-v2 .company-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--v2-line);
  margin-bottom: 64px;
}

@media (max-width: 880px) {
  .app-v2 .company-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; margin-bottom: 32px; }
}

.app-v2 .company-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

.app-v2 .company-hero-copy h1 {
  font-size: 40px;
  line-height: 46px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--v2-text-1);
  margin: 0 0 20px;
}

@media (max-width: 880px) { .app-v2 .company-hero-copy h1 { font-size: 32px; line-height: 38px; } }

.app-v2 .company-hero-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--v2-text-3);
  margin: 0 0 32px;
  max-width: 50ch;
}

.app-v2 .company-hero-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.app-v2 .company-hero-actions .btn {
  height: 40px;
  padding: 0 20px;
  font-size: 13.5px;
}

.app-v2 .company-hero-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-v2 .company-hero-badges span {
  padding: 4px 10px;
  background: var(--v2-bg-2);
  border-radius: 999px;
  font-size: 11px;
  color: var(--v2-text-2);
}

/* Marketing window mockup */
.app-v2 .company-window {
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  overflow: hidden;
}

.app-v2 .company-window-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  background: var(--v2-bg-2);
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-bg-3);
}

.app-v2 .company-window-bar strong {
  margin-left: auto;
  font-size: 11px;
  color: var(--v2-text-3);
  font-weight: 500;
}

.app-v2 .company-window-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--v2-line);
}

.app-v2 .company-preview-card,
.app-v2 .company-preview-list {
  background: var(--v2-bg-1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-v2 .company-preview-main { grid-row: span 3; }

.app-v2 .company-preview-card span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
}

.app-v2 .company-preview-card strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 500;
  color: var(--v2-text-1);
  letter-spacing: -0.02em;
}

.app-v2 .company-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  margin-top: 8px;
}

.app-v2 .company-chart i {
  flex: 1;
  background: var(--v2-accent-soft);
  border-radius: 2px;
  min-height: 6px;
}

.app-v2 .company-chart i:nth-child(1) { height: 30%; }
.app-v2 .company-chart i:nth-child(2) { height: 55%; }
.app-v2 .company-chart i:nth-child(3) { height: 80%; }
.app-v2 .company-chart i:nth-child(4) { height: 65%; }
.app-v2 .company-chart i:nth-child(5) { height: 90%; background: var(--v2-accent); }

.app-v2 .company-preview-list {
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 0;
}

.app-v2 .company-preview-list > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-preview-list > div:last-child { border-bottom: 0; }
.app-v2 .company-preview-list > div span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-success);
}

.app-v2 .company-preview-list > div strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .company-preview-list > div em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
}

/* Marketing sections */
.app-v2 .company-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-section-head { max-width: 60ch; margin-bottom: 40px; }
.app-v2 .company-section-head h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.app-v2 .company-section-head p {
  font-size: 14px;
  color: var(--v2-text-3);
  margin: 0;
}

.app-v2 .company-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) { .app-v2 .company-product-grid { grid-template-columns: 1fr; } }

.app-v2 .company-card {
  padding: 24px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-v2 .company-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.app-v2 .company-card-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.app-v2 .company-card h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--v2-text-1);
}

.app-v2 .company-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--v2-text-3);
  margin: 0;
}

.app-v2 .company-platform {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--v2-line);
}

@media (max-width: 880px) { .app-v2 .company-platform { grid-template-columns: 1fr; gap: 24px; } }

.app-v2 .company-platform > div h2 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.app-v2 .company-platform > div p {
  font-size: 13.5px;
  color: var(--v2-text-3);
  margin: 0;
}

.app-v2 .company-platform-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .company-platform-list article {
  padding: 14px 0;
  border-bottom: 1px solid var(--v2-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-v2 .company-platform-list strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text-1);
}

.app-v2 .company-platform-list span {
  font-size: 12px;
  color: var(--v2-text-3);
}

.app-v2 .company-cta {
  padding: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--v2-line);
}

@media (max-width: 720px) { .app-v2 .company-cta { flex-direction: column; align-items: flex-start; } }

.app-v2 .company-cta > div h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.app-v2 .company-cta > div p {
  font-size: 13px;
  color: var(--v2-text-3);
  margin: 0;
  max-width: 48ch;
}

.app-v2 .company-cta-actions {
  display: inline-flex;
  gap: 8px;
}

.app-v2 .company-footer {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--v2-text-3);
}

.app-v2 .company-footer a {
  color: var(--v2-text-3);
  text-decoration: none;
}

.app-v2 .company-footer a:hover { color: var(--v2-text-1); }

.app-v2 .company-card {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-std);
}

.app-v2 .company-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--v2-accent) 42%, var(--v2-line));
}

.app-v2 .company-card-kicker {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--v2-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-v2 .company-feature-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.app-v2 .company-feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  line-height: 18px;
  color: var(--v2-text-2);
}

.app-v2 .company-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v2-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2-accent) 12%, transparent);
}

.app-v2 .company-chart i {
  transition: height 420ms var(--ease-out), background 180ms var(--ease-std);
}

.app-v2 .company-window:hover .company-chart i:nth-child(1) { height: 52%; }
.app-v2 .company-window:hover .company-chart i:nth-child(2) { height: 42%; }
.app-v2 .company-window:hover .company-chart i:nth-child(3) { height: 72%; }
.app-v2 .company-window:hover .company-chart i:nth-child(4) { height: 88%; }
.app-v2 .company-window:hover .company-chart i:nth-child(5) { height: 66%; }

.app-v2 .company-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  padding: 34px;
  margin: 48px 0 0;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--v2-bg-1), color-mix(in srgb, var(--v2-bg-2) 78%, transparent));
}

.app-v2 .company-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-v2 .company-workflow-grid article,
.app-v2 .company-support-grid article {
  padding: 18px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--v2-bg-1) 88%, transparent);
}

.app-v2 .company-workflow-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.app-v2 .company-workflow-grid article strong,
.app-v2 .company-support-grid article strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--v2-text-1);
}

.app-v2 .company-workflow-grid article p,
.app-v2 .company-support-grid article span {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--v2-text-3);
}

.app-v2 .company-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 48px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.app-v2 .company-footer-links a + a {
  padding-left: 14px;
  border-left: 1px solid var(--v2-line);
}

@media (max-width: 880px) {
  .app-v2 .company-workflow,
  .app-v2 .company-support-grid {
    grid-template-columns: 1fr;
  }

  .app-v2 .company-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-v2 .company-home {
    padding: 18px 18px 56px;
  }

  .app-v2 .company-nav {
    gap: 12px;
    padding-bottom: 16px;
  }

  .app-v2 .company-brand {
    flex: 0 0 auto;
  }

  .app-v2 .company-brand-mark {
    width: 28px;
    min-width: 28px;
  }

  .app-v2 .company-brand > span:last-child {
    display: none;
  }

  .app-v2 .company-nav-links {
    display: none;
  }

  .app-v2 .company-nav-actions {
    margin-left: auto;
  }

  .app-v2 .company-hero-actions,
  .app-v2 .company-cta-actions {
    display: grid;
    width: 100%;
  }

  .app-v2 .company-hero-actions .btn,
  .app-v2 .company-cta-actions .btn {
    justify-content: center;
  }

  .app-v2 .company-card {
    min-height: auto;
  }

  .app-v2 .company-workflow {
    padding: 24px;
    margin-top: 32px;
  }
}

.app-v2 .company-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
}

.app-v2 .company-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-v2 .company-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 48px;
  margin-top: -24px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-proof-grid article {
  padding: 18px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--v2-bg-1) 88%, transparent);
}

.app-v2 .company-proof-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--v2-text-1);
  font-size: 13px;
  font-weight: 600;
}

.app-v2 .company-proof-grid span {
  display: block;
  color: var(--v2-text-3);
  font-size: 12px;
  line-height: 18px;
}

.app-v2 .company-product-card {
  min-height: 420px;
}

.app-v2 .company-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-v2 .company-card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.app-v2 .company-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .company-product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--v2-bg-2);
  color: var(--v2-text-2);
  font-size: 11px;
}

.app-v2 .company-download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 4px;
}

.app-v2 .company-download-actions .btn {
  height: 36px;
  padding: 0 14px;
}

.app-v2 .company-download-actions svg {
  width: 14px;
  height: 14px;
}

.app-v2 .company-download-actions > span {
  color: var(--v2-text-3);
  font-size: 11.5px;
  line-height: 16px;
}

.app-v2 .company-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .company-contact-copy h2 {
  margin: 0 0 12px;
  color: var(--v2-text-1);
  font-size: 28px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.app-v2 .company-contact-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--v2-text-3);
  font-size: 14px;
  line-height: 22px;
}

.app-v2 .company-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-v2 .company-contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-bg-1);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-std), background 180ms var(--ease-std);
}

.app-v2 a.company-contact-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--v2-accent) 42%, var(--v2-line));
  background: var(--v2-bg-2);
}

.app-v2 .company-contact-card span {
  margin-bottom: 8px;
  color: var(--v2-text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-v2 .company-contact-card strong {
  color: var(--v2-text-1);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 880px) {
  .app-v2 .company-proof-grid,
  .app-v2 .company-contact {
    grid-template-columns: 1fr;
  }

  .app-v2 .company-proof-grid {
    margin-top: 0;
    padding-bottom: 32px;
  }
}

@media (max-width: 620px) {
  .app-v2 .company-contact-grid {
    grid-template-columns: 1fr;
  }

  .app-v2 .company-download-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Privacy & error pages */
.app-v2 .readable-card {
  max-width: 720px;
  margin: 48px auto;
  padding: 32px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
}

.app-v2 .error-card {
  max-width: 540px;
  margin: 96px auto;
  padding: 40px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  text-align: center;
}

.app-v2 .error-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 64px;
  font-weight: 500;
  color: var(--v2-text-3);
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: 8px;
}

.app-v2 .error-card h1 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.app-v2 .code-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--v2-bg-2);
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  margin-top: 16px;
  font-size: 11.5px;
}

.app-v2 .code-strip span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-text-3);
}

.app-v2 .code-strip code {
  font-family: "JetBrains Mono", monospace;
  color: var(--v2-text-1);
  font-size: 11.5px;
}

/* Email operations */
.app-v2 .email-ops {
  display: grid;
  gap: 16px;
}

.app-v2 .email-ops-hero,
.app-v2 .smtp-config-card {
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-sm);
}

.app-v2 .email-ops-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.app-v2 .email-ops-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 95, 255, .16), transparent 66%);
  pointer-events: none;
}

.app-v2 .email-ops-hero h1 {
  margin: 4px 0 6px;
  color: var(--v2-text-1);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.app-v2 .email-ops-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--v2-text-3);
  font-size: 13.5px;
  line-height: 1.65;
}

.app-v2 .email-ops-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(560px, 48vw);
  position: relative;
  z-index: 1;
}

.app-v2 .email-ops-stats div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--v2-line);
  border-radius: 14px;
}

.app-v2 .email-ops-stats span,
.app-v2 .smtp-config-status small,
.app-v2 .smtp-config-form label > span {
  display: block;
  color: var(--v2-text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-v2 .email-ops-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--v2-text-1);
  font-size: 24px;
  line-height: 1;
}

.app-v2 .smtp-config-card {
  display: grid;
  grid-template-columns: minmax(260px, .38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.app-v2 .smtp-config-status {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(70, 95, 255, .12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(70, 95, 255, .07), rgba(20, 184, 166, .08));
  align-content: start;
}

.app-v2 .smtp-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--v2-accent);
  background: rgba(70, 95, 255, .09);
  border-radius: 14px;
}

.app-v2 .smtp-icon svg {
  width: 23px;
  height: 23px;
}

.app-v2 .smtp-config-status strong {
  color: var(--v2-text-1);
  font-size: 15px;
}

.app-v2 .smtp-config-status p {
  margin: 7px 0 10px;
  color: var(--v2-text-3);
  font-size: 12.5px;
  line-height: 1.55;
}

.app-v2 .smtp-config-form {
  display: grid;
  gap: 14px;
}

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

.app-v2 .smtp-form-grid label {
  display: grid;
  gap: 6px;
}

.app-v2 .smtp-config-form .form-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-bg-1);
  color: var(--v2-text-1);
  padding: 10px 13px;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.app-v2 .smtp-config-form .form-control:focus {
  border-color: rgba(70, 95, 255, .55);
  box-shadow: 0 0 0 4px rgba(70, 95, 255, .1);
  outline: none;
}

.app-v2 .smtp-toggles {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.app-v2 .smtp-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--v2-text-2);
  cursor: pointer;
  user-select: none;
}

.app-v2 .smtp-switch + .smtp-switch {
  margin-right: 0;
}

.app-v2 .smtp-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-v2 .smtp-switch span {
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: var(--v2-bg-3);
  border: 1px solid var(--v2-line);
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}

.app-v2 .smtp-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--v2-bg-1);
  box-shadow: var(--v2-shadow-sm);
  transition: transform .18s ease;
}

.app-v2 .smtp-switch input:checked + span {
  background: var(--v2-accent);
  border-color: var(--v2-accent);
}

.app-v2 .smtp-switch input:checked + span::after {
  transform: translateX(14px);
}

.app-v2 .smtp-switch strong {
  font-size: 12.5px;
  font-weight: 700;
}

/* Security configuration */
.app-v2 .security-config-card {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  background: var(--v2-bg-1);
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-sm);
}

.app-v2 .security-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-v2 .security-config-head h2 {
  margin: 4px 0 6px;
  color: var(--v2-text-1);
  font-size: 22px;
  letter-spacing: -.025em;
}

.app-v2 .security-config-head p {
  margin: 0;
  color: var(--v2-text-3);
  font-size: 13px;
  line-height: 1.6;
}

.app-v2 .security-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-v2 .security-policy-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, .75), rgba(255, 255, 255, .95));
}

.app-v2 .security-policy-card header {
  display: grid;
  gap: 3px;
}

.app-v2 .security-policy-card header span,
.app-v2 .security-policy-card label > span {
  color: var(--v2-text-3);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-v2 .security-policy-card header strong {
  color: var(--v2-text-1);
  font-size: 14px;
}

.app-v2 .security-policy-card p {
  min-height: 40px;
  margin: 0;
  color: var(--v2-text-3);
  font-size: 12px;
  line-height: 1.55;
}

.app-v2 .security-policy-fields {
  display: grid;
  grid-template-columns: 1.1fr .7fr .9fr;
  align-items: end;
  gap: 10px;
}

.app-v2 .security-policy-card .form-control {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-bg-1);
  color: var(--v2-text-1);
  padding: 9px 11px;
  font-size: 13px;
}

.app-v2 .security-window-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
}

.app-v2 .security-window-input em {
  color: var(--v2-text-3);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.app-v2 .security-policy-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  color: var(--v2-text-3);
  font-size: 11px;
  line-height: 1.4;
}

.app-v2 .security-config-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.app-v2 .security-config-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-v2 .security-policy-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-v2 .security-policy-tag.is-recommended {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.app-v2 .security-policy-tag.is-custom {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.app-v2 .security-policy-groups {
  display: grid;
  gap: 10px;
}

.app-v2 .security-policy-group {
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-bg-0);
  overflow: hidden;
}

.app-v2 .security-policy-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), rgba(15, 23, 42, 0.00));
}

.app-v2 .security-policy-group > summary::-webkit-details-marker {
  display: none;
}

.app-v2 .security-policy-group > summary span {
  color: var(--v2-text-1);
  font-size: 13px;
  font-weight: 750;
}

.app-v2 .security-policy-group > summary strong {
  color: var(--v2-text-3);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.app-v2 .security-policy-table {
  display: grid;
}

.app-v2 .security-policy-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 126px 104px 128px 168px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .security-policy-row:hover {
  background: var(--v2-bg-1);
}

.app-v2 .security-policy-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.app-v2 .security-policy-main strong {
  color: var(--v2-text-1);
  font-size: 13px;
  font-weight: 750;
}

.app-v2 .security-policy-main span {
  color: var(--v2-text-3);
  font-size: 11.5px;
  line-height: 1.45;
}

.app-v2 .security-policy-switch {
  margin: 0;
}

.app-v2 .security-policy-number {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.app-v2 .security-policy-number > span {
  color: var(--v2-text-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.app-v2 .security-policy-number .form-control {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 10px;
}

.app-v2 .security-policy-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  color: var(--v2-text-3);
}

.app-v2 .security-policy-meta small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
}

.app-v2 .security-block-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-v2 .security-block-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 0.6fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--v2-surface-muted, rgba(148, 163, 184, 0.08));
}

.app-v2 .security-block-row > span {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .security-block-head {
  background: transparent;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  opacity: 0.6;
}

.app-v2 .security-block-row .btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .app-v2 .security-block-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }
  .app-v2 .security-block-head {
    display: none;
  }
}

@media (max-width: 1180px) {
  .app-v2 .security-policy-row {
    grid-template-columns: minmax(220px, 1fr) 126px 104px 128px;
  }
  .app-v2 .security-policy-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .app-v2 .security-policy-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .app-v2 .security-policy-switch {
    justify-content: flex-start;
  }
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 720px) {
  .app-v2 .app { grid-template-columns: var(--v2-rail-w) minmax(0, 1fr); }
  .app-v2 .cmdk-trigger { min-width: 0; }
  .app-v2 .cmdk-trigger span { display: none; }
  .app-v2 .inbox-header { padding: 20px 16px 12px; }
  .app-v2 .inbox-filters { padding: 8px 16px 0; }
  .app-v2 .inbox-row { padding: 0 16px; grid-template-columns: 8px 28px 1fr auto; }
  .app-v2 .inbox-row-meta { display: none; }
  .app-v2 .email-ops-hero,
  .app-v2 .smtp-config-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .app-v2 .email-ops-stats,
  .app-v2 .smtp-form-grid,
  .app-v2 .security-policy-grid,
  .app-v2 .security-policy-fields {
    min-width: 0;
    grid-template-columns: 1fr;
  }
  .app-v2 .security-config-head {
    flex-direction: column;
  }
  .app-v2 .smtp-toggles {
    justify-content: stretch;
  }
  .app-v2 .smtp-toggles .btn {
    width: 100%;
  }
}

/* ================================================================
   PREMIUM UX POLISH LAYER
   Shared refinements for admin workspaces and customer portal.
   Keep this additive: it improves presentation without changing flows.
   ================================================================ */
body.app-v2 {
  --v2-rail-w: 68px;
  --v2-bar-h: 64px;
  --v2-radius-sm: 10px;
  --v2-radius-md: 14px;
  --v2-radius-lg: 20px;
  --v2-shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
  --v2-shadow-pop: 0 24px 70px rgba(15, 23, 42, 0.14);
  --v2-surface-glass: color-mix(in srgb, var(--v2-bg-1) 84%, transparent);
}

:root[data-theme="dark"] body.app-v2,
:root:not([data-theme="dark"]) body.app-v2 {
  --v2-rail-w: 68px;
  --v2-bar-h: 64px;
}

:root:not([data-theme="dark"]) body.app-v2 {
  --v2-bg-0: #f6f8fb;
  --v2-bg-1: #ffffff;
  --v2-bg-2: #f1f5f9;
  --v2-bg-3: #e2e8f0;
  --v2-line: #e2e8f0;
  --v2-line-strong: #cbd5e1;
  --v2-text-1: #0f172a;
  --v2-text-2: #334155;
  --v2-text-3: #64748b;
  --v2-text-4: #94a3b8;
  --v2-accent: #4f63f6;
  --v2-accent-soft: rgba(79, 99, 246, 0.10);
  --v2-accent-ring: rgba(79, 99, 246, 0.22);
}

:root[data-theme="dark"] body.app-v2 {
  --v2-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.26);
  --v2-shadow-pop: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.app-v2 .app {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--v2-accent) 8%, transparent), transparent 28rem),
    radial-gradient(circle at 100% 12%, rgba(20, 184, 166, 0.08), transparent 26rem),
    var(--v2-bg-0);
}

.app-v2 .app-rail {
  background: color-mix(in srgb, var(--v2-bg-1) 94%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 1px 0 0 var(--v2-line), 18px 0 50px rgba(15, 23, 42, 0.03);
}

.app-v2 .app-rail-brand {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(79, 99, 246, 0.16);
}

.app-v2 .app-rail-item {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.app-v2 .app-rail-item.is-active {
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
}

.app-v2 .app-rail-item.is-active::before {
  left: -7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, var(--v2-accent), #14b8a6);
}

.app-v2 .app-bar {
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 560px) minmax(180px, 1fr);
  padding: 0 28px;
  background: color-mix(in srgb, var(--v2-bg-0) 88%, transparent);
  backdrop-filter: blur(18px);
}

.app-v2 .app-bar-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.app-v2 .app-bar-crumb {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-accent);
}

.app-v2 .cmdk-trigger {
  height: 40px;
  border-radius: 999px;
  padding-inline: 14px 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.app-v2 .v2-btn,
.app-v2 .btn {
  border-radius: 10px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.app-v2 .v2-btn {
  min-height: 34px;
  padding-inline: 13px;
}

.app-v2 .v2-btn:hover,
.app-v2 .btn:hover {
  transform: translateY(-1px);
}

.app-v2 .v2-btn-primary {
  background: linear-gradient(135deg, var(--v2-accent), #5b7cfa);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--v2-accent) 24%, transparent);
}

.app-v2 .v2-btn-primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 88%, #000), var(--v2-accent));
  opacity: 1;
}

.app-v2 .ws {
  gap: 18px;
  padding: 24px 28px 28px;
}

.app-v2 .ws-header {
  flex-wrap: wrap;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-surface-glass);
  box-shadow: var(--v2-shadow-soft);
  backdrop-filter: blur(18px);
}

.app-v2 .ws-filters {
  flex-wrap: wrap;
  gap: 6px;
}

.app-v2 .ws-pill {
  height: 34px;
  padding-inline: 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: var(--v2-text-2);
}

.app-v2 .ws-pill:hover {
  border-color: var(--v2-line);
  background: var(--v2-bg-1);
}

.app-v2 .ws-pill.is-active {
  border-color: color-mix(in srgb, var(--v2-accent) 25%, var(--v2-line));
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--v2-accent) 12%, transparent);
}

.app-v2 .ws-search {
  max-width: 420px;
  min-width: 240px;
}

.app-v2 .ws-search input {
  height: 38px;
  border-radius: 999px;
  background: var(--v2-bg-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.app-v2 .ws-header .v2-btn-primary {
  height: 38px;
  border-radius: 999px;
}

.app-v2 .ws-body {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  min-height: min(860px, calc(100vh - 164px));
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  overflow: hidden;
  background: var(--v2-bg-1);
  box-shadow: var(--v2-shadow-soft);
}

.app-v2 .ws-list,
.app-v2 .ws-detail {
  background: var(--v2-bg-1);
}

.app-v2 .ws-list-head,
.app-v2 .ws-detail-head {
  background: linear-gradient(180deg, color-mix(in srgb, var(--v2-bg-2) 70%, transparent), transparent);
}

.app-v2 .ws-list-head {
  min-height: 52px;
  padding-inline: 18px;
}

.app-v2 .ws-row {
  grid-template-columns: 16px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 13px 18px;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.app-v2 .ws-row:hover {
  background: color-mix(in srgb, var(--v2-accent-soft) 34%, var(--v2-bg-1));
}

.app-v2 .ws-row.is-selected {
  background: color-mix(in srgb, var(--v2-accent-soft) 62%, var(--v2-bg-1));
}

.app-v2 .ws-row.is-selected::before {
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v2-accent), #14b8a6);
}

.app-v2 .ws-row-title {
  font-size: 12.5px;
  font-weight: 750;
}

.app-v2 .ws-row-sub {
  font-size: 11.5px;
}

.app-v2 .ws-detail-body {
  gap: 18px;
  padding: 26px 30px 34px;
}

.app-v2 .ws-detail-head {
  margin: -26px -30px 0;
  padding: 26px 30px 22px;
}

.app-v2 .ws-detail-key {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.app-v2 .ws-detail-status,
.app-v2 .ops-status {
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: var(--v2-bg-1);
  padding: 6px 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.app-v2 .ws-detail-band {
  padding: 16px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--v2-bg-1) 92%, var(--v2-bg-2));
}

.app-v2 .ws-detail-band + .ws-detail-band {
  border-top: 1px solid var(--v2-line);
  margin-top: 0;
}

.app-v2 .ws-detail-grid {
  gap: 10px;
  background: transparent;
  border: 0;
}

.app-v2 .ws-detail-grid > div {
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-bg-1);
  padding: 14px;
}

.app-v2 .ws-detail-grid > div + div {
  border-top: 1px solid var(--v2-line);
}

.app-v2 .ws-machine,
.app-v2 .ws-activity-row,
.app-v2 .ws-audit-row {
  border-bottom-color: var(--v2-line);
  border-radius: 12px;
}

.app-v2 .ws-detail-actions {
  gap: 8px;
  padding-top: 16px;
  margin-top: 0;
}

.app-v2 .request-payment-panel {
  border-color: color-mix(in srgb, var(--v2-success) 26%, var(--v2-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-success) 8%, transparent), transparent 44%),
    var(--v2-bg-1);
}

.app-v2 .request-decision-card {
  border-radius: 16px;
  box-shadow: var(--v2-shadow-soft);
}

.app-v2 .support-message {
  border-radius: 16px;
}

.app-v2 .support-message.is-admin {
  border-color: color-mix(in srgb, var(--v2-accent) 32%, var(--v2-line));
}

/* Customer portal polish */
.app-v2 .portal-page {
  max-width: 1180px;
  padding: 28px 24px 80px;
}

/* License renewal controls */
.app-v2 .renew-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .app-v2 .renew-choice-grid {
    grid-template-columns: 1fr;
  }
}

.app-v2 .renew-choice {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-bg-1) 90%, var(--v2-accent) 10%), var(--v2-bg-1));
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.app-v2 .renew-choice:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--v2-accent) 42%, var(--v2-line));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.app-v2 .renew-choice:has(.renew-choice-radio:checked) {
  border-color: color-mix(in srgb, var(--v2-accent) 70%, var(--v2-line));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--v2-accent) 15%, transparent), transparent 36%),
    var(--v2-bg-1);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--v2-accent) 16%, transparent);
}

.app-v2 .renew-choice-radio {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.app-v2 .renew-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--v2-accent);
  background: color-mix(in srgb, var(--v2-accent) 10%, var(--v2-bg-2));
}

.app-v2 .renew-choice-icon svg {
  width: 18px;
  height: 18px;
}

.app-v2 .renew-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-v2 .renew-choice-copy strong {
  color: var(--v2-text-1);
  font-size: 13px;
  font-weight: 700;
}

.app-v2 .renew-choice-copy small {
  color: var(--v2-text-3);
  font-size: 11.5px;
  line-height: 1.45;
}

.app-v2 .renew-panel[hidden] {
  display: none;
}

.app-v2 .renew-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-v2 .renew-field > span {
  color: var(--v2-text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.app-v2 .renew-policy-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .renew-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 22%, var(--v2-line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 9%, transparent), transparent 58%),
    var(--v2-bg-1);
}

.app-v2 .renew-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--v2-accent);
  background: color-mix(in srgb, var(--v2-accent) 12%, var(--v2-bg-2));
}

.app-v2 .renew-summary-icon svg {
  width: 20px;
  height: 20px;
}

.app-v2 .renew-summary-card strong,
.app-v2 .renew-summary-card small {
  display: block;
}

.app-v2 .renew-summary-card strong {
  color: var(--v2-text-1);
  font-weight: 800;
}

.app-v2 .renew-summary-card small {
  margin-top: 2px;
  color: var(--v2-text-3);
  font-size: 12px;
}

.app-v2 .portal-top {
  position: sticky;
  top: 16px;
  z-index: 8;
  margin-bottom: 30px;
  padding: 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--v2-bg-1) 88%, transparent);
  box-shadow: var(--v2-shadow-soft);
  backdrop-filter: blur(18px);
}

.app-v2 .portal-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.app-v2 .portal-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: var(--v2-bg-1);
  color: var(--v2-text-1);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.app-v2 .portal-profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--v2-accent), #14b8a6);
  color: #fff;
  font-weight: 800;
}

.app-v2 .portal-profile-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.app-v2 .portal-profile-text strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.app-v2 .portal-profile-text small {
  max-width: 190px;
  overflow: hidden;
  color: var(--v2-text-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .portal-user-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-v2 .portal-workspace-head,
.app-v2 .portal-hero {
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--v2-accent) 10%, transparent), transparent 20rem),
    var(--v2-bg-1);
  box-shadow: var(--v2-shadow-soft);
}

.app-v2 .portal-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 26px 28px;
}

.app-v2 .portal-workspace-head h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.app-v2 .portal-workspace-head p {
  margin: 8px 0 0;
  color: var(--v2-text-3);
}

.app-v2 .portal-workspace-tabs {
  position: sticky;
  top: 94px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--v2-bg-1) 92%, transparent);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.app-v2 .portal-workspace-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 13px;
  color: var(--v2-text-2);
  font-size: 12.5px;
  font-weight: 750;
  text-align: center;
}

.app-v2 .portal-workspace-tabs a:hover {
  background: var(--v2-bg-2);
  color: var(--v2-text-1);
}

.app-v2 .portal-workspace-tabs a.is-active {
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-accent) 22%, transparent);
}

.app-v2 .portal-dashboard {
  gap: 18px;
}

.app-v2 .portal-account-panel,
.app-v2 .portal-license-panel,
.app-v2 .portal-releases-panel,
.app-v2 .portal-requests-panel,
.app-v2 .portal-machines-panel,
.app-v2 .portal-action-panel,
.app-v2 .portal-choice-card,
.app-v2 .portal-account-summary {
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.app-v2 .portal-support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.app-v2 .portal-support-thread {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.app-v2 .portal-support-message {
  padding: 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: var(--v2-bg-2);
}

.app-v2 .portal-support-message.is-admin {
  border-color: color-mix(in srgb, var(--v2-accent) 28%, var(--v2-line));
  background: linear-gradient(180deg, var(--v2-accent-soft), var(--v2-bg-1));
}

.app-v2 .portal-support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--v2-text-3);
  font-size: 11px;
}

.app-v2 .portal-support-message p {
  margin: 0;
  color: var(--v2-text-2);
  line-height: 1.6;
  white-space: pre-wrap;
}

.app-v2 .portal-support-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--v2-line);
}

@media (max-width: 980px) {
  .app-v2 .app-bar {
    grid-template-columns: 1fr auto;
  }

  .app-v2 .cmdk-trigger {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .app-v2 .cmdk-trigger span,
  .app-v2 .cmdk-trigger kbd {
    display: none;
  }

  .app-v2 .ws {
    padding: 18px;
  }

  .app-v2 .portal-workspace-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-v2 .portal-support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.app-v2 {
    --v2-rail-w: 58px;
    --v2-bar-h: 58px;
  }

  .app-v2 .app-bar {
    padding-inline: 14px;
  }

  .app-v2 .ws-body {
    min-height: auto;
  }

  .app-v2 .portal-top,
  .app-v2 .portal-workspace-head {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .app-v2 .portal-top-actions,
  .app-v2 .portal-user-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Support contact settings */
.app-v2 .support-contact-admin {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.app-v2 .support-contact-admin svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.app-v2 .support-contact-flash {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
}

.app-v2 .support-contact-mini-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--v2-success) 13%, transparent);
  color: var(--v2-success);
}

.app-v2 .support-contact-hero,
.app-v2 .support-contact-grid,
.app-v2 .support-contact-preview,
.app-v2 .support-contact-editor,
.app-v2 .support-product-loader,
.app-v2 .support-contact-form {
  border: 1px solid var(--v2-line);
  background: color-mix(in srgb, var(--v2-bg-1) 94%, transparent);
  box-shadow: var(--v2-shadow-soft);
}

.app-v2 .support-contact-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  border-radius: 26px;
}

.app-v2 .support-contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 16%, color-mix(in srgb, var(--v2-accent) 16%, transparent), transparent 23rem),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.16), transparent 20rem);
}

.app-v2 .support-contact-hero > * {
  position: relative;
}

.app-v2 .support-contact-hero h1 {
  margin: 5px 0 0;
  color: var(--v2-text-1);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.app-v2 .support-contact-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--v2-text-3);
  font-size: 14px;
  line-height: 1.7;
}

.app-v2 .support-contact-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(116px, 1fr));
  gap: 10px;
}

.app-v2 .support-contact-kpis div {
  min-width: 116px;
  padding: 14px 16px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-bg-1);
}

.app-v2 .support-contact-kpis span,
.app-v2 .support-field-label,
.app-v2 .support-field-help,
.app-v2 .support-contact-method span,
.app-v2 .support-contact-preview-head span,
.app-v2 .support-contact-endpoint span,
.app-v2 .support-contact-actions span {
  color: var(--v2-text-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.app-v2 .support-contact-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--v2-text-1);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.app-v2 .support-contact-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
}

.app-v2 .support-contact-preview,
.app-v2 .support-contact-editor,
.app-v2 .support-product-loader,
.app-v2 .support-contact-form {
  border-radius: 24px;
}

.app-v2 .support-contact-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.app-v2 .support-contact-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-v2 .support-contact-brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 92%, #14b8a6), #14b8a6);
  color: #fff;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--v2-accent) 26%, transparent);
}

.app-v2 .support-contact-brand-mark svg {
  width: 25px;
  height: 25px;
}

.app-v2 .support-contact-preview-head strong {
  display: block;
  margin-top: 3px;
  color: var(--v2-text-1);
  font-size: 15px;
}

.app-v2 .support-contact-methods {
  display: grid;
  gap: 10px;
}

.app-v2 .support-contact-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--v2-bg-1), color-mix(in srgb, var(--v2-bg-2) 58%, transparent));
}

.app-v2 .support-contact-method-icon,
.app-v2 .support-field-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
}

.app-v2 .support-contact-method-icon {
  width: 42px;
  height: 42px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
}

.app-v2 .support-contact-method-icon.is-email { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.app-v2 .support-contact-method-icon.is-phone { background: rgba(20, 184, 166, 0.11); color: #0891b2; }
.app-v2 .support-contact-method-icon.is-whatsapp { background: rgba(16, 185, 129, 0.12); color: #059669; }
.app-v2 .support-contact-method-icon.is-web { background: rgba(180, 83, 9, 0.11); color: #b45309; }

.app-v2 .support-contact-method-icon svg {
  width: 21px;
  height: 21px;
}

.app-v2 .support-contact-method strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--v2-text-1);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-v2 .support-contact-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: var(--v2-bg-2);
}

.app-v2 .support-contact-endpoint code {
  color: var(--v2-accent);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 800;
}

.app-v2 .support-contact-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.app-v2 .support-contact-preview-actions .btn {
  justify-content: center;
}

.app-v2 .support-contact-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.app-v2 .support-product-loader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.app-v2 .support-contact-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.app-v2 .support-form-section {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--v2-line);
}

.app-v2 .support-form-section h2 {
  margin: 4px 0 0;
  color: var(--v2-text-1);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.app-v2 .support-form-section p {
  margin: 6px 0 0;
  color: var(--v2-text-3);
}

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

.app-v2 .support-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.app-v2 .support-field-wide {
  grid-column: 1 / -1;
}

.app-v2 .support-input-wrap {
  position: relative;
}

.app-v2 .support-field-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  width: 30px;
  height: 30px;
  color: var(--v2-accent);
  transform: translateY(-50%);
}

.app-v2 .support-field-icon svg {
  width: 18px;
  height: 18px;
}

.app-v2 .support-input-wrap .form-control {
  min-height: 48px;
  padding-left: 52px;
}

.app-v2 .support-contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--v2-line);
}

.app-v2 .support-contact-actions .btn {
  min-width: 190px;
}

@media (max-width: 1120px) {
  .app-v2 .support-contact-hero,
  .app-v2 .support-contact-grid {
    grid-template-columns: 1fr;
  }

  .app-v2 .support-contact-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .app-v2 .support-contact-admin {
    padding: 16px;
  }

  .app-v2 .support-contact-hero,
  .app-v2 .support-contact-grid {
    padding: 16px;
    border-radius: 20px;
  }

  .app-v2 .support-contact-kpis,
  .app-v2 .support-product-loader,
  .app-v2 .support-contact-form-grid,
  .app-v2 .support-contact-preview-actions {
    grid-template-columns: 1fr;
  }

  .app-v2 .support-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-v2 .support-contact-actions .btn {
    width: 100%;
  }
}
