@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --cp-primary: #0f766e;
  --cp-secondary: #f59e0b;
  --cp-text: #0f172a;
  --cp-muted: #64748b;
  --cp-surface: rgba(255, 255, 255, 0.82);
  --cp-border: rgba(148, 163, 184, 0.2);
}

body.saas-body {
  font-family: var(--cp-font-family, "Sora", sans-serif);
  color: var(--cp-text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 20%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 45%, #eefbf7 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(15, 118, 110, 0.18);
  top: 80px;
  left: -80px;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(245, 158, 11, 0.18);
  right: -60px;
  top: 240px;
}

.saas-nav,
.glass-card,
.pricing-card,
.workspace-subpanel {
  backdrop-filter: blur(16px);
}

.saas-nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.saas-nav .navbar-collapse {
  min-width: 0;
}

.site-logo {
  width: 150px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-pill {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cp-primary), #164e63);
  color: #fff;
  font-weight: 800;
}

.btn-brand {
  background: var(--cp-primary);
  color: #fff;
  border: none;
}

.btn-brand:hover {
  background: #0b5f58;
  color: #fff;
}

.saas-nav .nav-link {
  font-weight: 700;
  color: var(--cp-text);
  padding: 10px 14px !important;
  border-radius: 999px;
}

.saas-nav .nav-link:hover,
.saas-nav .nav-link:focus {
  background: rgba(15, 118, 110, 0.08);
  color: var(--cp-primary);
}

.workspace-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--cp-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cp-text);
  text-decoration: none;
  font-weight: 700;
}

.workspace-link-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--cp-primary);
}

.hero-shell,
.glass-card,
.pricing-card {
  position: relative;
  z-index: 1;
}

.hero-badge,
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--cp-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy,
.section-head p,
.feature-card p,
.pricing-card p {
  color: var(--cp-muted);
}

.hero-panel,
.glass-card,
.pricing-card,
.workspace-subpanel {
  background: var(--cp-surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.hero-shell .display-4 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.hero-stats .mini-stat,
.metric-strip div {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--cp-border);
  padding: 16px;
}

.mini-stat strong,
.metric-strip strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.mini-stat span,
.metric-strip span,
.metric-strip small {
  color: var(--cp-muted);
}

.metric-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.tool-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip-grid span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.hero-story-card {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--cp-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-points {
  display: grid;
  gap: 16px;
}

.story-points div {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.story-points strong {
  display: block;
  margin-bottom: 6px;
}

.story-points span {
  color: var(--cp-muted);
  display: block;
  line-height: 1.55;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 800;
}

.feature-card {
  overflow: hidden;
}

.workspace-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.workspace-mega-nav {
  position: static;
}

.workspace-mega-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 32px));
  margin-top: 16px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.98);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.workspace-mega-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.workspace-mega-menu__head strong,
.workspace-mega-link__body strong {
  display: block;
  color: #18212f;
}

.workspace-mega-menu__head span {
  display: block;
  margin-top: 4px;
  color: rgba(24, 33, 47, 0.64);
  font-size: 0.92rem;
}

.workspace-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.workspace-mega-group {
  display: grid;
  gap: 12px;
  align-content: start;
}

.workspace-mega-group__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.workspace-mega-group__head span {
  color: rgba(24, 33, 47, 0.58);
  font-size: 0.8rem;
}

.workspace-mega-group__list {
  display: grid;
  gap: 8px;
}

.workspace-mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.workspace-mega-link:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.workspace-mega-link__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.9rem;
}

.workspace-mega-link__body small {
  display: block;
  margin-top: 4px;
  color: rgba(24, 33, 47, 0.66);
  line-height: 1.4;
}

.workspace-library-grouped {
  display: grid;
  gap: 28px;
}

.workspace-category-block {
  display: grid;
  gap: 18px;
}

.workspace-category-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.workspace-category-head h3 {
  margin: 10px 0 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.workspace-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-card-home {
  display: block;
  padding: 22px;
  border-radius: 26px;
  text-decoration: none;
  color: var(--cp-text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.workspace-card-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 118, 110, 0.24);
}

.workspace-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.14));
  font-size: 1.4rem;
}

.workspace-card-home strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.workspace-card-home p {
  color: var(--cp-muted);
  margin-bottom: 14px;
  min-height: 72px;
}

.workspace-card-link {
  color: var(--cp-primary);
  font-weight: 800;
}

.flow-step {
  border-radius: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--cp-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-choice-card {
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plan-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--cp-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-chip.is-free {
  background: #dcfce7;
  color: #166534;
}

.plan-price {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  margin: 1rem 0 0.4rem;
}

.plan-features {
  margin: 0;
  padding-left: 1rem;
  color: var(--cp-muted);
}

.plan-features li + li {
  margin-top: 0.25rem;
}

.comparison-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.comparison-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.comparison-table td,
.comparison-table th {
  padding: 1rem 1.1rem;
  vertical-align: top;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(245, 158, 11, 0.14));
  font-size: 1.4rem;
}

.link-arrow {
  color: var(--cp-primary);
  text-decoration: none;
  font-weight: 700;
}

.pricing-card {
  height: 100%;
}

.pricing-card.featured {
  border-color: rgba(15, 118, 110, 0.3);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 18px 0 4px;
}

.pricing-features {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--cp-muted);
}

.showcase-board {
  display: grid;
  gap: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 24px;
  overflow: hidden;
}

.showcase-card h3,
.showcase-card strong {
  display: block;
  margin-bottom: 8px;
}

.showcase-card p {
  color: var(--cp-muted);
  margin-bottom: 0;
}

.showcase-card-featured {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.92));
}

.showcase-kicker,
.showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--cp-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.showcase-tags span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cp-border);
  font-size: 0.88rem;
  color: var(--cp-text);
}

.showcase-art {
  height: 220px;
  border-radius: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.showcase-art-photo {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 118, 110, 0.05)),
    radial-gradient(circle at 25% 28%, rgba(255,255,255,0.75), transparent 18%),
    linear-gradient(180deg, #dbeafe 0%, #e2e8f0 45%, #cbd5e1 100%);
  position: relative;
}

.showcase-art-photo::before,
.showcase-art-processed::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 18px;
}

.showcase-art-photo::before {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.18)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(15, 23, 42, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.showcase-art-processed {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(245, 158, 11, 0.18)),
    linear-gradient(180deg, #ecfeff 0%, #f0fdf4 100%);
  position: relative;
}

.showcase-art-processed::before {
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.2), rgba(255,255,255,0.86)),
    linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(15, 118, 110, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.65),
    0 16px 30px rgba(15, 118, 110, 0.12);
}

.marketing-list {
  display: grid;
  gap: 18px;
}

.marketing-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.marketing-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.marketing-list strong {
  display: block;
  margin-bottom: 6px;
}

.marketing-list p {
  color: var(--cp-muted);
  margin-bottom: 0;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.workspace-shell-toolpage {
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.workspace-main-toolpage {
  width: 100%;
}

.tool-page-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.workspace-shell-toolpage {
  margin-top: 0;
}

.workspace-panel {
  position: sticky;
  top: 96px;
}

.tool-nav-list {
  display: grid;
  gap: 10px;
}

.tool-nav-link {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}

.tool-nav-link.active {
  border-color: rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.08);
}

.workspace-shell-tool-clean {
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  gap: 28px;
  align-items: start;
}

.workspace-sidebar-tool-clean {
  display: block;
}

.workspace-panel-tool-clean {
  position: sticky;
  top: 110px;
  padding: 22px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

.workspace-panel-tool-clean__top {
  display: grid;
  gap: 14px;
}

.workspace-panel-tool-clean__top .btn {
  justify-self: start;
}

.workspace-panel-tool-clean__list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.workspace-main-tool-clean {
  width: 100%;
  min-width: 0;
}

.tool-nav-link--sidebar {
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
}

.tool-nav-link--sidebar .tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 110, 245, 0.12), rgba(20, 110, 245, 0.24));
}

