/* ============================================================
   OGCC CORE (Plugin) — FINAL CSS (Scoped + Consistent)
   - Styles ONLY OGCC Core markup (no global button/label/input)
   - Plays nice inside OGCC Portal Shell (theme controls layout width)
   - Fixes “mystery top gap” (first-child margins) inside cards
   ============================================================ */

/* ============================================================
   1) TOKENS (safe — matches Portal Shell)
   ============================================================ */
:root{
  --ogcc-bg: #ffffff;
  --ogcc-surface: #ffffff;

  --ogcc-ink: #1c2622;
  --ogcc-muted: #5f6f67;
  --ogcc-border: rgba(28,38,34,.14);

  --ogcc-ocean: #1f6f8b;
  --ogcc-ocean-dark: #145a72;
  --ogcc-ocean-soft: rgba(31,111,139,.10);

  --ogcc-grass: #3f7d4a;
  --ogcc-grass-dark: #2f6138;

  --ogcc-radius: 18px;
  --ogcc-radius-sm: 12px;
  --ogcc-shadow: 0 16px 50px rgba(0,0,0,.08);
  --ogcc-shadow-sm: 0 10px 28px rgba(0,0,0,.06);
}

/* ============================================================
   2) SCOPE ROOTS (ONLY plugin zones)
   ============================================================ */
.ogcc-login-form,
.ogcc-dashboard,
.ogcc-account,
.ogcc-users-wrap,
.ogcc-dash-wrap,
.ogcc-docs-wrap,
.ogcc-account-wrap,
.ogcc-sub-cardui{
  color: var(--ogcc-ink);
}

/* Links (scoped) */
.ogcc-login-form a,
.ogcc-dashboard a,
.ogcc-account a,
.ogcc-users-wrap a,
.ogcc-dash-wrap a,
.ogcc-docs-wrap a,
.ogcc-account-wrap a,
.ogcc-sub-cardui a{
  color: var(--ogcc-ocean);
  text-decoration:none;
}
.ogcc-login-form a:hover,
.ogcc-dashboard a:hover,
.ogcc-account a:hover,
.ogcc-users-wrap a:hover,
.ogcc-dash-wrap a:hover,
.ogcc-docs-wrap a:hover,
.ogcc-account-wrap a:hover,
.ogcc-sub-cardui a:hover{
  color: var(--ogcc-ocean-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   3) CONTENT PRIMITIVES (scoped)
   ============================================================ */
.ogcc-card{
  background:#fff;
  border: 1px solid var(--ogcc-border);
  border-radius: var(--ogcc-radius);
  box-shadow: var(--ogcc-shadow-sm);
  padding: 13px;
}

/* Kill common “first element top gap” inside OGCC cards */
.ogcc-card > :first-child{ margin-top: 0 !important; }

/* Titles + helpers */
.ogcc-page-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--ogcc-ocean);
}
.ogcc-h2,
.ogcc-h3{
  margin: 0 0 5px;
  font-weight: 800;
  letter-spacing: -0.15px;
  color: var(--ogcc-ocean);
}
.ogcc-help{
  display:block;
  margin: 4px 0 10px;
  font-size: 11px;
  color: rgba(28,38,34,.60);
}
.muted{
  color: var(--ogcc-muted);
}

/* Notice blocks */
.ogcc-notice{
  border: 1px solid rgba(28,38,34,.10);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 0 0 12px;
  font-size: 13px;
}
.ogcc-notice.is-ok{ background: rgba(63,125,74,.08); }
.ogcc-notice.is-bad{ background: rgba(210,50,50,.06); }

/* Legacy notices (if any pages still use these classes) */
.ogcc-error{
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(180,30,30,.18);
  background: rgba(180,30,30,.06);
  font-size: 13px;
}
.ogcc-success{
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(63,125,74,.18);
  background: rgba(63,125,74,.08);
  font-size: 13px;
}

/* Simple rows/crumbs helpers used by dashboard.php */
.ogcc-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ogcc-crumbs{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(28,38,34,.62);
}
.ogcc-crumbs a{ text-decoration:none; }
.ogcc-crumbs a:hover{ text-decoration:none; }

/* ============================================================
   4) FORMS (STRICTLY scoped to OGCC wrappers)
   ============================================================ */
.ogcc-login-form label,
.ogcc-account label,
.ogcc-dashboard label,
.ogcc-users-wrap label,
.ogcc-dash-wrap label,
.ogcc-docs-wrap label,
.ogcc-account-wrap label,
.ogcc-sub-cardui label{
  display:block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ogcc-ink);
}

/* Inputs/select/textarea scoped */
.ogcc-login-form input[type="text"],
.ogcc-login-form input[type="email"],
.ogcc-login-form input[type="password"],
.ogcc-login-form input[type="tel"],
.ogcc-login-form input[type="search"],
.ogcc-login-form input[type="url"],
.ogcc-login-form input[type="number"],
.ogcc-login-form select,
.ogcc-login-form textarea,

.ogcc-account input[type="text"],
.ogcc-account input[type="email"],
.ogcc-account input[type="password"],
.ogcc-account input[type="tel"],
.ogcc-account input[type="search"],
.ogcc-account input[type="url"],
.ogcc-account input[type="number"],
.ogcc-account select,
.ogcc-account textarea,

.ogcc-dashboard input[type="text"],
.ogcc-dashboard input[type="email"],
.ogcc-dashboard input[type="password"],
.ogcc-dashboard input[type="tel"],
.ogcc-dashboard input[type="search"],
.ogcc-dashboard input[type="url"],
.ogcc-dashboard input[type="number"],
.ogcc-dashboard select,
.ogcc-dashboard textarea,

.ogcc-users-wrap input[type="text"],
.ogcc-users-wrap input[type="email"],
.ogcc-users-wrap input[type="password"],
.ogcc-users-wrap input[type="tel"],
.ogcc-users-wrap input[type="search"],
.ogcc-users-wrap input[type="url"],
.ogcc-users-wrap input[type="number"],
.ogcc-users-wrap select,
.ogcc-users-wrap textarea,

.ogcc-dash-wrap input[type="text"],
.ogcc-dash-wrap input[type="email"],
.ogcc-dash-wrap input[type="password"],
.ogcc-dash-wrap input[type="tel"],
.ogcc-dash-wrap input[type="search"],
.ogcc-dash-wrap input[type="url"],
.ogcc-dash-wrap input[type="number"],
.ogcc-dash-wrap select,
.ogcc-dash-wrap textarea,

.ogcc-docs-wrap input[type="text"],
.ogcc-docs-wrap input[type="email"],
.ogcc-docs-wrap input[type="password"],
.ogcc-docs-wrap input[type="tel"],
.ogcc-docs-wrap input[type="search"],
.ogcc-docs-wrap input[type="url"],
.ogcc-docs-wrap input[type="number"],
.ogcc-docs-wrap select,
.ogcc-docs-wrap textarea,

.ogcc-account-wrap input[type="text"],
.ogcc-account-wrap input[type="email"],
.ogcc-account-wrap input[type="password"],
.ogcc-account-wrap input[type="tel"],
.ogcc-account-wrap input[type="search"],
.ogcc-account-wrap input[type="url"],
.ogcc-account-wrap input[type="number"],
.ogcc-account-wrap select,
.ogcc-account-wrap textarea,

