/* Tema do painel STMPlayer: um arquivo só (28/10/2026). Junta o que antes ficava em onepanel-modern.css,
   onepanel-pro.css e stmplayer-theme.css, na mesma ordem; as correções visuais vão no fim deste arquivo. */

/* ===== onepanel-modern.css ===== */
:root {
  --op-sidebar-width: 18.5rem;
  --op-sidebar-collapsed-width: 5.5rem;
  --op-radius-sm: 0.875rem;
  --op-radius-md: 1.125rem;
  --op-radius-lg: 1.5rem;
  --op-radius-xl: 1.75rem;
  --op-shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.06);
  --op-shadow-md: 0 24px 60px rgba(15, 23, 42, 0.08);
  --op-bg: #f5f7fb;
  --op-bg-muted: #eef2f8;
  --op-surface: #ffffff;
  --op-surface-muted: #f8fafc;
  --op-surface-strong: #e2e8f0;
  --op-border: rgba(15, 23, 42, 0.08);
  --op-border-strong: rgba(15, 23, 42, 0.16);
  --op-text: #0f172a;
  --op-text-soft: #475569;
  --op-text-faint: #64748b;
  --op-accent: #0f766e;
  --op-accent-strong: #0b5f59;
  --op-accent-soft: rgba(15, 118, 110, 0.12);
  --op-accent-contrast: #ffffff;
  --op-danger: #dc2626;
  --op-danger-soft: rgba(220, 38, 38, 0.12);
  --op-warning: #d97706;
  --op-warning-soft: rgba(217, 119, 6, 0.12);
  --op-success: #15803d;
  --op-success-soft: rgba(21, 128, 61, 0.12);
  --op-overlay: rgba(15, 23, 42, 0.42);
  --op-backdrop: rgba(255, 255, 255, 0.94);
  --op-focus: 0 0 0 4px rgba(15, 118, 110, 0.14);
}
:root[data-theme="dark"],
body.theme-dark,
body[data-theme="dark"] {
  --op-bg: #0b1220;
  --op-bg-muted: #0f172a;
  --op-surface: #111c2e;
  --op-surface-muted: #172338;
  --op-surface-strong: #22314b;
  --op-border: rgba(148, 163, 184, 0.14);
  --op-border-strong: rgba(148, 163, 184, 0.22);
  --op-text: #e5eefb;
  --op-text-soft: #c4d2e4;
  --op-text-faint: #94a3b8;
  --op-accent: #24b4a8;
  --op-accent-strong: #1ea498;
  --op-accent-soft: rgba(36, 180, 168, 0.16);
  --op-danger-soft: rgba(248, 113, 113, 0.14);
  --op-warning-soft: rgba(251, 191, 36, 0.14);
  --op-success-soft: rgba(74, 222, 128, 0.14);
  --op-shadow-sm: 0 18px 40px rgba(2, 6, 23, 0.32);
  --op-shadow-md: 0 28px 72px rgba(2, 6, 23, 0.38);
  --op-overlay: rgba(2, 6, 23, 0.65);
  --op-backdrop: rgba(11, 18, 32, 0.92);
  --op-focus: 0 0 0 4px rgba(36, 180, 168, 0.18);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--op-bg);
  color: var(--op-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
img {
  max-width: 100%;
  display: block;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.op-shell-stage-grid,
.op-shell-stage-orb {
  display: none !important;
}
.text-end {
  text-align: end;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--op-surface-muted);
  color: var(--op-text);
  font-weight: 600;
  box-shadow: none;
  text-transform: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--op-focus);
}
.btn-success,
.op-primary-cta,
.op-dns-add-button,
.op-dns-modal-submit {
  background: var(--op-accent);
  color: var(--op-accent-contrast);
  border-color: transparent;
}
.btn-success:hover,
.op-primary-cta:hover,
.op-dns-add-button:hover,
.op-dns-modal-submit:hover {
  background: var(--op-accent-strong);
  color: var(--op-accent-contrast);
}
.form-control,
.op-auth-input,
.op-dns-form-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--op-border);
  border-radius: 1rem;
  background: var(--op-surface);
  color: var(--op-text);
  box-shadow: none;
}
.form-control::placeholder,
.op-auth-input::placeholder,
.op-dns-form-input::placeholder {
  color: var(--op-text-faint);
}
.form-control:focus,
.op-auth-input:focus,
.op-dns-form-input:focus {
  border-color: var(--op-accent);
  background: var(--op-surface);
  color: var(--op-text);
  box-shadow: var(--op-focus);
}
.op-alert {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--op-radius-md);
  background: var(--op-accent-soft);
  color: var(--op-text);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
}
.op-alert.is-error {
  border-color: rgba(220, 38, 38, 0.2);
  background: var(--op-danger-soft);
}
.card,
.list-group-item {
  border: 1px solid var(--op-border) !important;
  border-radius: var(--op-radius-lg) !important;
  background: var(--op-surface) !important;
  box-shadow: var(--op-shadow-sm);
}
.list-group-item {
  color: var(--op-text) !important;
}
.badge,
.bg-gradient-primary,
.bg-gradient-info,
.bg-gradient-success,
.bg-gradient-warning,
.bg-gradient-danger {
  box-shadow: none !important;
}
/* Auth */
.onepanel-auth {
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.08), transparent 28%), var(--op-bg);
}
.op-auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.op-auth-stage {
  width: min(100%, 30rem);
  position: relative;
}
.op-auth-floating-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.75rem;
  transform: translateY(calc(-100% - 1rem));
}
.op-auth-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--op-border);
  box-shadow: var(--op-shadow-md);
  backdrop-filter: blur(18px);
}
.op-auth-brand-mark {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  background: var(--op-accent-soft);
  color: var(--op-accent);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.op-auth-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.op-auth-kicker {
  margin: 0;
  color: var(--op-text-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.op-auth-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
}
.op-auth-text,
.op-auth-copyline {
  margin: 0;
  color: var(--op-text-soft);
}
.op-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-auth-field,
.op-dns-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.op-auth-field label,
.op-dns-form-field label {
  color: var(--op-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.op-primary-cta {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.5rem;
  border-radius: 1rem;
  font-size: 0.98rem;
}
.op-primary-cta span,
.op-primary-cta i {
  color: inherit;
}
/* Dropdowns / controls */
.op-locale-menu,
.op-session-menu {
  position: relative;
}
.op-locale-menu-trigger,
.op-theme-toggle,
.op-shell-stage-quick-action,
.op-shell-stage-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  background: var(--op-surface);
  color: var(--op-text);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.op-locale-menu-trigger:hover,
.op-theme-toggle:hover,
.op-shell-stage-quick-action:hover,
.op-shell-stage-session-chip:hover {
  border-color: var(--op-border-strong);
  transform: translateY(-1px);
}
.op-theme-toggle {
  min-width: 3rem;
  justify-content: center;
  padding-inline: 0.9rem;
}
.op-theme-toggle-icon,
.op-locale-flag,
.op-shell-stage-session-avatar {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--op-accent-soft);
  color: var(--op-accent);
  flex-shrink: 0;
}
.op-locale-code,
.op-shell-stage-session-name {
  font-size: 0.92rem;
  font-weight: 700;
}
.op-locale-menu-list,
.op-session-menu-list {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 60;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--op-border);
  border-radius: 1.25rem;
  background: var(--op-surface);
  box-shadow: var(--op-shadow-md);
}
.op-locale-menu-list {
  width: 14rem;
}
.op-locale-option,
.op-session-locale-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  color: var(--op-text);
}
.op-locale-option:hover,
.op-locale-option.is-active,
.op-session-locale-option:hover,
.op-session-locale-option.is-active {
  background: var(--op-surface-muted);
}
.op-locale-option-copy,
.op-session-locale-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.op-locale-option-copy strong,
.op-session-locale-copy strong {
  font-size: 0.88rem;
}
.op-locale-option-copy small,
.op-session-locale-copy small {
  color: var(--op-text-faint);
  font-size: 0.78rem;
}
.op-session-menu-head,
.op-session-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.op-session-menu-head {
  padding: 0.5rem 0.75rem 0.85rem;
  border-bottom: 1px solid var(--op-border);
}
.op-session-menu-head strong {
  font-size: 1rem;
}
.op-session-menu-head small,
.op-session-menu-label {
  color: var(--op-text-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.op-session-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-session-menu-locales {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.op-session-theme-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--op-border);
  border-radius: 1rem;
  background: var(--op-surface-muted);
  color: var(--op-text);
}
.op-session-theme-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.op-session-theme-copy small {
  color: var(--op-text-faint);
}
[data-theme-tooltip],
[data-nav-tooltip] {
  position: relative;
}
[data-theme-tooltip]:hover::after,
body.sidebar-collapsed .op-nav-link[data-nav-tooltip]:hover::after {
  content: attr(data-theme-tooltip);
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: var(--op-text);
  color: var(--op-surface);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--op-shadow-sm);
  z-index: 80;
}
body.sidebar-collapsed .op-nav-link[data-nav-tooltip]:hover::after {
  top: 50%;
  left: calc(100% + 0.65rem);
  right: auto;
  transform: translateY(-50%);
}
/* Dashboard shell */
.op-shell {
  display: flex;
  min-height: 100vh;
  background: var(--op-bg-muted);
}
.op-sidebar {
  width: var(--op-sidebar-width);
  flex: 0 0 var(--op-sidebar-width);
}
.op-sidebar-shell {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100vh;
  padding: 1.5rem 1rem;
  background: var(--op-surface);
  border-right: 1px solid var(--op-border);
}
.op-sidebar-brand-panel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-lg);
  background: var(--op-surface-muted);
}
.op-sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.op-sidebar-brand-copy strong {
  color: var(--op-text);
  font-size: 0.98rem;
  line-height: 1.1;
}
.op-sidebar-brand-copy small {
  color: var(--op-text-faint);
  font-size: 0.78rem;
}
.op-sidebar-logo-only {
  justify-content: center;
  min-height: 8.5rem;
  padding: 0.7rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.op-sidebar-logo-only img {
  display: block;
  width: min(10rem, 92%);
  max-height: 7.25rem;
  object-fit: contain;
}
.op-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.op-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.op-nav + .op-nav-section,
.op-nav-section + .op-nav-section {
  margin-top: 1.25rem;
}
.op-nav-section-head {
  padding: 0 0.6rem;
}
.op-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1.15rem;
  color: var(--op-text-soft);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.op-nav-link:hover {
  background: var(--op-surface-muted);
  color: var(--op-text);
}
.op-nav-link.is-active {
  background: var(--op-accent-soft);
  color: var(--op-text);
}
.op-nav-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  background: var(--op-surface-muted);
  border: 1px solid var(--op-border);
  color: inherit;
  flex-shrink: 0;
}
.op-nav-link.is-active .op-nav-icon {
  background: var(--op-accent);
  color: var(--op-accent-contrast);
  border-color: transparent;
}
.op-nav-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.op-nav-title {
  color: var(--op-text);
  font-weight: 700;
  font-size: 0.95rem;
}
.op-nav-subtitle {
  color: var(--op-text-faint);
  font-size: 0.79rem;
  line-height: 1.2;
}
.op-sidebar-shell > .op-nav-link.is-logout {
  margin-top: 0.5rem;
}
.op-nav-link.is-logout .op-nav-icon {
  background: var(--op-danger-soft);
  color: var(--op-danger);
  border-color: rgba(220, 38, 38, 0.14);
}
body.sidebar-collapsed .op-sidebar {
  width: var(--op-sidebar-collapsed-width);
  flex-basis: var(--op-sidebar-collapsed-width);
}
body.sidebar-collapsed .op-sidebar-shell {
  padding-inline: 0.7rem;
}
body.sidebar-collapsed .op-sidebar-brand-panel {
  justify-content: center;
  padding-inline: 0.4rem;
}
body.sidebar-collapsed .op-sidebar-logo-only,
html.op-sidebar-collapsed-preload .op-sidebar-logo-only {
  min-height: 4.9rem;
  padding: 0.25rem 0;
}
body.sidebar-collapsed .op-sidebar-logo-only img,
html.op-sidebar-collapsed-preload .op-sidebar-logo-only img {
  width: 3.8rem;
  max-height: 3.8rem;
}
body.sidebar-collapsed .op-sidebar-brand-copy,
body.sidebar-collapsed .op-nav-copy,
body.sidebar-collapsed .op-nav-section-head {
  display: none;
}
body.sidebar-collapsed .op-nav-link {
  justify-content: center;
  padding-inline: 0.4rem;
}
body.sidebar-collapsed .op-nav-link.is-active .op-nav-icon {
  transform: none;
}
.op-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.op-shell-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  flex: 1;
}
.op-shell-stage-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  flex: 1;
}
.op-shell-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
  background: var(--op-surface);
  border-bottom: 1px solid var(--op-border);
}
.op-shell-stage-topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.op-shell-stage-topbar-copy h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.05;
}
.op-shell-stage-topbar-copy p {
  margin: 0;
  color: var(--op-text-soft);
  max-width: 44rem;
  font-size: 0.92rem;
}
.op-shell-stage-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.op-shell-stage-content {
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}
.op-content-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.op-content-card.op-shell-stage-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.op-module-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}
.op-panel-notice {
  margin-bottom: 1.25rem;
}
.op-shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem 1.2rem;
  color: var(--op-text-faint);
  font-size: 0.88rem;
  border-top: 1px solid var(--op-border);
  margin-top: auto;
}
.op-shell-footer a {
  color: inherit;
}
/* Modules */
.op-dns-module,
.op-app-module,
.op-users-module {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.op-dns-toolbar,
.op-dns-hero,
.op-app-section {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-xl);
  background: var(--op-surface);
  box-shadow: var(--op-shadow-sm);
}
.op-dns-toolbar,
.op-app-section-head {
  align-items: flex-start;
  justify-content: space-between;
}
.op-dns-toolbar > div,
.op-dns-hero-copy,
.op-app-section-head > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.op-dns-eyebrow,
.op-app-kicker,
.op-dns-section-kicker {
  color: var(--op-text-faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.op-dns-title,
.op-app-section h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.12;
}
.op-dns-text,
.op-app-section-head p {
  color: var(--op-text-soft);
}
.op-dns-add-button {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.op-dns-hero {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  align-items: start;
  gap: 1.25rem 1.5rem;
}
.op-dns-hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.op-dns-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.op-dns-hero-stat.is-total {
  grid-column: 1 / -1;
}
.op-dns-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--op-border);
  border-radius: 1.2rem;
  background: var(--op-surface-muted);
}
.op-dns-hero-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  background: var(--op-accent-soft);
  color: var(--op-accent);
}
.op-dns-hero-stat.is-inactive .op-dns-hero-stat-icon {
  background: var(--op-danger-soft);
  color: var(--op-danger);
}
.op-dns-hero-stat-copy {
  display: flex;
  flex-direction: column;
}
.op-dns-hero-stat-copy strong {
  font-size: 1.1rem;
  line-height: 1;
}
.op-dns-hero-stat-copy small {
  color: var(--op-text-faint);
}
.op-dns-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.op-dns-section {
  padding: 1.5rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-xl);
  background: var(--op-surface);
  box-shadow: var(--op-shadow-sm);
}
.op-dns-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.op-dns-section-head h4 {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
}
.op-dns-count {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--op-surface-muted);
  color: var(--op-text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}
.op-dns-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.op-dns-table thead th {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--op-border);
  color: var(--op-text-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.op-dns-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--op-border);
}
.op-dns-table tbody tr:last-child td {
  border-bottom: 0;
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--op-text);
  --bs-table-border-color: var(--op-border);
  color: var(--op-text);
}
.op-dns-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.op-dns-cell strong {
  color: var(--op-text);
}
.op-dns-cell span {
  color: var(--op-text-soft);
}
.op-dns-cell small {
  color: var(--op-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.op-dns-status-pill,
.op-users-permission-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.op-dns-status-pill.is-active {
  background: var(--op-success-soft);
  color: var(--op-success);
}
.op-dns-status-pill.is-inactive {
  background: var(--op-danger-soft);
  color: var(--op-danger);
}
.op-dns-status-pill.is-stream {
  background: var(--op-accent-soft);
  color: var(--op-accent-strong);
}
.op-dns-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.op-dns-use-only-pill {
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}
.op-mac-activation-table .op-mac-activation-row-actions,
.op-mac-activation-table .op-mac-activation-row-actions form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  margin: 0;
  line-height: 0;
}
.op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
}
.op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button i.material-icons-round {
  font-size: 1rem;
}
.op-dns-action-button {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.95rem;
  background: var(--op-surface-muted);
  border-color: var(--op-border);
  color: var(--op-text);
}
.op-mac-server-tabs {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  margin-bottom: 14px;
  width: 100%;
}
.op-mac-server-tab {
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 0.42rem;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  text-align: left;
}
.op-mac-server-tab-number,
.op-mac-server-tab-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-mac-server-tab-name {
  color: var(--op-text-soft);
}
.op-mac-server-tab-separator {
  color: var(--op-border-strong);
}
.op-mac-server-tab-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--op-border-strong);
  background: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.op-mac-server-tab-dot.is-configured {
  border-color: rgba(34, 197, 94, 0.7);
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14), 0 0 14px rgba(34, 197, 94, 0.36);
}
.op-mac-server-tab.is-configured .op-mac-server-tab-name {
  color: var(--op-text);
}
.op-mac-quick-switch {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}
.op-mac-quick-switch form,
.op-mac-quick-switch-button {
  width: 100%;
}
.op-mac-quick-switch-button {
  justify-content: center;
}
.op-dns-empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem;
  border: 1px dashed var(--op-border-strong);
  border-radius: 1rem;
  color: var(--op-text-soft);
}
.op-dns-empty-state strong {
  color: var(--op-text);
}
.op-app-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.op-app-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.op-app-grid > * {
  grid-column: span 4;
}
.op-app-grid-span-2 {
  grid-column: span 8;
}
.op-app-switch-grid,
.op-users-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.85rem;
}
.op-users-permission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.op-users-item-permissions {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}
.op-users-item-permission-group {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--op-surface, #ffffff) 92%, transparent);
}
.op-users-item-permission-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.op-users-item-permission-summary-row::-webkit-details-marker {
  display: none;
}
.op-users-item-permission-summary-row span {
  display: grid;
  gap: 0.2rem;
}
.op-users-item-permission-summary-row i {
  color: var(--op-accent, #f59e0b);
  transition: transform 0.18s ease;
}
.op-users-item-permission-group[open] .op-users-item-permission-summary-row i {
  transform: rotate(180deg);
}
.op-users-item-permission-summary-row strong {
  color: var(--op-text, #0f172a);
  font-size: 0.86rem;
  font-weight: 800;
}
.op-users-item-permission-summary-row small {
  color: var(--op-text-soft, #64748b);
  font-size: 0.76rem;
  font-weight: 700;
}
.op-users-permission-pill {
  background: var(--op-surface-muted);
  color: var(--op-text-soft);
}
.op-interface-portal-item,
.op-app-toggle-item,
.op-dns-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--op-border);
  border-radius: 1rem;
  background: var(--op-surface-muted);
  color: var(--op-text);
}
.form-check-input {
  width: 3rem;
  min-width: 3rem;
  height: 1.8rem;
  appearance: none;
  background: var(--op-surface-strong);
  position: relative;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.form-check-input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  transform: translateY(-50%);
  transition: transform 160ms ease;
}
.form-check-input:checked {
  background: var(--op-accent);
}
.form-check-input:checked::before {
  transform: translate(1.15rem, -50%);
}
/* Modals */
.modal.fade .modal-dialog {
  transition: transform 180ms ease-out;
}
.op-dns-modal .modal-content,
.op-users-modal .modal-content {
  border: 1px solid var(--op-border);
  border-radius: 1.5rem;
  background: var(--op-surface);
  box-shadow: var(--op-shadow-md);
}
.op-dns-modal .modal-header,
.op-users-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
  border-bottom: 0;
}
.op-dns-modal .modal-title,
.op-users-modal .modal-title {
  margin: 0.35rem 0 0;
  color: var(--op-text);
  font-size: 1.3rem;
}
.op-dns-modal .modal-body,
.op-users-modal .modal-body {
  padding: 1.5rem;
}
.op-dns-modal-text {
  margin: 0 0 1rem;
  color: var(--op-text-soft);
}
.op-dns-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-dns-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.op-dns-modal-cancel {
  border-color: var(--op-border);
  background: transparent;
  color: var(--op-text-soft);
}
.op-dns-modal-submit.is-update {
  background: var(--op-text);
  color: var(--op-surface);
}
.op-dns-delete-target {
  display: block;
  margin-top: 0.4rem;
  color: var(--op-text);
  font-weight: 700;
}
.btn-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  background: var(--op-surface-muted);
  opacity: 1;
}
body.theme-dark .btn-close,
body[data-theme="dark"] .btn-close {
  filter: invert(1);
}
/* Responsive */
@media (max-width: 1199.98px) {
  .op-shell-stage-topbar,
  .op-shell-stage-content,
  .op-shell-footer {
    padding-inline: 1.5rem;
  }

  .op-app-grid > *,
  .op-app-grid-span-2 {
    grid-column: span 6;
  }
}
@media (max-width: 991.98px) {
  .op-auth-floating-controls {
    position: static;
    transform: none;
    justify-content: flex-end;
    margin-bottom: 1rem;
  }

  .op-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(86vw, 19rem);
    flex-basis: min(86vw, 19rem);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.sidebar-open-mobile .op-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open-mobile::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--op-overlay);
    z-index: 60;
  }

  body.sidebar-collapsed .op-sidebar {
    width: min(86vw, 19rem);
    flex-basis: min(86vw, 19rem);
  }

  body.sidebar-collapsed .op-sidebar-brand-copy,
  body.sidebar-collapsed .op-nav-copy,
  body.sidebar-collapsed .op-nav-section-head {
    display: initial;
  }

  .op-main {
    width: 100%;
  }

  .op-shell-stage-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.15rem;
  }

  .op-shell-stage-topbar-actions {
    justify-content: space-between;
  }

  .op-dns-toolbar,
  .op-dns-hero,
  .op-app-section {
    flex-direction: column;
  }

  .op-dns-hero-side {
    width: 100%;
    align-items: stretch;
  }

  .op-dns-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-dns-hero-stat {
    min-width: 0;
    flex: 1 1 12rem;
  }

  .op-app-grid > *,
  .op-app-grid-span-2 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767.98px) {
  .op-auth-layout,
  .op-shell-stage-content,
  .op-shell-stage-topbar,
  .op-shell-footer {
    padding-inline: 1rem;
  }

  .op-auth-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  .op-shell-stage-topbar {
    padding-block: 1.25rem;
  }

  .op-dns-section,
  .op-dns-toolbar,
  .op-dns-hero,
  .op-app-section {
    padding: 1.15rem;
    border-radius: 1.25rem;
  }

  .op-dns-section-head,
  .op-shell-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .op-dns-actions {
    justify-content: flex-start;
  }

  .op-dns-table thead {
    display: none;
  }

  .op-dns-table,
  .op-dns-table tbody,
  .op-dns-table tr,
  .op-dns-table td {
    display: block;
    width: 100%;
  }

  .op-dns-table tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--op-border);
  }

  .op-dns-table tr:last-child {
    border-bottom: 0;
  }

  .op-dns-table tbody td {
    border: 0;
  }
}
/* Professional refinement pass */
:root {
  --op-sidebar-width: 17.25rem;
  --op-sidebar-collapsed-width: 5rem;
  --op-radius-sm: 0.75rem;
  --op-radius-md: 1rem;
  --op-radius-lg: 1.25rem;
  --op-radius-xl: 1.5rem;
  --op-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.045);
  --op-shadow-md: 0 18px 44px rgba(15, 23, 42, 0.07);
  --op-bg: #f6f8fb;
  --op-bg-muted: #edf1f6;
  --op-surface: #ffffff;
  --op-surface-muted: #f8fafc;
  --op-surface-strong: #dbe4ef;
  --op-border: rgba(15, 23, 42, 0.075);
  --op-border-strong: rgba(15, 23, 42, 0.14);
  --op-text: #111827;
  --op-text-soft: #526075;
  --op-text-faint: #7b8798;
  --op-accent: #0f766e;
  --op-accent-strong: #0b625c;
  --op-accent-soft: rgba(15, 118, 110, 0.08);
  --op-focus: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
