/* ----------------------------------------
   Root Colors (KFUPM Color Palette)
---------------------------------------- */

:root {
  /* Primary */
  --turquoise-100: #d0e6e8;
  --turquoise-300: #6ba5ad;
  --turquoise-500: #115f66;
  --turquoise-700: #0c4349;
  --turquoise-900: #06272a;

  --green-100: #cdefe3;
  --green-300: #6bd0af;
  --green-500: #009767;
  --green-700: #006246;
  --green-900: #003828;

  --beige-100: #f7f2e7;
  --beige-300: #eee3cf;
  --beige-500: #ece0c7;

  /* Secondary / feedback (for callouts etc.) */
  --yellow-100: #fdeecb;
  --yellow-300: #f7d27a;
  --yellow-500: #f0ba4f;
  --yellow-700: #a57528;
  --yellow-900: #5e4213;

  --warning-100: #fdf0d0;
  --warning-500: #f2c56c;

  --informative-100: #d7eff8;
  --informative-500: #89c4db;

  /* Neutral */
  --white: #ffffff;
  --gray-100: #e7e7e8;
  --gray-300: #c5c5c6;
  --gray-500: #adacad;
  --gray-700: #6b6b6c;
  --gray-900: #3d3d3e;
  --black: #000000;

  /* Interface */
  --bg: var(--beige-100);
  --surface: var(--white);
  --text: var(--turquoise-900);
  --text-muted: var(--gray-700);
  --accent: var(--green-500);
  --accent-soft: var(--green-100);
  --border: var(--gray-300);

  /* Layout */
  --sidebar-width: 300px;
}

/* ----------------------------------------
   Base Styles
---------------------------------------- */

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: "KFUPM", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--turquoise-700);
  font-weight: 700;
  margin-top: 0;
}

/* Typographic scale */
h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

p {
  color: var(--text);
  font-size: 1rem;
  margin-top: 0;
}

/* Useful across pages (process page uses .muted; keep shared) */
.muted {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: var(--turquoise-500);
  font-weight: 700;
}

a:hover,
a:focus {
  color: var(--green-700);
}

a:focus-visible {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

/* ----------------------------------------
   Skip Link
---------------------------------------- */

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ----------------------------------------
   Sidebar Navigation (Process Pages)
---------------------------------------- */

.sidebar {
  width: var(--sidebar-width);
  background: var(--turquoise-900);
  color: var(--white);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 1.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar .logo {
  width: 85%;
  height: auto;
  margin-bottom: 1rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.nav-links li {
  margin: 0.7rem 0;
}

.nav-links a {
  color: var(--white);
  padding: 0.4rem 0.2rem;
  display: block;
  border-radius: 4px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  background: var(--turquoise-700);
}

/* ----------------------------------------
   Page Toolbar (Back + Exports)
---------------------------------------- */

.page-actions {
  display: flex;
  justify-content: space-between; /* Pushes Back to left, Exports to right */
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping on mobile */
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300); /* Optional: adds a nice separator line */
}

/* Grouping the two export buttons together */
.action-group {
  display: flex;
  gap: 0.75rem;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */

/* Shared base for Back and Export buttons */
.back-button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;

  /* Default Style (Outlined/Secondary) - Applied to all by default */
  background: var(--turquoise-700);
  color: var(--surface);
  border: 1px solid var(--border);
}

.back-button:hover,
.export-button:hover {
  background: var(--surface);
  border-color: var(--gray-500);
  color: var(--turquoise-700);
}

.back-button:focus-visible,
.export-button:focus-visible {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

.back-button:active,
.export-button:active {
  transform: scale(0.98);
}

/* Primary variant (Filled) - Only use if you really want to emphasize one */
.export-button.primary {
  background: var(--turquoise-700);
  color: var(--white);
  border-color: var(--turquoise-700);
}

.export-button.primary:hover {
  background: var(--turquoise-500);
  border-color: var(--turquoise-500);
}

/* ----------------------------------------
   Mobile Adjustment
---------------------------------------- */
@media (max-width: 600px) {
  .page-actions {
    flex-direction: column;
    align-items: stretch; /* Full width buttons on mobile */
    gap: 1rem;
  }

  .action-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split width evenly */
  }

  .back-button {
    text-align: center;
  }
}
/* ----------------------------------------
   Main Content (Process Pages)
---------------------------------------- */

.content {
  margin-left: var(--sidebar-width);
  padding: 2.5rem 3rem;
  width: auto;
  box-sizing: border-box;
  min-height: 100vh;
}

.content-inner {
  max-width: 960px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2.5rem;
}

.subtitle {
  color: var(--text-muted);
}

/* Sections and headings */
section {
  margin-bottom: 2.5rem;
}

section h3 {
  margin-bottom: 0.75rem;
}

section h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ----------------------------------------
   Key Process Logic (Process Pages)
---------------------------------------- */

#key-process-logic ul {
  margin: 0.75rem 0 0;
  padding: 1rem 1.3rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--turquoise-300);
  border-radius: 8px;
  background: var(--surface);
  list-style: none;
}

