
:root {
  --seido-bg: #fbf7ef;
  --seido-paper: #fffaf2;
  --seido-paper-2: rgba(255, 250, 242, .88);
  --seido-ink: #18221f;
  --seido-muted: #6d746e;
  --seido-brand: #24483f;
  --seido-brand-dark: #172f2a;
  --seido-accent: #b98a63;
  --seido-danger: #a3443f;
  --seido-line: rgba(31, 39, 35, .105);
  --seido-line-strong: rgba(31, 39, 35, .18);
  --seido-shadow-soft: 0 16px 42px rgba(62, 48, 30, .075);
  --seido-shadow-large: 0 30px 82px rgba(62, 48, 30, .13);
  --seido-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
}

body.seido-home,
body.seido-account,
body.pricing-page,
body.billing-account,
body.seido-delete,
body.seido-legal,
body.seido-admin {
  color: var(--seido-ink);
  background:
    radial-gradient(900px circle at 5% -10%, rgba(216, 132, 78, .135), transparent 58%),
    radial-gradient(860px circle at 96% 2%, rgba(36, 72, 63, .10), transparent 54%),
    linear-gradient(180deg, #fffaf2 0%, var(--seido-bg) 48%, #f7efe4 100%) !important;
}

body.seido-home::after,
body.seido-account::after,
body.pricing-page::after,
body.billing-account::after,
body.seido-delete::after,
body.seido-legal::after,
body.seido-admin::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .026;
  background-image: repeating-radial-gradient(circle at 0 0, #18221f 0, #18221f 1px, transparent 1px, transparent 5px);
}

/* One header/navigation system for every non-app page. */
.portal-topbar {
  position: sticky;
  top: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-height: 68px;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--seido-line);
  border-radius: 999px;
  background: rgba(255, 250, 242, .84);
  box-shadow: 0 18px 48px rgba(62, 48, 30, .09);
  backdrop-filter: blur(22px);
}

.editorial-page .portal-topbar,
.account-window .portal-topbar,
.pricing-window .portal-topbar,
.legal-window .portal-topbar,
.delete-window .portal-topbar,
.account-window .portal-topbar,
.admin-topbar.portal-topbar {
  margin: 16px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--seido-ink);
  text-decoration: none;
}

.portal-brand:hover { color: var(--seido-ink); text-decoration: none; }

.portal-brand-mark,
.portal-brand img,
.portal-brand-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.portal-brand-copy,
.portal-brand span:not(.portal-brand-mark) {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.portal-brand-copy strong,
.portal-brand strong {
  color: var(--seido-brand);
  font-family: var(--seido-serif);
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: .035em;
  white-space: nowrap;
}

.portal-brand-copy span,
.portal-brand small,
.portal-brand > span > span {
  margin-top: 4px;
  color: var(--seido-muted);
  font-size: .62rem;
  font-weight: 860;
  letter-spacing: .19em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(31, 39, 35, .065);
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}

.portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--seido-muted);
  font-size: .86rem;
  font-weight: 820;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.portal-nav a:hover,
.portal-nav a.is-active {
  color: var(--seido-brand);
  background: rgba(36, 72, 63, .075);
  text-decoration: none;
}

