.multit-page,
.editor-pro-page {
  --blue-950: #060f3f;
  --blue-900: #0a1654;
  --blue-800: #131f6e;
  --blue-700: #1e2d8c;
  --blue-600: #2a3eaf;
  --blue-500: #3b54d6;
  --blue-300: #93a3f0;
  --blue-200: #c2cdf7;
  --blue-100: #e6ecfd;
  --blue-50: #f3f5fe;
  --ink: #1a1f3a;
  --ink-soft: #4a5275;
  --ink-faded: #8a91ab;
  --white: #ffffff;
  --off-white: #fbfcff;
  --accent: #00a98f;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #f57c00;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-card: 0 1px 2px rgba(10,22,84,.06), 0 10px 28px rgba(10,22,84,.08);
  --shadow-deep: 0 26px 70px rgba(10,22,84,.18), 0 10px 30px rgba(10,22,84,.10);
  color: var(--ink);
  font-family: var(--font-body);
}

.multit-page *,
.multit-page *::before,
.multit-page *::after,
.editor-pro-page *,
.editor-pro-page *::before,
.editor-pro-page *::after {
  box-sizing: border-box;
}

.multit-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--blue-50) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.multit-page a {
  color: inherit;
}

.multit-page .nav,
.editor-pro-page .nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid rgba(10,22,84,.08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.multit-page .nav-brand,
.editor-pro-page .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--blue-900);
  text-decoration: none;
}

.multit-page .nav-logo,
.editor-pro-page .nav-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.multit-page .nav-name,
.editor-pro-page .nav-name {
  color: var(--blue-900);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.multit-page .nav-links,
.editor-pro-page .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.multit-page .nav-link,
.editor-pro-page .nav-link,
.multit-page .nav-cta,
.editor-pro-page .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.multit-page .nav-link:hover,
.editor-pro-page .nav-link:hover,
.multit-page .nav-link.active,
.editor-pro-page .nav-link.active,
.multit-links .active {
  background: var(--blue-50);
  color: var(--blue-700);
}

.multit-page .nav-cta,
.editor-pro-page .nav-cta {
  background: var(--blue-900);
  color: #fff;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}

.app-btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30,45,140,.18);
}

.app-btn-primary:hover {
  background: var(--blue-900);
}

.app-btn-ghost {
  border-color: rgba(10,22,84,.12);
  background: #fff;
  color: var(--blue-800);
}

.app-btn-ghost:hover {
  border-color: rgba(30,45,140,.26);
  background: var(--blue-50);
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="search"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field textarea,
.field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #d7deeb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  outline: none;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,84,214,.12);
}

.field-hint,
.field .hint {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.page-panel,
.auth-shell,
.dashboard-panel {
  max-width: 100%;
}

.multit-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--blue-50) 100%);
}

.multit-nav .nav-brand {
  text-decoration: none;
}

.multit-nav .nav-name small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faded);
  letter-spacing: 1px;
  margin-left: 6px;
}

.multit-links .active {
  color: var(--blue-700);
  font-weight: 700;
}

.tenant-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 700;
}

.multit-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.multit-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px 16px 34px;
  color: var(--ink-soft);
  font-size: 13px;
}

.flash {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(10,22,84,.08);
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.flash-success { border-color: rgba(46,125,50,.22); color: var(--success); }
.flash-error { border-color: rgba(198,40,40,.22); color: var(--danger); }
.flash-warning { border-color: rgba(245,124,0,.24); color: var(--warning); }

.page-panel {
  background: white;
  border: 1px solid rgba(10,22,84,.07);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.page-panel + .page-panel {
  margin-top: 18px;
}

.page-title {
  font-family: var(--font-display);
  color: var(--blue-950);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 24px;
}

.panel-title {
  font-family: var(--font-display);
  color: var(--blue-900);
  font-size: 18px;
  margin-bottom: 14px;
}

.auth-shell {
  width: min(460px, 100%);
  margin: 24px auto;
}

.auth-pro-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 220px);
}

.auth-pro-summary {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  color: white;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 88% 12%, rgba(0,212,255,.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 48%, var(--blue-600) 100%);
  background-size: 58px 58px, 58px 58px, auto, auto;
  box-shadow: var(--shadow-deep);
}

.auth-pro-summary::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(6,15,63,.28) 100%);
}

.auth-pro-summary > * {
  position: relative;
  z-index: 1;
}

.auth-pro-bg-doc {
  position: absolute;
  z-index: 0;
  width: 148px;
  height: 196px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
  transform: rotate(-10deg);
}

.auth-pro-bg-doc::before,
.auth-pro-bg-doc::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
}

.auth-pro-bg-doc::before {
  top: 28px;
  height: 8px;
  background: rgba(0,212,255,.34);
}

.auth-pro-bg-doc::after {
  top: 52px;
  height: 2px;
  box-shadow: 0 14px 0 rgba(255,255,255,.16), 0 28px 0 rgba(255,255,255,.12);
}

.auth-pro-bg-doc-one {
  top: 78px;
  right: -40px;
}

.auth-pro-bg-doc-two {
  right: 88px;
  bottom: -84px;
  opacity: .46;
  transform: rotate(12deg);
}

.auth-pro-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.auth-pro-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.auth-pro-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1;
}

.auth-pro-brand strong span {
  color: var(--accent);
}

.auth-pro-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.68);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.auth-pro-copy h1 {
  max-width: 560px;
  margin: 0 0 12px;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -1.6px;
}

.auth-pro-copy p {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.58;
}

.auth-pro-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.auth-pro-price {
  min-height: 116px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  padding: 14px;
}

