/* ========================================
   Rogue Cortex Developer Portal
   ======================================== */

/* --- Preview Gate --- */

.preview-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.preview-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px;
}

.preview-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  font-size: 0.8125rem;
  color: #888888;
  border-top: 1px solid #ececec;
  background: #ffffff;
}

.preview-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
}

.preview-footer a {
  color: #555555;
  text-decoration: none;
}

.preview-footer a:hover {
  color: #222222;
  text-decoration: underline;
}

.preview-footer-sep {
  color: #c8c8c8;
}

.preview-gate-box {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.preview-gate-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 32px;
}

.preview-gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.preview-gate-subtitle {
  font-size: 0.95rem;
  color: #555555;
  margin: 0 0 28px;
  line-height: 1.5;
}

.preview-gate-error {
  background: #fff0f0;
  border: 1px solid #f5c2c2;
  border-radius: 6px;
  color: #c0392b;
  font-size: 0.875rem;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.preview-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f8f8f8;
  color: #222222;
  outline: none;
  transition: border-color 0.15s;
}

.preview-gate-input:focus {
  border-color: #222222;
  background: #ffffff;
}

.preview-gate-submit {
  width: 100%;
  padding: 12px;
  background: #222222;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.preview-gate-submit:hover {
  background: #444444;
}

/* --- Reset & Base --- */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: #4361ee;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