.portal-nav a.is-active {
  color: #fffaf2;
  background: var(--seido-brand);
  box-shadow: 0 10px 24px rgba(36, 72, 63, .16);
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.portal-user {
  max-width: 170px;
  overflow: hidden;
  color: var(--seido-muted);
  font-size: .86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(36,72,63,.16);
  border-radius: 999px;
  color: var(--seido-brand);
  background: rgba(255,255,255,.46);
  font-size: .86rem;
  font-weight: 840;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.portal-action:hover {
  color: var(--seido-brand-dark);
  border-color: rgba(36,72,63,.28);
  background: rgba(255,255,255,.74);
  text-decoration: none;
  transform: translateY(-1px);
}

.portal-action.is-primary {
  color: #fffaf2;
  border-color: var(--seido-brand);
  background: var(--seido-brand);
  box-shadow: 0 12px 24px rgba(36, 72, 63, .18);
}

.portal-action.is-primary:hover {
  color: #fffaf2;
  border-color: var(--seido-brand-dark);
  background: var(--seido-brand-dark);
}

.portal-action.is-danger,
.portal-action.is-muted.is-danger {
  color: var(--seido-danger);
  border-color: rgba(163, 68, 63, .20);
  background: rgba(255,255,255,.42);
}

.portal-action.is-danger:hover,
.portal-action.is-muted.is-danger:hover {
  color: #fffaf2;
  border-color: var(--seido-danger);
  background: var(--seido-danger);
}

/* Make every page window feel related to the index frame. */
.portal-frame,
.account-window,
.pricing-window,
.legal-window,
.delete-window {
  border: 1px solid var(--seido-line) !important;
  background: rgba(255, 250, 242, .87) !important;
  box-shadow: var(--seido-shadow-large) !important;
  backdrop-filter: blur(18px);
}

.account-window,
.pricing-window,
.legal-window,
.delete-window {
  overflow: hidden;
  border-radius: 32px !important;
}

.editorial-page-wrap,
.account-frame {
  padding-top: 24px;
  padding-bottom: 54px;
}

/* Typography and rhythm polish */
.hero-title,
.intro-copy h1,
.account-hero h1,
.pricing-title,
.billing-title,
.legal-title-new,
.delete-title-new,
.admin-page-head h1,
.section-row h2,
.billing-section-title,
.legal-card-title,
.delete-card-title {
  font-family: var(--seido-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -.055em;
}

.portal-section,
.account-section,
.billing-section,
.legal-card,
.delete-card,
.admin-card {
  border-color: var(--seido-line) !important;
}

/* Index refinements */
body.seido-home .editorial-page {
  padding-top: 12px;
}

body.seido-home .portal-frame {
  border-radius: 34px;
}

body.seido-home .portal-intro {
  padding-top: clamp(26px, 3.5vw, 48px);
}

body.seido-home .intro-copy h1 {
  max-width: 720px;
}

body.seido-home .intro-card {
  box-shadow: 0 24px 64px rgba(62, 48, 30, .12);
}

/* Pricing / legal / billing polish */
.pricing-hero,
.billing-hero,
.legal-hero-panel,
.delete-hero-panel {
  margin-top: 0 !important;
}

.pricing-window .pricing-hero,
.account-window .billing-hero,
.legal-window .legal-hero-panel,
.delete-window .delete-hero-panel {
  border-top: 1px solid var(--seido-line);
}

.pricing-card,
.price-card,
.billing-card,
.legal-card,
.delete-card,
.account-card,
.summary-card,
.billing-stat,
.legal-stat,
.delete-stat {
  box-shadow: var(--seido-shadow-soft);
}

/* Admin variant keeps the same header language but exposes admin context. */
body.seido-admin .admin-topbar.portal-topbar {
  width: min(1320px, calc(100% - 40px));
  margin: 18px auto 0;
  position: sticky;
  top: 18px;
}

body.seido-admin .admin-topbar-inner {
  min-height: 0;
}

body.seido-admin .admin-layout {
  padding-top: 20px;
}

body.seido-admin .portal-nav a.is-active {
  background: var(--seido-brand);
}

@media (max-width: 1180px) {
  .portal-topbar {
    grid-template-columns: 1fr auto;
    border-radius: 28px;
  }
  .portal-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    order: 3;
  }
  .portal-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .portal-topbar {
    top: 10px;
    margin: 10px !important;
    padding: 10px;
    border-radius: 24px;
  }
  .portal-brand-copy strong,
  .portal-brand strong { font-size: 1.08rem; }
  .portal-brand-mark,
  .portal-brand img,
  .portal-brand-logo { width: 38px; height: 38px; }
  .portal-user { display: none; }
  .portal-actions { gap: 6px; }
  .portal-action { min-height: 36px; padding-inline: 12px; font-size: .82rem; }
  .portal-nav a { min-height: 36px; padding-inline: 12px; font-size: .82rem; }
  .account-window,
  .pricing-window,
  .legal-window,
  .delete-window,
  body.seido-home .portal-frame { border-radius: 24px !important; }
}

body.seido-account > .portal-topbar {
  width: min(1320px, calc(100% - 40px));
  margin: 18px auto 0;
}

@media (max-width: 720px) {
  body.seido-account > .portal-topbar {
    width: min(1320px, calc(100% - 24px));
    margin-top: 10px !important;
  }
}

/* Project-wide polish layer: navigation, buttons, text links and footer consistency */
.portal-topbar {
  min-height: 72px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 251, 246, .86) !important;
  box-shadow: 0 18px 48px rgba(62, 48, 30, .08);
}

.portal-nav {
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(31, 39, 35, .06);
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
}

.portal-nav a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px !important;
  border-radius: 999px;
  color: var(--seido-muted) !important;
  font-size: .86rem !important;
  font-weight: 840 !important;
  line-height: 1;
  text-decoration: none !important;
  transition: color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.portal-nav a::after {
  content: none !important;
}

.portal-nav a:hover {
  color: var(--seido-brand) !important;
  background: rgba(36, 72, 63, .08) !important;
}

.portal-nav a.is-active {
  color: #fffaf4 !important;
  background: var(--seido-brand) !important;
  box-shadow: 0 10px 22px rgba(36, 72, 63, .16);
}

.portal-action,
.editorial-btn,
.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 840;
  line-height: 1;
  text-decoration: none !important;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.portal-action:hover,
.editorial-btn:hover,
.text-link:hover,
.card-link:hover {
  transform: translateY(-2px);
}

.portal-action.is-primary,
.editorial-btn.is-primary {
  color: #fffaf4 !important;
  border-color: var(--seido-brand) !important;
  background: var(--seido-brand) !important;
  box-shadow: 0 12px 26px rgba(36, 72, 63, .18);
}

.portal-action.is-secondary,
.portal-action.is-muted,
.editorial-btn.is-secondary,
.text-link,
.card-link {
  color: var(--seido-brand) !important;
  border-color: rgba(36, 72, 63, .18) !important;
  background: rgba(255, 251, 246, .78) !important;
}

.portal-action.is-danger,
.editorial-btn.is-danger {
  color: var(--seido-danger) !important;
  border-color: rgba(163, 68, 63, .22) !important;
  background: rgba(255, 251, 246, .78) !important;
}

.portal-action.is-danger:hover,
.editorial-btn.is-danger:hover {
  color: #fffaf4 !important;
  border-color: var(--seido-danger) !important;
  background: var(--seido-danger) !important;
}

.text-link::after,
.card-link::after,
.side-link-list a::after {
  content: "\2192";
  font-size: .9em;
  line-height: 1;
}

.side-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 250, 242, .16);
  border-radius: 16px;
  color: #fffaf4 !important;
  background: rgba(255, 255, 255, .1) !important;
  font-size: .9rem;
  font-weight: 820;
  text-decoration: none !important;
}