.auth-pro-price.active {
  border-color: rgba(0,212,255,.45);
  background: rgba(255,255,255,.15);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.auth-pro-price span,
.auth-pro-price small {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
}

.auth-pro-price strong {
  display: block;
  margin: 7px 0 4px;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}

.auth-pro-pricing-note {
  margin: 0 0 22px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-pro-diff {
  display: grid;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.auth-pro-diff-head,
.auth-pro-diff-row {
  display: grid;
  grid-template-columns: 1.02fr .85fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
}

.auth-pro-diff-head {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-pro-diff-row + .auth-pro-diff-row {
  border-top: 1px solid rgba(255,255,255,.10);
}

.auth-pro-diff-row strong,
.auth-pro-diff-row span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.auth-pro-diff-row strong {
  color: white;
}

.auth-pro-diff-row span {
  color: rgba(255,255,255,.68);
}

.auth-pro-diff-row span:last-child {
  color: #ffffff;
  font-weight: 800;
}

.auth-login-panel {
  align-self: center;
  width: 100%;
  padding: clamp(24px, 4vw, 34px);
}

.auth-login-panel .page-subtitle {
  margin-bottom: 24px;
}

.auth-login-panel .app-btn {
  flex: 0 0 auto;
}

.auth-login-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(10,22,84,.08);
}

.auth-login-cta strong {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 14px;
}

.jf-public-login-page {
  background:
    linear-gradient(180deg, rgba(247,249,255,.96) 0%, rgba(232,238,249,.98) 100%);
}

.jf-login-main {
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: center;
  padding-top: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(24px, 4vw, 52px);
}

.jf-login-shell {
  min-height: 0;
}

.jf-login-summary {
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(ellipse 70% 55% at 84% 12%, rgba(0,169,143,.26) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 10% 92%, rgba(0,212,255,.20) 0%, transparent 62%),
    linear-gradient(135deg, #101827 0%, #1e2d8c 48%, #0f766e 100%);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}

.jf-login-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 22px;
}

.jf-login-modules div {
  min-height: 126px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.jf-login-modules strong,
.jf-login-modules span {
  display: block;
}

.jf-login-modules strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 8px;
}

.jf-login-modules span {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.45;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.muted-link {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.muted-link:hover {
  color: var(--blue-700);
}

button.muted-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.muted-link.danger-link {
  color: var(--danger);
}

.muted-link.danger-link:hover {
  color: #9f1f1f;
}

.app-btn-danger {
  color: var(--danger);
  border-color: rgba(198,40,40,.18);
}

.app-btn-danger:hover {
  background: rgba(198,40,40,.08);
  border-color: rgba(198,40,40,.3);
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-width: 70px;
  max-width: 112px;
}

.table-actions .inline-form {
  display: inline-flex;
  margin: 0;
}

.tenant-actions {
  min-width: 108px;
  max-width: 108px;
}

.admin-tenant-actions {
  min-width: 108px;
  max-width: 108px;
}

.action-btn {
  box-sizing: border-box;
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.action-btn svg {
  display: block;
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  flex: 0 0 13px !important;
  stroke-width: 2;
}

body.multit-page .data-table .admin-tenant-actions .action-btn > svg {
  display: block !important;
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  flex-basis: 13px !important;
}

.action-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  border-radius: 6px;
  background: var(--blue-900);
  color: #fff;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(10,22,84,.18);
  transition: opacity .14s ease, transform .14s ease;
}

.action-btn[data-tooltip]:hover::after,
.action-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn-view {
  background: rgba(30,45,140,.08);
  border-color: rgba(30,45,140,.14);
  color: var(--blue-800);
}

.action-btn-view:hover {
  background: rgba(30,45,140,.12);
  border-color: rgba(30,45,140,.24);
  box-shadow: 0 8px 18px rgba(30,45,140,.10);
}

.action-btn-edit {
  background: rgba(46,125,50,.09);
  border-color: rgba(46,125,50,.18);
  color: var(--success);
}

.action-btn-edit:hover {
  background: rgba(46,125,50,.13);
  border-color: rgba(46,125,50,.28);
  box-shadow: 0 8px 18px rgba(46,125,50,.10);
}

.action-btn-delete {
  background: rgba(198,40,40,.08);
  border-color: rgba(198,40,40,.16);
  color: var(--danger);
}

.action-btn-delete:hover {
  background: rgba(198,40,40,.12);
  border-color: rgba(198,40,40,.26);
  box-shadow: 0 8px 18px rgba(198,40,40,.10);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: white;
  border: 1px solid rgba(10,22,84,.07);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--blue-800);
  line-height: 1;
}

.stat-card span {
  color: var(--ink-soft);
  font-size: 13px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(10,22,84,.08);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-display);
  color: var(--blue-900);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.status-pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--blue-100);
  color: var(--blue-800);
}

.status-pill.ok {
  background: rgba(46,125,50,.1);
  color: var(--success);
}

.status-pill.blocked {
  background: rgba(198,40,40,.1);
  color: var(--danger);
}

.doc-preview {
  min-height: 220px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  color: #333;
  line-height: 1.65;
}

.template-textarea {
  min-height: 260px;
  resize: vertical;
}

.placeholder-preview {
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: var(--blue-50);
  padding: 12px;
}

.placeholder-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  font-size: 12px;
}

.placeholder-table th,
.placeholder-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(10,22,84,.07);
  text-align: left;
}

.placeholder-table th {
  color: var(--blue-900);
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.placeholder-table tr:last-child td {
  border-bottom: 0;
}

.placeholder-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 180px;
}

.placeholder-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(30,45,140,.08);
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.placeholder-empty {
  color: var(--ink-faded);
  font-size: 12px;
}

.inline-form {
  display: inline;
}

.settings-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.settings-titlebar .page-title {
  margin: 10px 0 8px;
}

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

.settings-hub-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
}

.settings-hub-card:hover {
  border-color: rgba(59,84,214,.24);
  transform: translateY(-1px);
}

.settings-hub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.settings-hub-icon svg {
  width: 24px;
  height: 24px;
}

.settings-hub-card strong {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 18px;
}

.settings-hub-card span:not(.settings-hub-icon) {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.settings-hub-card small {
  align-self: end;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 800;
}

.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(10,22,84,.08);
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.settings-tab:hover {
  color: var(--blue-800);
  background: var(--blue-50);
}

.settings-tab.active {
  color: var(--blue-900);
  border-color: rgba(10,22,84,.08);
  background: #fff;
}

.profile-settings-panel,
.signature-upload-panel {
  max-width: 780px;
}

.profile-form {
  max-width: 680px;
}

.profile-password-inline {
  max-width: 680px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(10,22,84,.08);
}

.profile-password-inline .page-subtitle {
  margin-bottom: 14px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.settings-form input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed rgba(10,22,84,.18);
  border-radius: 8px;
  background: var(--blue-50);
  font-family: inherit;
  font-size: 13px;
}

.settings-form .hint,
.field .hint {
  margin-top: 6px;
  color: var(--ink-faded);
  font-size: 12px;
}

.signature-about-titlebar .page-subtitle {
  max-width: 820px;
}

.signature-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.signature-about-hero h2 {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.18;
  margin: 8px 0 12px;
}

.signature-about-hero p,
.signature-about-section p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.signature-about-kicker {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signature-about-status {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(46,125,50,.16);
  border-radius: 8px;
  background: rgba(46,125,50,.06);
}

.signature-about-status strong {
  color: var(--success);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signature-about-status span {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.signature-about-section {
  max-width: 980px;
}

.signature-about-section .panel-title {
  font-size: 22px;
}

.signature-about-section p + p {
  margin-top: 12px;
}

.signature-about-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.signature-about-links .muted-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: var(--blue-50);
  font-weight: 800;
}

.signature-about-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  overflow: hidden;
}

.signature-about-evidence > div {
  padding: 18px;
  border-right: 1px solid rgba(10,22,84,.08);
  border-bottom: 1px solid rgba(10,22,84,.08);
  background: #fff;
}

.signature-about-evidence > div:nth-child(2n) {
  border-right: 0;
}

.signature-about-evidence > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.signature-about-evidence strong {
  display: block;
  color: var(--blue-950);
  font-size: 15px;
  margin-bottom: 6px;
}

.signature-about-evidence p {
  font-size: 13px;
  margin: 0;
}

.signature-about-flow,
.signature-about-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.signature-about-flow li::marker,
.signature-about-list li::marker {
  color: var(--blue-700);
  font-weight: 800;
}

.signature-about-table td,
.signature-about-table th {
  vertical-align: top;
}

.signature-about-conclusion {
  border-color: rgba(30,45,140,.14);
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}

.signature-about-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10,22,84,.08);
  font-size: 13px;
}

