/* Granite Elite Security Platform — Main CSS */
/* ─── Reset & Base ─────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f7fb;
  color: #111;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: #b51a1a;
}

a:hover {
  color: #8a1212;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, .06);
  padding: 1px 5px;
  border-radius: 4px;
}

.muted {
  color: rgba(0, 0, 0, .55);
  font-size: 0.9em;
}

.required {
  color: #b51a1a;
  font-weight: 700;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 14px;
}

.mt-3 {
  margin-top: 20px;
}

.mb-3 {
  margin-bottom: 20px;
}

.container,
.ge-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ─── Top Bar ───────────────────────────────── */
.ge-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .09);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.ge-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.ge-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}

.ge-logo-img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.ge-brand-name {
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: -.2px;
}

/* ─── Navigation ─────────────────────────────── */
.ge-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ge-nav>a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.ge-nav>a:hover {
  background: rgba(0, 0, 0, .06);
}

/* User avatar / dropdown */
.ge-nav-user-menu {
  position: relative;
  margin-left: 8px;
}

.ge-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(181, 26, 26, .08);
  cursor: pointer;
  white-space: nowrap;
}

.ge-nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}

.ge-nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.ge-nav-dropdown a:hover {
  background: rgba(0, 0, 0, .05);
}

.ge-nav-dropdown .ge-nav-logout {
  color: #b51a1a;
  border-top: 1px solid rgba(0, 0, 0, .07);
}

/* User avatar / dropdown — show when .open class is added via JS */
.ge-nav-user-menu.open > .ge-nav-dropdown {
  display: block;
}

/* Logout form inside nav dropdown */
.ge-nav-logout-form {
  display: block;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, .07);
}

.ge-nav-logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #b51a1a;
  padding: 10px 16px;
  transition: background 0.15s;
}

.ge-nav-logout-btn:hover {
  background: rgba(181, 26, 26, .07);
}

/* Table utility classes (compose_message.html) */
.th-checkbox {
  width: 40px;
}

.td-center {
  text-align: center;
}

/* Proxy fill submit bar (proxy_fill.html) */
.proxy-submit-bar {
  margin-top: 16px;
}

/* (dropdown hover rule removed — now JS-driven via .open class) */

/* ─── Notification bell ──────────────────────── */
.ge-nav-bell {
  position: relative;
  font-size: 18px;
  text-decoration: none;
  margin-left: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
}

.ge-nav-bell:hover {
  background: rgba(0, 0, 0, .06);
}

.ge-nav-bell-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #b51a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  animation: ge-bell-pulse .6s ease-out;
}

@keyframes ge-bell-pulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.ge-hidden {
  display: none !important;
}

/* ─── Notification list ──────────────────────── */
.ge-notification-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ge-notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: background .15s;
}

.ge-notification-item:hover {
  background: rgba(0, 0, 0, .02);
}

.ge-notification-unread {
  background: rgba(181, 26, 26, .04);
  border-color: rgba(181, 26, 26, .12);
}

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

.ge-notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ge-notification-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  margin-bottom: 2px;
}

a.ge-notification-title:hover {
  color: #b51a1a;
  text-decoration: underline;
}

.ge-notification-message {
  margin: 0;
  font-size: 13px;
  color: rgba(0, 0, 0, .6);
  line-height: 1.4;
}

.ge-notification-action {
  flex-shrink: 0;
}

.ge-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.ge-main {
  padding: 22px 0 40px;
}

.ge-pagehead {
  margin: 0 0 20px;
}

.ge-pagehead h1 {
  margin: 0 0 4px;
  font-size: 1.6em;
  font-weight: 800;
}

.ge-footer {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 16px 0;
  background: #fff;
}

.ge-footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ge-footer-logo {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ─── Grid ───────────────────────────────────── */
.ge-grid {
  display: grid;
  gap: 16px;
}

.ge-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ge-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ge-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1050px) {
  .ge-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ge-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .ge-grid-2,
  .ge-grid-3,
  .ge-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ─── Cards ──────────────────────────────────── */
.ge-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.ge-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  background: rgba(0, 0, 0, .015);
}

.ge-card-header h2 {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
}

.ge-card-header-actions {
  display: flex;
  gap: 6px;
}

