:root {
  --bg: #f4f8ff;
  --bg-soft: #edf3ff;
  --panel: #ffffff;
  --line: #8ea5d6;
  --text: #060d1f;
  --muted: #243250;
  --blue: #134cff;
  --teal: #00756f;
  --green: #1da966;
  --danger: #9f1f15;
  --radius: 18px;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
  --max: 1160px;
  --btn-elevate: 0 4px 14px rgba(22, 48, 112, 0.14), 0 2px 5px rgba(22, 48, 112, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --btn-elevate-hover: 0 10px 28px rgba(22, 48, 112, 0.2), 0 4px 10px rgba(22, 48, 112, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --btn-press: inset 0 2px 8px rgba(22, 48, 112, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.06);
  --btn-primary-glow: 0 6px 22px rgba(44, 104, 255, 0.42), 0 3px 10px rgba(13, 158, 150, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  --btn-primary-glow-hover: 0 12px 36px rgba(44, 104, 255, 0.5), 0 5px 14px rgba(13, 158, 150, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  --btn-primary-press: inset 0 3px 12px rgba(0, 20, 80, 0.35), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  --surface-glass: rgba(255, 255, 255, 0.82);
  --section-dark: #041328;
}

* {
  box-sizing: border-box;
}

/* Keep whole words intact — never split a word across lines or hyphenate.
   This prevents single trailing characters from wrapping on small screens. */
html {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

body,
h1, h2, h3, h4, h5, h6,
p, li, a, span, label,
button, input, select, textarea,
.btn, .kicker, .subhead,
.brand-copy h1, .brand-copy p, .brand-tagline,
.nav-links a, .request-item, .admin-user-card,
.foot-note, .copyright-line {
  word-break: normal;
  overflow-wrap: normal;
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(66, 110, 255, 0.12), transparent 70%),
    radial-gradient(1100px 600px at 85% 0%, rgba(0, 140, 128, 0.08), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 50%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

:root { --sti-header-h: 80px; }

/* Fixed (not sticky) so it's always visible regardless of ancestor overflow/
   transform. Body padding-top reserves space. Animation ends with
   `transform: none` so the header doesn't keep a containing block that would
   trap any position:fixed descendants. */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  transform-origin: top center;
  animation: sti-nav-bounce-in 1.05s cubic-bezier(.34, 1.56, .64, 1) backwards;
}

body {
  padding-top: var(--sti-header-h);
  overflow-x: clip;
}

@media (max-width: 740px) {
  :root { --sti-header-h: 56px; }
}

@keyframes sti-nav-bounce-in {
  0%   { transform: translateY(-120%) scaleY(0.85); opacity: 0; }
  55%  { transform: translateY(10px)  scaleY(1.04); opacity: 1; }
  72%  { transform: translateY(-5px)  scaleY(0.98); }
  86%  { transform: translateY(2px)   scaleY(1.01); }
  100% { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  header { animation: none; }
}

.nav {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-logo {
  width: auto;
  height: 40px;
  max-width: 80px;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  background: transparent;
}

/* Hidden visually but available to screen readers — used for the brand
   wordmark when the logo image already contains the "See Thru IT" text. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-copy h1 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.brand-copy p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.brand-tagline {
  letter-spacing: 0.02em;
  line-height: 1.35;
}

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

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(44, 104, 255, 0.08);
}

.nav-links a.active {
  color: var(--text);
  border: 1px solid rgba(44, 104, 255, 0.42);
  background: rgba(44, 104, 255, 0.12);
}

.nonprofit-shell {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.nonprofit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: end;
  padding-top: 2.2rem;
  padding-bottom: 1rem;
}

.nonprofit-hero h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.nonprofit-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-total {
  margin-top: 0.25rem;
  font-size: 2rem;
  font-weight: 800;
}

.nonprofit-form-wrap {
  padding-top: 0;
}

.nonprofit-form {
  max-width: 980px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.step-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.step-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: transparent;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

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

.form-grid.three {
  grid-template-columns: 1fr 0.55fr 0.55fr;
}

.nonprofit-form label,
.nonprofit-form fieldset {
  display: block;
  margin: 0 0 1rem;
}

.nonprofit-form label > span {
  color: var(--danger);
}

.nonprofit-form input,
.nonprofit-form select,
.nonprofit-form textarea {
  width: 100%;
  margin-top: 0.35rem;
}

.nonprofit-form .check-row input {
  width: auto;
  margin: 0.2rem 0 0;
}

.consent-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(142, 165, 214, 0.65);
  border-radius: 8px;
  background: #fff;
}

.review-output {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.review-output div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(142, 165, 214, 0.45);
  padding-bottom: 0.45rem;
}

.review-output .review-total {
  border-bottom: 0;
  padding-top: 0.35rem;
  font-size: 1.15rem;
}

.source-note {
  margin: 1rem 0;
  padding: 0.85rem;
  border-left: 4px solid var(--teal);
  background: #eefaf8;
  color: var(--muted);
  font-size: 0.92rem;
}

.supporting-files-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.file-upload-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) auto;
  align-items: end;
  gap: 0.6rem;
  margin: 0 !important;
}

.file-upload-row > label {
  margin: 0 !important;
}

.upload-progress-wrap {
  margin-top: 1rem;
}

.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.upload-progress-track {
  height: 12px;
  margin-top: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef2fb;
}

.upload-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  transition: width 0.18s ease;
}

.np-doc-link {
  display: grid;
  gap: 0.25rem;
  max-width: 100%;
}

.nonprofit-success {
  margin-bottom: 1rem;
}

@media (max-width: 840px) {
  .nonprofit-hero,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

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

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

  .file-upload-row {
    grid-template-columns: 1fr;
  }
}

main section {
  padding: 3.2rem 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 780px;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 97, 216, 0.5);
  box-shadow: 0 14px 35px rgba(18, 48, 112, 0.11);
}

.panel.auth-panel {
  max-width: 480px;
}

.auth-toggle-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #f0f4ff;
  border-radius: 14px;
  padding: 0.3rem;
}

.auth-toggle-btn {
  flex: 1;
  border-radius: 10px;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
  font-weight: 600;
  transition: background 0.18s, box-shadow 0.18s;
}

.auth-toggle-btn.active-auth-btn {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(22, 48, 112, 0.12);
  border-color: rgba(110, 138, 198, 0.4);
}

.auth-toggle-btn.active-auth-btn.btn-primary {
  color: #fff;
  border-color: rgba(25, 70, 200, 0.9);
  background: linear-gradient(145deg, #4d7cff 0%, #2c68ff 42%, #0a8f8a 135%);
  box-shadow: var(--btn-primary-glow);
}

.auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 700;
}

h2 {
  margin: 0.65rem 0 0.75rem;
  line-height: 1.15;
  font-size: clamp(1.6rem, 3.3vw, 2.6rem);
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

p {
  margin: 0.4rem 0 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(530px, 72vh, 760px);
  display: grid;
  align-items: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(3, 14, 30, 0.82) 0%,
    rgba(9, 30, 62, 0.76) 35%,
    rgba(20, 46, 80, 0.58) 70%,
    rgba(28, 62, 99, 0.45) 100%
  );
}

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

.hero-copy-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(6px);
}

.hero-media .kicker,
.hero-media .subhead,
.hero-media p,
.hero-media ul,
.hero-media h2,
.hero-media h3 {
  color: #f2f8ff;
}

.hero-media .hero-badges span {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(6, 24, 47, 0.45);
  color: #e4efff;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.hero-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f8fbff;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.service-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.program-leg {
  margin-top: 1rem;
}

.hosting-leg {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(160deg, #f6f9ff 0%, #f1f5ff 100%);
}

.hosting-leg-media {
  min-height: 230px;
  background-image:
    linear-gradient(115deg, rgba(7, 24, 50, 0.62), rgba(8, 36, 70, 0.4)),
    url("https://images.pexels.com/photos/1181359/pexels-photo-1181359.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hosting-leg-content {
  padding: 1.25rem;
}

.subhead {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.portal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}

.portal-layout-wide {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.portal-shell {
  min-height: calc(100vh - 90px);
  padding: 1.5rem 0 3rem;
}

.panel.dashboard {
  max-width: 780px;
}

.tab-pane .inline-form,
.tab-pane .auth-form {
  max-width: 520px;
}

.tab-pane > h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.tab-pane > .subhead:first-of-type {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.auth-form,
.inline-form,
.quote-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

label {
  font-size: 0.82rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 0.66rem 0.75rem;
  font: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(44, 104, 255, 0.78);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 104, 255, 0.16);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(110, 138, 198, 0.55);
  border-radius: 12px;
  color: var(--text);
  padding: 0.62rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: linear-gradient(165deg, #ffffff 0%, #e8f0ff 55%, #dce8ff 100%);
  box-shadow: var(--btn-elevate);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease, filter 0.18s ease,
    background 0.2s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.1);
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
  filter: grayscale(0.1);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 104, 255, 0.45);
  background: linear-gradient(165deg, #ffffff 0%, #eef4ff 50%, #e0ebff 100%);
  box-shadow: var(--btn-elevate-hover);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--btn-press);
  filter: brightness(0.98);
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-elevate-hover), 0 0 0 3px rgba(44, 104, 255, 0.35);
}

.btn-primary {
  color: #ffffff;
  border-color: rgba(25, 70, 200, 0.9);
  text-shadow: 0 1px 1px rgba(0, 20, 60, 0.35);
  background: linear-gradient(145deg, #4d7cff 0%, #2c68ff 38%, #1a52e8 70%, #0a8f8a 130%);
  box-shadow: var(--btn-primary-glow);
}

.btn-primary:hover {
  border-color: rgba(40, 90, 240, 0.95);
  background: linear-gradient(145deg, #5c88ff 0%, #3a74ff 40%, #2258f0 68%, #0c9b95 130%);
  box-shadow: var(--btn-primary-glow-hover);
  filter: brightness(1.06) saturate(1.05);
}

.btn-primary:active {
  box-shadow: var(--btn-primary-press);
  filter: brightness(0.96);
}

.btn-primary:focus-visible {
  box-shadow: var(--btn-primary-glow-hover), 0 0 0 3px rgba(100, 160, 255, 0.55);
}

.btn-tab {
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.16s ease, background 0.16s ease;
  box-shadow: 0 2px 8px rgba(22, 48, 112, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 48, 112, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.btn-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 3px 14px rgba(19, 76, 255, 0.35);
  font-weight: 600;
}

.btn-tab.active:hover {
  background: #0d3fe0;
  border-color: #0d3fe0;
  transform: none;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.request-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.request-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: #fbfdff;
}

.invoice-section {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.invoice-section h3,
.invoice-section summary {
  margin: 0;
  font-size: 0.98rem;
}

.invoice-history {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fafc;
}

.invoice-history summary {
  cursor: pointer;
  color: var(--muted);
}

.invoice-card {
  display: grid;
  gap: 0.6rem;
}

.invoice-card-compact {
  background: #fff;
}

.invoice-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.45rem;
}

.invoice-meta-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
}

.invoice-meta-grid strong {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-user-card {
  padding: 0;
  overflow: hidden;
}

.admin-user-card details {
  padding: 0;
}

.admin-user-card summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 0.85rem;
  background: #f7fbff;
  border-bottom: 1px solid var(--line);
}

.admin-user-card summary::-webkit-details-marker {
  display: none;
}

.admin-user-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.admin-user-summary-main {
  min-width: 0;
}

.admin-user-summary-main p {
  margin: 0.1rem 0 0;
}

.admin-user-summary-status {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-user-card-body {
  padding: 0.85rem;
}

.request-item,
.panel,
.url-list-block {
  border-width: 2px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.oauth-actions {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.oauth-actions.hidden,
.auth-divider.hidden {
  display: none !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.7rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.oauth-btn {
  width: 100%;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.oauth-btn:hover {
  background: #f6f9ff;
}

.oauth-btn-google {
  border-color: #b8c5dd;
}

.oauth-btn-apple {
  border-color: #111827;
}

.oauth-provider-mark {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.oauth-provider-google {
  color: #1a73e8;
}

.oauth-provider-apple {
  color: #111827;
}

.oauth-account-card {
  margin: 0.8rem 0 1rem;
}

.oauth-section-head,
.oauth-provider-card-head,
.oauth-link-row,
.oauth-provider-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.oauth-section-head,
.oauth-provider-card-head,
.oauth-link-row {
  justify-content: space-between;
}

.oauth-section-head {
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.oauth-provider-title {
  min-width: 0;
}

.oauth-provider-title > div {
  min-width: 0;
}

.oauth-provider-title strong,
.oauth-provider-title span {
  display: block;
}

.oauth-provider-title span,
.oauth-callback-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.oauth-link-list {
  display: grid;
  gap: 0.45rem;
}

.oauth-link-row {
  padding: 0.55rem 0;
  border-top: 1px solid rgba(142, 165, 214, 0.45);
}

.oauth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.oauth-pill-connected {
  color: #07543d;
  border-color: rgba(29, 169, 102, 0.42);
  background: rgba(29, 169, 102, 0.12);
}

.oauth-admin-panel {
  display: grid;
  gap: 0.8rem;
}

.oauth-callback-note code {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.oauth-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.oauth-provider-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fbfdff;
}

.oauth-provider-card .inline-form {
  max-width: none;
}

.oauth-remove-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.oauth-remove-row input {
  width: auto;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .oauth-admin-grid {
    grid-template-columns: 1fr;
  }

  .oauth-link-row,
  .oauth-provider-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.request-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.request-actions {
  margin-top: 0.45rem;
}

.request-actions select {
  max-width: 230px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.stripe-amount-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: end;
}

.admin-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.8rem;
  margin-top: 0.7rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.url-list-block {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  margin-top: 0.35rem;
  background: #f9fcff;
}

.dynamic-url-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.url-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.45rem;
}

.status-line {
  min-height: 1.2rem;
  margin-top: 0.65rem;
  font-size: 0.88rem;
}

.status-line.error {
  color: var(--danger);
}

.storage-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #eef3ff;
  overflow: hidden;
  margin: 0.45rem 0 0.6rem;
}

.storage-meter-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.25s ease;
}

.storage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.45rem;
  font-size: 0.85rem;
}

.storage-table th,
.storage-table td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  text-align: left;
}

.hosting-client-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hosting-client-intro .subhead {
  flex: 1 1 320px;
  margin: 0;
}

.hosting-compare-link {
  white-space: nowrap;
}

.ws-modal.hosting-plan-modal {
  max-width: 880px;
}

.hosting-plan-modal .ws-modal-head {
  align-items: flex-start;
}

.hosting-plan-modal .ws-modal-head .subhead {
  margin: 0.15rem 0 0;
}

.hosting-plan-compare-body {
  display: grid;
  gap: 1rem;
}

.hosting-compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.hosting-plan-modal .hosting-compare-table {
  min-width: 620px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.hosting-plan-modal .hosting-compare-table th,
.hosting-plan-modal .hosting-compare-table td {
  padding: 0.65rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(142, 165, 214, 0.34);
  text-align: left;
  vertical-align: top;
  text-transform: none;
  letter-spacing: 0;
}

.hosting-plan-modal .hosting-compare-table thead th {
  background: var(--section-dark);
  color: #ffffff;
  font-weight: 700;
}

.hosting-plan-modal .hosting-compare-table tbody th {
  width: 25%;
  color: var(--text);
  font-weight: 700;
  background: rgba(237, 243, 255, 0.72);
}

.hosting-plan-modal .hosting-compare-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.hosting-plan-modal .hosting-compare-table tbody tr:last-child th,
.hosting-plan-modal .hosting-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.hosting-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hosting-addon-card {
  border: 1px solid rgba(142, 165, 214, 0.8);
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 5px 16px rgba(18, 48, 112, 0.08);
}

.hosting-addon-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hosting-addon-price {
  display: inline-flex;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(0, 117, 111, 0.24);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: var(--teal);
  background: rgba(0, 117, 111, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.hosting-compare-note {
  margin: 0;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: #f5fffd;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.copyright-line {
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.toast.show {
  opacity: 1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  0% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.12) translate3d(-1%, 1%, 0);
  }
}

@keyframes slowDrift {
  0% {
    background-position: center 45%;
  }
  100% {
    background-position: center 55%;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .portal-layout,
  .url-item,
  .admin-filter-grid,
  .hosting-addon-grid,
  .ws-video-admin-shell {
    grid-template-columns: 1fr;
  }
}

.stack {
  padding: 1.25rem;
}

.apply-panel {
  max-width: 720px;
  margin: 0 auto;
}

.apply-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.needs-fieldset {
  margin: 0;
  padding: 0.75rem 0 0;
  border: none;
}

.needs-fieldset legend {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0;
}

.legend-hint {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-grid {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}

.check-row input {
  width: auto;
  margin-top: 0.2rem;
}

.word-count-meta {
  margin: -0.35rem 0 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.file-upload-block {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}

.file-slots {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.file-slot-row {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background: #fbfdff;
}

.file-slot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.file-slot-top .file-slot-file {
  flex: 1 1 200px;
  min-width: 0;
}

.file-slot-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.file-slot-meta.error {
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-tab,
  .ws-card,
  .ws-admin-card {
    transition: none;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-tab:hover,
  .ws-card:hover,
  .ws-admin-card:hover {
    transform: none;
  }

  .hero-video,
  .hosting-leg-media,
  .reveal-on-scroll {
    animation: none;
    transition: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* STI: responsive logo. The new brandmark (assets/seethruitlogo1.png) bakes
   the "See Thru IT" wordmark into the image, so it needs enough vertical room
   to stay legible. Width caps prevent it dominating the nav on small screens. */
.brand-logo {
  max-width: min(160px, 38vw);
  width: auto;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.sti-hero-elevate {
  box-shadow: 0 20px 50px rgba(3, 18, 48, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sti-spotlight {
  padding: 2.2rem 0 1rem;
  background: linear-gradient(180deg, rgba(19, 76, 255, 0.04), rgba(0, 117, 111, 0.03), transparent 70%);
}

.sti-tile h3 {
  color: var(--teal);
}

.link-inline {
  text-decoration: underline;
  text-decoration-color: rgba(0, 117, 111, 0.5);
  text-underline-offset: 0.12em;
}

@media (max-width: 740px) {
  .nav {
    padding: 0.5rem 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .brand-copy {
    display: none;
  }

  .brand-logo {
    height: 36px;
    max-height: 36px;
    max-width: 120px;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
  }

  .hosting-client-intro {
    align-items: stretch;
  }

  .hosting-compare-link {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

.contact-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

@media (max-width: 600px) {
  .contact-field-grid {
    grid-template-columns: 1fr;
  }
}

.admin-subtabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.btn-subtab {
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.btn-subtab:hover {
  color: var(--text);
  background: rgba(44, 104, 255, 0.07);
}

.btn-subtab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
}

.admin-subtab-pane.hidden {
  display: none !important;
}

/* ============================================================
 * Workshop styles
 * ============================================================ */

.ws-admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.ws-client-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ws-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 600px) {
  .ws-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Workshop cards ── */
.ws-grid {
  display: grid;
  gap: 0.75rem;
}

.ws-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(110, 138, 198, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.96) 100%);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 48, 112, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ws-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 1;
  background: linear-gradient(90deg, #2c68ff 0%, #0a8f8a 58%, #1da966 100%);
}

.ws-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 104, 255, 0.64);
  box-shadow: 0 18px 42px rgba(18, 48, 112, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.ws-card-body {
  position: relative;
  z-index: 2;
  padding: 0.85rem 1rem 0.7rem;
}

.ws-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  color: var(--text);
}

.ws-card-meta {
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

.ws-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, rgba(235, 243, 255, 0.78) 0%, rgba(223, 235, 255, 0.9) 100%);
  border-top: 1px solid rgba(110, 138, 198, 0.36);
}

#tab-workshops .btn-primary {
  min-height: 38px;
}

#tab-workshops .btn-primary.btn-sm {
  min-height: 34px;
  padding-inline: 0.78rem;
}

/* ── Badges ── */
.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 6px rgba(18, 48, 112, 0.07);
}

.ws-badge-free {
  background: rgba(29, 169, 102, 0.12);
  color: #126b40;
  border: 1px solid rgba(29, 169, 102, 0.35);
}

.ws-badge-paid {
  background: rgba(19, 76, 255, 0.09);
  color: #0f3bb5;
  border: 1px solid rgba(19, 76, 255, 0.3);
}

.ws-badge-full {
  background: rgba(159, 31, 21, 0.1);
  color: var(--danger);
  border: 1px solid rgba(159, 31, 21, 0.3);
}

.ws-badge-registered {
  background: rgba(29, 169, 102, 0.12);
  color: #126b40;
  border: 1px solid rgba(29, 169, 102, 0.35);
}

.ws-badge-pending {
  background: rgba(160, 110, 0, 0.1);
  color: #7a5300;
  border: 1px solid rgba(160, 110, 0, 0.3);
}

.ws-badge-draft {
  background: rgba(100, 100, 100, 0.1);
  color: #555;
  border: 1px solid rgba(100, 100, 100, 0.25);
}

.ws-badge-archived {
  background: rgba(80, 80, 80, 0.08);
  color: #666;
  border: 1px dashed rgba(80, 80, 80, 0.3);
}

.ws-badge-cancelled {
  background: rgba(159, 31, 21, 0.08);
  color: var(--danger);
  border: 1px dashed rgba(159, 31, 21, 0.3);
}

.ws-badge-completed {
  background: rgba(29, 169, 102, 0.12);
  color: #126b40;
  border: 1px solid rgba(29, 169, 102, 0.35);
}

.ws-badge-incomplete {
  background: rgba(159, 31, 21, 0.1);
  color: var(--danger);
  border: 1px solid rgba(159, 31, 21, 0.3);
}

/* ── Workshop detail view ── */
.ws-detail-header {
  margin-bottom: 1rem;
}

.ws-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.ws-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.ws-detail-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  border-left: 3px solid var(--blue);
  padding-left: 0.75rem;
  margin: 0.75rem 0;
}

.ws-detail-register {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.95) 58%, rgba(228, 249, 246, 0.92) 100%);
  border: 1px solid rgba(110, 138, 198, 0.56);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(18, 48, 112, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ws-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.ws-detail-price-free {
  color: var(--green);
}

.ws-detail-seats {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Content items ── */
.ws-content-section {
  margin-top: 1.5rem;
}

.ws-content-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
}

.ws-content-item {
  border: 1px solid rgba(110, 138, 198, 0.48);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 48, 112, 0.08);
}

.ws-content-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f7fbff;
  border-bottom: 1px solid var(--line);
}

.ws-content-item-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.ws-content-type-tag {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ws-content-item-body {
  padding: 0.85rem;
}

.ws-article-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}

.ws-article-body p { margin: 0 0 0.75rem; }
.ws-article-body p:last-child { margin-bottom: 0; }

.ws-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.ws-video-wrap iframe,
.ws-video-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.ws-video-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.ws-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* ── Paywall ── */
.ws-paywall {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 58%, #e8faf7 100%);
  border-top: 1px solid rgba(19, 76, 255, 0.15);
}

.ws-paywall-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ws-paywall-text {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Admin workshop cards ── */
.ws-admin-card {
  border: 1px solid rgba(110, 138, 198, 0.56);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 255, 0.97) 100%);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 48, 112, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ws-admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 104, 255, 0.55);
  box-shadow: 0 16px 38px rgba(18, 48, 112, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ws-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 1rem 0.6rem;
  flex-wrap: wrap;
}

.ws-admin-card-info {
  flex: 1;
  min-width: 0;
}

.ws-admin-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ws-admin-card-actions .btn {
  font-size: 0.82rem;
  padding: 0.42rem 0.7rem;
}

.ws-admin-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin: 0.2rem 0;
}

/* Edit form inside admin card */
.ws-edit-form {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(110, 138, 198, 0.4);
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
}

.ws-edit-form .ws-form-grid {
  margin-bottom: 0.5rem;
}

/* ── Video library manager ── */
.ws-video-library-details[open] {
  border: 1px solid rgba(110, 138, 198, 0.42);
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fbff;
}

.ws-video-admin-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  margin-top: 0.75rem;
  align-items: start;
}

.ws-video-library-form,
.ws-video-library-list-wrap {
  border: 1px solid rgba(110, 138, 198, 0.44);
  border-radius: 10px;
  padding: 0.8rem;
  background: #ffffff;
}

.ws-video-link-fieldset {
  border: 1px dashed rgba(110, 138, 198, 0.58);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.5rem 0 0;
}

.ws-video-link-fieldset legend {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0 0.25rem;
}

.ws-video-link-grid {
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow: auto;
}

.ws-video-link-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(110, 138, 198, 0.32);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fbfdff;
}