.manual-titlebar .page-subtitle {
  max-width: 860px;
}

.manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}

.manual-hero h2 {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.18;
  margin: 12px 0;
}

.manual-hero p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.manual-plan-box {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(30,45,140,.13);
  border-radius: 8px;
  background: #fff;
}

.manual-plan-box span,
.manual-plan-box small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.manual-plan-box strong {
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.manual-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.manual-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.manual-summary-card:hover {
  border-color: rgba(59,84,214,.24);
  transform: translateY(-1px);
}

.manual-summary-card strong {
  color: var(--blue-950);
  font-family: var(--font-display);
}

.manual-summary-card span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.manual-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manual-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.manual-toc strong {
  color: var(--blue-950);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.manual-toc a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.manual-toc a:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.manual-content {
  display: grid;
  gap: 18px;
}

.manual-section {
  scroll-margin-top: 92px;
}

.manual-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manual-section .panel-title {
  font-size: 24px;
}

.manual-section p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.manual-section p + h3,
.manual-section ul + h3,
.manual-section ol + h3,
.manual-two-columns + h3 {
  margin-top: 18px;
}

.manual-section h3 {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 10px;
}

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

.manual-steps,
.manual-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.manual-steps li::marker,
.manual-list li::marker {
  color: var(--blue-700);
  font-weight: 800;
}

.manual-steps a,
.manual-section p a {
  color: var(--blue-800);
  font-weight: 800;
  text-decoration: none;
}

.manual-steps a:hover,
.manual-section p a:hover {
  text-decoration: underline;
}

.manual-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-feature-grid li {
  min-height: 76px;
  border: 1px solid rgba(10,22,84,.07);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  padding: 13px;
}

.manual-feature-grid strong {
  display: block;
  color: var(--blue-950);
  font-size: 14px;
  margin-bottom: 4px;
}

.manual-callout {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(46,125,50,.16);
  border-radius: 8px;
  background: rgba(46,125,50,.06);
}

.manual-callout strong {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manual-callout span {
  color: var(--blue-950);
  line-height: 1.55;
}

.manual-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.manual-checklist {
  display: grid;
  gap: 10px;
}

.manual-checklist > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10,22,84,.08);
}

.manual-checklist > div:last-child {
  border-bottom: 0;
}

.manual-checklist strong {
  color: var(--blue-950);
}

.manual-checklist span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.identity-preview {
  position: sticky;
  top: 90px;
}

.identity-page {
  min-height: 480px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(10,22,84,.14);
  border: 1px solid rgba(10,22,84,.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.identity-header,
.identity-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-color: #e0e4ee;
  color: #555;
  font-size: 12px;
}

.identity-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e4ee;
}

.identity-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e0e4ee;
  flex-direction: column;
  text-align: center;
}

.identity-body {
  flex: 1;
  color: var(--ink);
}

.identity-body img {
  display: block;
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.identity-logo-placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 74px;
  border: 1px dashed rgba(10,22,84,.2);
  border-radius: 8px;
  color: var(--ink-faded);
  background: var(--blue-50);
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
}

.identity-body strong {
  display: block;
  font-family: var(--font-display);
  color: var(--blue-800);
  font-size: 22px;
  margin-bottom: 10px;
}

.identity-body p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(0,212,255,.14) 0%, transparent 62%),
    linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 52%, var(--blue-600) 100%);
  box-shadow: var(--shadow-deep);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.dashboard-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.dashboard-copy .app-tag {
  background: rgba(255,255,255,.1);
  color: var(--blue-100);
  border: 1px solid rgba(255,255,255,.16);
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.08;
  color: white;
  margin: 14px 0 14px;
}

.dashboard-subtitle {
  max-width: 560px;
  color: var(--blue-100);
  font-size: 16px;
  line-height: 1.65;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.dashboard-actions .app-btn,
.editor-pro-actions .app-btn {
  flex: 0 0 auto;
}

.dashboard-actions .app-btn-ghost {
  color: white;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
}

.dashboard-actions .app-btn-ghost:hover {
  background: rgba(255,255,255,.16);
}

.dashboard-studio {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.dashboard-studio .app-topbar {
  border-bottom-color: rgba(10,22,84,.08);
}

.dashboard-mini-doc {
  margin: 18px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

.dashboard-mini-doc span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-100);
  margin-bottom: 10px;
}

.dashboard-mini-doc span:nth-child(1) {
  width: 42%;
  background: var(--blue-500);
}

.dashboard-mini-doc span:nth-child(2) { width: 88%; }
.dashboard-mini-doc span:nth-child(3) { width: 74%; }
.dashboard-mini-doc span:nth-child(4) { width: 52%; margin-bottom: 0; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 18px;
  align-items: start;
}

.dashboard-panel {
  background: white;
  border: 1px solid rgba(10,22,84,.07);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.panel-heading .panel-title {
  margin-bottom: 0;
}

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

.explorer-header .page-title {
  margin: 10px 0 12px;
}

.explorer-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.explorer-path-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d9dee9;
  border-radius: 7px;
  background: #fff;
}

.explorer-path-pill span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.explorer-path-pill strong {
  color: #1f2a44;
  font-family: var(--font-mono);
  font-size: 12px;
}

.explorer-window {
  overflow: hidden;
  border: 1px solid #d7dce8;
  border-radius: 8px;
  background: #f5f7fb;
  box-shadow: 0 18px 45px rgba(22,34,66,.09);
}

.explorer-commandbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-bottom: 1px solid #dfe4ee;
  background: #fff;
}

.explorer-create-form,
.explorer-rename-form,
.explorer-delete-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.explorer-create-form {
  flex: 0 1 280px;
}

.explorer-rename-form {
  flex: 1 1 360px;
  min-width: 260px;
}

.explorer-delete-form {
  flex: 0 0 auto;
}

.explorer-create-form input,
.explorer-rename-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
}

.explorer-create-form input:focus,
.explorer-rename-input:focus {
  outline: 2px solid rgba(42,102,214,.16);
  border-color: #6f95df;
}

.explorer-create-form input:disabled,
.explorer-rename-input:disabled {
  background: #f3f5f9;
  color: #8a94a6;
}

.explorer-command-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  background: #fff;
  color: #26344d;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.explorer-command-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.explorer-command-btn:hover {
  border-color: #9fb2d3;
  background: #f7faff;
}

.explorer-command-btn:disabled,
.explorer-command-btn.disabled {
  opacity: .48;
  cursor: not-allowed;
}

.explorer-command-btn.danger {
  color: #9f1239;
}

.explorer-command-btn.danger:hover {
  border-color: #fecdd3;
  background: #fff1f2;
}

.explorer-command-btn.link {
  flex: 0 0 auto;
}

.explorer-addressbar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #dfe4ee;
  background: #f8fafc;
}

.explorer-up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  background: #fff;
  color: #334155;
}

.explorer-up-button svg {
  width: 17px;
  height: 17px;
}

