:root {
  --md-bg: #ffffff;
  --md-surface: #f8fafc;
  --md-surface-variant: #f1f5f9;
  --md-surface-container: #eef2f6;
  --md-outline: #cbd5e1;
  --md-outline-light: #e2e8f0;
  --md-text: #0f172a;
  --md-text-muted: #475569;
  --md-primary: #1a73e8;
  --md-primary-hover: #1557b0;
  --md-primary-tonal: #e8f0fe;
  --md-primary-on-tonal: #174ea6;
  --md-success: #0f9d58;
  --md-success-tonal: #e6f4ea;
  --md-warning: #e37400;
  --md-warning-tonal: #fef7e0;
  --md-error: #d93025;
  --md-error-tonal: #fce8e6;
  --md-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --md-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --md-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--md-bg);
  color: var(--md-text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code {
  background: var(--md-surface-variant);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

.hidden {
  display: none !important;
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Top App Bar */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--md-outline-light);
}

.app-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--md-text);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--md-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-powered {
  margin-left: 48px;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--md-text-muted);
  text-decoration: none;
}

.brand-powered:hover {
  color: var(--md-primary);
  text-decoration: underline;
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-warning);
  display: inline-block;
}

.status-dot.connected {
  background: var(--md-success);
}

/* Material Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn .material-symbols-rounded {
  font-size: 19px;
}

.btn-filled {
  background: var(--md-primary);
  color: #ffffff;
  box-shadow: var(--md-shadow-sm);
}

.btn-filled:hover:not(:disabled) {
  background: var(--md-primary-hover);
  box-shadow: var(--md-shadow-md);
}

.btn-success {
  background: var(--md-success);
  color: #ffffff;
}

.btn-tonal {
  background: var(--md-primary-tonal);
  color: var(--md-primary-on-tonal);
}

.btn-tonal:hover:not(:disabled) {
  background: #d2e3fc;
}

.btn-outlined {
  background: #ffffff;
  color: var(--md-text);
  border: 1px solid var(--md-outline);
}

.btn-outlined:hover:not(:disabled) {
  background: var(--md-surface);
}

.btn-text {
  background: transparent;
  color: var(--md-text-muted);
  padding: 8px 14px;
}

.btn-text:hover:not(:disabled) {
  background: var(--md-surface-variant);
  color: var(--md-text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--md-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--md-surface-variant);
  color: var(--md-text);
}

/* Main Layout */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.app-footer {
  border-top: 1px solid var(--md-outline-light);
  background: var(--md-surface);
  padding: 16px 24px;
  margin-top: 32px;
}

.app-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--md-text-muted);
}

.footer-powered {
  font-style: italic;
  color: var(--md-primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-powered:hover {
  text-decoration: underline;
}

.files-pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.verify-email-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.verify-email-row input {
  flex: 1;
}

/* Hero & Stepper */
.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 4px 0 0;
  color: var(--md-text-muted);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--md-surface);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--md-outline-light);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
}

.step-pill.active {
  background: var(--md-primary);
  color: #ffffff;
}

.step-pill.done {
  background: var(--md-success-tonal);
  color: var(--md-success);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-pill.active .step-num {
  background: rgba(255, 255, 255, 0.25);
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--md-outline-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--md-shadow-sm);
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-subtitle {
  margin: 0 0 18px;
  color: var(--md-text-muted);
  font-size: 0.92rem;
}

/* Form Elements */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-text);
}

.field-group input,
.field-group select {
  font-family: inherit;
  font-size: 0.94rem;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--md-outline);
  background: #ffffff;
  color: var(--md-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--md-text-muted);
}

/* Upload Dropzone */
.dropzone {
  border: 2px dashed var(--md-outline);
  border-radius: var(--radius-lg);
  padding: 38px 24px;
  text-align: center;
  background: var(--md-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--md-primary);
  background: var(--md-primary-tonal);
}

.dropzone-icon {
  font-size: 44px;
  color: var(--md-primary);
  margin-bottom: 8px;
}

.dropzone-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--md-outline-light);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Signers List */
.signers-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signer-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--md-surface);
  border: 1px solid var(--md-outline-light);
}

.signer-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Workspace Split (Field Placement & Signer View) */
.studio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.studio-sidebar {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signer-selector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signer-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: var(--md-surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.signer-select-item.active {
  background: #ffffff;
  border-color: var(--md-primary);
  box-shadow: var(--md-shadow-sm);
}

.signer-select-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.signer-select-name {
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-count-chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--md-surface-container);
  color: var(--md-text-muted);
}

/* Document Viewer */
.doc-viewer-card {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-light);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--md-outline-light);
}

.page-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doc-stage-scroll {
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.doc-page-stage {
  position: relative;
  display: inline-block;
  background: #ffffff;
  box-shadow: var(--md-shadow-md);
  border-radius: 4px;
  user-select: none;
  touch-action: none;
}

.doc-page-stage canvas,
.doc-page-stage img.doc-page-img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Signature Field Boxes */
.sig-field-box {
  position: absolute;
  border: 2px dashed;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  transition: box-shadow 0.15s ease;
  overflow: hidden;
}

.sig-field-box.clickable-sign {
  cursor: pointer;
  animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(26, 115, 232, 0);
  }
}