.ogcc-sub-cardui input[type="text"],
.ogcc-sub-cardui input[type="email"],
.ogcc-sub-cardui input[type="password"],
.ogcc-sub-cardui input[type="tel"],
.ogcc-sub-cardui input[type="search"],
.ogcc-sub-cardui input[type="url"],
.ogcc-sub-cardui input[type="number"],
.ogcc-sub-cardui select,
.ogcc-sub-cardui textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding: 11px 12px;
  border-radius: var(--ogcc-radius-sm);
  border: 1px solid var(--ogcc-border);
  background:#fff;
  color: var(--ogcc-ink);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ogcc-login-form input::placeholder,
.ogcc-account input::placeholder,
.ogcc-dashboard input::placeholder,
.ogcc-users-wrap input::placeholder,
.ogcc-dash-wrap input::placeholder,
.ogcc-docs-wrap input::placeholder,
.ogcc-account-wrap input::placeholder,
.ogcc-sub-cardui input::placeholder,
.ogcc-login-form textarea::placeholder,
.ogcc-account textarea::placeholder,
.ogcc-dashboard textarea::placeholder,
.ogcc-users-wrap textarea::placeholder,
.ogcc-dash-wrap textarea::placeholder,
.ogcc-docs-wrap textarea::placeholder,
.ogcc-account-wrap textarea::placeholder,
.ogcc-sub-cardui textarea::placeholder{
  color: rgba(28,38,34,.45);
}

.ogcc-login-form input:focus,
.ogcc-account input:focus,
.ogcc-dashboard input:focus,
.ogcc-users-wrap input:focus,
.ogcc-dash-wrap input:focus,
.ogcc-docs-wrap input:focus,
.ogcc-account-wrap input:focus,
.ogcc-sub-cardui input:focus,
.ogcc-login-form select:focus,
.ogcc-account select:focus,
.ogcc-dashboard select:focus,
.ogcc-users-wrap select:focus,
.ogcc-dash-wrap select:focus,
.ogcc-docs-wrap select:focus,
.ogcc-account-wrap select:focus,
.ogcc-sub-cardui select:focus,
.ogcc-login-form textarea:focus,
.ogcc-account textarea:focus,
.ogcc-dashboard textarea:focus,
.ogcc-users-wrap textarea:focus,
.ogcc-dash-wrap textarea:focus,
.ogcc-docs-wrap textarea:focus,
.ogcc-account-wrap textarea:focus,
.ogcc-sub-cardui textarea:focus{
  outline:none;
  border-color: var(--ogcc-ocean);
  box-shadow: 0 0 0 4px var(--ogcc-ocean-soft);
}

/* Checkbox/radio accent (scoped) */
.ogcc-login-form input[type="checkbox"],
.ogcc-login-form input[type="radio"],
.ogcc-account input[type="checkbox"],
.ogcc-account input[type="radio"],
.ogcc-dashboard input[type="checkbox"],
.ogcc-dashboard input[type="radio"],
.ogcc-users-wrap input[type="checkbox"],
.ogcc-users-wrap input[type="radio"],
.ogcc-dash-wrap input[type="checkbox"],
.ogcc-dash-wrap input[type="radio"],
.ogcc-docs-wrap input[type="checkbox"],
.ogcc-docs-wrap input[type="radio"],
.ogcc-account-wrap input[type="checkbox"],
.ogcc-account-wrap input[type="radio"],
.ogcc-sub-cardui input[type="checkbox"],
.ogcc-sub-cardui input[type="radio"]{
  accent-color: var(--ogcc-grass);
}

/* Form grid helper */
.ogcc-form-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 780px){
  .ogcc-form-grid-2{ grid-template-columns: 1fr; }
}

/* ============================================================
   5) BUTTONS (scoped)
   ============================================================ */
/* OGCC button baseline */
.ogcc-btn,
.ogcc-dash-btn{
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

/* Primary pill */
.ogcc-btn,
.ogcc-dash-btn,
.ogcc-login-form button.ogcc-btn,
.ogcc-account button.ogcc-btn,
.ogcc-dashboard button.ogcc-btn,
.ogcc-users-wrap button.ogcc-btn,
.ogcc-dash-wrap button.ogcc-btn,
.ogcc-docs-wrap button.ogcc-btn,
.ogcc-account-wrap button.ogcc-btn,
.ogcc-sub-cardui button.ogcc-btn,
.ogcc-login-form a.ogcc-btn,
.ogcc-account a.ogcc-btn,
.ogcc-dashboard a.ogcc-btn,
.ogcc-users-wrap a.ogcc-btn,
.ogcc-dash-wrap a.ogcc-btn,
.ogcc-docs-wrap a.ogcc-btn,
.ogcc-account-wrap a.ogcc-btn,
.ogcc-sub-cardui a.ogcc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(135deg, var(--ogcc-ocean), var(--ogcc-ocean-dark));
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.ogcc-btn:hover,
.ogcc-dash-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  text-decoration:none;
}

.ogcc-btn:active,
.ogcc-dash-btn:active{
  transform: translateY(0);
  filter: brightness(.98);
}

.ogcc-btn.subtle,
.ogcc-dash-btn.subtle{
  background: transparent;
  color: var(--ogcc-ink);
  border: 1px solid var(--ogcc-border);
  box-shadow:none;
}
.ogcc-btn.subtle:hover,
.ogcc-dash-btn.subtle:hover{
  border-color: var(--ogcc-ocean);
  color: var(--ogcc-ocean);
  background: rgba(31,111,139,.06);
  box-shadow: 0 0 0 2px rgba(31,111,139,.10);
  transform:none;
}

.ogcc-btn.grass,
.ogcc-dash-btn.grass{
  background: linear-gradient(135deg, var(--ogcc-grass), var(--ogcc-grass-dark));
  color:#fff;
}

/* Semantic variants (for CTAs like Google connect/disconnect) */
.ogcc-btn.ogcc-btn--success{
  background: linear-gradient(135deg, var(--ogcc-grass), var(--ogcc-grass-dark));
  color:#fff;
}
.ogcc-btn.ogcc-btn--danger{
  background: linear-gradient(135deg, #c0392b, #7f1d1d);
  color:#fff;
}
.ogcc-btn.ogcc-btn--danger:hover,
.ogcc-btn.ogcc-btn--success:hover{
  filter: brightness(1.02);
}

.ogcc-btn[disabled],
.ogcc-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* Link-style secondary button (used in Users table) */
.ogcc-linkbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--ogcc-border);
  background: rgba(31,111,139,.06);
  color: var(--ogcc-ocean);
  text-decoration:none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor:pointer;
}
.ogcc-linkbtn:hover{
  background: rgba(31,111,139,.10);
  border-color: rgba(31,111,139,.22);
  text-decoration:none;
}

/* Button row helper */
.ogcc-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

/* ============================================================
   6) LOGIN CARD (scoped)
   ============================================================ */
.ogcc-auth-card{
  max-width: 460px;
  margin: clamp(40px, 8vh, 96px) auto;
  padding: 30px 30px 26px;
  position: relative;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--ogcc-border);
  border-radius: 18px;
  box-shadow: var(--ogcc-shadow);
}

.ogcc-auth-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:6px;
  background: linear-gradient(90deg, var(--ogcc-ocean), var(--ogcc-ocean-dark));
}

.ogcc-login-form p{ margin: 0 0 14px; }