.explorer-up-button.disabled {
  pointer-events: none;
  opacity: .46;
}

.explorer-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  overflow: auto;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0 10px;
  white-space: nowrap;
}

.explorer-breadcrumbs a {
  color: #2454a6;
  text-decoration: none;
}

.explorer-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  align-items: stretch;
  min-height: 620px;
}

.explorer-sidebar {
  min-width: 0;
  border-right: 1px solid #dfe4ee;
  background: #fbfcff;
  padding: 12px;
}

.explorer-sidebar-title {
  margin-bottom: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.explorer-folder-list {
  display: grid;
  gap: 1px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.explorer-tree-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  padding-left: calc(var(--tree-level, 0) * 13px);
}

.explorer-tree-item[hidden] {
  display: none;
}

.explorer-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 22px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #4b5563;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.explorer-tree-toggle::before {
  content: "+";
}

.explorer-tree-item[data-expanded="true"] > .explorer-tree-toggle::before {
  content: "-";
}

.explorer-tree-toggle:hover {
  background: #e7effd;
  color: #1d4f91;
}

.explorer-tree-toggle:disabled {
  cursor: default;
  opacity: 0;
}

.explorer-tree-toggle:disabled::before {
  content: "";
}

.explorer-folder-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.explorer-folder-link span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-folder-link small {
  color: #667085;
  font-family: var(--font-mono);
  font-size: 11px;
}

.explorer-folder-link:hover,
.explorer-folder-link.active,
.explorer-tree-item.active .explorer-folder-link {
  border-color: #b9cdf3;
  background: #eaf2ff;
  color: #1d4f91;
}

.folder-glyph {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  border-radius: 4px 4px 3px 3px;
  background: #f7b955;
  box-shadow: inset 0 -7px 0 rgba(160,111,30,.18);
}

.folder-glyph::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -4px;
  width: 9px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: #ffda85;
}

.explorer-rules {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e3e8f2;
  color: #667085;
  font-size: 12px;
}

.explorer-rules strong {
  color: #344054;
  font-size: 12px;
}

.explorer-rules span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid #e3e8f2;
  border-radius: 6px;
  background: #fff;
}

.explorer-content {
  min-width: 0;
  background: #fff;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e3e8f2;
  background: #fff;
}

.explorer-toolbar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.explorer-toolbar strong {
  overflow: hidden;
  color: #1f2937;
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-toolbar span {
  color: #667085;
  font-size: 12px;
}

.explorer-counts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.explorer-counts span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #d7e3f8;
  border-radius: 999px;
  background: #f4f8ff;
  color: #2454a6;
  font-size: 11px;
  font-weight: 800;
}

.explorer-details-wrap {
  min-height: 570px;
  overflow: auto;
  background: #fff;
}

.explorer-details-table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #344054;
  font-size: 13px;
}

.explorer-details-table th,
.explorer-details-table td {
  border-bottom: 1px solid #edf0f6;
  text-align: left;
}

.explorer-details-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 34px;
  padding: 8px 10px;
  background: #f7f9fc;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.explorer-details-table th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.explorer-details-table th button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0;
}

.explorer-details-table th button[data-sort-direction="asc"]::after {
  border-bottom: 5px solid #667085;
  opacity: 1;
}

.explorer-details-table th button[data-sort-direction="desc"]::after {
  border-top: 5px solid #667085;
  opacity: 1;
}

.explorer-details-table td {
  height: 44px;
  padding: 7px 10px;
  vertical-align: middle;
}

.explorer-details-table th:nth-child(1),
.explorer-details-table td:nth-child(1) {
  width: 34%;
}

.explorer-details-table th:nth-child(2),
.explorer-details-table td:nth-child(2) {
  width: 12%;
}

.explorer-details-table th:nth-child(3),
.explorer-details-table td:nth-child(3) {
  width: 11%;
}

.explorer-details-table th:nth-child(4),
.explorer-details-table td:nth-child(4) {
  width: 18%;
}

.explorer-details-table th:nth-child(5),
.explorer-details-table td:nth-child(5) {
  width: 15%;
}

.explorer-row {
  cursor: default;
}

.explorer-row:hover,
.explorer-row.is-selected {
  background: #edf5ff;
}

.explorer-row.is-selected td {
  border-bottom-color: #d5e7ff;
}

.explorer-document-item {
  cursor: grab;
}

.explorer-document-item:active {
  cursor: grabbing;
}

.explorer-document-item.is-dragging {
  opacity: .56;
}

.explorer-name-cell {
  min-width: 0;
}

.explorer-name-cell a,
.explorer-name-cell > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
  cursor: default;
}

.explorer-name-cell a span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-parent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #667085;
  font-family: var(--font-mono);
  font-weight: 900;
}

.document-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  flex: 0 0 28px;
  border: 1px solid #bfd0ee;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff 0%, #eef5ff 100%);
  color: #2454a6;
}

.document-glyph svg {
  width: 18px;
  height: 18px;
}

.explorer-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.action-btn-edit {
  color: #2454a6;
  background: #edf5ff;
  border-color: #d5e7ff;
}

.action-btn-download {
  color: #047857;
  background: #ecfdf5;
  border-color: rgba(4,120,87,.18);
}

.action-btn-sign {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(146,64,14,.18);
}

.explorer-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.explorer-empty-state strong {
  color: #1f2937;
}

.explorer-info-pane {
  min-width: 0;
  border-left: 1px solid #dfe4ee;
  background: #f8fafc;
  padding: 14px;
}

.explorer-info-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.explorer-info-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 22px;
  border-radius: 5px 5px 4px 4px;
  background: #f7b955;
  box-shadow: inset 0 -9px 0 rgba(160,111,30,.18);
}

.explorer-info-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -6px;
  width: 14px;
  height: 8px;
  border-radius: 5px 5px 0 0;
  background: #ffda85;
}

.explorer-info-head strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-info-head small {
  color: #667085;
  font-size: 12px;
}

.explorer-info-pane dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.explorer-info-pane dl div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #e3e8f2;
  border-radius: 6px;
  background: #fff;
}

.explorer-info-pane dt {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.explorer-info-pane dd {
  overflow-wrap: anywhere;
  color: #1f2937;
  font-size: 12px;
  margin: 0;
}

.explorer-context-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #cfd6e3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(22,34,66,.18);
}

.explorer-context-menu[hidden] {
  display: none;
}

.explorer-context-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #26344d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

.explorer-context-menu button:hover {
  background: #edf5ff;
  color: #1d4f91;
}

.explorer-context-menu button[hidden] {
  display: none;
}

.explorer-context-menu button.danger {
  color: #9f1239;
}

.explorer-context-menu button.danger:hover {
  background: #fff1f2;
}

.explorer-context-menu svg {
  width: 16px;
  height: 16px;
}

[data-drop-folder].drop-ready {
  outline: 2px dashed rgba(36,84,166,.35);
  outline-offset: -2px;
}

[data-drop-folder].drag-over {
  border-color: rgba(5,150,105,.35) !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
}

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

  .explorer-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .explorer-info-pane {
    grid-column: 1 / -1;
    border-top: 1px solid #dfe4ee;
    border-left: 0;
  }
}