body.theme-dark,
body[data-theme="dark"] {
  --op-bg: #0b1220;
  --op-bg-muted: #0e1728;
  --op-surface: #121c2c;
  --op-surface-muted: #162336;
  --op-surface-strong: #25344b;
  --op-border: rgba(148, 163, 184, 0.13);
  --op-border-strong: rgba(148, 163, 184, 0.2);
  --op-text: #e8eef7;
  --op-text-soft: #bfccdc;
  --op-text-faint: #90a0b5;
  --op-accent-soft: rgba(36, 180, 168, 0.14);
  --op-shadow-sm: 0 16px 36px rgba(2, 6, 23, 0.26);
  --op-shadow-md: 0 28px 70px rgba(2, 6, 23, 0.34);
}
body {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent 18%),
    var(--op-bg);
}
.onepanel-auth {
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 118, 110, 0.06), transparent 26%),
    var(--op-bg);
}
.op-auth-card {
  gap: 1.25rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}
.op-auth-brand-mark {
  width: 10.8rem;
  height: 10.8rem;
  border-radius: 1.75rem;
  font-size: 0.92rem;
  background: linear-gradient(135deg, var(--op-accent-soft), rgba(15, 118, 110, 0.02));
  border: 1px solid rgba(15, 118, 110, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: hidden;
  padding: 0.18rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}
.op-auth-brand-mark img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
}
.op-auth-copy h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  letter-spacing: -0.04em;
}
.op-auth-copy {
  text-align: center;
}
.op-auth-kicker {
  letter-spacing: 0.1em;
}
.op-auth-copyline {
  position: fixed;
  right: 1.5rem;
  bottom: 1rem;
  z-index: 5;
}
@media (max-width: 767.98px) {
  .op-auth-brand-mark {
    width: 8rem;
    height: 8rem;
  }

  .op-auth-copyline {
    position: static;
    display: block;
    margin-top: 1rem;
    text-align: center;
  }
}
.op-auth-input,
.op-dns-form-input,
.form-control {
  min-height: 3.125rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  background: var(--op-surface);
}
.op-auth-field label,
.op-dns-form-field label {
  font-size: 0.88rem;
  font-weight: 700;
}
.btn {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.op-primary-cta,
.op-dns-add-button {
  min-height: 3rem;
  border-radius: 1rem;
}
.op-locale-menu-trigger,
.op-theme-toggle,
.op-shell-stage-quick-action,
.op-shell-stage-session-chip {
  min-height: 2.875rem;
  border-radius: 0.95rem;
  background: var(--op-surface);
}
.op-theme-toggle-icon,
.op-locale-flag,
.op-shell-stage-session-avatar {
  width: 1.85rem;
  height: 1.85rem;
}
.op-locale-menu-list,
.op-session-menu-list {
  border-radius: 1rem;
}
.op-shell {
  background: var(--op-bg-muted);
}
.op-sidebar-shell {
  gap: 1.25rem;
  padding: 1rem 0.9rem;
  background: linear-gradient(180deg, var(--op-surface) 0%, color-mix(in srgb, var(--op-surface) 94%, var(--op-bg-muted)) 100%);
}
.op-sidebar-brand-panel {
  min-height: 4rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1.15rem;
  background: transparent;
  box-shadow: none;
}
.op-sidebar-brand-copy strong {
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}
.op-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.op-nav-section {
  gap: 0.5rem;
}
.op-nav-section + .op-nav-section {
  margin-top: 0;
}
.op-nav-link {
  position: relative;
  min-height: 3.15rem;
  gap: 0.8rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.95rem;
}
.op-nav-link::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  bottom: 0.5rem;
  width: 0.18rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 160ms ease;
}
.op-nav-link.is-active::before {
  background: var(--op-accent);
}
.op-nav-link.is-active {
  background: color-mix(in srgb, var(--op-accent-soft) 72%, var(--op-surface));
}
.op-nav-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  background: transparent;
}
.op-nav-link.is-active .op-nav-icon {
  background: transparent;
  color: var(--op-accent);
}
.op-nav-title {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.op-nav-subtitle {
  font-size: 0.76rem;
}
body.sidebar-collapsed .op-nav-link {
  min-height: 3rem;
  padding-inline: 0.35rem;
  border-radius: 0.9rem;
}
body.sidebar-collapsed .op-nav-icon {
  width: 2.35rem;
  height: 2.35rem;
}
.op-shell-stage-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1.35rem 1.6rem;
  background: color-mix(in srgb, var(--op-surface) 90%, transparent);
  backdrop-filter: blur(14px);
}
.op-shell-stage-topbar-copy {
  gap: 0.35rem;
}
.op-shell-stage-topbar-copy h1 {
  font-size: clamp(1.5rem, 2vw, 2.05rem);
  letter-spacing: -0.04em;
}
.op-shell-stage-topbar-copy p {
  font-size: 0.94rem;
  max-width: 38rem;
}
.op-shell-stage-content {
  padding: 1.6rem;
}
.op-shell-footer {
  padding: 0 1.6rem 1.5rem;
  border-top: 1px solid var(--op-border);
  margin-top: auto;
  padding-top: 1rem;
}
.op-dns-toolbar,
.op-dns-hero,
.op-app-section,
.op-dns-section,
.card,
.list-group-item {
  border-radius: 1.15rem !important;
}
.op-dns-toolbar,
.op-dns-hero,
.op-app-section {
  padding: 1.5rem;
}
.op-dns-title,
.op-app-section h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  letter-spacing: -0.03em;
}
.op-dns-text,
.op-app-section-head p {
  max-width: 42rem;
  font-size: 0.94rem;
}
.op-dns-hero-stat {
  min-width: 11rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
}
.op-dns-hero-stat-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
}
.op-dns-section {
  padding: 1.35rem;
}
.op-dns-section-head h4 {
  font-size: 1.15rem;
}
.op-dns-count {
  min-height: 2rem;
  border-radius: 0.8rem;
}
.op-dns-table thead th {
  padding: 0.85rem 0.95rem;
  font-size: 0.72rem;
}
.op-dns-table tbody td {
  padding: 0.9rem 0.95rem;
}
.op-dns-status-pill,
.op-users-permission-pill {
  min-height: 1.85rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
}
.op-dns-action-button {
  min-height: 2.35rem;
  padding: 0.52rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.85rem;
}
.op-dns-empty-state {
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
}
.op-interface-portal-item,
.op-app-toggle-item,
.op-dns-switch-card {
  min-height: 3.65rem;
  border-radius: 0.95rem;
}
.op-mac-visual-default-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0.35rem 0 0.75rem;
}
.op-mac-visual-default-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.op-mac-visual-default-row .op-dns-modal-text {
  margin: 0;
  text-align: right;
}
.op-mac-visual-switch {
  margin-bottom: 0.72rem;
}
.op-mac-modal-section-readonly {
  position: relative;
  opacity: 0.72;
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .op-mac-visual-default-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .op-mac-visual-default-row .op-dns-modal-text {
    text-align: left;
  }
}
.op-dns-modal .modal-content,
.op-users-modal .modal-content {
  border-radius: 1.15rem;
}
.op-dns-modal .modal-header,
.op-users-modal .modal-header,
.op-dns-modal .modal-body,
.op-users-modal .modal-body {
  padding: 1.25rem !important;
}
.op-dns-modal .modal-title,
.op-users-modal .modal-title {
  font-size: 1.15rem;
}
.btn-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
}
@media (max-width: 1199.98px) {
  .op-shell-stage-topbar,
  .op-shell-stage-content,
  .op-shell-footer {
    padding-inline: 1.25rem;
  }
}
@media (max-width: 767.98px) {
  .op-sidebar-shell {
    padding: 0.85rem 0.8rem;
  }

  .op-shell-stage-topbar,
  .op-shell-stage-content,
  .op-shell-footer {
    padding-inline: 1rem;
  }

  .op-shell-stage-topbar {
    padding-block: 1rem;
  }

  .op-dns-toolbar,
  .op-dns-hero,
  .op-app-section,
  .op-dns-section {
    padding: 1rem;
    border-radius: 1rem !important;
  }
}
@media (max-width: 991.98px) {
  .op-dns-hero {
    grid-template-columns: 1fr;
  }

  .op-dns-hero-side {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .op-dns-hero-stats {
    grid-template-columns: 1fr;
  }
}
/* Final professional layout refinement */
body.op-core-redesign {
  --op-sidebar-width: 16.5rem;
  --op-sidebar-collapsed-width: 4.85rem;
  --op-radius-lg: 1rem;
  --op-radius-xl: 1.15rem;
  --op-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.03);
  --op-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.055);
}
body.op-core-redesign .op-main {
  flex-direction: column;
}
body.op-core-redesign .op-shell-stage,
body.op-core-redesign .op-shell-stage-inner {
  min-height: 0;
  flex: 1;
}
body.op-core-redesign .op-sidebar-shell {
  padding: 0.9rem 0.8rem;
  background: var(--op-surface);
}
body.op-core-redesign .op-sidebar-brand-panel {
  min-height: 3.5rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.9rem;
}
body.op-core-redesign .op-sidebar-logo-only {
  min-height: 8.5rem;
  padding: 0.7rem 0.25rem;
  border-radius: 0;
}
body.op-core-redesign .op-nav {
  gap: 0.95rem;
}
body.op-core-redesign .op-nav-link {
  min-height: 2.95rem;
  gap: 0.72rem;
  padding: 0.56rem 0.66rem;
  border-radius: 0.8rem;
}
body.op-core-redesign .op-nav-link::before {
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.16rem;
}
body.op-core-redesign .op-nav-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
}
body.op-core-redesign .op-nav-title {
  font-size: 0.87rem;
}
body.op-core-redesign .op-nav-subtitle {
  font-size: 0.73rem;
}
body.op-core-redesign .op-shell-stage-topbar {
  align-items: center;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--op-surface) 95%, transparent);
  box-shadow: 0 1px 0 var(--op-border);
}
body.op-core-redesign .op-shell-stage-topbar-copy {
  gap: 0.22rem;
}
body.op-core-redesign .op-shell-stage-topbar-copy h1 {
  font-size: clamp(1.28rem, 1.65vw, 1.72rem);
}
body.op-core-redesign .op-shell-stage-topbar-copy p {
  font-size: 0.92rem;
  max-width: 44rem;
}
body.op-core-redesign .op-shell-stage-content {
  padding: 1.15rem 1.25rem 1.25rem;
}
body.op-core-redesign .op-content-card.op-shell-stage-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.op-core-redesign .op-shell-footer {
  padding: 0.8rem 1.25rem 1rem;
  border-top: 1px solid var(--op-border);
  margin-top: auto;
  font-size: 0.82rem;
}
body.op-core-redesign .op-dns-toolbar,
body.op-core-redesign .op-dns-hero,
body.op-core-redesign .op-app-section {
  padding: 1.2rem;
}
body.op-core-redesign .op-dns-title,
body.op-core-redesign .op-app-section h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
}
body.op-core-redesign .op-dns-text,
body.op-core-redesign .op-app-section-head p {
  font-size: 0.92rem;
}
body.op-core-redesign .op-dns-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 20rem);
  gap: 1rem 1.2rem;
  align-items: start;
}
body.op-core-redesign .op-dns-hero-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  width: 100%;
}
body.op-core-redesign .op-dns-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
body.op-core-redesign .op-dns-hero-stat.is-total {
  grid-column: 1 / -1;
}
body.op-core-redesign .op-dns-hero-stat {
  min-width: 0;
  gap: 0.7rem;
  padding: 0.82rem 0.88rem;
  border-radius: 0.9rem;
}
body.op-core-redesign .op-dns-hero-stat-icon {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.65rem;
}
body.op-core-redesign .op-dns-hero-stat-copy strong {
  font-size: 0.98rem;
}
body.op-core-redesign .op-dns-hero-stat-copy small {
  font-size: 0.75rem;
}
body.op-core-redesign .op-dns-section {
  padding: 1.05rem;
}
body.op-core-redesign .op-dns-section-head h4 {
  font-size: 1.02rem;
}
body.op-core-redesign .op-dns-count {
  min-height: 1.9rem;
  border-radius: 0.68rem;
  font-size: 0.79rem;
}
body.op-core-redesign .op-dns-action-button {
  min-height: 2.15rem;
  padding: 0.45rem 0.68rem;
  border-radius: 0.68rem;
  font-size: 0.82rem;
}
body.op-core-redesign .op-dns-empty-state {
  padding: 0.95rem 1rem;
}
@media (max-width: 991.98px) {
  body.op-core-redesign .op-shell-stage-topbar {
    padding: 0.95rem 1rem;
  }

  body.op-core-redesign .op-shell-stage-content,
  body.op-core-redesign .op-shell-footer {
    padding-inline: 1rem;
  }

  body.op-core-redesign .op-dns-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  body.op-core-redesign .op-dns-hero-stats {
    grid-template-columns: 1fr;
  }
}
/* ===== onepanel-pro.css ===== */
:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: #ecfdf5;
  --primary-border: #99f6e4;
  --radius-card: 22px;
  --radius-button: 14px;
  --radius-input: 14px;
  --radius-modal: 18px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --surface-0: #f4f7fb;
  --surface-1: #ffffff;
  --surface-2: #f8fbff;
  --surface-3: #e8eef7;
  --text-0: #0f172a;
  --text-1: #475569;
  --text-2: #7b8aa0;
  --border-soft: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, 0.12);
  --info: #1d4ed8;
  --info-soft: rgba(29, 78, 216, 0.12);
  --focus-ring: 0 0 0 4px rgba(15, 118, 110, 0.18);
  --sidebar-width: 18rem;
  --sidebar-collapsed-width: 5.1rem;
  --topbar-height: 86px;
  --z-topbar: 90;
  --z-sidebar: 95;
  --z-overlay: 85;
  --z-dropdown: 1200;
}
:root[data-theme="dark"],
body.theme-dark,
body[data-theme="dark"] {
  --surface-0: #0a1220;
  --surface-1: #111c2f;
  --surface-2: #17253a;
  --surface-3: #22324d;
  --text-0: #e7edf8;
  --text-1: #c0cee1;
  --text-2: #92a3bc;
  --border-soft: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.28);
  --primary-soft: rgba(15, 118, 110, 0.18);
  --primary-border: rgba(45, 212, 191, 0.35);
  --shadow-card: 0 24px 64px rgba(2, 6, 23, 0.4);
  --shadow-soft: 0 14px 30px rgba(2, 6, 23, 0.32);
  --focus-ring: 0 0 0 4px rgba(36, 180, 168, 0.24);
}
html,
body {
  min-height: 100%;
}
body.onepanel-shell,
body.onepanel-auth {
  margin: 0;
  color: var(--text-0);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body.onepanel-shell,
html[data-theme="dark"] body.onepanel-auth,
body.theme-dark.onepanel-shell,
body.theme-dark.onepanel-auth,
body[data-theme="dark"].onepanel-shell,
body[data-theme="dark"].onepanel-auth {
  background:
    radial-gradient(circle at 12% -8%, rgba(56, 189, 248, 0.1), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(45, 212, 191, 0.1), transparent 28%),
    var(--surface-0);
}
/* -------------------------------------------------------------------------- */
/* Reusable components requested                                              */
/* -------------------------------------------------------------------------- */
.empty-state,
.theme-picker,
.mobile-drawer {
  box-sizing: border-box;
}
.op-dns-toolbar,
.op-dns-hero,
.op-app-section,
.op-interface-section,
.op-dns-section,
.card,
.list-group-item {
  background: var(--surface-1) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-soft) !important;
}
.op-dns-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.op-dns-status-pill,
.op-users-permission-pill,
.op-dns-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 30px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: calc(var(--radius-card) - 8px);
  border: 1px solid color-mix(in srgb, var(--border-soft) 92%, transparent);
  background: color-mix(in srgb, var(--surface-1) 96%, transparent);
  scrollbar-width: thin;
}
.empty-state,
.op-dns-empty-state {
  border-radius: calc(var(--radius-card) - 8px);
  border: 1px dashed var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  padding: 1.15rem 1.2rem;
  color: var(--text-1);
}
.empty-state strong,
.op-dns-empty-state strong {
  color: var(--text-0);
}
/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn,
.op-app-save-button,
.op-interface-save-button,
.op-primary-cta,
.op-dns-add-button,
.op-dns-modal-submit,
.op-dns-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 800;
  box-shadow: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.btn:hover,
.op-app-save-button:hover,
.op-interface-save-button:hover,
.op-primary-cta:hover,
.op-dns-add-button:hover,
.op-dns-modal-submit:hover,
.op-dns-action-button:hover {
  transform: none;
  box-shadow: none !important;
}
.btn:focus-visible,
.op-app-save-button:focus-visible,
.op-interface-save-button:focus-visible,
.op-primary-cta:focus-visible,
.op-dns-add-button:focus-visible,
.op-dns-modal-submit:focus-visible,
.op-dns-action-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-success,
.op-app-save-button,
.op-interface-save-button,
.op-primary-cta,
.op-dns-add-button,
.op-dns-modal-submit {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}
.btn-success:hover,
.op-app-save-button:hover,
.op-interface-save-button:hover,
.op-primary-cta:hover,
.op-dns-add-button:hover,
.op-dns-modal-submit:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: none !important;
}
.op-dns-action-button.is-edit,
.op-dns-modal-cancel {
  background: color-mix(in srgb, var(--surface-2) 84%, var(--surface-1)) !important;
  color: var(--text-1) !important;
  border-color: var(--border-soft) !important;
}
.op-dns-action-button.is-edit:hover,
.op-dns-modal-cancel:hover {
  color: var(--primary) !important;
  border-color: var(--primary-border) !important;
  background: var(--primary-soft) !important;
  box-shadow: none !important;
}
.btn-danger,
.op-dns-action-button.is-delete,
.op-dns-modal-submit.is-delete,
.op-dns-delete-submit,
.op-nav-link.is-logout .op-nav-icon {
  background: var(--danger-soft) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color: var(--danger) !important;
}
.btn-danger:hover,
.op-dns-action-button.is-delete:hover,
.op-dns-modal-submit.is-delete:hover,
.op-dns-delete-submit:hover {
  background: rgba(220, 38, 38, 0.2) !important;
  border-color: rgba(220, 38, 38, 0.38) !important;
  color: #991b1b !important;
  box-shadow: none !important;
}
.btn:disabled,
.btn.disabled,
button:disabled {
  opacity: 0.55;
  transform: none !important;
  cursor: not-allowed;
}
.btn-sm {
  min-height: 38px;
  padding: 0.48rem 0.82rem;
  font-size: 0.82rem;
  border-radius: 11px;
}
/* -------------------------------------------------------------------------- */
/* Forms                                                                        */
/* -------------------------------------------------------------------------- */
.form-control,
.op-auth-input,
.op-dns-form-input,
.op-interface-theme-select {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-input) !important;
  border: 1px solid var(--border-soft) !important;
  background: var(--surface-1) !important;
  color: var(--text-0) !important;
  box-shadow: none !important;
  padding: 0.68rem 0.92rem !important;
}
.form-control::placeholder,
.op-auth-input::placeholder,
.op-dns-form-input::placeholder {
  color: var(--text-2);
}
.form-control:focus,
.op-auth-input:focus,
.op-dns-form-input:focus,
.op-interface-theme-select:focus {
  border-color: var(--primary-border) !important;
  box-shadow: var(--focus-ring) !important;
}
.op-auth-field label,
.op-dns-form-field label,
.op-interface-theme-field label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.33rem;
}
.op-auth-form,
.op-app-form,
.op-interface-form,
.op-dns-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
textarea.form-control,
textarea.op-dns-form-input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}
.form-check-input {
  width: 2.7rem;
  min-width: 2.7rem;
  height: 1.55rem;
  margin: 0 !important;
  -webkit-appearance: none;
  border-radius: 999px !important;
  border: 1px solid var(--border-strong) !important;
  background-color: color-mix(in srgb, var(--surface-3) 88%, var(--surface-1)) !important;
  background-image: none !important;
  position: relative;
  appearance: none;
  accent-color: var(--primary);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.form-check-input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.13rem;
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
  transition: transform 160ms ease, background-color 160ms ease;
}
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-image: none !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-check-input:checked::before {
  transform: translate(1.12rem, -50%);
}
.form-check-input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.form-check-input:focus-visible {
  box-shadow: var(--focus-ring), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
/* -------------------------------------------------------------------------- */
/* Sidebar and drawer                                                           */
/* -------------------------------------------------------------------------- */
.op-shell {
  min-height: 100vh;
  background: transparent;
}
.op-sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  z-index: var(--z-sidebar);
}
.mobile-drawer {
  position: relative;
}
.op-sidebar-shell {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100vh;
  padding: 0.9rem 0.8rem;
  border-right: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 95%, transparent);
  backdrop-filter: blur(10px);
}
.op-sidebar-brand-panel {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 62px;
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, transparent), var(--surface-1));
}
.op-sidebar-brand-copy strong {
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.op-sidebar-brand-copy small {
  color: var(--text-2);
}
.op-sidebar-logo-only {
  justify-content: center;
  min-height: 8.5rem;
  padding: 0.7rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.op-sidebar-logo-only img {
  display: block;
  width: min(10rem, 92%);
  max-height: 7.25rem;
  object-fit: contain;
}
.op-sidebar-mobile-close {
  display: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-1);
  align-items: center;
  justify-content: center;
}
.op-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
}
.op-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.op-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 48px;
  padding: 0.56rem 0.68rem;
  border-radius: 14px;
  color: var(--text-1);
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}
.op-nav-link::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0;
  width: 0.16rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 150ms ease;
}
.op-nav-link:hover {
  background: var(--surface-2);
  color: var(--text-0);
}
.op-nav-link.is-active {
  background: color-mix(in srgb, var(--primary-soft) 78%, var(--surface-1));
  color: var(--text-0);
}
.op-nav-link.is-active::before {
  background: var(--primary);
}
.op-nav-icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.72rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  flex-shrink: 0;
}
.op-nav-link.is-active .op-nav-icon {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
}
.op-nav-title {
  color: var(--text-0);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}