.ogcc-login-error{
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(180,30,30,.18);
  background: rgba(180,30,30,.06);
  color: rgba(120,20,20,.95);
  font-size: 13px;
}

/* Success / info notice (used by Password Reset + Set Password flows) */
.ogcc-login-notice{
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20,120,60,.18);
  background: rgba(20,120,60,.06);
  color: rgba(20,90,45,.95);
  font-size: 13px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.ogcc-login-notice__icon{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(20,120,60,.22);
  background: rgba(20,120,60,.10);
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

/* ============================================================
   7) WRAPPERS (FULL WIDTH — NO horizontal padding here)
   ============================================================ */
.ogcc-dashboard,
.ogcc-account,
.ogcc-users-wrap,
.ogcc-dash-wrap,
.ogcc-docs-wrap,
.ogcc-account-wrap,
.ogcc-sub-cardui{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0; /* theme shell controls padding; plugin should not */
}

/* If any legacy wrappers still had width caps, crush them */
.ogcc-dash-wrap,
.ogcc-docs-wrap,
.ogcc-account-wrap,
.ogcc-sub-cardui{
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   8) TABLES (Users)
   ============================================================ */
.ogcc-table-wrap{ overflow:auto; }

.ogcc-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 760px;
}

.ogcc-table th{
  text-align:left;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(28,38,34,.55);
  padding: 4px 7px;
}

.ogcc-table td{
  padding: 8px 7px;
  background:#fff;
  border-top: 1px solid var(--ogcc-border);
  border-bottom: 1px solid var(--ogcc-border);
}

.ogcc-table td:first-child{
  border-left: 1px solid var(--ogcc-border);
  border-radius: 12px 0 0 12px;
}

.ogcc-table td:last-child{
  border-right: 1px solid var(--ogcc-border);
  border-radius: 0 12px 12px 0;
}

.ogcc-pill{
  display:inline-flex;
  align-items:center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(28,38,34,.10);
  background: rgba(31,111,139,.06);
  color: rgba(28,38,34,.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============================================================
   9) RESET PAGE (optional portal-branded wrapper)
   ============================================================ */
.ogcc-reset-wrap{
  max-width: 420px;
  margin: clamp(40px, 8vh, 96px) auto;
  padding: 28px 28px 22px;
  position: relative;
  overflow:hidden;

  background:#fff;
  border:1px solid var(--ogcc-border);
  border-radius: 18px;
  box-shadow: var(--ogcc-shadow);
}
.ogcc-reset-wrap::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:6px;
  background: linear-gradient(90deg, var(--ogcc-ocean), var(--ogcc-ocean-dark));
}

.ogcc-reset-title{
  margin: 10px 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--ogcc-ocean);
}
.ogcc-reset-sub{
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(28,38,34,.65);
}
.ogcc-reset-actions{
  display:flex !important;
  gap: 10px;
  justify-content:center !important;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Center single-action rows on auth forms (e.g., Reset Password submit) */
.ogcc-auth-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-top: 10px;
}