code {
  background: #eef;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* --- Container --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* --- Top Nav --- */

.preview-bar {
  background: #f5a623;
  color: #5a3600;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 0;
  width: 100%;
}

.top-nav {
  background: #1a1a2e;
  color: #fff;
  padding: 0 1.5rem;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand-link img {
  filter: brightness(0) invert(1);
}
.brand-light {
  font-weight: 300;
  opacity: 0.75;
}

.brand-link:hover {
  text-decoration: none;
  color: #c3c3ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-admin-link {
  color: #f7c948 !important;
}

.nav-button {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.nav-button:hover {
  background: #333;
  color: #fff;
}

/* Public layout — light nav */
.public-layout .top-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.public-layout .brand-link {
  color: #1a1a2e;
}
.public-layout .brand-link img {
  filter: none;
}
.public-layout .brand-link:hover {
  color: #4361ee;
}
.public-layout .nav-links a {
  color: #444;
}
.public-layout .nav-links a:hover {
  color: #1a1a2e;
}
.public-layout .nav-links .btn-primary {
  color: #fff;
}
.public-layout .nav-links .btn-primary:hover {
  color: #fff;
}
.public-layout .nav-button {
  border-color: #ccc;
  color: #444;
}
.public-layout .nav-button:hover {
  background: #f0f0f5;
  color: #1a1a2e;
}

.nav-divider {
  color: #555;
}

/* Admin theme — black to distinguish from portal */
.admin-nav {
  background: #111;
  border-bottom: 3px solid #555;
}
.admin-nav .nav-links a {
  color: #eee;
}
.admin-nav .nav-links a:hover {
  color: #fff;
}
.admin-nav .brand-link {
  color: #fff;
}
.admin-nav .nav-button {
  color: #eee;
  border-color: #666;
}
.admin-nav .nav-button:hover {
  background: #333;
  color: #fff;
}
.admin-nav .nav-divider {
  color: #666;
}

.admin-layout {
  background: #f5f5f5;
}

.admin-layout .btn-primary {
  background: #333;
  color: #fff;
}
.admin-layout .btn-primary:hover {
  background: #111;
  color: #fff;
}

.admin-layout .btn-outline {
  border-color: #333;
  color: #333;
}
.admin-layout .btn-outline:hover {
  background: #333;
  color: #fff;
}

.admin-layout .btn-sm.btn-outline {
  border-color: #555;
  color: #555;
}
.admin-layout .btn-sm.btn-outline:hover {
  background: #333;
  color: #fff;
}

.admin-layout .stat-number {
  color: #111;
}
.admin-layout .stat-green { color: #2e7d32; }
.admin-layout .stat-red { color: #c62828; }

.admin-layout main a {
  color: #333;
}
.admin-layout main a:hover {
  color: #000;
}

.admin-layout .container {
  max-width: 1400px;
}

.admin-layout h1 { font-size: 1.5rem; }
.admin-layout h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.admin-layout h3 { font-size: 1rem; }

/* Admin shell — left nav + content, same shape as portal account shell. */
.admin-shell .docs-content { font-size: 0.9rem; }

.portal-layout .container:has(.account-shell),
.portal-layout .container:has(.docs-layout),
.portal-layout .container:has(.guide-cards) {
  max-width: 1400px;
}

/* --- Flash messages --- */

.flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.flash-notice {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-alert {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #4361ee;
  color: #fff;
}
.btn-primary:hover {
  background: #3651d4;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #4361ee;
  color: #4361ee;
}
.btn-outline:hover {
  background: #4361ee;
  color: #fff;
}

.btn-danger {
  background: #e63946;
  color: #fff;
}
.btn-danger:hover {
  background: #c5303c;
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* --- Hero (public landing) --- */

.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 7.5rem 1.5rem;
  overflow: hidden;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #b0c4de;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: #fff;
  color: #1a1a2e;
}

/* Light hero variant (public home) */
.hero-light {
  background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 50%, #dde4ff 100%);
  color: #1a1a2e;
}
.hero-light h1 {
  color: #1a1a2e;
}
.hero-light .hero-subtitle {
  color: #444;
}
.hero-light .hero-actions .btn-primary {
  background: #4361ee;
  border-color: #4361ee;
  color: #fff;
}
.hero-light .hero-actions .btn-outline {
  border-color: #4361ee;
  color: #4361ee;
}
.hero-light .hero-actions .btn-outline:hover {
  background: #4361ee;
  color: #fff;
}

/* --- Home sections --- */

.home-sections {
  padding: 0;
}

.home-section {
  padding: 4.5rem 1.5rem;
}

.home-section-alt {
  background: #f5f5fa;
}

.home-section-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.home-section-row-reverse {
  flex-direction: row-reverse;
}

.home-section-text {
  flex: 1;
}

.home-section-visual {
  flex: 0 0 320px;
}

.home-section-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.home-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.home-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
}

@media (max-width: 700px) {
  .home-section-row,
  .home-section-row-reverse {
    flex-direction: column;
  }
  .home-section-visual {
    flex: none;
    width: 100%;
    max-width: 280px;
  }
}

/* --- Features grid --- */

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.features-cta {
  text-align: center;
  margin-top: 3rem;
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.feature-card h3 {
  color: #4361ee;
}

/* --- Auth forms --- */

.auth-form-container {
  max-width: 460px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-form-container h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.form-fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  width: 100%;
}

.auth-alt {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* --- Forms --- */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-group-inline label {
  display: inline-block;
  min-width: 160px;
  margin-bottom: 0;
}

.form-group-inline input[type="text"],
.form-group-inline input[type="email"],
.form-group-inline input[type="password"],
.form-group-inline input[type="date"],
.form-group-inline input[type="number"],
.form-group-inline select {
  width: 260px;
}

.form-group-inline input[type="checkbox"] {
  width: auto;
}

.form-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check input[type="checkbox"] {
  width: auto;
}
.form-check label {
  display: inline;
  margin-bottom: 0;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.form-errors {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.form-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* --- Data tables --- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.data-table thead {
  background: #f0f0f5;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  font-weight: 600;
  color: #555;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tbody tr {
  border-top: 1px solid #eee;
}

.data-table tbody tr:hover {
  background: #f9f9fc;
}

.data-table .actions {
  white-space: nowrap;
}
.data-table .actions > * + * {
  margin-left: 0.4rem;
}
.data-table .actions form {
  display: inline-block;
}

/* --- Detail cards --- */

.detail-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.detail-card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}

.detail-card dt {
  font-weight: 600;
  color: #666;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.detail-card dd {
  margin: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.card-actions form {
  display: inline;
}

/* --- Page header (title + action button) --- */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin-bottom: 0;
}

/* --- Stats grid (admin dashboard) --- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #4361ee;
}

.stat-green { color: #2e7d32; }
.stat-red { color: #c62828; }

.stat-label {
  display: block;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

/* --- Badges --- */

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-doc      { background: #e8f5e9; color: #2e7d32; }
.badge-owner    { background: #ede7f6; color: #4527a0; }
.badge-member   { background: #f0f0f5; color: #555; }
.badge-active   { background: #e8f5e9; color: #2e7d32; }
.badge-inactive { background: #fce4ec; color: #c62828; }
.badge-admin    { background: #fff3e0; color: #e65100; }
.badge-support  { background: #e3f2fd; color: #1565c0; }
.badge-staff-member { background: #ede7f6; color: #4527a0; }

.data-table tr.row-highlight > td { background: #fff8e1; }

/* --- Package cards --- */

.package-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.package-header h3 {
  margin: 0;
}

.package-actions {
  margin-top: 0.75rem;
}

/* --- Status bar --- */

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f0f5;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  gap: 1rem;
}

.status-bar-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-green { background: #2e7d32; }
.status-dot-red { background: #c62828; }

/* --- Inline form (admin add package) --- */

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-select-inline {
  padding: 0.4rem 0.6rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
}

/* --- Misc --- */

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.callout {
  background: #e3f2fd;
  border-left: 4px solid #4361ee;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}
.callout p { margin: 0; }

.empty-state {
  color: #888;
  font-style: italic;
  padding: 2rem;
  text-align: center;
}

.text-muted {
  color: #888;
  font-size: 0.85rem;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* --- Docs layout --- */

.docs-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
}

.docs-sidebar-group {
  margin-bottom: 1.5rem;
}

.docs-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 0.5rem;
}

.docs-sidebar-link {
  display: block;
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  color: #555;
  border-radius: 4px;
}
.docs-sidebar-link:hover {
  background: #f0f0f5;
  text-decoration: none;
  color: #1a1a2e;
}
.docs-sidebar-link.active {
  background: #4361ee;
  color: #fff;
}
.docs-sidebar-link.active:hover {
  background: #3651d4;
}

.docs-sidebar-link-sub {
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: #777;
}

.docs-toc {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.docs-toc-link {
  display: block;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  color: #888;
}
.docs-toc-link:hover {
  color: #4361ee;
  text-decoration: none;
}
.docs-toc-h3 {
  padding-left: 1.25rem;
}

.docs-content {
  flex: 1;
  min-width: 0;
}

/* Total saved line — highlighted so the savings stand out */
.buy-license-summary .total-saved-row dt,
.buy-license-summary .total-saved-row dd {
  color: #2e7d32;
  font-weight: 600;
}

/* Renewal info below "Total today" when a subscription is selected */
.buy-license-renewal {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}
.buy-license-renewal strong { color: #1a1a2e; font-weight: 600; }

.buy-license-summary .btn-block {
  margin-top: 0.75rem;
}
.buy-license-summary .btn-block[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.buy-license-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
}
.buy-license-terms input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.buy-license-terms a { color: #4361ee; }

/* Legal documents rendered from docs/legal/*.md */
.legal-document {
  max-width: 760px;
  margin: 0 auto;
}
.legal-document-header { margin-bottom: 1.5rem; }
.legal-document-body h1 { font-size: 1.75rem; margin-top: 0; }
.legal-document-body h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.legal-document-body h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.legal-document-body p,
.legal-document-body li { font-size: 0.95rem; line-height: 1.6; }

/* Strikethrough list price next to discounted price */
.unit-price-list {
  text-decoration: line-through;
  color: #999;
  margin-right: 0.4rem;
  font-size: 0.85em;
  font-weight: 400;
}

/* Company discount banner above plan picker */
.company-discount-banner {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.company-discount-banner strong {
  font-weight: 700;
}

/* Admin: company-wide discount inline form */
.company-discount-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1.1rem;
  background: #f5f7ff;
  border: 1px solid #dfe4ff;
  border-radius: 8px;
  font-size: 0.95rem;
}
.company-discount-form .company-discount-label,
.company-discount-form .company-discount-input,
.company-discount-form .company-discount-suffix,
.company-discount-form .company-discount-help,
.company-discount-form .btn {
  font-size: 0.95rem;
  line-height: 1.4;
}
.company-discount-form .company-discount-label {
  font-weight: 600;
  margin: 0;
}
.company-discount-form .company-discount-input {
  width: 80px;
  padding: 0.45rem 0.6rem;
}
.company-discount-form .company-discount-suffix {
  color: #555;
  margin-right: 0.25rem;
}
.company-discount-form .btn {
  padding: 0.45rem 1rem;
}
.company-discount-form .company-discount-help {
  font-size: 0.8rem;
  color: #777;
  margin-left: auto;
}

/* Buy Licenses */
.buy-license-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.buy-license-plans {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.buy-license-plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid #e5e5ec;
  border-radius: 8px;
  cursor: pointer;
}
.buy-license-plan-card.selected {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.buy-license-plan-card input[type="radio"],
.buy-license-maint-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.buy-license-plan-name { font-weight: 600; }
.buy-license-plan-blurb { font-size: 0.85rem; color: #666; }
.buy-license-plan-price { font-weight: 700; }
.buy-license-plan-unit { font-size: 0.8rem; color: #888; font-weight: 400; }
.buy-license-summary {
  background: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.buy-license-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.buy-license-summary dt { color: #666; }
.buy-license-summary dd { margin: 0; text-align: right; }
.buy-license-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  margin-bottom: 1rem;
}
.buy-license-total strong { font-size: 1.25rem; }
.btn-block { display: block; width: 100%; text-align: center; }

.buy-license-help {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.75rem;
}

.buy-license-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.buy-license-tiers-card {
  background: #fafafa;
  border: 1px solid #ececf2;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: #555;
}
.buy-license-tiers-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 0.4rem;
}
.buy-license-tiers {
  width: 100%;
  border-collapse: collapse;
}
.buy-license-tiers td {
  padding: 0.15rem 0;
}
.buy-license-tiers td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.buy-license-tiers tr.tier-active {
  font-weight: 600;
  color: #1a1a2e;
}
.buy-license-tiers-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #888;
}

.buy-license-summary {
  font-size: 1rem;
}
.buy-license-summary h2 {
  font-size: 1.15rem;
}

.buy-license-maint-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid #e5e5ec;
  border-radius: 8px;
  cursor: pointer;
}
.buy-license-maint-toggle.selected {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.buy-license-maint-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.buy-license-maint-name { font-weight: 600; }
.buy-license-maint-blurb { font-size: 0.85rem; color: #666; }
.buy-license-maint-price { font-weight: 700; }
.buy-license-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}
@media (max-width: 800px) {
  .buy-license-layout { grid-template-columns: 1fr; }
}

.stripe-link code {
  color: #635bff;
}
.stripe-link:hover code {
  text-decoration: underline;
}

.sortable-header {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.sortable-header:hover {
  color: #4361ee;
  text-decoration: none;
}
.sortable-header.is-active {
  color: #4361ee;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.pagination-info {
  font-size: 0.85rem;
  color: #666;
}

/* Subscription cards */
.subscription-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.subscription-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.subscription-card-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.subscription-card-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}
.subscription-card-price {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
  white-space: nowrap;
}
.subscription-card-price-unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  display: block;
}
.subscription-card-stats {
  display: flex;
  gap: 2rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.subscription-card-stats > div { margin: 0; }
.subscription-card-stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 0.2rem;
}
.subscription-card-stats dd { margin: 0; font-size: 0.95rem; }
.subscription-card-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #4361ee;
  margin-bottom: 0.5rem;
}
.subscription-card-details summary:hover { text-decoration: underline; }
.subscription-card-empty {
  font-size: 0.85rem;
  color: #888;
  margin: 0.5rem 0 1rem;
}
.data-table-compact th,
.data-table-compact td {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}
.subscription-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.subscription-card-actions .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.count-muted {
  color: #888;
  font-weight: 400;
  font-size: 0.85em;
}

.license-group-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.license-group-header code {
  background: #f0f0f5;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
}
.license-group-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
}

/* Account dashboard cards */
.account-dashboard-company {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.account-dashboard-company-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.account-dashboard-company-header h2 {
  margin: 0;
  padding: 0;
  border: none;
}
.account-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.account-stat-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}
.account-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a2e;
}
.account-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .account-dashboard-stats { grid-template-columns: 1fr; }
}

/* Account dashboard — tighter typography than docs */
.account-shell .docs-content { font-size: 0.9rem; }
.account-shell .docs-content h1 { font-size: 1.5rem; }
.account-shell .docs-content h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}
.account-shell .docs-content h3 { font-size: 1rem; }
.account-shell .docs-content .detail-card dt { font-size: 0.8rem; }
.account-shell .docs-content .detail-card dd { font-size: 0.9rem; }

/* Markdown rendered content */
.docs-content h1 { margin-top: 0; }
.docs-content h2 {
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.docs-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.docs-content pre {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.docs-content table th,
.docs-content table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.9rem;
}
.docs-content table th {
  background: #f0f0f5;
  font-weight: 600;
}

.docs-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 6px;
}

/* Guide cards */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow-wrap: break-word;
  word-break: break-word;
}
.guide-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.guide-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* --- Configuration editor --- */

.config-editor {
  width: 100%;
  min-height: 400px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  background: #1a1a2e;
  color: #e0e0e0;
  border: none;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  tab-size: 2;
  resize: vertical;
}
.config-editor:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.config-preview pre {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
.config-preview pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.page-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* API reference */
/* --- Portal hero banner --- */

.portal-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 10rem 1.5rem;
  width: 100%;
  overflow: hidden;
}

.portal-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.portal-hero-content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.portal-hero-content * {
  pointer-events: auto;
}

.portal-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.portal-hero-subtitle {
  font-size: 1.15rem;
  color: #b0c4de;
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.portal-hero-subtitle strong {
  color: #fff;
}

/* --- Portal dashboard cards --- */

.portal-cards {
  position: relative;
}

.portal-card {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: "";
  position: absolute;
  top: -3rem;
  left: -5%;
  right: -5%;
  height: 6rem;
  background: inherit;
  z-index: 0;
}

.portal-card-left {
  background: #f8f9ff;
}
.portal-card-left::before {
  background: #f8f9ff;
  transform: rotate(-2deg);
}

.portal-card-right {
  background: #fff;
}
.portal-card-right::before {
  background: #fff;
  transform: rotate(2deg);
}

.portal-card-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.portal-card-text {
  flex: 1;
}

.portal-card-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.portal-card-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

.portal-card-visual {
  flex: 0 0 280px;
}

.portal-card-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .portal-card-inner {
    flex-direction: column;
  }
  .portal-card-visual {
    flex: none;
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .portal-hero h1 {
    font-size: 1.75rem;
  }
}

/* --- API module description --- */

.guides-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  max-width: 720px;
  margin-bottom: 2rem;
}

.api-module-desc {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.api-entry {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.api-entry:first-child {
  padding-top: 0;
}
.api-entry:last-child,
.api-entry:has(+ h2) {
  border-bottom: none;
}
.api-entry .api-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.api-signature {
  background: #1a1a2e;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow-x: auto;
}
.api-signature code {
  background: none;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.api-returns {
  font-size: 0.9rem;
  color: #555;
}
.api-returns code {
  background: none;
  padding: 0;
}

.api-params {
  margin: 0.75rem 0;
}
.api-params code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

.api-include {
  background: #1a1a2e;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.api-include code {
  background: none;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.api-details {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0.5rem 0;
}

.api-note {
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5d4037;
  border-radius: 0 4px 4px 0;
  overflow: visible;
}

.api-available-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #e3f2fd;
  color: #1565c0;
  margin-bottom: 0.75rem;
}

.api-available-upcoming {
  background: #fce4ec;
  color: #c62828;
}

/* --- Syntax highlighting (API signatures) --- */

.syn-keyword  { color: #c678dd; }                          /* purple — keywords */
.syn-type     { color: #61afef; }                          /* blue — types */
.syn-func     { color: #e5c07b; }                          /* gold — function names */
.syn-param    { color: #e06c75; }                          /* red-ish — parameter names */
.syn-arrow    { color: #56b6c2; }                          /* cyan — -> arrow */
.syn-paren    { color: #abb2bf; }                          /* light grey — parentheses */
.syn-bracket  { color: #abb2bf; }                          /* light grey — < > */
.syn-punct    { color: #abb2bf; }                          /* light grey — , ; = */

/* Code block tokens (dark background) */
.syn-comment   { color: #7f848e; font-style: italic; }    /* grey — comments */
.syn-string    { color: #98c379; }                         /* green — strings */
.syn-number    { color: #d19a66; }                         /* orange — numbers */
.syn-directive { color: #c678dd; }                         /* purple — preprocessor */

/* In tables (light background), use darker shades */
.data-table .syn-keyword  { color: #8839be; }
.data-table .syn-type     { color: #2a6fad; }
.data-table .syn-func     { color: #986801; }
.data-table .syn-param    { color: #c24a52; }
.data-table .syn-arrow    { color: #0e7e8c; }

/* --- Footer --- */

.site-footer {
  padding: 32px 0 24px;
  border-top: 1px solid #d5d5d5;
  background: #e6e6e6;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  width: min(1200px, 92vw);
  margin: 0 auto 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 4px;
}

.footer-col-title-admin {
  color: #8b1a1a;
}

.footer-col a {
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #d5d5d5;
  padding-top: 20px;
}

.admin-footer {
  background: #111;
  border-top: 1px solid #333;
}

.admin-footer .footer-col-title {
  color: #777;
}

.admin-footer .footer-col-title-admin {
  color: #d45555;
}

.admin-footer .footer-col a {
  color: #aaa;
}

.admin-footer .footer-col a:hover {
  color: #fff;
}

.admin-footer .footer-copy {
  color: #555;
  border-top-color: #333;
}

/* Portal footer — dark blue */
.portal-layout .site-footer {
  background: #1a1a2e;
  border-top: 1px solid #2a2a4a;
}
.portal-layout .footer-col-title {
  color: #8888aa;
}
.portal-layout .footer-col-title-admin {
  color: #f7c948;
}
.portal-layout .footer-col a {
  color: #b0b8d0;
}
.portal-layout .footer-col a:hover {
  color: #fff;
}
.portal-layout .footer-copy {
  color: #666888;
  border-top-color: #2a2a4a;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .detail-card dl {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 24px 36px;
    padding: 0 1.5rem;
  }
  .docs-layout {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
  }
}

/* Cookie consent banner — fixed at bottom until accepted */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}
.cookie-banner-text a {
  color: #9bb0ff;
  text-decoration: underline;
}
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner .btn { flex-shrink: 0; }

/* Support ticket thread */
.support-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0 1.5rem;
}
.support-message {
  padding: 0.9rem 1.1rem 0.9rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #ececf2;
  background: #fff;
  border-left-width: 4px;
}
.support-message.from-customer {
  background: #f0fdf4;        /* light green */
  border-color: #d9f0e0;
  border-left-color: #2e7d32; /* green accent */
}
.support-message.from-support {
  background: #f5f7ff;        /* light blue */
  border-color: #dfe4ff;
  border-left-color: #4361ee; /* brand blue accent */
}
.support-message.from-customer .support-message-head strong { color: #1b5e20; }
.support-message.from-support  .support-message-head strong { color: #1a1a2e; }
.support-message-head {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.support-message-body {
  font-size: 0.95rem;
  line-height: 1.55;
}
.support-message-body p { margin: 0 0 0.5rem; }
.support-message-body p:last-child { margin: 0; }

.form-hint {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #555;
}

/* Per-company sub-menu in the portal sidebar */
.sidebar-company {
  margin: 0.1rem 0;
}
.sidebar-company-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sidebar-company-link { flex: 1; }
.sidebar-company-caret {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 0.65rem;
  line-height: 1;
  transition: transform 0.15s ease-out, color 0.15s;
}
.sidebar-company-caret:hover { color: #1a1a2e; }
.sidebar-company:not(.is-open) .sidebar-company-caret { transform: rotate(-90deg); }
.sidebar-company-body[hidden] { display: none; }
