.seigei-account-nav {
  position: fixed;
  z-index: 99990;
  top: .55rem;
  right: .75rem;
  font: 14px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.admin-bar .seigei-account-nav { top: 2.55rem; }
.seigei-account-nav a { color: inherit; text-decoration: none; }
.seigei-account-login-link,
.seigei-account-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(128,128,128,.45);
  border-radius: 7px;
  background: rgba(20,20,20,.92);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.seigei-account-menu > summary::-webkit-details-marker { display: none; }
.seigei-account-badge { min-width: 1.25rem; padding: .08rem .3rem; border-radius: 999px; background: #d8463f; color: #fff; font-size: .74rem; text-align: center; }
.seigei-account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .3rem);
  display: grid;
  min-width: 11rem;
  padding: .3rem;
  border: 1px solid #555;
  border-radius: 7px;
  background: #171717;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.seigei-account-menu-panel a { display: flex; justify-content: space-between; gap: .7rem; padding: .48rem .55rem; border-radius: 5px; }
.seigei-account-menu-panel a:hover { background: #303030; }
.seigei-account-page,
.seigei-login-page { width: min(920px, calc(100% - 2rem)); margin: 5rem auto 2rem; font: 16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: inherit; }
.seigei-login-page { width: min(390px, calc(100% - 2rem)); }
.seigei-login-page form,
.seigei-profile-form { display: grid; gap: .9rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
.seigei-login-page form p { margin: 0; }
.seigei-login-page label,
.seigei-profile-form label { display: grid; gap: .3rem; }
.seigei-login-page input[type="text"],
.seigei-login-page input[type="password"],
.seigei-profile-form input { width: 100%; padding: .65rem .7rem; border: 1px solid #aaa; border-radius: 5px; background: transparent; color: inherit; font: inherit; }
.seigei-login-page input[type="submit"],
.seigei-profile-form button,
.seigei-review-queue-actions button { padding: .55rem .85rem; border: 1px solid currentColor; border-radius: 5px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.seigei-login-page .login-remember label { display: flex; align-items: center; gap: .45rem; }
.seigei-lost-password { margin-top: .7rem; }
.seigei-profile-form fieldset { margin: .35rem 0 0; padding: .8rem; border: 1px solid #aaa; border-radius: 5px; }
.seigei-account-success { padding: .65rem; border-left: 3px solid #4fbd76; }
.seigei-account-error { padding: .65rem; border-left: 3px solid #d8463f; }
.seigei-account-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: .7rem; margin: 1rem 0 2rem; }
.seigei-account-stats > div { display: grid; gap: .12rem; padding: .8rem; border: 1px solid #aaa; border-radius: 6px; }
.seigei-account-stats strong { font-size: 1.45rem; }
.seigei-account-stats span { font-size: .82rem; opacity: .75; }
.seigei-activity-list,
.seigei-review-queue { display: grid; gap: .65rem; }
.seigei-activity-item,
.seigei-review-queue-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: start; padding: .85rem 0; border-bottom: 1px solid #aaa; }
.seigei-activity-item div,
.seigei-review-queue-item > div:first-child { display: grid; gap: .18rem; }
.seigei-activity-item span,
.seigei-review-queue-item span { opacity: .7; font-size: .86rem; }
.seigei-activity-item p,
.seigei-review-queue-item p { margin: .2rem 0; }
.seigei-review-queue-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.seigei-review-queue-actions form { margin: 0; }
@media (max-width: 700px) {
  .seigei-account-nav { position: absolute; }
  .seigei-activity-item,.seigei-review-queue-item { grid-template-columns: 1fr; }
  .seigei-review-queue-actions { justify-content: flex-start; }
}
.seigei-object-page .seigei-object-shell { padding-top: 3.15rem; }
.seigei-object-page .seigei-object-shell .seigei-reader { height: calc(100vh - 3.15rem); min-height: 520px; }
.seigei-object-page.admin-bar .seigei-object-shell { padding-top: 5.15rem; }
.seigei-object-page.admin-bar .seigei-object-shell .seigei-reader { height: calc(100vh - 5.15rem); }

/* 0.9.0 shared full-window application surface and persistent theme. */
html[data-seigei-theme="dark"],
html[data-seigei-theme="dark"] body {
  color-scheme: dark;
  background: #111;
  color: #f2f2f2;
}
html[data-seigei-theme="light"],
html[data-seigei-theme="light"] body {
  color-scheme: light;
  background: #f7f7f7;
  color: #151515;
}
.seigei-account-nav {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.seigei-account-theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(128,128,128,.55);
  border-radius: 7px;
  background: rgba(20,20,20,.92);
  color: #fff;
  cursor: pointer;
  font: 1rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-seigei-theme="light"] .seigei-account-theme-toggle,
html[data-seigei-theme="light"] .seigei-account-login-link,
html[data-seigei-theme="light"] .seigei-account-menu > summary {
  background: rgba(255,255,255,.96);
  color: #111;
}
html[data-seigei-theme="light"] .seigei-account-menu-panel {
  background: #fff;
  color: #111;
  border-color: #aaa;
}
html[data-seigei-theme="light"] .seigei-account-menu-panel a:hover { background: #ededed; }

body.seigei-app-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}
.seigei-app-shell {
  min-height: 100vh;
  width: 100%;
  padding: 3.35rem 1.15rem 1.15rem;
  box-sizing: border-box;
  background: #111;
  color: #f2f2f2;
  font: 16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-seigei-theme="light"] .seigei-app-shell {
  background: #f7f7f7;
  color: #151515;
}
.seigei-app-shell .seigei-account-page,
.seigei-app-shell .seigei-login-page,
.seigei-app-shell .seigei-library-search {
  width: min(1500px, 100%);
  min-height: calc(100vh - 4.5rem);
  margin: 0 auto;
  padding: clamp(1rem, 2.2vw, 2.2rem);
  box-sizing: border-box;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
  background: #171717;
  color: #f2f2f2;
}
.seigei-app-shell .seigei-login-page { width: min(520px, 100%); min-height: auto; margin-top: 5vh; }
html[data-seigei-theme="light"] .seigei-app-shell .seigei-account-page,
html[data-seigei-theme="light"] .seigei-app-shell .seigei-login-page,
html[data-seigei-theme="light"] .seigei-app-shell .seigei-library-search {
  background: #fff;
  color: #151515;
  border-color: #bdbdbd;
}
.seigei-app-shell input,
.seigei-app-shell textarea,
.seigei-app-shell select,
.seigei-app-shell button {
  color: inherit;
  font: inherit;
}
.seigei-app-shell input,
.seigei-app-shell textarea,
.seigei-app-shell select {
  background: #1e1e1e;
  border-color: #666;
}
html[data-seigei-theme="light"] .seigei-app-shell input,
html[data-seigei-theme="light"] .seigei-app-shell textarea,
html[data-seigei-theme="light"] .seigei-app-shell select {
  background: #fff;
  color: #111;
  border-color: #999;
}
.seigei-app-shell .seigei-account-stats > div,
.seigei-app-shell .seigei-activity-item,
.seigei-app-shell .seigei-review-queue-item { border-color: #555; }
html[data-seigei-theme="light"] .seigei-app-shell .seigei-account-stats > div,
html[data-seigei-theme="light"] .seigei-app-shell .seigei-activity-item,
html[data-seigei-theme="light"] .seigei-app-shell .seigei-review-queue-item { border-color: #bbb; }
@media (max-width: 700px) {
  .seigei-app-shell { padding: 3.1rem .5rem .5rem; }
  .seigei-app-shell .seigei-account-page,
  .seigei-app-shell .seigei-login-page,
  .seigei-app-shell .seigei-library-search { padding: .85rem; border-radius: 6px; }
}

/* 0.9.1 full-window routing, reserved navigation, profile, and contribution history. */
.seigei-account-database-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(128,128,128,.45);
  border-radius: 7px;
  background: rgba(20,20,20,.92);
  color: #fff !important;
  font-weight: 650;
}
html[data-seigei-theme="light"] .seigei-account-database-link {
  background: rgba(255,255,255,.96);
  color: #111 !important;
}
.seigei-object-page .seigei-account-nav,
.seigei-app-page .seigei-account-nav {
  left: 0;
  right: 0;
  top: 0;
  min-height: 3.15rem;
  justify-content: flex-end;
  padding: .45rem .75rem;
  box-sizing: border-box;
  border-bottom: 1px solid #333;
  background: #111;
}
.seigei-object-page.admin-bar .seigei-account-nav,
.seigei-app-page.admin-bar .seigei-account-nav { top: 2rem; }
html[data-seigei-theme="light"] .seigei-app-page .seigei-account-nav { background: #f7f7f7; border-color: #bbb; }
.seigei-object-page .seigei-object-shell { box-sizing: border-box; }
body.seigei-app-page.admin-bar .seigei-app-shell { padding-top: 5.35rem; }

/* The Database uses the complete application viewport instead of the account-page width cap. */
.seigei-database-page .seigei-app-shell {
  min-height: 100vh;
  padding: 3.15rem 0 0;
}
.seigei-database-page.admin-bar .seigei-app-shell { padding-top: 5.15rem; }
.seigei-database-page .seigei-app-shell .seigei-library-search {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 3.15rem);
  margin: 0;
  border: 0;
  border-radius: 0;
}
.seigei-database-page.admin-bar .seigei-app-shell .seigei-library-search { min-height: calc(100vh - 5.15rem); }

.seigei-profile-page { text-align: center; }
.seigei-profile-page .seigei-profile-form {
  width: min(80%, 1000px);
  margin: 0 auto;
  text-align: left;
}
html[data-seigei-theme="dark"] .seigei-profile-page h1,
html[data-seigei-theme="dark"] .seigei-contributions-page h1,
html[data-seigei-theme="dark"] .seigei-contributions-page h2 { color: #fff; }
html[data-seigei-theme="dark"] .seigei-profile-form input,
html[data-seigei-theme="dark"] .seigei-profile-form input:read-only,
html[data-seigei-theme="dark"] .seigei-profile-form input:-webkit-autofill {
  background: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border-color: #777;
  box-shadow: 0 0 0 1000px #111 inset !important;
}

.seigei-account-stats > button,
.seigei-account-stats > .seigei-account-stat-static {
  display: grid;
  gap: .12rem;
  padding: .8rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.seigei-account-stats > button { cursor: pointer; }
.seigei-account-stats > button:hover,
.seigei-account-stats > button.is-active {
  background: #292929;
  border-color: #aaa;
}
.seigei-account-stats > button.is-active { outline: 2px solid currentColor; outline-offset: 2px; }
.seigei-account-stats > button strong,
.seigei-account-stats > .seigei-account-stat-static strong { font-size: 1.45rem; }
.seigei-account-stats > button span,
.seigei-account-stats > .seigei-account-stat-static span { font-size: .82rem; opacity: .8; }
html[data-seigei-theme="light"] .seigei-account-stats > button,
html[data-seigei-theme="light"] .seigei-account-stats > .seigei-account-stat-static { border-color: #bbb; }
html[data-seigei-theme="light"] .seigei-account-stats > button:hover,
html[data-seigei-theme="light"] .seigei-account-stats > button.is-active { background: #ededed; border-color: #555; }
.seigei-contribution-filter-status { margin: -1rem 0 1.5rem; opacity: .78; }

.seigei-change-content {
  display: grid;
  gap: .42rem;
  min-width: 0;
  margin: .45rem 0;
  line-height: 1.5;
}
.seigei-change-line {
  display: grid;
  grid-template-columns: minmax(6.5rem,max-content) minmax(0,1fr);
  gap: .65rem;
  align-items: start;
}
.seigei-change-line > span { font-weight: 700; opacity: .78; }
.seigei-change-line > div {
  min-width: 0;
  max-height: 16rem;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: normal;
}
.seigei-change-content mark,
.seigei-change-added,
.seigei-change-approved,
.seigei-change-target {
  padding: .04em .12em;
  background: #ffe16b;
  color: #111;
  text-decoration: none;
}
.seigei-change-content del,
.seigei-change-removed {
  padding: .04em .12em;
  background: #6f2020;
  color: #fff;
  text-decoration-thickness: 2px;
}
html[data-seigei-theme="light"] .seigei-change-content del,
html[data-seigei-theme="light"] .seigei-change-removed { background: #ffd7d7; color: #761515; }

@media (max-width: 700px) {
  .seigei-object-page .seigei-account-nav,
  .seigei-app-page .seigei-account-nav { position: fixed; padding-inline: .5rem; }
  .seigei-account-database-link { padding-inline: .4rem; }
  .seigei-profile-page .seigei-profile-form { width: 100%; }
  .seigei-change-line { grid-template-columns: 1fr; gap: .12rem; }
}

/* Keep all application headings legible even when the active theme sets heading colors. */
html[data-seigei-theme="dark"] .seigei-app-shell .seigei-account-page h1,
html[data-seigei-theme="dark"] .seigei-app-shell .seigei-account-page h2,
html[data-seigei-theme="dark"] .seigei-app-shell .seigei-account-page h3,
html[data-seigei-theme="dark"] .seigei-app-shell .seigei-login-page h1,
html[data-seigei-theme="dark"] .seigei-app-shell .seigei-login-page h2,
html[data-seigei-theme="dark"] .seigei-app-shell .seigei-login-page h3 { color: #fff; }

/* Reader CSS contains an ID-based admin-bar rule; reserve both bars explicitly. */
body.seigei-object-page.admin-bar .seigei-object-shell { padding-top: 5.15rem !important; }
@media (max-width: 782px) {
  .seigei-object-page.admin-bar .seigei-account-nav,
  .seigei-app-page.admin-bar .seigei-account-nav { top: 46px; }
  body.seigei-object-page.admin-bar .seigei-object-shell { padding-top: calc(46px + 3.15rem) !important; }
  body.seigei-object-page.admin-bar .seigei-object-shell .seigei-reader { height: calc(100vh - 46px - 3.15rem); }
  body.seigei-app-page.admin-bar .seigei-app-shell { padding-top: calc(46px + 3.35rem); }
  body.seigei-database-page.admin-bar .seigei-app-shell { padding-top: calc(46px + 3.15rem); }
  body.seigei-database-page.admin-bar .seigei-app-shell .seigei-library-search { min-height: calc(100vh - 46px - 3.15rem); }
}

/* 0.9.2 embedded login, private routing, compact navigation, and review actions. */
.seigei-login-embed {
  width: min(390px, 100%);
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.seigei-login-embed form { color: inherit; }
.seigei-account-database-link { font-weight: 400; }

/* Author display rules must never override the contribution filter's hidden state. */
.seigei-contributions-page [hidden] { display: none !important; }

html[data-seigei-theme="dark"] .seigei-database-page .seigei-library-search-form button {
  color: #fff !important;
}

/* The account bar and viewer meet on the same pixel edge without an empty band. */
body.seigei-object-page { --seigei-account-bar-height: 3.05rem; }
.seigei-object-page .seigei-account-nav {
  height: var(--seigei-account-bar-height);
  min-height: var(--seigei-account-bar-height);
  padding-block: .4rem;
}
.seigei-object-page .seigei-object-shell {
  padding-top: var(--seigei-account-bar-height) !important;
  margin: 0;
}
.seigei-object-page .seigei-object-shell .seigei-reader {
  height: calc(100vh - var(--seigei-account-bar-height));
  margin: 0;
}
html[data-seigei-theme="light"] .seigei-object-page .seigei-account-nav {
  background: #f7f7f7;
  color: #111;
  border-color: #bbb;
}

.seigei-open-button,
.seigei-review-queue-actions .seigei-open-button,
.seigei-activity-item .seigei-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: .38rem .72rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}
.seigei-review-button-approve {
  border-color: #2f9e55 !important;
  background: #2f9e55 !important;
  color: #fff !important;
}
.seigei-review-button-reject {
  border-color: #c83e38 !important;
  background: #c83e38 !important;
  color: #fff !important;
}
.seigei-review-button-approve:hover { background: #247d43 !important; }
.seigei-review-button-reject:hover { background: #a9312c !important; }

body.seigei-object-page.admin-bar { --seigei-account-bar-height: 3.05rem; }
body.seigei-object-page.admin-bar .seigei-object-shell {
  padding-top: calc(32px + var(--seigei-account-bar-height)) !important;
}
body.seigei-object-page.admin-bar .seigei-object-shell .seigei-reader {
  height: calc(100vh - 32px - var(--seigei-account-bar-height));
}
@media (max-width: 782px) {
  body.seigei-object-page.admin-bar .seigei-object-shell {
    padding-top: calc(46px + var(--seigei-account-bar-height)) !important;
  }
  body.seigei-object-page.admin-bar .seigei-object-shell .seigei-reader {
    height: calc(100vh - 46px - var(--seigei-account-bar-height));
  }
}

/* 0.9.3 exact viewport geometry, Divi-header suppression, and translucent review controls. */
body.seigei-object-page,
body.seigei-database-page {
  --seigei-wp-admin-height: 0px;
  --seigei-account-bar-height: 3.05rem;
  margin: 0 !important;
  padding: 0 !important;
}
body.seigei-object-page.admin-bar,
body.seigei-database-page.admin-bar { --seigei-wp-admin-height: 32px; }

/* Dedicated Seigei templates do not use the Divi header. These selectors are a
   defensive fallback for Theme Builder modules injected by third-party hooks. */
body.seigei-object-page #top-header,
body.seigei-object-page #main-header,
body.seigei-object-page .et-l--header,
body.seigei-object-page header.et-l,
body.seigei-object-page [class*="et_pb_section_"][class*="_tb_header"],
body.seigei-database-page #top-header,
body.seigei-database-page #main-header,
body.seigei-database-page .et-l--header,
body.seigei-database-page header.et-l,
body.seigei-database-page [class*="et_pb_section_"][class*="_tb_header"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.seigei-object-page #page-container,
body.seigei-object-page #et-main-area,
body.seigei-database-page #page-container,
body.seigei-database-page #et-main-area {
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
}

.seigei-object-page .seigei-account-nav,
.seigei-database-page .seigei-account-nav {
  top: var(--seigei-wp-admin-height) !important;
  height: var(--seigei-account-bar-height);
  min-height: var(--seigei-account-bar-height);
}
body.seigei-object-page .seigei-object-shell {
  position: fixed;
  inset: calc(var(--seigei-wp-admin-height) + var(--seigei-account-bar-height)) 0 0;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
body.seigei-object-page .seigei-object-shell .seigei-reader {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  margin: 0 !important;
}
body.seigei-database-page .seigei-app-shell {
  position: fixed;
  inset: calc(var(--seigei-wp-admin-height) + var(--seigei-account-bar-height)) 0 0;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto;
}
body.seigei-database-page .seigei-app-shell .seigei-library-search {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  box-sizing: border-box;
}

html[data-seigei-theme="light"] .seigei-database-page .seigei-library-search-form button {
  border-color: #777 !important;
  background: #fff !important;
  color: #111 !important;
}
html[data-seigei-theme="light"] .seigei-database-page .seigei-library-search-form button:hover {
  background: #ededed !important;
}

.seigei-review-button-approve {
  border-color: rgba(79,189,118,.78) !important;
  background: rgba(79,189,118,.12) !important;
  color: #8ee5ac !important;
}
.seigei-review-button-reject {
  border-color: rgba(216,91,85,.82) !important;
  background: rgba(216,91,85,.12) !important;
  color: #ffaaa6 !important;
}
.seigei-review-button-approve:hover { background: rgba(79,189,118,.22) !important; }
.seigei-review-button-reject:hover { background: rgba(216,91,85,.22) !important; }
html[data-seigei-theme="light"] .seigei-review-button-approve { color: #176b35 !important; }
html[data-seigei-theme="light"] .seigei-review-button-reject { color: #9f2823 !important; }

@media (max-width: 782px) {
  body.seigei-object-page.admin-bar,
  body.seigei-database-page.admin-bar { --seigei-wp-admin-height: 46px; }
}

/* 0.9.4 zero-gap dedicated viewport and designated-home Divi removal. */
body.seigei-object-page,
body.seigei-object-page.admin-bar,
body.seigei-database-page,
body.seigei-database-page.admin-bar {
  --seigei-wp-admin-height: 0px;
  margin: 0 !important;
  padding: 0 !important;
}
body.seigei-object-page #wpadminbar,
body.seigei-app-page #wpadminbar { display: none !important; }
body.seigei-object-page .seigei-account-nav,
body.seigei-object-page.admin-bar .seigei-account-nav,
body.seigei-database-page .seigei-account-nav,
body.seigei-database-page.admin-bar .seigei-account-nav {
  top: 0 !important;
}
body.seigei-object-page .seigei-object-shell,
body.seigei-object-page.admin-bar .seigei-object-shell,
body.seigei-object-page #wpadminbar ~ .seigei-object-shell {
  position: fixed !important;
  inset: var(--seigei-account-bar-height) 0 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.seigei-object-page .seigei-object-shell .seigei-reader,
body.seigei-object-page.admin-bar .seigei-object-shell .seigei-reader {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
}
body.seigei-database-page .seigei-app-shell,
body.seigei-database-page.admin-bar .seigei-app-shell {
  position: fixed !important;
  inset: var(--seigei-account-bar-height) 0 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
}

html body.seigei-designated-home #top-header,
html body.seigei-designated-home #main-header,
html body.seigei-designated-home .et-l--header,
html body.seigei-designated-home header.et-l,
html body.seigei-designated-home [class*="et_pb_section_"][class*="_tb_header"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body.seigei-designated-home #page-container,
html body.seigei-designated-home #et-main-area,
html body.seigei-designated-home.et_fixed_nav #page-container,
html body.seigei-designated-home.et_show_nav #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  top: 0 !important;
}


/* 0.10.1 administrator shortcuts on the shared account bar. */
.seigei-account-admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(128,128,128,.45);
  border-radius: 7px;
  background: rgba(20,20,20,.92);
  color: #fff !important;
  font-weight: 650;
}
html[data-seigei-theme="light"] .seigei-account-admin-link {
  background: rgba(255,255,255,.96);
  color: #111 !important;
}

/* 0.10.3 shared top-bar emphasis. */
.seigei-account-nav > button,
.seigei-account-nav > a,
.seigei-account-nav > details > summary {
  font-weight: 700;
}

/* 0.10.5 modern embedded login. */
.seigei-login-embed {
  width: min(420px, 100%);
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #111 !important;
  font: 16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.seigei-login-embed,
.seigei-login-embed *,
.seigei-login-database-only {
  color: #111 !important;
  box-sizing: border-box;
}
.seigei-login-panel {
  width: 100%;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.seigei-login-heading { margin: 0 0 1.25rem; }
.seigei-login-heading h2 {
  margin: 0;
  color: #111 !important;
  font: 700 clamp(1.45rem, 4vw, 1.8rem)/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing: -.02em;
}
.seigei-login-heading p {
  margin: .35rem 0 0;
  color: #111 !important;
  font-size: .95rem;
}
.seigei-login-embed form {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.seigei-login-embed form p { margin: 0; }
.seigei-login-embed label {
  display: grid;
  gap: .38rem;
  color: #111 !important;
  font-size: .9rem;
  font-weight: 650;
}
.seigei-login-embed input[type="text"],
.seigei-login-embed input[type="password"] {
  width: 100%;
  min-height: 2.85rem;
  padding: .68rem .75rem;
  border: 1px solid #aaa;
  border-radius: 8px;
  outline: 0;
  background: #fff !important;
  color: #111 !important;
  caret-color: #111;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.seigei-login-embed input[type="text"]:focus,
.seigei-login-embed input[type="password"]:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,.12);
}
.seigei-login-embed input:-webkit-autofill,
.seigei-login-embed input:-webkit-autofill:hover,
.seigei-login-embed input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}
.seigei-login-embed .login-remember label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  font-size: .88rem;
  font-weight: 500;
}
.seigei-login-embed .login-remember input { margin: 0; accent-color: #111; }
.seigei-login-embed .login-submit input[type="submit"] {
  width: 100%;
  min-height: 2.85rem;
  padding: .65rem .9rem;
  border: 1px solid #111;
  border-radius: 8px;
  background: #fff !important;
  color: #111 !important;
  font: 700 .95rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.seigei-login-embed .login-submit input[type="submit"]:hover { background: #f1f1f1 !important; }
.seigei-login-embed .login-submit input[type="submit"]:active { transform: translateY(1px); }
.seigei-login-embed a,
.seigei-login-database-only {
  color: #111 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: .18em;
}
.seigei-login-embed a:hover,
.seigei-login-embed a:focus,
.seigei-login-database-only:hover,
.seigei-login-database-only:focus {
  color: #111 !important;
  text-decoration-thickness: 2px !important;
}
.seigei-login-embed .seigei-lost-password {
  margin: 1rem 0 0;
  font-size: .88rem;
}
.seigei-login-database-only {
  display: inline-block;
  font: 600 16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
@media (max-width: 480px) {
  .seigei-login-panel { padding: 1.15rem; border-radius: 10px; }
}


.seigei-activity-user-filter {
  display: flex;
  align-items: end;
  gap: .65rem;
  margin: 0 0 1rem;
}
.seigei-activity-user-filter label { display: grid; gap: .3rem; font-weight: 650; }
.seigei-activity-user-filter select,
.seigei-activity-user-filter button {
  min-height: 2.35rem;
  padding: .4rem .65rem;
  border: 1px solid #666;
  border-radius: 6px;
  background: #171717;
  color: inherit;
}
.seigei-activity-user-filter button { cursor: pointer; }
html[data-seigei-theme="light"] .seigei-activity-user-filter select,
html[data-seigei-theme="light"] .seigei-activity-user-filter button { background: #fff; border-color: #999; color: #111; }


/* 1.0.1 Administrator login audit. */
.seigei-login-audit { margin: 1.25rem 0 2rem; }
.seigei-login-audit-note { max-width: 70rem; opacity: .76; }
.seigei-login-audit-scroll { overflow-x: auto; border: 1px solid #555; border-radius: 7px; }
.seigei-login-audit table { width: 100%; min-width: 760px; border-collapse: collapse; }
.seigei-login-audit th,
.seigei-login-audit td { padding: .65rem .75rem; border-bottom: 1px solid #444; text-align: left; vertical-align: top; }
.seigei-login-audit th { font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; }
.seigei-login-audit tbody tr:last-child td { border-bottom: 0; }
.seigei-login-audit td:first-child { display: grid; gap: .08rem; }
.seigei-login-audit small { opacity: .7; }
.seigei-login-audit code { white-space: nowrap; }
html[data-seigei-theme="light"] .seigei-login-audit-scroll { border-color: #bbb; }
html[data-seigei-theme="light"] .seigei-login-audit th,
html[data-seigei-theme="light"] .seigei-login-audit td { border-color: #d1d1d1; }

/* 1.1.3 Series pages use the same fixed account bar and application viewport as the Database. */
body.seigei-series-page { --seigei-account-bar-height: 3.05rem; margin: 0 !important; padding: 0 !important; }
body.seigei-series-page .seigei-account-nav { top: 0 !important; height: var(--seigei-account-bar-height); min-height: var(--seigei-account-bar-height); }
body.seigei-series-page .seigei-app-shell {
  position: fixed !important;
  inset: var(--seigei-account-bar-height) 0 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
}

/* 1.1.4 one persistent Seigei user bar across the complete front end. */
body.seigei-has-account-nav { --seigei-account-bar-height: 3.05rem; }
body.seigei-has-account-nav .seigei-account-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: var(--seigei-account-bar-height);
  min-height: var(--seigei-account-bar-height);
  justify-content: flex-end;
  padding: .4rem .75rem;
  box-sizing: border-box;
  overflow-x: auto;
  border-bottom: 1px solid #333;
  background: #111;
  color: #f2f2f2;
}
html[data-seigei-theme="light"] body.seigei-has-account-nav .seigei-account-nav {
  border-color: #bbb;
  background: #f7f7f7;
  color: #111;
}
body.seigei-has-account-nav:not(.seigei-object-page):not(.seigei-app-page) {
  padding-top: var(--seigei-account-bar-height) !important;
}
body.seigei-has-account-nav #wpadminbar { display: none !important; }
@media (max-width: 700px) {
  body.seigei-has-account-nav .seigei-account-nav {
    position: fixed;
    padding-inline: .5rem;
  }
}


/* 1.5.2 reliable front-end user menu. */
body.seigei-has-account-nav .seigei-account-nav { overflow: visible !important; }
.seigei-account-menu { position: relative; overflow: visible; }
.seigei-account-menu-panel { z-index: 100010; }


/* 1.5.5 Object reader account controls live in the lower-left footer. */
body.seigei-object-page { --seigei-account-bar-height: 0px !important; }
body.seigei-object-page .seigei-object-shell,
body.seigei-object-page.admin-bar .seigei-object-shell,
body.seigei-object-page #wpadminbar ~ .seigei-object-shell {
  inset: 0 !important;
}
body.seigei-object-page > .seigei-account-nav {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: .32rem !important;
  left: .55rem !important;
  width: auto !important;
  height: 2rem !important;
  min-height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  z-index: 100020;
}
body.seigei-object-page .seigei-reader-account-slot > .seigei-account-nav {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
body.seigei-object-page .seigei-reader-account-slot .seigei-account-nav > button,
body.seigei-object-page .seigei-reader-account-slot .seigei-account-nav > a,
body.seigei-object-page .seigei-reader-account-slot .seigei-account-nav > details > summary {
  min-height: 2rem;
  padding: .22rem .58rem;
  border-radius: 6px;
  white-space: nowrap;
}
body.seigei-object-page .seigei-reader-account-slot .seigei-account-menu-panel {
  top: auto;
  bottom: calc(100% + .4rem);
  right: auto;
  left: 0;
}


/* 1.7.0.7 Object-reader account bar shares the reader's non-bold control typography. */
body.seigei-object-page .seigei-reader-account-slot .seigei-account-nav > button,
body.seigei-object-page .seigei-reader-account-slot .seigei-account-nav > a,
body.seigei-object-page .seigei-reader-account-slot .seigei-account-nav > details > summary {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: .875rem;
  font-weight: 400 !important;
  line-height: 1.2;
}

/* 1.7.0.7 universal lower-left account dock, including Database. */
body.seigei-database-page {
  --seigei-account-bar-height: 0px !important;
}
body.seigei-database-page .seigei-account-nav {
  position: fixed !important;
  inset: auto auto .32rem .55rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  width: auto !important;
  height: 2rem !important;
  min-height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  z-index: 100020;
  font: 400 .875rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
body.seigei-database-page .seigei-account-nav > button,
body.seigei-database-page .seigei-account-nav > a,
body.seigei-database-page .seigei-account-nav > details > summary {
  min-height: 2rem !important;
  height: 2rem;
  padding: .22rem .58rem !important;
  border-radius: 6px;
  font: 400 .875rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  font-weight: 400 !important;
  white-space: nowrap;
}
body.seigei-database-page .seigei-account-nav > .seigei-account-theme-toggle {
  width: 2rem !important;
  min-width: 2rem !important;
  padding: 0 !important;
}
body.seigei-database-page .seigei-account-menu-panel {
  top: auto;
  right: auto;
  bottom: calc(100% + .4rem);
  left: 0;
}
body.seigei-database-page .seigei-app-shell {
  inset: var(--seigei-wp-admin-height) 0 0 !important;
}
body.seigei-database-page .seigei-library-search {
  padding-bottom: 3.1rem;
}

/* Private Project action history in the existing user Profile view. */
.seigei-profile-project-history { margin: 2rem 0; }
.seigei-profile-project-history-list { padding-left: 0; list-style: none; }
.seigei-profile-project-history-list li { padding: .6rem 0; border-bottom: 1px solid #8885; }
.seigei-profile-project-history-list time { display: block; opacity: .7; font-size: .85rem; }