@media screen and (max-width: 820px) {
  .explorer-commandbar {
    align-items: stretch;
  }

  .explorer-create-form,
  .explorer-rename-form {
    flex: 1 1 100%;
  }

  .explorer-shell {
    min-height: auto;
  }

  .explorer-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dfe4ee;
  }

  .explorer-info-pane {
    grid-column: auto;
  }

  .explorer-details-wrap {
    min-height: 360px;
  }
}

.editor-pro-page {
  background: linear-gradient(180deg, #f6f8ff 0%, #eef2fb 100%);
}

.editor-pro-page .nav {
  background: rgba(255,255,255,.92);
}

.editor-pro-page .app-section {
  min-height: calc(100vh - 67px);
  padding: 26px 24px 32px;
  background: transparent;
}

.editor-pro-page .app-header {
  max-width: 1400px;
  margin: 0 auto 18px;
  padding: 0 2px;
  text-align: left;
}

.editor-pro-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.editor-pro-page .app-tag {
  margin-bottom: 10px;
  background: var(--blue-100);
}

.editor-pro-page .app-title {
  font-size: 28px;
  margin-bottom: 6px;
}

.editor-pro-page .app-subtitle {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
}

.editor-pro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-pro-page .app-shell {
  max-width: min(1560px, calc(100vw - 32px));
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(10,22,84,.13);
}

.editor-pro-page .app-topbar {
  background: #ffffff;
}

.editor-pro-page .workspace {
  height: calc(100vh - 190px);
  min-height: 680px;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
}

.editor-pro-page .sidebar {
  background: #ffffff;
  min-width: 0;
}

.editor-pro-page .preview-area {
  --preview-page-scale: 0.62;
  background:
    linear-gradient(180deg, #eef2fb 0%, #e8edf8 100%);
  padding: 20px;
  overflow-x: auto;
}

.editor-pro-page .page-counter {
  top: 0;
}

.editor-pro-page .pages-wrap {
  gap: 24px;
  align-items: center;
  min-width: min-content;
}

.editor-pro-page .page {
  transform: scale(var(--preview-page-scale));
  transform-origin: top center;
  margin-bottom: -420px;
}

.editor-pro-page .page:hover {
  transform: scale(var(--preview-page-scale));
}

.editor-pro-page .editor-area:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-faded);
  font-style: italic;
}

.editor-pro-page .section-card,
.editor-pro-page .field input[type="text"],
.editor-pro-page .field input[type="email"],
.editor-pro-page .field input[type="password"],
.editor-pro-page .field input[type="tel"],
.editor-pro-page .field input[type="search"],
.editor-pro-page .field input[type="url"],
.editor-pro-page .field input[type="number"],
.editor-pro-page .field input[type="date"],
.editor-pro-page .field textarea,
.editor-pro-page .field select,
.editor-pro-page .editor-wrap {
  border-radius: 8px;
}

.editor-pro-page .signatory-limit-banner {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--ink-soft);
}

.editor-pro-page .signatory-limit-banner strong {
  color: var(--blue-800);
}

.editor-pro-page .signatory-limit-banner .limit-icon {
  background: var(--blue-600);
}

.signature-setup,
.signature-envelope-head,
.public-document-panel,
.sign-form-card {
  position: relative;
  overflow: hidden;
}

.signature-document-card,
.signature-envelope-head,
.public-sign-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.signature-document-card {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}

.signature-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.signature-document-card h2,
.signature-envelope-head h2,
.public-document-panel h2 {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
  margin-bottom: 5px;
}

.signature-document-card p,
.signature-envelope-head p,
.public-document-panel p,
.signature-help {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.signature-form-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

.signatory-template-picks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: var(--blue-50);
}

.signatory-template-chip {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(59,84,214,.18);
  border-radius: 999px;
  background: white;
  color: var(--blue-800);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

.signatory-template-chip:hover {
  border-color: rgba(59,84,214,.34);
  background: var(--blue-100);
}

.signature-signer-list {
  display: grid;
  gap: 12px;
}

.signature-signer-row {
  padding: 16px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: #fff;
}

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

.signature-row-title strong {
  color: var(--blue-900);
  font-family: var(--font-display);
}

.signature-note {
  margin-top: 16px;
  border-left: 3px solid var(--blue-600);
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--ink-soft);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
}

.signature-grid,
.public-sign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.signature-side-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.signature-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.signature-hash-box {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(30,45,140,.12);
  border-radius: 8px;
  background: #f8faff;
}

.signature-hash-box span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.signature-hash-box code,
.receipt-hash code {
  color: var(--blue-900);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-break: anywhere;
}

.signature-copy-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.signature-copy-line.vertical {
  grid-template-columns: 1fr;
}

.signature-copy-line input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(10,22,84,.1);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 10px;
}

.public-sign-hero {
  margin-bottom: 18px;
}

.public-sign-grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .55fr);
}

.public-sign-simple {
  display: grid;
  gap: 18px;
}

.public-sign-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.public-sign-titlebar p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-weight: 700;
}

.signature-preview-frame {
  overflow: hidden;
  height: min(76vh, 860px);
  min-height: 620px;
  border: 1px solid rgba(10,22,84,.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(10,22,84,.10);
}

.signature-preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.public-sign-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.public-sign-actions .app-btn {
  min-width: 132px;
}

.public-sign-state {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--ink-soft);
}

.public-sign-state strong {
  color: var(--ink);
}

.public-document-panel,
.sign-form-card {
  box-shadow: 0 18px 50px rgba(10,22,84,.10);
}

.sign-form-card .field {
  margin-bottom: 12px;
}

.signature-acceptance {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.signature-acceptance input {
  margin-top: 3px;
}

.receipt-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.signature-json-preview {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #e0e4ee;
  border-radius: 6px;
  background: #f6f8ff;
  color: #20242a;
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.receipt-page {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 0 auto;
  padding: 20mm 18mm;
  border: 1px solid rgba(176,130,57,.38);
  border-radius: 4px;
  background: #eef8df;
  color: #20242a;
  font-size: 9pt;
  box-shadow: 0 22px 70px rgba(10,22,84,.16);
}

.receipt-paper-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 297mm;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.receipt-page::before {
  display: none;
}

.receipt-page::after {
  display: none;
}

.receipt-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42mm;
  gap: 14mm;
  align-items: start;
  padding-bottom: 10mm;
  border-bottom: 2px solid #1e2d8c;
}

.receipt-brand {
  display: block;
  color: #1e2d8c;
  font-family: var(--font-mono);
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5mm;
}

.receipt-header h1 {
  color: #111827;
  font-family: var(--font-display);
  font-size: 24pt;
  line-height: 1.08;
  margin-bottom: 4mm;
}

.receipt-header p,
.receipt-info p,
.receipt-info a {
  font-size: 10.5pt;
  line-height: 1.55;
}

.receipt-qr {
  display: grid;
  gap: 3mm;
  justify-items: center;
  color: #5f6976;
  font-size: 8pt;
  text-align: center;
}

.receipt-qr img {
  width: 34mm;
  height: 34mm;
  border: 1px solid #e0e4ee;
  padding: 2mm;
  background: #fff;
}

.receipt-info {
  position: relative;
  display: grid;
  gap: 2mm;
  padding: 10mm 0 7mm;
}

.receipt-compact-info {
  gap: 1.2mm;
  padding: 0 0 4mm;
}

.receipt-compact-info h1 {
  color: #111827;
  font-family: var(--font-display);
  font-size: 12pt;
  line-height: 1.25;
  margin: 3.5mm 0 .5mm;
}

.receipt-compact-info p {
  margin: 0;
  font-size: 8.8pt;
  line-height: 1.38;
}

.receipt-info a {
  color: #1e2d8c;
  font-family: var(--font-mono);
  font-size: 8.5pt;
  line-break: anywhere;
}

.receipt-cert-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30mm;
  gap: 10mm;
  align-items: start;
  min-height: 32mm;
  padding: 2mm 5mm 0;
}