.op-nav-subtitle {
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1.2;
}
.op-nav-link.is-logout .op-nav-title {
  color: var(--danger);
}
.op-nav-link.is-logout .op-nav-subtitle {
  color: color-mix(in srgb, var(--danger) 70%, var(--text-2));
}
body.sidebar-collapsed .op-sidebar {
  width: var(--sidebar-collapsed-width);
  flex-basis: var(--sidebar-collapsed-width);
}
html.op-sidebar-collapsed-preload .op-sidebar {
  width: var(--sidebar-collapsed-width);
  flex-basis: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .op-sidebar-shell {
  padding-inline: 0.6rem;
}
html.op-sidebar-collapsed-preload .op-sidebar-shell {
  padding-inline: 0.6rem;
}
body.sidebar-collapsed .op-sidebar-brand-copy,
body.sidebar-collapsed .op-nav-copy,
body.sidebar-collapsed .op-nav-section-head {
  display: none;
}
html.op-sidebar-collapsed-preload .op-sidebar-brand-copy,
html.op-sidebar-collapsed-preload .op-nav-copy,
html.op-sidebar-collapsed-preload .op-nav-section-head {
  display: none;
}
body.sidebar-collapsed .op-sidebar-brand-panel,
body.sidebar-collapsed .op-nav-link {
  justify-content: center;
  padding-inline: 0.35rem;
}
html.op-sidebar-collapsed-preload .op-sidebar-brand-panel,
html.op-sidebar-collapsed-preload .op-nav-link {
  justify-content: center;
  padding-inline: 0.35rem;
}
body.sidebar-collapsed .op-sidebar-logo-only,
html.op-sidebar-collapsed-preload .op-sidebar-logo-only {
  min-height: 4.9rem;
  padding: 0.25rem 0;
}
body.sidebar-collapsed .op-sidebar-logo-only img,
html.op-sidebar-collapsed-preload .op-sidebar-logo-only img {
  width: 3.8rem;
  max-height: 3.8rem;
}
body.sidebar-collapsed .op-nav-icon {
  width: 2.22rem;
  height: 2.22rem;
}
html.op-sidebar-collapsed-preload .op-nav-icon {
  width: 2.22rem;
  height: 2.22rem;
}
/* -------------------------------------------------------------------------- */
/* Topbar and menus                                                             */
/* -------------------------------------------------------------------------- */
.op-main {
  flex: 1;
  min-width: 0;
}
.op-shell-stage-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-height);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  backdrop-filter: blur(12px);
  overflow: visible;
}
.op-shell-stage-topbar-copy {
  min-width: 0;
}
.op-shell-stage-topbar-copy h1 {
  margin: 0.18rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.68rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.op-shell-stage-topbar-copy p {
  margin: 0.35rem 0 0;
  max-width: 56ch;
  color: var(--text-1);
  font-size: 0.92rem;
}
.op-shell-stage-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: var(--z-dropdown);
}
.op-shell-stage-quick-action,
.op-shell-stage-session-chip,
.op-locale-menu-trigger,
.op-theme-toggle {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  color: var(--text-0);
}
.op-shell-stage-session-chip {
  padding-right: 0.66rem;
}
.op-shell-stage-session-avatar,
.op-theme-toggle-icon,
.op-locale-flag {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.op-session-menu,
.op-locale-menu {
  position: relative;
}
.op-session-menu-list,
.op-locale-menu-list {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: var(--z-dropdown);
  width: min(21rem, calc(100vw - 1rem));
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 97%, transparent);
  box-shadow: var(--shadow-card);
  padding: 0.65rem;
  backdrop-filter: blur(12px);
}
.op-locale-menu-list {
  width: min(15rem, calc(100vw - 1rem));
}
.op-session-menu-head {
  padding: 0.55rem 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.op-session-menu-head strong {
  color: var(--text-0);
}
.op-session-menu-head small,
.op-session-menu-label {
  color: var(--text-2);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.op-session-menu-list,
.op-session-menu-group,
.op-session-menu-locales {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}
.op-session-locale-option,
.op-locale-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.58rem 0.62rem;
  border-radius: 11px;
  color: var(--text-1);
}
.op-session-locale-option:hover,
.op-locale-option:hover,
.op-session-locale-option.is-active,
.op-locale-option.is-active {
  background: var(--surface-2);
}
.op-session-theme-button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-0);
  padding: 0.65rem 0.72rem;
}
.op-session-theme-copy strong {
  font-size: 0.88rem;
}
.op-session-theme-copy small {
  color: var(--text-2);
  font-size: 0.75rem;
}
[data-theme-tooltip],
[data-nav-tooltip] {
  position: relative;
}
[data-theme-tooltip]:hover::after,
body.sidebar-collapsed .op-nav-link[data-nav-tooltip]:hover::after {
  content: attr(data-theme-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: var(--z-dropdown);
  background: var(--text-0);
  color: var(--surface-1);
  border-radius: 9px;
  padding: 0.45rem 0.58rem;
  font-size: 0.74rem;
  white-space: nowrap;
}
body.sidebar-collapsed .op-nav-link[data-nav-tooltip]:hover::after {
  right: auto;
  left: calc(100% + 0.45rem);
  top: 50%;
  transform: translateY(-50%);
}
/* -------------------------------------------------------------------------- */
/* Theme picker                                                                 */
/* -------------------------------------------------------------------------- */
.theme-picker {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0.68rem;
  background: var(--surface-1);
}
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}
.theme-swatch {
  width: 100%;
  min-height: 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.theme-swatch:hover {
  transform: scale(1.05);
}
.theme-swatch.is-active {
  border-color: color-mix(in srgb, #ffffff 75%, var(--text-0));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-0) 25%, transparent);
}
.theme-custom-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.theme-custom-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.theme-picker-note {
  color: var(--text-2);
  font-size: 0.74rem;
  line-height: 1.35;
}
/* -------------------------------------------------------------------------- */
/* Content cards, module spacing, alerts                                        */
/* -------------------------------------------------------------------------- */
.op-shell-stage-content {
  padding: 1.15rem 1.25rem 1.25rem;
  overflow-anchor: none;
}
.op-shell-stage-content .op-dns-sections,
.op-shell-stage-content #mac-devices-section {
  min-width: 0;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 140ms ease, transform 140ms ease;
}
.op-shell-stage-content.is-filter-refreshing .op-dns-sections,
.op-shell-stage-content.is-filter-refreshing #mac-devices-section {
  transform: translateY(2px);
  opacity: 0.76;
}
.op-content-card.op-shell-stage-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.op-module-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-alert {
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--text-0);
  padding: 0.85rem 0.95rem;
}
.op-alert.is-error {
  border-color: rgba(220, 38, 38, 0.3);
  background: var(--danger-soft);
}
.op-shell-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.82rem 1.25rem 1rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-2);
  font-size: 0.83rem;
}
/* -------------------------------------------------------------------------- */
/* DNS/entity module visuals                                                    */
/* -------------------------------------------------------------------------- */
.op-dns-module,
.op-entity-module,
.op-app-module,
.op-interface-module {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-player-module,
.op-settings-module {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 82%, var(--surface-1)) 0%, var(--surface-1) 58%, color-mix(in srgb, var(--primary-soft) 45%, var(--surface-1)) 100%);
  border: 1px solid var(--border-soft);
  border-radius: calc(var(--radius-card) + 2px);
  box-shadow: var(--shadow-card);
}
.op-module-hero-main {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.op-module-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--primary-border);
  background: color-mix(in srgb, var(--primary-soft) 92%, var(--surface-1));
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.op-module-hero-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.op-module-hero-copy p {
  margin: 0.45rem 0 0;
  max-width: 70ch;
  color: var(--text-1);
  font-size: 0.96rem;
  line-height: 1.65;
}
.op-module-hero-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.op-module-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.4rem;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 84%, transparent);
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.op-module-chip i,
.op-module-hero-badge i {
  font-size: 1rem;
}
.op-module-stat-grid {
  display: grid;
  gap: 0.78rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.op-module-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 90%, transparent);
  box-shadow: var(--shadow-soft);
}
.op-module-stat.is-wide {
  grid-column: 1 / -1;
}
.op-module-stat-icon {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
}
.op-module-stat-icon i {
  font-size: 1.25rem;
}
.op-module-stat-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}
.op-module-stat-copy strong {
  color: var(--text-0);
  font-size: 1.06rem;
  line-height: 1.1;
}
.op-module-stat-copy span {
  color: var(--text-2);
  font-size: 0.78rem;
  line-height: 1.35;
}
.op-dns-toolbar,
.op-dns-hero,
.op-app-section,
.op-interface-section {
  padding: 1.2rem;
}
.op-dns-toolbar,
.op-dns-section-head,
.op-app-section-head,
.op-interface-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.op-dns-title,
.op-app-section h3,
.op-interface-section h3 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.op-dns-text,
.op-app-section-head p,
.op-interface-section-head p {
  margin: 0.28rem 0 0;
  color: var(--text-1);
  font-size: 0.91rem;
}
.op-dns-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.op-dns-eyebrow,
.op-dns-section-kicker,
.op-app-kicker,
.op-interface-kicker {
  color: var(--text-2);
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.op-dns-add-button {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.op-dns-toolbar .op-dns-actions {
  column-gap: 0.38rem !important;
  row-gap: 0.25rem !important;
}
.op-dns-toolbar .btn,
.op-dns-toolbar .op-dns-add-button,
.op-dns-toolbar .op-dns-modal-submit {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.op-dns-hero {
  grid-template-columns: minmax(0, 1fr) minmax(23rem, 34rem);
  align-items: stretch;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.op-dns-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--primary-soft) 72%, transparent), transparent 34%),
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--primary-soft) 46%, transparent), transparent 28%);
  opacity: 0.72;
}
.op-dns-hero > * {
  position: relative;
  z-index: 1;
}
.op-dns-hero .op-dns-title {
  max-width: 34rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.op-dns-hero .op-dns-text {
  max-width: 44rem;
  margin-top: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.65;
}
.op-dns-hero-actions {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.op-dns-hero-side {
  display: grid;
  align-content: center;
}
.op-dns-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}
.op-dns-hero-stat.is-total {
  grid-column: auto;
}
.op-dns-hero-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border-soft) 82%, transparent);
  background: color-mix(in srgb, var(--surface-1) 86%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 54%, transparent);
  padding: 0.9rem;
}
.op-dns-hero-stat-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.82rem;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  flex: 0 0 auto;
}
.op-dns-hero-stat-copy {
  min-width: 0;
}
.op-dns-hero-stat.is-inactive .op-dns-hero-stat-icon {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.24);
}
.op-dns-hero-stat-copy strong {
  display: block;
  color: var(--text-0);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.1;
}
.op-dns-hero-stat-copy small {
  display: block;
  margin-top: 0.16rem;
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1.25;
}
.op-dns-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-dns-section {
  padding: 1.05rem;
}
.op-dns-section-head h4 {
  margin: 0.24rem 0 0;
  font-size: 1rem;
}
.op-dns-count {
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--border-soft);
}
.op-dns-table thead th {
  border-bottom: 1px solid color-mix(in srgb, var(--border-soft) 92%, transparent);
  color: color-mix(in srgb, var(--text-2) 92%, var(--text-1));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.68rem 0.9rem;
  background: color-mix(in srgb, var(--surface-2) 65%, var(--surface-1));
  white-space: nowrap;
  vertical-align: middle !important;
}
.op-dns-table > :not(caption) > * > * {
  vertical-align: middle !important;
}
.op-dns-table tbody td {
  border-bottom: 1px solid color-mix(in srgb, var(--border-soft) 62%, transparent);
  vertical-align: middle !important;
  padding: 0.44rem 0.85rem;
  color: var(--text-1);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.op-dns-table tbody tr {
  height: 46px;
  transition: transform 160ms ease;
}
.op-dns-table tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--surface-1) 98%, transparent);
}
.op-dns-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-2) 34%, var(--surface-1));
}
.op-dns-table tbody tr:hover td {
  background: color-mix(in srgb, var(--primary-soft) 16%, var(--surface-1));
}
.op-dns-table tbody tr:hover td:first-child {
  box-shadow: none !important;
}
.op-dns-table tbody tr:last-child td {
  border-bottom: 0;
}
.op-dns-cell strong {
  color: var(--text-0);
  line-height: 1.25;
}
.op-dns-cell span {
  color: var(--text-1);
  line-height: 1.3;
}
.op-dns-cell small {
  color: var(--text-1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.op-dns-status-pill.is-active {
  color: color-mix(in srgb, var(--success) 88%, var(--text-0));
  background: color-mix(in srgb, var(--success-soft) 88%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
}
.op-dns-status-pill.is-inactive {
  color: color-mix(in srgb, var(--danger) 84%, var(--text-0));
  background: color-mix(in srgb, var(--danger-soft) 86%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent);
}
.op-dns-status-pill.is-stream {
  color: color-mix(in srgb, var(--primary) 86%, var(--text-0));
  background: color-mix(in srgb, var(--primary-soft) 86%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
}
.op-dns-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.38rem;
}
.op-dns-table td.text-end {
  vertical-align: middle !important;
}
.op-dns-table td .op-dns-actions {
  min-height: 100%;
  align-items: center;
}
.op-dns-table td .op-users-permission-summary {
  display: flex;
  align-items: center;
  min-height: 100%;
}
.op-dns-table td .op-dns-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.op-dns-action-button {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  min-width: 112px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}
.op-dns-action-button i.material-icons-round {
  font-size: 0.92rem;
  line-height: 1;
}
.op-mac-server-slot-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 124px;
}
.op-mac-server-slot-actions .op-mac-server-slot-control,
.op-mac-server-slot-actions .op-dns-action-button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.7rem;
  white-space: nowrap;
}
.op-mac-server-slot-actions .op-dns-action-button {
  gap: 0.35rem;
}
.op-mac-server-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 0.65rem !important;
  margin-bottom: 14px;
  width: 100%;
}
.op-mac-server-tab {
  display: inline-grid !important;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 0.42rem;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 0.78rem !important;
  text-align: left;
}
.op-mac-server-tab-number,
.op-mac-server-tab-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-mac-server-tab-number {
  color: var(--op-text);
}
.op-mac-server-tab-name {
  color: var(--op-text-soft);
}
.op-mac-server-tab-separator {
  color: var(--op-border-strong);
}
.op-mac-server-tab-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--op-border-strong);
  background: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.op-mac-server-tab-dot.is-configured {
  border-color: rgba(34, 197, 94, 0.7);
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14), 0 0 14px rgba(34, 197, 94, 0.36);
}
.op-mac-server-tab.is-configured .op-mac-server-tab-name {
  color: var(--op-text);
}
.op-mac-quick-switch {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: stretch !important;
  width: 100%;
}
.op-mac-quick-switch form,
.op-mac-quick-switch-button {
  width: 100%;
}
.op-mac-quick-switch-button {
  justify-content: center;
}
body.op-core-redesign .op-dns-table thead th {
  padding: 0.62rem 0.82rem !important;
}
body.op-core-redesign .op-dns-table tbody td {
  padding: 0.72rem 0.82rem !important;
  vertical-align: middle !important;
}
body.op-core-redesign .op-dns-table tbody tr {
  height: 58px;
}
body.op-core-redesign .op-dns-table td.text-end,
body.op-core-redesign .op-dns-table td.text-end .op-dns-actions {
  vertical-align: middle !important;
  align-items: center !important;
}
body.op-core-redesign .op-dns-table td.text-end {
  white-space: nowrap;
}
body.op-core-redesign .op-dns-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.42rem;
}
body.op-core-redesign .op-dns-table .op-dns-action-button,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  backdrop-filter: none;
  transform: none !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button i.material-icons-round,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm i.material-icons-round {
  font-size: 0.96rem !important;
  line-height: 1 !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button.is-edit:hover,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm.is-edit:hover {
  box-shadow: none !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button.is-delete:hover,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm.is-delete:hover {
  box-shadow: none !important;
}
body.op-core-redesign .op-dns-table td.text-end {
  position: relative !important;
  min-width: 250px !important;
  padding-right: 0.82rem !important;
}
body.op-core-redesign .op-dns-table td.text-end > .op-dns-actions {
  position: absolute !important;
  top: 50% !important;
  right: 0.82rem !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 0.62rem !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm {
  min-width: 112px !important;
  min-height: 40px !important;
  padding: 0.58rem 0.9rem !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--surface-2) 88%, var(--surface-1)) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-1) !important;
  box-shadow: none !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button:hover,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm:hover {
  transform: none !important;
  box-shadow: none !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button.is-edit,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm.is-edit {
  background: color-mix(in srgb, var(--primary-soft) 62%, var(--surface-1)) !important;
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border-soft)) !important;
  color: color-mix(in srgb, var(--primary) 82%, var(--text-0)) !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button.is-edit:hover,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm.is-edit:hover {
  background: color-mix(in srgb, var(--primary-soft) 82%, var(--surface-1)) !important;
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border-soft)) !important;
  color: color-mix(in srgb, var(--primary) 92%, var(--text-0)) !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button.is-delete,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm.is-delete {
  background: color-mix(in srgb, var(--danger-soft) 68%, var(--surface-1)) !important;
  border-color: color-mix(in srgb, var(--danger) 20%, var(--border-soft)) !important;
  color: color-mix(in srgb, var(--danger) 86%, var(--text-0)) !important;
}
body.op-core-redesign .op-dns-table .op-dns-action-button.is-delete:hover,
body.op-core-redesign .op-dns-table .op-dns-action-button.btn-sm.is-delete:hover {
  background: color-mix(in srgb, var(--danger-soft) 88%, var(--surface-1)) !important;
  border-color: color-mix(in srgb, var(--danger) 34%, var(--border-soft)) !important;
  color: color-mix(in srgb, var(--danger) 94%, var(--text-0)) !important;
}
@media (min-width: 768px) {
  body.op-core-redesign .op-dns-table td.text-end > .op-dns-actions {
    transform: translateY(calc(-50% + 6px)) !important;
  }
}
.op-dns-action-button.is-edit {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 92%, var(--surface-1)), color-mix(in srgb, var(--primary-soft) 68%, var(--surface-1))) !important;
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border-soft)) !important;
  color: color-mix(in srgb, var(--primary) 88%, var(--text-0)) !important;
  box-shadow: none !important;
}
.op-dns-action-button.is-edit:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 100%, var(--surface-1)), color-mix(in srgb, var(--primary-soft) 84%, var(--surface-1))) !important;
  border-color: color-mix(in srgb, var(--primary) 38%, var(--primary-border)) !important;
  color: color-mix(in srgb, var(--primary) 96%, var(--text-0)) !important;
}
.op-dns-action-button.is-delete {
  background: linear-gradient(180deg, color-mix(in srgb, var(--danger-soft) 88%, var(--surface-1)), color-mix(in srgb, var(--danger-soft) 64%, var(--surface-1))) !important;
  border-color: color-mix(in srgb, var(--danger) 24%, var(--border-soft)) !important;
  color: color-mix(in srgb, var(--danger) 88%, var(--text-0)) !important;
  box-shadow: none !important;
}
.op-dns-action-button.is-delete:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--danger-soft) 100%, var(--surface-1)), color-mix(in srgb, var(--danger-soft) 84%, var(--surface-1))) !important;
  border-color: color-mix(in srgb, var(--danger) 40%, rgba(220, 38, 38, 0.38)) !important;
  color: color-mix(in srgb, var(--danger) 96%, var(--text-0)) !important;
}
.op-users-permission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.op-users-permission-pill {
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}
.op-database-maintenance-section {
  display: grid;
  gap: 1rem;
}
.op-database-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.op-database-actions form {
  margin: 0;
}
.op-database-action-button {
  min-width: 210px;
}
.op-database-backup-table-wrap {
  margin-top: 0.35rem;
}
.op-database-backup-table td {
  white-space: nowrap;
}
.op-database-backup-table td:first-child {
  white-space: normal;
  min-width: 260px;
}
@media (max-width: 767.98px) {
  .op-database-actions,
  .op-database-actions form,
  .op-database-action-button {
    width: 100%;
    max-width: none;
  }

  .op-database-backup-table td:first-child {
    min-width: 220px;
  }
}
.op-mac-bulk-select {
  font-weight: 600;
}
.op-mac-toolbar-actions {
  align-items: stretch;
  gap: 0.42rem;
  column-gap: 0.38rem !important;
  row-gap: 0.25rem !important;
}
.op-mac-toolbar-button {
  justify-content: center;
  width: 220px;
  min-width: 220px;
  min-height: 46px;
  padding-inline: 1.1rem;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap;
}
.op-mac-readable-text {
  max-width: 46rem;
  line-height: 1.55;
  text-wrap: balance;
}
.op-mac-license-help-text {
  margin-top: 0.15rem;
  max-width: 52rem;
}
.op-mac-table {
  min-width: 1180px;
}
.op-mac-table th[data-mac-col],
.op-mac-table td[data-mac-col],
.op-dns-table th[data-entity-col],
.op-dns-table td[data-entity-col] {
  min-width: 0;
}
.op-mac-table th[data-mac-col],
.op-dns-table th[data-entity-col] {
  position: relative;
}
.op-mac-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.op-mac-sort-link i {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.55;
}
.op-mac-sort-link:hover,
.op-mac-sort-link.is-active {
  color: var(--primary);
}
.op-mac-sort-link.is-active i {
  opacity: 1;
}
.op-mac-table th.is-mac-draggable-column,
.op-dns-table th.is-mac-draggable-column {
  cursor: grab;
  user-select: none;
}
.op-mac-table th.is-mac-draggable-column.is-dragging,
.op-dns-table th.is-mac-draggable-column.is-dragging {
  cursor: grabbing;
  opacity: 0.58;
}
.op-mac-table th.is-drop-target,
.op-dns-table th.is-drop-target {
  box-shadow: inset 3px 0 0 var(--primary);
}
.op-mac-column-resizer {
  position: absolute;
  top: 18%;
  right: 0;
  z-index: 2;
  width: 8px;
  height: 64%;
  cursor: col-resize;
  border-right: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  opacity: 0;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}