.tool-nav-link--sidebar strong {
  display: block;
  margin-bottom: 3px;
}

.tool-nav-link--sidebar small {
  display: block;
  color: var(--cp-muted);
  line-height: 1.45;
}

.workspace-studio {
  padding: 28px;
}

.workspace-studio--tool-clean {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.upload-copy {
  max-width: 620px;
}

.studio-intro-bar--tool-clean {
  margin-bottom: 24px;
}

.upload-box--tool-clean {
  padding: 28px;
  border-radius: 28px;
  border: 1px dashed rgba(20, 110, 245, 0.2);
  background: linear-gradient(135deg, rgba(20, 110, 245, 0.05), rgba(255, 255, 255, 0.82));
}

.upload-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.upload-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.9rem;
}

.workspace-studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.42fr);
  gap: 24px;
  align-items: start;
}

.workspace-preview-stack {
  display: grid;
  gap: 24px;
}

.workspace-queue-panel,
.workspace-preview-panel,
.workspace-results-panel {
  padding: 24px;
}

.queue-actions {
  display: flex;
  gap: 10px;
}

.selection-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.selection-strip-empty {
  padding: 16px;
  width: 100%;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  color: var(--cp-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.48);
}

.selection-thumb {
  position: relative;
  width: 72px;
  min-width: 72px;
  height: 72px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.selection-thumb.active {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}

.selection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selection-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.tool-nav-link strong,
.subpanel-head h3 {
  display: block;
}

.tool-nav-link small,
.subpanel-head span {
  color: var(--cp-muted);
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
}

.usage-pill {
  min-width: 220px;
  border-radius: 24px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.12));
}

.usage-pill span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.usage-pill small,
.subpanel-head span {
  color: var(--cp-muted);
}

.upload-box {
  border: 2px dashed rgba(15, 118, 110, 0.25);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
  border-radius: 24px;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.upload-box.drag-over,
.upload-box:hover {
  border-color: var(--cp-primary);
  transform: translateY(-1px);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.workspace-subpanel {
  height: 100%;
  min-width: 0;
}

.tool-hero-card {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.92)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 28%);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.preview-toolbar-copy {
  color: var(--cp-muted);
  max-width: 480px;
}

.preview-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--cp-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.workspace-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subpanel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.file-list {
  max-height: 360px;
  overflow: auto;
  border-radius: 18px;
}

.file-list-large {
  max-height: none;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stacked-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.file-card,
.result-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--cp-border);
  padding: 16px;
}

.file-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.file-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.04);
  flex: 0 0 auto;
}

.file-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-card.selected,
.result-card.active {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.file-card-head,
.result-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.file-name {
  font-weight: 800;
  word-break: break-word;
}

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

.file-card-body {
  margin-bottom: 14px;
}

.file-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-card-actions .btn {
  flex: 1 1 120px;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-height: none;
}

.result-list-wide {
  max-height: none;
}

.result-card.empty {
  text-align: center;
}

.result-image-wrap {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  padding: 10px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-image-wrap img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.preview-stage {
  min-height: 360px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-stage-wide {
  min-height: 460px;
}

.workspace-main-toolpage .workspace-subpanel {
  padding: 24px 26px;
}

.workspace-main-toolpage .tool-hero-card {
  margin-top: 0;
}

.workspace-main-toolpage .preview-stage-wide {
  min-height: 560px;
}

.workspace-main-toolpage .result-image-wrap {
  min-height: 260px;
}

.workspace-main-toolpage #preview {
  max-height: 520px;
}

#preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

#preview.preview-zoomable {
  cursor: zoom-in;
}

#previewContainer.preview-stage-zoomable {
  cursor: zoom-in;
}

#previewContainer.preview-stage-zoomable.crop-mode {
  cursor: crosshair;
}

.result-image-clickable {
  cursor: zoom-in;
}

.image-preview-modal {
  border: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.image-preview-modal .modal-header {
  padding: 22px 24px 10px;
}

.image-preview-modal .modal-body {
  padding: 0 24px 24px;
}

.image-preview-modal__stage {
  min-height: min(78vh, 880px);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview-modal__stage img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.preview-stage.crop-mode {
  cursor: crosshair;
}

#cropOverlay {
  display: none;
  position: absolute;
  border: 2px solid var(--cp-secondary);
  background: rgba(245, 158, 11, 0.18);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.12);
}

.footer-shell {
  position: relative;
  z-index: 1;
  padding: 22px 0 34px;
  color: var(--cp-muted);
}

.saas-nav {
  margin: 16px auto 0;
  width: min(calc(100% - 24px), 1400px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.84));
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.hero-shell {
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.feature-card,
.workspace-card-home,
.pricing-card,
.tool-switcher-link,
.file-card,
.result-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.pricing-card:hover,
.file-card:hover,
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.workspace-card-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
}

.workspace-studio {
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.84));
}

.studio-intro-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.studio-intro-step {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

.studio-intro-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.studio-intro-step span {
  color: var(--cp-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.upload-box {
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.86));
}

.workspace-subpanel {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.86));
}

.subpanel-head h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.preview-stage {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 245, 249, 0.92));
}

.file-card,
.result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
}

.result-card-head span,
.file-card-head .badge {
  box-shadow: none;
}

.tool-switcher-link.active,
.tool-nav-link.active,
.file-card.selected,
.result-card.active {
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(240, 249, 255, 0.9));
}