.ws-video-link-main {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.ws-video-link-main input,
.ws-video-link-options input {
  width: auto;
}

.ws-video-link-main .subhead {
  display: block;
  margin: 0.08rem 0 0;
  font-size: 0.78rem;
}

.ws-video-link-options {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.ws-video-library-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.ws-video-library-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(110, 138, 198, 0.4);
  border-radius: 10px;
  padding: 0.7rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 5px 16px rgba(18, 48, 112, 0.08);
}

.ws-video-library-meta {
  flex: 1;
  min-width: 0;
}

.ws-video-library-meta p {
  margin: 0.2rem 0 0;
}

.ws-video-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.ws-video-attached-item {
  border-left: 4px solid var(--teal);
}

/* ── Content manager ── */
.ws-content-admin-item {
  border: 1px solid rgba(110, 138, 198, 0.42);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: 0 5px 16px rgba(18, 48, 112, 0.08);
}

.ws-content-admin-item-info {
  flex: 1;
  min-width: 0;
}

.ws-content-admin-item-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ws-content-admin-item-actions .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
}

/* ── Modal ── */
.ws-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.ws-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(4, 19, 40, 0.35);
}

.ws-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.ws-modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-x: auto;
}

.ws-modal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ws-modal th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-modal td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(142, 165, 214, 0.3);
  vertical-align: top;
}