.op-mac-table th[data-mac-col]:hover .op-mac-column-resizer,
.op-dns-table th[data-entity-col]:hover .op-mac-column-resizer,
body.is-mac-column-resizing .op-mac-column-resizer {
  opacity: 1;
}
body.is-mac-column-resizing {
  cursor: col-resize;
  user-select: none;
}
.op-mac-table td[data-mac-col="mac"] {
  min-width: 10.8rem;
}
.op-mac-table td[data-mac-col="screens"] {
  min-width: 5.5rem;
}
.op-mac-table td[data-mac-col="account"],
.op-mac-table td[data-mac-col="owner"],
.op-mac-table td[data-mac-col="server"] {
  min-width: 11.5rem;
}
.op-mac-table td[data-mac-col="content"],
.op-mac-table td[data-mac-col="navigation"] {
  min-width: 10rem;
  max-width: 15rem;
}
.op-mac-table .op-dns-cell strong,
.op-mac-table .op-dns-cell span,
.op-mac-table .op-users-permission-summary {
  overflow-wrap: anywhere;
}
.op-mac-filter-panel {
  position: relative;
  z-index: 30;
  margin-bottom: 1.15rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--border-soft) 82%, var(--primary));
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 88%, var(--primary-soft)), color-mix(in srgb, var(--surface-1) 92%, var(--primary-soft)));
  contain: layout style;
  overflow: visible;
}
.op-mac-filter-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.45fr) minmax(13rem, 0.9fr) minmax(6.6rem, 0.34fr) 10.25rem;
  align-items: end;
  gap: 0.8rem;
}
.op-entity-filter-grid {
  grid-template-columns: minmax(14rem, 1.35fr) minmax(12rem, 0.9fr) minmax(8rem, 0.48fr) minmax(6.5rem, 0.36fr) 17rem;
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .op-mac-filter-grid,
  .op-entity-filter-grid {
    grid-template-columns: minmax(15rem, 1.35fr) minmax(12rem, 0.9fr) minmax(8rem, 0.5fr);
  }

  .op-mac-filter-action-slot {
    grid-column: span 2;
  }

  .op-mac-filter-actions {
    justify-content: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .op-shell-stage-content .op-dns-sections,
  .op-shell-stage-content #mac-devices-section {
    transition: none;
  }
}
.op-mac-filter-actions {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  align-items: stretch;
  justify-content: end;
  gap: 0.5rem;
  margin-top: 0;
  width: 100%;
}
.op-mac-filter-actions .op-mac-filter-icon-button,
.op-mac-filter-actions .op-mac-columns-trigger {
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  width: 46px;
  padding: 0;
  white-space: nowrap;
}
.op-mac-filter-actions .op-mac-columns-trigger {
  gap: 0;
}
.op-mac-filter-icon-button {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--border-soft) 74%, var(--primary));
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.op-mac-filter-icon-button:hover,
.op-mac-filter-icon-button:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 24%, transparent);
  transform: translateY(-1px);
}
.op-mac-clear-filters {
  background: color-mix(in srgb, var(--surface-2) 88%, var(--primary-soft));
  color: var(--text-0);
}
.op-mac-clear-filters i,
.op-mac-columns-trigger i,
.op-mac-font-trigger i {
  font-size: 1.25rem;
}
.op-mac-font-menu {
  position: relative;
}
.op-mac-font-options {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  min-width: 10.5rem;
  padding: 0.42rem;
  border: 1px solid color-mix(in srgb, var(--border-soft) 72%, var(--primary));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-1) 96%, var(--primary-soft));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}
.op-mac-font-options[hidden] {
  display: none;
}
.op-mac-font-options button {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
}
.op-mac-font-options button:hover,
.op-mac-font-options button:focus-visible,
.op-mac-font-options button.is-active {
  background: color-mix(in srgb, var(--primary-soft) 66%, var(--surface-1));
  color: var(--primary);
}
.op-mac-font-options button strong {
  color: inherit;
  font-size: 0.86rem;
  text-align: center;
}
.op-entity-module[data-entity-table-font-size="small"] .op-dns-table tbody td {
  font-size: calc(1rem - 3px);
}
.op-entity-module[data-entity-table-font-size="default"] .op-dns-table tbody td {
  font-size: calc(1rem - 2px);
}
.op-entity-module[data-entity-table-font-size="large"] .op-dns-table tbody td {
  font-size: calc(1rem - 1px);
}
.op-entity-module[data-entity-table-font-size="small"] .op-dns-table .op-dns-status-pill,
.op-entity-module[data-entity-table-font-size="small"] .op-dns-table .op-dns-cell small {
  font-size: calc(0.78rem - 3px);
}
.op-entity-module[data-entity-table-font-size="default"] .op-dns-table .op-dns-status-pill,
.op-entity-module[data-entity-table-font-size="default"] .op-dns-table .op-dns-cell small {
  font-size: calc(0.78rem - 2px);
}
.op-entity-module[data-entity-table-font-size="large"] .op-dns-table .op-dns-status-pill,
.op-entity-module[data-entity-table-font-size="large"] .op-dns-table .op-dns-cell small {
  font-size: calc(0.78rem - 1px);
}
.op-mac-font-options button span {
  font-size: 0.82rem;
  font-weight: 750;
}
.op-mac-font-trigger[data-mac-font-current="small"]::after,
.op-mac-font-trigger[data-mac-font-current="large"]::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
}
.op-mac-font-trigger[data-mac-font-current="small"]::after {
  content: "−";
}
.op-mac-font-trigger[data-mac-font-current="large"]::after {
  content: "+";
}
.op-mac-owner-filter-select {
  font-weight: 800;
  cursor: pointer;
}
.op-mac-columns-trigger {
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border-soft));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--surface-1)), color-mix(in srgb, var(--primary-soft) 82%, var(--surface-2)));
  color: var(--text-0);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 22%, transparent);
}
.op-mac-columns-trigger i.material-icons-round {
  font-size: 1.15rem;
}
.op-mac-reseller-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.op-mac-snapshot-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 74%, var(--surface-1));
}
.op-mac-snapshot-item i.material-icons-round {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 82%, var(--surface-1));
  font-size: 1.15rem;
}
.op-mac-snapshot-item span {
  color: var(--text-2);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}
.op-mac-snapshot-item strong {
  color: var(--text-0);
  font-size: 1.2rem;
  line-height: 1;
}
.op-mac-owner-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 11rem;
}
.op-mac-owner-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 78%, var(--surface-1));
  font-size: 0.78rem;
  font-weight: 900;
}
.op-mac-column-panel {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface-1));
}
.op-mac-column-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.op-mac-column-panel-head strong {
  color: var(--text-0);
  font-size: 0.84rem;
  font-weight: 900;
}
.op-mac-column-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.op-mac-column-toggle {
  min-height: 46px;
  margin: 0;
  padding: 0.75rem 0.9rem;
}
.op-mac-column-toggle span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.op-mac-columns-reset {
  min-height: 38px;
  white-space: nowrap;
}
.op-mac-license-section {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
}
.op-mac-license-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--success) 72%, var(--primary)));
}
.op-mac-license-hero {
  display: grid;
  grid-template-columns: minmax(20rem, 1.05fr) minmax(20rem, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin: 0;
}
.op-mac-license-meter-card,
.op-mac-license-rules,
.op-mac-license-form {
  border: 1px solid color-mix(in srgb, var(--border-soft) 82%, var(--primary));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 78%, var(--surface-1));
}
.op-mac-license-meter-card {
  display: grid;
  gap: 0.85rem;
  align-content: space-between;
  padding: 1rem;
}
.op-mac-license-meter-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.op-mac-license-meter-head div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-1);
}
.op-mac-license-meter-head span,
.op-mac-license-rule span {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}
.op-mac-license-meter-head strong {
  color: var(--text-0);
  line-height: 1;
}
.op-mac-license-meter {
  width: 100%;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3, var(--surface-2)) 72%, var(--border-soft));
}
.op-mac-license-meter span {
  display: block;
  width: var(--license-used);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--success) 68%, var(--primary)));
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 42%, transparent);
}
.op-mac-license-meter-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}
.op-mac-license-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}
.op-mac-license-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}
.op-mac-license-rule i.material-icons-round {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 82%, var(--surface-1));
  font-size: 1.2rem;
}
.op-mac-license-rule div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.op-mac-license-rule strong {
  color: var(--text-0);
  font-size: 1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.op-mac-license-form {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}
.op-mac-license-form-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "license-toggle-limit license-limit license-macs"
    "license-toggle-session license-sessions license-sessions"
    "license-timeout license-timeout license-timeout"
    "license-actions license-actions license-actions";
  gap: 0.9rem;
  align-items: end;
}
.op-mac-license-form-grid .op-dns-form-field {
  margin-bottom: 0;
  min-width: 0;
}
.op-mac-license-form-span {
  min-width: 0;
}
.op-mac-license-form-grid > :nth-child(1) {
  grid-area: license-toggle-limit;
}
.op-mac-license-form-grid > :nth-child(2) {
  grid-area: license-limit;
}
.op-mac-license-form-grid > :nth-child(3) {
  grid-area: license-macs;
}
.op-mac-license-form-grid > :nth-child(4) {
  grid-area: license-timeout;
  padding: 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-1) 78%, var(--surface-2));
}
.op-mac-license-form-grid > :nth-child(4) .op-dns-form-field {
  max-width: 22rem;
}
.op-mac-license-form-grid > :nth-child(5) {
  grid-area: license-sessions;
}
.op-mac-license-form-grid > :nth-child(6) {
  grid-area: license-toggle-session;
}
.op-mac-license-form-actions {
  grid-area: license-actions;
  min-width: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}
.op-mac-license-form-actions .op-dns-modal-actions {
  justify-content: flex-end;
  margin-top: 0;
}
.op-mac-license-form-actions .op-dns-modal-submit {
  min-width: 10rem;
}
.op-mac-license-toggle {
  min-height: 100%;
  margin-bottom: 0;
  border-radius: 8px;
}
.op-mac-license-readonly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 15rem));
  gap: 0.75rem;
  margin-top: 1rem;
}
.op-mac-license-readonly-modern {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.op-mac-license-metric {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-2) 68%, var(--surface-1));
}
.op-mac-license-metric strong {
  color: var(--text-0);
  font-size: 1.2rem;
  line-height: 1.1;
}
.op-mac-license-metric span {
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.op-mac-activation-panel {
  overflow: hidden;
}
.op-mac-activation-panel summary {
  cursor: pointer;
  list-style: none;
}
.op-mac-activation-panel summary::-webkit-details-marker {
  display: none;
}
.op-mac-activation-summary {
  margin: -0.15rem -0.15rem 0;
  padding: 0.15rem;
  border-radius: 14px;
}
.op-mac-activation-title,
.op-mac-activation-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.op-mac-activation-body {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.op-mac-activation-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 84%, transparent);
}
.op-mac-activation-toggle {
  min-height: 44px;
  width: auto;
  margin: 0;
}
.op-mac-activation-note {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.op-mac-activation-table td:nth-child(3) {
  white-space: nowrap;
}
.op-mac-activation-table .op-mac-activation-actions-head,
.op-mac-activation-table .op-mac-activation-actions-cell {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
.op-mac-activation-table .op-mac-activation-row-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.22rem !important;
  width: 100% !important;
  min-height: 32px !important;
  margin: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}
.op-mac-activation-table .op-mac-activation-row-actions form {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button,
.op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button.btn-sm {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}
.op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button i.material-icons-round,
.op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button.btn-sm i.material-icons-round {
  display: block !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}
.op-dns-status-pill.is-warning {
  color: #9a6700;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
}
.op-dns-status-pill.is-danger {
  color: #b42318;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.34);
}
.op-mac-mobile-list {
  display: none;
}
[data-mac-col].is-mac-column-hidden {
  display: none !important;
}
[data-entity-col].is-mac-column-hidden {
  display: none !important;
}
.op-mac-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0.85rem 0 1.1rem;
}
.op-mac-pagination .btn {
  min-width: 2.35rem;
  justify-content: center;
  border-radius: 10px;
}
@media (max-width: 991.98px) {
  .op-mac-reseller-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-mac-license-hero {
    grid-template-columns: 1fr;
  }

  .op-mac-license-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "license-toggle-limit license-limit"
      "license-toggle-session license-macs"
      "license-sessions license-sessions"
      "license-timeout license-timeout"
      "license-actions license-actions";
  }

  .op-mac-filter-grid {
    grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.75fr);
  }

  .op-entity-filter-grid {
    grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.75fr);
  }

  .op-mac-filter-action-slot {
    grid-column: 1 / -1;
  }

  .op-mac-filter-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 767.98px) {
  .op-mac-reseller-snapshot {
    grid-template-columns: 1fr;
  }

  .op-mac-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .op-mac-filter-grid {
    grid-template-columns: 1fr;
  }

  .op-mac-filter-actions .op-mac-filter-icon-button,
  .op-mac-filter-actions .op-mac-columns-trigger {
    width: 46px;
  }

  .op-mac-license-meter-head,
  .op-mac-license-readonly-modern {
    grid-template-columns: 1fr;
  }

  .op-mac-license-rules,
  .op-mac-license-form-grid {
    grid-template-columns: 1fr;
  }

  .op-mac-license-form-grid {
    grid-template-areas:
      "license-toggle-limit"
      "license-toggle-session"
      "license-limit"
      "license-macs"
      "license-sessions"
      "license-timeout"
      "license-actions";
  }

  .op-mac-license-form-span,
  .op-mac-license-form-actions {
    grid-column: auto;
  }

  .op-mac-license-form-actions .op-dns-modal-actions,
  .op-mac-license-form-actions .op-dns-modal-submit {
    width: 100%;
  }

  .op-mac-column-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
}
.op-overview-module {
  display: grid;
  gap: 1rem;
}
.op-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--primary-soft) 70%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-1) 92%, transparent), color-mix(in srgb, var(--surface-2) 72%, var(--surface-1)));
  box-shadow: var(--shadow-card);
}
.op-overview-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}
.op-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.op-overview-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  box-shadow: var(--shadow-card);
}
.op-overview-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.op-overview-card-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 auto;
}
.op-overview-card h4 {
  margin: 0;
  color: var(--text-0);
  font-size: 1.05rem;
  line-height: 1.2;
}
.op-overview-card p {
  margin: 0.28rem 0 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.45;
}
.op-overview-main-number {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.op-overview-main-number strong {
  color: var(--text-0);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.op-overview-main-number span {
  color: var(--text-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.op-overview-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.op-overview-mini-grid > div {
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-2) 64%, var(--surface-1));
}
.op-overview-mini-grid strong,
.op-overview-mini-grid span {
  display: block;
}
.op-overview-mini-grid strong {
  color: var(--text-0);
  font-size: 1.05rem;
}
.op-overview-mini-grid span {
  color: var(--text-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.op-overview-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface-1));
  color: color-mix(in srgb, var(--primary) 88%, var(--text-0));
  font-weight: 850;
  text-decoration: none;
}
.op-overview-link:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 88%, var(--surface-1));
}
@media (max-width: 767.98px) {
  .op-mac-toolbar-actions {
    width: 100%;
  }

  .op-mac-toolbar-button {
    width: 100%;
    min-width: 0;
  }

  .op-mac-license-readonly {
    grid-template-columns: 1fr;
  }

  .op-overview-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .op-overview-hero-badge {
    justify-content: center;
    width: 100%;
  }

  .op-overview-grid {
    grid-template-columns: 1fr;
  }
}
.op-app-section,
.op-interface-section {
  display: grid;
  gap: 1rem;
}
.op-app-grid,
.op-interface-global-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.op-app-grid-span-2 {
  grid-column: span 2;
}
.op-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.op-visual-stack > .op-app-subsection {
  width: 100%;
  grid-column: 1 / -1;
}
.op-visual-stack .op-app-grid {
  grid-template-columns: 1fr;
}
.op-visual-stack .op-app-grid-span-2 {
  grid-column: 1 / -1;
}
.op-app-subsection {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.op-app-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.op-app-subsection-head h4 {
  margin: 0.16rem 0 0;
  font-size: 1rem;
  line-height: 1.2;
}
.op-app-subsection-head p {
  margin: 0.24rem 0 0;
  color: var(--text-2);
  font-size: 0.84rem;
}
.op-app-subsection-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 0.82rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  flex: 0 0 2.3rem;
}
.op-app-subsection-icon i {
  font-size: 1.1rem;
}
.op-app-toggle-item {
  min-height: 60px;
  align-items: center;
}
.op-app-toggle-item span {
  font-weight: 700;
  color: var(--text-0);
}
.op-interface-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.op-interface-feature-panel {
  display: grid;
  gap: 1rem;
}
.op-interface-portal-item,
.op-interface-global-item,
.op-vpn-checkbox-row,
.form-check.form-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 58px;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}
.op-interface-portal-item span,
.op-interface-global-item span,
.op-vpn-checkbox-row span {
  color: var(--text-0);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}
.op-interface-portal-item:hover,
.op-interface-global-item:hover,
.op-vpn-checkbox-row:hover,
.form-check.form-switch:hover {
  border-color: color-mix(in srgb, var(--primary-border) 72%, var(--border-soft));
  background: color-mix(in srgb, var(--primary-soft) 22%, var(--surface-1));
}
.op-interface-portal-item:has(.form-check-input:checked),
.op-interface-global-item:has(.form-check-input:checked),
.op-vpn-checkbox-row:has(.form-check-input:checked),
.form-check.form-switch:has(.form-check-input:checked),
.op-interface-portal-item.is-selected,
.op-interface-global-item.is-selected,
.op-vpn-checkbox-row.is-selected,
.form-check.form-switch.is-selected {
  border-color: var(--primary-border);
  background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface-1));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent);
}
.op-interface-portal-item:has(.form-check-input:focus-visible),
.op-interface-global-item:has(.form-check-input:focus-visible),
.op-vpn-checkbox-row:has(.form-check-input:focus-visible),
.form-check.form-switch:has(.form-check-input:focus-visible),
.op-interface-portal-item.is-focused,
.op-interface-global-item.is-focused,
.op-vpn-checkbox-row.is-focused,
.form-check.form-switch.is-focused {
  box-shadow: var(--focus-ring);
}
.form-check.form-switch {
  margin-bottom: 0.9rem !important;
  padding-left: 0.9rem;
}
.form-check.form-switch .form-check-input {
  margin-left: 0 !important;
  background-image: none !important;
  background-position: initial !important;
}
.op-interface-portal-item:has(.form-check-input:disabled),
.op-interface-global-item:has(.form-check-input:disabled),
.op-vpn-checkbox-row:has(.form-check-input:disabled),
.form-check.form-switch:has(.form-check-input:disabled),
.op-interface-portal-item.is-disabled,
.op-interface-global-item.is-disabled,
.op-vpn-checkbox-row.is-disabled,
.form-check.form-switch.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.op-users-item-permissions {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}
.op-users-item-permission-group {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
}
.op-users-item-permission-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.op-users-item-permission-summary-row::-webkit-details-marker {
  display: none;
}
.op-users-item-permission-summary-row span {
  display: grid;
  gap: 0.2rem;
}
.op-users-item-permission-summary-row i {
  color: var(--accent);
  transition: transform 0.18s ease;
}
.op-users-item-permission-group[open] .op-users-item-permission-summary-row i {
  transform: rotate(180deg);
}
.op-users-item-permission-summary-row strong {
  color: var(--text-0);
  font-size: 0.86rem;
  font-weight: 800;
}
.op-users-item-permission-summary-row small {
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 700;
}
.op-mac-visual-default-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0.35rem 0 0.75rem;
}
.op-mac-visual-default-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.op-mac-visual-default-row .op-dns-modal-text {
  margin: 0;
  text-align: right;
}
.op-mac-visual-switch {
  margin-bottom: 0.72rem;
}
.op-mac-modal-section-readonly {
  position: relative;
  opacity: 0.72;
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .op-mac-visual-default-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .op-mac-visual-default-row .op-dns-modal-text {
    text-align: left;
  }
}
.op-interface-feature-row {
  min-height: 58px;
  padding: 0.78rem 0.9rem;
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
}
.op-interface-feature-row span {
  font-size: 0.94rem;
}
.op-interface-theme-wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.95rem;
  flex-wrap: wrap;
}
.op-interface-theme-field {
  width: min(340px, 100%);
}
.op-interface-theme-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  list-style: none;
}
.op-interface-theme-gallery .list-group-item {
  margin: 0 !important;
  padding: 1rem !important;
  display: grid !important;
  gap: 0.75rem;
}
.op-interface-theme-gallery h6 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-0);
}
.op-interface-theme-gallery p {
  margin: 0.2rem 0 0;
  color: var(--text-2);
  font-size: 0.8rem;
}
.op-interface-theme-gallery img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  object-fit: cover;
}
.op-save-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.op-save-bar-copy {
  min-width: 0;
}
.op-save-bar-copy strong {
  display: block;
  color: var(--text-0);
  font-size: 0.92rem;
}
.op-save-bar-copy span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-2);
  font-size: 0.79rem;
}
.op-save-bar .op-app-save-button,
.op-save-bar .op-interface-save-button {
  margin: 0 !important;
  min-width: 210px;
}
.op-settings-note {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  color: var(--text-1);
}
/* -------------------------------------------------------------------------- */
/* Modals                                                                       */
/* -------------------------------------------------------------------------- */
.op-dns-modal .modal-dialog,
.op-users-modal .modal-dialog {
  max-width: min(920px, calc(100% - 1rem));
}
.op-dns-modal .modal-content,
.op-users-modal .modal-content {
  border-radius: var(--radius-modal);
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-1) 97%, transparent);
  box-shadow: var(--shadow-card);
}
.op-dns-modal .modal-header,
.op-users-modal .modal-header {
  padding: 1.1rem 1.1rem 0;
  border-bottom: 0;
}
.op-dns-modal .modal-title,
.op-users-modal .modal-title {
  margin: 0.28rem 0 0;
  color: var(--text-0);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.op-dns-modal .modal-body,
.op-users-modal .modal-body {
  padding: 1.1rem;
}
.op-dns-modal-text {
  margin: 0 0 0.85rem;
  color: var(--text-1);
  font-size: 0.9rem;
}
.op-mac-modal-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--surface-2) 88%, transparent));
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.op-mac-modal-section-title:first-child {
  margin-top: 0;
}
.op-mac-modal-section-title .material-icons-round {
  font-size: 1.15rem;
}
.op-mac-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.95rem 0 1rem;
  padding: 0.35rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}