#key-process-logic li {
  margin: 0 0 0.85rem;
  position: relative;
}

#key-process-logic li::before {
  content: "•";
  position: absolute;
  left: -0.85rem;
  color: var(--turquoise-500);
}

#key-process-logic li:last-child {
  margin-bottom: 0;
}

#key-process-logic .muted:not(.ref-note) {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* Hide in-page source references (keep in HTML for traceability) */
.ref-note {
  display: none;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.3rem;
  margin: 1rem 0;
  border-radius: 8px;
}

/* Process page metadata (Status / Document ID / Last updated) */
.page-metadata {
  display: block;
}

.page-metadata-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1rem 0;
  table-layout: auto;
}

.page-metadata-table td {
  border: none;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.page-metadata-table p {
  margin: 0;
}

.page-metadata-table .meta-label,
.page-metadata-table .meta-value {
  white-space: nowrap;
}

.page-metadata-table .meta-docid .meta-value {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 720px) {
  .page-metadata-table {
    border-spacing: 0.65rem 0;
  }
}

.raci-table,
.logic-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}

.raci-table th,
.raci-table td,
.logic-table th,
.logic-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.raci-table th,
.logic-table th {
  background: var(--beige-100);
  color: var(--turquoise-700);
  font-weight: 700;
  white-space: nowrap;
}

.raci-table tr:last-child td,
.logic-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--accent-soft);
  color: var(--green-900);
  font-weight: 700;
  margin-left: 0.35rem;
  white-space: nowrap;
}
/* ----------------------------------------
   Callouts
---------------------------------------- */

.callout {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.callout h4 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.callout h5 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

/* Informational callout */
.callout-info {
  background: var(--informative-100);
  border-color: var(--informative-500);
}

/* Warning callout */
.callout-warning {
  background: var(--warning-100);
  border-color: var(--warning-500);
}

/* ----------------------------------------
   BPMN Model Frame (shared wrapper; viewer-specific is in bpmn-style.css)
---------------------------------------- */

.model-frame {
  border: 2px solid var(--turquoise-300);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

/* Footer under the viewer */
.model-frame-footer {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 0.85rem;
  background: var(--beige-100);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.model-frame-footer-title,
.model-frame-footer-subtitle {
  margin: 0;
}

.model-frame-footer-title {
  margin-bottom: 0.25rem;
}

.model-frame-footer a {
  font-weight: 700;
  color: var(--turquoise-500);
}

.model-frame-footer a:hover,
.model-frame-footer a:focus {
  color: var(--green-700);
}

/* ----------------------------------------
   Footer (Process Pages)
---------------------------------------- */

.site-footer {
  margin-left: var(--sidebar-width);
  padding: 1rem 3rem 2rem;
  background: var(--beige-300);
  box-sizing: border-box;
}

.site-footer .content-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----------------------------------------
   Responsive Design (Process Pages)
---------------------------------------- */

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .content {
    margin-left: 0;
    padding: 1.5rem 1.25rem;
    width: 100%;
  }

  .site-footer {
    margin-left: 0;
    padding: 1rem 1.25rem 2rem;
  }
}

/* ========================================
   HOME PAGE LAYOUT (NO SIDEBAR)
   Applies when <body class="home">
======================================== */

body.home {
  background: var(--bg);
}

/* Shell: header + main + footer stacked */
.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top header bar */
.home-header {
  background: var(--turquoise-900);
  color: var(--white);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: flex-end;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-logo {
  height: 40px;
  width: auto;
}

.home-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--beige-100);
  opacity: 0.88;
  white-space: nowrap;
  position: relative;
  top: 1px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
}

/* Version pill on the right */
.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--turquoise-700);
  color: var(--white);
  font-size: 0.8rem;
}

/* Main area on home page */
.home-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 3rem 2rem;
  box-sizing: border-box;
}

/* Hero section */
.hero {
  margin-bottom: 2.5rem;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 720px;
}

/* Search & filters */
.hero-actions {
  margin-top: 1.5rem;
  max-width: 420px;
}

.search-label,
.filter-label {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.search-wrapper {
  max-width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  color: var(--text);
}

.search-input:focus {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

/* Filter controls under search */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 0;
  min-width: 0;
}

.filter-select {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 2rem 0.55rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236BA5AD' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
  box-sizing: border-box;
}

.filter-select:hover {
  border-color: var(--gray-500);
}

.filter-select:focus {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-select {
    width: 100%;
  }
}

/* Process list */
.process-list {
  margin-bottom: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-title {
  margin-bottom: 1.25rem;
}

/* Grid of process cards */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  flex: 1;
}

/* Individual process card */
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.process-name {
  line-height: 1.25;
  margin: 0;
  /* Reserve space for up to 2 lines so the summary always starts at the same Y */
  min-height: calc(1.25em * 2);

  /* Optional: clamp titles to 2 lines (prevents tall cards from long titles) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.process-summary {
  margin: 0;
  color: var(--text-muted);
}

/* Tags & status */
.process-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.process-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--beige-300);
  color: var(--turquoise-900);
}

.status-tag {
  background: var(--accent-soft);
  color: var(--green-900);
}