/* Extra guard: some themes apply button floats/margins */
.ogcc-auth-actions .ogcc-btn,
.ogcc-auth-actions button,
.ogcc-auth-actions input[type="submit"]{
  float:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.ogcc-auth-actions .ogcc-btn,
.ogcc-reset-actions .ogcc-btn{
  margin-left:auto !important;
  margin-right:auto !important;
}

/* ============================================================
   10) MOBILE
   ============================================================ */
@media (max-width: 520px){
  .ogcc-login-form{
    margin: 28px 14px;
    padding: 26px 22px 22px;
  }
  .ogcc-reset-wrap{
    margin: 28px 14px;
    padding: 22px 20px 18px;
  }
}


/* Danger action */
.ogcc-linkbtn.ogcc-linkbtn--danger{
  background: rgba(180,30,30,.06);
  border-color: rgba(180,30,30,.20);
  color: rgba(140,20,20,.95);
}
.ogcc-linkbtn.ogcc-linkbtn--danger:hover{
  background: rgba(180,30,30,.10);
}


/* ============================================================
   AUTH BUTTON — OCEAN OUTLINE (clear inside)
   - Forces your preferred portal blue outline button on auth forms
   ============================================================ */
.ogcc-btn.ogcc-btn--outline{
  background: transparent !important;
  color: var(--ogcc-ocean) !important;
  border: 1px solid var(--ogcc-ocean) !important;
  box-shadow: none !important;
}
.ogcc-btn.ogcc-btn--outline:hover{
  background: rgba(31,111,139,.06) !important;
  border-color: var(--ogcc-ocean-dark) !important;
  color: var(--ogcc-ocean-dark) !important;
  transform: none !important;
  box-shadow: 0 0 0 2px rgba(31,111,139,.10) !important;
}

/* Auth container helper (works with Portal Shell .ogcc-reset-wrap) */
.ogcc-login-wrap{
  max-width: 420px;
  margin: clamp(40px, 8vh, 96px) auto;
}


/* ============================================================
   USERS MANAGER — COMPACT TABLE + DROPDOWN ACTIONS
   - Matches Portal Shell typography + tighter rows
   ============================================================ */

.ogcc-users-wrap .ogcc-table{
  border-spacing: 0 4px; /* was 0 8px (theme) */
  min-width: 640px;
}

.ogcc-users-wrap .ogcc-table th{
  padding: 4px 8px;
  font-size: 11.5px;
}

.ogcc-users-wrap .ogcc-table td{
  padding: 7px 8px; /* tighten row height */
  font-size: 13px;
  line-height: 1.25;
}

/* Tighten the pill a bit */
.ogcc-users-wrap .ogcc-pill{
  font-size: 10.5px;
  padding: 1px 8px;
  letter-spacing: .08em;
}

/* Compact actions trigger */
.ogcc-linkbtn--compact{
  padding: 7px 10px;
  font-size: 11px;
}

/* Dropdown menu */
.ogcc-actions-dd{ position: relative; }
.ogcc-actions-dd summary::-webkit-details-marker{ display:none; }

.ogcc-actions-menu{
  position:absolute;
  right:0;
  top: calc(100% + 6px);
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow: var(--ogcc-shadow-sm, 0 10px 28px rgba(0,0,0,.06));
  z-index: 9999;
}

.ogcc-actions-dd:not([open]) .ogcc-actions-menu{ display:none; }

.ogcc-actions-menu form{ margin:0; }

.ogcc-actions-item{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(28,38,34,.78);
}

.ogcc-actions-item:hover{
  background: rgba(31,111,139,.06);
  border-color: rgba(31,111,139,.18);
  color: var(--ogcc-ocean, #1f6f8b);
}

.ogcc-actions-item.danger{
  color: rgba(138,31,43,.90);
}
.ogcc-actions-item.danger:hover{
  background: rgba(210,50,50,.06);
  border-color: rgba(210,50,50,.18);
  color: rgba(138,31,43,1);
}


/* ============================================================
   AUTH PAGES UX (plugin-baked)
   - Hide sidebar + hamburger on auth pages
   - Hide WP page title
   - Keep branded header + centered card
   ============================================================ */
body.ogcc-auth-page .ogcc-sidebar,
body.ogcc-auth-page .ogcc-scrim{ display:none !important; }

body.ogcc-auth-page .ogcc-mobile-toggle{ display:none !important; }

body.ogcc-auth-page .entry-title,
body.ogcc-auth-page .page-title,
body.ogcc-auth-page h1.entry-title,
body.ogcc-auth-page .ogcc-page-title{ display:none !important; }

body.ogcc-auth-page .ogcc-shell{ display:block; }
body.ogcc-auth-page .ogcc-main-inner{ padding-top: clamp(12px, 4vh, 44px) !important; }

/* Hide WP page titles on selected OGCC Core pages that render their own headings */
body.ogcc-core-hide-title .entry-title,
body.ogcc-core-hide-title .page-title,
body.ogcc-core-hide-title h1.entry-title{ display:none !important; }

/* Users table: allow horizontal scroll without clipping dropdowns */
.ogcc-users-wrap .ogcc-table-wrap{
  overflow-x: auto;
  overflow-y: visible;
}

/* Action dropdown: ensure menu can escape table cell */
.ogcc-users-wrap .ogcc-table td{ position: relative; }
.ogcc-actions-dd{ position: relative; display:inline-block; }
.ogcc-actions-menu{
  position:absolute;
  right:0;
  top: calc(100% + 6px);
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  z-index: 9999;
}
.ogcc-actions-dd[open] .ogcc-actions-menu{ display:block; }
.ogcc-actions-dd .ogcc-actions-menu{ display:none; }

.ogcc-actions-menu form{ margin:0; }
.ogcc-actions-menu .ogcc-linkbtn{ width:100%; justify-content:flex-start; }

/* Compact link button variant used for action trigger */
.ogcc-linkbtn--compact{
  padding: 8px 10px;
  font-size: 11px;
}

/* Portal blue outline button (clear inside) */
.ogcc-btn.ogcc-btn--outline{
  background: transparent !important;
  color: var(--ogcc-ocean, #1f6f8b) !important;
  border: 1px solid var(--ogcc-ocean, #1f6f8b) !important;
  box-shadow: none !important;
}
.ogcc-btn.ogcc-btn--outline:hover{
  background: rgba(31,111,139,.06) !important;
  border-color: var(--ogcc-ocean-dark, #145a72) !important;
  color: var(--ogcc-ocean-dark, #145a72) !important;
  transform: none !important;
  box-shadow: 0 0 0 2px rgba(31,111,139,.10) !important;
}


/* ============================================================
   USERS MANAGER — Compact table + dropdown that does NOT clip
   ============================================================ */
.ogcc-users-wrap .ogcc-users-search input{
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.ogcc-users-wrap .ogcc-table-wrap{ overflow: visible !important; }
.ogcc-users-wrap .ogcc-users-table{
  min-width: 0 !important;
  width: 100%;
  table-layout: auto;
}
.ogcc-users-wrap .ogcc-users-table th,
.ogcc-users-wrap .ogcc-users-table td{
  padding: 8px 8px !important;
  font-size: 13px;
  vertical-align: middle;
}
.ogcc-users-wrap .ogcc-users-email{
  /* Prevent “vertical letter stacking” on narrow widths */
  word-break: normal;
  overflow-wrap: anywhere;
}
.ogcc-users-wrap .ogcc-users-actions-col{ width: 130px; }
.ogcc-users-wrap .ogcc-users-actions{ position: relative; overflow: visible; }

/* Actions dropdown: keep it compact even when JS positions it fixed */
.ogcc-actions-menu{
  width: 260px;
  max-width: calc(100vw - 16px);
  max-height: 70vh;
  overflow: auto;
}

/* Edit User modal */
body.ogcc-modal-open{ overflow:hidden; }
.ogcc-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index: 100000; }
.ogcc-modal[aria-hidden="false"]{ display:flex; }
.ogcc-modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.35); }
.ogcc-modal__panel{
  position:relative;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  background:#fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  overflow:hidden;
}
.ogcc-modal__header{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 14px 16px; border-bottom:1px solid rgba(0,0,0,.08); }
.ogcc-modal__title{ font-weight: 900; letter-spacing:.08em; text-transform:uppercase; font-size: 14px; color: rgba(28,38,34,.85); }
.ogcc-modal__close{ width:36px; height:36px; border-radius: 12px; border:1px solid rgba(0,0,0,.10); background:#fff; cursor:pointer; font-size: 20px; line-height: 1; }
.ogcc-modal__close:hover{ background: rgba(31,111,139,.06); border-color: rgba(31,111,139,.18); }
.ogcc-modal__body{ padding: 14px 16px; display:grid; gap: 10px; overflow:auto; max-height: calc(100vh - 170px); }
.ogcc-modal__footer{ display:flex; gap:10px; justify-content:flex-end; padding-top: 6px; }

.ogcc-actions-dd{ position: relative; }
.ogcc-actions-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  width: 260px;
  max-width: calc(100vw - 16px);
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: var(--ogcc-shadow-sm);
  padding: 6px;
  z-index: 99999;
}
.ogcc-actions-dd:not([open]) .ogcc-actions-menu{ display:none; }
.ogcc-actions-item{
  width: 100%;
  text-align: left;
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(28,38,34,.72);
}
.ogcc-actions-item:hover{
  background: rgba(31,111,139,.06);
  border-color: rgba(31,111,139,.18);
  color: var(--ogcc-ocean);
}
.ogcc-actions-item.danger{ color: rgba(160,30,45,.92); }
.ogcc-actions-item.danger:hover{
  background: rgba(160,30,45,.08);
  border-color: rgba(160,30,45,.22);
  color: rgba(160,30,45,1);
}
.ogcc-actions-sep{
  height:1px;
  background: rgba(28,38,34,.10);
  margin: 6px 6px;
}

.ogcc-pill--ok{ background: rgba(63,125,74,.10); border-color: rgba(63,125,74,.16); }
.ogcc-pill--bad{ background: rgba(210,50,50,.06); border-color: rgba(210,50,50,.16); color: rgba(160,30,45,.92); }

.ogcc-users-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28,38,34,.18), transparent);
  margin: 18px 0 14px;
}


/* ============================================================
   AUTH PAGES — Clean shell + polished front door
   ============================================================ */
body.ogcc-auth-page .ogcc-sidebar,
body.ogcc-auth-page .ogcc-scrim{ display:none !important; }
body.ogcc-auth-page .ogcc-mobile-toggle{ display:none !important; }
body.ogcc-auth-page .ogcc-page-title,
body.ogcc-auth-page .entry-title,
body.ogcc-auth-page h1.entry-title{ display:none !important; }
body.ogcc-auth-page .ogcc-main-inner{ padding-top: clamp(12px, 4vh, 44px) !important; }

.ogcc-auth-card{
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;

  background: #fff;
  border: 1px solid var(--ogcc-border);
  border-radius: 18px;
  box-shadow: var(--ogcc-shadow);
  padding: 28px 28px 22px;
  position: relative;
  overflow: hidden;
}
.ogcc-auth-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:6px;
  background: linear-gradient(90deg, var(--ogcc-ocean), var(--ogcc-ocean-dark));
}

.ogcc-auth-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin-top: 8px;
}
.ogcc-auth-remember{
  display:flex;
  gap: 10px;
  align-items:center;
  font-size: 13px;
  font-weight: 650;
  color: rgba(28,38,34,.72);
}

.ogcc-input-wrap{ position: relative; display:block; }
.ogcc-pw-field input{ padding-right: 92px; }
.ogcc-pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.ogcc-auth-hero{ text-align:center; margin-top: 0; }
.ogcc-auth-logo{
  width: 76px; height: 76px;
  margin: 4px auto 10px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--ogcc-ocean), var(--ogcc-grass));
  box-shadow: 0 14px 34px rgba(31,111,139,.18);
}