.op-mac-modal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 150px;
  min-height: 38px;
  padding: 0.52rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text-1);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.op-mac-modal-tab.is-active {
  color: var(--primary);
  border-color: var(--primary-border);
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--surface-1) 88%, transparent));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 14%, transparent);
}
.op-mac-modal-section-hidden {
  display: none !important;
}
.op-mac-stacked-modal-form > .row {
  display: block;
  margin-right: 0;
  margin-left: 0;
}
.op-mac-stacked-modal-form > .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}
.op-mac-stacked-modal-form > .row > [class*="col-"] + [class*="col-"] {
  margin-top: 0.85rem;
}
.op-mac-stacked-modal-form .op-mac-license-toggle {
  margin-top: 0 !important;
}
.op-dns-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.btn-close {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--surface-2);
  background-image: none !important;
  opacity: 1;
}
.btn-close::before,
.btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-1);
  transform-origin: center;
}
.btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.btn-close:hover {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}
.btn-close:hover::before,
.btn-close:hover::after {
  background: var(--primary);
}
body.theme-dark .btn-close,
body[data-theme="dark"] .btn-close {
  filter: none;
}
/* -------------------------------------------------------------------------- */
/* Auth pages                                                                   */
/* -------------------------------------------------------------------------- */
.op-auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.op-auth-stage {
  width: min(100%, 460px);
}
.op-auth-floating-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.op-auth-card {
  border-radius: 22px !important;
  padding: clamp(1.2rem, 4vw, 1.9rem) !important;
  background: color-mix(in srgb, var(--surface-1) 96%, transparent) !important;
}
.op-auth-brand-mark {
  width: 10.8rem;
  height: 10.8rem;
  border-radius: 28px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: hidden;
  padding: 0.18rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}
.op-auth-brand-mark img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
}
.op-auth-copy h1 {
  margin: 0.24rem 0 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.op-auth-copy {
  text-align: center;
}
.op-auth-copyline,
.op-auth-text {
  color: var(--text-2);
}
.op-auth-copyline {
  position: fixed;
  right: 1.5rem;
  bottom: 1rem;
  z-index: 5;
}
@media (max-width: 767.98px) {
  .op-auth-brand-mark {
    width: 8rem;
    height: 8rem;
  }

  .op-auth-copyline {
    position: static;
    display: block;
    margin-top: 1rem;
    text-align: center;
  }
}
/* -------------------------------------------------------------------------- */
/* Legacy include pages fallback (dns-add, vpn-add etc.)                        */
/* -------------------------------------------------------------------------- */
.input-group .form-control {
  border-radius: var(--radius-input);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
}
/* -------------------------------------------------------------------------- */
/* Responsive breakpoints (required)                                            */
/* -------------------------------------------------------------------------- */
/* Tablet - 769px to 1024px */
@media (min-width: 768px) and (max-width: 991.98px) {
  .op-shell-stage-topbar,
  .op-shell-stage-content,
  .op-shell-footer {
    padding-inline: 1rem;
  }

  .op-dns-hero {
    grid-template-columns: 1fr;
  }

  .op-dns-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Large mobile / small tablet - 481px to 768px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .op-shell-stage-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .op-shell-stage-topbar-actions {
    justify-content: space-between;
  }

  .op-shell-stage-content,
  .op-shell-footer {
    padding-inline: 0.85rem;
  }

  .op-dns-hero,
  .op-module-hero,
  .op-app-grid,
  .op-interface-feature-grid,
  .op-interface-global-grid,
  .op-interface-theme-gallery,
  .op-module-stat-grid {
    grid-template-columns: 1fr;
  }

  .op-dns-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .op-dns-hero-stat {
    align-items: flex-start;
    flex-direction: column;
  }

  .op-dns-modal .modal-dialog,
  .op-users-modal .modal-dialog {
    max-width: calc(100% - 0.6rem);
  }
}
/* Small mobile - up to 480px */
@media (max-width: 575.98px) {
  .op-auth-layout,
  .op-shell-stage-content,
  .op-shell-footer {
    padding-inline: 0.85rem;
  }

  .op-shell-stage-topbar {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 1rem 0.85rem;
    gap: 0.85rem;
  }

  .op-shell-stage-topbar-copy p {
    font-size: 0.86rem;
  }

  .op-shell-stage-topbar-actions {
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .op-shell-stage-session-name {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .op-dns-toolbar,
  .op-dns-hero,
  .op-app-section,
  .op-interface-section,
  .op-dns-section {
    padding: 1rem;
    border-radius: 18px !important;
  }

  .op-dns-section-head {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .op-dns-hero,
  .op-module-hero,
  .op-app-grid,
  .op-interface-feature-grid,
  .op-interface-global-grid,
  .op-interface-theme-gallery,
  .op-module-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .op-dns-hero-stats {
    grid-template-columns: 1fr;
  }

  .op-dns-hero {
    padding: 1rem;
  }

  .op-dns-hero-actions {
    margin-top: 0.95rem;
  }

  .op-dns-hero-stat {
    flex-direction: row;
    padding: 0.82rem;
  }

  .op-app-grid-span-2,
  .op-module-stat.is-wide {
    grid-column: auto;
  }

  .op-app-subsection-head,
  .op-save-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .op-dns-add-button,
  .op-app-save-button,
  .op-interface-save-button,
  .op-primary-cta,
  .op-dns-modal-submit,
  .op-dns-modal-cancel {
    width: 100%;
  }

  .op-dns-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .op-save-bar .op-app-save-button,
  .op-save-bar .op-interface-save-button {
    width: 100%;
    min-width: 0;
  }

  .theme-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Contas MAC: as ações do filtro permanecem horizontais em qualquer largura. */
.op-dns-modal-actions.op-mac-filter-actions {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  align-items: stretch;
  justify-content: end;
  gap: 0.5rem;
  width: 100%;
}
@media (max-width: 1399.98px) {
  .op-dns-modal-actions.op-mac-filter-actions {
    justify-content: start;
  }
}
@media (max-width: 767.98px) {
  .op-dns-modal-actions.op-mac-filter-actions {
    grid-template-columns: repeat(3, 46px);
    align-items: center;
    justify-content: start;
    width: 100%;
  }
}
/* Contas MAC: leitura compacta e destaque ao atingir o limite de telas. */
.op-mac-table tbody td {
  font-size: calc(1rem - 2px);
}
.op-mac-table tbody .op-dns-cell small {
  font-size: calc(0.78rem - 2px);
}
.op-mac-table tbody .op-dns-status-pill {
  font-size: calc(0.78rem - 2px);
}
.op-dns-status-pill.op-mac-screen-usage.is-limit,
.op-mac-mobile-field .op-mac-screen-usage.is-limit {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.16);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.08), 0 0 12px rgba(249, 115, 22, 0.12);
}
#mac-devices-section[data-mac-table-font-size="small"] .op-mac-table tbody td {
  font-size: calc(1rem - 3px);
}
#mac-devices-section[data-mac-table-font-size="large"] .op-mac-table tbody td {
  font-size: calc(1rem - 1px);
}
#mac-devices-section[data-mac-table-font-size="small"] .op-mac-table tbody .op-dns-status-pill {
  font-size: calc(0.78rem - 3px);
}
#mac-devices-section[data-mac-table-font-size="large"] .op-mac-table tbody .op-dns-status-pill {
  font-size: calc(0.78rem - 1px);
}
#mac-devices-section[data-mac-table-font-size="small"] .op-mac-table tbody .op-dns-cell small {
  font-size: calc(0.78rem - 3px);
}
#mac-devices-section[data-mac-table-font-size="large"] .op-mac-table tbody .op-dns-cell small {
  font-size: calc(0.78rem - 1px);
}
@media (max-width: 767.98px) {
  #mac-devices-section[data-mac-table-font-size="small"] .op-mac-mobile-card {
    font-size: calc(1rem - 2px);
  }

  #mac-devices-section[data-mac-table-font-size="large"] .op-mac-mobile-card {
    font-size: 1rem;
  }

  #mac-devices-section[data-mac-table-font-size="small"] .op-mac-mobile-card .op-dns-status-pill {
    font-size: calc(0.78rem - 2px);
  }

  #mac-devices-section[data-mac-table-font-size="large"] .op-mac-mobile-card .op-dns-status-pill {
    font-size: 0.78rem;
  }

  #mac-devices-section[data-mac-table-font-size="small"] .op-mac-mobile-label,
  #mac-devices-section[data-mac-table-font-size="small"] .op-mac-mobile-field > span {
    font-size: calc(0.68rem - 2px);
  }

  #mac-devices-section[data-mac-table-font-size="large"] .op-mac-mobile-label,
  #mac-devices-section[data-mac-table-font-size="large"] .op-mac-mobile-field > span {
    font-size: 0.68rem;
  }

  #mac-devices-section[data-mac-table-font-size="small"] .op-mac-mobile-title {
    font-size: clamp(calc(1rem - 2px), 4.5vw, calc(1.22rem - 2px));
  }

  #mac-devices-section[data-mac-table-font-size="large"] .op-mac-mobile-title {
    font-size: clamp(1rem, 4.5vw, 1.22rem);
  }

  #mac-devices-section[data-mac-table-font-size="small"] .op-mac-mobile-field small {
    font-size: calc(0.76rem - 2px);
  }

  #mac-devices-section[data-mac-table-font-size="large"] .op-mac-mobile-field small {
    font-size: 0.76rem;
  }
}
/* Mobile drawer behavior */
@media (max-width: 991.98px) {
  .op-sidebar.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 320px);
    flex-basis: min(86vw, 320px);
    transform: translateX(-100%);
    transition: transform 200ms ease;
    z-index: var(--z-sidebar);
  }

  body.sidebar-open-mobile .op-sidebar.mobile-drawer {
    transform: translateX(0);
  }

  body.sidebar-open-mobile::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
    z-index: var(--z-overlay);
  }

  .op-sidebar-mobile-close {
    display: inline-flex;
  }

  body.sidebar-collapsed .op-sidebar {
    width: min(86vw, 320px);
    flex-basis: min(86vw, 320px);
  }

  body.sidebar-collapsed .op-sidebar-brand-copy,
  body.sidebar-collapsed .op-nav-copy,
  body.sidebar-collapsed .op-nav-section-head {
    display: initial;
  }
}
/* Responsive table mode with labels generated by JS */
@media (max-width: 767.98px) {
  .table-responsive {
    overflow: visible;
  }

  .op-dns-table thead {
    display: none;
  }

  .op-dns-table,
  .op-dns-table tbody {
    display: block;
    width: 100%;
  }

  .op-dns-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .op-dns-table tbody {
    display: grid;
    gap: 0.88rem;
  }

  .op-dns-table tr {
    position: relative;
    display: grid;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    gap: 0;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--border-soft) 88%, transparent);
    border-radius: 20px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 98%, transparent), color-mix(in srgb, var(--surface-2) 70%, var(--surface-1))),
      var(--surface-1);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  body.op-core-redesign .op-dns-table tbody tr {
    height: auto !important;
    min-height: 0 !important;
  }

  .op-dns-table tr::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 16%, transparent));
  }

  .op-dns-table tr:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--border-soft) 88%, transparent);
  }

  .op-dns-table tbody td {
    display: grid;
    grid-template-columns: minmax(7.2rem, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border-soft) 58%, transparent);
    border-radius: 0;
    padding: 0.74rem 0 !important;
    text-align: left !important;
    background: transparent !important;
    color: var(--text-0);
    overflow-wrap: anywhere;
  }

  body.op-core-redesign .op-dns-table tbody td {
    height: auto !important;
    min-height: 0 !important;
    padding: 0.74rem 0 !important;
  }

  .op-dns-table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0 !important;
  }

  .op-dns-table tbody td::before {
    content: attr(data-cell-label);
    display: block;
    margin-bottom: 0;
    color: var(--text-2);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .op-dns-table tbody td[data-cell-label=""],
  .op-dns-table tbody td:not([data-cell-label]) {
    padding-top: 0.72rem !important;
  }

  .op-dns-table tbody td[data-cell-label=""]::before,
  .op-dns-table tbody td:not([data-cell-label])::before {
    content: none;
  }

  .op-dns-table tbody td .op-dns-cell,
  .op-dns-table tbody td .op-users-permission-summary {
    min-height: 0;
  }

  .op-dns-table tbody td .op-dns-cell strong,
  .op-dns-table tbody td > strong {
    color: var(--text-0);
    font-size: 1rem;
    line-height: 1.25;
  }

  .op-dns-table tbody td:first-child .op-dns-cell strong,
  .op-dns-table tbody td:first-child > strong {
    font-size: 1.08rem;
  }

  .op-dns-table tbody td .op-dns-cell small,
  .op-dns-table tbody td small {
    color: var(--text-2);
    line-height: 1.35;
  }

  body.op-core-redesign .op-dns-table td.text-end {
    position: static !important;
    min-width: 0 !important;
    display: block;
    padding-right: 0 !important;
    padding-top: 0.88rem !important;
  }

  body.op-core-redesign .op-dns-table td.text-end::before {
    margin-bottom: 0.55rem;
  }

  body.op-core-redesign .op-dns-table td.text-end > .op-dns-actions {
    position: static !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    justify-content: stretch !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    margin-top: 0;
    width: 100%;
  }

  body.op-core-redesign .op-dns-table td.text-end > .op-dns-actions .op-dns-action-button {
    width: 100%;
    min-width: 0 !important;
    min-height: 44px !important;
    justify-content: center;
  }

  body.op-core-redesign .op-dns-table td.text-end > .op-dns-actions .op-dns-use-only-pill {
    width: auto !important;
    min-width: 0 !important;
    min-height: 2rem !important;
    height: auto !important;
    grid-column: 1 / -1;
    justify-self: start !important;
  }

  .op-mac-desktop-table {
    display: none;
  }

  .op-mac-mobile-list {
    display: grid;
    gap: 0.85rem;
  }

  .op-mac-mobile-card {
    position: relative;
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    font-size: calc(1rem - 1px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 98%, transparent), color-mix(in srgb, var(--surface-2) 72%, var(--surface-1))),
      var(--surface-1);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .op-mac-mobile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 18%, transparent));
  }

  .op-mac-mobile-card-head,
  .op-mac-mobile-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .op-mac-mobile-label,
  .op-mac-mobile-field > span {
    display: block;
    color: var(--text-2);
    font-size: calc(0.68rem - 1px);
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .op-mac-mobile-title {
    display: block;
    margin-top: 0.22rem;
    color: var(--text-0);
    font-size: clamp(calc(1rem - 1px), 4.5vw, calc(1.22rem - 1px));
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .op-mac-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .op-mac-mobile-field {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid color-mix(in srgb, var(--border-soft) 76%, transparent);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-2) 58%, transparent);
  }

  .op-mac-mobile-field.is-wide {
    grid-column: 1 / -1;
  }

  .op-mac-mobile-field strong,
  .op-mac-mobile-field small,
  .op-mac-mobile-value {
    display: block;
    min-width: 0;
    margin-top: 0.22rem;
    color: var(--text-0);
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .op-mac-mobile-field[data-mac-col="stream"],
  .op-mac-mobile-field[data-mac-col="screens"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .op-mac-mobile-field[data-mac-col="stream"] > span,
  .op-mac-mobile-field[data-mac-col="screens"] > span {
    width: 100%;
    text-align: center;
  }

  .op-mac-mobile-value,
  .op-mac-mobile-field[data-mac-col="screens"] .op-mac-screen-usage {
    display: flex;
    justify-content: center;
    margin-top: 0.42rem;
  }

  .op-mac-mobile-value .op-dns-status-pill,
  .op-mac-mobile-field[data-mac-col="screens"] .op-mac-screen-usage {
    min-width: 5.4rem;
  }

  .op-mac-mobile-field small {
    color: var(--text-2);
    font-size: calc(0.76rem - 1px);
    font-weight: 700;
  }

  .op-mac-mobile-card .op-dns-status-pill {
    font-size: calc(0.78rem - 1px);
  }

  .op-mac-mobile-status-row {
    align-items: center;
    padding: 0.72rem;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border-soft));
    border-radius: 15px;
    background: color-mix(in srgb, var(--primary-soft) 34%, var(--surface-1));
  }

  .op-mac-mobile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 0.65rem;
  }

  .op-mac-mobile-actions .op-dns-action-button {
    width: 100%;
    justify-content: center;
    min-height: 44px !important;
    gap: 0.45rem;
    white-space: nowrap;
  }
}
/* Record list layout replacing heavy tables in admin modules */
@media (max-width: 767.98px) {
  .op-mac-mobile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-mac-mobile-card {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .op-mac-mobile-card-head {
    flex-direction: column;
  }

  .op-mac-mobile-status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .op-mac-mobile-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Final action spacing normalization */
.op-dns-toolbar .op-dns-actions,
.op-dns-hero-actions,
.op-dns-modal-actions,
.op-mac-filter-actions,
.op-mac-toolbar-actions,
.op-mac-mobile-actions,
.op-database-actions,
.op-database-actions form,
.op-save-bar {
  column-gap: 0.38rem !important;
  row-gap: 0.25rem !important;
}
.op-dns-toolbar .btn,
.op-dns-hero-actions .btn,
.op-dns-modal-actions .btn,
.op-mac-filter-actions .btn,
.op-mac-toolbar-actions .btn,
.op-mac-mobile-actions .btn,
.op-database-actions .btn,
.op-database-actions form .btn,
.op-save-bar .btn {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Contas MAC: ações compactas em ícones para não invadir as colunas da tabela. */
body.op-core-redesign .op-dns-table td.op-mac-actions-cell,
body.op-core-redesign .op-mac-table th.text-end:last-child {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}
body.op-core-redesign .op-dns-table td.op-mac-actions-cell > .op-dns-actions {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.22rem !important;
  width: auto !important;
  min-width: 0 !important;
}
body.op-core-redesign .op-dns-table td.op-mac-actions-cell .op-dns-action-button,
body.op-core-redesign .op-dns-table td.op-mac-actions-cell .op-dns-action-button.btn-sm {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  gap: 0 !important;
}
body.op-core-redesign .op-dns-table td.op-mac-actions-cell .op-dns-action-button i.material-icons-round,
body.op-core-redesign .op-dns-table td.op-mac-actions-cell .op-dns-action-button.btn-sm i.material-icons-round {
  font-size: 1rem !important;
}
body.op-core-redesign .op-dns-table td.op-mac-actions-cell .op-dns-action-button:disabled {
  opacity: 0.38 !important;
  filter: grayscale(0.35);
}
.op-mac-bulk-route-warning {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}
.op-dns-modal-submit.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* MAC simplified activation actions: compact enough for edit/revoke/delete without clipping. */
body.op-core-redesign .op-mac-activation-table .op-mac-activation-actions-head,
body.op-core-redesign .op-mac-activation-table .op-mac-activation-actions-cell {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: visible !important;
}
body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 0.22rem !important;
  width: 100% !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: visible !important;
}
body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions form {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button,
body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button.btn-sm {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  line-height: 0 !important;
}
body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button i.material-icons-round,
body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions .op-dns-action-button.btn-sm i.material-icons-round {
  display: block !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}
@media (max-width: 767.98px) {
  body.op-core-redesign .op-mac-activation-table .op-mac-activation-actions-head,
  body.op-core-redesign .op-mac-activation-table .op-mac-activation-actions-cell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  body.op-core-redesign .op-mac-activation-table .op-mac-activation-row-actions {
    justify-content: flex-start !important;
    width: auto !important;
  }
}
.op-dns-modal-form[aria-busy="true"] .op-dns-modal-submit.is-submitting {
  cursor: wait;
  opacity: .82;
  pointer-events: none;
}
.op-dns-modal-form[aria-busy="true"] .op-dns-modal-submit.is-submitting .material-icons-round {
  animation: op-submit-spin .8s linear infinite;
}
@keyframes op-submit-spin {
  to { transform: rotate(360deg); }
}
.op-mac-server-scope-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 92%, var(--primary-soft)), color-mix(in srgb, var(--surface-1) 96%, var(--primary-soft)));
  border: 1px solid color-mix(in srgb, var(--border-soft) 78%, var(--primary));
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  padding: 8px;
  width: 100%;
}
.op-mac-server-scope-button {
  align-items: center;
  background: color-mix(in srgb, var(--surface-1) 90%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--border-soft) 90%, transparent) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: var(--text-2) !important;
  display: inline-flex;
  gap: .5rem;
  justify-content: center;
  margin: 0 !important;
  min-height: 44px;
  min-width: 0;
  padding: .55rem .75rem !important;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
  width: 100%;
}
.op-mac-server-scope-button span {
  font-size: .78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-mac-server-scope-button i {
  flex: 0 0 auto;
  font-size: 1.1rem;
}
.op-mac-server-scope-button:hover,
.op-mac-server-scope-button:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 62%, var(--border-soft)) !important;
  color: var(--text-0) !important;
  transform: translateY(-1px);
}
.op-mac-server-scope-button.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, white), var(--primary)) !important;
  border-color: color-mix(in srgb, var(--primary) 68%, white) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 28%, transparent) !important;
  color: var(--primary-contrast, #fff) !important;
}
.op-mac-sync-servers-submit {
  min-height: 42px;
  white-space: normal;
}
.op-mac-sync-confirm-modal {
  z-index: 1080;
}
.op-mac-confirm-header {
  align-items: center;
}
.op-mac-confirm-heading,
.op-mac-confirm-device {
  align-items: center;
  display: flex;
  gap: .85rem;
}
.op-mac-confirm-icon {
  align-items: center;
  background: color-mix(in srgb, var(--primary) 18%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--primary) 58%, var(--border-soft));
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.op-mac-confirm-message {
  color: var(--text-0);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.op-mac-confirm-device {
  background: color-mix(in srgb, var(--surface-2) 90%, var(--primary-soft));
  border: 1px solid color-mix(in srgb, var(--border-soft) 82%, var(--primary));
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: .8rem .9rem;
}
.op-mac-confirm-device > i {
  color: var(--primary);
}
.op-mac-confirm-device div {
  display: grid;
  gap: .12rem;
}
.op-mac-confirm-device span {
  color: var(--text-2);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.op-mac-confirm-device strong {
  color: var(--text-0);
  font-size: .9rem;
}
[data-mac-search-results] {
  transition: opacity .12s ease;
}
[data-mac-search-results].is-filter-refreshing {
  opacity: .7;
}
@media (max-width: 575.98px) {
  .op-mac-server-scope-box {
    grid-template-columns: 1fr;
  }

  .op-mac-server-scope-button span {
    white-space: normal;
  }
}
/* Mobile hardening: shared viewport and modal boundaries for every module. */
body.onepanel-shell {
  overflow-x: hidden;
  overflow-x: clip;
}
body.onepanel-shell .op-shell,
body.onepanel-shell .op-main,
body.onepanel-shell .op-shell-stage,
body.onepanel-shell .op-shell-stage-content,
body.onepanel-shell .op-shell-stage-content > *,
body.onepanel-shell .op-dns-section,
body.onepanel-shell .op-app-section,
body.onepanel-shell .op-interface-section {
  min-width: 0;
  max-width: 100%;
}
body.onepanel-shell img,
body.onepanel-shell video,
body.onepanel-shell canvas,
body.onepanel-shell iframe {
  max-width: 100%;
}
body.onepanel-shell input,
body.onepanel-shell select,
body.onepanel-shell textarea {
  min-width: 0;
  max-width: 100%;
}
body.onepanel-shell .modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
body.onepanel-shell .modal .modal-dialog,
body.onepanel-shell .modal .modal-dialog.modal-lg {
  width: min(920px, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
  transform: none !important;
}
body.onepanel-shell .modal .modal-dialog.modal-xl {
  width: min(1140px, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
}
body.onepanel-shell .modal .modal-dialog-scrollable {
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
}
body.onepanel-shell .modal .modal-content {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
}
body.onepanel-shell .modal .modal-header,
body.onepanel-shell .modal .modal-header > div,
body.onepanel-shell .modal .modal-body {
  min-width: 0;
  max-width: 100%;
}
body.onepanel-shell .modal .modal-title,
body.onepanel-shell .modal .op-dns-section-kicker,
body.onepanel-shell .modal label {
  overflow-wrap: anywhere;
}
body.onepanel-shell .modal .modal-body {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.onepanel-shell .modal .row {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}
body.onepanel-shell .modal .row > [class*="col-"] {
  min-width: 0;
}
body.onepanel-shell .modal .table-responsive {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
@media (max-width: 767.98px) {
  body.onepanel-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  body.onepanel-shell select,
  body.onepanel-shell textarea,
  body.onepanel-shell [contenteditable="true"] {
    font-size: 16px !important;
  }

  body.onepanel-shell .op-shell-stage-topbar-copy,
  body.onepanel-shell .op-shell-stage-topbar-actions,
  body.onepanel-shell .op-dns-section-head,
  body.onepanel-shell .op-dns-toolbar,
  body.onepanel-shell .op-dns-actions,
  body.onepanel-shell .op-dns-hero-actions {
    min-width: 0;
    max-width: 100%;
  }

  body.onepanel-shell .op-shell-stage-topbar-actions,
  body.onepanel-shell .op-dns-actions,
  body.onepanel-shell .op-dns-hero-actions {
    flex-wrap: wrap;
  }

  body.onepanel-shell .op-shell-stage-topbar-copy,
  body.onepanel-shell .op-shell-stage-topbar-copy h1,
  body.onepanel-shell .op-shell-stage-topbar-copy p,
  body.onepanel-shell .op-dns-section-head,
  body.onepanel-shell .op-dns-section-head h2,
  body.onepanel-shell .op-dns-section-head p {
    overflow-wrap: anywhere;
  }

  body.onepanel-shell .modal {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }

  body.onepanel-shell .modal .modal-dialog,
  body.onepanel-shell .modal .modal-dialog.modal-lg,
  body.onepanel-shell .modal .modal-dialog.modal-xl {
    width: calc(100% - .75rem);
    max-width: calc(100% - .75rem);
    margin: .375rem auto;
  }

  body.onepanel-shell .modal .modal-dialog-scrollable,
  body.onepanel-shell .modal .modal-content {
    max-height: calc(100vh - .75rem);
    max-height: calc(100dvh - .75rem);
  }

  body.onepanel-shell .modal .modal-header {
    gap: .65rem;
    padding: .9rem .9rem .45rem;
  }

  body.onepanel-shell .modal .modal-body {
    padding: .9rem !important;
  }

  body.onepanel-shell .modal .op-mac-modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.onepanel-shell .modal .op-mac-modal-tab,
  body.onepanel-shell .modal .op-dns-modal-actions,
  body.onepanel-shell .modal .op-dns-modal-actions > .btn,
  body.onepanel-shell .modal .op-dns-modal-actions > form,
  body.onepanel-shell .modal .op-dns-modal-actions > form .btn {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 575.98px) {
  body.onepanel-shell .modal .op-mac-modal-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  body.onepanel-shell .modal .op-dns-modal-actions > .btn,
  body.onepanel-shell .modal .op-dns-modal-actions > form,
  body.onepanel-shell .modal .op-dns-modal-actions > form .btn {
    width: 100%;
  }

  body.onepanel-shell .op-dns-table tbody td {
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
    align-items: start;
  }
}
/* Users list: license usage (limit / used - %) with a usage bar */
.op-dns-status-pill.op-license-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 118px;
  white-space: nowrap;
}
.op-license-pill-text {
  font-variant-numeric: tabular-nums;
}
.op-license-pill-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.18);
  overflow: hidden;
}
.op-license-pill-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}
/* Contas MAC > Manutenção: "Limpar dados do aplicativo" (favoritos / assistidos) */
.op-clear-app-data {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  overflow: hidden;
}
.op-clear-app-data-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-0);
  display: flex;
  font-size: .88rem;
  font-weight: 700;
  gap: .65rem;
  min-height: 56px;
  padding: .75rem .9rem;
  text-align: left;
  width: 100%;
}
.op-clear-app-data-toggle > i:first-child {
  color: var(--danger);
}
.op-clear-app-data-caret {
  margin-left: auto;
  transition: transform 180ms ease;
}
.op-clear-app-data-toggle[aria-expanded="true"] .op-clear-app-data-caret {
  transform: rotate(180deg);
}
.op-clear-app-data-body {
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: .85rem;
  padding: .9rem;
}
.op-clear-app-data-group {
  display: grid;
  gap: .5rem;
}
.op-clear-app-data-title {
  align-items: center;
  color: var(--text-2);
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  gap: .4rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.op-clear-app-data-title i {
  font-size: 1rem;
}
.op-clear-app-data .op-interface-portal-item small {
  color: var(--text-2);
  font-weight: 600;
}
.op-clear-app-data-confirm {
  align-items: flex-start;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border-soft));
  border-radius: 12px;
  color: var(--text-0);
  cursor: pointer;
  display: flex;
  font-size: .84rem;
  gap: .7rem;
  line-height: 1.5;
  opacity: .55;
  padding: .8rem .9rem;
  transition: opacity 160ms ease;
}
.op-clear-app-data.is-armed .op-clear-app-data-confirm {
  opacity: 1;
}
.op-clear-app-data-confirm .form-check-input {
  flex: 0 0 auto;
  margin-top: .2rem;
}
.op-clear-app-data-error {
  color: var(--danger);
  font-size: .82rem;
  font-weight: 700;
  margin: 0;
}
.op-clear-app-data-pending {
  background: var(--warning-soft);
  border-radius: 999px;
  color: var(--warning);
  font-size: .7rem;
  font-weight: 800;
  margin-left: .35rem;
  padding: .15rem .55rem;
  white-space: nowrap;
}
.op-clear-app-data .op-interface-portal-item small {
  display: block;
  margin-top: .15rem;
}
/* Contas MAC > "Favoritos e progresso" (mac-content.php) */
.op-mac-content {
  display: grid;
  gap: .85rem;
}
.op-mac-content .op-clear-app-data-toggle {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
}
.op-mac-content .op-clear-app-data-toggle > i:first-child {
  color: var(--primary);
}
.op-mac-content-body {
  display: grid;
  gap: .75rem;
}
.op-mac-content-stats {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.op-mac-content-stat {
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: grid;
  gap: .1rem;
  padding: .7rem .8rem;
}
.op-mac-content-stat i {
  color: var(--primary);
  font-size: 1.15rem;
}
.op-mac-content-stat strong {
  color: var(--text-0);
  font-size: 1.25rem;
}
.op-mac-content-stat span {
  color: var(--text-2);
  font-size: .74rem;
  font-weight: 700;
}
.op-mac-content-bar {
  background: var(--border-soft);
  border-radius: 999px;
  height: 4px;
  margin-top: .4rem;
  overflow: hidden;
}
.op-mac-content-bar span {
  background: var(--primary);
  display: block;
  height: 100%;
}
.op-mac-content-last {
  align-items: center;
  background: color-mix(in srgb, var(--primary-soft) 30%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border-soft));
  border-radius: 14px;
  display: flex;
  gap: .9rem;
  padding: .8rem;
}
.op-mac-content-last img,
.op-mac-content-last-ph {
  border-radius: 10px;
  flex: 0 0 auto;
  height: 96px;
  object-fit: cover;
  width: 66px;
}
.op-mac-content-last-ph {
  align-items: center;
  background: var(--surface-2);
  color: var(--primary);
  display: flex;
  justify-content: center;
}
.op-mac-content-last > div {
  display: grid;
  flex: 1 1 auto;
  gap: .2rem;
  min-width: 0;
}
.op-mac-content-last strong {
  color: var(--text-0);
  font-size: 1rem;
}
.op-mac-content-last span {
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
}
.op-mac-content-server {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  overflow: hidden;
}
.op-mac-content-server > summary {
  align-items: center;
  color: var(--text-0);
  cursor: pointer;
  display: flex;
  font-size: .95rem;
  font-weight: 800;
  gap: .6rem;
  list-style: none;
  padding: .8rem .95rem;
}
.op-mac-content-server > summary::-webkit-details-marker {
  display: none;
}
.op-mac-content-server > summary > i:first-child {
  color: var(--primary);
}
.op-mac-content-server > summary em {
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary);
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  padding: .15rem .55rem;
}
.op-mac-content-server > summary .op-clear-app-data-caret {
  margin-left: auto;
}
.op-mac-content-server[open] > summary .op-clear-app-data-caret {
  transform: rotate(180deg);
}
.op-mac-content-server-body {
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: .75rem;
  padding: .9rem;
}
.op-mac-content-pair {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.op-mac-content-pair > div {
  display: grid;
  align-content: start;
  gap: .5rem;
}
/* ---- Contas MAC: Temas e Perfis (2026-10-21) ---- */
.op-dns-modal h6,
.op-dns-modal .op-tp-title {
  color: var(--text-0);
}
.op-tp-block {
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  border-radius: var(--radius-card, 18px);
  padding: 1rem;
  margin: 0.75rem 0;
  min-width: 0;
}
.op-tp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.op-tp-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}
.op-tp-title .material-icons-round {
  color: var(--primary);
  font-size: 1.25rem;
}
.op-tp-limit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.op-tp-limit label {
  margin: 0;
  color: var(--text-1);
  font-size: 0.85rem;
}
.op-tp-limit .op-dns-form-input {
  width: auto;
  min-width: 12rem;
}
.op-tp-note {
  color: var(--text-2);
  font-size: 0.84rem;
  margin: 0 0 0.75rem;
}
.op-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.op-profile-card {
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  border-radius: 16px;
  padding: 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  min-width: 0;
}
.op-profile-card img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
}
.op-profile-card strong {
  color: var(--text-0);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-profile-card small {
  color: var(--text-2);
  line-height: 1.3;
}
.op-profile-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}
.op-icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
}
.op-icon-button .material-icons-round {
  font-size: 1.15rem;
  margin: 0 !important;
}
.op-profile-add {
  border: 1.5px dashed var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 16px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.op-profile-add .material-icons-round {
  font-size: 2rem;
}
.op-profile-add:hover,
.op-profile-add:focus-visible {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 12%);
  outline: none;
  box-shadow: var(--focus-ring);
}
.op-avatar-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 575.98px) {
  .op-avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.op-avatar-group {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, inherit);
  opacity: 0.85;
}
.op-avatar-group:first-child {
  margin-top: 0;
}
.op-avatar-grid button {
  border: 3px solid transparent;
  border-radius: 18px;
  padding: 0;
  background: var(--surface-2);
  cursor: pointer;
  line-height: 0;
}
.op-avatar-grid button img {
  width: 100%;
  border-radius: 14px;
}
.op-avatar-grid button.is-selected {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.op-avatar-grid button:focus-visible {
  outline: none;
  border-color: var(--primary-border);
}
.op-profile-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0 0.9rem;
}
.op-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0.25rem 0 0.5rem;
}
.op-check-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-1);
}
.op-profile-error {
  color: var(--danger);
  margin: 0.5rem 0 0;
}
/* tooltips inside modals: centred under the element, never cut by the modal edge */
.modal [data-theme-tooltip]:hover::after {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}
/* ---- responsiveness fixes (2026-10-21) ---- */
.op-mac-content-pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
@media (max-width: 767.98px) {
  .table-responsive:not(:has(.op-dns-table)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 767.98px) {
  .op-entity-filter-grid {
    grid-template-columns: 1fr;
  }
  .op-tp-limit,
  .op-tp-limit .op-dns-form-input {
    width: 100%;
  }
  .op-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .op-mac-toolbar-button {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
}
/* dark: the teal accent is lighter on dark surfaces so the text keeps contrast */
:root[data-theme="dark"] .op-profile-add,
body.theme-dark .op-profile-add,
body[data-theme="dark"] .op-profile-add,
:root[data-theme="dark"] .op-tp-title .material-icons-round,
body.theme-dark .op-tp-title .material-icons-round,
body[data-theme="dark"] .op-tp-title .material-icons-round {
  color: #5eead4;
}
/* ---- Contas MAC: cards when the list area is narrower than the table (2026-10-21) ---- */
[data-mac-search-results] {
  container: op-mac-list / inline-size;
}
@container op-mac-list (max-width: 1179px) {
  .op-mac-desktop-table {
    display: none;
  }

  .op-mac-mobile-list {
    display: grid;
    gap: 0.85rem;
  }

  .op-mac-mobile-card {
    position: relative;
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    font-size: calc(1rem - 1px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--surface-1) 98%, transparent), color-mix(in srgb, var(--surface-2) 72%, var(--surface-1))),
      var(--surface-1);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .op-mac-mobile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 18%, transparent));
  }

  .op-mac-mobile-card-head,
  .op-mac-mobile-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .op-mac-mobile-label,
  .op-mac-mobile-field > span {
    display: block;
    color: var(--text-2);
    font-size: calc(0.68rem - 1px);
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .op-mac-mobile-title {
    display: block;
    margin-top: 0.22rem;
    color: var(--text-0);
    font-size: clamp(calc(1rem - 1px), 4.5vw, calc(1.22rem - 1px));
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .op-mac-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .op-mac-mobile-field {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid color-mix(in srgb, var(--border-soft) 76%, transparent);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-2) 58%, transparent);
  }

  .op-mac-mobile-field.is-wide {
    grid-column: 1 / -1;
  }

  .op-mac-mobile-field strong,
  .op-mac-mobile-field small,
  .op-mac-mobile-value {
    display: block;
    min-width: 0;
    margin-top: 0.22rem;
    color: var(--text-0);
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .op-mac-mobile-field[data-mac-col="stream"],
  .op-mac-mobile-field[data-mac-col="screens"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .op-mac-mobile-field[data-mac-col="stream"] > span,
  .op-mac-mobile-field[data-mac-col="screens"] > span {
    width: 100%;
    text-align: center;
  }

  .op-mac-mobile-value,
  .op-mac-mobile-field[data-mac-col="screens"] .op-mac-screen-usage {
    display: flex;
    justify-content: center;
    margin-top: 0.42rem;
  }

  .op-mac-mobile-value .op-dns-status-pill,
  .op-mac-mobile-field[data-mac-col="screens"] .op-mac-screen-usage {
    min-width: 5.4rem;
  }

  .op-mac-mobile-field small {
    color: var(--text-2);
    font-size: calc(0.76rem - 1px);
    font-weight: 700;
  }

  .op-mac-mobile-card .op-dns-status-pill {
    font-size: calc(0.78rem - 1px);
  }

  .op-mac-mobile-status-row {
    align-items: center;
    padding: 0.72rem;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border-soft));
    border-radius: 15px;
    background: color-mix(in srgb, var(--primary-soft) 34%, var(--surface-1));
  }

  .op-mac-mobile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 0.65rem;
  }

  .op-mac-mobile-actions .op-dns-action-button {
    width: 100%;
    justify-content: center;
    min-height: 44px !important;
    gap: 0.45rem;
    white-space: nowrap;
  }
  .op-mac-mobile-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  }
}
.op-tp-collapse {
  margin: 0.75rem 0;
}
.op-dns-action-button.is-loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: progress;
}
/* ===== stmplayer-theme.css ===== */
/* STMPlayer: identidade do aplicativo no painel (Etapa 3 da reforma, 27/10/2026).
   Carregado por último em todas as páginas: troca as cores, a fonte e o acabamento dos
   componentes já existentes (onepanel-pro / onepanel-modern) sem mudar a estrutura das telas.
   Escuro é o padrão; o tema claro continua disponível no botão de tema. */
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand_medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand_bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
:root {
  /* degradê, brilho e texto sobre a cor principal: o painel recalcula tudo quando a cor muda */
  --stm-acc2: color-mix(in srgb, var(--primary) 88%, #000000);
  --stm-acc: var(--primary);
  --stm-on-acc: #1c0e00;
  --stm-grad: linear-gradient(135deg, var(--stm-acc1), var(--stm-acc2));
  --primary: #e8700f;
  --primary-hover: #c95f08;
  --primary-soft: rgba(255, 138, 31, 0.12);
  --primary-border: rgba(255, 138, 31, 0.34);
  --op-accent: #e8700f;
  --op-accent-strong: #c95f08;
  --op-accent-soft: rgba(255, 138, 31, 0.12);
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
  --surface-0: #f6f3ef;
  --surface-1: #ffffff;
  --surface-2: #fbf9f6;
  --surface-3: #efe9e2;
  --text-0: #1a1c23;
  --text-1: #4d4a45;
  --text-2: #8a847b;
  --border-soft: rgba(26, 28, 35, 0.09);
  --border-strong: rgba(26, 28, 35, 0.18);
  --radius-card: 22px;
  --radius-button: 14px;
  --radius-input: 14px;
  --shadow-card: 0 18px 45px rgba(26, 18, 8, 0.08);
  --shadow-soft: 0 10px 26px rgba(26, 18, 8, 0.06);
}
:root[data-theme="dark"],
html[data-theme="dark"],
body.theme-dark,
body[data-theme="dark"] {
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent);
  --surface-0: #0a0c11;
  --surface-1: #14161d;
  --surface-2: #1a1c23;
  --surface-3: #23262f;
  --text-0: #f4f1ec;
  --text-1: #cfc9c0;
  --text-2: #8c867d;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] {
  --primary: #ff8a1f;
  --primary-hover: #ffa04a;
  --primary-soft: rgba(255, 138, 31, 0.16);
  --primary-border: rgba(255, 138, 31, 0.4);
  --op-accent: #ff8a1f;
  --op-accent-strong: #ffa04a;
  --op-accent-soft: rgba(255, 138, 31, 0.16);
}
/* fonte do app em tudo */
body.onepanel-shell,
body.onepanel-auth,
body.onepanel-shell :where(button, input, select, textarea, .btn, h1, h2, h3, h4, h5, h6, .modal-title),
body.onepanel-auth :where(button, input, select, textarea, .btn, h1, h2, h3, h4, h5, h6) {
  font-family: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}