@media (max-width: 991px) {
  .saas-nav .navbar-brand {
    max-width: calc(100% - 56px);
  }

  .saas-nav .navbar-brand span:last-child {
    min-width: 0;
  }

  .saas-nav .navbar-brand strong,
  .saas-nav .navbar-brand small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .saas-nav .navbar-collapse {
    padding-top: 14px;
  }

  .saas-nav .navbar-nav {
    gap: 8px;
  }

  .saas-nav .d-flex.align-items-center.gap-2 {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }

  .saas-nav .d-flex.align-items-center.gap-2 > * {
    width: 100%;
  }

  .saas-nav .dropdown .btn,
  .saas-nav .btn {
    width: 100%;
  }

  .workspace-shell,
  .workspace-shell-tool-clean {
    grid-template-columns: 1fr;
  }

  .workspace-studio-grid {
    grid-template-columns: 1fr;
  }

  .workspace-panel-tool-clean {
    position: relative;
    top: 0;
    max-height: none;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .workspace-panel {
    position: relative;
    top: 0;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .glass-card,
  .pricing-card,
  .workspace-subpanel {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-shell .btn-lg {
    width: 100%;
  }

  .subpanel-head {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-stage {
    min-height: 260px;
  }

  .preview-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-actions-grid {
    grid-template-columns: 1fr;
  }

  .studio-intro-bar {
    grid-template-columns: 1fr;
  }

  #preview {
    max-height: 260px;
  }
}

@media (max-width: 767px) {
  .container-xxl.py-4.py-lg-5 {
    padding-top: 1rem !important;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-stats .mini-stat,
  .metric-strip div {
    padding: 14px;
  }

  .pricing-price {
    font-size: 1.7rem;
  }

  .tool-nav-link {
    padding: 12px;
    gap: 10px;
  }

  .tool-switcher-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-nav-link small {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .upload-box {
    min-height: 150px;
    padding: 36px 18px;
  }

  .upload-title {
    font-size: 1.05rem;
  }

  .workspace-main .row.g-4 {
    --bs-gutter-y: 1rem;
  }

  .workspace-card-home p {
    min-height: 0;
  }

  .saas-nav {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 20px;
  }

  .table {
    font-size: 0.92rem;
  }

  .footer-shell .container-xxl {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .hero-shell .display-4 {
    font-size: 2rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .logo-pill,
  .site-logo {
    width: 42px;
    height: 42px;
  }

  .site-logo {
    width: 120px;
  }

  .tool-chip-grid span {
    width: 100%;
    text-align: center;
  }

  .usage-pill {
    min-width: 0;
    width: 100%;
  }

  .file-list {
    max-height: 280px;
  }

  .file-card-actions .btn {
    width: 100%;
  }

  .selection-thumb {
    width: 64px;
    min-width: 64px;
    height: 64px;
  }
}

:root {
  --cp-primary: #c2410c;
  --cp-secondary: #0f766e;
  --cp-accent: #111827;
  --cp-text: #1f2937;
  --cp-muted: #6b7280;
  --cp-surface: #fffaf2;
  --cp-panel: rgba(255, 250, 242, 0.92);
  --cp-border: rgba(31, 41, 55, 0.08);
}

body.saas-body {
  font-family: var(--cp-font-family, "Sora", sans-serif);
  background:
    radial-gradient(circle at 12% 18%, rgba(194, 65, 12, 0.1), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(15, 118, 110, 0.11), transparent 20%),
    linear-gradient(180deg, #f6efe5 0%, #fbf7f1 45%, #f3f7f4 100%);
  color: var(--cp-text);
}

.bg-orb {
  filter: blur(100px);
  opacity: 0.55;
}

.saas-nav {
  width: min(calc(100% - 28px), 1380px);
  margin: 18px auto 0;
  padding: 8px 0;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(62, 39, 24, 0.08);
}

.brand-lockup {
  gap: 16px;
}

.brand-copy strong {
  display: block;
  font-family: var(--cp-font-family, "Sora", sans-serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #111827;
}

.brand-copy small {
  color: #7c6f64 !important;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.site-logo,
.logo-pill {
  border-radius: 18px;
}

.logo-pill {
  background: linear-gradient(145deg, #111827, #374151);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.saas-nav .nav-link {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
}

.saas-nav .nav-link:hover,
.saas-nav .nav-link:focus {
  background: #111827;
  color: #fff;
}

.workspace-link {
  background: #111827;
  color: #fff;
  border: 0;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.workspace-link-count {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-brand {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border-radius: 999px;
  padding-inline: 1.1rem;
  box-shadow: 0 14px 28px rgba(194, 65, 12, 0.18);
}

.btn-brand:hover,
.btn-brand:focus {
  background: linear-gradient(135deg, #9a3412, #c2410c);
}

.btn-outline-secondary,
.btn-outline-dark,
.btn-ghost {
  border-radius: 999px;
  border-color: rgba(17, 24, 39, 0.12);
  color: #111827;
}

.hero-shell,
.glass-card,
.pricing-card,
.workspace-subpanel,
.feature-card,
.workspace-card-home {
  border-radius: 34px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.97), rgba(255, 255, 255, 0.9));
  box-shadow: 0 22px 56px rgba(62, 39, 24, 0.08);
}

.hero-shell {
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(194, 65, 12, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 252, 247, 0.94));
}

.hero-shell .display-4,
.section-head h2,
.flow-step h1,
.flow-step h2,
.tool-hero-card h1,
.tool-hero-card h2 {
  font-family: var(--cp-font-family, "Sora", sans-serif);
  letter-spacing: -0.03em;
  color: #111827;
}

.hero-badge,
.eyebrow,
.flow-badge {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.mini-stat,
.metric-strip div,
.studio-intro-step,
.usage-pill {
  border-radius: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workspace-card-home:hover,
.feature-card:hover,
.pricing-card:hover,
.file-card:hover,
.result-card:hover,
.tool-switcher-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(62, 39, 24, 0.12);
}

.workspace-card-icon,
.feature-icon,
.tool-icon {
  background: linear-gradient(145deg, #111827, #374151);
  color: #fff;
  border-radius: 20px;
}

.workspace-card-link,
.link-arrow,
.step-link {
  color: #c2410c;
}

.flow-step,
.comparison-table-wrap {
  border-radius: 30px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 22px 56px rgba(62, 39, 24, 0.08);
}

.comparison-table thead th {
  background: #fff4e8;
  color: #7c2d12;
}

.tool-switcher-link,
.tool-nav-link {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.tool-switcher-link.active,
.tool-nav-link.active,
.file-card.selected,
.result-card.active {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.82), rgba(236, 253, 245, 0.78));
  border-color: rgba(194, 65, 12, 0.18);
}

.workspace-studio {
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(194, 65, 12, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.08), transparent 22%),
    linear-gradient(160deg, rgba(255, 249, 242, 0.98), rgba(255, 255, 255, 0.92));
}

.upload-box {
  border: 1.5px dashed rgba(194, 65, 12, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.88));
}

.upload-box.drag-over,
.upload-box:hover {
  border-color: #c2410c;
}

.preview-stage,
.result-image-wrap,
.selection-thumb,
.file-thumb-wrap {
  border-radius: 24px;
}

.preview-stage {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(244, 244, 245, 0.95));
}

.result-card,
.file-card {
  border-radius: 24px;
}

.preview-meta-chip {
  background: #111827;
  color: #fff;
}

.footer-shell {
  color: #7c6f64;
  padding-top: 30px;
}

@media (max-width: 991px) {
  .saas-nav {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 22px;
  }

  .hero-shell {
    padding: 26px;
  }
}

@media (max-width: 575px) {
  .hero-shell,
  .glass-card,
  .pricing-card,
  .workspace-subpanel {
    border-radius: 24px;
  }
}

.pdf-editor-shell,
.file-security-shell {
  padding: 30px;
}

.pdf-editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.pdf-editor-sidebar,
.pdf-editor-canvas-panel {
  padding: 24px;
}

.pdf-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pdf-preview-toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-preview-toolbar__value {
  min-width: 64px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #18212f;
}

.pdf-canvas-stage {
  min-height: 620px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,247,250,0.94));
  padding: 18px;
  overflow: auto;
}

.pdf-canvas-stage canvas {
  display: block;
  max-width: none;
  height: auto;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.pdf-file-list {
  display: grid;
  gap: 14px;
}

.pdf-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.pdf-file-card__meta {
  display: grid;
  gap: 4px;
}

.pdf-file-card__meta strong {
  font-size: 1rem;
  color: #18212f;
}

.pdf-file-card__meta span {
  color: rgba(24, 33, 47, 0.66);
  font-size: 0.92rem;
}

.pdf-file-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 33, 47, 0.08);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdf-file-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pdf-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.pdf-page-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.pdf-page-card__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #18212f;
}

.pdf-page-card__toggle input {
  width: 18px;
  height: 18px;
}

.pdf-page-card__preview {
  aspect-ratio: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 241, 246, 0.9), rgba(229, 234, 240, 0.88));
}

.pdf-page-card__preview img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.pdf-page-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdf-page-card__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.empty-state-inline {
  padding: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 24px;
  color: rgba(24, 33, 47, 0.64);
  text-align: center;
  background: rgba(255, 255, 255, 0.48);
}

.file-security-result {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-security-result:empty::before {
  content: "Processed download will appear here after the file is secured or unlocked.";
  color: var(--cp-muted);
  text-align: center;
  max-width: 320px;
}

@media (max-width: 991px) {
  .pdf-editor-grid {
    grid-template-columns: 1fr;
  }

  .pdf-canvas-stage {
    min-height: 420px;
  }

  .pdf-preview-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-file-card {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-file-card__actions {
    justify-content: flex-start;
  }

  .pdf-page-card__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-page-card__toolbar-actions {
    justify-content: flex-start;
  }

  .workspace-mega-menu {
    position: static !important;
    transform: none;
    width: 100%;
    margin-top: 8px;
    box-shadow: none !important;
  }

  .workspace-mega-menu__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-mega-grid {
    grid-template-columns: 1fr;
  }

  .workspace-category-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


:root {
  --cp-container-max: 1760px;
  --cp-primary: #146ef5;
  --cp-secondary: #00a76f;
  --cp-accent: #081226;
  --cp-text: #11203b;
  --cp-muted: #60708d;
  --cp-surface: #f4f8ff;
  --cp-panel: rgba(255, 255, 255, 0.86);
  --cp-border: rgba(17, 32, 59, 0.1);
}

body.saas-body {
  font-family: var(--cp-font-family, "Sora", sans-serif);
  background:
    radial-gradient(circle at top left, rgba(20, 110, 245, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(0, 167, 111, 0.1), transparent 24%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 38%, #f5fbf8 100%);
  color: var(--cp-text);
}

.site-shell {
  width: min(100%, var(--cp-container-max));
  max-width: var(--cp-container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 28px);
}

.site-shell--main {
  position: relative;
  z-index: 1;
}

.frontend-nav-shell {
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.frontend-nav-shell__inner {
  margin-top: 18px;
  padding: 16px 22px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(8, 18, 38, 0.9), rgba(20, 35, 70, 0.84)),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 20px 60px rgba(6, 15, 30, 0.18);
}

.frontend-nav-shell .brand-copy strong,
.frontend-nav-shell .brand-copy small,
.frontend-nav-shell .nav-link,
.frontend-library-pill,
.frontend-library-pill small {
  color: #f8fbff !important;
}

.frontend-nav-shell .brand-copy strong,
.hero-shell .display-4,
.section-head h2,
.workspace-directory__panel-head h2,
.workspace-directory__panel-head h3,
.library-hero h1 {
  font-family: var(--cp-font-family, "Sora", sans-serif);
  letter-spacing: -0.03em;
}

.frontend-nav-shell .nav-link {
  border-radius: 999px;
  padding: 11px 16px !important;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-nav-shell .nav-link:hover,
.frontend-nav-shell .nav-link:focus,
.frontend-nav-shell .show > .nav-link {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.frontend-nav-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.frontend-nav-links {
  align-items: center;
  gap: 8px;
}

.frontend-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frontend-library-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.frontend-library-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cp-primary), #5b8cff);
  color: #fff;
  font-weight: 800;
}

.frontend-library-pill small {
  font-size: 0.8rem;
  opacity: 0.76;
}

.frontend-mega-menu {
  width: min(1180px, calc(100vw - 32px));
  left: 50%;
  transform: translateX(-50%);
  margin-top: 18px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(248, 251, 255, 0.98);
}

.frontend-mega-menu__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 18px;
  border-bottom: 1px solid rgba(17, 32, 59, 0.08);
}

.frontend-mega-menu__eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 110, 245, 0.08);
  color: var(--cp-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-mega-menu__head strong {
  display: block;
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--cp-accent);
}

.frontend-mega-menu__head p {
  margin: 10px 0 0;
  max-width: 620px;
  color: var(--cp-muted);
}

.frontend-mega-browser {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 440px;
}

.frontend-mega-browser__nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: rgba(230, 239, 255, 0.64);
  border-right: 1px solid rgba(17, 32, 59, 0.08);
}

.frontend-mega-category {
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 32, 59, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cp-text);
}

.frontend-mega-category strong,
.workspace-directory__tab strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.frontend-mega-category span,
.workspace-directory__tab span {
  color: var(--cp-muted);
  font-size: 0.82rem;
}

.frontend-mega-category.is-active,
.workspace-directory__tab.is-active {
  background: linear-gradient(135deg, rgba(20, 110, 245, 0.12), rgba(0, 167, 111, 0.1));
  border-color: rgba(20, 110, 245, 0.2);
  box-shadow: 0 16px 28px rgba(20, 110, 245, 0.12);
}

.frontend-mega-browser__panels,
.workspace-directory__panels {
  padding: 22px;
}

.frontend-mega-panel,
.workspace-directory__panel {
  display: none;
}

.frontend-mega-panel.is-active,
.workspace-directory__panel.is-active {
  display: block;
}

.frontend-mega-panel__head,
.workspace-directory__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.frontend-mega-panel__head h3,
.workspace-directory__panel-head h2,
.workspace-directory__panel-head h3 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.frontend-mega-panel__count {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 32, 59, 0.05);
  color: var(--cp-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.frontend-mega-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.frontend-mega-tool {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--cp-text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 32, 59, 0.08);
}

.frontend-mega-tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(17, 32, 59, 0.08);
}

.frontend-mega-tool__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cp-primary), #5a7cff);
  color: #fff;
  flex: 0 0 auto;
}

.frontend-mega-tool__body strong {
  display: block;
  margin-bottom: 6px;
}

.frontend-mega-tool__body small {
  display: block;
  color: var(--cp-muted);
  line-height: 1.5;
}

.hero-shell,
.library-hero,
.workspace-directory,
.flow-step,
.showcase-card,
.workspace-studio,
.tool-hero-card,
.glass-card,
.pricing-card,
.workspace-subpanel {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.88));
  box-shadow: 0 22px 56px rgba(16, 32, 67, 0.09);
}

