/* public/assets/css/app.css */

:root {
  --aiti-bg: #f4f8ff;
  --aiti-text: #0f172a;
  --aiti-muted: rgba(15, 23, 42, 0.72);
  --aiti-card: rgba(255, 255, 255, 0.74);
  --bg-grs: rgba(0, 0, 0, 0.08);
  --aiti-mark-bg: rgba(255, 255, 255, 0.25);
  --aiti-mark-border: rgba(255, 255, 255, 0.25);
  --aiti-input-border: rgba(148, 163, 184, 0.4);
  --aiti-input-shadow: rgba(2, 6, 23, 0.14);
  --aiti-input-focus-border: rgba(14, 116, 144, 0.45);
  --aiti-input-focus-shadow: rgba(2, 6, 23, 0.2);
  --aiti-btn-shadow: rgba(0, 0, 0, 0.18);
  --brand-logo-fill: rgba(255, 255, 255, 0.25);
  --brand-logo-stroke: rgba(255, 255, 255, 0.55);
  --theme-toggle-border: rgba(148, 163, 184, 0.35);
  --theme-toggle-hover-bg: rgba(148, 163, 184, 0.18);
  --aiti-radius: 999px;
}

[data-theme="dark"] {
  --aiti-bg: #212121;
  --aiti-text: #ececec;
  --aiti-muted: rgba(236, 236, 236, 0.68);
  --aiti-card: rgba(47, 47, 47, 0.94);
  --bg-grs: rgba(255, 255, 255, 0.035);
  --rt-dark-bg: #212121;
  --rt-dark-surface: rgba(47, 47, 47, 0.94);
  --rt-dark-surface-solid: #2f2f2f;
  --rt-dark-surface-muted: #262626;
  --rt-dark-text: #ececec;
  --rt-dark-muted: #b4b4b4;
  --rt-dark-border: rgba(255, 255, 255, 0.12);
  --rt-dark-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --rt-dark-shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.22);
  --rt-dark-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --aiti-mark-bg: rgba(148, 163, 184, 0.18);
  --aiti-mark-border: rgba(148, 163, 184, 0.26);
  --aiti-input-border: rgba(148, 163, 184, 0.32);
  --aiti-input-shadow: rgba(2, 6, 23, 0.34);
  --aiti-input-focus-border: rgba(56, 189, 248, 0.52);
  --aiti-input-focus-shadow: rgba(2, 6, 23, 0.45);
  --aiti-btn-shadow: rgba(2, 6, 23, 0.38);
  --brand-logo-fill: rgba(148, 163, 184, 0.2);
  --brand-logo-stroke: rgba(148, 163, 184, 0.44);
  --theme-toggle-border: rgba(148, 163, 184, 0.38);
  --theme-toggle-hover-bg: rgba(148, 163, 184, 0.26);
}

/* Full hero page */
.aiti-hero-page {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  color: var(--aiti-text);
}

/* Background grid */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--aiti-bg);
  background-image: none;
  color: var(--aiti-text);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--aiti-bg);
  background-image:
    linear-gradient(var(--bg-grs) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grs) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  background-repeat: repeat;
}

.aiti-hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon mark */
.aiti-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--aiti-mark-bg);
  backdrop-filter: blur(6px);
  border: 1px solid var(--aiti-mark-border);
}

.aiti-mark i {
  font-size: 18px;
  line-height: 1;
  color: var(--aiti-text);
}

/* Title */
.fw-black {
  font-weight: 900;
}

.aiti-title {
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* Subtitle */
.aiti-subtitle {
  max-width: 520px;
  font-size: 1rem;
  color: var(--aiti-muted);
}

/* Section label */
.aiti-section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--aiti-text);
}

/* Form container */
.aiti-form {
  max-width: 620px;
  width: 100%;
}

.aiti-contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.aiti-contact-row .rt-form-group {
  flex: 1 1 auto;
  margin: 0;
}

.aiti-contact-row .rt-form-input {
  min-height: 54px;
}

/* Pill input & button */
.aiti-input {
  border-radius: var(--aiti-radius);
  border: 1px solid var(--aiti-input-border);
  background: var(--aiti-card);
  color: var(--aiti-text);
  box-shadow: 0 10px 30px var(--aiti-input-shadow);
  padding-left: 22px;
}

.aiti-input:focus {
  border-color: var(--aiti-input-focus-border);
  box-shadow: 0 10px 30px var(--aiti-input-focus-shadow);
}

.aiti-btn {
  border-radius: var(--aiti-radius);
  padding-inline: 34px;
  box-shadow: 0 12px 30px var(--aiti-btn-shadow);
  border: 0;
}

/* Small hint */
.aiti-hint {
  font-size: 0.9rem;
  color: var(--aiti-muted);
}

/* Brand mark SVG */
.brand-logo-bg {
  fill: var(--brand-logo-fill);
  stroke: var(--brand-logo-stroke);
  stroke-width: 3;
}

.brand-logo-text {
  fill: var(--aiti-text);
}

.theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1050;
  width: 42px;
  height: 42px;
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  background: var(--aiti-card);
  color: var(--aiti-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.theme-toggle:hover {
  background: var(--theme-toggle-hover-bg);
}

.theme-toggle:focus-visible,
.aiti-btn:focus-visible,
.aiti-input:focus-visible {
  outline: 3px solid var(--aiti-input-focus-border);
  outline-offset: 3px;
}

.aiti-runtime-error-trigger-button {
  background: #b91c1c;
  color: #fff;
}

.aiti-runtime-error-panel {
  color-scheme: dark;
}

[data-theme="light"] .aiti-runtime-error-panel {
  --aiti-error-panel-bg: #fffaf2 !important;
  --aiti-error-panel-text: #201a14 !important;
  --aiti-error-panel-border: #e3d5c5 !important;
  --aiti-error-panel-button-bg: #f1e8dc !important;
  color-scheme: light;
}

[data-theme="dark"] .aiti-runtime-error-panel {
  --aiti-error-panel-bg: #111827 !important;
  --aiti-error-panel-text: #f9fafb !important;
  --aiti-error-panel-border: #374151 !important;
  --aiti-error-panel-button-bg: #1f2937 !important;
  color-scheme: dark;
}

.aiti-runtime-error-panel button:focus-visible,
.aiti-runtime-error-trigger-button:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: inline-block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .aiti-hero {
    padding-top: 2.8rem;
    padding-bottom: 1.6rem;
  }

  .aiti-title {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .aiti-subtitle {
    font-size: 0.98rem;
  }

  .aiti-contact-row {
    flex-direction: column;
  }

  .aiti-input,
  .aiti-btn {
    min-height: 54px;
  }
}


.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: linear-gradient(135deg, #f4f8ff, #effaf4); }
.auth-card { width: min(100%, 460px); padding: 34px; border: 1px solid #e8edf5; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(13,49,102,.1); }
.auth-brand { display: flex; align-items: center; gap: 11px; color: #1137b0; font-weight: 800; font-size: 17px; margin-bottom: 34px; }
.auth-brand .brand-mark { width: 38px; height: 38px; border: 3px solid #17b75a; border-radius: 5px; position: relative; background: #fff; flex: 0 0 auto; }
.auth-brand .brand-mark::before, .auth-brand .brand-mark::after { content: ""; position: absolute; bottom: 6px; background: #0b46ca; border-radius: 2px 2px 0 0; }
.auth-brand .brand-mark::before { left: 8px; width: 7px; height: 17px; }
.auth-brand .brand-mark::after { right: 7px; width: 7px; height: 24px; }
.auth-brand .brand-mark span { position: absolute; left: 13px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #17b75a; }
.auth-header h1 { margin: 0 0 8px; color: var(--navy); font-size: 30px; }
.auth-header p { color: #647595; margin: 0 0 22px; }
.auth-eyebrow { color: var(--green) !important; font-size: 12px; font-weight: 900; letter-spacing: .12em; margin-bottom: 8px !important; }
.auth-alert { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #fecaca; border-radius: 9px; background: #fff1f2; color: #b42318; font-size: 14px; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { color: var(--navy); font-size: 14px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 48px; margin-bottom: 8px; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px; color: var(--navy); background: #fff; }
.auth-form input:focus { outline: 3px solid rgba(11,70,202,.14); border-color: var(--blue); }
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }

html:has(.rt-login), html:has(.rt-login) body { width: 100%; height: 100%; overflow: hidden; }
.rt-login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 40px); overflow: hidden; isolation: isolate; background: radial-gradient(circle at 12% 18%, rgba(var(--rt-primary-rgb), .18), transparent 36rem), radial-gradient(circle at 88% 12%, rgba(0,184,255,.14), transparent 30rem), radial-gradient(circle at 82% 88%, rgba(255,122,89,.12), transparent 32rem), var(--rt-bg); }
.rt-login-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: rtFloat 14s ease-in-out infinite; }
.rt-login-shape--1 { width: 320px; height: 320px; background: rgba(var(--rt-primary-rgb), .22); top: -80px; left: -80px; }
.rt-login-shape--2 { width: 260px; height: 260px; background: rgba(0,184,255,.18); right: -60px; bottom: -60px; animation-delay: -5s; }
.rt-login-shape--3 { width: 200px; height: 200px; background: rgba(255,122,89,.16); top: 30%; right: 10%; animation-delay: -9s; }
html[data-theme="dark"] .rt-login { background: #212121; }
html[data-theme="dark"] .rt-login-shape { display: none; }
@keyframes rtFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px,20px) scale(.95); } }
.rt-login-card { position: relative; width: 100%; max-width: 456px; padding: 38px 36px 28px; border: 1px solid var(--rt-border); background: var(--rt-surface); backdrop-filter: blur(24px) saturate(180%); z-index: 2; box-shadow: none; }
html[data-radius="flat"] .rt-login-settings-toggle { border-radius: 0; }
html[data-radius="rounded"] .rt-login-card, html[data-radius="rounded"] .rt-field-input, html[data-radius="rounded"] .rt-login-submit, html[data-radius="rounded"] .rt-login-theme, html[data-radius="rounded"] .rt-login-radius, html[data-radius="rounded"] .rt-login-settings-toggle { border-radius: 1rem; }
.rt-login-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--rt-text); font-weight: 950; letter-spacing: -.05em; font-size: 1.12rem; }
.rt-brand-dot { width: 16px; height: 16px; background: linear-gradient(135deg, var(--rt-primary), var(--rt-primary-2)); }
.rt-login-title { font-size: 1.75rem; font-weight: 950; letter-spacing: -.045em; line-height: 1.15; margin: 0 0 8px; }
.rt-login-subtitle { margin: 0 0 24px; color: var(--rt-muted); font-size: .92rem; line-height: 1.6; }
.rt-login-form { display: grid; gap: 16px; }
.rt-field { display: grid; gap: 6px; }
.rt-field-label { font-size: .82rem; font-weight: 800; color: var(--rt-text); }
.rt-field-input-wrap { position: relative; }
.rt-field-input { width: 100%; height: 46px; padding: 0 42px; border: 1px solid var(--rt-border); background: var(--rt-surface-solid); color: var(--rt-text); outline: none; font-size: .9rem; font-weight: 600; }
.rt-field-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--rt-muted); }
.rt-field-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: inline-grid; place-items: center; background: transparent; border: 0; color: var(--rt-muted); cursor: pointer; }
.rt-field-toggle .eye-closed { display: none; }
.rt-login-submit { width: 100%; min-height: 48px; margin-top: 4px; font-size: .92rem; font-weight: 900; }
.rt-login-settings { position: absolute; top: 16px; right: 16px; z-index: 5; }
.rt-login-settings-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rt-border); border-radius: var(--rt-radius-sm); color: var(--rt-text); background: var(--rt-surface-solid); cursor: pointer; }
.rt-login-settings .rt-dropdown-menu { min-width: 190px; }
.rt-login-settings-menu { position: absolute; top: 44px; right: 0; width: 150px; padding: 8px; display: grid; gap: 3px; border: 1px solid var(--rt-border); border-radius: var(--rt-radius-sm); background: var(--rt-surface-solid); box-shadow: var(--rt-shadow-sm); }
.rt-login-settings-menu[hidden] { display: none; }
.rt-login-settings-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 7px; color: var(--rt-text); background: transparent; cursor: pointer; text-align: left; font-size: .8rem; font-weight: 700; }
.rt-login-settings-menu button:hover { background: rgba(var(--rt-primary-rgb), .1); }
.rt-login-settings-label { margin: 5px 8px 2px; color: var(--rt-muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.rt-login-remember { display: inline-flex; align-items: center; gap: 9px; color: var(--rt-muted); font-size: .82rem; font-weight: 700; cursor: pointer; }
.rt-login-remember input { position: absolute; opacity: 0; pointer-events: none; }
.rt-login-check { width: 18px; height: 18px; display: inline-grid; place-items: center; border: 1px solid var(--rt-border); border-radius: 4px; background: var(--rt-surface-solid); }
.rt-login-remember input:checked + .rt-login-check { background: var(--rt-primary); border-color: var(--rt-primary); }
.rt-login-remember input:checked + .rt-login-check::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; }
.rt-alert-danger { margin-bottom: 16px; padding: 10px 12px; border: 1px solid rgba(var(--rt-danger-rgb), .35); color: var(--rt-danger); background: rgba(var(--rt-danger-rgb), .08); font-size: .86rem; }
.rt-login-footer { margin: 22px 0 0; text-align: center; color: var(--rt-muted); font-size: .75rem; }
.rt-toast { z-index: 1000; }
.rt-toast { align-items: center; }
.rt-toast-content { display: grid; align-self: center; gap: 1px; min-width: 0; line-height: 1.25; }
.rt-toast-title, .rt-toast-text { display: block; line-height: 1.25; }
html[data-radius="rounded"] .rt-toast { border-radius: var(--rt-radius-md); }
html[data-radius="rounded"] .rt-toast-icon, html[data-radius="rounded"] .rt-toast-close { border-radius: 1rem; }
html[data-radius="flat"] .rt-toast, html[data-radius="flat"] .rt-toast-icon, html[data-radius="flat"] .rt-toast-close { border-radius: 0; }
@media (max-width: 480px) { .rt-login-card { padding: 26px 18px 22px; } .rt-login-title { font-size: 1.5rem; } }
/* Admin shell: soft modern canvas layered under the Retro-term components. */
.admin-page { background: var(--rt-bg) !important; }
.admin-page::before, body:has(.rt-admin)::before {
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--rt-primary-rgb), .12), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(0, 184, 255, .10), transparent 30rem),
    radial-gradient(circle at 70% 96%, rgba(255, 122, 89, .08), transparent 34rem),
    linear-gradient(135deg, var(--rt-bg), rgba(var(--rt-primary-rgb), .035));
}
.admin-page::after, body:has(.rt-admin)::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%); }
html[data-theme="dark"] .admin-page::before, html[data-theme="dark"] body:has(.rt-admin)::before { background: #212121 !important; }
html[data-theme="dark"] .admin-page::after, html[data-theme="dark"] body:has(.rt-admin)::after { background: linear-gradient(135deg, rgba(255,255,255,.018), transparent 42%); }
.rt-admin { background: transparent; }
.rt-admin .rt-sbr { overflow: visible; display:flex; flex-direction:column; height:100vh; }
.rt-admin .rt-sbr-nav { flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:rgba(var(--rt-primary-rgb), .35) transparent; }
.rt-admin .rt-sbr-nav::-webkit-scrollbar { width:6px; }
.rt-admin .rt-sbr-nav::-webkit-scrollbar-track { background:transparent; }
.rt-admin .rt-sbr-nav::-webkit-scrollbar-thumb { background:rgba(var(--rt-primary-rgb), .35); border-radius:999px; }
.rt-admin .rt-sbr-footer { flex:0 0 auto; }
.rt-modal-close { display:inline-grid !important; place-items:center; width:36px; height:36px; padding:0 !important; border-radius:50% !important; }
.rt-admin .rt-analytics-tables { grid-template-columns:1fr; }
.rt-admin .rt-analytics-stat { position:relative; overflow:hidden; padding:22px; text-align:left; }
.rt-admin .rt-analytics-stat .rt-stat-label { display:flex; align-items:center; gap:8px; width:100%; min-width:0; overflow:visible; white-space:normal; text-overflow:clip; line-height:1.35; }
.rt-admin .rt-analytics-stat .rt-stat-label .rt { color:var(--rt-primary); }
.rt-admin .rt-analytics-stat .rt-stat-value { display:block; margin-top:12px; line-height:1; }
.rt-admin .rt-analytics-stat .rt-stat-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:#fff; }
.rt-admin .rt-analytics-stat .rt-stat-icon .rt { width:18px; height:18px; }
.rt-admin .rt-analytics-stat .rt-stat-icon--views { background:#6366f1; }
.rt-admin .rt-analytics-stat .rt-stat-icon--visitors { background:#0891b2; }
.rt-admin .rt-analytics-stat .rt-stat-icon--search { background:#2563eb; }
.rt-admin .rt-analytics-stat .rt-stat-icon--seo { background:#d97706; }
.rt-admin .rt-analytics-stat .rt-stat-label { align-self:center; }
.rt-admin .rt-analytics-stat .rt-stat-value { align-self:center; margin-top:0; text-align:right; }
.rt-admin .rt-analytics-stat::after { content:""; position:absolute; right:-24px; bottom:-32px; width:110px; height:110px; border:18px solid rgba(var(--rt-primary-rgb), .08); border-radius:50%; }
.rt-analytics-retention-note { display:flex; align-items:flex-start; gap:8px; margin:18px 0 0; color:var(--rt-muted); font-size:.72rem; line-height:1.55; }
.rt-analytics-retention-note .rt { flex:0 0 auto; margin-top:2px; color:var(--rt-primary); }
.rt-analytics-retention-note strong { color:var(--rt-text); }
.rt-analytics-retention-note code { padding:0 .25em; font-size:.95em; }
.rt-analytics-purge-form { display:flex; flex:0 0 auto; align-items:center; margin:0; }
.rt-analytics-purge-form .rt-btn { width:auto; white-space:nowrap; }
#analyticsPurgeModal .rt-modal-footer { align-items:center; }
.rt-admin .rt-topbar-search.rt-anishow { border-radius: var(--rt-radius); }
.rt-admin * { box-shadow: none !important; }
html[data-theme="dark"] .rt-admin .rt-topbar-menu-tbl {
  background: var(--rt-surface-solid);
  color: var(--rt-text);
}
.rt-admin-breadcrumb { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:-8px 0 24px; color:var(--rt-muted); font-size:.75rem; font-weight:700; }
.rt-admin-breadcrumb a { color:var(--rt-primary); }
.rt-admin-breadcrumb strong { color:var(--rt-text); }
.rt-frontpage-preview .rt-card-body { padding:0; overflow:auto; }
.rt-admin-frontpage-editor .rt-frontpage-preview { margin-top:0; }
.rt-admin-frontpage-editor .rt-frontpage-iframe { height:calc(100vh - 176px); min-height:720px; }
.rt-frontpage-iframe { display:block; width:100%; height:calc(100vh - 250px); min-height:680px; border:0; background:var(--rt-surface); }
.rt-frontpage-tabs { display:flex; gap:4px; overflow-x:auto; padding:0.5rem; border-bottom:1px solid var(--rt-border); scrollbar-width:thin; }
.rt-frontpage-tab { flex:0 0 auto; padding:8px 12px; border:1px solid transparent; border-radius:var(--rt-radius-sm); color:var(--rt-muted); background:transparent; box-shadow:none !important; cursor:pointer; font-size:.75rem; font-weight:800; white-space:nowrap; }
.rt-frontpage-tab:hover, .rt-frontpage-tab.is-active { color:var(--rt-primary); border-color:rgba(var(--rt-primary-rgb), .25); background:rgba(var(--rt-primary-rgb), .08); }
.frontpage-tab-hidden { display:none !important; }
.frontpage-dampak-only .adv-col:first-child, .frontpage-dampak-only .benefit-visual { display:none !important; }
html:has(body.frontpage-editor-page) { height:auto !important; min-height:100%; overflow-y:scroll !important; overflow-x:hidden !important; }
body.frontpage-editor-page { height:auto !important; min-height:100vh; overflow-y:scroll !important; overflow-x:hidden !important; }
body.frontpage-editor-page .company-home { display:block; height:auto !important; min-height:100vh; overflow:visible !important; }
body.frontpage-editor-page .site-header { position:static !important; top:auto !important; }
.brand-logo { display:block; width:38px; height:38px; object-fit:contain; border-radius:5px; }
.rt-login-brand-logo { display:block; width:38px; height:38px; object-fit:contain; border-radius:5px; }
.rt-admin .rt-sbr-brand-logo { display:block; width:32px; height:32px; flex:0 0 auto; object-fit:contain; border-radius:5px; }
.rt-admin .rt-sbr-brand { min-width:0; }
.rt-admin .rt-sbr-brand,
.rt-admin .rt-sbr-brand:hover,
.rt-admin .rt-sbr-brand:active,
.rt-admin .rt-sbr-brand:focus,
.rt-admin .rt-sbr-brand:focus-visible { cursor:default; transition:none !important; transform:none !important; box-shadow:none !important; }
.rt-admin .rt-sbr-brand-text { min-width:0; max-width:100%; flex:1 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:24px; }
.frontpage-editor-active [data-front-key] { outline:1px dashed rgba(var(--rt-primary-rgb), .55); outline-offset:4px; cursor:pointer; transition:outline-color .15s ease, background-color .15s ease; }
.frontpage-editor-active [data-front-key]:hover { outline-color:var(--rt-primary); background:rgba(var(--rt-primary-rgb), .06); }
.frontpage-editor-active .front-editing-active { outline:2px solid var(--rt-primary); background:rgba(var(--rt-primary-rgb), .08); cursor:text; }
.frontpage-editor-active .brand[data-front-settings] { cursor:not-allowed; }
.front-image-edit-wrap { position:relative; display:inline-block; max-width:100%; }
.front-image-edit-button { position:absolute; top:10px; right:10px; z-index:3; width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.75); border-radius:50%; color:#fff; background:var(--rt-primary); box-shadow:0 5px 18px rgba(0,0,0,.2); cursor:pointer; opacity:0; transform:scale(.9); transition:opacity .15s ease, transform .15s ease; }
.front-image-edit-wrap:hover .front-image-edit-button, .front-image-edit-button:focus { opacity:1; transform:scale(1); }
.front-editor-panel { position:fixed; left:12px; top:12px; z-index:10001; width:min(360px, calc(100vw - 24px)); display:none; gap:10px; padding:16px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-md); color:var(--rt-text); background:var(--rt-surface-solid); box-shadow:none !important; }
.front-editor-panel.is-open { display:grid; }
.front-editor-panel label { display:grid; gap:5px; color:var(--rt-muted); font-size:.75rem; font-weight:800; }
.front-editor-panel input { width:100%; padding:9px 10px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); color:var(--rt-text); background:var(--rt-surface); }
.front-editor-panel > div { display:flex; justify-content:flex-end; gap:8px; }
.front-editor-panel button { padding:8px 12px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); color:var(--rt-text); background:transparent; cursor:pointer; }
.front-editor-panel [data-save] { color:#fff; border-color:var(--rt-primary); background:var(--rt-primary); }
html[data-radius="flat"] .rt-frontpage-tab, html[data-radius="flat"] .front-editor-panel { border-radius:0 !important; }
html[data-radius="rounded"] .rt-frontpage-tab { border-radius:var(--rt-radius-sm); }
html[data-radius="rounded"] .front-editor-panel { border-radius:var(--rt-radius-md); }
.front-icon-modal { position:fixed; inset:0; z-index:10000; display:none; place-items:center; padding:20px; background:rgba(15,23,42,.5); backdrop-filter:blur(8px); }
.front-icon-modal.is-open { display:grid; }
body:has(.front-icon-modal.is-open) .company-home { visibility:hidden; }
.front-icon-dialog { width:min(760px, 100%); max-height:min(720px, 90vh); overflow:hidden; display:grid; grid-template-rows:auto auto 1fr; gap:12px; padding:18px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-md); color:var(--rt-text); background:var(--rt-surface-solid); box-shadow:var(--rt-shadow); }
.front-icon-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.front-icon-header button { width:32px; height:32px; border:1px solid var(--rt-border); border-radius:50%; color:var(--rt-text); background:transparent; cursor:pointer; font-size:1.2rem; }
.front-icon-dialog > input { width:100%; padding:10px 12px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); color:var(--rt-text); background:var(--rt-surface); }
.front-icon-grid { min-height:0; max-height:min(calc(5 * 76px + 4 * 8px + 4px), 70vh); overflow-y:auto; overflow-x:hidden; display:grid; grid-auto-rows:76px; grid-template-columns:repeat(auto-fill, minmax(92px, 1fr)); gap:8px; padding:2px; scrollbar-width:thin; }
.front-icon-grid button { min-height:76px; display:grid; place-items:center; gap:5px; padding:9px 5px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); color:var(--rt-text); background:var(--rt-surface); cursor:pointer; }
.front-icon-grid button:hover { color:#fff; border-color:var(--rt-primary); background:var(--rt-primary); }
.front-icon-grid .rt { width:24px; height:24px; }
.front-icon-grid small { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.62rem; }
@media (max-width: 720px) { .rt-frontpage-iframe { height:calc(100vh - 220px); min-height:560px; } }
@media (max-width: 1024px) { .rt-admin-frontpage-editor .rt-frontpage-iframe { height:calc(100vh - 170px); min-height:600px; } }
/* Match the tiny scrollbar used by Retro-term navigation on the admin page. */
html:has(.rt-admin), body:has(.rt-admin) {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--rt-primary-rgb), .35) rgba(0, 0, 0, 0);
}
html:has(.rt-admin)::-webkit-scrollbar, body:has(.rt-admin)::-webkit-scrollbar { width: 10px; height: 10px; }
html:has(.rt-admin)::-webkit-scrollbar-track, body:has(.rt-admin)::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0); }
html:has(.rt-admin)::-webkit-scrollbar-thumb, body:has(.rt-admin)::-webkit-scrollbar-thumb { background: rgba(var(--rt-primary-rgb), .35); border: 2px solid rgba(0, 0, 0, 0); background-clip: padding-box; border-radius: 999px; }
html:has(.rt-admin)::-webkit-scrollbar-thumb:hover, body:has(.rt-admin)::-webkit-scrollbar-thumb:hover { background: rgba(var(--rt-primary-rgb), .5); border: 2px solid rgba(0, 0, 0, 0); background-clip: padding-box; }
html:has(.rt-admin)::-webkit-scrollbar-button, body:has(.rt-admin)::-webkit-scrollbar-button,
html:has(.rt-admin)::-webkit-scrollbar-corner, body:has(.rt-admin)::-webkit-scrollbar-corner { display: none; width: 0; height: 0; background: rgba(0, 0, 0, 0); }
/* Radius is intentionally limited to component surfaces. Borders, separators,
 * icon wrappers, separators, and inner decorative elements keep their native geometry. */