/* fundo: brilho laranja suave no topo, como no app */
body.onepanel-shell,
body.onepanel-auth {
  background:
    radial-gradient(900px 420px at 18% -12%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%),
    radial-gradient(700px 360px at 92% -6%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%),
    var(--surface-0) !important;
}
html[data-theme="dark"] body.onepanel-shell,
html[data-theme="dark"] body.onepanel-auth,
body.theme-dark.onepanel-shell,
body.theme-dark.onepanel-auth {
  background:
    radial-gradient(900px 420px at 18% -12%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(700px 360px at 92% -6%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%),
    var(--surface-0) !important;
}
/* botões principais: degradê laranja com texto escuro (o mesmo do app) */
.btn-primary-custom,
.btn-success,
.bg-gradient-secondary,
.op-app-save-button,
.op-interface-save-button,
.op-primary-cta,
.op-dns-add-button,
.op-dns-modal-submit:not(.op-dns-delete-submit):not(.is-delete),
.op-session-theme-button.is-primary {
  background: var(--stm-grad) !important;
  border-color: transparent !important;
  color: var(--stm-on-acc) !important;
  box-shadow: 0 10px 24px var(--stm-glow) !important;
}
.btn-primary-custom:hover,
.btn-success:hover,
.op-app-save-button:hover,
.op-interface-save-button:hover,
.op-primary-cta:hover,
.op-dns-add-button:hover,
.op-dns-modal-submit:not(.op-dns-delete-submit):not(.is-delete):hover {
  background: var(--stm-grad) !important;
  filter: brightness(1.07);
  color: var(--stm-on-acc) !important;
}
.btn-primary-custom :where(i, .material-icons-round, svg),
.btn-success :where(i, .material-icons-round, svg),
.op-primary-cta :where(i, .material-icons-round, svg),
.op-dns-add-button :where(i, .material-icons-round, svg),
.op-app-save-button :where(i, .material-icons-round, svg),
.op-interface-save-button :where(i, .material-icons-round, svg),
.op-dns-modal-submit:not(.op-dns-delete-submit):not(.is-delete) :where(i, .material-icons-round, svg) {
  color: var(--stm-on-acc) !important;
}
/* foco sempre visível (teclado), sem zoom */
:where(.btn, .op-nav-link, a, button, input, select, textarea, summary):focus-visible {
  outline: none !important;
  box-shadow: var(--focus-ring) !important;
}
/* menu lateral: item atual com fundo laranja suave e traço à esquerda */
.op-nav-link.active,
.op-nav-link.is-active,
.op-nav-link[aria-current="page"] {
  background: var(--primary-soft) !important;
  color: var(--text-0) !important;
  position: relative;
}
.op-nav-link.active::before,
.op-nav-link.is-active::before,
.op-nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--stm-grad);
}
.op-nav-link.active .op-nav-icon,
.op-nav-link.is-active .op-nav-icon {
  background: var(--stm-grad) !important;
  color: var(--stm-on-acc) !important;
  border-color: transparent !important;
}
/* chips, contadores e etiquetas no tom do app */
.op-dns-count,
.op-dns-section-kicker,
.op-app-kicker {
  color: var(--primary) !important;
}
/* campos */
body.onepanel-shell :where(.form-control, .form-select, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], select, textarea),
body.onepanel-auth :where(.form-control, input[type="text"], input[type="password"]) {
  border-radius: var(--radius-input) !important;
}
body.onepanel-shell :where(.form-control, .form-select, input, select, textarea):focus,
body.onepanel-auth :where(.form-control, input):focus {
  border-color: var(--primary-border) !important;
}
/* janelas */
.modal-content {
  border-radius: 22px !important;
  border: 1px solid var(--primary-border) !important;
  background: var(--surface-1) !important;
}
.modal-backdrop.show {
  opacity: 0.72 !important;
  background: #000 !important;
}
/* barras de rolagem discretas */
body.onepanel-shell * {
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}
/* celular: toque confortável e respiro nas laterais */
@media (max-width: 640px) {
  .btn,
  .op-primary-cta,
  .op-dns-add-button,
  .op-dns-modal-submit,
  .op-dns-action-button {
    min-height: 46px;
  }
  .modal-dialog {
    margin: 0.75rem !important;
  }
}
/* títulos: o material-dashboard pinta h1..h6 de azul-escuro, que some no tema escuro */
body.onepanel-shell :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
body.onepanel-auth :where(h1, h2, h3, h4, h5, h6) {
  color: var(--text-0);
}
body.onepanel-shell :where(p, .text-sm, .text-secondary, small) {
  color: inherit;
}
/* números grandes dos medidores não quebram no meio da palavra ("Ilimitad o") */
.op-mac-license-meter-head strong {
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem) !important;
  white-space: nowrap;
}
/* cabeçalho dos módulos: em larguras médias (notebook com menu aberto) os números do
   resumo descem para baixo do texto, em vez de espremer ("Desliga do", "Ligad o") */