.hero-shell {
  padding: 44px;
  background:
    radial-gradient(circle at top left, rgba(20, 110, 245, 0.12), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(0, 167, 111, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92));
}

.story-kicker,
.hero-badge,
.eyebrow,
.flow-badge {
  background: rgba(20, 110, 245, 0.08);
  color: var(--cp-primary);
}

.workspace-directory {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.workspace-directory__sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.workspace-directory__tab {
  text-align: left;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 32, 59, 0.08);
  background: rgba(239, 245, 255, 0.68);
}

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

.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding: 34px;
}

.library-hero__content h1 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.library-hero__content p {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--cp-muted);
  line-height: 1.7;
}

.library-hero__aside {
  display: grid;
  gap: 14px;
}

.library-hero__metric {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 110, 245, 0.1), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(20, 110, 245, 0.12);
}

.library-hero__metric strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.library-hero__metric span {
  color: var(--cp-muted);
}

.workspace-card-home {
  background: #fff;
  border: 1px solid rgba(17, 32, 59, 0.08);
  box-shadow: 0 18px 36px rgba(17, 32, 59, 0.07);
}

.workspace-card-icon,
.feature-icon,
.tool-icon {
  background: linear-gradient(135deg, var(--cp-primary), #5a7cff);
  color: #fff;
}

.footer-shell__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 992px) {
  .footer-shell__inner {
    flex-direction: row;
    text-align: left;
  }
}

@media (max-width: 1199px) {
  .frontend-nav-cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .frontend-nav-links,
  .frontend-nav-actions {
    width: 100%;
  }

  .frontend-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .frontend-nav-actions > * {
    width: 100%;
  }

  .frontend-mega-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 991px) {
  .frontend-nav-shell__inner {
    padding: 14px 16px;
    border-radius: 24px;
  }

  .frontend-mega-browser,
  .workspace-directory,
  .library-hero {
    grid-template-columns: 1fr;
  }

  .frontend-mega-browser__nav,
  .workspace-directory__sidebar {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
  }

  .frontend-mega-tools {
    grid-template-columns: 1fr;
  }

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

  .section-head--split,
  .frontend-mega-menu__head,
  .frontend-mega-panel__head,
  .workspace-directory__panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .hero-shell,
  .library-hero,
  .workspace-directory,
  .flow-step,
  .showcase-card,
  .workspace-studio,
  .tool-hero-card,
  .glass-card,
  .pricing-card,
  .workspace-subpanel {
    padding: 22px;
    border-radius: 24px;
  }

  .workspace-grid-home {
    grid-template-columns: 1fr;
  }

  .library-hero__content h1,
  .hero-shell .display-4 {
    font-size: 2.35rem;
  }
}