.receipt-cert-header h1 {
  color: #111827;
  font-family: var(--font-display);
  font-size: 12pt;
  line-height: 1.25;
  margin: 0 0 1.5mm;
}

.receipt-cert-header p {
  margin: 0 0 1.2mm;
  color: #20242a;
  font-size: 8.7pt;
  line-height: 1.38;
}

.receipt-generated-at strong {
  color: #111827;
  font-family: var(--font-mono);
  font-weight: 800;
}

.receipt-cert-qr {
  display: flex;
  justify-content: flex-end;
}

.receipt-cert-qr img {
  width: 25mm;
  height: 25mm;
  border: 1px solid rgba(30,45,140,.18);
  padding: 1mm;
  background: rgba(255,255,255,.75);
}

.receipt-hash {
  position: relative;
  display: grid;
  gap: 1mm;
  margin-bottom: 3.5mm;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.receipt-hash.signed {
  border-left-color: #b08239;
  background: #fff9ef;
}

.receipt-hash span,
.receipt-meta span {
  color: #5f6976;
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-hash code {
  color: #111827;
  font-family: var(--font-mono);
  font-size: 8pt;
  font-weight: 600;
  line-break: anywhere;
}

.receipt-compact-id {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5mm;
  margin-bottom: 7mm;
  color: #111827;
  font-size: 8.8pt;
  line-height: 1.35;
}

.receipt-identity-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3mm;
  width: min(150mm, 100%);
  margin: 7mm auto 8mm;
  text-align: center;
}

.receipt-identity-block div {
  display: grid;
  gap: 1mm;
}

.receipt-identity-block span {
  color: #5f6976;
  font-size: 8.4pt;
  font-weight: 700;
}

.receipt-identity-block strong {
  color: #111827;
  font-family: var(--font-mono);
  font-size: 8.5pt;
  font-weight: 800;
  line-height: 1.35;
  line-break: anywhere;
}

.receipt-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4mm;
  margin-bottom: 8mm;
}

.receipt-meta div {
  display: grid;
  gap: 2mm;
  padding: 4mm;
  border: 1px solid #e0e4ee;
  border-radius: 4px;
}

.receipt-meta strong {
  color: #111827;
  font-size: 9.5pt;
  line-break: anywhere;
}

.receipt-section {
  position: relative;
  z-index: 1;
  margin-top: 4mm;
}

.receipt-section h2 {
  color: #111827;
  font-family: var(--font-display);
  font-size: 11pt;
  margin-bottom: 2mm;
}

.receipt-signature {
  padding: 2.8mm 0;
  border-top: 1px solid #e0e4ee;
}

.receipt-signature p {
  color: #111827;
  font-size: 8pt;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.6mm;
}

.receipt-signature dl {
  display: grid;
  gap: 1.5mm;
  margin: 0;
}

.receipt-signature dl div {
  display: grid;
  grid-template-columns: 32mm minmax(0, 1fr);
  gap: 4mm;
}

.receipt-signature dt,
.receipt-signature dd {
  margin: 0;
  font-size: 7.6pt;
  line-height: 1.3;
}

.receipt-signature dt {
  color: #5f6976;
  font-weight: 700;
}

.receipt-cert-footer {
  position: absolute;
  z-index: 1;
  left: 18mm;
  right: 18mm;
  bottom: 16mm;
  display: grid;
  gap: .8mm;
  text-align: center;
  color: #5f6976;
  font-size: 6.8pt;
  line-height: 1.25;
}

.receipt-cert-footer p {
  margin: 0;
}

.receipt-cert-footer a {
  color: #1e2d8c;
  font-family: var(--font-mono);
  font-size: 6.2pt;
  line-break: anywhere;
}

.receipt-legal-footer {
  font-size: 6pt;
  line-height: 1.25;
}

.receipt-events table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}

.receipt-events th,
.receipt-events td {
  padding: 2.5mm 2mm;
  border-bottom: 1px solid #e0e4ee;
  text-align: left;
}

.receipt-events th {
  color: #1e2d8c;
  font-weight: 700;
  text-transform: uppercase;
}