@media (max-width: 1280px) {
  .op-module-hero {
    grid-template-columns: 1fr !important;
  }
  .op-module-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  }
}
.op-module-stat-copy strong {
  overflow-wrap: normal !important;
  word-break: normal !important;
}
/* botões de ação nunca cortam o texto: quebram linha quando o espaço acaba */
.op-primary-cta,
.op-dns-add-button,
.op-dns-modal-submit,
.op-app-save-button,
.op-interface-save-button {
  max-width: 100%;
  white-space: normal !important;
  text-align: center;
  line-height: 1.2;
}
/* ===== Etapa 4: base do redesenho ===== */
/* blocos das partes que não estão abertas */
[data-parte][hidden] { display: none !important; }
/* menu lateral: grupos e itens expansíveis */
.stm-nav { gap: 0.3rem !important; overflow-y: auto; padding-right: 2px; }
.stm-nav-group { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.7rem; }
.stm-nav .op-nav-section-head { padding: 0 0.7rem 0.2rem; }
.stm-nav .op-nav-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.stm-nav-home { min-height: 46px !important; }
.stm-nav-item > summary { list-style: none; }
.stm-nav-item > summary::-webkit-details-marker { display: none; }
.stm-nav-summary {
  display: flex; align-items: center; gap: 0.72rem; min-height: 46px; padding: 0.42rem 0.6rem;
  border-radius: 14px; cursor: pointer; color: var(--text-1); user-select: none;
}
.stm-nav-summary:hover { background: var(--surface-2); }
.stm-nav-summary .op-nav-title { font-weight: 600; }
.stm-nav-item[open] > .stm-nav-summary .op-nav-title { color: var(--text-0); }
.stm-nav-item.is-current > .stm-nav-summary .op-nav-icon { background: var(--stm-grad) !important; color: var(--stm-on-acc) !important; border-color: transparent !important; }
.stm-nav-chevron { margin-left: auto; font-size: 20px; color: var(--text-2); transition: transform 0.2s ease; }
.stm-nav-item[open] > .stm-nav-summary .stm-nav-chevron { transform: rotate(180deg); }
.stm-nav-parts { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px 1.6rem; padding-left: 0.7rem; border-left: 1px solid var(--border-strong); }
.op-nav-link.stm-nav-part { padding: 0.38rem 0.65rem !important; gap: 0.6rem !important;
  border-radius: 10px !important; font-size: 0.86rem; color: var(--text-1) !important; font-weight: 500;
}
.stm-nav-part i { font-size: 18px; color: var(--text-2); }
.stm-nav-part:hover { background: var(--surface-2) !important; color: var(--text-0) !important; }
.op-nav-link.stm-nav-part.is-active { background: var(--primary-soft) !important; color: var(--text-0) !important; font-weight: 700; }
.stm-nav-part.is-active i { color: var(--primary); }
.op-nav-link.stm-nav-part.is-active::before { left: calc(-0.7rem - 2px); }
body.sidebar-collapsed .stm-nav-chevron,
html.op-sidebar-collapsed-preload .stm-nav-chevron { display: none !important; }
/* menu recolhido: o grupo aberto mostra só os ícones dos módulos */
body.sidebar-collapsed .stm-nav-parts,
html.op-sidebar-collapsed-preload .stm-nav-parts { margin: 2px 0 6px !important; padding: 0 !important; border: 0 !important; }
body.sidebar-collapsed .op-nav-link.stm-nav-part,
html.op-sidebar-collapsed-preload .op-nav-link.stm-nav-part { justify-content: center; padding-inline: 0 !important; }
body.sidebar-collapsed .stm-nav-part > span,
html.op-sidebar-collapsed-preload .stm-nav-part > span { display: none; }
body.sidebar-collapsed .op-nav-link.stm-nav-part.is-active::before { display: none; }
/* grupos */
.stm-nav > .stm-nav-item { margin-top: 0.15rem; }
.stm-nav-summary .op-nav-title { font-size: 0.95rem; }
.op-nav-link.stm-nav-part { min-height: 40px !important; font-size: 0.9rem; }
body.sidebar-collapsed .stm-nav-summary,
html.op-sidebar-collapsed-preload .stm-nav-summary { justify-content: center; padding-inline: 0.35rem; }
body.sidebar-collapsed .stm-nav-summary .op-nav-copy { display: none; }
/* cabeçalho das páginas: caminho, título da parte, descrição e abas das partes */
.stm-page-head { min-width: 0; }
.stm-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.stm-breadcrumb i { font-size: 16px; }
.stm-page-head h1 { display: flex; align-items: center; gap: 12px; margin: 0.45rem 0 0.3rem !important; font-size: clamp(1.35rem, 2.3vw, 1.85rem) !important; font-weight: 700 !important; line-height: 1.15; color: var(--text-0) !important; }
.stm-page-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--stm-grad); color: var(--stm-on-acc); box-shadow: 0 8px 20px var(--stm-glow); }
.stm-page-icon i { font-size: 22px; }
.stm-page-head > p { margin: 0 !important; max-width: 72ch; color: var(--text-1) !important; font-size: 0.95rem; }
.stm-part-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.stm-part-tabs::-webkit-scrollbar { display: none; }
.stm-part-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface-2);
  color: var(--text-1); text-decoration: none; font-weight: 600; font-size: 0.88rem; white-space: nowrap;
}
.stm-part-tab i { font-size: 18px; }
.stm-part-tab:hover { color: var(--text-0); border-color: var(--primary-border); }
.stm-part-tab.is-active { background: var(--stm-grad); border-color: transparent; color: var(--stm-on-acc); }
/* topo das telas antigas: título e números decorativos saíram, o cabeçalho novo diz o que é a página */
.op-module-hero,
.op-dns-hero-side,
.op-dns-hero-copy > .op-dns-eyebrow,
.op-dns-hero-copy > .op-dns-title,
.op-dns-hero-copy > .op-dns-text,
.op-dns-toolbar > div:not(.op-dns-actions) { display: none !important; }
.op-dns-hero { display: block !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; }
.op-dns-toolbar { display: flex !important; justify-content: flex-end !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; margin-bottom: 1rem !important; }
/* botões: um tamanho só no painel inteiro */
body.onepanel-shell {
  --stm-btn-h: 44px;
  --stm-btn-w: 200px;
}
body.onepanel-shell :is(.btn, .op-dns-add-button, .op-primary-cta, .op-app-save-button, .op-interface-save-button, .op-dns-modal-submit, .op-database-action-button, .op-mac-toolbar-button, .op-dns-action-button):not(.btn-close):not(.stm-btn-icon):not(.op-mac-server-tab):not(.op-mac-server-scope-button):not([hidden]) {
  box-sizing: border-box !important;
  height: var(--stm-btn-h) !important;
  min-height: var(--stm-btn-h) !important;
  min-width: var(--stm-btn-w) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 14px !important;
  font-family: "Quicksand", "Segoe UI", system-ui, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onepanel-shell :is(.btn, .op-dns-action-button) :is(.material-icons-round, .material-icons) { font-size: 20px !important; line-height: 1 !important; margin: 0 !important; }
body.onepanel-shell .stm-btn-icon:not([hidden]) {
  box-sizing: border-box !important;
  width: var(--stm-btn-h) !important;
  min-width: var(--stm-btn-h) !important;
  height: var(--stm-btn-h) !important;
  min-height: var(--stm-btn-h) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
}
body.onepanel-shell :is(.op-mac-server-tab, .op-mac-server-scope-button) { height: 40px !important; min-height: 40px !important; border-radius: 999px !important; margin: 0 !important; }
/* botões secundários (sem degradê): contorno discreto */
body.onepanel-shell :is(.btn, .op-dns-add-button, .op-dns-action-button, .op-database-action-button):not(.btn-success):not(.btn-primary-custom):not(.bg-gradient-secondary):not(.op-dns-add-button):not(.op-app-save-button):not(.op-interface-save-button):not(.op-dns-modal-submit):not(.btn-close):not(.is-delete):not(.btn-danger):not(.is-active) {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text-0) !important;
  box-shadow: none !important;
}
body.onepanel-shell :is(.is-delete, .btn-danger, .op-dns-delete-submit):is(.btn, .op-dns-action-button, .op-dns-modal-submit) {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.38) !important;
  color: #f87171 !important;
  box-shadow: none !important;
}
html:not([data-theme="dark"]) body.onepanel-shell :is(.is-delete, .btn-danger, .op-dns-delete-submit):is(.btn, .op-dns-action-button, .op-dns-modal-submit) { color: #b91c1c !important; }
body.onepanel-shell :is(.is-delete, .btn-danger, .op-dns-delete-submit) :is(.material-icons-round, svg) { color: inherit !important; }
/* filas de botões */
body.onepanel-shell :is(.op-dns-modal-actions, .op-dns-actions, .op-dns-hero-actions, .op-mac-toolbar-actions) { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: center; }
body.onepanel-shell :is(.op-mac-activation-row-actions, .op-dns-row-actions, .op-entity-row-actions) { display: inline-flex !important; flex-wrap: nowrap; gap: 6px !important; }
@media (max-width: 640px) {
  body.onepanel-shell :is(.op-dns-modal-actions, .op-dns-actions, .op-dns-hero-actions, .op-mac-toolbar-actions, .op-save-bar) > :is(.btn, button, form):not(.stm-btn-icon):not(.op-mac-font-menu) { flex: 1 1 100%; width: 100% !important; min-width: 0 !important; }
  body.onepanel-shell :is(.op-dns-modal-actions, .op-dns-actions, .op-dns-hero-actions, .op-mac-toolbar-actions, .op-save-bar) > form > .btn { width: 100% !important; }
  .stm-page-head h1 { font-size: 1.3rem !important; }
}
body.onepanel-shell .stm-part-tabs { scrollbar-width: none; }
body.onepanel-shell :is(.op-mac-toolbar-actions, .op-dns-toolbar .op-dns-actions) { flex-direction: row !important; justify-content: flex-end !important; width: auto !important; }
.op-dns-toolbar .op-dns-actions > [hidden] { display: none !important; }
body.onepanel-shell .stm-btn-icon > span:not(.material-icons-round) { display: none !important; }
/* ===== Etapa 4: conteúdo das páginas ===== */
/* rótulos laranja acima dos títulos: o cabeçalho da página já diz onde se está */
.op-shell-stage-content :is(.op-dns-section-kicker, .op-app-kicker, .op-dns-eyebrow, .op-interface-kicker):not(.modal *) { display: none !important; }
/* cada bloco é um cartão com título curto */
.op-shell-stage-content :is(.op-dns-section, .op-app-section, .op-interface-section):not([hidden]) {
  border-radius: 20px !important;
  padding: 20px !important;
  border: 1px solid var(--border-soft) !important;
  background: var(--surface-1) !important;
  box-shadow: var(--shadow-soft) !important;
  margin: 0 0 16px !important;
}
.op-shell-stage-content :is(.op-dns-section-head, .op-app-section-head, .op-interface-section-head):not(.modal *) {
  display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important;
  margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; background: none !important;
}
.op-shell-stage-content :is(.op-dns-section-head, .op-app-section-head, .op-interface-section-head) :is(h3, h4) {
  margin: 0 !important; font-size: 1.08rem !important; font-weight: 700 !important; color: var(--text-0) !important;
}
.op-shell-stage-content :is(.op-app-section-head, .op-interface-section-head) p { margin: 6px 0 0 !important; color: var(--text-1) !important; font-size: 0.9rem !important; max-width: 80ch; }
.op-shell-stage-content .op-dns-count { white-space: nowrap; }
/* campos */
body.onepanel-shell .op-shell-stage-content .op-dns-form-input:not(textarea) { min-height: 44px !important; }
.op-shell-stage-content .op-dns-form-field > label { font-size: 0.78rem !important; font-weight: 700 !important; color: var(--text-1) !important; margin-bottom: 6px !important; }
/* barra de filtros: uma linha só em telas largas */
.op-shell-stage-content .op-mac-filter-panel {
  padding: 14px 16px !important; margin: 0 0 16px !important; border-radius: 18px !important;
  background: var(--surface-2) !important; border: 1px solid var(--border-soft) !important; box-shadow: none !important;
}
.op-shell-stage-content .op-mac-filter-grid { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; align-items: flex-end !important; }
.op-shell-stage-content .op-mac-filter-grid > * { flex: 1 1 150px; min-width: 0; margin: 0 !important; }
.op-shell-stage-content .op-mac-filter-grid > .op-mac-filter-search { flex: 3 1 260px; }
.op-shell-stage-content .op-mac-filter-grid > :is(.op-mac-filter-page-size) { flex: 0 1 120px; }
.op-shell-stage-content .op-mac-filter-grid > :is(.op-mac-filter-action-slot, .op-entity-filter-actions, :last-child:has(button)) { flex: 0 0 auto; }
.op-shell-stage-content .op-mac-filter-panel label { font-size: 0.7rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2) !important; }
/* números do topo da lista */
.op-shell-stage-content .op-mac-reseller-snapshot { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; gap: 12px !important; margin: 0 0 16px !important; }
.op-shell-stage-content .op-mac-snapshot-item {
  display: grid !important; grid-template-columns: 40px 1fr !important; column-gap: 12px !important; row-gap: 2px !important; align-items: center !important;
  padding: 14px 16px !important; border-radius: 16px !important; background: var(--surface-2) !important; border: 1px solid var(--border-soft) !important; min-width: 0;
}
.op-shell-stage-content .op-mac-snapshot-item > i { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; display: flex !important; align-items: center; justify-content: center; background: var(--primary-soft) !important; color: var(--primary) !important; }
.op-shell-stage-content .op-mac-snapshot-item > strong { grid-column: 2; grid-row: 1; font-size: 1.35rem !important; line-height: 1.1; color: var(--text-0) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-shell-stage-content .op-mac-snapshot-item > span { grid-column: 2; grid-row: 2; font-size: 0.7rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2) !important; }
/* tabelas */
.op-shell-stage-content .op-dns-table thead th { font-size: 0.7rem !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; color: var(--text-2) !important; white-space: nowrap; }
.op-shell-stage-content .op-dns-table tbody tr:hover > td { background: color-mix(in srgb, var(--primary-soft) 40%, transparent) !important; }
/* lista vazia */
.op-shell-stage-content .op-dns-empty-state { border-radius: 16px !important; padding: 28px 20px !important; text-align: center; }
@media (max-width: 640px) {
  .op-shell-stage-content .op-mac-reseller-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .op-shell-stage-content :is(.op-mac-filter-actions, .op-entity-filter-actions) { flex-wrap: nowrap !important; }
}
/* filtros: ícones sempre lado a lado */
body.onepanel-shell .op-shell-stage-content :is(.op-mac-filter-actions, .op-entity-filter-actions) { flex-direction: row !important; flex-wrap: nowrap !important; justify-content: flex-start !important; }
/* telas menores que um monitor comum: o cabeçalho rola junto com a página, para não cobrir o conteúdo */
@media (max-width: 1279.98px) {
  body.onepanel-shell .op-shell-stage-topbar { position: static !important; }
}
/* a cor principal escolhida fica no <html>; os estilos antigos redefiniam parte dela no <body>
   (verde-azulado), então o corpo e tudo dentro dele herdam sempre a cor do <html> */