.ogcc-auth-logo-img{ width: 76px; height: 76px; object-fit: contain; display:block; margin: 4px auto 10px; }
.ogcc-auth-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
}
.ogcc-auth-sub{
  font-size: 13px;
  color: rgba(28,38,34,.65);
  margin: 0 0 14px;
}
.ogcc-auth-links{ text-align:center; margin-top: 10px; }

/* Login form inside auth card */
.ogcc-login-form{ margin: 0; }

.ogcc-auth-link{ font-size: 12.5px; font-weight: 800; letter-spacing:.08em; text-transform: uppercase; color: var(--ogcc-ocean); }

/* Centered auth actions (remember + button) */
.ogcc-auth-actions{
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.ogcc-auth-remember{
  display:flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
  color: rgba(28,38,34,.70);
}

/* Password field + show/hide (align toggle to input, not whole <p>) */
.ogcc-pw-field{ position: static; }
.ogcc-input-wrap{ position: relative; }
.ogcc-input-wrap input{ padding-right: 84px; }
.ogcc-pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--ogcc-border);
  background: rgba(31,111,139,.06);
  color: var(--ogcc-ocean);
  border-radius: 999px;
  padding: 8px 12px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ogcc-pw-toggle:hover{ background: rgba(31,111,139,.10); border-color: rgba(31,111,139,.22); }

/* Strength meter */
.ogcc-pw-meter-wrap{
  display:flex; gap:10px; align-items:center;
  margin-top: 10px;
}
.ogcc-pw-meter{
  flex: 1;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(28,38,34,.06);
  position: relative;
  overflow:hidden;
}
.ogcc-pw-meter::before{
  content:"";
  position:absolute; inset:0;
  width: var(--ogcc-pw-fill, 20%);
  background: var(--ogcc-pw-bg, linear-gradient(90deg, var(--ogcc-ocean), var(--ogcc-ocean-dark)));
  opacity: var(--ogcc-pw-opacity, .25);
}
.ogcc-pw-meter[data-strength="weak"]{ --ogcc-pw-fill: 25%; --ogcc-pw-opacity: .25; }
.ogcc-pw-meter[data-strength="ok"]{ --ogcc-pw-fill: 60%; --ogcc-pw-opacity: .55; }
.ogcc-pw-meter[data-strength="strong"]{ --ogcc-pw-fill: 85%; --ogcc-pw-opacity: .85; }
.ogcc-pw-meter[data-strength="very"]{
  --ogcc-pw-fill: 100%;
  --ogcc-pw-opacity: .95;
  --ogcc-pw-bg: linear-gradient(90deg, var(--ogcc-grass), var(--ogcc-grass-dark));
}
.ogcc-pw-meter-label{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(28,38,34,.62);
  min-width: 92px;
  text-align:right;
}

/* Hide WP title on core pages that render their own title */
body.ogcc-core-hide-title .entry-title,
body.ogcc-core-hide-title .ogcc-page-title,
body.ogcc-core-hide-title h1.entry-title{ display:none !important; }

/* Pager */
.ogcc-users-pager{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top: 12px; }
.ogcc-users-pager__meta{ font-size: 12.5px; color: rgba(28,38,34,.62); font-weight: 650; }
.ogcc-users-pager__links{ display:flex; gap:6px; flex-wrap:wrap; }
.ogcc-linkbtn--compact{ padding: 8px 10px; font-size: 11px; }
.ogcc-linkbtn--compact.is-active{
  background: rgba(31,111,139,.12);
  border-color: rgba(31,111,139,.22);
}

/* ============================================================
   USERS MANAGER — Mobile "card" rows (CSS-only)
   ============================================================ */
@media (max-width: 980px){
  .ogcc-users-wrap .ogcc-table{ min-width: 0 !important; }
  .ogcc-users-wrap .ogcc-table thead{ display:none; }
  .ogcc-users-wrap .ogcc-table,
  .ogcc-users-wrap .ogcc-table tbody,
  .ogcc-users-wrap .ogcc-table tr,
  .ogcc-users-wrap .ogcc-table td{ display:block; width:100%; }

  .ogcc-users-wrap .ogcc-table tr{
    margin: 0 0 10px;
  }
  .ogcc-users-wrap .ogcc-table td{
    border: 1px solid var(--ogcc-border);
    border-top: none;
    padding: 10px 12px !important;
    border-radius: 0;
    background:#fff;
  }
  .ogcc-users-wrap .ogcc-table td:first-child{
    border-top: 1px solid var(--ogcc-border);
    border-radius: 16px 16px 0 0;
  }
  .ogcc-users-wrap .ogcc-table td:last-child{
    border-radius: 0 0 16px 16px;
  }

  .ogcc-users-wrap .ogcc-table td::before{
    content: attr(data-label);
    display:block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(28,38,34,.55);
    margin-bottom: 4px;
  }

  /* Emails: wrap cleanly (avoid per-character vertical stacking) */
  .ogcc-users-wrap .ogcc-table .ogcc-users-email{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================================
   AUTH FORMS — use same portal inputs/buttons without double cards
   - Outer container is .ogcc-auth-card. Form is .ogcc-auth-form.
   ============================================================ */
.ogcc-auth-card label,
.ogcc-auth-form label{
  display:block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ogcc-ink);
}

.ogcc-auth-card input[type="text"],
.ogcc-auth-card input[type="email"],
.ogcc-auth-card input[type="password"],
.ogcc-auth-card input[type="tel"],
.ogcc-auth-card input[type="search"],
.ogcc-auth-card input[type="url"],
.ogcc-auth-card input[type="number"],
.ogcc-auth-card select,
.ogcc-auth-card textarea,
.ogcc-auth-form input[type="text"],
.ogcc-auth-form input[type="email"],
.ogcc-auth-form input[type="password"],
.ogcc-auth-form input[type="tel"],
.ogcc-auth-form input[type="search"],
.ogcc-auth-form input[type="url"],
.ogcc-auth-form input[type="number"],
.ogcc-auth-form select,
.ogcc-auth-form textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding: 14px 14px;
  border-radius: var(--ogcc-radius-sm);
  border: 1px solid var(--ogcc-border);
  background:#fff;
  color: var(--ogcc-ink);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ogcc-auth-card input:focus,
.ogcc-auth-card select:focus,
.ogcc-auth-card textarea:focus,
.ogcc-auth-form input:focus,
.ogcc-auth-form select:focus,
.ogcc-auth-form textarea:focus{
  outline:none;
  border-color: var(--ogcc-ocean);
  box-shadow: 0 0 0 4px var(--ogcc-ocean-soft);
}



/* ============================================================
   AUTH PAGES — spacing polish (avoid "double card" + extra top gap)
   ============================================================ */
body.ogcc-auth-page .ogcc-login-form{
  margin-top: 0;
}
body.ogcc-auth-page .ogcc-login-form .ogcc-auth-links{
  text-align:center;
  margin-top: 12px;
}
body.ogcc-auth-page .ogcc-login-form .ogcc-remember{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 6px 0 0;
}
body.ogcc-auth-page .ogcc-login-form .ogcc-actions{
  margin-top: 12px;
}
.ogcc-auth-logo--img{
  background: transparent !important;
  box-shadow: none !important;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.ogcc-auth-logo--img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Auth: center primary actions (Set Password / Reset / etc.) */
.ogcc-form-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* Ensure button renders like portal buttons (not WP default) */
.ogcc-form-actions .ogcc-btn,
.ogcc-form-actions .ogcc-btn.ogcc-btn-primary{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}




/* =========================================================
   OGCC GLOBAL MODEL TABS COMPONENT
   Source of Truth: Portal Core / Portal Shell
   Class Contract:
     Container: .ogcc-model-tabs
     Tab:       .ogcc-model-tab
   ========================================================= */

.ogcc-model-tabs{
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px;
  margin:8px 0 12px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:999px;
  background:rgba(255,255,255,.65);
  backdrop-filter:saturate(1.1) blur(6px);
  -webkit-backdrop-filter:saturate(1.1) blur(6px);
}

.ogcc-model-tabs__links{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  flex-wrap:wrap;
}

.ogcc-model-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  white-space:nowrap;
  font-size:11px;
  font-weight:700;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--ogcc-ocean, #0b4ea2);
  background:transparent;
  opacity:.88;
  transition:background .12s ease, border-color .12s ease, opacity .12s ease, transform .12s ease;
}

.ogcc-model-tab:hover{
  opacity:1;
  border-color:rgba(11,78,162,.28);
  background:rgba(11,78,162,.06);
  transform:translateY(-1px);
}

.ogcc-model-tab.active,
.ogcc-model-tab[aria-selected="true"]{
  opacity:1;
  border-color:rgba(11,78,162,.38);
  background:#ffffff;
  box-shadow:0 1px 0 rgba(0,0,0,.04),0 10px 24px rgba(0,0,0,.06);
}

.ogcc-model-tab:focus{
  outline:none;
}

.ogcc-model-tab:focus-visible{
  outline:2px solid rgba(11,78,162,.35);
  outline-offset:2px;
}


.ogcc-model-head{
  display:block;
}

.ogcc-model-head .ogcc-model-tabs{
  width:100%;
}

.ogcc-model-head .ogcc-model-head__toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  margin:0 0 0 auto;
}