@media print {
  body.multit-page {
    background: #fff;
  }

  .multit-nav,
  .multit-footer,
  .receipt-toolbar {
    display: none !important;
  }

  .multit-main {
    width: 100%;
    padding: 0;
  }

  .receipt-page {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .receipt-paper-bg {
    display: block !important;
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@media screen and (max-width: 820px) {
  .multit-main {
    width: min(100% - 20px, 1180px);
    padding-top: 26px;
  }

  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .multit-links .tenant-chip {
    display: none;
  }

  .dashboard-hero-grid,
  .dashboard-grid,
  .explorer-shell,
  .signature-about-hero,
  .signature-about-evidence,
  .settings-hub-grid,
  .settings-layout,
  .signature-grid,
  .public-sign-grid,
  .receipt-meta {
    grid-template-columns: 1fr;
  }

  .signature-document-card,
  .signature-envelope-head,
  .public-sign-hero,
  .receipt-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .signature-side-panel {
    position: static;
  }

  .public-sign-titlebar,
  .public-sign-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .signature-preview-frame {
    height: 70vh;
    min-height: 420px;
  }

  .public-sign-actions {
    justify-content: stretch;
  }

  .public-sign-actions .app-btn {
    flex: 1 1 150px;
  }

  .signature-copy-line {
    grid-template-columns: 1fr;
  }

  .signature-about-hero h2 {
    font-size: 24px;
  }

  .signature-about-evidence > div,
  .signature-about-evidence > div:nth-child(2n),
  .signature-about-evidence > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(10,22,84,.08);
  }

  .signature-about-evidence > div:last-child {
    border-bottom: 0;
  }

  .receipt-page {
    min-height: auto;
    padding: 24px 18px 30px;
  }

  .receipt-page::before {
    inset: 10px;
  }

  .receipt-page::after {
    inset: 16px;
  }

  .receipt-header {
    grid-template-columns: 1fr;
  }

  .receipt-cert-header {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 14px;
    min-height: 0;
    padding: 0;
  }

  .receipt-cert-header h1 {
    font-size: 10.5pt;
  }

  .receipt-cert-header p {
    font-size: 7.8pt;
  }

  .receipt-cert-qr img {
    width: 68px;
    height: 68px;
  }

  .receipt-identity-block {
    width: 100%;
    margin: 14px auto 14px;
  }

  .receipt-signature dl div {
    grid-template-columns: 1fr;
    gap: 1mm;
  }

  .receipt-cert-footer {
    position: static;
    margin-top: 24px;
  }

  .identity-preview {
    position: static;
  }

  .dashboard-hero-grid {
    padding: 24px;
  }

  .dashboard-title {
    font-size: 32px;
  }

  .explorer-header,
  .settings-titlebar,
  .explorer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-header-actions,
  .explorer-counts {
    justify-content: flex-start;
  }

  .explorer-sidebar {
    position: static;
  }

  .explorer-folder-list {
    max-height: none;
  }

  .explorer-document-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .document-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .editor-pro-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-pro-page .app-section {
    padding: 18px 12px 24px;
  }

  .editor-pro-page .workspace {
    height: auto;
    grid-template-columns: 1fr;
  }

  .editor-pro-page .preview-area {
    padding: 18px;
  }
}

.register-shell {
  width: min(820px, 100%);
}

.account-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.account-choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(10,22,84,.1);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 800;
}

.account-choice label.active {
  border-color: rgba(30,45,140,.32);
  background: var(--blue-900);
  color: white;
  box-shadow: 0 10px 24px rgba(10,22,84,.12);
}

.account-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.register-fields + .register-fields {
  margin-top: 14px;
}

.register-fields[hidden] {
  display: none !important;
}

.status-pill.warn {
  background: rgba(245,124,0,.12);
  color: var(--warning);
}

.status-pill.free {
  background: rgba(0,157,181,.12);
  color: #007c91;
}

.jf-contract-home {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(30,45,140,.08), rgba(0,169,143,.08)),
    #f7f9fc;
}

.jf-contract-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 46px);
}

.jf-contract-brand {
  align-items: center;
  color: #111827;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.jf-admin-corner {
  display: flex;
  justify-content: flex-end;
}

.jf-admin-login {
  align-items: center;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17,24,39,.08);
  display: flex;
  gap: 8px;
  padding: 8px;
}

.jf-admin-login input {
  border: 0;
  border-radius: 6px;
  min-height: 36px;
  min-width: 150px;
  padding: 8px 10px;
}

.jf-admin-login button {
  background: #1e2d8c;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 13px;
}

.jf-contract-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(24px, 6vw, 70px) clamp(18px, 4vw, 42px);
}

.jf-contract-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  max-width: 800px;
}

.jf-contract-hero h1 {
  color: #101828;
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: 0;
  line-height: .96;
  margin: 0;
}

.jf-contract-hero p {
  color: #475467;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.jf-contract-choice {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jf-contract-choice-card {
  background: #fff;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17,24,39,.08);
  color: #111827;
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 22px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.jf-contract-choice-card:hover {
  box-shadow: 0 18px 42px rgba(17,24,39,.13);
  transform: translateY(-2px);
}

.jf-contract-choice-card span {
  color: #1e2d8c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jf-contract-choice-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.jf-contract-choice-card small {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.jf-contract-choice-card-muted span {
  color: #008b78;
}

.jf-protocol-success {
  max-width: 720px;
}

.jf-protocol-code {
  background: #101828;
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: 0;
  margin: 12px 0 22px;
  padding: 16px 20px;
}

.jf-protocol-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jf-protocol-status-grid div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.jf-protocol-status-grid strong,
.jf-protocol-status-grid span {
  display: block;
}

.jf-protocol-status-grid strong {
  color: #667085;
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.jf-protocol-result-head {
  margin-bottom: 18px;
}

.jf-protocol-signature-status {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
}

.jf-protocol-signature-summary {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.jf-protocol-signature-summary div,
.jf-protocol-signers {
  display: grid;
  gap: 8px;
}

.jf-protocol-signature-summary strong,
.jf-protocol-signers > strong {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
}

.jf-protocol-signature-summary p,
.jf-protocol-signers p {
  color: #344054;
  margin: 0;
}

.jf-protocol-signers ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jf-protocol-signers li {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.jf-protocol-signers li > span:first-child {
  color: #111827;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-filters {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) 180px 200px auto;
}

.jfc-contract-html-editor {
  font-family: "IBM Plex Mono", monospace;
  min-height: 440px;
}

.jfc-pdf-stage {
  background: #fff;
  left: -99999px;
  position: fixed;
  top: 0;
  width: 794px;
  z-index: -1;
}

@media (max-width: 900px) {
  .jf-contract-topbar,
  .jf-admin-login {
    align-items: stretch;
    flex-direction: column;
  }

  .jf-contract-choice,
  .jf-protocol-status-grid,
  .settings-filters {
    grid-template-columns: 1fr;
  }

  .jf-protocol-signature-summary,
  .jf-protocol-signers li {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-pro-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-pro-pricing {
    grid-template-columns: 1fr;
  }

  .jf-login-modules {
    grid-template-columns: 1fr;
  }

  .auth-login-panel {
    align-self: stretch;
  }

  .settings-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-choice,
  .manual-hero,
  .manual-summary-grid,
  .manual-layout,
  .manual-two-columns,
  .manual-feature-grid {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    position: static;
  }

  .manual-checklist > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

}

@media (max-width: 620px) {
  .auth-pro-summary {
    padding: 24px 18px;
  }

  .auth-pro-bg-doc {
    display: none;
  }

  .auth-pro-brand {
    margin-bottom: 24px;
  }

  .auth-pro-diff-head,
  .auth-pro-diff-row {
    grid-template-columns: .78fr .88fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .auth-pro-diff-row strong,
  .auth-pro-diff-row span {
    font-size: 11px;
  }

  .auth-login-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

/* JF layout recovery layer */
.jf-contract-home {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(243,245,254,.96) 100%),
    #f6f8fb;
}

.jf-contract-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(10,22,84,.08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.jf-contract-brand {
  min-height: 42px;
  color: var(--blue-950);
  line-height: 1;
}

.jf-contract-brand strong {
  color: var(--blue-700);
}

.jf-admin-corner {
  min-width: 0;
}

.jf-admin-login {
  max-width: 100%;
  flex-wrap: wrap;
}

.jf-admin-login input {
  flex: 1 1 150px;
  border: 1px solid transparent;
  background: #f8fafc;
}

.jf-admin-login input:focus {
  border-color: var(--blue-300);
  background: #fff;
  outline: none;
}

.jf-contract-main {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 160px);
}

.jf-contract-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 58px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(243,245,254,.95) 100%);
  box-shadow: var(--shadow-card);
}

.jf-contract-hero h1 {
  max-width: 760px;
  color: var(--blue-950);
  font-size: clamp(36px, 7vw, 70px);
}

.jf-contract-hero p {
  max-width: 760px;
  color: var(--ink-soft);
}

.jf-contract-choice {
  align-items: stretch;
}

.jf-contract-choice-card {
  min-width: 0;
  min-height: 172px;
  border-color: rgba(10,22,84,.08);
}

.jf-contract-choice-card strong,
.jf-contract-choice-card small {
  overflow-wrap: anywhere;
}

.jf-contract-choice-card strong {
  color: var(--blue-950);
}

.jf-contract-choice-card small {
  color: var(--ink-soft);
}

.settings-titlebar {
  width: 100%;
  min-width: 0;
}

.settings-titlebar > div {
  min-width: 0;
}

.form-grid {
  align-items: start;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  min-width: 720px;
}

.auth-shell {
  width: min(460px, 100%);
}

@media (max-width: 1040px) {
  .multit-page .nav,
  .editor-pro-page .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .multit-page .nav-links,
  .editor-pro-page .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .editor-pro-page .workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .editor-pro-page .sidebar {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(10,22,84,.08);
  }

  .editor-pro-page .preview-area {
    --preview-page-scale: .58;
    min-height: 720px;
  }

  .editor-pro-page .page {
    margin-bottom: -470px;
  }
}

@media (max-width: 760px) {
  .jf-contract-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .jf-contract-main {
    width: min(100% - 22px, 1180px);
    padding-top: 22px;
  }

  .jf-contract-hero {
    padding: 24px 18px;
  }

  .jf-admin-login,
  .jf-admin-login input,
  .jf-admin-login button,
  .form-actions .app-btn {
    width: 100%;
  }

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

  .data-table {
    min-width: 640px;
  }

  .editor-pro-page .app-shell {
    max-width: calc(100vw - 18px);
  }

  .editor-pro-page .preview-area {
    --preview-page-scale: .42;
    min-height: 560px;
    padding: 14px;
  }

  .editor-pro-page .page {
    margin-bottom: -630px;
  }
}

/* Home organizada do Gestor de Contratos JF */
.jf-index-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 52%, #eef3fb 100%);
  overflow-x: hidden;
}

.jf-index-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(10,22,84,.08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.jf-index-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.jf-index-brand strong {
  color: var(--blue-700);
}

.jf-index-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.jf-index-admin {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.jf-index-login {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(120px, 170px) auto;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  padding: 7px;
  border: 1px solid rgba(10,22,84,.10);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(10,22,84,.08);
}

.jf-index-login input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #dbe2ef;
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}

.jf-index-login input:focus {
  border-color: var(--blue-300);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59,84,214,.10);
}

.jf-index-login button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: var(--blue-900);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}

.jf-index-login button:hover {
  background: var(--blue-700);
}

.jf-index-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) 0 58px;
}