html body.onepanel-shell,
html body.onepanel-auth,
html[data-theme] body.theme-dark,
html[data-theme] body[data-theme] {
  --primary: inherit;
  --primary-hover: inherit;
  --primary-soft: inherit;
  --primary-border: inherit;
  --op-accent: inherit;
  --op-accent-strong: inherit;
  --op-accent-soft: inherit;
}
/* ===== Componentes comuns das melhorias dos módulos ===== */
.stm-inline-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-0); text-decoration: none; border-bottom: 1px dashed var(--primary-border); }
.stm-inline-link i { font-size: 16px; color: var(--primary); }
.stm-inline-link:hover { color: var(--primary); }
.stm-warning-text { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: var(--text-0) !important; }
.stm-warning-text i { color: #f59e0b; font-size: 20px; }
.stm-test-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.stm-test-list li { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.stm-test-list li i { grid-row: 1 / span 2; font-size: 22px; }
.stm-test-list li.is-online i { color: #22c55e; }
.stm-test-list li.is-offline i { color: #ef4444; }
.stm-test-list strong { color: var(--text-0); word-break: break-all; font-size: 0.9rem; }
.stm-test-list span { color: var(--text-1); font-size: 0.82rem; }
/* Config. Internas > Atualização: aparelhos por versão */
.stm-version-box { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.stm-version-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.stm-version-head strong { color: var(--text-0); }
.stm-version-head span { color: var(--text-1); font-size: 0.88rem; }
.stm-version-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stm-version-list li { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; gap: 12px; align-items: center; font-size: 0.88rem; color: var(--text-1); }
.stm-version-name { color: var(--text-0); font-weight: 600; }
.stm-version-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.stm-version-bar span { display: block; height: 100%; border-radius: 999px; background: var(--stm-grad); }
.stm-version-list li.is-behind .stm-version-bar span { background: #f59e0b; }
.stm-version-count { white-space: nowrap; }
/* Identidade visual: miniatura de cada imagem */
.stm-image-preview { margin-top: 8px; display: flex; align-items: center; gap: 10px; min-height: 0; }
.stm-image-preview img, .stm-image-preview video { max-width: 220px; max-height: 120px; border-radius: 10px; border: 1px solid var(--border-soft); background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0 / 16px 16px; object-fit: contain; }
.stm-image-preview span { font-size: 0.8rem; color: var(--text-2); }
.stm-image-preview span.is-error { color: #f87171; }
@media (max-width: 640px) {
  .stm-version-list li { grid-template-columns: 1fr auto; }
  .stm-version-bar { grid-column: 1 / -1; }
}
/* Tema e interface: escolher o tema clicando na imagem */
.op-interface-theme-gallery { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 0 !important; margin-top: 14px !important; }
.op-interface-theme-gallery .stm-theme-card { margin: 0 !important; cursor: pointer; background: var(--surface-2) !important; border: 2px solid var(--border-soft) !important; border-radius: 18px !important; transition: border-color 0.15s ease; }
.op-interface-theme-gallery .stm-theme-card:hover { border-color: var(--primary-border) !important; }
.op-interface-theme-gallery .stm-theme-card.is-selected { border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-soft) !important; }
.op-interface-theme-gallery .stm-theme-card h6 { color: var(--text-0) !important; display: flex; align-items: center; gap: 8px; }
.op-interface-theme-gallery .stm-theme-card p { color: var(--text-1) !important; }
.op-interface-theme-gallery .stm-theme-card img { border-radius: 12px; }
.stm-theme-chosen { display: none; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--stm-grad); color: var(--stm-on-acc); }
.stm-theme-card.is-selected .stm-theme-chosen { display: inline-block; }
.stm-muted { color: var(--text-2); font-size: 0.85rem; }
.stm-date { white-space: nowrap; color: var(--text-1); }
/* ===== Ações das tabelas: Editar à vista e o resto no menu "Mais" (todos os módulos) ===== */
.stm-row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; position: relative; }
.stm-row-menu { position: relative; }
.stm-row-menu > summary { list-style: none; cursor: pointer; }
.stm-row-menu > summary::-webkit-details-marker { display: none; }
.stm-row-menu-list {
  position: fixed; z-index: 1060; min-width: 260px; padding: 6px; border-radius: 14px;
  background: var(--surface-1); border: 1px solid var(--border-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: grid; gap: 2px;
}
.stm-menu-item {
  display: flex !important; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px !important;
  border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--text-0) !important;
  font: 600 0.88rem/1.2 "Quicksand", "Segoe UI", sans-serif !important; text-align: left; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important;
}
.stm-menu-item i { font-size: 20px; color: var(--text-1); }
.stm-menu-item:hover:not([disabled]) { background: var(--surface-2) !important; }
.stm-menu-item[disabled] { opacity: 0.45; cursor: not-allowed; }
.stm-menu-item.is-danger, .stm-menu-item.is-danger i { color: #f87171 !important; }
/* a lista aberta fica fora da tabela, então os estilos não podem depender da linha */
body > .stm-row-menu-list { display: grid; }
.stm-row-menu:not([open]) .stm-row-menu-list { display: none; }
/* paginação simples (listas grandes) */
.stm-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--text-1); font-size: 0.88rem; }
.stm-pagination-links { display: flex; gap: 10px; flex-wrap: wrap; }
/* Visão geral: bloco "Dia a dia" */
.op-overview-today {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  box-shadow: var(--shadow-soft);
}
.op-overview-today-head h4 { margin: 0; font-size: 1.05rem; color: var(--text-0); }
.op-overview-today-head p { margin: 0.2rem 0 0.9rem; color: var(--text-2); font-size: 0.86rem; }
.op-overview-today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}
.op-overview-today-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-1);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.op-overview-today-item:hover,
.op-overview-today-item:focus-visible { border-color: var(--primary-border); transform: translateY(-1px); text-decoration: none; }
.op-overview-today-item i { font-size: 1.3rem; color: var(--text-2); }
.op-overview-today-item strong { font-size: 1.6rem; line-height: 1.1; color: var(--text-0); }
.op-overview-today-item span { font-size: 0.84rem; }
.op-overview-today-item.is-good i { color: #1f9d55; }
.op-overview-today-item.is-warn { border-color: color-mix(in srgb, var(--primary) 30%, var(--border-soft)); }
.op-overview-today-item.is-warn i { color: var(--primary); }
/* Registro: filtros e tabela */
.stm-registro-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.stm-registro-filter-grid .op-dns-form-field { margin-bottom: 0; }
.stm-registro-filter-actions { display: flex; }
.stm-registro-table td { vertical-align: top; }
.stm-nowrap { white-space: nowrap; }
@media (max-width: 991px) {
  .stm-registro-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stm-registro-filter-grid > .op-dns-form-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .stm-registro-filter-grid { grid-template-columns: 1fr; }
}
/* Config. do painel > Login em duas etapas */
.stm-2fa .op-app-section-head { align-items: flex-start; }
.stm-2fa-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.stm-2fa-form .op-dns-form-field { margin-bottom: 0; min-width: 200px; }
.stm-2fa-steps { margin: 0 0 8px; padding-left: 1.2rem; color: var(--text-1); display: grid; gap: 6px; }
.stm-2fa-key { font-size: 1.05rem; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.stm-2fa-codes { display: grid; gap: 6px; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--primary-border); background: var(--primary-soft); }
.stm-2fa-codes ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.op-auth-help { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.82rem; }
/* Tabelas do painel com o jeito da tabela de Aparelhos (28/10/2026; assets/js/stm-tabelas.js
   marca as tabelas com stm-table): títulos à esquerda, etiquetas do mesmo tamanho, largura das
   colunas ajustável pela borda do título */
.stm-table thead th { text-align: left !important; position: relative; }
.stm-table thead th .op-mac-sort-link,
.stm-table thead th .op-entity-sort-link { justify-content: flex-start; }
.stm-table td.text-end { text-align: left !important; }
.stm-table td.text-end > .op-dns-actions,
.stm-table td.text-end > .stm-row-actions,
.stm-table td.text-end > div { justify-content: flex-start !important; }
table.stm-table tbody .op-dns-status-pill, body .stm-table tbody td .op-dns-status-pill {
  display: inline-flex !important; align-items: center; justify-content: center; width: auto !important;
  font-size: 0.72rem !important; font-weight: 700 !important; line-height: 1.25 !important;
  padding: 3px 10px !important; border-radius: 999px !important; min-width: 0 !important; white-space: nowrap;
}
.stm-col-resizer {
  position: absolute; top: 0; right: -4px; z-index: 3; width: 9px; height: 100%; cursor: col-resize;
}
.stm-col-resizer::after {
  content: ""; position: absolute; top: 22%; bottom: 22%; left: 4px; width: 2px; border-radius: 2px;
  background: var(--border-strong); transition: background 0.15s ease;
}
.stm-table thead th:hover .stm-col-resizer::after,
body.is-stm-col-resizing .stm-col-resizer::after { background: var(--primary); }
body.is-stm-col-resizing { cursor: col-resize; user-select: none; }
.stm-table.is-stm-sized { table-layout: fixed; }
.stm-table tbody .op-dns-cell:has(> .op-dns-status-pill) { align-items: flex-start !important; }
.stm-table tbody .op-dns-cell > .op-dns-status-pill { align-self: flex-start !important; }
.stm-table.is-stm-sized td, .stm-table.is-stm-sized th { overflow-wrap: anywhere; }
/* Categorias: mesmos títulos das outras tabelas */
.stm-table.op-category-title-table thead th {
  border-bottom: 1px solid color-mix(in srgb, var(--border-soft) 92%, transparent);
  color: color-mix(in srgb, var(--text-2) 92%, var(--text-1));
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.68rem 0.9rem; background: color-mix(in srgb, var(--surface-2) 65%, var(--surface-1));
  white-space: nowrap; vertical-align: middle !important;
}/* colunas de ações de qualquer tabela: título e botões à esquerda, como em Aparelhos */
html body table.stm-table.stm-table.stm-table.stm-table thead th,
html body table.stm-table.stm-table.stm-table.stm-table td[class*="actions"] { text-align: left !important; }
html body table.stm-table.stm-table td[class*="actions"] > div,
html body table.stm-table.stm-table td[class*="actions"] > span { justify-content: flex-start !important; margin-left: 0 !important; }
/* ===== Padrão do Contas MAC em todos os módulos (29/10/2026): filtros rápidos, seleção em lote e janela de origem e destino. Cópia das regras de modulos/contas-mac/estilo.css ===== */
/* filtros rápidos por situação */
.stm-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stm-filter-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px;
  border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface-1);
  color: var(--text-1); font: 600 0.85rem/1 "Quicksand", "Segoe UI", sans-serif; cursor: pointer;
}
.stm-filter-chip strong {
  min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--text-0); font-size: 0.78rem;
}
.stm-filter-chip:hover { border-color: var(--primary-border); color: var(--text-0); }
.stm-filter-chip.is-active { background: var(--stm-grad); border-color: transparent; color: var(--stm-on-acc); }
.stm-filter-chip.is-active strong { background: rgba(0, 0, 0, 0.18); color: inherit; }
/* códigos: busca e filtros */
.stm-code-filter { margin-bottom: 16px !important; }
.stm-code-filter .stm-filter-chips { margin-top: 12px; }
a.stm-filter-chip { text-decoration: none; }
.stm-inline-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-0); text-decoration: none; border-bottom: 1px dashed var(--primary-border); }
.stm-inline-link i { font-size: 16px; color: var(--primary); }
.stm-inline-link:hover { color: var(--primary); }
/* seleção de vários aparelhos */
.stm-select-col { width: 44px; text-align: center; }
.stm-select-col .form-check-input, .stm-card-select { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.op-mac-mobile-card-head { gap: 10px; }
.stm-bulk-bar {
  position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 16px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--primary-border);
  background: color-mix(in srgb, var(--surface-1) 88%, var(--primary)); box-shadow: var(--shadow-soft);
}
.stm-bulk-bar[hidden] { display: none !important; }
.stm-bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.onepanel-shell input.stm-check {
  -webkit-appearance: checkbox !important; appearance: auto !important;
  width: 20px !important; height: 20px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; accent-color: var(--primary); cursor: pointer; flex: 0 0 auto;
}
.stm-select-head { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
/* Mudar proprietário, versão 2 (29/10/2026): De → Para, filtros, tabela e resumo fixo */
.stm-transfer-modal .modal-dialog { max-width: 980px; }
.stm-transfer-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; margin: 6px 0 18px; }
.stm-transfer-side { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border-soft); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.stm-transfer-side.is-to { border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface-1)); }
.stm-transfer-side label { margin: 0; font-size: 0.78rem; color: var(--text-2); }
.stm-transfer-side .op-dns-form-input { margin: 0; }
.stm-transfer-side-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-1); }
.stm-transfer-side.is-to .stm-transfer-side-kicker { color: var(--primary); }
.stm-transfer-side-kicker .material-icons-round { font-size: 18px; }
.stm-transfer-arrow { display: grid; place-items: center; }
.stm-transfer-arrow .material-icons-round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #1a120c; font-size: 24px; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.stm-transfer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stm-transfer-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.stm-transfer-search .material-icons-round { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-2); pointer-events: none; }
.stm-transfer-search .op-dns-form-input { padding-left: 40px !important; margin: 0; }
.stm-transfer-table { border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.stm-transfer-row { display: grid; grid-template-columns: 44px minmax(120px, 0.9fr) minmax(0, 1.6fr) 120px 100px; align-items: center; gap: 10px; padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: background 0.12s ease; }
.stm-transfer-row:last-child { border-bottom: 0; }
.stm-transfer-row.is-head { cursor: default; background: color-mix(in srgb, var(--surface-2) 65%, var(--surface-1)); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-2); }
.stm-transfer-body { max-height: 330px; overflow-y: auto; }
.stm-transfer-body .stm-transfer-row:hover { background: color-mix(in srgb, var(--primary-soft) 40%, transparent); }
.stm-transfer-body .stm-transfer-row:has(.stm-check:checked) { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.stm-transfer-row[hidden] { display: none !important; }
.stm-transfer-row strong { color: var(--text-0); }
.stm-transfer-names { color: var(--text-1); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stm-transfer-row .op-dns-status-pill { font-size: 0.72rem !important; padding: 3px 10px !important; }
.stm-transfer-row .op-dns-status-pill.is-neutral { color: var(--text-1); background: transparent; border: 1px solid var(--border-strong); }
.stm-transfer-check { display: flex; align-items: center; justify-content: center; margin: 0; }
.stm-transfer-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; color: var(--text-2); }
.stm-transfer-empty[hidden] { display: none !important; }
.stm-transfer-empty .material-icons-round { font-size: 32px; opacity: 0.7; }
.stm-transfer-summary { position: sticky; bottom: -1px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--border-soft); background: color-mix(in srgb, var(--surface-1) 92%, transparent); backdrop-filter: blur(6px); }
.stm-transfer-summary.is-ready { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.stm-transfer-summary-text { display: grid; gap: 2px; }
.stm-transfer-summary-text strong { color: var(--text-0); }
.stm-transfer-summary-text span { color: var(--text-2); font-size: 0.82rem; }
.stm-transfer-summary-actions { display: flex; gap: 10px; }
.stm-transfer-summary-actions .op-dns-modal-submit[disabled] { opacity: 0.45; cursor: not-allowed; }
.stm-route-only { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); background: var(--primary-soft); color: var(--text-0); font-weight: 600; }
.stm-route-only[hidden] { display: none !important; }
@media (max-width: 720px) {
  .stm-transfer-route { grid-template-columns: 1fr; }
  .stm-transfer-arrow .material-icons-round { transform: rotate(90deg); width: 36px; height: 36px; }
  .stm-transfer-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .stm-transfer-row > :nth-child(3), .stm-transfer-row > :nth-child(5) { display: none; }
  .stm-transfer-summary { position: static; }
  .stm-transfer-summary-actions { width: 100%; flex-wrap: wrap; }
  .stm-transfer-summary-actions .btn { flex: 1 1 100%; min-width: 0 !important; }
  .stm-transfer-tools .stm-filter-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
.stm-transfer-tools .stm-filter-chip { white-space: nowrap; flex: 0 0 auto; }

/* Alterar rota (29/10/2026): mesmo layout do Mudar proprietário */
.stm-route-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.stm-route-owner label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-1); }
.stm-route-owner label .material-icons-round { font-size: 18px; }
.stm-route-owner .op-dns-form-input { flex: 1 1 260px; max-width: 420px; margin: 0; }
.stm-route-table .stm-transfer-row { grid-template-columns: 44px minmax(150px, 1fr) minmax(0, 1.4fr) 120px 100px; }
.stm-route-warning { display: flex; align-items: center; gap: 8px; margin: -8px 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--danger, #e5534b) 50%, transparent); background: color-mix(in srgb, var(--danger, #e5534b) 12%, transparent); color: var(--text-0); }
.stm-route-warning[hidden] { display: none !important; }
.stm-route-options { margin-top: 12px; border: 1px solid var(--border-soft); border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.stm-route-options > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--text-0); font-weight: 700; }
.stm-route-options > summary::-webkit-details-marker { display: none; }
.stm-route-options > summary small { margin-left: auto; color: var(--text-2); font-weight: 500; font-size: 0.8rem; text-align: right; }
.stm-route-options-caret { transition: transform 0.15s ease; color: var(--text-2); }
.stm-route-options[open] .stm-route-options-caret { transform: rotate(180deg); }
.stm-route-options-body { display: grid; gap: 10px; padding: 0 16px 14px; }
.stm-route-options-body .op-interface-portal-item > span { display: grid; gap: 2px; }
.stm-route-options-body .op-interface-portal-item small { color: var(--text-2); font-weight: 400; font-size: 0.78rem; }
@media (max-width: 720px) {
  .stm-route-table .stm-transfer-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .stm-route-options > summary small { display: none; }
}
.op-dns-table tbody tr:has(.stm-check:checked) td { background: var(--primary-soft) !important; }
.stm-entity-chips { margin: 0 0 14px; }
.op-dns-section-head .stm-entity-chips { margin: 0; }

/* Celular (30/10/2026): os botões das janelas ficam um embaixo do outro. A regra antiga juntava coluna
   invertida com quebra de linha e base de 100%, e os botões iam para o lado, para fora da janela. */
@media (max-width: 575.98px) {
  body.onepanel-shell .op-dns-modal-actions { flex-wrap: nowrap !important; }
  body.onepanel-shell .op-dns-modal-actions > .btn,
  body.onepanel-shell .op-dns-modal-actions > form { flex: 0 0 auto !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  body.onepanel-shell .op-dns-modal-actions > form > .btn { width: 100% !important; min-width: 0 !important; }
}
/* ===== Coluna de ações das tabelas: bloco único (30/10/2026) =====
   Substitui cinco blocos antigos que se corrigiam uns aos outros. Computador: coluna de 118 px,
   botões só com ícone (32 px, o texto fica para leitores de tela), alinhados à esquerda como os
   títulos. Celular (a tabela vira cartões): botões em duas colunas de 44 px de altura. */
body.op-core-redesign .op-dns-table th.op-table-actions-cell-head,
body.op-core-redesign .op-dns-table td.op-table-actions-cell {
  position: static !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  padding: 0.44rem 0.25rem !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-table-actions-center {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 36px !important;
  margin: 0 !important;
  line-height: 1 !important;
}
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-actions,
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-row-actions {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.22rem !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  margin: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-row-actions.is-readonly { line-height: 1 !important; }
body.op-core-redesign .op-dns-table td.op-table-actions-cell form { display: inline-flex !important; margin: 0 !important; }
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-action-button,
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-action-button.btn-sm {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  gap: 0 !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-action-button i.material-icons-round {
  display: block !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-action-button > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-use-only-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 2rem !important;
  height: auto !important;
  padding: 0.3rem 0.75rem !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
@media (max-width: 767.98px) {
  body.op-core-redesign .op-dns-table th.op-table-actions-cell-head,
  body.op-core-redesign .op-dns-table td.op-table-actions-cell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0.74rem 0 !important;
  }
  body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-table-actions-center { min-height: 0 !important; }
  body.op-core-redesign .op-dns-table td.op-table-actions-cell > .op-dns-actions,
  body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-row-actions.is-editable {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }
  body.op-core-redesign .op-dns-table td.op-table-actions-cell form,
  body.op-core-redesign .op-dns-table td.op-table-actions-cell form .op-dns-action-button { width: 100% !important; }
  body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-action-button,
  body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-action-button.btn-sm {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  body.op-core-redesign .op-dns-table td.op-table-actions-cell .op-dns-use-only-pill { grid-column: 1 / -1 !important; justify-self: start !important; }
}
/* Celular (30/10/2026): o tamanho igual dos botões (200 px) vale no computador; no celular os botões
   das barras de ação ocupam a linha inteira, um embaixo do outro, e nada passa da largura da tela */
@media (max-width: 575.98px) {
  body.onepanel-shell { --stm-btn-w: 0px; }
  /* uma coluna, sem quebra: coluna + quebra + base de 100% jogava os botões para o lado */
  body.onepanel-shell :is(.op-dns-hero-actions, .op-dns-toolbar, .op-save-bar, .stm-bulk-actions, .stm-head-actions) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100%;
  }
  body.onepanel-shell :is(.op-dns-hero-actions, .op-dns-toolbar, .op-save-bar, .stm-bulk-actions, .stm-head-actions) > :is(.btn, form, a.btn) {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* Celular (30/10/2026): tabelas marcadas com stm-cards-mobile (Categorias) viram cartões, com o nome
   de cada coluna em cima do valor, em vez de rolar para o lado */
@media (max-width: 767.98px) {
  body.onepanel-shell .table-responsive:has(> table.stm-cards-mobile) { overflow: visible !important; }
  body.onepanel-shell table.stm-cards-mobile,
  body.onepanel-shell table.stm-cards-mobile tbody,
  body.onepanel-shell table.stm-cards-mobile tr,
  body.onepanel-shell table.stm-cards-mobile td { display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; }
  body.onepanel-shell table.stm-cards-mobile thead { display: none !important; }
  body.onepanel-shell table.stm-cards-mobile tbody tr { margin: 0 0 10px; padding: 10px 14px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface-1); }
  body.onepanel-shell table.stm-cards-mobile tbody td { padding: 6px 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; }
  body.onepanel-shell table.stm-cards-mobile tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
  body.onepanel-shell table.stm-cards-mobile tbody td.text-end { padding-top: 10px !important; }
}
/* Tabelas largas no computador (30/10/2026): os textos longos quebram de linha em vez de empurrar a
   tabela para fora da área (Registro, Usuários, Aparelhos) */
body.onepanel-shell .stm-registro-table td { white-space: normal !important; overflow-wrap: anywhere; vertical-align: top; }
body.onepanel-shell .stm-registro-table td:first-child { white-space: nowrap !important; }
body.onepanel-shell .stm-registro-table td:nth-child(3) { min-width: 180px; }
body.onepanel-shell .stm-registro-table td:nth-child(5) { min-width: 220px; max-width: 420px; }
body.onepanel-shell .op-dns-table[data-entity-table="users"] td[data-entity-col="modules"] { white-space: normal !important; min-width: 160px; max-width: 220px; }
body.onepanel-shell .op-dns-table[data-entity-table="users"] td[data-entity-col="profile"] { white-space: normal !important; }
/* Aparelhos: a coluna de seleção só com a caixa (o texto fica para leitores de tela) */
body.onepanel-shell .stm-device-table .stm-select-col { width: 48px !important; }
body.onepanel-shell .stm-device-table .stm-select-head > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }body.onepanel-shell .stm-device-table.op-mac-table { min-width: 0 !important; }

/* Botões das linhas das tabelas sem depender de script (30/10/2026): a marcação stm-btn-icon vem de
   onepanel-ui.js; sem ela (tabela recém-trocada pelo filtro) o botão pegava os 200 px da regra geral,
   saía da célula e cobria a coluna de ações */
body.onepanel-shell .op-dns-table td.op-table-actions-cell :is(.btn, .op-dns-action-button):not(.btn-close):not(.stm-btn-icon):not(.op-mac-server-tab):not(.op-mac-server-scope-button):not([hidden]) {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 10px !important;
}
body.onepanel-shell td :is(.btn, .op-dns-action-button):has(.material-icons-round):not(.btn-close):not(.stm-btn-icon):not(.op-mac-server-tab):not(.op-mac-server-scope-button):not([hidden]):not(.op-table-actions-cell *) {
  width: var(--stm-btn-h) !important;
  min-width: var(--stm-btn-h) !important;
  padding: 0 !important;
}
body.onepanel-shell td :is(.btn, .op-dns-action-button):has(.material-icons-round) > span:not(.material-icons-round) { display: none !important; }
@media (max-width: 767.98px) {
  body.onepanel-shell .op-dns-table td.op-table-actions-cell :is(.btn, .op-dns-action-button):not(.btn-close):not(.stm-btn-icon):not(.op-mac-server-tab):not(.op-mac-server-scope-button):not([hidden]) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}
/* Mensagens e Anúncios: janela de destino (30/10/2026) */
.stm-dest-modal .modal-dialog { max-width: 760px; }
.stm-dest { display: grid; gap: 14px; }
.stm-dest-card { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--border-soft); background: color-mix(in srgb, var(--surface-2) 55%, var(--surface-1)); }
.stm-dest-title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-1); }
.stm-dest-title .material-icons-round { font-size: 18px; color: var(--primary); }
.stm-dest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stm-dest-grid .op-dns-form-field, .stm-dest-card .op-dns-form-field { margin: 0; }
.stm-dest-grid .op-dns-form-field[hidden] { display: none !important; }
.stm-dest-grid:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.stm-dest-label { margin: 0 0 -6px; font-size: 0.78rem; font-weight: 700; color: var(--text-2); }
.stm-dest-scopes { margin: 0; }
.stm-dest-scopes .stm-filter-chip { padding: 0 14px; }
.stm-dest-picker { display: grid; gap: 8px; }
.stm-dest-picker[hidden], .stm-dest-picker [hidden] { display: none !important; }
.stm-dest-picker .stm-transfer-search { max-width: none; flex: none; }
.stm-dest-list { display: grid; gap: 4px; max-height: 190px; overflow-y: auto; padding: 4px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-1); }
.stm-dest-item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-1); text-align: left; cursor: pointer; }
.stm-dest-item:hover, .stm-dest-item:focus-visible { background: var(--primary-soft); outline: none; }
.stm-dest-item strong { color: var(--text-0); font-size: 0.88rem; }
.stm-dest-item span { font-size: 0.8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stm-dest-empty { margin: 0; padding: 8px 10px; font-size: 0.8rem; color: var(--text-2); }
.stm-dest-chosen { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; border: 1px solid var(--primary-border); background: var(--primary-soft); color: var(--text-0); font-weight: 600; }
.stm-dest-chosen > .material-icons-round { font-size: 20px; color: var(--primary); }
.stm-dest-chosen span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.stm-dest-chosen button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-1); cursor: pointer; }
.stm-dest-chosen button .material-icons-round { font-size: 18px; }
.stm-dest-text { min-height: 112px !important; height: auto !important; resize: vertical; line-height: 1.5 !important; padding-top: 12px !important; }
.stm-dest-count { display: block; margin-top: 4px; text-align: right; font-size: 0.75rem; color: var(--text-2); }
.stm-dest-preview small { display: block; margin-bottom: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.stm-dest-preview-box { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border-left: 3px solid var(--primary); background: var(--surface-1); color: var(--text-1); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.stm-dest-preview-box strong { color: var(--text-0); }
.stm-dest-summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--text-1); font-size: 0.85rem; }
.stm-dest-summary .material-icons-round { font-size: 18px; color: var(--text-2); }
.stm-dest-summary.is-ready { border-style: solid; border-color: var(--primary-border); color: var(--text-0); }
.stm-dest-summary.is-ready .material-icons-round { color: var(--primary); }
.stm-dest-summary[hidden] { display: none !important; }
@media (max-width: 640px) {
  .stm-dest-grid { grid-template-columns: minmax(0, 1fr); }
  .stm-dest-scopes .stm-filter-chip { flex: 1 1 100%; justify-content: center; }
}