@media (max-width: 920px){
  .ogcc-model-head .ogcc-model-tabs{
    flex-wrap:wrap;
    align-items:stretch;
  }

  .ogcc-model-head .ogcc-model-tabs__links{
    width:100%;
  }

  .ogcc-model-head .ogcc-model-head__toolbar{
    width:100%;
    justify-content:flex-start;
    margin:6px 0 0;
  }
}


@media (max-width:680px){
  .ogcc-model-tabs{gap:6px;padding:5px;}
  .ogcc-model-tabs__links{gap:6px;}
  .ogcc-model-tab{height:28px;padding:0 10px;font-size:10px;}
}




/* ============================================================
   OGCC GLOBAL MODAL SYSTEM
   Clean global modal framework for entire portal
   Supports both legacy and BEM-style class names
   ============================================================ */

:root{
  --ogcc-modal-z: 10000;
  --ogcc-modal-gap: 12px;
  --ogcc-modal-bg: rgba(15, 23, 42, 0.42);
  --ogcc-modal-radius: 18px;
  --ogcc-modal-shadow: 0 25px 70px rgba(0,0,0,.28);

  --ogcc-modal-max-width: 920px;
  --ogcc-modal-max-height: calc(100dvh - 24px);

  --ogcc-modal-pad-x: 18px;
  --ogcc-modal-pad-y: 14px;

  --ogcc-modal-header-pad: 16px 18px 10px;
  --ogcc-modal-body-pad: 0 18px 14px;
  --ogcc-modal-footer-pad: 10px 18px 14px;

  --ogcc-modal-title-size: 18px;
  --ogcc-modal-title-weight: 600;

  --ogcc-modal-border: 1px solid rgba(15,23,42,.08);
  --ogcc-modal-footer-bg: rgba(255,255,255,.97);
}

/* ============================================================
   Modal shell
   ============================================================ */

.ogcc-modal{
  position: fixed;
  inset: 0;
  z-index: var(--ogcc-modal-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ogcc-modal-gap);
  background: transparent;
  box-sizing: border-box;
}

.ogcc-modal[hidden],
.ogcc-modal.is-hidden{
  display: none !important;
}

body.ogcc-modal-open{
  overflow: hidden;
}

/* ============================================================
   Backdrop
   ============================================================ */

.ogcc-modal-backdrop,
.ogcc-modal__backdrop{
  position: absolute;
  inset: 0;
  background: var(--ogcc-modal-bg);
}

/* ============================================================
   Panel
   Supports:
   .ogcc-modal-panel
   .ogcc-modal__panel
   ============================================================ */

.ogcc-modal-panel,
.ogcc-modal__panel{
  position: relative;
  width: min(var(--ogcc-modal-max-width), calc(100vw - 24px));
  max-width: var(--ogcc-modal-max-width);
  max-height: var(--ogcc-modal-max-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--ogcc-modal-radius);
  box-shadow: var(--ogcc-modal-shadow);
  box-sizing: border-box;
}

/* ============================================================
   Header
   ============================================================ */

.ogcc-modal-header,
.ogcc-modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: var(--ogcc-modal-header-pad);
  border-bottom: var(--ogcc-modal-border);
  flex: 0 0 auto;
}

.ogcc-modal-title,
.ogcc-modal__title{
  margin: 0;
  font-size: var(--ogcc-modal-title-size);
  font-weight: var(--ogcc-modal-title-weight);
  line-height: 1.2;
}

.ogcc-modal-subtitle,
.ogcc-modal__subtitle{
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.25;
  color: #667085;
}

.ogcc-modal-close,
.ogcc-modal__close{
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  border-radius: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #667085;
}

/* ============================================================
   Body
   ============================================================ */

.ogcc-modal-body,
.ogcc-modal__body{
  padding: var(--ogcc-modal-body-pad);
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}

/* ============================================================
   Footer
   ============================================================ */