/* Danger button variant */
.btn-danger {
  color: var(--danger);
  border-color: rgba(159, 31, 21, 0.4);
  background: linear-gradient(165deg, #fff5f5 0%, #ffe8e6 100%);
  box-shadow: 0 4px 14px rgba(159, 31, 21, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.btn-danger:hover {
  border-color: var(--danger);
  background: linear-gradient(165deg, #ffe8e6 0%, #ffd5d2 100%);
  box-shadow: 0 9px 24px rgba(159, 31, 21, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.38rem 0.65rem;
}

/* ── Workshop images ── */

/* Card thumbnail (background-image) */
.ws-card-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #e8f0ff;
  border-bottom: 1px solid rgba(110, 138, 198, 0.36);
}

.ws-card-thumb-compact {
  height: 96px;
}

/* Detail page cover */
.ws-detail-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #e8f0ff;
  max-height: 320px;
}

.ws-cover-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* Admin list thumbnail */
.ws-admin-thumb {
  width: 80px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* Create form cover preview */
.ws-cover-preview {
  margin-top: 0.4rem;
}

.ws-cover-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}

/* Embedded image content items */
.ws-image-wrap {
  text-align: center;
}

.ws-embedded-img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}

.ws-image-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
  font-style: italic;
  text-align: center;
}