/* Link in card */
.process-link {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* No-results message */
.no-results {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Home footer */
.home-footer {
  padding: 1rem 3rem 1.5rem;
  background: var(--beige-300);
  box-sizing: border-box;
}

.home-footer .footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----------------------------------------
   Back to Top Button (Process Pages)
---------------------------------------- */

.top-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.55rem 1rem;
  background: var(--turquoise-700);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
  border: 1px solid var(--border);
}

.top-button:hover {
  background: var(--surface);
  border-color: var(--gray-500);
  color: var(--turquoise-700);
}

.top-button:focus {
  outline: 2px solid var(--yellow-500);
  outline-offset: 3px;
}

.top-button:active {
  transform: scale(0.98);
}

/* ========================================
   EXPORT / PRINT MODE
   Applied when <body> has .export-mode

   Goals:
   1) Hide navigation + export UI (keep document clean)
   2) Hide BPMN viewer (interactive; not export-friendly)
   3) Show an export-only BPMN notice with a link
   4) Improve pagination: keep cards/tables together
   5) Prevent sliced headings (anti-glyph-cut) in PDF raster slicing
======================================== */

/* -----------------------------
   1) Hide UI controls in export
------------------------------ */

body.export-mode .page-actions,
body.export-mode .export-button,
body.export-mode .back-button,
body.export-mode .top-button {
  display: none !important;
}

/* -----------------------------
   2) BPMN: hide viewer in export
------------------------------ */

body.export-mode .bpmn-viewer,
body.export-mode .model-frame {
  display: none !important;
}

/* -----------------------------
   3) BPMN: export-only notice
------------------------------ */

.export-bpmn-note {
  display: none; /* hidden on-screen */
}

body.export-mode .export-bpmn-note {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--informative-100);
  border: 1px solid var(--informative-500);
  color: var(--text);
  font-size: 0.95rem;
}

body.export-mode .export-bpmn-note a {
  font-weight: 700;
}

/* -----------------------------
   4) Pagination control
   Keep blocks intact when possible
------------------------------ */

body.export-mode .card,
body.export-mode .callout,
body.export-mode table,
body.export-mode .raci-table,
body.export-mode .logic-table,
body.export-mode .model-frame-footer,
body.export-mode .page-header {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Reduce splitting inside tables */
body.export-mode tr,
body.export-mode td,
body.export-mode th {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Orphans / widows (best-effort) */
body.export-mode p,
body.export-mode li {
  orphans: 3;
  widows: 3;
}

/* -----------------------------
   5) Headings: prevent "half-line"
   across pages in PDF (anti-glyph-cut)

   Rationale:
   Some PDF renderers rasterize then slice.
   A background + padding makes the slice hit
   background space instead of cutting glyph pixels.
------------------------------ */

body.export-mode h1,
body.export-mode h2,
body.export-mode h3,
body.export-mode h4,
body.export-mode h5 {
  display: block;
  width: 100%;

  /* safety buffer around glyphs */
  padding: 2mm 0;

  /* ensures slice cuts padding, not text */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

  /* best-effort break avoidance */
  break-inside: avoid;
  page-break-inside: avoid;
  break-after: avoid;
  page-break-after: avoid;
}
body.export-mode .content-inner {
  background: #ffffff;
  padding: 1.5rem 2rem;
}

/* -----------------------------
   6) Export overlay (PDF export UX)
   Visible while export is running
------------------------------ */

.export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 39, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.export-overlay .export-overlay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--turquoise-900);
  font-weight: 700;
}

/* Responsive tweaks for home */
@media (max-width: 900px) {
  .home-header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .home-main {
    padding: 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .home-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}

/* ----------------------------------------
   Superuser Mode (Admin)
---------------------------------------- */

.superuser-enabled .superuser-editable-target {
  cursor: text;
  outline: 1px dashed var(--informative-500);
  outline-offset: 2px;
}

.superuser-enabled .superuser-editable-target:hover {
  background: color-mix(in srgb, var(--informative-100) 65%, white);
}

.superuser-active-target {
  outline: 2px solid var(--yellow-500) !important;
  background: color-mix(in srgb, var(--yellow-100) 65%, white);
}

.superuser-toolbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: grid;
  gap: 0.5rem;
  width: min(360px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 0.9rem;
}

.superuser-title {
  font-weight: 800;
  color: var(--turquoise-700);
}

.superuser-status,
.superuser-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.superuser-btn {
  font: inherit;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
}

.superuser-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.superuser-btn-primary {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-700);
}

.superuser-btn-primary:hover:not(:disabled),
.superuser-btn-primary:focus-visible:not(:disabled) {
  background: var(--green-700);
}

.superuser-btn-muted {
  background: var(--surface);
  color: var(--text);
}

.superuser-editor {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1101;
  width: min(720px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.9rem;
}

.superuser-editor-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.superuser-editor-key {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.superuser-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.6rem;
  font: inherit;
  resize: vertical;
}

.superuser-editor-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .superuser-toolbar {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .superuser-editor {
    bottom: 0.5rem;
  }
}