.sig-field-box.signed-box {
  border-style: solid;
  cursor: default;
  animation: none;
  background: rgba(255, 255, 255, 0.85);
}

.sig-field-box img.placed-sig-img {
  width: 92%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
}

.sig-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  text-align: center;
}

.sig-field-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--md-error);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--md-shadow-sm);
}

.sig-field-resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: nwse-resize;
  opacity: 0.85;
}

/* Status Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip-success {
  background: var(--md-success-tonal);
  color: var(--md-success);
}

.chip-warning {
  background: var(--md-warning-tonal);
  color: var(--md-warning);
}

.chip-info {
  background: var(--md-primary-tonal);
  color: var(--md-primary-on-tonal);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--md-shadow-lg);
}

.modal-card-lg {
  max-width: 760px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--md-primary-tonal);
  color: var(--md-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-subtitle {
  margin: 3px 0 0;
  color: var(--md-text-muted);
  font-size: 0.88rem;
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--md-primary-tonal);
  color: var(--md-primary-on-tonal);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--md-outline-light);
}

.modal-footer-end {
  justify-content: flex-end;
}

.test-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.test-email-row input {
  flex: 1;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--md-outline);
}

/* Signature Modal Tabs & Fonts */
.tabs {
  display: flex;
  gap: 6px;
  background: var(--md-surface);
  padding: 5px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--md-text-muted);
  cursor: pointer;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--md-primary);
  box-shadow: var(--md-shadow-sm);
}

.color-swatches {
  display: flex;
  gap: 10px;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.swatch-btn.active {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

.font-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.font-option-card {
  padding: 14px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--md-outline-light);
  background: var(--md-surface);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.font-option-card.active {
  border-color: var(--md-primary);
  background: var(--md-primary-tonal);
}

.font-preview-text {
  font-size: 1.65rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-label-name {
  font-size: 0.72rem;
  color: var(--md-text-muted);
  margin-top: 4px;
}

.draw-pad-wrapper {
  position: relative;
  border: 1.5px dashed var(--md-outline);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

#drawSigCanvas {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
}

.clear-pad-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.upload-sig-zone {
  border: 2px dashed var(--md-outline);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: var(--md-surface);
}

.upload-sig-icon {
  font-size: 36px;
  color: var(--md-primary);
}

.sig-upload-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--md-outline-light);
  text-align: center;
  background: var(--md-surface);
}

.sig-upload-preview img {
  max-height: 120px;
  max-width: 100%;
}

/* Tracking & Envelopes List */
.envelopes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.envelope-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--md-outline-light);
  background: var(--md-surface);
}

.signer-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.signer-status-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--md-outline-light);
  background: var(--md-surface);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* Snackbar */
.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: #1e293b;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--md-shadow-lg);
}

.snackbar.error {
  background: var(--md-error);
}

.snackbar.success {
  background: var(--md-success);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .studio-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .main-container {
    padding: 14px;
  }
  .app-bar-inner {
    padding: 10px 14px;
  }
  .hide-sm {
    display: none;
  }
  .field-row-2,
  .font-grid {
    grid-template-columns: 1fr;
  }
  .signer-row {
    grid-template-columns: 1fr;
  }
  .stepper {
    width: 100%;
    overflow-x: auto;
  }
}


/* ==========================================================================
   Unified OpenAppsAI Suite Chrome (Header & Footer)
   ========================================================================== */
.oa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px 0;
  background: transparent;
}

.oa-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(203, 213, 225, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 22px rgba(32, 42, 88, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oa-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.oa-prism-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oa-prism-btn:hover { transform: scale(1.06); }

.oa-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 52%, #F43F5E 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 7px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.34);
  flex-shrink: 0;
}

.oa-dot { background: #FFFFFF; display: block; }
.oa-dot.d1, .oa-dot.d4 { border-radius: 2.5px; }
.oa-dot.d2, .oa-dot.d3 { border-radius: 50%; opacity: 0.84; }

.oa-divider {
  width: 1px;
  height: 22px;
  background: rgba(98, 108, 152, 0.25);
  flex-shrink: 0;
}

.oa-app-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 10px;
}

.oa-brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.oa-brand-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.025em; }
.oa-brand-sub { font-size: 0.68rem; font-weight: 600; color: #475569; }

.oa-suite-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.oa-pill {
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s;
}

.oa-pill:hover {
  background: rgba(79, 70, 229, 0.12);
  color: #0f172a;
}

.oa-pill.is-active {
  background: linear-gradient(135deg, #434CE6, #00A699);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(67, 76, 230, 0.28);
}

.oa-footer {
  margin-top: auto;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.oa-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.oa-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.oa-footer-brand strong {
  color: #0f172a;
  font-weight: 800;
}

.oa-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.oa-footer-links a {
  text-decoration: none;
  color: #475569;
  font-weight: 700;
  transition: color 0.18s;
}

.oa-footer-links a:hover { color: #434CE6; }

@media (max-width: 820px) {
  .oa-suite-pills { display: none; }
}

@media (max-width: 600px) {
  .oa-header { padding: 8px 10px 0; }
  .oa-nav { padding: 6px 10px; }
  .oa-brand-sub { display: none; }
  .oa-footer-inner { flex-direction: column; text-align: center; }
  .oa-footer-links { justify-content: center; gap: 12px; }
}