.frontend-nav-shell {
  padding-top: 16px;
}

.frontend-nav-shell__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 18px 28px;
  border-radius: 0 0 32px 32px;
  background:
    linear-gradient(135deg, rgba(8, 18, 38, 0.94), rgba(17, 36, 72, 0.88)),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
}

.frontend-nav-shell .navbar-collapse {
  min-width: 0;
}

.frontend-nav-shell .navbar-nav {
  margin-inline: auto;
}

.frontend-nav-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 18px;
}

.frontend-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.frontend-nav-actions {
  justify-self: end;
  display: inline-flex;
  flex-wrap: wrap;
}

.frontend-library-pill {
  min-width: 124px;
  justify-content: center;
}

.frontend-mega-nav {
  position: static;
}

.frontend-mega-menu {
  top: calc(100% + 12px) !important;
  inset-inline: 0 auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(var(--cp-container-max), calc(100vw - 32px));
  border-radius: 30px;
  border: 1px solid rgba(17, 32, 59, 0.08);
  box-shadow: 0 30px 70px rgba(9, 21, 42, 0.18) !important;
}

.frontend-mega-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(248, 251, 255, 0.98);
  border-top: 1px solid rgba(17, 32, 59, 0.08);
  border-left: 1px solid rgba(17, 32, 59, 0.08);
  transform: translateX(-50%) rotate(45deg);
}

.frontend-mega-menu__head .btn {
  white-space: nowrap;
}

.footer-shell--rich {
  margin-top: 64px;
  padding: 0 0 28px;
  background:
    linear-gradient(180deg, rgba(5, 12, 26, 0) 0%, rgba(5, 12, 26, 0.02) 14%, rgba(8, 18, 38, 1) 14%, rgba(11, 23, 47, 1) 100%);
  color: rgba(240, 247, 255, 0.82);
}

.footer-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 32px;
  padding: 52px 28px 26px;
}

.footer-brand-block h2 {
  margin: 12px 0 12px;
  color: #fff;
  font-family: var(--cp-font-family, "Sora", sans-serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.footer-brand-block p {
  max-width: 420px;
  margin: 0;
  color: rgba(226, 236, 250, 0.68);
  line-height: 1.8;
}

.footer-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9bc0ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-link-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-link-group h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-link-group a {
  color: rgba(226, 236, 250, 0.72);
  text-decoration: none;
}

.footer-link-group a:hover {
  color: #ffffff;
}

.footer-shell__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 236, 250, 0.58);
  font-size: 0.9rem;
}

.footer-shell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1199px) {
  .frontend-nav-shell__inner {
    grid-template-columns: auto auto;
    border-radius: 0 0 24px 24px;
  }

  .frontend-nav-shell .navbar-collapse {
    grid-column: 1 / -1;
  }

  .frontend-nav-cluster {
    grid-template-columns: 1fr;
  }

  .frontend-nav-links {
    justify-content: flex-start;
  }

  .frontend-nav-actions {
    justify-self: stretch;
    justify-content: flex-start;
  }

  .frontend-mega-menu {
    width: 100%;
  }

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

@media (max-width: 767px) {
  .frontend-nav-shell {
    padding-top: 8px;
  }

  .frontend-nav-shell__inner {
    padding: 14px 16px;
    border-radius: 0 0 20px 20px;
  }

  .frontend-nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .frontend-nav-shell .nav-link,
  .frontend-nav-actions .btn,
  .frontend-library-pill {
    width: 100%;
    justify-content: center;
  }

  .frontend-mega-menu::before {
    display: none;
  }

  .footer-shell__grid {
    grid-template-columns: 1fr;
    padding: 38px 18px 24px;
  }

  .footer-shell__bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 0;
  }
}

.frontend-nav-shell {
  padding-top: 0;
}

.frontend-nav-shell__inner {
  padding: 12px 28px;
  border-radius: 0 0 26px 26px;
}

.frontend-nav-shell .btn-outline-dark {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.frontend-nav-shell .btn-outline-dark:hover,
.frontend-nav-shell .btn-outline-dark:focus {
  color: #081226;
  background: #ffffff;
  border-color: #ffffff;
}

.frontend-nav-shell .nav-link,
.frontend-nav-shell .btn,
.frontend-library-pill {
  min-height: 44px;
}

.frontend-nav-links {
  margin-bottom: 0;
}

.frontend-mega-menu {
  top: calc(100% + 10px) !important;
}

.footer-shell--rich {
  margin-top: 72px;
  padding: 24px 0 32px;
}

.footer-shell__grid {
  padding: 60px 28px 30px;
}

.footer-logo {
  display: block;
  margin: 14px 0 16px;
  object-fit: contain;
}

.footer-brand-block {
  padding-right: 18px;
}

.footer-shell__bar {
  padding-top: 22px;
}

@media (max-width: 1199px) {
  .frontend-nav-shell__inner {
    padding: 12px 18px;
  }
}

@media (max-width: 767px) {
  .frontend-nav-shell {
    padding-top: 0;
  }

  .frontend-nav-shell__inner {
    padding: 10px 14px;
    border-radius: 0 0 18px 18px;
  }

  .footer-shell__grid {
    padding: 42px 18px 24px;
  }
}

body,
body.saas-body,
button,
input,
select,
textarea {
  font-family: var(--cp-font-family, "Sora", sans-serif);
}

h1,
h2,
h3,
h4,
h5,
h6,
.frontend-nav-shell .brand-copy strong,
.hero-shell .display-4,
.section-head h2,
.workspace-directory__panel-head h2,
.workspace-directory__panel-head h3,
.library-hero h1,
.footer-brand-block h2 {
  font-family: var(--cp-font-family, "Sora", sans-serif) !important;
  letter-spacing: -0.02em;
}

.btn,
.btn-brand,
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.frontend-nav-shell {
  margin-top: 0;
}

.frontend-nav-shell__inner {
  min-height: 84px;
}

.frontend-nav-shell .nav-link,
.frontend-nav-shell .btn,
.frontend-library-pill {
  align-items: center;
}

.frontend-nav-shell .btn-outline-dark {
  color: rgba(248, 251, 255, 0.96);
}

.frontend-nav-shell .btn-outline-dark:hover,
.frontend-nav-shell .btn-outline-dark:focus {
  color: #081226;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.footer-brand-link:hover {
  color: inherit;
}

.footer-shell__meta a {
  color: rgba(226, 236, 250, 0.72);
  text-decoration: none;
}

.footer-shell__meta a:hover {
  color: #ffffff;
}

#pricing .flow-step {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

#pricing .comparison-table-wrap {
  margin-top: 0;
}

@media (max-width: 1199px) {
  .frontend-nav-shell__inner {
    min-height: 72px;
  }
}

@media (max-width: 767px) {
  .frontend-nav-shell__inner {
    min-height: 64px;
  }

  .footer-shell__meta {
    gap: 12px;
  }
}

:root {
  --cp-button: var(--cp-primary);
  --cp-button-hover: #0b5f58;
}

.btn-brand {
  background: var(--cp-button) !important;
  border-color: var(--cp-button) !important;
  color: #fff !important;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--cp-button-hover) !important;
  border-color: var(--cp-button-hover) !important;
  color: #fff !important;
}