.ge-card-body {
  padding: 16px 18px;
}

/* ─── KPI cards ──────────────────────────────── */
.ge-kpi-card {
  padding: 18px;
}

.ge-kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(0, 0, 0, .5);
}

.ge-kpi-value {
  font-size: 2em;
  font-weight: 800;
  margin: 4px 0 2px;
  color: #b51a1a;
}

.ge-kpi-sub {
  font-size: 12px;
}

/* ─── Buttons ─────────────────────────────────── */
.ge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  background: #b51a1a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.ge-btn:hover {
  background: #8a1212;
  color: #fff;
}

.ge-btn-secondary {
  background: #eee;
  color: #111;
}

.ge-btn-secondary:hover {
  background: #ddd;
}

.ge-btn-danger {
  background: #c0392b;
}

.ge-btn-danger:hover {
  background: #922b21;
}

.ge-btn-large {
  padding: 12px 28px;
  font-size: 15px;
}

.ge-btn-small {
  padding: 5px 11px;
  font-size: 13px;
  border-radius: 8px;
}

.ge-btn-advert {
  background: #b51a1a;
}

.ge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Outline button variants */
.ge-btn-danger-outline {
  background: transparent;
  color: #b51a1a;
  border: 1.5px solid #b51a1a;
}
.ge-btn-danger-outline:hover {
  background: rgba(181, 26, 26, .08);
  color: #8a1212;
}

.ge-btn-success-outline {
  background: transparent;
  color: #15803d;
  border: 1.5px solid #15803d;
}
.ge-btn-success-outline:hover {
  background: rgba(22, 163, 74, .08);
  color: #116830;
}

/* ─── Form groups ────────────────────────────── */
.ge-form-group {
  margin-bottom: 10px;
}
.ge-form-group .ge-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(0, 0, 0, .7);
}

/* ─── Table responsive ───────────────────────── */
.ge-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Badges ──────────────────────────────────── */
.ge-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(0, 0, 0, .1);
}

.ge-badge-muted {
  background: rgba(0, 0, 0, .05);
  color: rgba(0, 0, 0, .6);
}

.ge-badge-success {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
  border-color: rgba(22, 163, 74, .3);
}

.ge-badge-warning {
  background: rgba(217, 119, 6, .12);
  color: #b45309;
  border-color: rgba(217, 119, 6, .3);
}

.ge-badge-danger {
  background: rgba(181, 26, 26, .12);
  color: #b51a1a;
  border-color: rgba(181, 26, 26, .3);
}

.ge-badge-info {
  background: rgba(59, 130, 246, .12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, .3);
}

/* ─── Alerts ──────────────────────────────────── */
.ge-alert {
  padding: 11px 15px;
  border-radius: 10px;
  margin: 10px 0;
  background: rgba(0, 0, 0, .05);
  font-weight: 500;
}

.ge-alert-error,
.ge-alert-danger {
  background: rgba(181, 26, 26, .10);
  color: #7f1d1d;
}

.ge-alert-success {
  background: rgba(22, 163, 74, .10);
  color: #14532d;
}

.ge-alert-info,
.ge-alert-warning {
  background: rgba(37, 99, 235, .08);
  color: #1e40af;
}

/* ─── Tables ──────────────────────────────────── */
.ge-table-wrap {
  overflow-x: auto;
}

.ge-table {
  width: 100%;
  border-collapse: collapse;
}

.ge-table th,
.ge-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.ge-table th {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: rgba(0, 0, 0, .5);
}

.ge-table-meta th {
  width: 30%;
  font-weight: 600;
  vertical-align: top;
}

.ge-table-answers th {
  font-size: 13px;
}

/* ─── Forms ───────────────────────────────────── */
.ge-form {
  max-width: 820px;
}

.ge-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
}

.ge-form-row label {
  font-weight: 600;
  font-size: 14px;
}

.ge-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .18);
  font-size: 14px;
  background: #fff;
  width: 100%;
  max-width: 100%;
}

.ge-input:focus {
  outline: 2px solid #b51a1a;
  border-color: transparent;
}

.ge-textarea {
  min-height: 110px;
  resize: vertical;
}