html[data-radius="flat"] .rt-admin .rt-card,
html[data-radius="flat"] .rt-admin [class*="-card"]:not([class*="-card-"]),
html[data-radius="flat"] .rt-admin .rt-btn,
html[data-radius="flat"] .rt-admin .rt-badge,
html[data-radius="flat"] .rt-admin .rt-sbr-badge,
html[data-radius="flat"] .rt-admin .rt-topbar-search,
html[data-radius="flat"] .rt-admin .rt-table-search,
html[data-radius="flat"] .rt-admin [class*="-tbl"]:not([class*="-tbl-"]),
html[data-radius="flat"] .rt-admin [class*="-tbl-"],
html[data-radius="flat"] .rt-admin [class*="-input"]:not([class*="-input-wrap"]),
html[data-radius="flat"] .rt-admin [class*="-avatar"]:not([class*="-avatar-"]),
html[data-radius="flat"] .rt-admin [class*="-user"]:not([class*="-user-"]),
html[data-radius="flat"] .rt-admin .rt-sbr-link,
html[data-radius="flat"] .rt-admin .rt-sbr-link:hover,
html[data-radius="flat"] .rt-admin .rt-sbr-link:active,
html[data-radius="flat"] .rt-admin .rt-sbr-link:focus,
html[data-radius="flat"] .rt-admin .rt-sbr-link:focus-visible,
html[data-radius="flat"] .rt-admin .rt-stat-icon,
html[data-radius="flat"] .rt-admin .rt-sbr-avatar,
html[data-radius="flat"] .rt-admin .rt-brand-dot,
html[data-radius="flat"] .rt-admin .rt-activity-icon,
html[data-radius="flat"] .rt-admin .rt-sbr-brand,
/* html[data-radius="flat"] .rt-admin .rt-sbr-brand:hover,
html[data-radius="flat"] .rt-admin .rt-sbr-brand:active,
html[data-radius="flat"] .rt-admin .rt-sbr-brand:focus,
html[data-radius="flat"] .rt-admin .rt-sbr-brand:focus-visible, */
html[data-radius="flat"] .rt-admin [class*="-modal"],
html[data-radius="flat"] .rt-admin [class*="-dialog"],
html[data-radius="flat"] .rt-admin [class*="-close"] { border-radius: 0 !important; }
.rt-admin .rt-sbr-brand { border-radius: 0 !important; }
.rt-admin .rt-activity-item { display:flex; align-items:center; gap:12px; min-width:0; }
.rt-admin .rt-activity-content { display:grid; gap:5px; min-width:0; flex:1 1 auto; }
.rt-admin .rt-activity-text { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rt-admin .rt-activity-time { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:var(--rt-muted); font-size:.76rem; line-height:1.2; }
.rt-admin .rt-activity-time span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.rt-admin .rt-activity-time .rt { width:.82rem; height:.82rem; color:var(--rt-primary); }
.rt-admin .rt-topbar-menu-search { position:relative; flex:0 1 clamp(280px, 34vw, 420px); min-width:280px; }
.rt-admin .rt-topbar-menu-search .rt-topbar-search { width:100%; flex:1 1 auto; min-width:0; }
.rt-admin .rt-topbar-menu-results { position:absolute; z-index:1000; top:calc(100% + 8px); left:0; width:100%; max-height:320px; overflow-y:auto; padding:6px; border:1px solid var(--rt-border); background:var(--rt-surface-solid); box-shadow:var(--rt-shadow-sm); }
.rt-admin .rt-topbar-menu-result { display:flex; align-items:center; gap:10px; padding:10px 12px; color:var(--rt-text); font-size:.84rem; font-weight:750; }
.rt-admin .rt-topbar-menu-result:hover { background:rgba(var(--rt-primary-rgb), .1); color:var(--rt-primary); }
.rt-admin .rt-topbar-menu-result .rt { color:var(--rt-primary); }
.rt-admin .rt-topbar-menu-empty { display:block; padding:12px; color:var(--rt-muted); font-size:.82rem; }
html[data-radius="flat"] .rt-admin .rt-topbar-menu-results, html[data-radius="flat"] .rt-admin .rt-topbar-menu-result { border-radius:0; }
html[data-radius="rounded"] .rt-admin .rt-topbar-menu-results, html[data-radius="rounded"] .rt-admin .rt-topbar-menu-result { border-radius:var(--rt-radius-sm); }
@media (max-width: 720px) { .rt-admin .rt-topbar-menu-search { display:none; } }
html[data-radius="rounded"] .rt-admin .rt-card,
html[data-radius="rounded"] .rt-admin [class*="-card"]:not([class*="-card-"]),
html[data-radius="rounded"] .rt-admin .rt-btn,
html[data-radius="rounded"] .rt-admin .rt-badge,
html[data-radius="rounded"] .rt-admin .rt-sbr-badge,
html[data-radius="rounded"] .rt-admin .rt-topbar-search,
html[data-radius="rounded"] .rt-admin .rt-table-search,
html[data-radius="rounded"] .rt-admin [class*="-tbl"]:not([class*="-tbl-"]),
html[data-radius="rounded"] .rt-admin [class*="-tbl-"],
html[data-radius="rounded"] .rt-admin [class*="-input"]:not([class*="-input-wrap"]),
html[data-radius="rounded"] .rt-admin [class*="-avatar"]:not([class*="-avatar-"]),
html[data-radius="rounded"] .rt-admin [class*="-user"]:not([class*="-user-"]),
html[data-radius="rounded"] .rt-admin .rt-sbr-link,
html[data-radius="rounded"] .rt-admin .rt-sbr-link:hover,
html[data-radius="rounded"] .rt-admin .rt-sbr-link:active,
html[data-radius="rounded"] .rt-admin .rt-sbr-link:focus,
html[data-radius="rounded"] .rt-admin .rt-sbr-link:focus-visible,
html[data-radius="rounded"] .rt-admin .rt-stat-icon,
html[data-radius="rounded"] .rt-admin .rt-sbr-avatar,
html[data-radius="rounded"] .rt-admin .rt-brand-dot,
html[data-radius="rounded"] .rt-admin .rt-activity-icon,
/* html[data-radius="rounded"] .rt-admin .rt-sbr-brand:hover,
html[data-radius="rounded"] .rt-admin .rt-sbr-brand:active, */
html[data-radius="rounded"] .rt-admin [class*="-modal"],
html[data-radius="rounded"] .rt-admin [class*="-dialog"],
html[data-radius="rounded"] .rt-admin [class*="-close"] { border-radius: 1rem !important; }
/* Modal overlay always covers the viewport as a rectangle; only its content is rounded. */
.rt-admin .rt-modal { border-radius: 0 !important; }
html[data-radius="flat"] .rt-admin .rt-modal-content { border-radius: 0 !important; }
html[data-radius="rounded"] .rt-admin .rt-modal-content { border-radius: var(--rt-radius-lg) !important; }
.rt-admin .rt-modal-header { border-radius: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.rt-admin .rt-modal-footer { border-radius: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
/* Card internals are not surfaces of their own. */
.rt-admin [class*="-card-"] { border-radius: 0 !important; }
/* Keep the interaction ring inside scrollable Retro-term containers. */
.rt-admin .rt-anishow:hover, .rt-admin .rt-anishow:focus-visible { box-shadow: inset 0 0 0 1px rgba(var(--rt-primary-rgb), .4) !important; }
html[data-radius="flat"] .rt-dropdown-menu,
html[data-radius="flat"] .rt-dropdown-item { border-radius: 0 !important; }
html[data-radius="rounded"] .rt-dropdown-menu,
html[data-radius="rounded"] .rt-dropdown-item { border-radius: 1rem !important; }
html[data-radius="flat"] .rt-admin input,
html[data-radius="flat"] .rt-admin textarea,
html[data-radius="flat"] .rt-admin select { border-radius:0 !important; }
html[data-radius="rounded"] .rt-admin input,
html[data-radius="rounded"] .rt-admin textarea,
html[data-radius="rounded"] .rt-admin select { border-radius:1rem !important; }
html[data-radius="flat"] .rt-admin .rt-select,
html[data-radius="flat"] .rt-admin .rt-select-toggle,
html[data-radius="flat"] .rt-select-menu,
html[data-radius="flat"] .rt-select-search,
html[data-radius="flat"] .rt-select-search-input,
html[data-radius="flat"] .rt-select-option,
html[data-radius="flat"] .rt-select-option.is-selected { border-radius:0 !important; }
html[data-radius="rounded"] .rt-admin .rt-select,
html[data-radius="rounded"] .rt-admin .rt-select-toggle,
html[data-radius="rounded"] .rt-select-menu,
html[data-radius="rounded"] .rt-select-search,
html[data-radius="rounded"] .rt-select-search-input,
html[data-radius="rounded"] .rt-select-option,
html[data-radius="rounded"] .rt-select-option.is-selected { border-radius:1rem !important; }
/* Focus color for admin form controls follows the dark ChatGPT-like surface. */
html[data-theme="dark"] .rt-admin input:focus,
html[data-theme="dark"] .rt-admin select:focus,
html[data-theme="dark"] .rt-admin textarea:focus { background-color:#2f2f2f !important; color:#ececec; }
.rt-admin-shell { min-height: 100vh; background: transparent; color: var(--rt-text); }
.rt-admin-navbar { min-height: 72px; padding: 0 clamp(16px, 4vw, 46px); border-bottom: 1px solid var(--rt-border); background: var(--rt-surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rt-navbar-brand, .rt-navbar-actions, .rt-admin-user { display: inline-flex; align-items: center; gap: 10px; }
.rt-navbar-brand { color: var(--rt-text); font-weight: 900; font-size: 1.1rem; }
.rt-navbar-actions { gap: 16px; }
.rt-admin-user { color: var(--rt-muted); font-size: .88rem; font-weight: 700; }
.rt-admin-main { padding-top: 42px; padding-bottom: 50px; }
.rt-admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.rt-admin-heading h1 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3rem); }
.rt-eyebrow { margin: 0 0 8px; color: var(--rt-primary); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.rt-admin-cards { gap: 18px; }
.rt-admin-card { min-height: 220px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rt-admin-card h2 { margin: 2px 0 0; font-size: 1.3rem; }
.rt-admin-card p { margin: 0; font-size: .88rem; }
.rt-admin-card .rt-btn { margin-top: auto; }
.rt-admin-card-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.rt-bg-primary { background: var(--rt-primary); } .rt-bg-success { background: var(--rt-success); } .rt-bg-purple { background: var(--rt-purple); }
.rt-dashboard-content { max-width: 1440px; }
.rt-page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.rt-page-header h2 { margin:0 0 6px; }
.rt-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr); gap:20px; margin-top:20px; }
.rt-dashboard-grid .rt-card { min-height:320px; }
@keyframes rtFadeInDown { from { opacity:0; transform:translateY(-10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
:where(.rt-card, [class$="-card"], [class*="-card "]) { animation:rtFadeInDown .45s ease both; }
.rt-admin .rt-dashboard-grid .rt-card:nth-child(2) { animation-delay:.08s; }
.rt-admin .rt-quick-card { animation-delay:.16s; }
.rt-chart { position:relative; min-height:235px; padding-top:20px; color:var(--rt-primary); }
.rt-chart-svg { width:100%; height:220px; overflow:visible; }
.rt-chart-empty { position:absolute; inset:auto 0 8px; text-align:center; color:var(--rt-muted); font-size:.78rem; }
.rt-chart-bars { height:220px; display:flex; align-items:flex-end; justify-content:space-around; gap:10px; padding:12px 8px 0; border-bottom:1px solid var(--rt-border); }
.rt-chart-bar-item { height:100%; min-width:28px; flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:5px; color:var(--rt-muted); }
.rt-chart-bar { width:min(34px, 72%); min-height:4px; border-radius:var(--rt-radius-sm) var(--rt-radius-sm) 0 0; background:linear-gradient(180deg, var(--rt-primary), var(--rt-primary-2)); }
.rt-chart-bar-value { font-size:.68rem; color:var(--rt-primary); font-weight:800; }
.rt-chart-bar-item small { font-size:.65rem; white-space:nowrap; }
.rt-quick-card { margin-top:20px; }
.rt-admin .rt-stats-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; margin-bottom:20px; text-align:left; }
.rt-admin .rt-stat-card { min-width:0; min-height:104px; padding:17px 18px; display:grid; grid-template-columns:42px minmax(0, 1fr) auto; align-items:center; gap:13px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-md); background:var(--rt-surface); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.rt-admin .rt-stat-card > div:nth-child(2) { min-width:0; display:flex; flex-direction:column; gap:4px; }
.rt-admin .rt-stat-icon { width:42px; height:42px; display:grid; place-items:center; color:#fff; border-radius:var(--rt-radius-sm); }
.rt-admin .rt-stat-icon .rt { width:18px; height:18px; }
.rt-admin .rt-stat-label { display:block; overflow:hidden; color:var(--rt-muted); font-size:.72rem; font-weight:800; line-height:1.25; letter-spacing:.055em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.rt-admin .rt-stat-value { display:block; color:var(--rt-text); font-size:1.8rem; font-weight:950; letter-spacing:-.05em; line-height:1; }
.rt-admin .rt-stat-trend { margin:0; align-self:start; padding-top:2px; font-size:.7rem; font-weight:800; line-height:1.25; text-align:right; white-space:nowrap; }
.rt-stat-icon { width:42px; height:42px; display:grid; place-items:center; color:#fff; border-radius:var(--rt-radius-sm); }
.rt-bg-warning { background:var(--rt-warning); }
.rt-stat-trend { margin-left:auto; align-self:flex-start; font-size:.75rem; font-weight:800; }
.rt-topbar-heading span { display:block; font-size:.72rem; }
.rt-topbar-actions { margin-left:auto; display:flex; align-items:center; gap:10px; }
@media (max-width: 900px) { .rt-dashboard-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { :where(.rt-card, [class$="-card"], [class*="-card "]) { animation:none; } }
@media (max-width: 680px) { .rt-page-header { align-items:flex-start; flex-direction:column; } .rt-topbar-actions .rt-btn-primary { display:none; } }
@media (max-width: 680px) { .rt-admin-navbar { align-items: flex-start; flex-direction: column; padding-block: 16px; } .rt-navbar-actions { width: 100%; flex-wrap: wrap; } .rt-admin-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1024px) { .rt-admin { display:block; } .rt-admin .rt-main { padding-inline: clamp(14px, 3vw, 28px); } .rt-admin .rt-topbar-menu-tbl { display:inline-grid; } .rt-admin .rt-sbr { transform:translateX(-105%); box-shadow:var(--rt-shadow); } .rt-admin .rt-sbr.is-open { transform:translateX(0); } .rt-admin .rt-sbr-toggle { display:none; } }
@media (max-width: 900px) { .rt-admin .rt-stats-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rt-admin .rt-topbar-search { display:none; } .rt-admin .rt-topbar-title-wrap { flex:1 1 auto; } .rt-admin .rt-view-site-label { display:none; } .rt-admin .rt-topbar-actions { gap:5px; } .rt-admin .rt-page-header { margin-bottom:20px; } .rt-admin .rt-stats-grid { gap:10px; } }
@media (max-width: 420px) { .rt-admin .rt-stats-grid { grid-template-columns:1fr; } .rt-admin .rt-stat-card { padding:15px 16px; } }
.rt-article-admin-card { min-width:0; }
.rt-table-muted { display:block; margin-top:3px; color:var(--rt-muted); font-size:.72rem; }
.rt-empty-state { display:grid; justify-items:center; gap:8px; padding:48px 20px; text-align:center; color:var(--rt-muted); }
.rt-empty-state .rt { width:32px; height:32px; margin-bottom:4px; color:var(--rt-primary); }
.rt-empty-state strong { color:var(--rt-text); }
.rt-form-stack { display:grid; gap:18px; }
.rt-form-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.rt-form-group { margin:0; }
.rt-form-group small { display:block; margin-top:6px; font-size:.75rem; }
.rt-file-picker { display:flex; align-items:center; gap:8px; min-height:44px; padding:3px 8px; border:1px solid var(--rt-border); background:var(--rt-surface-solid); color:var(--rt-text); }
.rt-file-picker:focus-within { border-color:var(--rt-primary); }
.rt-file-input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; clip-path:inset(50%); }
.rt-file-button { display:inline-grid; place-items:center; width:38px; height:38px; flex:0 0 auto; border:0; border-radius:var(--rt-radius-sm); background:transparent; color:var(--rt-muted); cursor:pointer; transition:color .2s ease, background .2s ease; }
.rt-file-button:hover, .rt-file-input:focus-visible + .rt-file-button { color:var(--rt-primary); background:rgba(var(--rt-primary-rgb), .1); }
.rt-file-button .rt { width:20px; height:20px; }
.rt-file-name { min-width:0; overflow:hidden; color:var(--rt-muted); font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
.rt-user-photo { width:36px; height:36px; flex:0 0 auto; border-radius:50%; object-fit:cover; }
.rt-sbr-avatar.rt-user-photo { display:block; width:38px; height:38px; padding:0; object-fit:cover; }
.rt-profile-edit-grid { display:grid; grid-template-columns:minmax(0, 2fr) minmax(280px, 1fr); gap:20px; align-items:start; }
.rt-profile-form { min-width:0; }
.rt-profile-preview { min-width:0; position:sticky; top:20px; }
.rt-profile-preview .rt-card-body { display:grid; justify-items:center; gap:8px; padding:28px 22px; text-align:center; }
.rt-profile-preview-avatar { display:grid; place-items:center; width:92px; height:92px; margin:4px auto 8px; overflow:hidden; border-radius:50%; background:rgba(var(--rt-primary-rgb), .1); }
.rt-profile-preview-avatar img { width:100%; height:100%; object-fit:cover; }
.rt-profile-preview-avatar .rt-sbr-avatar { width:100%; height:100%; font-size:2rem; }
.rt-profile-preview h3 { margin:0; font-size:1.2rem; }
.rt-profile-preview-role { margin:0; color:var(--rt-primary); font-size:.78rem; font-weight:800; }
.rt-profile-preview-details { display:grid; width:100%; gap:10px; margin-top:14px; text-align:left; }
.rt-profile-preview-details div { display:flex; align-items:flex-start; gap:9px; color:var(--rt-muted); font-size:.8rem; overflow-wrap:anywhere; }
.rt-profile-preview-details .rt { flex:0 0 auto; color:var(--rt-primary); }
.rt-sbr-user-link { display:block; color:inherit; text-decoration:none; }
.rt-sbr-user-link:hover { color:inherit; }
.rt-role-access-modal,
.rt-role-access-modal .rt-modal-content,
.rt-role-access-modal .rt-modal-header { border-radius:0 !important; }
html[data-radius="flat"] .rt-admin .rt-role-access-modal,
html[data-radius="rounded"] .rt-admin .rt-role-access-modal,
html[data-radius="flat"] .rt-admin .rt-role-access-modal .rt-modal-content,
html[data-radius="rounded"] .rt-admin .rt-role-access-modal .rt-modal-content,
html[data-radius="flat"] .rt-admin .rt-role-access-modal .rt-modal-header,
html[data-radius="rounded"] .rt-admin .rt-role-access-modal .rt-modal-header,
html[data-radius="flat"] .rt-admin .rt-role-access-modal .rt-modal-footer,
html[data-radius="rounded"] .rt-admin .rt-role-access-modal .rt-modal-footer { border-radius:0 !important; }
html[data-radius="flat"] .rt-admin .rt-role-access-modal .rt-modal-content { border-radius:0 !important; }
html[data-radius="rounded"] .rt-admin .rt-role-access-modal .rt-modal-content { border-radius:1rem !important; overflow:hidden; }
.rt-role-access-modal .rt-modal-content { width:min(980px, calc(100vw - 28px)); height:min(860px, calc(100vh - 28px)); max-height:calc(100vh - 28px); min-height:0; }
.rt-role-access-modal form { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; }
.rt-role-access-modal .rt-modal-body { min-height:0; overflow-y:auto; overflow-x:hidden; flex:1 1 auto; }
.rt-role-access-modal .rt-modal-footer { flex:0 0 auto; }

/* Modal geometry: rounded belongs to the dialog surface only. The viewport
 * overlay and header/footer separators must remain rectangular in rounded mode. */
html[data-radius="rounded"] .rt-admin .rt-modal,
html[data-radius="flat"] .rt-admin .rt-modal {
  border-radius: 0 !important;
}
html[data-radius="rounded"] .rt-admin .rt-modal-header,
html[data-radius="flat"] .rt-admin .rt-modal-header,
html[data-radius="rounded"] .rt-admin .rt-modal-footer,
html[data-radius="flat"] .rt-admin .rt-modal-footer {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
html[data-radius="rounded"] .rt-admin .rt-modal-content {
  border-radius: var(--rt-radius-lg) !important;
}
html[data-radius="flat"] .rt-admin .rt-modal-content {
  border-radius: 0 !important;
}
/* Compact confirmation dialogs on Article and Page listings. */
.rt-admin .rt-modal[id^="articleDelete"] .rt-modal-content,
.rt-admin .rt-modal[id^="pageDelete"] .rt-modal-content {
  width: min(420px, calc(100vw - 36px));
}
.rt-content-preview-modal .rt-modal-content { display:flex; flex-direction:column; width:min(1280px, calc(100vw - 28px)); height:min(900px, calc(100vh - 28px)); max-height:calc(100vh - 28px); min-height:0; }
.rt-content-preview-modal.rt-modal-fullscreen .rt-modal-content { width:100%; height:100%; max-width:100%; max-height:100%; border-radius:0 !important; }
.rt-content-preview-modal .rt-modal-header,
.rt-content-preview-modal .rt-modal-footer { flex:0 0 auto; position:relative; z-index:2; }
.rt-content-preview-modal .rt-modal-body { display:flex; min-height:0; padding:0; overflow:hidden; flex:1 1 auto; position:relative; z-index:1; }
.rt-modal-iframe { display:block; width:100%; height:100%; min-height:0; flex:1 1 auto; border:0; background:#fff; }
.rt-modal-iframe-page-shell { margin:0; min-height:100vh; background:#fff; }
.rt-modal-iframe-page { width:min(1040px, calc(100% - 48px)); margin:0 auto; padding:34px 0 48px; }
.rt-modal-iframe-content { max-width:none; }
@media (max-width: 720px) { .rt-modal-iframe-page { width:min(100% - 28px, 1040px); padding:22px 0 32px; } }
.rt-access-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; }
.rt-access-group { min-width:0; padding:18px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); background:var(--rt-surface-muted); }
.rt-access-group h3, .rt-access-group h4 { margin:0 0 12px; color:var(--rt-text); font-size:.85rem; letter-spacing:.02em; text-transform:uppercase; }
.rt-access-item { display:flex; align-items:flex-start; gap:10px; padding:8px 0; color:var(--rt-text); font-size:.82rem; font-weight:650; cursor:pointer; }
.rt-access-item input { width:16px; height:16px; flex:0 0 auto; margin:2px 0 0; accent-color:var(--rt-primary); }
.rt-access-editor { padding:4px; }
html[data-radius="flat"] .rt-admin .rt-access-group { border-radius:0; }
html[data-radius="rounded"] .rt-admin .rt-access-group { border-radius:1rem; }
@media (max-width: 700px) { .rt-access-grid { grid-template-columns:1fr; } }
@media (max-width: 900px) { .rt-profile-edit-grid { grid-template-columns:1fr; } .rt-profile-preview { position:static; } }
.rt-chip-control { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-height:44px; padding:6px 10px; border:1px solid var(--rt-border); background:var(--rt-surface-solid); color:var(--rt-text); }
.rt-chip-control:focus-within { border-color:var(--rt-primary); }
.rt-chip-control .rt-form-input { flex:1 1 150px; min-width:120px; padding:4px 2px; border:0 !important; background:transparent; }
.rt-chip-control .rt-form-input:focus { outline:none; }
.rt-taxonomy-chip { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:4px 9px; border:1px solid rgba(var(--rt-primary-rgb), .25); border-radius:999px; background:rgba(var(--rt-primary-rgb), .1); color:var(--rt-primary); font-size:.75rem; font-weight:800; line-height:1.25; }
.rt-taxonomy-chip-remove { display:inline-grid; place-items:center; width:16px; height:16px; padding:0; border:0; border-radius:50%; background:transparent; color:currentColor; cursor:pointer; font-size:1rem; line-height:1; }
.rt-taxonomy-chip-remove:hover { background:rgba(var(--rt-primary-rgb), .18); }
html[data-radius="flat"] .rt-admin .rt-chip-control { border-radius:0 !important; }
html[data-radius="rounded"] .rt-admin .rt-chip-control { border-radius:1rem !important; }
html[data-radius="flat"] .rt-admin .rt-file-picker { border-radius:0 !important; }
html[data-radius="rounded"] .rt-admin .rt-file-picker { border-radius:1rem !important; }
.rt-form-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding-top:4px; }
.rt-btn-success { background:var(--rt-success); color:#fff; }
.rt-seo-panel { margin-top:4px; background:var(--rt-surface-muted); }
.rt-article-form .rt-form-input,
.rt-article-form .rt-form-textarea,
.rt-article-form .rt-form-select,
.rt-article-form .note-editor,
.rt-article-form .note-toolbar,
.rt-article-form .note-btn-group,
.rt-article-form .note-btn { border-radius:0 !important; }
html[data-radius="rounded"] .rt-admin .rt-form-input,
html[data-radius="rounded"] .rt-admin .rt-form-textarea,
html[data-radius="rounded"] .rt-admin .rt-form-select,
html[data-radius="rounded"] .rt-admin .note-editor,
html[data-radius="rounded"] .rt-admin .note-toolbar,
html[data-radius="rounded"] .rt-admin .note-btn-group,
html[data-radius="rounded"] .rt-admin .note-btn { border-radius:1rem !important; }
.rt-article-form .rt-form-input,
.rt-article-form .rt-form-textarea,
.rt-article-form .rt-form-select { background:var(--rt-surface-solid); color:var(--rt-text); border-color:var(--rt-border); }
.rt-admin .rt-form-input:disabled,
.rt-admin .rt-form-textarea:disabled,
.rt-admin .rt-form-select:disabled,
.rt-admin .rt-select-toggle:disabled { opacity:1; cursor:not-allowed; color:#7a8699 !important; border-color:#d7dee8 !important; background:#edf1f5 !important; box-shadow:none !important; }
.rt-admin .rt-form-input[readonly],
.rt-admin .rt-form-textarea[readonly] { cursor:default; color:#53627a !important; border-color:#cbd7e7 !important; background:#f4f7fb !important; box-shadow:none !important; }
.rt-admin .rt-select:has(.rt-select-toggle:disabled) { opacity:1; }
.rt-admin .rt-select:has(.rt-select-toggle:disabled) .rt-select-toggle { cursor:not-allowed; color:#7a8699 !important; border-color:#d7dee8 !important; background:#edf1f5 !important; box-shadow:none !important; }
html[data-theme="dark"] .rt-admin .rt-form-input:disabled,
html[data-theme="dark"] .rt-admin .rt-form-textarea:disabled,
html[data-theme="dark"] .rt-admin .rt-form-select:disabled,
html[data-theme="dark"] .rt-admin .rt-select-toggle:disabled { color:#8f9bad !important; border-color:#454d5a !important; background:#282d35 !important; }
html[data-theme="dark"] .rt-admin .rt-form-input[readonly],
html[data-theme="dark"] .rt-admin .rt-form-textarea[readonly] { color:#b3bfd0 !important; border-color:#4c596b !important; background:#303744 !important; }
html[data-theme="dark"] .rt-admin .rt-select:has(.rt-select-toggle:disabled) .rt-select-toggle { color:#8f9bad !important; border-color:#454d5a !important; background:#282d35 !important; }
.rt-article-form .note-editor { border-color:var(--rt-border); overflow:hidden; background:var(--rt-surface-solid); }
.rt-article-form .note-toolbar,
.rt-article-form .note-btn-group { border-color:var(--rt-border); background:var(--rt-surface-muted); color:var(--rt-text); }
.rt-article-form .note-btn { border-color:var(--rt-border); background:var(--rt-surface-solid); color:var(--rt-text); }
.rt-article-form .note-btn:hover,
.rt-article-form .note-btn:focus,
.rt-article-form .note-btn.active { border-color:rgba(var(--rt-primary-rgb), .45); background:rgba(var(--rt-primary-rgb), .12); color:var(--rt-primary); }
.rt-article-form .note-editable { min-height:240px; color:var(--rt-text); background:var(--rt-surface-solid); }
.rt-article-form .note-editable.rt-summernote-front-body { padding:28px; color:#34486f; font-size:16px; line-height:1.8; background:#fff; }
.rt-article-form .note-editable.front-reference-page { margin:0; font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:#26395f; line-height:1.55; }
.rt-article-form .note-editable.rt-summernote-front-body > * { max-width:100%; }
.rt-article-form .note-editable.rt-summernote-front-body img { max-width:100%; height:auto; }
.rt-article-form .note-editable.rt-summernote-front-body table { width:100%; max-width:100%; }
.rt-article-form .note-editable.rt-summernote-front-body .container { width:100%; }
.rt-article-form .note-statusbar { border-color:var(--rt-border); background:var(--rt-surface-muted); }
.rt-article-form .note-placeholder { color:var(--rt-muted) !important; }
html[data-theme="dark"] .rt-article-form .note-editor,
html[data-theme="dark"] .rt-article-form .note-toolbar,
html[data-theme="dark"] .rt-article-form .note-btn-group,
html[data-theme="dark"] .rt-article-form .note-btn,
html[data-theme="dark"] .rt-article-form .note-editable,
html[data-theme="dark"] .rt-article-form .note-statusbar { color:var(--rt-text); }
/* Summernote appends these elements to body. Keep its backdrop below the
   dialog so the picture/video picker remains usable above the page overlay. */
body.admin-page .note-modal-backdrop {
  z-index:2000 !important;
  opacity:1 !important;
  background:rgba(15, 23, 42, .46) !important;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
body.admin-page .note-modal { z-index:2001 !important; }
body.admin-page .note-modal .modal-dialog { position:relative; z-index:2002; }
body.admin-page .note-modal {
  top:50% !important;
  left:50% !important;
  width:min(620px, calc(100vw - 32px)) !important;
  max-height:calc(100vh - 32px);
  margin:0 !important;
  padding:0 !important;
  transform:translate(-50%, -50%);
  border:0 !important;
  background:transparent !important;
}
body.admin-page .note-modal-content {
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 32px);
  overflow:hidden;
  border:1px solid var(--rt-border) !important;
  border-radius:var(--rt-radius-md);
  color:var(--rt-text);
  background:var(--rt-surface-solid) !important;
  box-shadow:0 24px 70px rgba(15, 23, 42, .24) !important;
}
body.admin-page .note-modal-title { order:1; }
body.admin-page .note-modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--rt-border) !important;
  background:var(--rt-surface-solid) !important;
}
body.admin-page .note-modal-title {
  margin:0;
  color:var(--rt-text);
  font-size:1.05rem;
  font-weight:900;
  letter-spacing:-.02em;
}
body.admin-page .note-modal-header .close {
  order:2;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  margin:0;
  padding:0;
  border:1px solid transparent;
  border-radius:var(--rt-radius-sm);
  color:var(--rt-muted);
  background:transparent;
  font-size:1.6rem;
  font-weight:400;
  line-height:1;
  opacity:1;
  cursor:pointer;
}
body.admin-page .note-modal-header .close:hover,
body.admin-page .note-modal-header .close:focus-visible {
  border-color:rgba(var(--rt-primary-rgb), .28);
  color:var(--rt-primary);
  background:rgba(var(--rt-primary-rgb), .1);
  outline:0;
}
body.admin-page .note-modal-body {
  min-height:0;
  overflow-y:auto;
  padding:20px;
  color:var(--rt-text);
  background:var(--rt-surface-solid) !important;
}
body.admin-page .note-modal-body .form-group,
body.admin-page .note-modal-body .note-form-group { margin:0 0 18px; }
body.admin-page .note-modal-body .form-group:last-child,
body.admin-page .note-modal-body .note-form-group:last-child { margin-bottom:0; }
body.admin-page .note-modal-body label {
  display:block;
  margin:0 0 8px;
  color:var(--rt-text);
  font-size:.8rem;
  font-weight:850;
  letter-spacing:.02em;
}
body.admin-page .note-modal-body .form-control,
body.admin-page .note-modal-body .note-input {
  display:block;
  width:100%;
  min-height:42px;
  padding:9px 11px;
  border:1px solid var(--rt-border) !important;
  border-radius:var(--rt-radius-sm);
  color:var(--rt-text);
  background:var(--rt-surface-solid) !important;
  box-shadow:none !important;
}
body.admin-page .note-modal-body .form-control:focus,
body.admin-page .note-modal-body .note-input:focus {
  border-color:var(--rt-primary);
  outline:0;
  box-shadow:0 0 0 3px rgba(var(--rt-primary-rgb), .14) !important;
}
body.admin-page .note-modal-body input[type="file"] { padding:5px; }
body.admin-page .note-modal-body input[type="file"]::file-selector-button {
  margin-right:8px;
  padding:7px 10px;
  border:1px solid var(--rt-border);
  border-radius:var(--rt-radius-sm);
  color:var(--rt-text);
  background:var(--rt-surface-muted);
  font:inherit;
  font-size:.78rem;
  font-weight:800;
  cursor:pointer;
}
body.admin-page .note-modal-body input[type="file"]::file-selector-button:hover {
  border-color:rgba(var(--rt-primary-rgb), .4);
  color:var(--rt-primary);
}
body.admin-page .note-modal-footer {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:14px 20px 18px;
  border-top:1px solid var(--rt-border) !important;
  background:var(--rt-surface-solid) !important;
  margin-bottom:1.5rem;
}
body.admin-page .note-modal-footer .note-btn {
  min-height:38px;
  padding:8px 14px;
  border:1px solid var(--rt-border) !important;
  border-radius:var(--rt-radius-sm);
  color:var(--rt-text);
  background:var(--rt-surface-solid) !important;
  font-size:.8rem;
  font-weight:850;
  cursor:pointer;
}
body.admin-page .note-modal-footer .note-btn:hover,
body.admin-page .note-modal-footer .note-btn:focus-visible {
  border-color:rgba(var(--rt-primary-rgb), .45);
  color:var(--rt-primary);
  outline:0;
}
body.admin-page .note-modal-footer .note-btn-primary {
  border-color:var(--rt-primary) !important;
  color:#fff !important;
  background:var(--rt-primary) !important;
}
body.admin-page .note-modal-footer .note-btn-primary:hover,
body.admin-page .note-modal-footer .note-btn-primary:focus-visible {
  border-color:var(--rt-primary) !important;
  color:#fff !important;
  background:rgba(var(--rt-primary-rgb), .86) !important;
}
body.admin-page .note-modal-footer .note-image-btn,
body.admin-page .note-modal-footer .note-image-btn:hover,
body.admin-page .note-modal-footer .note-image-btn:focus,
body.admin-page .note-modal-footer .note-image-btn:focus-visible {
  color:#fff !important;
}
html[data-radius="flat"] body.admin-page .note-modal-content,
html[data-radius="flat"] body.admin-page .note-modal-header .close,
html[data-radius="flat"] body.admin-page .note-modal-body .form-control,
html[data-radius="flat"] body.admin-page .note-modal-body .note-input,
html[data-radius="flat"] body.admin-page .note-modal-body input[type="file"]::file-selector-button,
html[data-radius="flat"] body.admin-page .note-modal-footer .note-btn { border-radius:0; }
html[data-theme="dark"] body.admin-page .note-modal-content,
html[data-theme="dark"] body.admin-page .note-modal-body .form-control,
html[data-theme="dark"] body.admin-page .note-modal-body .note-input,
html[data-theme="dark"] body.admin-page .note-modal-body input[type="file"]::file-selector-button,
html[data-theme="dark"] body.admin-page .note-modal-footer .note-btn { color:var(--rt-text); }
html[data-theme="dark"] body.admin-page .note-modal-content,
html[data-theme="dark"] body.admin-page .note-modal-header,
html[data-theme="dark"] body.admin-page .note-modal-body,
html[data-theme="dark"] body.admin-page .note-modal-footer,
html[data-theme="dark"] body.admin-page .note-modal-body .form-control,
html[data-theme="dark"] body.admin-page .note-modal-body .note-input,
html[data-theme="dark"] body.admin-page .note-modal-body input[type="file"]::file-selector-button,
html[data-theme="dark"] body.admin-page .note-modal-footer .note-btn {
  border-color:rgba(255, 255, 255, .08) !important;
  color:var(--rt-text);
  color-scheme:dark;
}
html[data-theme="dark"] body.admin-page .note-modal-body input[type="file"]::file-selector-button,
html[data-theme="dark"] body.admin-page .note-modal-footer .note-btn { background:var(--rt-surface-muted); }
@media (max-width:620px) {
  body.admin-page .note-modal { width:calc(100vw - 20px) !important; max-height:calc(100vh - 20px); }
  body.admin-page .note-modal-content { max-height:calc(100vh - 20px); }
  body.admin-page .note-modal-header,
  body.admin-page .note-modal-body { padding:16px; }
  body.admin-page .note-modal-footer { padding:12px 16px 16px; }
}
body.admin-page .rt-note-image-replace {
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  min-height:32px;
  margin:4px 0 4px 6px;
  padding:6px 9px;
  border:1px solid var(--rt-border) !important;
  border-radius:var(--rt-radius-sm);
  color:var(--rt-text) !important;
  background:var(--rt-surface-solid) !important;
  font-size:.72rem;
  font-weight:800;
  cursor:pointer;
}
body.admin-page .rt-note-image-replace:hover,
body.admin-page .rt-note-image-replace:focus-visible {
  border-color:var(--rt-primary) !important;
  color:var(--rt-primary) !important;
  outline:0;
}
html[data-radius="flat"] body.admin-page .rt-note-image-replace { border-radius:0; }
.rt-taxonomy-icon { display:block; width:40px; height:40px; padding:5px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); object-fit:contain; background:var(--rt-surface-solid); }
.rt-taxonomy-icon--alias { display:inline-grid; place-items:center; padding:0; color:var(--rt-primary); background:rgba(var(--rt-primary-rgb), .1); font-size:.78rem; font-weight:900; letter-spacing:.04em; }
html[data-theme="dark"] .rt-taxonomy-icon { filter:invert(1); }
.rt-taxonomy-icon--detail { width:72px; height:72px; padding:10px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); background:var(--rt-surface-solid); }
.rt-taxonomy-detail-table { width:100%; margin:0; table-layout:fixed; }
.rt-taxonomy-detail-table th { width:34%; color:var(--rt-muted); font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.rt-taxonomy-detail-table td { color:var(--rt-text); font-weight:600; overflow-wrap:anywhere; }
.rt-taxonomy-detail-table th, .rt-taxonomy-detail-table td { padding:12px 14px; vertical-align:top; }
.rt-taxonomy-detail-table tr:first-child th, .rt-taxonomy-detail-table tr:first-child td { border-top:0; }
.rt-taxonomy-icon-preview { display:flex; align-items:center; gap:10px; margin-top:8px; color:var(--rt-muted); font-size:.8rem; }
.rt-taxonomy-icon-preview img { width:44px; height:44px; padding:6px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); object-fit:contain; background:var(--rt-surface-solid); }
.rt-article-media-preview { display:flex; align-items:center; gap:10px; margin-top:10px; color:var(--rt-muted); font-size:.8rem; }
.rt-article-media-preview img { width:120px; height:72px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); object-fit:cover; background:var(--rt-surface-solid); }
.rt-article-media-gallery { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.rt-article-media-gallery img { width:76px; height:58px; border:1px solid var(--rt-border); border-radius:var(--rt-radius-sm); object-fit:cover; background:var(--rt-surface-solid); }
.rt-table-media-title { display:flex; align-items:center; gap:10px; min-width:220px; }
.rt-table-media-title > img, .rt-table-media-placeholder { width:52px; height:38px; flex:0 0 52px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--rt-border); border-radius:8px; background:var(--rt-surface-muted); color:var(--rt-muted); }
.rt-table-media-title > img { object-fit:cover; }
.rt-table-media-placeholder .rt { width:17px; height:17px; }
.rt-table-media-title > div { min-width:0; }
.rt-table-media-title strong, .rt-table-media-title small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Media library folder explorer */
.rt-media-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:18px 22px;border-bottom:1px solid var(--rt-border)}
.rt-media-folder{display:flex;flex-direction:column;gap:3px;padding:14px 15px;border:1px solid var(--rt-border);border-radius:var(--rt-radius-sm);background:var(--rt-surface-solid);color:var(--rt-text);transition:border-color .2s ease,background-color .2s ease,transform .2s ease}
.rt-media-folder:hover,.rt-media-folder.is-active{border-color:rgba(var(--rt-primary-rgb),.55);background:rgba(var(--rt-primary-rgb),.08);transform:translateY(-1px)}
.rt-media-folder .rt{width:1.3rem;height:1.3rem;color:var(--rt-primary);margin-bottom:5px}.rt-media-folder span{font-weight:800}.rt-media-folder small{color:var(--rt-muted)}
@media(max-width:700px){.rt-media-folders{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.rt-media-folder{padding:12px}}
.rt-media-upload-form{display:flex!important;align-items:center;gap:8px;flex-wrap:nowrap}.rt-media-upload-form .rt-form-input{width:min(280px,28vw);min-width:180px}.rt-media-filter-form{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.rt-media-filter-form .rt-table-search{flex:1 1 260px}.rt-media-filter-form select{width:180px;flex:0 0 180px}.rt-media-navigation{display:flex;align-items:center;gap:8px;padding:16px 22px 0}.rt-media-current-folder{display:inline-flex;align-items:center;gap:6px;margin-left:4px;color:var(--rt-muted);font-size:.9rem;font-weight:700}.rt-media-current-folder .rt{color:var(--rt-primary)}
.rt-media-upload-picker{display:flex;align-items:center;gap:8px}.rt-media-picker-display{display:inline-flex;align-items:center;gap:8px;width:min(280px,28vw);min-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.rt-media-picker-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rt-media-picker-options .rt-btn{min-height:72px;display:flex;align-items:center;justify-content:center;gap:8px}
@media(max-width:700px){.rt-media-upload-picker{width:100%}.rt-media-picker-display{width:auto;min-width:0;flex:1}.rt-media-filter-form{flex-wrap:wrap}.rt-media-filter-form .rt-table-search{flex:1 1 100%}.rt-media-filter-form select{flex:1 1 auto;width:auto}.rt-media-navigation{padding-left:14px;padding-right:14px}.rt-media-picker-options{grid-template-columns:1fr}}
.rt-media-file-table .rt-media-file-name{display:flex;align-items:center;gap:11px;color:var(--rt-text);min-width:260px}.rt-media-file-name>.rt{width:1.15rem;height:1.15rem;color:var(--rt-primary);flex:0 0 auto}.rt-media-file-name>div{min-width:0}.rt-media-file-name strong,.rt-media-file-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rt-media-preview-body{display:flex;align-items:center;justify-content:center;min-height:55vh;background:var(--rt-surface-muted)}.rt-media-preview-body>img{display:block;max-width:100%;max-height:68vh;object-fit:contain}.rt-media-preview-body>iframe{width:100%;height:65vh;border:0;background:#fff}