.frontend-mega-menu__head .btn {
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
}

.frontend-mega-menu__head .btn-outline-dark {
  color: var(--cp-text);
  background: #ffffff;
  border-color: rgba(17, 32, 59, 0.14);
}

.frontend-mega-menu__head .btn-outline-dark:hover,
.frontend-mega-menu__head .btn-outline-dark:focus {
  color: #ffffff;
  background: var(--cp-button);
  border-color: var(--cp-button);
}

.auth-shell {
  min-height: 100vh;
  padding-block: 56px;
}

.auth-shell .container {
  max-width: min(1580px, calc(100vw - 40px));
  padding-bottom: 24px;
}

.footer-shell--rich {
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-brand-block {
  display: grid;
  gap: 16px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.footer-brand-copy {
  display: grid;
  gap: 4px;
}

.footer-brand-copy strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.1;
}

.footer-brand-copy small {
  color: rgba(226, 236, 250, 0.72);
}

.footer-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-button);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 16px 28px color-mix(in srgb, var(--cp-button) 28%, transparent);
}

.footer-logo {
  display: block;
}

.plan-choice-card .btn {
  margin-top: auto;
}

.plan-select-card {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
}

.plan-select-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.plan-select-card__body {
  height: 100%;
}

.plan-select-card input:checked + .plan-select-card__body,
.plan-select-card.is-active .plan-select-card__body {
  border-color: var(--cp-button);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--cp-button) 18%, transparent);
}

.plan-summary-card {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(160deg, #0f172a 0%, #153a63 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.plan-summary-card .plan-price {
  color: #fff;
}

.plan-summary-card ul {
  margin: 0;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.86);
}

.plan-summary-card ul li + li {
  margin-top: 0.3rem;
}

body,
body.saas-body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.frontend-nav-shell .brand-copy strong,
.hero-shell .display-4,
.section-head h2,
.workspace-directory__panel-head h2,
.workspace-directory__panel-head h3,
.library-hero h1,
.footer-brand-block h2,
.flow-step h1,
.flow-step h2,
.tool-hero-card h1,
.tool-hero-card h2 {
  font-family: var(--cp-font-family, "Sora", sans-serif) !important;
  letter-spacing: normal;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gateway-option {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
}

.gateway-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.gateway-option__card {
  height: 100%;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(17, 32, 59, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(17, 32, 59, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gateway-option__card:hover {
  transform: translateY(-2px);
}

.gateway-option input:checked + .gateway-option__card {
  border-color: var(--cp-button);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--cp-button) 24%, transparent);
}

.gateway-option__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.gateway-option__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 32, 59, 0.06);
  color: var(--cp-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gateway-option__meta,
.gateway-help {
  color: var(--cp-muted);
  font-size: 0.92rem;
}

.gateway-panel.is-hidden {
  display: none;
}



/* Dedicated tool studio redesign */
.tool-page-shell {
  width: 100%;
  max-width: none;
  padding: 24px 0 48px;
}

.tool-page-shell #workspace {
  margin-bottom: 0 !important;
}

.tool-page-shell .workspace-shell-tool-clean {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
  align-items: start;
}

.tool-page-shell .workspace-sidebar-tool-clean {
  position: sticky;
  top: 84px;
  align-self: start;
  min-height: calc(100vh - 84px);
  padding-bottom: 24px;
}

.tool-page-shell .workspace-panel-tool-clean {
  position: sticky;
  top: 84px;
  min-height: calc(100vh - 84px);
  max-height: calc(100vh - 84px);
  border-radius: 32px;
  background: linear-gradient(180deg, #0f172a 0%, #121f39 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 24px 18px 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

.tool-page-shell .workspace-sidebar-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #b8d5ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-page-shell .workspace-panel-tool-clean__top h2 {
  margin: 12px 0 6px;
  color: #f8fbff;
  font-size: 1.25rem;
}

.tool-page-shell .workspace-panel-tool-clean__top p {
  margin: 0;
  color: rgba(208, 220, 242, 0.8) !important;
  line-height: 1.55;
}

.tool-page-shell .workspace-panel-tool-clean__top .btn {
  justify-self: stretch;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.tool-page-shell .workspace-panel-tool-clean__list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
}

.tool-page-shell .tool-nav-link--sidebar {
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #eff5ff;
}

.tool-page-shell .tool-nav-link--sidebar:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  transform: none;
  box-shadow: none;
}

.tool-page-shell .tool-nav-link--sidebar.active {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.08));
  box-shadow: inset 3px 0 0 #60a5fa;
}

.tool-page-shell .tool-nav-link--sidebar small {
  color: rgba(208, 220, 242, 0.72);
}

.tool-page-shell .tool-icon,
.tool-page-shell .tool-nav-link--sidebar .tool-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.tool-page-shell .workspace-main-tool-clean {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.tool-page-shell .workspace-utility-bar {
  padding: 18px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tool-page-shell .workspace-utility-bar__usage {
  display: flex;
  align-items: center;
}

.tool-page-shell .workspace-utility-bar__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-page-shell .workspace-command-bar {
  padding: 24px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
  display: block;
}

.tool-page-shell .workspace-command-bar__copy {
  display: grid;
  gap: 10px;
}

.tool-page-shell .workspace-command-bar__copy p {
  max-width: 760px;
}

.tool-page-shell .workspace-usage-panel {
  min-width: 250px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #0f172a;
  color: #fff;
}

.tool-page-shell .workspace-usage-panel span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.tool-page-shell .workspace-usage-panel small {
  color: rgba(255, 255, 255, 0.74);
}

.tool-page-shell .workspace-studio--tool-clean {
  margin-top: 0;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.99) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
}

.tool-page-shell .studio-intro-bar--tool-clean {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.tool-page-shell .studio-intro-step {
  border-radius: 20px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.tool-page-shell .upload-box--tool-clean {
  min-height: 0;
  padding: 34px 28px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(255, 255, 255, 0.95));
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.tool-page-shell .upload-box--tool-clean .upload-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.tool-page-shell .upload-box--tool-clean .upload-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #0f172a;
}

.tool-page-shell .upload-box--tool-clean .text-secondary {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.tool-page-shell .upload-highlights {
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

.tool-page-shell .upload-highlights span {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.tool-page-shell .upload-highlights span i {
  color: var(--cp-primary);
}

.tool-page-shell .workspace-studio-grid {
  grid-template-columns: minmax(350px, 390px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.tool-page-shell .workspace-subpanel {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.tool-page-shell .workspace-queue-panel,
.tool-page-shell .workspace-preview-panel,
.tool-page-shell .workspace-results-panel {
  padding: 24px;
  position: relative;
}

.tool-page-shell .workspace-queue-panel::before,
.tool-page-shell .workspace-preview-panel::before,
.tool-page-shell .workspace-results-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(251, 146, 60, 0.72));
}

.tool-page-shell .subpanel-head--studio {
  align-items: flex-start;
  gap: 16px;
  padding-top: 10px;
}

.tool-page-shell .workspace-subpanel-note,
.tool-page-shell .workspace-panel-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--cp-muted);
  margin-bottom: 16px;
}

.tool-page-shell .workspace-panel-callout strong,
.tool-page-shell .workspace-subpanel-note strong {
  color: var(--cp-text);
}

.tool-page-shell .workspace-panel-callout--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.95));
  border-color: rgba(16, 185, 129, 0.16);
}

.tool-page-shell .selection-strip {
  margin-bottom: 16px;
}

.tool-page-shell .selection-thumb {
  border-radius: 20px;
}

.tool-page-shell .file-list {
  max-height: 720px;
}

.tool-page-shell .file-card,
.tool-page-shell .result-card {
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.tool-page-shell .file-card-head,
.tool-page-shell .result-card-head {
  align-items: flex-start;
}

.tool-page-shell .file-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-page-shell .file-card-actions .btn {
  width: 100%;
  flex: none;
}

.tool-page-shell .preview-stage {
  min-height: 520px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.tool-page-shell #preview {
  max-height: 500px;
}

.tool-page-shell .preview-toolbar--studio {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  align-items: flex-end;
  flex-wrap: wrap;
}

.tool-page-shell .preview-toolbar-copy {
  max-width: 520px;
  line-height: 1.6;
}

.tool-page-shell .preview-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.tool-page-shell .preview-toolbar-actions + .btn.btn-brand {
  min-width: 220px;
}

.tool-page-shell .result-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tool-page-shell .result-card .d-grid {
  grid-template-columns: 1fr;
}

.tool-page-shell .result-image-wrap {
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eff4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.tool-page-shell .preview-meta-chip {
  border-radius: 16px;
  padding: 10px 14px;
}

.tool-page-shell .workspace-env-card {
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 249, 255, 0.98) 100%);
}

.tool-page-shell .workspace-env-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-page-shell .workspace-env-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-page-shell .workspace-env-item {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.tool-page-shell .workspace-env-item.is-ready {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95) 0%, #ffffff 100%);
  border-color: rgba(16, 185, 129, 0.26);
}

.tool-page-shell .workspace-env-item.is-required {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95) 0%, #ffffff 100%);
  border-color: rgba(249, 115, 22, 0.24);
}