.side-link-list a span:last-child {
  display: none !important;
}

.footer-inner,
.footer-inner-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links,
.footer-inner-clean nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 720px) {
  .portal-topbar {
    padding: 10px 12px;
    border-radius: 24px;
  }

  .portal-nav a,
  .portal-action,
  .editorial-btn,
  .text-link,
  .card-link {
    min-height: 38px;
    padding-inline: 13px !important;
    font-size: .84rem !important;
  }
}

/* Final polish layer: calmer actions, clearer footer controls, less visual noise */
.portal-actions {
  flex-wrap: wrap;
  row-gap: 8px;
}

.portal-user {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(36, 72, 63, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
}

.side-link-list {
  display: grid;
  gap: 10px;
}

.side-link-list a {
  width: 100%;
}

.feature-price-card a,
.footer-links a,
.footer-inner-clean nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(36, 72, 63, .16);
  border-radius: 999px;
  color: var(--seido-brand) !important;
  background: rgba(255, 251, 246, .78);
  font-size: .87rem;
  font-weight: 840;
  line-height: 1;
  text-decoration: none !important;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.feature-price-card a:hover,
.footer-links a:hover,
.footer-inner-clean nav a:hover {
  color: #fffaf4 !important;
  border-color: var(--seido-brand) !important;
  background: var(--seido-brand) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(36, 72, 63, .16);
}

.site-footer {
  margin-top: 20px;
}

.footer-inner,
.footer-inner-clean {
  padding-top: 18px;
  border-top: 1px solid rgba(31, 39, 35, .10);
}

@media (max-width: 980px) {
  .portal-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .portal-user {
    display: none;
  }

  .footer-inner,
  .footer-inner-clean {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* reference-style global portal shell */
body.seido-home,
body.seido-account,
body.pricing-page,
body.billing-account,
body.seido-delete,
body.seido-legal,
body.seido-admin {
  background:
    radial-gradient(900px circle at 12% -10%, rgba(199, 154, 111, .10), transparent 54%),
    radial-gradient(760px circle at 92% 6%, rgba(36, 72, 63, .08), transparent 50%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f2ea 100%) !important;
}

.portal-user { display: none !important; }

.portal-topbar {
  position: relative !important;
  top: 0 !important;
  min-height: 82px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(24, 34, 31, .10) !important;
  border-radius: 0 !important;
  background: rgba(255, 253, 248, .88) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.editorial-page .portal-topbar,
.account-window .portal-topbar,
.pricing-window .portal-topbar,
.legal-window .portal-topbar,
.delete-window .portal-topbar,
.admin-topbar.portal-topbar {
  margin: 0 !important;
}

.portal-nav {
  gap: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.portal-nav a {
  position: relative;
  min-height: auto !important;
  padding: 0 0 9px !important;
  border-radius: 0 !important;
  color: var(--seido-ink) !important;
  background: transparent !important;
  font-size: .92rem !important;
  font-weight: 620 !important;
}

.portal-nav a::after {
  content: '' !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--seido-brand);
  transition: transform .18s ease;
}

.portal-nav a:hover,
.portal-nav a.is-active {
  color: var(--seido-brand) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.portal-nav a:hover::after,
.portal-nav a.is-active::after {
  transform: scaleX(1);
}

.portal-actions {
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

.portal-action {
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: .9rem !important;
  font-weight: 760 !important;
}

.portal-action.is-secondary,
.portal-action.is-muted,
.portal-action.is-danger {
  color: var(--seido-ink) !important;
  border-color: rgba(24, 34, 31, .12) !important;
  background: rgba(255, 255, 255, .74) !important;
}

.portal-action.is-secondary:hover,
.portal-action.is-muted:hover,
.portal-action.is-danger:hover {
  color: var(--seido-brand) !important;
  border-color: rgba(36, 72, 63, .24) !important;
  background: rgba(255, 255, 255, .96) !important;
}

.portal-action.is-primary {
  color: #fffdf8 !important;
  border-color: var(--seido-brand) !important;
  background: var(--seido-brand) !important;
  box-shadow: 0 12px 24px rgba(36, 72, 63, .15) !important;
}

.portal-frame,
.account-window,
.pricing-window,
.legal-window,
.delete-window {
  overflow: hidden;
  border-radius: 34px !important;
  background: rgba(255, 253, 248, .92) !important;
  border: 1px solid rgba(24, 34, 31, .10) !important;
  box-shadow: 0 24px 68px rgba(71, 53, 27, .09) !important;
}

.editorial-shell,
.pricing-shell,
.legal-shell,
.delete-shell,
.account-shell {
  width: min(1380px, calc(100% - 40px)) !important;
  margin-inline: auto !important;
}

.editorial-page,
.editorial-page-wrap,
.account-frame {
  padding-top: 24px !important;
  padding-bottom: 36px !important;
}

body.seido-account > .portal-topbar {
  width: min(1380px, calc(100% - 40px));
  margin: 24px auto 0 !important;
  border: 1px solid rgba(24, 34, 31, .10) !important;
  border-bottom: 1px solid rgba(24, 34, 31, .10) !important;
  border-radius: 34px 34px 0 0 !important;
}

@media (max-width: 1080px) {
  .portal-topbar {
    grid-template-columns: 1fr auto !important;
    padding: 18px 18px 14px !important;
  }

  .portal-nav {
    grid-column: 1 / -1;
    justify-content: flex-start !important;
    order: 3;
    overflow-x: auto;
    padding-bottom: 4px !important;
  }
}

@media (max-width: 720px) {
  .editorial-shell,
  .pricing-shell,
  .legal-shell,
  .delete-shell,
  .account-shell,
  body.seido-account > .portal-topbar {
    width: min(1380px, calc(100% - 20px)) !important;
  }

  .portal-topbar {
    padding-inline: 16px !important;
  }

  .portal-actions {
    width: 100%;
    justify-content: flex-start !important;
  }
}