.ge-inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ge-inline-form .ge-input {
  width: auto;
}

.ge-question-label {
  font-weight: 500;
}

.ge-radio-group,
.ge-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.ge-radio-label,
.ge-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .15);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.ge-rating-group {
  display: flex;
  gap: 10px;
}

.ge-rating-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .15);
  cursor: pointer;
  font-weight: 700;
}

.ge-rating-hint {
  margin-top: 4px;
}

/* ─── Site cards ──────────────────────────────── */
.ge-site-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: rgba(181, 26, 26, .04);
}

.ge-site-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

/* ─── Assignment block ────────────────────────── */
.ge-assignment-block {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ge-assignment-block:last-child {
  border-bottom: none;
}

.ge-assignment-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
}

/* ─── Profile card ────────────────────────────── */
.ge-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #b51a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 800;
  margin-bottom: 12px;
}

/* ─── Advert section ──────────────────────────── */
.ge-advert-section {
  background: #111;
  color: #fff;
  padding: 0;
}

.ge-advert-block {
  border-top: 2px solid rgba(255, 255, 255, .06);
}

.ge-advert-image-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.ge-advert-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.ge-advert-text {
  padding: 18px 18px 10px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}

.ge-advert-cta {
  padding: 10px 18px 22px;
}

/* ─── Print ───────────────────────────────────── */
@media print {

  .ge-topbar,
  .ge-footer,
  .ge-advert-section,
  .ge-actions,
  .no-print,
  #ge-cookie-bar,
  #ge-cookie-modal {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .ge-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .ge-print-header {
    display: block !important;
  }
}

.ge-print-header {
  display: none;
}

.ge-print-logo {
  height: 40px;
}

.ge-print-footer {
  display: none;
  font-size: 12px;
  color: #555;
  margin-top: 32px;
}

/* ─── Filter bar ─────────────────────────────── */
.ge-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ge-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ge-filter-select {
  width: auto;
  min-width: 150px;
  max-width: 220px;
}

.ge-filter-input {
  width: auto;
  min-width: 140px;
  max-width: 200px;
}

.ge-filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}


/* ─── Print overrides ────────────────────────── */
@media print {

  .ge-topbar,
  .ge-footer,
  .ge-advert-section,
  .ge-actions,
  .no-print,
  .ge-filter-form,
  #ge-cookie-bar,
  #ge-cookie-modal {
    display: none !important;
  }

  body {
    background: #fff !important;
    font-size: 12px;
    color: #000;
  }

  .ge-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    break-inside: avoid;
  }

  .ge-print-header {
    display: block !important;
    margin-bottom: 16px;
  }

  .ge-print-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ge-print-footer {
    display: block !important;
  }

  a[href]:after {
    content: none !important;
  }
}

/* ─── Cookie Consent Banner ──────────────────── */
#ge-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #1a2533;
  color: #e8edf5;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .3);
  border-top: 3px solid #b51a1a;
  font-size: 14px;
  line-height: 1.6;
  animation: ge-cookie-slide-up 0.35s cubic-bezier(.22, .68, 0, 1.2) both;
}

@keyframes ge-cookie-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#ge-cookie-bar.ge-cookie-hidden {
  display: none;
}

.ge-cookie-text {
  flex: 1;
  min-width: 220px;
}

.ge-cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #fff;
}

.ge-cookie-text a {
  color: #f4a5a5;
  font-weight: 600;
  text-decoration: underline;
}

.ge-cookie-text a:hover {
  color: #fff;
}

.ge-cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ge-cookie-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.ge-cookie-allow {
  background: #b51a1a;
  color: #fff;
}

.ge-cookie-allow:hover {
  background: #8a1212;
}

.ge-cookie-reject {
  background: rgba(255, 255, 255, .12);
  color: #e8edf5;
  border: 1px solid rgba(255, 255, 255, .18);
}

.ge-cookie-reject:hover {
  background: rgba(255, 255, 255, .2);
}

.ge-cookie-modify {
  background: transparent;
  color: #a0b4cc;
  border: 1px solid rgba(255, 255, 255, .15);
}

.ge-cookie-modify:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