.tool-page-shell .workspace-env-item.is-recommended {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, #ffffff 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

.tool-page-shell .workspace-env-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-page-shell .workspace-env-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-page-shell .workspace-env-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--cp-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tool-page-shell .workspace-env-help {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--cp-text);
}

.tool-page-shell .workspace-env-item p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 1199px) {
  .tool-page-shell .workspace-shell-tool-clean {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 14px;
  }

  .tool-page-shell .workspace-sidebar-tool-clean,
  .tool-page-shell .workspace-panel-tool-clean {
    position: relative;
    top: 0;
    min-height: 0;
    max-height: none;
  }

  .tool-page-shell .workspace-panel-tool-clean {
    border-radius: 26px;
    margin: 0;
    border-right: 0;
  }

  .tool-page-shell .workspace-main-tool-clean {
    padding: 0;
  }

  .tool-page-shell .workspace-command-bar {
    display: block;
  }

  .tool-page-shell .workspace-utility-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-page-shell .workspace-utility-bar__actions {
    justify-content: stretch;
  }

  .tool-page-shell .workspace-utility-bar__actions .btn {
    flex: 1 1 220px;
  }

  .tool-page-shell .workspace-env-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tool-page-shell {
    padding-top: 18px;
  }

  .tool-page-shell .workspace-main-tool-clean {
    padding: 0 14px;
  }

  .tool-page-shell .workspace-panel-tool-clean {
    margin: 0 14px 16px;
    padding: 18px 14px;
  }

  .tool-page-shell .studio-intro-bar--tool-clean,
  .tool-page-shell .workspace-studio-grid,
  .tool-page-shell .file-card-actions,
  .tool-page-shell .workspace-actions-grid {
    grid-template-columns: 1fr;
  }

  .tool-page-shell .workspace-studio--tool-clean {
    padding: 18px;
  }

  .tool-page-shell .workspace-utility-bar {
    padding: 16px;
  }

  .tool-page-shell .preview-stage {
    min-height: 320px;
  }

  .tool-page-shell #preview {
    max-height: 300px;
  }

  .tool-page-shell .preview-toolbar--studio {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-page-shell .workspace-env-card,
  .tool-page-shell .workspace-env-card__head {
    display: grid;
    gap: 14px;
  }
}

.tool-page-shell--standalone .tool-page-header {
  display: none;
}

.tool-page-shell--standalone .workspace-standalone-body {
  display: grid;
  gap: 24px;
}

.tool-page-shell--standalone .glass-card,
.tool-page-shell--standalone .pdf-editor-shell,
.tool-page-shell--standalone .file-security-shell {
  border-radius: 30px;
}

.tool-page-shell--standalone .workspace-subpanel {
  border-radius: 24px;
}

.tool-page-shell--standalone .pdf-editor-shell,
.tool-page-shell--standalone .file-security-shell,
.tool-page-shell--standalone .workspace-subpanel,
.tool-page-shell--standalone .glass-card {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
}

.tool-page-shell--standalone .pdf-editor-shell,
.tool-page-shell--standalone .file-security-shell {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.99) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.tool-page-shell--standalone .pdf-editor-grid,
.tool-page-shell--standalone .row.g-4.align-items-start {
  align-items: start;
}

.tool-page-shell--standalone .workspace-subpanel h3,
.tool-page-shell--standalone .subpanel-head h3 {
  font-size: 1.1rem;
}

.tool-page-shell--standalone .pdf-canvas-stage,
.tool-page-shell--standalone .file-security-result {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #f8fbff 0%, #eff4fb 100%);
}

.tool-page-shell--standalone .upload-box,
.tool-page-shell--standalone .pdf-upload-box {
  min-height: 0;
  padding: 30px 24px;
  border-radius: 26px;
  border: 1px dashed rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(255, 255, 255, 0.95));
}

.tool-page-shell--standalone .workspace-command-bar {
  margin-top: 0;
}

@media (max-width: 1199px) {
  .tool-page-shell--standalone .workspace-main-tool-clean {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  .tool-page-shell--standalone .pdf-editor-shell,
  .tool-page-shell--standalone .file-security-shell {
    padding: 18px;
  }
}

/* Edit PDF phase 1 */
.pdf-editor-shell--advanced {
  padding: 28px;
}

.workspace-shell-tool-clean--no-sidebar {
  display: block;
}

.workspace-shell-tool-clean--no-sidebar .workspace-main-tool-clean {
  width: 100%;
}

.pdf-editor-grid--advanced {
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
  gap: 24px;
}

.pdf-editor-grid--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.pdf-editor-grid--stacked .pdf-editor-canvas-panel--advanced {
  order: 1;
}

.pdf-editor-grid--stacked .pdf-editor-sidebar {
  order: 2;
}

.pdf-editor-canvas-panel--advanced {
  min-width: 0;
}

.pdf-inspector-head {
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.pdf-editor-toolbar {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
}

.pdf-editor-grid--stacked .pdf-editor-toolbar {
  position: sticky;
  top: 88px;
  z-index: 4;
}

.pdf-editor-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pdf-editor-toolbar__group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.pdf-tool-button {
  appearance: none;
  border: 0;
  background: #ffffff;
  color: #1e3a5f;
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-tool-button + .pdf-tool-button {
  border-left: 1px solid rgba(37, 99, 235, 0.14);
}

.pdf-tool-button i {
  font-size: 0.95rem;
}

.pdf-tool-button:hover:not(:disabled),
.pdf-tool-button:focus-visible:not(:disabled) {
  background: rgba(37, 99, 235, 0.08);
  color: #0f4ec9;
  outline: none;
}

.pdf-tool-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pdf-tool-button--danger {
  color: #c2410c;
}

.pdf-tool-button--danger:hover:not(:disabled),
.pdf-tool-button--danger:focus-visible:not(:disabled) {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.pdf-editor-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fbff;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pdf-editor-nav-bar__group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-editor-nav-bar__group--search {
  flex: 1 1 420px;
}

.pdf-editor-nav-bar__group .form-control-sm {
  min-width: 110px;
}

.pdf-editor-nav-bar--search .form-control-sm[type="search"] {
  min-width: 260px;
}

.pdf-editor-nav-bar__status {
  font-weight: 700;
  color: var(--cp-text);
}

.pdf-selection-bar {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 12px;
  z-index: 6;
}

.pdf-selection-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pdf-selection-bar__controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 12px;
  align-items: end;
}

.pdf-selection-bar__field {
  display: grid;
  gap: 6px;
}

.pdf-selection-bar__field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdf-selection-bar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  grid-column: 1 / -1;
}

.pdf-selection-bar__actions .btn,
.pdf-selection-bar__field .form-control,
.pdf-selection-bar__field .form-select {
  min-height: 42px;
}

.pdf-selection-bar__field--text {
  grid-column: 1 / -1;
}

.pdf-editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.pdf-thumb-panel {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fbff;
  padding: 14px;
  max-height: 920px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.pdf-thumb-panel--rail {
  max-height: none;
  overflow: visible;
}

.pdf-thumb-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.pdf-thumb-panel__head span {
  color: var(--cp-muted);
}

.pdf-thumb-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 132px);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.pdf-thumb-list__loading {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  color: var(--cp-muted);
  text-align: center;
}

.pdf-thumb-item {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pdf-thumb-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.pdf-thumb-item.is-active {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.98));
}

.pdf-thumb-item canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.pdf-thumb-item__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cp-text);
}

