:root {
  --navy: #132a38;
  --navy2: #1d3b4e;
  --green: #167c52;
  --green2: #0f6843;
  --bg: #f3f5f7;
  --line: #d8dee3;
  --text: #1d2932;
  --muted: #687680;
  --orange: #a44e00;
  --red: #a12b2b;
  --white: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
body {
  margin: 0;
}
a {
  color: #16618d;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.7rem;
  z-index: 99;
}
.admin-header {
  height: 66px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 34px;
}
.brand {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand .brand-cms,
.login-logo .brand-cms,
.admin-footer-brand .brand-cms {
  color: #66d5a8;
}
.brand .brand-go,
.login-logo .brand-go,
.admin-footer-brand .brand-go {
  color: #f4a340;
}
.brand .brand-bip,
.admin-footer-brand .brand-bip {
  color: #fff;
}
.admin-header nav {
  display: flex;
  gap: 8px;
}
.admin-header nav a {
  color: #dbe6ec;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 6px;
}
.admin-header nav a:hover {
  background: var(--navy2);
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.account form {
  margin: 0;
}
.account-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.account-button:hover {
  background: #fff;
  color: var(--navy);
}
.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 28px;
  border-bottom: 1px solid #d79d46;
  background: #fff3d8;
  color: #5f3b00;
}
.impersonation-banner strong,
.impersonation-banner span {
  display: block;
}
.impersonation-banner span {
  margin-top: 2px;
  font-size: 13px;
}
.impersonation-banner form {
  flex: 0 0 auto;
  margin: 0;
}
.impersonation-banner.is-editing {
  border-bottom-color: #167c52;
  background: #e4f6ec;
  color: #0f573a;
}
.impersonation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}
.impersonation-return {
  border-color: #8c5c0c;
  background: #6d4503;
  color: #fff;
}
.impersonation-edit {
  border-color: #0e6844;
  background: var(--green);
  color: #fff;
}
.link-button {
  border: 0;
  background: transparent;
  color: #dbe6ec;
  text-decoration: underline;
  cursor: pointer;
}
.site-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 11px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-bar-unit,
.site-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-bar-unit {
  margin-right: auto;
  flex-wrap: nowrap;
  min-width: max-content;
}
.site-bar-unit strong {
  min-width: max-content;
}
.site-switcher {
  min-width: 126px;
  min-height: 36px;
  margin: 0;
  padding: 6px 34px 6px 10px;
  border: 1px solid #8fa0a9;
  border-radius: 6px;
  background-color: #f7fafb;
  color: #183344;
  font-weight: 800;
  cursor: pointer;
}
.site-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #b8c4ca;
  border-radius: 6px;
  background: #fff;
  color: #29414f;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.site-bar a:hover,
.site-bar a:focus-visible {
  border-color: #82949e;
  background: #f1f5f7;
}
.site-bar a.site-bar-add {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.site-bar a.site-bar-add:hover,
.site-bar a.site-bar-add:focus-visible {
  background: #0e6844;
}
.site-bar a.site-bar-settings {
  flex: 0 0 auto;
  min-width: 132px;
  border-color: #d1a216;
  background: #ffd85a;
  color: #4c3900;
}
.site-bar a.site-bar-settings:hover,
.site-bar a.site-bar-settings:focus-visible {
  border-color: #b78900;
  background: #f3c93f;
}
.site-bar a.site-bar-account {
  flex: 0 0 auto;
  white-space: nowrap;
}
.admin-main {
  width: 100%;
  margin: 0;
  padding: 34px;
}
.admin-main:has(.site-preview-page) {
  padding: 0;
}
.site-preview-page {
  min-height: calc(100vh - 155px);
  background: #fff;
}
.site-preview-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-preview-page iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 155px);
  min-height: 720px;
  border: 0;
  background: #fff;
}
.partner-offer-preview-page { position: relative; }
.partner-offer-preview-page { min-height: calc(100vh - 70px); }
.partner-offer-preview-page iframe { height: calc(100vh - 70px); min-height: 640px; }
.partner-offer-edit-button {
  position: fixed;
  z-index: 20;
  top: 82px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.partner-offer-edit-button:hover,
.partner-offer-edit-button:focus-visible { background: #0e6844; color: #fff; }
.admin-footer {
  padding: 5px 34px;
  text-align: right;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.admin-footer a {
  color: inherit;
  font-weight: 700;
}
.admin-footer-brand {
  display: inline-flex;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 26px;
}
.page-heading.compact {
  max-width: 980px;
}
.page-heading h1 {
  font-size: 31px;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px !important;
  font-weight: 800;
  color: var(--green) !important;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: var(--green2);
}
.secondary {
  background: #fff;
  color: #29414f;
  border-color: #b8c4ca;
}
.dark {
  background: var(--navy2);
  color: #fff;
}
.warning {
  background: #fff3e7;
  color: #7d3b00;
  border-color: #e8be91;
}
.danger {
  background: #fff0f0;
  color: var(--red);
  border-color: #e3b2b2;
}
.small {
  padding: 6px 9px;
  font-size: 13px;
}
.wide {
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 28px;
}
.stats.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.stats strong {
  display: block;
  font-size: 34px;
}
.stats span {
  color: var(--muted);
}
.stats article small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.backup-stat { border-top: 4px solid var(--navy2) !important; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.partner-dashboard-secondary { margin-top: 22px; }
.partner-dashboard-secondary:last-child { margin-bottom: 22px; }
.partner-offer-dashboard{margin-bottom:22px}.partner-offer-dashboard .panel-title>div:first-child h2{margin:2px 0 0}.partner-offer-dashboard .panel-title>div:first-child .eyebrow{margin-bottom:3px}.partner-offer-frame{display:block;width:100%;height:min(650px,70vh);border:1px solid var(--line);border-radius:9px;background:#fff}.partner-marketing-editor .editor-preview iframe{display:block;width:100%;height:100%;border:0}.partner-marketing-editor .empty-preview{display:grid;place-items:center;min-height:420px;padding:30px;text-align:center;color:var(--muted)}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.partner-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.partner-card-head,
.partner-card-actions,
.storage-summary,
.preview-scope-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.partner-card-head h2,
.partner-card-head h3 {
  margin: 0;
}
.partner-card-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}
.partner-facts,
.disk-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 16px 0;
}
.partner-facts dt,
.disk-facts dt {
  color: var(--muted);
  font-size: 12px;
}
.partner-facts dd,
.disk-facts dd {
  min-width: 0;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.storage-meter {
  width: 100%;
  margin-top: 12px;
}
.storage-meter > div,
.storage-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.storage-meter progress,
.storage-summary progress,
.disk-overview > progress {
  display: block;
  width: 100%;
  height: 13px;
  accent-color: var(--green);
}
.disk-overview {
  display: block;
}
.disk-overview .panel-title > strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}
.preview-scope-banner {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #edc66f;
  border-radius: 8px;
  background: #fff6d9;
}
.preview-scope-banner p {
  margin: 3px 0 0;
  color: #5d4b1f;
}
.storage-summary {
  display: block;
  margin-bottom: 8px;
}
.storage-summary small {
  color: var(--muted);
}
.panel,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20, 42, 56, 0.04);
}
.panel {
  padding: 22px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title h2 {
  margin: 0;
}
.clean-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.clean-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #edf0f2;
}
.clean-list small,
.admin-table small {
  display: block;
  color: var(--muted);
}
.account-summary {
  min-width: 0;
}
.clean-list .account-site-name {
  margin-top: 5px;
  color: #29414f;
  font-weight: 700;
}
.backup-page-heading form { margin: 0; }
.backup-create-button { min-height: 46px; padding-inline: 20px; }
.backup-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 22px;
}
.backup-overview-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 42, 56, .04);
}
.backup-overview-card.is-primary { border-top: 4px solid var(--green); }
.backup-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5f4ed;
  color: var(--green2);
  font-weight: 900;
}
.backup-overview-card div { min-width: 0; }
.backup-overview-card small,
.backup-overview-card span { display: block; color: var(--muted); }
.backup-overview-card small { margin-bottom: 3px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 800; }
.backup-overview-card strong { display: block; overflow-wrap: anywhere; color: var(--navy); font-size: 20px; }
.backup-overview-card div > span { margin-top: 3px; font-size: 12px; line-height: 1.4; }
.backup-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr);
  gap: 22px;
  align-items: start;
}
.backup-scope-card,
.backup-list-card { min-width: 0; }
.backup-scope-list { display: grid; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; }
.backup-scope-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid #edf0f2; }
.backup-scope-list li > span { color: var(--green); font-weight: 900; }
.backup-scope-list strong,
.backup-scope-list small { display: block; }
.backup-scope-list small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.backup-safety-note { margin-top: 16px; padding: 15px 16px; border: 1px solid #e8be91; border-left: 5px solid #d88a35; background: #fff8ed; }
.backup-safety-note strong { color: #6d3700; }
.backup-safety-note p { margin: 5px 0 0; color: #604a32; font-size: 13px; line-height: 1.5; }
.backup-upload-card { display: grid; gap: 14px; margin-top: 18px; padding: 17px; border: 1px solid #c7d8e3; border-left: 5px solid var(--navy2); background: #f5f9fb; }
.backup-upload-card h3 { margin: 3px 0 5px; color: var(--navy); }
.backup-upload-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.backup-upload-card form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin: 0; }
.backup-upload-card label { min-width: 0; margin: 0; }
.backup-upload-card input[type="file"] { margin-top: 5px; background: #fff; }
.backup-upload-card > small { color: var(--muted); line-height: 1.4; }
.backup-list { margin-top: 14px; }
.backup-list-item { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid #edf0f2; }
.backup-file-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.backup-file-copy { min-width: 0; }
.backup-file-copy strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.backup-file-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.backup-file-actions { display: flex; align-items: center; gap: 7px; }
.backup-file-actions form { margin: 0; }
.backup-empty-state { padding: 40px 20px; border-top: 1px solid #edf0f2; text-align: center; color: var(--muted); }
.backup-empty-state > span { display: block; font-size: 38px; color: #9aa9b2; }
.backup-empty-state h3 { margin: 5px 0; color: var(--navy); }
.backup-empty-state p { margin: 0; }
.storage-quota-panel { margin: 0 0 22px; }
.storage-quota-panel .panel-title { align-items: center; }
.storage-quota-panel .panel-title > strong { color: var(--navy); font-size: 22px; }
.storage-progress {
  position: relative;
  height: 14px;
  margin: 17px 0;
  overflow: hidden;
  border: 1px solid #b8c8d0;
  border-radius: 999px;
  background: #e9eff2;
}
.storage-progress > span {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #e5a928);
}
.storage-quota-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.storage-quota-details > span {
  padding: 12px;
  border: 1px solid #d9e2e7;
  background: #f7fafb;
  color: var(--muted);
  font-size: 12px;
}
.storage-quota-details strong { display: block; margin-top: 4px; color: var(--navy); font-size: 15px; }
.storage-quota-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.storage-quota-form {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 16px 0 0;
}
.storage-quota-form label { max-width: 340px; margin: 0; }
.storage-quota-form input { margin-top: 5px; }
.account-settings-heading { align-items: end; }
.account-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-backup-layout { margin-top: 0; }
.page-version-restore-action { margin: 10px 0; }
.site-name-badge {
  max-width: 360px;
  margin: 2px 0;
  white-space: normal;
  line-height: 1.35;
}
.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #e9eef1;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 750;
  color: #42535e;
}
.badge.good,
.status-published,
.status-completed {
  background: #e2f5eb;
  color: #126841;
}
.badge.muted {
  background: #eee;
  color: #666;
}
.status-draft {
  background: #eef0f2;
  color: #505d66;
}
.status-scheduled,
.status-pending {
  background: #e6f0fb;
  color: #1f5d91;
}
.status-archived,
.status-cancelled {
  background: #fff0df;
  color: #7f420b;
}
.status-inactive {
  background: #ece7f5;
  color: #5b3c7a;
}
.status-failed {
  background: #fde6e6;
  color: #8c2626;
}
.admin-table {
  border-collapse: collapse;
  width: 100%;
}
.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 12px;
  border-bottom: 1px solid #e7ebee;
}
.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b6b74;
}
.actions {
  text-align: right !important;
}
.form-card {
  padding: 28px;
  max-width: 1080px;
}
.form-card.narrow {
  max-width: 860px;
}
.home-editor.form-card {
  max-width: none;
  padding: 0;
  overflow: clip;
  background: #eef1f3;
}
.home-editor .editor-fields > fieldset,
.home-editor .editor-fields > section {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 42, 56, .05);
}
.home-editor .editor-fields > :first-child { margin-top: 0; }
.home-editor .editor-fields > fieldset > legend {
  padding: 0 12px 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
}
.home-editor .home-content-editor {
  border-top: 5px solid var(--green);
}
.home-editor-section-heading {
  margin: -2px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.home-editor-section-heading .eyebrow {
  margin: 0 0 3px;
}
.editor-fields .home-editor-section-heading h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 21px;
}
.home-editor-section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.home-fixed-page-fields {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #f7f9fa;
}
.form-card fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
  padding: 24px 0 0;
}
.form-card legend {
  font-size: 19px;
  font-weight: 800;
  padding: 0 15px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.span-2 {
  grid-column: 1/-1;
}
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
}
input,
textarea,
select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #b8c4ca;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(22, 124, 82, 0.18);
  border-color: var(--green);
}
label small,
.hint {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
  font-weight: 550;
}
.check input {
  width: auto;
  margin: 3px 0 0;
}
.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.notice {
  padding: 13px 16px;
  border-radius: 7px;
  margin-bottom: 20px;
}
.notice.success {
  background: #e2f5eb;
  color: #126841;
}
.notice.error {
  background: #fde6e6;
  color: #8c2626;
}
.toast-notice {
  position: fixed;
  top: 82px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(430px, calc(100vw - 32px));
  margin: 0;
  padding: 15px 16px 15px 18px;
  border: 1px solid #f0a7c4;
  background: #fce7f3 !important;
  color: #831843 !important;
  box-shadow: 0 14px 38px rgba(80, 20, 50, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-notice > span {
  flex: 1;
}
.toast-notice button {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
}
.toast-notice.is-hiding {
  opacity: 0;
  transform: translateX(18px);
}
.login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #102736, #20485b);
  display: grid;
  place-items: center;
}
.login-main {
  width: 100%;
  padding: 24px;
}
.login-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 13px;
  padding: 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.login-logo {
  font-size: 25px;
  font-weight: 900;
  color: var(--navy);
}
.login-logo .brand-bip {
  color: var(--navy);
}
.login-card h1 {
  margin-bottom: 4px;
}
.login-card p {
  color: var(--muted);
  margin-top: 0;
}
.login-card label {
  margin: 17px 0;
}
.editor {
  margin: -34px;
  min-height: calc(100vh - 107px);
  background: #eef1f3;
}
.editor-top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 67px;
  padding: 10px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.editor-top > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}
.editor-top a {
  text-decoration: none;
}
.editor-buttons {
  display: flex;
  gap: 8px;
}
.editor-buttons-bottom { justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.editor-grid {
  display: grid;
  grid-template-columns: minmax(420px, var(--editor-left, 48%)) 12px minmax(420px, 1fr);
  align-items: start;
}
.editor-fields {
  padding: 25px;
  max-height: calc(100vh - 174px);
  overflow: auto;
}
.editor-fields section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 17px;
}
.editor-fields section h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
.editor-fields label {
  margin: 15px 0;
}
.url-field {
  display: flex;
  align-items: center;
  border: 1px solid #b8c4ca;
  border-radius: 6px;
  margin-top: 7px;
  overflow: hidden;
  background: #f5f7f8;
}
.url-field span {
  padding: 0 0 0 11px;
  color: #5b6870;
  white-space: nowrap;
}
.url-field [data-slug-prefix] {
  padding-left: 0;
}
.url-field input {
  border: 0;
  margin: 0;
  background: transparent;
  min-width: 0;
  flex: 1 1 230px;
}
.url-field.is-wrapped {
  flex-wrap: wrap;
  align-items: stretch;
}
.url-field.is-wrapped [data-slug-prefix] {
  flex: 1 1 45%;
  min-width: 0;
  padding-right: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.url-field.is-wrapped input {
  flex: 1 1 100%;
  width: 100%;
  padding-left: 11px;
  border-top: 1px solid #d7dfe3;
  background: #fff;
}
.attachment-list {
  list-style: none;
  padding: 0;
}
.attachment-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e8ecee;
}
.attachment-list .attachment-display-name {
  flex: 1;
  margin: 0;
}
.attachment-list .attachment-display-name > span {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}
.attachment-list .attachment-display-name input {
  width: 100%;
}
.attachment-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.attachment-order-actions {
  display: flex;
  gap: 4px;
}
.attachment-order-actions .icon-button {
  min-width: 34px;
  padding-inline: 8px;
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 720px) {
  .attachment-list li {
    align-items: stretch;
    flex-direction: column;
  }
  .attachment-row-actions {
    justify-content: flex-end;
  }
}
.editor-preview {
  position: sticky;
  top: 67px;
  height: calc(100vh - 174px);
  padding: 25px 25px 25px 0;
}
.editor-resizer {
  position: sticky;
  top: 67px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 12px;
  height: calc(100vh - 174px);
  cursor: col-resize;
  touch-action: none;
  outline: 0;
}
.editor-resizer span {
  width: 4px;
  height: 68px;
  border-radius: 999px;
  background: #9eabb3;
  box-shadow: 0 0 0 4px #eef1f3;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.editor-resizer:hover span,
.editor-resizer:focus span,
.is-resizing-editor .editor-resizer span {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 124, 82, 0.16);
}
.is-resizing-editor,
.is-resizing-editor * {
  cursor: col-resize !important;
  user-select: none !important;
}
.is-resizing-editor iframe {
  pointer-events: none;
}
.preview-toolbar {
  height: 45px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-toolbar span {
  color: var(--muted);
  font-size: 13px;
}
.preview-frame {
  height: calc(100% - 45px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  box-shadow: 0 5px 20px rgba(20, 42, 56, 0.08);
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #173d33;
  color: #fff;
  padding: 20px;
}
.preview-head > span {
  display: grid;
  place-items: center;
  background: #fff;
  color: #167c52;
  width: 54px;
  height: 54px;
  font-weight: 900;
}
.preview-head small {
  display: block;
}
.preview-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}
.preview-layout nav {
  border-right: 1px solid #dbe3df;
  padding-right: 14px;
}
.preview-layout nav b,
.preview-layout nav a {
  display: block;
  padding: 7px;
}
.preview-layout nav a {
  font-size: 13px;
  color: #236d4d;
}
.preview-layout nav .active {
  background: #eaf5ef;
}
.preview-layout article h1 {
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.2;
}
.preview-crumbs {
  font-size: 12px;
  color: #63736c;
}
.preview-lead {
  font-size: 17px;
  color: #50615a;
}
.preview-content {
  line-height: 1.65;
}
.preview-archive {
  padding: 9px;
  background: #fff1df;
  color: #7d3b00;
  border-left: 4px solid #a44e00;
  margin: 15px 0;
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}
.timeline .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7ba5c7;
  margin-top: 5px;
}
.timeline small {
  display: block;
  color: var(--muted);
}
.inline-form,
.schedule-actions {
  display: flex;
  gap: 6px;
}
.schedule-actions form {
  margin: 0;
}
.schedule-table input {
  min-width: 195px;
  margin: 0;
  padding: 7px;
}
@media (max-width: 1050px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-resizer {
    display: none;
  }
  .editor-fields {
    max-height: none;
  }
  .editor-preview {
    position: relative;
    top: 0;
    height: 700px;
    padding: 0 25px 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .partner-grid,
  .disk-overview {
    grid-template-columns: 1fr;
  }
  .backup-layout { grid-template-columns: 1fr; }
  .backup-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storage-quota-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .partner-card-head,
  .storage-summary,
  .preview-scope-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .partner-facts,
  .disk-facts {
    grid-template-columns: 1fr;
  }
  .admin-header {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 14px;
  }
  .admin-header nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }
  .site-bar {
    overflow: auto;
  }
  .impersonation-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 13px 14px;
  }
  .impersonation-banner button {
    width: 100%;
  }
  .impersonation-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-main {
    padding: 20px;
  }
  .page-heading {
    display: block;
  }
  .page-heading .button {
    margin-top: 15px;
  }
  .stats,
  .stats.four,
  .stats.five,
  .stats.three,
  .backup-overview,
  .form-grid,
  .choice-list {
    grid-template-columns: 1fr;
  }
  .backup-list-item { grid-template-columns: 42px minmax(0, 1fr); }
  .backup-file-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .backup-upload-card form { grid-template-columns: 1fr; }
  .storage-quota-form { align-items: stretch; flex-direction: column; }
  .storage-quota-form label { max-width: none; }
  .storage-quota-details { grid-template-columns: 1fr; }
  .editor {
    margin: -20px;
  }
  .editor-top {
    position: relative;
    display: block;
  }
  .editor-buttons {
    overflow: auto;
    margin-top: 10px;
  }
  .editor-grid {
    display: block;
  }
  .editor-fields {
    padding: 15px;
  }
  .preview-layout {
    grid-template-columns: 1fr;
  }
  .preview-layout nav {
    display: none;
  }
  .admin-table {
    display: block;
    overflow: auto;
  }
}
.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-links {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.row-links form {
  margin: 0;
}
.account-section + .account-section {
  margin-top: 24px;
}
.preview-toolbar a {
  font-weight: 750;
  text-decoration: none;
}
.preview-return {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #355366;
  font-size: 12px;
}
.preview-return:hover {
  color: var(--green);
  text-decoration: underline;
}
.preview-frame {
  overflow: hidden;
}
.preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
@media (max-width: 760px) {
  .page-heading-actions {
    margin-top: 15px;
  }
  .row-links {
    white-space: normal;
  }
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.row-actions form {
  margin: 0;
}
.field-label {
  display: block;
  margin: 15px 0 7px;
  font-size: 14px;
  font-weight: 700;
}
.rich-editor {
  border: 1px solid #aebbc3;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 8px;
  background: #eef2f4;
  border-bottom: 1px solid #cbd4da;
}
.rich-toolbar button {
  min-height: 34px;
  padding: 5px 9px;
  background: #fff;
  color: #243946;
  border-color: #b8c4ca;
  font-size: 13px;
}
.rich-toolbar button:hover,
.rich-toolbar button[aria-pressed="true"] {
  background: #dce8ee;
  border-color: #688397;
}
.rich-toolbar .html-toggle {
  margin-left: auto;
}
.toolbar-separator {
  width: 1px;
  height: 25px;
  background: #b8c4ca;
  margin: 0 3px;
}
.rich-surface {
  min-height: 360px;
  padding: 18px;
  line-height: 1.65;
  outline: 0;
}
.rich-surface:focus {
  box-shadow: inset 0 0 0 3px rgba(22, 124, 82, 0.16);
}
.rich-surface h2 {
  font-size: 1.45rem !important;
  margin: 1.4rem 0 0.65rem !important;
}
.rich-surface h3 {
  font-size: 1.2rem;
  margin: 1.2rem 0 0.55rem;
}
.rich-surface p {
  margin: 0.7rem 0;
}
.rich-surface ul,
.rich-surface ol {
  padding-left: 1.7rem;
}
.rich-surface img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.rich-surface figure {
  margin: 1.2rem 0;
}
.rich-surface figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.rich-source {
  width: 100%;
  min-height: 360px;
  margin: 0;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-heading-row h2 {
  margin-bottom: 0 !important;
}
.instant-upload {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}
.instant-upload label {
  margin: 0;
}
.instant-upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.instant-upload-actions [data-upload-status] {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.instant-uploaded-list {
  margin-top: 12px;
}
.hide-page-check {
  align-items: flex-start;
  margin: 16px 0 0 !important;
  padding: 14px;
  border: 1px solid #d7cbe5;
  border-radius: 7px;
  background: #f7f3fb;
}
.search-noindex-check {
  align-items: flex-start;
  margin: 0 !important;
  padding: 14px;
  border: 1px solid #c7d8e3;
  border-radius: 7px;
  background: #f1f7fa;
}
.search-noindex-check span,
.metric-editor-block .check span {
  display: grid;
  gap: 3px;
}
.search-noindex-check small,
.metric-editor-block .check small,
.home-metric-fieldset .metric-checkbox small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}
.hide-page-check-copy {
  display: grid;
  gap: 2px;
}
.hide-page-check-copy strong {
  color: var(--ink);
  font-size: 14px;
}
.hide-page-check small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}
.additional-settings-block {
  border-left: 4px solid #7b5a9b !important;
}
.media-picker {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.media-picker > summary {
  padding: 12px 14px;
  font-weight: 750;
  cursor: pointer;
  background: #f5f7f8;
}
.editor-media-grid {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.editor-media-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e1e6e9;
  border-radius: 6px;
}
.editor-media-item > img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  background: #eef1f3;
}
.editor-file-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 58px;
  border-radius: 4px;
  background: #e9eef1;
  color: #52636e;
  font-size: 11px;
  font-weight: 850;
}
.editor-media-item small {
  display: block;
  color: var(--muted);
}
.editor-media-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.editor-media-actions .check {
  margin: 0;
}
.media-upload {
  width: 100%;
  max-width: none;
  margin-bottom: 24px;
}
.media-manager {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.media-manager-content { min-width: 0; }
.media-folder-panel {
  position: sticky;
  top: 76px;
  padding: 14px;
}
.media-folder-panel .panel-title { margin-bottom: 10px; }
.media-folder-tree { display: grid; gap: 3px; }
.media-folder-tree-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
}
.media-folder-toggle,
.media-folder-toggle-placeholder {
  width: 24px;
  height: 30px;
}
.media-folder-toggle {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #40545f;
}
.media-folder-toggle:hover,
.media-folder-toggle:focus-visible { background: #e3ece8; }
.media-folder-toggle span { transition: transform .15s ease; }
.media-folder-toggle[aria-expanded="false"] span { transform: rotate(-90deg); }
.media-folder-tree-row[hidden] { display: none !important; }
.media-folder-tree a {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}
.media-folder-tree a:hover { background: #eef4f1; }
.media-folder-tree a.is-active { color: #fff; background: var(--green); }
.media-folder-tree a[data-depth="1"] { padding-left: 15px; }
.media-folder-tree a[data-depth="2"] { padding-left: 29px; }
.media-folder-tree a[data-depth="3"] { padding-left: 43px; }
.media-folder-tree a[data-depth="4"] { padding-left: 57px; }
.media-folder-tree a[data-depth="5"] { padding-left: 71px; }
.media-folder-tree strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.media-folder-tree small { font-size: 11px; opacity: .75; }
.media-folder-create {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dfe5e8;
}
.media-folder-create label { margin: 0; font-size: 12px; }
.media-folder-create input,.media-folder-create select { margin-top: 4px; padding: 7px; font-size: 12px; }
.media-folder-delete { width: 100%; margin-top: 10px; }
.media-empty { padding: 32px 20px; color: var(--muted); text-align: center; background: #f8fafb; }
.media-empty p { margin-bottom: 0; }
.media-library-panel {
  margin-top: 24px;
}
.media-folder + .media-folder {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #dfe5e8;
}
.media-folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 10px 14px;
  border-left: 4px solid var(--green);
  background: #f3f7f5;
}
.media-folder-heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.media-folder-heading span {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.media-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.media-thumb {
  display: grid;
  place-items: center;
  height: 92px;
  background: #eef2f4;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.file-kind {
  max-width: 90%;
  word-break: break-word;
  text-align: center;
  color: #52636e;
  font-size: 11px;
  font-weight: 800;
}
.media-card-copy {
  padding: 10px;
}
.media-card-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.3;
}
.media-card-copy small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.media-card-copy p {
  margin: 0.7rem 0 0;
  font-size: 13px;
}
.media-warning {
  color: #8a4900;
}
.media-card-actions {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  margin-top: auto;
  padding: 0 10px 10px;
}
.media-card-actions form {
  display: inline-flex;
  margin: 0;
}
.media-card-actions .button { min-width: 0; padding-right: 7px; padding-left: 7px; white-space: nowrap; }
.attachments-editor-block {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d8e1e6;
  border-radius: 8px;
  background: #f8fafb;
}
.attachments-editor-block h3,
.attachments-editor-block h4 {
  margin: 0;
}
.attachments-editor-block h4 {
  margin-top: 18px;
  font-size: 14px;
}
.media-meta-form {
  margin-top: 9px;
}
.media-meta-form label {
  margin: 8px 0;
  font-size: 12px;
}
.media-meta-form input {
  margin-top: 4px;
  padding: 6px 7px;
  font-size: 12px;
}
@media (max-width: 1050px) {
  .media-manager { grid-template-columns: 220px minmax(0, 1fr); }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .media-manager { grid-template-columns: 1fr; }
  .media-folder-panel { position: static; }
  .rich-toolbar .html-toggle {
    margin-left: 0;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .editor-media-item {
    grid-template-columns: 55px minmax(0, 1fr);
  }
  .editor-media-item > img,
  .editor-file-icon {
    width: 55px;
    height: 48px;
  }
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .row-actions {
    justify-content: flex-start;
  }
}
.metric-editor-block {
  border-left: 4px solid var(--navy2) !important;
}
.history-publication-control {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c7d8e3;
  border-radius: 8px;
  background: #f5f9fb;
}
.history-publication-control > label {
  margin: 0;
}
.history-opt-in {
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid #b8ccd8;
  border-radius: 7px;
  background: #fff;
}
.history-opt-in:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}
.page-version-control {
  border-left: 4px solid #4d7392 !important;
}
.page-version-control .section-heading-row {
  align-items: flex-start;
}
.page-version-control .section-heading-row p {
  max-width: 720px;
  margin: 5px 0 0;
}
.page-version-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.page-version-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #8aa2b3;
  border-radius: 7px;
  background: #fff;
}
.page-version-list li.is-current {
  border-left-color: var(--green);
  background: #f2fbf6;
}
.page-version-list li.is-draft {
  border-left-color: #2f6f9f;
  background: #f2f7fc;
}
.page-version-list li > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
}
.page-version-list li p {
  margin: 6px 0 3px;
}
.page-version-list li small,
.page-version-list li > div span {
  color: var(--muted);
}
.version-description-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.page-history-version-editor {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}
.page-history-version-editor label {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}
.page-history-version-editor input {
  margin-top: 5px;
  background: #fff;
}
.page-history-version-actions {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}
.page-history-version-actions button {
  min-height: 38px;
}
.page-history-version-editor > small {
  line-height: 1.45;
}
.metric-editor-block > .section-heading-row {
  align-items: flex-start;
}
.metric-editor-block > .section-heading-row p {
  margin: 0.35rem 0 0;
}
.metric-editor-table {
  display: grid;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.metric-editor-table label {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.metric-editor-table label:last-child {
  border-bottom: 0;
}
.metric-editor-table label > span {
  padding-right: 14px;
  font-size: 13px;
  font-weight: 750;
  color: #40525e;
}
.metric-editor-table .metric-checkbox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.metric-editor-table .metric-checkbox > span {
  padding: 0;
  text-align: left;
}
.metric-editor-table .metric-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
}
.autosave-status {
  color: #52636d;
  font-size: 12px;
  font-weight: 650;
}
.autosave-status.is-saving {
  color: #1f5d91;
}
.autosave-status.is-saved {
  color: #126841;
}
.autosave-status.is-error {
  color: var(--red);
}
.metric-editor-table input {
  margin: 0;
}
.date-time-picker {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(125px, 0.7fr);
  gap: 8px;
  width: 100%;
  padding: 0 !important;
}
.date-time-picker input {
  min-width: 0;
}
.custom-picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-width: 0;
}
.metric-editor-table .custom-picker-input {
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.custom-picker-trigger {
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  border: 1px solid #aebbc3;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  padding: 0;
  background: #edf3f6;
  color: var(--navy2);
  font-size: 21px;
  line-height: 1;
}
.custom-picker-trigger:hover,
.custom-picker-trigger[aria-expanded="true"] {
  background: #dce8ee;
}
.custom-picker-trigger:focus-visible,
.custom-picker-input:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(22, 124, 82, 0.22);
  outline-offset: 1px;
}
.custom-picker-popover {
  position: fixed;
  z-index: 5000;
  width: min(350px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  border: 1px solid #aebbc3;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 37, 50, 0.24);
}
.calendar-picker-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.calendar-picker-header strong {
  text-align: center;
  font-size: 16px;
  text-transform: capitalize;
}
.picker-nav-button {
  min-width: 40px;
  min-height: 38px;
  padding: 0;
  border-color: #c7d1d7;
  background: #f3f6f7;
  color: var(--navy2);
  font-size: 24px;
}
.picker-nav-button:hover {
  background: #e3ebef;
}
.calendar-picker-weekdays,
.calendar-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-picker-weekdays {
  margin-bottom: 5px;
}
.calendar-picker-weekdays span {
  padding: 4px 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.calendar-day,
.calendar-day-empty {
  aspect-ratio: 1;
  min-width: 0;
}
.calendar-day {
  min-height: 38px;
  border-color: transparent;
  border-radius: 7px;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.calendar-day:hover {
  border-color: #8aa0ad;
  background: #edf3f6;
}
.calendar-day.is-today {
  border-color: var(--green);
  color: var(--green2);
  font-weight: 850;
}
.calendar-day.is-selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.custom-picker-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.custom-picker-footer button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}
.time-picker-title {
  display: block;
  font-size: 17px;
}
.time-picker-hint {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.time-picker-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.time-picker-lists label {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}
.time-picker-lists select {
  width: 100%;
  min-height: 205px;
  border: 1px solid #aebbc3;
  border-radius: 7px;
  padding: 3px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.time-picker-lists option {
  border-radius: 4px;
  padding: 6px 9px;
  font-variant-numeric: tabular-nums;
}
.time-picker-lists option:checked {
  background: var(--green);
  color: #fff;
}
.time-picker-footer {
  flex-wrap: wrap;
}
.metric-editor-table input[readonly],
.metric-editor-table input:disabled {
  background: #f1f4f5;
  color: #53636d;
}
.metric-editor-table .custom-picker-input[readonly] {
  background: #fff;
  color: var(--text);
}
.metric-editor-table small {
  grid-column: 2;
  margin-top: 5px;
}
.contact-editor {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #f8fafb;
}
.contact-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.contact-editor-heading h3 {
  margin: 0 0 3px;
  font-size: 16px;
}
.contact-editor-heading small {
  color: var(--muted);
}
.contact-editor-rows {
  display: grid;
  gap: 12px;
}
.contact-editor-row {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(230px, 1.35fr) auto;
  align-items: end;
  gap: 12px;
}
.contact-editor-row .button {
  margin-bottom: 1px;
}
.parent-unit-marker {
  padding: 14px 16px;
  border: 1px solid #a9d8bf;
  border-radius: 8px;
  background: #edf8f1;
}
.parent-unit-marker .check {
  align-items: flex-start;
  margin: 0;
}
.parent-unit-marker input:disabled {
  opacity: 1;
}
.parent-unit-marker span {
  display: grid;
  gap: 3px;
}
.parent-unit-marker strong {
  color: #126841;
}
.parent-unit-marker small {
  color: var(--muted);
  font-weight: 500;
}
.member-units-editor {
  display: grid;
  gap: 18px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #bfcdd5;
  border-radius: 10px;
  background: #f3f7f9;
}
.member-units-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.member-units-heading h2,
.member-units-heading p {
  margin: 0;
}
.member-units-heading .eyebrow {
  margin-bottom: 4px;
}
.member-units-heading > div > p:last-child {
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
}
.member-units-heading .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.member-unit-list {
  display: grid;
  gap: 18px;
}
.member-unit-card {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 2px solid #c5d4dc;
  border-radius: 10px;
  background: #fff;
}
.member-unit-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.member-unit-card-heading > div {
  display: grid;
  gap: 2px;
}
.member-unit-card-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.member-unit-card-heading strong {
  color: var(--navy);
  font-size: 18px;
}
.member-unit-card .contact-editor {
  margin-top: 4px;
}
.menu-order-form {
  max-width: 1380px;
}
.menu-editor-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.menu-editor-group {
  align-content: start;
}
.menu-sortable-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 92px;
  padding: 5px;
  border: 1px dashed #c8d2d8;
  border-radius: 8px;
  background: #fff;
}
.menu-editor-row {
  display: grid;
  grid-template-columns: 38px minmax(180px, 1fr) minmax(190px, .8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 42, 56, .04);
}
.menu-editor-row label {
  min-width: 0;
}
.menu-dependency {
  min-width: 0;
  color: #42535e;
  font-size: 13px;
  line-height: 1.4;
}
.menu-dependency span,
.menu-dependency small {
  display: block;
}
.menu-dependency small {
  margin-top: 3px;
  color: var(--muted);
}
.drag-handle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #b8c4ca;
  border-radius: 6px;
  background: #f4f7f8;
  color: #40545f;
  font: 800 18px/1 system-ui, sans-serif;
  cursor: grab;
  touch-action: none;
}
.drag-handle:active {
  cursor: grabbing;
}
.drag-handle.is-disabled {
  cursor: default;
  color: var(--green);
  background: #e8f5ee;
  border-color: #b9dfcc;
}
.menu-editor-row.is-dragging,
.page-tree-item.is-dragging > .page-tree-row {
  opacity: .5;
  border-color: var(--green);
  box-shadow: 0 8px 22px rgba(22, 124, 82, .18);
}
.menu-empty-hint {
  margin: 0;
  padding: 17px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.menu-sortable-list:has(> [data-menu-row]) > .menu-empty-hint {
  display: none;
}
.home-page-row {
  margin-bottom: 18px;
}
.page-order-editor {
  display: grid;
  gap: 12px;
}
.page-order-status {
  color: #4f606a;
  font-size: 13px;
  text-align: right;
}
.page-tree-sections {
  display: grid;
  gap: 12px;
}
.page-tree-placement-groups {
  display: grid;
  gap: 24px;
}
.page-tree-placement-group {
  padding: 22px;
  border: 2px solid #c8d4da;
  border-radius: 12px;
  background: #f3f6f8;
  box-shadow: 0 6px 18px rgba(20, 42, 56, .05);
}
.page-tree-placement-group.placement-menu { border-top-color: var(--navy); }
.page-tree-placement-group.placement-footer { border-top-color: var(--green); }
.page-tree-placement-heading { margin: 0 0 16px; }
.page-tree-placement-heading h2 { margin: 2px 0 4px; font-size: 23px; }
.page-tree-placement-heading p:last-child { margin: 0; color: var(--muted); }
.page-tree-placement-heading .eyebrow { margin: 0; }
.page-tree-section-body[hidden] { display: none; }
.page-tree-section-body { padding-top: 4px; }
.page-section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
}
.page-section-toggle:hover { background: #fff; }
.page-section-chevron { font-size: 26px; line-height: 1; transition: transform .15s ease; }
.page-tree-section.is-open .page-section-chevron { transform: rotate(90deg); }
.page-section-toggle-copy { display: grid; gap: 1px; min-width: 0; }
.page-section-toggle-copy strong { overflow-wrap: anywhere; font-size: 18px; }
.page-section-toggle-copy small { color: var(--muted); font-size: 12px; font-weight: 700; }
.page-tree-section.is-open .section-tree-root { margin-bottom: 14px; }
.page-tree-section:not(.is-open) .section-tree-root { margin-bottom: -4px; }
}
.page-tree-section {
  padding: 18px;
  scroll-margin-top: 110px;
}
.section-add-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, .45fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
}
.section-add-form[hidden] { display: none; }
.section-add-form label { margin: 0; }
.section-add-form .form-actions { margin: 0; }
.section-tree-root {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -4px -4px 14px;
  padding: 11px 12px;
  border: 1px solid #bdccd4;
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  background: #edf3f6;
}
.section-order-controls { display: flex; gap: 5px; }
.section-order-controls form { margin: 0; }
.section-order-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-color: #9caeb8;
  background: #fff;
  color: var(--navy);
}
.section-tree-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-tree-summary h2 { margin: 0; font-size: 19px; }
.section-tree-summary > a { color: #355b70; font-size: 13px; font-weight: 750; }
.section-settings { position: relative; }
.section-settings > summary { list-style: none; cursor: pointer; }
.section-settings > summary::-webkit-details-marker { display: none; }
.section-settings[open] {
  min-width: 310px;
  padding: 12px;
  border: 1px solid #aebdc5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20,42,56,.14);
}
.section-settings[open] > summary { margin-bottom: 10px; }
.section-settings form { display: grid; gap: 8px; margin: 0 0 8px; }
.section-settings label { margin: 0; font-size: 13px; }
.section-settings small,
.section-protected-note { color: var(--muted); font-size: 12px; }
.section-delete-zone {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ead0d0;
}
.section-delete-zone strong { color: var(--red); font-size: 13px; }
.section-delete-zone form { margin: 0; }
.section-delete-zone .button,
.section-delete-zone button { width: 100%; text-align: center; justify-content: center; }
.page-tree-section-body > .page-tree-root { margin-left: 30px; }
.page-status-badges { display: grid; justify-items: center; gap: 5px; max-width: 280px; }
.page-status-badges .badge { max-width: 280px; text-align: center; line-height: 1.25; }
.page-tree-section.is-focused {
  border-color: #7ab69c;
  box-shadow: 0 0 0 3px rgba(22, 124, 82, .12);
}
.page-tree-section .panel-title {
  margin-bottom: 12px;
}
.page-tree-section .panel-title h2 {
  font-size: 19px;
}
.page-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-tree-root {
  min-height: 44px;
}
.page-tree-item {
  margin: 8px 0 0;
}
.page-tree-row {
  display: grid;
  grid-template-columns: 108px minmax(220px, 1fr) auto minmax(135px, auto) minmax(260px, auto);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dce3e7;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.page-tree-row:hover {
  border-color: #b7c4cb;
  box-shadow: 0 3px 10px rgba(20, 42, 56, .06);
}
.page-tree-row.is-fixed {
  grid-template-columns: 38px minmax(220px, 1fr) auto minmax(135px, auto) minmax(260px, auto);
  border: 0;
  padding: 0;
}
.page-tree-summary {
  min-width: 0;
}
.page-tree-summary strong,
.page-tree-summary small {
  display: block;
}
.page-title-link {
  color: inherit;
  text-decoration-color: #9bacb5;
  text-underline-offset: 3px;
}
.page-title-link:hover,
.page-title-link:focus-visible {
  color: var(--green);
  text-decoration-thickness: 2px;
}
.page-order-controls {
  display: grid;
  grid-template-columns: 36px 28px 28px;
  grid-template-rows: repeat(2, 28px);
  gap: 4px;
  align-items: center;
}
.page-order-controls .page-drag-handle {
  grid-row: 1 / 3;
  height: 60px;
}
.page-direction-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #b8c4ca;
  border-radius: 5px;
  background: #f4f7f8;
  color: #304650;
  font: 800 16px/1 system-ui, sans-serif;
}
.page-direction-button:hover:not(:disabled),
.page-direction-button:focus-visible:not(:disabled) {
  border-color: var(--green);
  background: #e8f5ee;
  color: var(--green);
}
.page-direction-button:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.page-tree-summary small {
  overflow-wrap: anywhere;
  color: var(--muted);
}
.page-tree-row time,
.page-tree-row > span:not(.badge):not(.drag-handle) {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .section-add-form { grid-template-columns: 1fr; }
  .section-tree-root { grid-template-columns: auto minmax(0, 1fr); }
  .section-settings,
  .section-protected-note { grid-column: 1 / -1; }
  .page-tree-section-body > .page-tree-root { margin-left: 14px; }
}
.page-tree-actions {
  justify-content: flex-end;
}
.page-tree-actions .button,
.page-tree-actions button {
  white-space: nowrap;
}
.page-tree-children {
  margin-left: 28px;
  padding-left: 20px;
  border-left: 2px solid #dce5e9;
}
.page-tree-empty {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px dashed #c8d2d8;
  border-radius: 7px;
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.page-order-editor.is-sorting .page-tree-list {
  min-height: 24px;
}
@media (max-width: 760px) {
  .metric-editor-table label {
    grid-template-columns: 1fr;
  }
  .metric-editor-table label > span {
    padding: 0 0 5px;
  }
  .metric-editor-table small {
    grid-column: 1;
  }
  .date-time-picker {
    grid-template-columns: 1fr;
  }
  .custom-picker-popover {
    padding: 12px;
  }
  .custom-picker-footer {
    justify-content: stretch;
  }
  .custom-picker-footer button {
    flex: 1 1 auto;
  }
  .contact-editor-heading,
  .contact-editor-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .contact-editor-heading .button,
  .contact-editor-row .button {
    width: 100%;
  }
  .member-units-heading,
  .member-unit-card-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .member-units-heading .button,
  .member-unit-card-heading .button {
    width: 100%;
    white-space: normal;
  }
  .menu-editor-columns {
    grid-template-columns: 1fr;
  }
  .menu-editor-row {
    grid-template-columns: 38px 1fr;
  }
  .menu-editor-row label,
  .menu-dependency {
    grid-column: 2;
  }
  .menu-editor-row .button {
    grid-column: 1 / -1;
  }
  .page-tree-row {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
  }
  .page-tree-row.is-fixed {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .page-tree-row > .badge,
  .page-tree-row > time,
  .page-tree-row > span:not(.drag-handle),
  .page-tree-actions {
    grid-column: 2;
  }
  .page-tree-actions {
    justify-content: flex-start;
  }
  .page-tree-children {
    margin-left: 17px;
    padding-left: 13px;
  }
}
.contract-status{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1.5rem}.contract-body{white-space:pre-wrap;max-width:82ch;line-height:1.7}.domain-help{padding:1rem;background:#f5f8fb;border-left:4px solid #1d5d85}.domain-help p{margin:.35rem 0 0}