.jf-index-main .flash {
  width: min(720px, 100%);
  margin: 0 0 16px;
}

.jf-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  margin-bottom: 18px;
}

.jf-index-copy,
.jf-index-flow,
.jf-index-note {
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.jf-index-copy {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px);
}

.jf-index-copy h1 {
  max-width: 740px;
  margin: 0;
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .96;
}

.jf-index-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.58;
}

.jf-index-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 30px;
}

.jf-index-action {
  display: grid;
  gap: 5px;
  min-height: 76px;
  align-content: center;
  border: 1px solid rgba(10,22,84,.12);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-900);
  padding: 14px 16px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.jf-index-action:hover {
  border-color: rgba(30,45,140,.28);
  box-shadow: 0 12px 28px rgba(10,22,84,.12);
  transform: translateY(-1px);
}

.jf-index-action-primary {
  background: var(--blue-900);
  color: #fff;
}

.jf-index-action-primary span,
.jf-index-action-primary small {
  color: #fff;
}

.jf-index-action span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.jf-index-action small {
  color: currentColor;
  font-size: 13px;
  opacity: .72;
}

.jf-index-flow {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.jf-index-flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 120px;
  padding: 22px;
  border-bottom: 1px solid rgba(10,22,84,.08);
}

.jf-index-flow-step:last-child {
  border-bottom: 0;
}

.jf-index-flow-step strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 18px;
}

.jf-index-flow-step span {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.42;
}

.jf-index-portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.jf-index-access {
  align-items: end;
  background: #ffffff;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
  margin-bottom: 18px;
  padding: 20px;
}

.jf-index-access h2 {
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  margin: 8px 0;
}

.jf-index-access p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.jf-index-tenant-login {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) auto;
}

.jf-index-tenant-login .field {
  margin: 0;
}

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

.jf-index-portal {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  border: 1px solid rgba(10,22,84,.08);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 18px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.jf-index-portal:hover {
  border-color: rgba(30,45,140,.22);
  box-shadow: 0 16px 34px rgba(10,22,84,.12);
  transform: translateY(-1px);
}

.jf-index-portal svg {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  padding: 10px;
  background: var(--blue-50);
  color: var(--blue-800);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.jf-index-portal-muted svg {
  background: rgba(0,169,143,.10);
  color: #007f70;
}

.jf-index-portal strong {
  display: block;
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
}

.jf-index-portal span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.jf-index-note {
  padding: 18px 20px;
}

.jf-index-note div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jf-index-note strong {
  color: var(--blue-900);
  font-family: var(--font-display);
  font-size: 14px;
}

.jf-index-note span {
  color: var(--ink-soft);
  font-size: 14px;
}

.jf-index-page .multit-footer {
  border-top: 1px solid rgba(10,22,84,.08);
  background: rgba(255,255,255,.68);
}

@media (max-width: 960px) {
  .jf-index-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .jf-index-admin,
  .jf-index-login {
    width: 100%;
  }

  .jf-index-hero,
  .jf-index-access,
  .jf-index-portals {
    grid-template-columns: 1fr;
  }

  .jf-index-tenant-login {
    grid-template-columns: 1fr;
  }

  .jf-index-copy {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .jf-index-topbar {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 14px 20px;
  }

  .jf-index-main {
    width: auto;
    max-width: none;
    margin-left: 11px;
    margin-right: 11px;
    padding-top: 20px;
  }

  .jf-index-brand {
    min-width: 0;
    width: 100%;
    font-size: 16px;
    white-space: normal;
  }

  .jf-index-brand span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .jf-index-admin {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .jf-index-login {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 40px);
  }

  .jf-index-login input,
  .jf-index-login button {
    min-width: 0;
  }

  .jf-index-copy {
    width: 100%;
    max-width: 100%;
    padding: 26px 18px;
    overflow: hidden;
  }

  .jf-index-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .jf-index-copy p {
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .jf-index-primary-actions {
    grid-template-columns: 1fr;
  }

  .jf-index-flow-step,
  .jf-index-portal {
    grid-template-columns: 1fr;
  }

  .jf-index-flow,
  .jf-index-access,
  .jf-index-note,
  .jf-index-portal {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .jf-index-portal svg {
    width: 42px;
    height: 42px;
  }
}

.jf-index-action.jf-index-action-primary,
.jf-index-action.jf-index-action-primary span,
.jf-index-action.jf-index-action-primary small {
  color: #fff !important;
}

.jf-index-action.jf-index-action-primary small {
  opacity: .84;
}