.pdf-preview-surface {
  min-width: 0;
  position: relative;
}

.pdf-canvas-stage {
  overflow-y: auto;
  overflow-x: hidden;
}

.pdf-canvas-stage canvas {
  margin-inline: auto;
}

@media (max-width: 1199px) {
  .pdf-editor-grid--advanced {
    grid-template-columns: 1fr;
  }

  .pdf-editor-workspace {
    grid-template-columns: 1fr;
  }

  .pdf-thumb-panel {
    max-height: none;
  }

  .pdf-thumb-list {
    grid-auto-columns: minmax(96px, 112px);
  }

  .pdf-thumb-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .pdf-editor-shell--advanced {
    padding: 18px;
  }

  .pdf-editor-nav-bar {
    align-items: stretch;
  }

  .pdf-editor-nav-bar__group {
    width: 100%;
  }

  .pdf-editor-nav-bar__group .btn {
    flex: 1 1 0;
  }

  .pdf-thumb-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Edit PDF selectable text layer */
.pdf-page-layer {
  position: relative;
  width: fit-content;
  min-width: 0;
  margin-inline: auto;
}

.pdf-text-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  line-height: 1;
  transform-origin: 0 0;
  user-select: text;
  -webkit-user-select: text;
}

.pdf-text-layer span,
.pdf-text-layer br {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
}

.pdf-text-layer ::selection {
  background: rgba(37, 99, 235, 0.28);
}

.pdf-selected-text-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fbff;
  margin-bottom: 16px;
}

.pdf-selected-text-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pdf-selected-text {
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: #ffffff;
  color: var(--cp-text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pdf-selected-text-meta {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #5b6b86;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Edit PDF phase 3 */
.pdf-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-overlay-item {
  position: absolute;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  cursor: grab;
  backdrop-filter: blur(4px);
  pointer-events: auto;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pdf-overlay-item:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}

.pdf-overlay-item.is-selected {
  border-color: rgba(249, 115, 22, 0.9);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.18), 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.pdf-overlay-item.is-dragging {
  cursor: grabbing;
}

.pdf-overlay-resize {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #f97316;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
  z-index: 3;
}

.pdf-overlay-resize::before {
  content: none;
}

.pdf-overlay-resize--nw {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}

.pdf-overlay-resize--ne {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.pdf-overlay-resize--sw {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.pdf-overlay-resize--se {
  bottom: -7px;
  right: -7px;
  cursor: nwse-resize;
}

.pdf-overlay-resize--end {
  right: -7px;
  top: calc(50% - 7px);
  cursor: ew-resize;
}

.pdf-overlay-item--text {
  padding: 10px 12px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.pdf-overlay-item--image {
  background: rgba(255, 255, 255, 0.92);
}

.pdf-overlay-item--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.pdf-overlay-item--whiteout {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.4);
}

.pdf-overlay-item--highlight {
  border-color: rgba(250, 204, 21, 0.72);
}

.pdf-overlay-item--rectangle {
  box-shadow: none;
}

.pdf-overlay-item--line {
  overflow: visible;
}

.pdf-overlay-item--signature {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(29, 78, 216, 0.18);
}

.pdf-overlay-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform-origin: left center;
  border-radius: 999px;
  pointer-events: none;
}

.pdf-overlay-item__label {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.pdf-overlay-item__body {
  width: 100%;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: none;
  pointer-events: auto;
  cursor: text;
}

.pdf-overlay-item__body.is-editing {
  user-select: text;
  pointer-events: auto;
  outline: none;
  cursor: text;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
  padding: 2px 4px;
}

.pdf-overlay-item.is-editing {
  border-color: rgba(37, 99, 235, 0.85);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.16);
}

.pdf-overlay-item.is-editing .pdf-overlay-item__label {
  background: rgba(37, 99, 235, 0.92);
}

.pdf-object-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fbff;
  margin-bottom: 16px;
}

.pdf-editor-grid--stacked .pdf-editor-sidebar {
  display: grid;
  gap: 18px;
}

.pdf-editor-sidebar--hidden {
  display: none !important;
}

.pdf-editor-grid--stacked .pdf-editor-sidebar .row.g-3 {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fbff;
}

.pdf-editor-grid--stacked .pdf-selected-text-panel,
.pdf-editor-grid--stacked .pdf-object-panel {
  margin-bottom: 0;
}

.pdf-editor-download-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

.pdf-editor-download-bar .btn {
  min-width: 240px;
}

.pdf-object-context-menu {
  position: fixed;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.pdf-selection-bar[hidden],
.pdf-object-context-menu[hidden] {
  display: none !important;
}

.pdf-object-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pdf-object-panel__head span {
  color: var(--cp-muted);
  font-size: 0.88rem;
}

.pdf-object-list {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.pdf-object-list__empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  background: #fff;
  color: var(--cp-muted);
  text-align: center;
}

.pdf-object-list__item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.pdf-object-list__item.is-active {
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.pdf-object-list__item strong {
  font-size: 0.95rem;
  color: var(--cp-text);
}

.pdf-object-list__item small,
.pdf-object-list__item-type {
  color: var(--cp-muted);
}

.pdf-object-list__item-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdf-object-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pdf-object-actions--secondary .btn {
  background: #fff;
}

.pdf-annotation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 767px) {
  .pdf-object-actions {
    grid-template-columns: 1fr;
  }

  .pdf-annotation-grid {
    grid-template-columns: 1fr;
  }

  .pdf-editor-toolbar__group {
    width: 100%;
  }

  .pdf-tool-button {
    flex: 1 1 0;
  }

  .pdf-editor-grid--stacked .pdf-editor-toolbar {
    position: static;
  }

  .pdf-selection-bar__controls {
    grid-template-columns: 1fr;
  }

  .pdf-selection-bar__actions {
    justify-content: stretch;
  }
}

.pdf-overlay-item.is-locked {
  border-style: dashed;
}

.pdf-overlay-item__state {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.pdf-snap-guide {
  position: absolute;
  background: rgba(29, 78, 216, 0.55);
  pointer-events: none;
  z-index: 1;
}

.pdf-snap-guide--vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.pdf-snap-guide--horizontal {
  left: 0;
  right: 0;
  height: 1px;
}

.pdf-object-list__states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdf-object-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--cp-text);
  font-size: 0.7rem;
  font-weight: 700;
}