/* ── Cookie Modify Modal ── */
#ge-cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, .55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ge-cookie-modal.ge-cookie-modal-open {
  display: flex;
}

.ge-cookie-modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .3);
  padding: 30px 28px;
  width: 100%;
  max-width: 480px;
  color: #111;
  animation: ge-modal-pop .25s cubic-bezier(.22, .68, 0, 1.15) both;
}

@keyframes ge-modal-pop {
  from {
    transform: scale(.93);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ge-cookie-modal-box h2 {
  margin: 0 0 6px;
  font-size: 1.15em;
  font-weight: 800;
  color: #1a2533;
}

.ge-cookie-modal-box p {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(0, 0, 0, .6);
  line-height: 1.6;
}

.ge-cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.ge-cookie-toggle-row:last-of-type {
  border-bottom: none;
}

.ge-cookie-toggle-label {
  font-size: 14px;
  font-weight: 600;
}

.ge-cookie-toggle-label small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: rgba(0, 0, 0, .5);
  margin-top: 1px;
}

/* Toggle switch */
.ge-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ge-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ge-toggle-track {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}

.ge-toggle input:checked+.ge-toggle-track {
  background: #b51a1a;
}

.ge-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.ge-toggle input:checked+.ge-toggle-track::after {
  transform: translateX(20px);
}

.ge-toggle input:disabled+.ge-toggle-track {
  opacity: 0.6;
  cursor: not-allowed;
}

.ge-cookie-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  #ge-cookie-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .ge-cookie-modal-actions {
    flex-direction: column;
  }

  .ge-cookie-modal-actions .ge-cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Grid layout ─────────────────────────────────────────── */
.ge-grid { display: grid; gap: 20px; }
.ge-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ge-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .ge-grid-2, .ge-grid-3 { grid-template-columns: 1fr; }
}

/* ── Inline form (date-range selectors) ──────────────────── */
.ge-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ge-inline-form .ge-label { font-size: .82em; font-weight: 600; color: #555; margin: 0; }
.ge-inline-form .ge-input { width: auto; min-width: 140px; }
.ge-filter-input { padding: 6px 10px; font-size: .88em; }

/* ── Chart containers ────────────────────────────────────── */
.ge-grid canvas { width: 100% !important; min-height: 200px; }

/* ── 2FA QR code ─────────────────────────────────────────── */
.ge-2fa-qr { text-align: center; margin: 16px 0; }
.ge-qr-img { max-width: 220px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ─── Portal Switcher (Dual-Role Users) ─────────────────── */
.ge-portal-switcher {
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
}

.ge-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s cubic-bezier(.22, .68, 0, 1.05);
  border: 2px solid transparent;
  letter-spacing: .02em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.ge-switch-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: rgba(255,255,255,.15);
  transition: opacity .2s;
}
.ge-switch-btn:hover::before { opacity: 1; }

.ge-switch-admin {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 95, .3);
}
.ge-switch-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 58, 95, .4);
  color: #fff;
}

.ge-switch-guard {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 95, 70, .3);
  animation: ge-switch-pulse 2s ease-in-out 3;
}
.ge-switch-guard:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 95, 70, .4);
  color: #fff;
  animation: none;
}

@keyframes ge-switch-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(6, 95, 70, .3); }
  50% { box-shadow: 0 2px 16px rgba(6, 95, 70, .55), 0 0 0 4px rgba(4, 120, 87, .15); }
}

/* Field Mode banner */
.ge-field-mode-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 95, 70, .08), rgba(4, 120, 87, .06));
  border: 1px solid rgba(4, 120, 87, .2);
  color: #065f46;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.ge-field-mode-banner a {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ge-field-mode-banner a:hover { color: #065f46; }

@media (max-width: 768px) {
  .ge-portal-switcher { margin: 0 4px; }
  .ge-switch-btn { padding: 5px 12px; font-size: .78rem; }
}

/* ─── User Picker (Assignment Form) ─────────────────────── */
#user-picker {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
#user-picker::-webkit-scrollbar { width: 6px; }
#user-picker::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.ge-user-pick-item:has(input:checked) {
  background: rgba(181, 26, 26, .06) !important;
  border: 1px solid rgba(181, 26, 26, .15);
  border-radius: 6px;
}