.ogcc-modal-footer,
.ogcc-modal__footer{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: var(--ogcc-modal-footer-pad);
  border-top: var(--ogcc-modal-border);
  background: var(--ogcc-modal-footer-bg);
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* link-style actions */
.ogcc-modal-footer a,
.ogcc-modal-footer button,
.ogcc-modal-footer .ogcc-btn,
.ogcc-modal__footer a,
.ogcc-modal__footer button,
.ogcc-modal__footer .ogcc-btn{
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 600;
  cursor: pointer;
}

.ogcc-modal-footer .subtle,
.ogcc-modal__footer .subtle{
  color: #667085 !important;
}

.ogcc-modal-footer .danger,
.ogcc-modal__footer .danger{
  color: #b42318 !important;
}

/* ============================================================
   Global modal variants
   Use on the shell: .ogcc-modal
   ============================================================ */

/* top-aligned modal */
.ogcc-modal--top{
  align-items: flex-start;
}

/* wider panel */
.ogcc-modal--wide{
  --ogcc-modal-max-width: 1120px;
}

/* compact panel */
.ogcc-modal--compact{
  --ogcc-modal-max-width: 820px;
  --ogcc-modal-radius: 16px;
  --ogcc-modal-header-pad: 12px 14px 8px;
  --ogcc-modal-body-pad: 0 14px 12px;
  --ogcc-modal-footer-pad: 8px 14px 12px;
  --ogcc-modal-title-size: 16px;
}

/* tighter spacing */
.ogcc-modal--tight{
  --ogcc-modal-header-pad: 12px 14px 8px;
  --ogcc-modal-body-pad: 0 14px 12px;
  --ogcc-modal-footer-pad: 8px 14px 12px;
}

/* tabbed modal body helper */
.ogcc-modal--tabs .ogcc-modal__panel,
.ogcc-modal--tabs .ogcc-modal-panel{
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
}

/* sticky footer helper */
.ogcc-modal--sticky-footer .ogcc-modal-footer,
.ogcc-modal--sticky-footer .ogcc-modal__footer{
  position: sticky;
  bottom: 0;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* ============================================================
   Optional utility hooks for tab strips / pill rows
   ============================================================ */

.ogcc-modal-strip{
  padding: 0 18px 10px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}

.ogcc-modal-tabs{
  display: flex;
  gap: 14px;
  padding: 0 18px 10px;
  border-bottom: var(--ogcc-modal-border);
  flex: 0 0 auto;
}

.ogcc-modal-tab{
  appearance: none;
  border: 0;
  background: none;
  padding: 0 0 8px;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  color: #475467;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ogcc-modal-tab.is-active{
  color: #0f3b78;
  border-bottom-color: #0f3b78;
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px){
  .ogcc-modal{
    padding: 8px;
  }

  .ogcc-modal-panel,
  .ogcc-modal__panel{
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .ogcc-modal-header,
  .ogcc-modal__header{
    padding: 12px 14px 8px;
  }

  .ogcc-modal-body,
  .ogcc-modal__body{
    padding: 0 14px 12px;
  }

  .ogcc-modal-footer,
  .ogcc-modal__footer{
    padding: 8px 14px 12px;
  }

  .ogcc-modal-strip{
    padding: 0 14px 8px;
  }

  .ogcc-modal-tabs{
    padding: 0 14px 8px;
    gap: 12px;
  }
}





/* ============================================================
   LEFT NAV SECTION TOGGLES
   ============================================================ */
.ogcc-nav-section__toggle{
  cursor:pointer;
}
.ogcc-nav-section__content[hidden]{
  display:none !important;
}
.ogcc-nav-section__chev{
  display:inline-block;
  transition: transform .18s ease;
}
.ogcc-nav-section.is-collapsed .ogcc-nav-section__chev,
.ogcc-nav-section__toggle[aria-expanded="false"] .ogcc-nav-section__chev{
  transform: rotate(-90deg);
}


/* ============================================================
   PORTAL FOOTER LAYOUT GUARD
   - Keeps the portal footer pinned to the bottom of short pages
   - Prevents footer overlap/interference with modal overlays
   - Scoped to OGCC portal body states only
   ============================================================ */
html{ min-height: 100%; }

body.ogcc-login,
body.ogcc-account,
body.ogcc-dashboard,
body.ogcc-auth-page{
  min-height: 100vh;
}

body.ogcc-login #page,
body.ogcc-account #page,
body.ogcc-dashboard #page,
body.ogcc-auth-page #page,
body.ogcc-login .site,
body.ogcc-account .site,
body.ogcc-dashboard .site,
body.ogcc-auth-page .site,
body.ogcc-login .site-container,
body.ogcc-account .site-container,
body.ogcc-dashboard .site-container,
body.ogcc-auth-page .site-container{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.ogcc-login #content,
body.ogcc-account #content,
body.ogcc-dashboard #content,
body.ogcc-auth-page #content,
body.ogcc-login .site-content,
body.ogcc-account .site-content,
body.ogcc-dashboard .site-content,
body.ogcc-auth-page .site-content,
body.ogcc-login .content-area,
body.ogcc-account .content-area,
body.ogcc-dashboard .content-area,
body.ogcc-auth-page .content-area,
body.ogcc-login .ogcc-shell,
body.ogcc-account .ogcc-shell,
body.ogcc-dashboard .ogcc-shell,
body.ogcc-auth-page .ogcc-shell{
  flex: 1 1 auto;
}

body.ogcc-login footer,
body.ogcc-account footer,
body.ogcc-dashboard footer,
body.ogcc-auth-page footer,
body.ogcc-login .site-footer,
body.ogcc-account .site-footer,
body.ogcc-dashboard .site-footer,
body.ogcc-auth-page .site-footer,
body.ogcc-login #colophon,
body.ogcc-account #colophon,
body.ogcc-dashboard #colophon,
body.ogcc-auth-page #colophon,
body.ogcc-login .ogcc-footer,
body.ogcc-account .ogcc-footer,
body.ogcc-dashboard .ogcc-footer,
body.ogcc-auth-page .ogcc-footer{
  margin-top: auto;
  position: relative !important;
  inset: auto !important;
  bottom: auto !important;
  z-index: 1;
}

body.ogcc-login .ogcc-modal,
body.ogcc-account .ogcc-modal,
body.ogcc-dashboard .ogcc-modal,
body.ogcc-auth-page .ogcc-modal{
  z-index: 100000 !important;
}

/* ============================================================
   COMPACT PORTAL SHARED PRIMITIVES
   Core-owned helpers for compact page headers, model summaries,
   KPI rows, workflow callouts, and quiet status badges.
   ============================================================ */
.ogcc-page-head--compact{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 14px;
}

.ogcc-page-head--compact .ogcc-page-title{
  margin:0 0 3px;
  font-size:22px;
  line-height:1.08;
}

.ogcc-page-head--compact .ogcc-help{
  margin:0;
  font-size:13px;
}

.ogcc-status-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  font-size:11px;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  background:#fff;
  color:rgba(28,38,34,.72);
}

.ogcc-status-badge::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:rgba(28,38,34,.28);
}

.ogcc-status-badge[data-state="in_progress"]::before{
  background:var(--ogcc-ocean);
}

.ogcc-status-badge[data-state="ready"]::before,
.ogcc-status-badge[data-state="complete"]::before{
  background:var(--ogcc-grass);
}

.ogcc-status-badge[data-state="waiting_on_upstream"]::before,
.ogcc-status-badge[data-state="needs_input"]::before{
  background:#c9a227;
}

.ogcc-model-summary{
  display:grid;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.ogcc-model-summary__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.ogcc-model-summary__eyebrow{
  margin:0 0 4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(28,38,34,.52);
}

.ogcc-model-summary__title{
  margin:0;
  font-size:20px;
  line-height:1.12;
  color:var(--ogcc-ocean);
}

.ogcc-model-summary__text{
  margin:4px 0 0;
  font-size:12px;
  color:rgba(28,38,34,.66);
  max-width:72ch;
}

.ogcc-kpi-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:10px;
}

.ogcc-kpi-tile{
  display:grid;
  gap:4px;
  min-height:72px;
  padding:11px 12px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  background:#fff;
}

.ogcc-kpi-tile__label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(28,38,34,.52);
}

.ogcc-kpi-tile__value{
  font-size:20px;
  line-height:1.05;
  font-weight:700;
  color:var(--ogcc-ink);
}

.ogcc-kpi-tile__meta{
  font-size:11px;
  color:rgba(28,38,34,.60);
}

.ogcc-workflow-callout{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:12px 13px;
  border:1px solid rgba(31,111,139,.14);
  border-radius:12px;
  background:rgba(31,111,139,.05);
}

.ogcc-workflow-callout__label{
  margin:0 0 4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(28,38,34,.52);
}

.ogcc-workflow-callout__title{
  margin:0;
  font-size:16px;
  line-height:1.18;
  color:var(--ogcc-ink);
}

.ogcc-workflow-callout__text{
  margin:4px 0 0;
  font-size:12px;
  color:rgba(28,38,34,.66);
}

/* ============================================================
   ULTRA COMPACT DESKTOP PASS
   Tightens shared Core-owned typography, controls, and panel
   rhythm so the whole portal scales down together.
   ============================================================ */
@media (min-width: 1101px){
  .ogcc-card{
    padding:10px;
    border-radius:11px;
  }

  .ogcc-page-title{
    margin:0 0 6px;
    font-size:16px;
  }

  .ogcc-h2,
  .ogcc-h3{
    margin:0 0 4px;
    font-size:15px;
  }

  .ogcc-help{
    margin:3px 0 8px;
    font-size:10px;
  }

  .ogcc-login-form label,
  .ogcc-account label,
  .ogcc-dashboard label,
  .ogcc-users-wrap label,
  .ogcc-dash-wrap label,
  .ogcc-docs-wrap label,
  .ogcc-account-wrap label,
  .ogcc-sub-cardui label{
    margin:0 0 6px;
    font-size:12px;
  }

  .ogcc-login-form input[type="text"],
  .ogcc-login-form input[type="email"],
  .ogcc-login-form input[type="password"],
  .ogcc-login-form input[type="tel"],
  .ogcc-login-form input[type="search"],
  .ogcc-login-form input[type="url"],
  .ogcc-login-form input[type="number"],
  .ogcc-login-form select,
  .ogcc-login-form textarea,
  .ogcc-account input[type="text"],
  .ogcc-account input[type="email"],
  .ogcc-account input[type="password"],
  .ogcc-account input[type="tel"],
  .ogcc-account input[type="search"],
  .ogcc-account input[type="url"],
  .ogcc-account input[type="number"],
  .ogcc-account select,
  .ogcc-account textarea,
  .ogcc-dashboard input[type="text"],
  .ogcc-dashboard input[type="email"],
  .ogcc-dashboard input[type="password"],
  .ogcc-dashboard input[type="tel"],
  .ogcc-dashboard input[type="search"],
  .ogcc-dashboard input[type="url"],
  .ogcc-dashboard input[type="number"],
  .ogcc-dashboard select,
  .ogcc-dashboard textarea,
  .ogcc-users-wrap input[type="text"],
  .ogcc-users-wrap input[type="email"],
  .ogcc-users-wrap input[type="password"],
  .ogcc-users-wrap input[type="tel"],
  .ogcc-users-wrap input[type="search"],
  .ogcc-users-wrap input[type="url"],
  .ogcc-users-wrap input[type="number"],
  .ogcc-users-wrap select,
  .ogcc-users-wrap textarea,
  .ogcc-dash-wrap input[type="text"],
  .ogcc-dash-wrap input[type="email"],
  .ogcc-dash-wrap input[type="password"],
  .ogcc-dash-wrap input[type="tel"],
  .ogcc-dash-wrap input[type="search"],
  .ogcc-dash-wrap input[type="url"],
  .ogcc-dash-wrap input[type="number"],
  .ogcc-dash-wrap select,
  .ogcc-dash-wrap textarea,
  .ogcc-docs-wrap input[type="text"],
  .ogcc-docs-wrap input[type="email"],
  .ogcc-docs-wrap input[type="password"],
  .ogcc-docs-wrap input[type="tel"],
  .ogcc-docs-wrap input[type="search"],
  .ogcc-docs-wrap input[type="url"],
  .ogcc-docs-wrap input[type="number"],
  .ogcc-docs-wrap select,
  .ogcc-docs-wrap textarea,
  .ogcc-account-wrap input[type="text"],
  .ogcc-account-wrap input[type="email"],
  .ogcc-account-wrap input[type="password"],
  .ogcc-account-wrap input[type="tel"],
  .ogcc-account-wrap input[type="search"],
  .ogcc-account-wrap input[type="url"],
  .ogcc-account-wrap input[type="number"],
  .ogcc-account-wrap select,
  .ogcc-account-wrap textarea,
  .ogcc-sub-cardui input[type="text"],
  .ogcc-sub-cardui input[type="email"],
  .ogcc-sub-cardui input[type="password"],
  .ogcc-sub-cardui input[type="tel"],
  .ogcc-sub-cardui input[type="search"],
  .ogcc-sub-cardui input[type="url"],
  .ogcc-sub-cardui input[type="number"],
  .ogcc-sub-cardui select,
  .ogcc-sub-cardui textarea{
    padding:9px 10px;
    font-size:13px;
    border-radius:8px;
  }

  .ogcc-btn,
  .ogcc-dash-btn,
  .ogcc-login-form button.ogcc-btn,
  .ogcc-account button.ogcc-btn,
  .ogcc-dashboard button.ogcc-btn,
  .ogcc-users-wrap button.ogcc-btn,
  .ogcc-dash-wrap button.ogcc-btn,
  .ogcc-docs-wrap button.ogcc-btn,
  .ogcc-account-wrap button.ogcc-btn,
  .ogcc-sub-cardui button.ogcc-btn,
  .ogcc-login-form a.ogcc-btn,
  .ogcc-account a.ogcc-btn,
  .ogcc-dashboard a.ogcc-btn,
  .ogcc-users-wrap a.ogcc-btn,
  .ogcc-dash-wrap a.ogcc-btn,
  .ogcc-docs-wrap a.ogcc-btn,
  .ogcc-account-wrap a.ogcc-btn,
  .ogcc-sub-cardui a.ogcc-btn{
    padding:8px 12px;
    font-size:10px;
  }

  .ogcc-linkbtn{
    padding:7px 9px;
    font-size:10px;
  }

  .ogcc-table{
    border-spacing:0 6px;
  }

  .ogcc-table th{
    font-size:10px;
    padding:3px 6px;
  }

  .ogcc-table td{
    padding:7px 6px;
    font-size:12px;
  }

  .ogcc-page-head--compact{
    gap:10px;
    margin:0 0 10px;
  }

  .ogcc-page-head--compact .ogcc-page-title{
    font-size:18px;
  }

  .ogcc-status-badge{
    min-height:20px;
    padding:0 8px;
    font-size:9px;
  }

  .ogcc-model-summary{
    gap:10px;
    padding:10px 11px;
    border-radius:11px;
  }

  .ogcc-model-summary__eyebrow{
    font-size:10px;
  }

  .ogcc-model-summary__title{
    font-size:17px;
  }

  .ogcc-model-summary__text{
    font-size:11px;
  }

  .ogcc-kpi-row{
    gap:8px;
  }

  .ogcc-kpi-tile{
    min-height:62px;
    padding:9px 10px;
    border-radius:10px;
  }

  .ogcc-kpi-tile__label{
    font-size:10px;
  }

  .ogcc-kpi-tile__value{
    font-size:17px;
  }

  .ogcc-kpi-tile__meta{
    font-size:10px;
  }

  .ogcc-workflow-callout{
    padding:10px 11px;
    border-radius:10px;
  }

  .ogcc-workflow-callout__label{
    font-size:10px;
  }

  .ogcc-workflow-callout__title{
    font-size:14px;
  }

  .ogcc-workflow-callout__text{
    font-size:11px;
  }
}
