body.tenant-admin-page{margin:0;min-height:100vh;background:#f4efe7;color:#171717}.tenant-admin-public-header{background:var(--tenant-topbar-bg,#f7f2e8)!important;color:var(--tenant-topbar-text,#111)!important}.tenant-admin-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:calc(100vh - 150px)}.tenant-admin-sidebar{padding:24px 18px;background:#111;color:#fff;border-right:1px solid rgba(255,255,255,.08)}.tenant-admin-sidebar-title{display:grid;gap:4px;margin-bottom:22px}.tenant-admin-sidebar-title strong{font-size:1.5rem;letter-spacing:-.04em}.tenant-admin-sidebar-title span{color:rgba(255,255,255,.68);font-size:.92rem}.tenant-admin-sidebar nav{display:grid;gap:7px}.tenant-admin-sidebar a{display:block;padding:10px 12px;border-radius:11px;color:#fff;text-decoration:none}.tenant-admin-sidebar a:hover,.tenant-admin-sidebar a.active{background:rgba(255,255,255,.14)}.tenant-admin-main{min-width:0;padding:28px}.tenant-admin-main-header{display:flex;justify-content:space-between;gap:16px;max-width:1200px;margin:0 auto 18px}.tenant-admin-panel{max-width:1200px;margin:0 auto;padding:32px;border:1px solid rgba(0,0,0,.10);border-radius:24px;background:rgba(255,255,255,.92);box-shadow:0 24px 70px rgba(0,0,0,.06);overflow-x:auto}.tenant-admin-panel h1{margin:0 0 24px;font-size:clamp(2rem,5vw,4rem);line-height:.92;letter-spacing:-.08em}.dashboard-grid,.admin-card-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:18px!important}.dashboard-card,.admin-card{display:block!important;position:static!important;min-height:124px!important;padding:22px!important;border:1px solid rgba(0,0,0,.10)!important;border-radius:18px!important;background:#fff!important;color:#171717!important;text-decoration:none!important;box-shadow:0 10px 28px rgba(0,0,0,.06)!important}.dashboard-card h3,.dashboard-card p,.admin-card h3,.admin-card p{position:static!important;margin-left:0!important}.admin-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 18px;padding:16px;border-radius:16px;background:#fff;border:1px solid rgba(0,0,0,.08)}.admin-form,.tenant-admin-panel form{display:grid;gap:18px}.admin-form-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:18px!important}.admin-form-grid.three{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}.admin-panel,fieldset{min-width:0!important;padding:20px!important;border:1px solid rgba(0,0,0,.12)!important;border-radius:18px!important;background:#fff!important}.admin-panel-wide{grid-column:1 / -1!important}.admin-form label,.admin-panel label,fieldset label,.admin-toolbar label{display:grid!important;gap:8px!important;font-weight:800!important}.admin-form input,.admin-form select,.admin-form textarea,.admin-panel input,.admin-panel select,.admin-panel textarea,fieldset input,fieldset select,fieldset textarea,.admin-toolbar input,.admin-toolbar select{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:12px!important;border:1px solid #cfc7ba!important;border-radius:12px!important;background:#fff!important;font:inherit!important}.admin-form textarea,.admin-panel textarea,fieldset textarea{min-height:150px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important}.admin-form button,.admin-panel button,fieldset button,.tenant-admin-panel button,.admin-toolbar button{padding:12px 18px!important;border:0!important;border-radius:999px!important;background:#111!important;color:#fff!important;font-weight:900!important;cursor:pointer!important}.admin-notice,.notice{padding:12px 16px!important;border-radius:12px!important;background:#eef8ee!important;border:1px solid #99c999!important}.admin-error,.error{padding:12px 16px!important;border-radius:12px!important;background:#fff0f0!important;border:1px solid #d88!important}.admin-table-wrap{width:100%!important;overflow-x:auto!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:16px!important;background:#fff!important}.admin-table,.audit-table,.tenant-admin-panel table{width:100%!important;min-width:860px!important;border-collapse:collapse!important;table-layout:auto!important}.admin-table th,.admin-table td,.audit-table th,.audit-table td,.tenant-admin-panel th,.tenant-admin-panel td{padding:12px!important;border-bottom:1px solid rgba(0,0,0,.08)!important;vertical-align:top!important;text-align:left!important;white-space:normal!important}.admin-table th,.audit-table th,.tenant-admin-panel th{background:#efe9df!important;text-transform:uppercase!important;font-size:.78rem!important;letter-spacing:.08em!important}.tenant-admin-footer{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;border-top:1px solid rgba(0,0,0,.08)}.tenant-admin-footer nav{display:flex;gap:14px;flex-wrap:wrap}@media(max-width:900px){.tenant-admin-shell{grid-template-columns:1fr}.tenant-admin-sidebar{border-right:0}.tenant-admin-main{padding:16px}.tenant-admin-panel{padding:20px}}

/* Inline-admin conversion safety layer. */
.tenant-admin-panel > nav:first-child,
.tenant-admin-panel > p:first-child {
  margin-top: 0;
}

.tenant-admin-panel .admin-shell,
.tenant-admin-panel main.admin-shell {
  display: block !important;
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.tenant-admin-panel header,
.tenant-admin-panel .admin-header {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.tenant-admin-panel .admin-shell > * {
  max-width: 100% !important;
}

.tenant-admin-panel a[href="/admin"] {
  font-weight: 800;
}

/* End inline-admin conversion safety layer. */

.tenant-admin-main-header:empty{display:none!important}.tenant-admin-main-header{justify-content:flex-end!important}

.admin-billing-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-bottom:1rem}.billing-price{font-size:2rem;font-weight:950;margin:.25rem 0 1rem}.admin-button{display:inline-flex;padding:.75rem 1rem;border-radius:999px;background:#111;color:#fff;text-decoration:none;font-weight:900}

/* Larger admin logos and platform/help shell adjustments. */
.platform-admin-header .platform-admin-logo,
.platform-help-header .platform-help-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.platform-admin-page .tenant-admin-panel,
.platform-help-page .tenant-admin-panel {
  max-width: 1240px;
}

/* End larger admin logos and platform/help shell adjustments. */

/* Route/UI hotfix: admin logo and dashboard cards. */
.tenant-admin-public-header .brand img,
.tenant-admin-public-header .logo-brand img,
.site-header.tenant-admin-public-header img {
    max-height: 72px;
    width: auto;
}

.admin-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.25rem;
}

.admin-card {
    display: block;
    padding: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.admin-card:hover,
.admin-card:focus {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.24);
}

.admin-card h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.admin-card p {
    margin: 0;
}

.inline-form {
    display: inline;
}

.inline-form button {
    font: inherit;
}


/* Tenant visual correction shared with public header. */
.tenant-admin-public-header{isolation:isolate;background-color:var(--topbar-bg-overlay,var(--tenant-topbar-bg,rgba(255,248,236,.86)))!important;background-image:var(--topbar-bg-image);background-position:center;background-size:cover;background-repeat:no-repeat}.tenant-admin-public-header::before{z-index:0;background-color:var(--topbar-bg-overlay,rgba(255,248,236,.86));background-image:none}.tenant-admin-public-header>*{position:relative;z-index:1}.tenant-admin-panel{background-color:var(--content-bg-overlay,rgba(255,250,240,0))!important;box-shadow:0 20px 60px rgba(0,0,0,calc(var(--content-bg-opacity,0) * .10))}
/* End tenant visual correction shared with public header. */



/* Tenant typography preview repair. Keep font previews readable and make live
   changes visible immediately when the select or size field changes. */
.tenant-admin-panel .tenant-typography-grid .font-picker-preview,
.tenant-typography-grid .font-picker-preview {
  display: block !important;
  min-height: 2.25rem !important;
  margin-top: 0.35rem !important;
  padding: 0.55rem 0.7rem !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #1f1a14 !important;
  line-height: 1.25 !important;
}

.tenant-admin-panel .tenant-typography-grid .tenant-font-picker,
.tenant-typography-grid .tenant-font-picker {
  width: 100% !important;
}

/* End tenant typography preview repair. */


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Platform/tenant separation and directory thumbnail picker. */
.platform-admin-page {
    --tenant-topbar-bg: #111827;
    --tenant-topbar-text: #f8efe1;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 177, 72, 0.22), transparent 34rem),
        linear-gradient(135deg, #111827 0%, #1f2937 34%, #f2eadc 34%, #f7f2e8 100%) !important;
}

.platform-admin-header {
    border-bottom: 4px solid #f0a83a !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18) !important;
}

.platform-admin-logo img {
    max-height: 54px !important;
    width: auto !important;
}

.platform-admin-context {
    display: grid;
    gap: 0.1rem;
    margin-right: auto;
    color: var(--tenant-topbar-text, #f8efe1);
}

.platform-admin-context strong {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.platform-admin-context span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.platform-admin-sidebar {
    background: #101827 !important;
    border-right: 5px solid #f0a83a !important;
}

.platform-admin-panel {
    border-top: 6px solid #f0a83a !important;
}

.directory-thumbnail-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.directory-thumbnail-option {
    display: grid !important;
    gap: 0.55rem !important;
    align-content: start;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.directory-thumbnail-option input {
    width: auto !important;
}

.directory-thumbnail-option img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #f6f1e9;
}

.directory-thumbnail-option:has(input:checked) {
    outline: 3px solid #111;
    border-color: #111;
}

.directory-thumbnail-option-none {
    min-height: 130px;
    place-content: center;
    text-align: center;
    background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f6f1e9 10px, #f6f1e9 20px);
}

/* End platform/tenant separation and directory thumbnail picker. */

/* Platform and tenant admin UI enhancements. */
.admin-color-field { display: inline-flex; align-items: center; gap: .5rem; width: 100%; }
.admin-color-field > input:not(.admin-color-picker) { flex: 1 1 auto; }
.admin-color-picker { width: 3rem; min-width: 3rem; height: 2.25rem; padding: 0; border: 1px solid #bbb; border-radius: .35rem; background: #fff; }
.admin-color-swatch { width: 2.25rem; height: 2.25rem; border: 1px solid #999; border-radius: .35rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.admin-bar-chart { display: grid; gap: .5rem; margin: 1rem 0; }
.admin-bar-row { display: grid; grid-template-columns: minmax(5rem, 11rem) 1fr 4rem; gap: .75rem; align-items: center; }
.admin-bar-track { min-height: 1rem; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; }
.admin-bar-fill { display: block; min-height: 1rem; background: currentColor; border-radius: 999px; opacity: .72; }
.admin-section-artwork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .75rem; margin: 1rem 0; }
.admin-section-artwork-card { border: 1px solid rgba(0,0,0,.16); border-radius: .5rem; padding: .5rem; background: #fff; }
.admin-section-artwork-card img { width: 100%; height: 110px; object-fit: contain; background: #f5f2ea; display: block; }
.admin-drag-handle { cursor: grab; font-weight: 700; }
.directory-card-thumb img { width: var(--directory-thumb-size, 180px); height: var(--directory-thumb-size, 180px); object-fit: cover; }
.platform-admin-top-link { font-weight: 700; }
.g-recaptcha { margin: 1rem 0; }


/* Tenant visual correction shared with public header. */
.tenant-admin-public-header{isolation:isolate;background-color:var(--topbar-bg-overlay,var(--tenant-topbar-bg,rgba(255,248,236,.86)))!important;background-image:var(--topbar-bg-image);background-position:center;background-size:cover;background-repeat:no-repeat}.tenant-admin-public-header::before{z-index:0;background-color:var(--topbar-bg-overlay,rgba(255,248,236,.86));background-image:none}.tenant-admin-public-header>*{position:relative;z-index:1}.tenant-admin-panel{background-color:var(--content-bg-overlay,rgba(255,250,240,0))!important;box-shadow:0 20px 60px rgba(0,0,0,calc(var(--content-bg-opacity,0) * .10))}
/* End tenant visual correction shared with public header. */


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant admin readability and site-image picker controls. */
.tenant-admin-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    line-height: 1.05 !important;
    letter-spacing: normal !important;
}

.tenant-admin-brand span {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.28rem 0.55rem !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.12) !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.site-image-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin: 0.75rem 0 1rem;
}

.site-image-picker-card {
    display: grid !important;
    gap: 0.45rem !important;
    align-content: start;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.site-image-picker-card input {
    width: auto !important;
}

.site-image-picker-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #f6f1e9;
}


/* Tenant visual correction shared with public header. */
.tenant-admin-public-header{isolation:isolate;background-color:var(--topbar-bg-overlay,var(--tenant-topbar-bg,rgba(255,248,236,.86)))!important;background-image:var(--topbar-bg-image);background-position:center;background-size:cover;background-repeat:no-repeat}.tenant-admin-public-header::before{z-index:0;background-color:var(--topbar-bg-overlay,rgba(255,248,236,.86));background-image:none}.tenant-admin-public-header>*{position:relative;z-index:1}.tenant-admin-panel{background-color:var(--content-bg-overlay,rgba(255,250,240,0))!important;box-shadow:0 20px 60px rgba(0,0,0,calc(var(--content-bg-opacity,0) * .10))}
/* End tenant visual correction shared with public header. */


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}



/* Tenant-admin surface variables shared with public tenant pages. */
.tenant-admin-public-header {
    background-color: var(--tenant-topbar-bg, var(--topbar-bg, #f7f2e8)) !important;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, calc(1 - var(--topbar-bg-opacity, 0.86))) !important;
}

.tenant-admin-sidebar {
    background-color: var(--menu-bg, #111) !important;
    background-image: var(--menu-bg-image) !important;
    background-position: center !important;
    background-size: cover !important;
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, calc(1 - var(--menu-bg-opacity, 0.92))) !important;
}

.tenant-admin-main {
    background-color: var(--content-bg, #f4efe7) !important;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, calc(1 - var(--content-bg-opacity, 0.72))) !important;
}

.tenant-admin-panel {
    background-color: var(--content-bg, rgba(255, 255, 255, 0.92)) !important;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, calc(1 - var(--content-bg-opacity, 0.92))), 0 24px 70px rgba(0,0,0,.06) !important;
}

/* Hide legacy nested admin-shell headings so pages read as one title, not a breadcrumb echo chamber. */
.tenant-admin-panel > h1 + main.admin-shell > h1,
.tenant-admin-panel > h1 + .admin-shell > h1 {
    display: none !important;
}

/* End tenant-admin surface variables. */


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Tenant admin settings must preview the same page surfaces as the public site. */
body.tenant-admin-page {
  color: var(--text-color, #1f1a14) !important;
  background-color: var(--bg, #f7f2e8) !important;
}

.site-header.tenant-admin-public-header {
  background-color: var(--topbar-bg-overlay, var(--tenant-topbar-bg, rgba(255, 248, 236, 0.86))) !important;
  background-image: var(--topbar-bg-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  box-shadow: var(--tenant-header-shadow, none) !important;
}

.site-header.tenant-admin-public-header nav {
  background-color: var(--menu-bg-overlay, rgba(255, 248, 236, 0.82)) !important;
  background-image: var(--menu-bg-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.55rem !important;
}

.tenant-admin-main {
  background-color: var(--content-bg-overlay, rgba(255, 250, 240, 0)) !important;
}

.tenant-admin-panel {
  color: var(--text-color, #1f1a14) !important;
  background-color: var(--content-bg-overlay, rgba(255, 250, 240, 0)) !important;
}

.tenant-admin-panel h1,
.tenant-admin-panel h2,
.tenant-admin-panel h3,
.tenant-admin-panel legend {
  color: var(--text-color, #1f1a14) !important;
  background-color: var(--heading-bg-overlay, rgba(255, 248, 236, 0.72)) !important;
  box-shadow: 0.18em 0 0 var(--heading-bg-overlay, rgba(255, 248, 236, 0.72)), -0.18em 0 0 var(--heading-bg-overlay, rgba(255, 248, 236, 0.72)) !important;
}

.tenant-settings-form fieldset,
.tenant-admin-panel .admin-panel,
.tenant-admin-panel .admin-toolbar,
.tenant-admin-panel .admin-table-wrap {
  background-color: var(--text-bg-overlay, rgba(255, 247, 232, 0.72)) !important;
}

/* End tenant admin surface preview. */

/* Tenant admin visual authority repair. */
body.tenant-admin-page {
  color: var(--text-color, #1f1a14) !important;
  background-color: var(--bg, #f7f2e8) !important;
}

.site-header.tenant-admin-public-header {
  background-color: var(--topbar-bg-overlay, var(--tenant-topbar-bg, rgba(255, 248, 236, 0.86))) !important;
  background-image: var(--topbar-bg-image) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: var(--tenant-header-shadow, none) !important;
}

.site-header.tenant-admin-public-header nav {
  background-color: var(--menu-bg-overlay, transparent) !important;
  background-image: var(--menu-bg-image) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border-radius: var(--menu-panel-radius, 0) !important;
  box-shadow: var(--menu-panel-shadow, none) !important;
  padding: var(--menu-panel-padding, 0) !important;
}

.tenant-admin-main,
.tenant-admin-panel {
  color: var(--text-color, #1f1a14) !important;
  background-color: var(--content-bg-overlay, rgba(255, 250, 240, 0)) !important;
}

.tenant-admin-panel h1,
.tenant-admin-panel h2,
.tenant-admin-panel h3,
.tenant-admin-panel legend {
  color: var(--text-color, #1f1a14) !important;
  background-color: var(--heading-bg-overlay, transparent) !important;
  box-shadow: 0.18em 0 0 var(--heading-bg-overlay, transparent), -0.18em 0 0 var(--heading-bg-overlay, transparent) !important;
}

.tenant-admin-panel label,
.tenant-admin-panel p,
.tenant-admin-panel td,
.tenant-admin-panel th {
  color: var(--text-color, #1f1a14) !important;
}

.tenant-settings-form fieldset,
.tenant-admin-panel .admin-panel,
.tenant-admin-panel .admin-toolbar,
.tenant-admin-panel .admin-table-wrap {
  background-color: var(--text-bg-overlay, rgba(255, 247, 232, 0.72)) !important;
}

/* End tenant admin visual authority repair. */


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant admin header buttons match link styling. */
.site-header.tenant-admin-public-header nav form {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.site-header.tenant-admin-public-header nav .link-button {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  padding: 0.65rem 1rem !important;
  border-radius: 999px !important;
  font: inherit !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Dashboard signal panels shared by platform and tenant admin home pages. */
.dashboard-metric-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:16px!important;margin:0 0 22px!important}.dashboard-metric-card{display:grid!important;gap:8px!important;min-height:132px!important;padding:20px!important;border:1px solid rgba(0,0,0,.10)!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(250,245,236,.94))!important;color:#171717!important;text-decoration:none!important;box-shadow:0 14px 34px rgba(0,0,0,.07)!important}.dashboard-metric-card:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(0,0,0,.10)!important}.dashboard-metric-card span{font-size:.78rem!important;line-height:1.2!important;text-transform:uppercase!important;letter-spacing:.09em!important;color:#716858!important;font-weight:900!important}.dashboard-metric-card strong{font-size:clamp(1.75rem,4vw,2.9rem)!important;line-height:.95!important;letter-spacing:-.06em!important}.dashboard-metric-card small{font-size:.9rem!important;line-height:1.35!important;color:#5d5549!important}.dashboard-split-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;gap:18px!important;margin:0 0 22px!important}.dashboard-section-head{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:center!important;margin:0 0 12px!important}.dashboard-section-head h2{margin:0!important;font-size:1.35rem!important;letter-spacing:-.03em!important}.dashboard-section-head a{font-weight:900!important;color:var(--primary,#111)!important}.dashboard-action-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important}.dashboard-plan-panel{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:18px!important;margin:0 0 22px!important}.dashboard-plan-panel h2{margin:.15rem 0!important;font-size:clamp(1.35rem,3vw,2.2rem)!important;letter-spacing:-.05em!important}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Dashboard and tenant billing override refinements. */
.admin-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stacked-form {
    display: grid;
    gap: 1rem;
}

.admin-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(120, 95, 60, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-checkbox-card input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.admin-checkbox-card small {
    display: block;
    margin-top: 0.25rem;
    color: var(--af-muted, #665f55);
    line-height: 1.4;
}

.admin-billing-override-panel button {
    min-width: 11rem;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant admin sidebar readability: default new-site menu text to dark on light menu panels. */
.site-header.tenant-admin-public-header nav {
  color: var(--menu-text-color, var(--text-color, #1f1a14)) !important;
}

.site-header.tenant-admin-public-header nav a,
.site-header.tenant-admin-public-header nav .link-button {
  color: var(--menu-text-color, var(--text-color, #1f1a14)) !important;
  text-shadow: none !important;
}

/* Keep the left tenant-admin application sidebar intentionally dark. */
.tenant-admin-sidebar,
.tenant-admin-sidebar a,
.tenant-admin-brand {
  color: #fff !important;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant color palette buttons for site settings. */
.tenant-palette-toolbar {
  display: grid !important;
  gap: 0.9rem !important;
  margin: 0 0 1.25rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.74) !important;
}

.tenant-palette-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 0.85rem !important;
}

.tenant-palette-button {
  display: grid !important;
  gap: 0.5rem !important;
  align-content: start !important;
  min-height: 132px !important;
  padding: 0.9rem !important;
  border: 2px solid color-mix(in srgb, var(--palette-button-accent, #111) 62%, transparent) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--palette-button-accent, #c9a85f) 22%, transparent), transparent 58%),
    var(--palette-button-bg, #fff) !important;
  color: var(--palette-button-text, #1f1a14) !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
  transition: transform 120ms ease, box-shadow 120ms ease, outline-color 120ms ease !important;
}

.tenant-palette-button:hover,
.tenant-palette-button:focus,
.tenant-palette-button[aria-pressed="true"] {
  border-color: var(--palette-button-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--palette-button-accent, #111) 28%, transparent) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(-1px) !important;
}

.tenant-palette-button-applied {
  outline: 4px solid var(--palette-button-accent, #111) !important;
}

.tenant-palette-button::after {
  content: attr(data-palette-tone) !important;
  display: inline-flex !important;
  justify-self: start !important;
  padding: 0.18rem 0.48rem !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--palette-button-accent, #111) 22%, transparent) !important;
  color: var(--palette-button-text, #1f1a14) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.tenant-palette-name {
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.tenant-palette-swatches {
  display: flex !important;
  gap: 0.35rem !important;
  flex-wrap: wrap !important;
}

.tenant-palette-swatch {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  background: var(--palette-swatch) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36) !important;
}

.tenant-palette-description {
  color: color-mix(in srgb, var(--palette-button-text, #1f1a14) 72%, transparent) !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}



/* Settings pages repeat the primary save action below each section so long forms
   can be saved without scrolling back to the bottom. */
.settings-section-actions {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 8px;
}

/* Tenant palette contrast repair for the public header inside tenant admin. */
.site-header.tenant-admin-public-header,
.site-header.tenant-admin-public-header .brand,
.site-header.tenant-admin-public-header .tenant-admin-brand {
  color: var(--tenant-topbar-text, var(--text-color, #1f1a14)) !important;
}

.site-header.tenant-admin-public-header nav,
.site-header.tenant-admin-public-header nav a,
.site-header.tenant-admin-public-header nav .link-button {
  color: var(--menu-text-color, var(--tenant-topbar-text, var(--text-color, #1f1a14))) !important;
}

.site-header.tenant-admin-public-header nav a:hover,
.site-header.tenant-admin-public-header nav a:focus-visible,
.site-header.tenant-admin-public-header nav .link-button:hover,
.site-header.tenant-admin-public-header nav .link-button:focus-visible {
  background: color-mix(in srgb, currentColor 14%, transparent) !important;
}

.tenant-palette-preview {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto 1fr !important;
  overflow: hidden !important;
  min-height: 4.5rem !important;
  border-radius: 12px !important;
  border: 1px solid color-mix(in srgb, var(--palette-button-text, #111) 20%, transparent) !important;
  background: var(--palette-button-page, var(--palette-button-bg, #fff)) !important;
}

.tenant-palette-preview-topbar {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 1.65rem !important;
  padding: 0.15rem 0.45rem !important;
  background: var(--palette-button-topbar, var(--palette-button-bg, #fff)) !important;
  color: var(--palette-button-topbar-text, var(--palette-button-text, #111)) !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}

.tenant-palette-preview-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0.45rem !important;
  border-radius: 999px !important;
  background: var(--palette-button-menu, var(--palette-button-bg, #fff)) !important;
  color: var(--palette-button-menu-text, var(--palette-button-text, #111)) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.tenant-palette-preview-page {
  margin: 0.45rem 0.45rem 0.45rem 0 !important;
  border-radius: 10px !important;
  background: var(--palette-button-surface, var(--palette-button-page, #fff)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--palette-button-text, #111) 12%, transparent) !important;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant palette buttons must beat the generic tenant-admin button rule above.
   The generic rule uses .tenant-admin-panel button with !important, so these
   selectors intentionally carry higher specificity and keep palette buttons
   visually representative of their palette instead of black admin pills. */
.tenant-admin-panel .tenant-palette-button,
.tenant-admin-panel fieldset .tenant-palette-button,
.tenant-admin-panel .admin-panel .tenant-palette-button {
  display: grid !important;
  gap: 0.5rem !important;
  align-content: start !important;
  min-height: 132px !important;
  padding: 0.9rem !important;
  border: 2px solid color-mix(in srgb, var(--palette-button-accent, #111) 62%, transparent) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--palette-button-accent, #c9a85f) 22%, transparent), transparent 58%),
    var(--palette-button-bg, #fff) !important;
  color: var(--palette-button-text, #1f1a14) !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
  transition: transform 120ms ease, box-shadow 120ms ease, outline-color 120ms ease !important;
}

.tenant-admin-panel .tenant-palette-button:hover,
.tenant-admin-panel .tenant-palette-button:focus,
.tenant-admin-panel .tenant-palette-button[aria-pressed="true"] {
  border-color: var(--palette-button-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--palette-button-accent, #111) 28%, transparent) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(-1px) !important;
}

.tenant-admin-panel .tenant-palette-button-applied {
  outline: 4px solid var(--palette-button-accent, #111) !important;
}

.tenant-admin-panel .tenant-palette-button::after {
  background: color-mix(in srgb, var(--palette-button-accent, #111) 22%, transparent) !important;
  color: var(--palette-button-text, #1f1a14) !important;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant typography controls. Font pickers use local/system font stacks only and
   show a preview sample beside each select so admins can see the tone before
   saving the full settings form. */
.tenant-typography-grid .tenant-font-picker {
  width: 100% !important;
}

.tenant-typography-grid .font-picker-preview {
  display: block;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f1a14;
}

/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Tenant typography size controls use sliders and numeric fields instead of
   raw CSS text boxes so admins can make visible adjustments without knowing
   clamp(), rem, or other CSS sizing syntax. */
.tenant-admin-panel .tenant-font-size-control {
  display: grid !important;
  gap: 0.45rem !important;
  align-content: start !important;
}

.tenant-admin-panel .tenant-font-size-label {
  font-weight: 700 !important;
}

.tenant-admin-panel .tenant-font-size-row {
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) 5.25rem auto !important;
  gap: 0.55rem !important;
  align-items: center !important;
}

.tenant-admin-panel input.tenant-font-size-range[type="range"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  width: 100% !important;
  height: 2rem !important;
  min-height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  cursor: ew-resize !important;
  pointer-events: auto !important;
}

.tenant-admin-panel input.tenant-font-size-number[type="number"] {
  width: 100% !important;
}

.tenant-admin-panel .tenant-font-size-unit {
  color: #5c5145 !important;
  font-weight: 700 !important;
}

.tenant-admin-panel .tenant-font-size-control .admin-help {
  margin: 0 !important;
}


/* Tenant typography preset buttons mirror color palettes: choose a preset, then tweak individual controls. */
.tenant-admin-panel .tenant-typography-presets,
.tenant-typography-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.35rem;
}

.tenant-admin-panel .tenant-typography-preset-button,
.tenant-admin-panel fieldset .tenant-typography-preset-button,
.tenant-admin-panel .admin-panel .tenant-typography-preset-button,
.tenant-typography-preset-button {
  display: grid !important;
  gap: 0.45rem !important;
  min-height: 160px !important;
  padding: 0.95rem !important;
  border: 2px solid color-mix(in srgb, var(--typography-preset-accent, #111) 56%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--typography-preset-accent, #111) 16%, transparent), transparent 62%),
    #fffaf4 !important;
  color: #191714 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tenant-admin-panel .tenant-typography-preset-button:hover,
.tenant-admin-panel .tenant-typography-preset-button:focus,
.tenant-admin-panel .tenant-typography-preset-button[aria-pressed="true"],
.tenant-typography-preset-button:hover,
.tenant-typography-preset-button:focus,
.tenant-typography-preset-button[aria-pressed="true"] {
  border-color: var(--typography-preset-accent, #111) !important;
  outline: 3px solid color-mix(in srgb, var(--typography-preset-accent, #111) 24%, transparent) !important;
  transform: translateY(-1px) !important;
}

.tenant-typography-preset-applied {
  outline: 4px solid var(--typography-preset-accent, #111) !important;
}

.tenant-typography-preset-button .typography-preset-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tenant-typography-preset-button .typography-preset-tone {
  justify-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--typography-preset-accent, #111) 18%, #fff);
  font-size: 0.76rem;
  font-weight: 700;
}

.tenant-typography-preset-button .typography-preset-heading {
  font-family: var(--typography-preset-heading, serif);
  font-size: 1.65rem;
  line-height: 1;
}

.tenant-typography-preset-button .typography-preset-body {
  font-family: var(--typography-preset-body, sans-serif);
  font-size: 0.98rem;
  line-height: 1.35;
}

.tenant-typography-preset-button .typography-preset-description {
  color: rgba(25, 23, 20, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}


/* Tenant settings subpages keep the growing settings area navigable without
   hiding save behavior. Each subpage remains a normal form post. */
.tenant-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 26, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tenant-settings-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(31, 26, 20, 0.18);
  border-radius: 999px;
  color: #2a241d;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.tenant-settings-subnav-link:hover,
.tenant-settings-subnav-link:focus {
  border-color: rgba(31, 26, 20, 0.38);
  background: #fffaf0;
  color: #111;
}

.tenant-settings-subnav-link.is-active,
.tenant-settings-subnav-link[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .tenant-settings-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tenant-settings-subnav-link {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Tenant dashboard actions intentionally match Portfolio Sections action cards. */
.tenant-admin-action-button{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:.35rem!important;padding:1rem 1.1rem!important;border-radius:14px!important;text-decoration:none!important;min-height:104px!important}.tenant-admin-action-button strong{font-size:1rem!important}.tenant-admin-action-button span{font-size:.9rem!important;font-weight:500!important;line-height:1.35!important;opacity:.85!important}
/* Shared responsive action-card grid for tenant admin workbenches. */
.tenant-admin-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1.25rem 0 1.5rem}

/* Tenant admin sidebar primary action follows the active tenant palette. */
.tenant-admin-sidebar-upload {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem !important;
  border: 2px solid var(--accent, #c9a85f);
  border-radius: 999px !important;
  background: var(--tenant-topbar-bg, var(--primary, #111827)) !important;
  color: var(--tenant-topbar-text, #f8efe1) !important;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.tenant-admin-sidebar-upload:hover,
.tenant-admin-sidebar-upload:focus-visible {
  background: color-mix(
    in srgb,
    var(--tenant-topbar-bg, var(--primary, #111827)) 86%,
    var(--accent, #c9a85f)
  ) !important;
  border-color: color-mix(in srgb, var(--accent, #c9a85f) 78%, #fff);
  color: var(--tenant-topbar-text, #f8efe1) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.tenant-admin-sidebar-upload:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, #c9a85f) 72%, #fff);
  outline-offset: 3px;
}

.tenant-admin-sidebar-upload span {
  font-size: 1.25rem;
  line-height: 1;
}


/* Platform logo intrinsic-ratio repair. */
.platform-admin-topbar > .platform-admin-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    max-width: min(220px, 34vw);
}

.platform-admin-topbar > .platform-admin-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 54px !important;
    object-fit: contain;
    aspect-ratio: auto;
}


.site-image-picker-shell {
    margin: .5rem 0 1rem;
}

.site-image-picker-summary {
    display: grid;
    grid-template-columns: auto 5.25rem minmax(8rem, 1fr) auto;
    gap: .75rem;
    align-items: center;
    width: min(100%, 38rem);
    border: 1px solid rgba(120, 101, 74, .35);
    border-radius: .75rem;
    padding: .55rem .75rem;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
}

.site-image-picker-summary img,
.site-image-picker-summary .site-image-picker-empty {
    width: 5.25rem;
    height: 3.75rem;
    object-fit: cover;
    border-radius: .45rem;
    background: rgba(0, 0, 0, .06);
}

.site-image-picker-summary em {
    font-style: normal;
    text-decoration: underline;
}

.site-image-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: .75rem;
    margin: .75rem 0 1rem;
}

.site-image-picker-card {
    display: flex;
    min-height: 9.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    border: 1px solid rgba(120, 101, 74, .35);
    border-radius: .75rem;
    padding: .6rem;
    background: rgba(255, 255, 255, .75);
    cursor: pointer;
    text-align: center;
}

.site-image-picker-card:has(input:checked) {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.site-image-picker-card input {
    align-self: flex-start;
}

.site-image-picker-card img,
.site-image-picker-card .site-image-picker-empty {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: .45rem;
    background: rgba(0, 0, 0, .06);
}

.site-image-picker-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, .65);
    font-size: .85rem;
}

.site-image-picker-card span {
    font-size: .85rem;
    line-height: 1.2;
}

.site-image-picker-shell {
    margin: .5rem 0 1rem;
}

.site-image-picker-summary {
    display: grid;
    grid-template-columns: auto 5.25rem minmax(8rem, 1fr) auto;
    gap: .75rem;
    align-items: center;
    width: min(100%, 38rem);
    border: 1px solid rgba(120, 101, 74, .35);
    border-radius: .75rem;
    padding: .55rem .75rem;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
}

.site-image-picker-summary.is-draft {
    border-style: dashed;
}

.site-image-picker-summary img,
.site-image-picker-summary .site-image-picker-empty,
.site-image-picker-summary .site-image-picker-draft-warning {
    width: 5.25rem;
    min-height: 3.75rem;
}

.site-image-picker-summary img {
    height: 3.75rem;
    object-fit: cover;
    border-radius: .45rem;
    background: rgba(0, 0, 0, .06);
}

.site-image-picker-summary em {
    font-style: normal;
    text-decoration: underline;
}

.site-image-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: .75rem;
    margin: .75rem 0 1rem;
}

.site-image-picker-card {
    display: flex;
    min-height: 9.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    border: 1px solid rgba(120, 101, 74, .35);
    border-radius: .75rem;
    padding: .6rem;
    background: rgba(255, 255, 255, .75);
    cursor: pointer;
    text-align: center;
}

.site-image-picker-card.is-draft {
    border-style: dashed;
}

.site-image-picker-card:has(input:checked) {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.site-image-picker-card input {
    align-self: flex-start;
}

.site-image-picker-card img,
.site-image-picker-card .site-image-picker-empty,
.site-image-picker-card .site-image-picker-draft-warning {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: .45rem;
    background: rgba(0, 0, 0, .06);
}

.site-image-picker-empty,
.site-image-picker-draft-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, .65);
    font-size: .85rem;
    line-height: 1.15;
    text-align: center;
}

.site-image-picker-draft-warning {
    padding: .45rem;
    color: rgba(0, 0, 0, .82);
    font-weight: 700;
}

.site-image-picker-card span {
    font-size: .85rem;
    line-height: 1.2;
}

.site-image-picker-change-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: .45rem .8rem;
    background: rgba(0, 0, 0, .06);
    font-weight: 700;
    text-decoration: none;
}

.site-image-picker-summary:hover .site-image-picker-change-button,
.site-image-picker-summary:focus .site-image-picker-change-button {
    background: rgba(0, 0, 0, .12);
}

.site-image-picker-image-wrap {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.site-image-picker-image-fallback {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    padding: .45rem;
    background: rgba(0, 0, 0, .08);
    color: rgba(0, 0, 0, .72);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.site-image-picker-card.is-draft,
.site-image-picker-summary.is-draft {
    border-style: dashed;
}

.site-image-picker-draft-warning {
    display: block;
    margin-top: .25rem;
    border-radius: .45rem;
    padding: .35rem .45rem;
    background: rgba(0, 0, 0, .08);
    color: rgba(0, 0, 0, .82);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}


/* content-colors-backgrounds-controls-layout-20260630-v10:start */
/*
   The selected-image controls on Content and Settings > Colors & Backgrounds use
   several older markup shapes. This block intentionally targets the shared behavior:
   a bordered row with an image/no-image preview and a Change image action.
*/
.tenant-admin-panel img[alt="Image unavailable"],
.tenant-admin-panel img[alt*="image unavailable" i],
.tenant-admin-page img[alt="Image unavailable"],
.tenant-admin-page img[alt*="image unavailable" i],
.tenant-admin-main img[alt="Image unavailable"],
.tenant-admin-main img[alt*="image unavailable" i],
main img[alt="Image unavailable"],
main img[alt*="image unavailable" i] {
    display: none !important;
}

.tenant-admin-panel [class*="selected"][class*="image"]:has(button),
.tenant-admin-panel [class*="image"][class*="picker"]:has(button),
.tenant-admin-panel [class*="media"][class*="picker"]:has(button),
.tenant-admin-panel [class*="background"][class*="image"]:has(button),
.tenant-admin-page [class*="selected"][class*="image"]:has(button),
.tenant-admin-page [class*="image"][class*="picker"]:has(button),
.tenant-admin-page [class*="media"][class*="picker"]:has(button),
.tenant-admin-page [class*="background"][class*="image"]:has(button),
.tenant-admin-main [class*="selected"][class*="image"]:has(button),
.tenant-admin-main [class*="image"][class*="picker"]:has(button),
.tenant-admin-main [class*="media"][class*="picker"]:has(button),
.tenant-admin-main [class*="background"][class*="image"]:has(button),
main [class*="selected"][class*="image"]:has(button),
main [class*="image"][class*="picker"]:has(button),
main [class*="media"][class*="picker"]:has(button),
main [class*="background"][class*="image"]:has(button),
main div:has(> button):has(> img),
main div:has(> button):has(> picture),
main div:has(> button):has(> [class*="thumb"]),
main div:has(> button):has(> [class*="preview"]),
main div:has(> button):has(> [class*="placeholder"]) {
    display: grid !important;
    grid-template-columns: minmax(9.5rem, max-content) 10.5rem minmax(14rem, 1fr) max-content !important;
    align-items: center !important;
    column-gap: 1.35rem !important;
    row-gap: .85rem !important;
    min-height: 7.5rem !important;
    overflow: visible !important;
}

.tenant-admin-panel [class*="selected"][class*="image"]:has(button) > :first-child,
.tenant-admin-panel [class*="image"][class*="picker"]:has(button) > :first-child,
.tenant-admin-panel [class*="media"][class*="picker"]:has(button) > :first-child,
.tenant-admin-panel [class*="background"][class*="image"]:has(button) > :first-child,
.tenant-admin-page [class*="selected"][class*="image"]:has(button) > :first-child,
.tenant-admin-page [class*="image"][class*="picker"]:has(button) > :first-child,
.tenant-admin-page [class*="media"][class*="picker"]:has(button) > :first-child,
.tenant-admin-page [class*="background"][class*="image"]:has(button) > :first-child,
.tenant-admin-main [class*="selected"][class*="image"]:has(button) > :first-child,
.tenant-admin-main [class*="image"][class*="picker"]:has(button) > :first-child,
.tenant-admin-main [class*="media"][class*="picker"]:has(button) > :first-child,
.tenant-admin-main [class*="background"][class*="image"]:has(button) > :first-child,
main div:has(> button):has(> img) > :first-child,
main div:has(> button):has(> picture) > :first-child,
main div:has(> button):has(> [class*="thumb"]) > :first-child,
main div:has(> button):has(> [class*="preview"]) > :first-child,
main div:has(> button):has(> [class*="placeholder"]) > :first-child {
    grid-column: 1 !important;
    min-width: 9.5rem !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
}

.tenant-admin-panel [class*="selected"][class*="image"]:has(button) > img,
.tenant-admin-panel [class*="selected"][class*="image"]:has(button) > picture,
.tenant-admin-panel [class*="image"][class*="picker"]:has(button) > img,
.tenant-admin-panel [class*="image"][class*="picker"]:has(button) > picture,
.tenant-admin-panel [class*="media"][class*="picker"]:has(button) > img,
.tenant-admin-panel [class*="media"][class*="picker"]:has(button) > picture,
.tenant-admin-panel [class*="background"][class*="image"]:has(button) > img,
.tenant-admin-panel [class*="background"][class*="image"]:has(button) > picture,
main div:has(> button):has(> img) > img,
main div:has(> button):has(> picture) > picture,
main div:has(> button):has(> [class*="thumb"]) > [class*="thumb"],
main div:has(> button):has(> [class*="preview"]) > [class*="preview"],
main div:has(> button):has(> [class*="placeholder"]) > [class*="placeholder"] {
    grid-column: 2 !important;
    width: 10.5rem !important;
    min-width: 10.5rem !important;
    max-width: 10.5rem !important;
    height: 6.25rem !important;
    min-height: 6.25rem !important;
    max-height: 6.25rem !important;
    object-fit: cover !important;
    border-radius: .7rem !important;
    overflow: hidden !important;
    position: static !important;
}

.tenant-admin-panel [class*="selected"][class*="image"]:has(button) > button,
.tenant-admin-panel [class*="image"][class*="picker"]:has(button) > button,
.tenant-admin-panel [class*="media"][class*="picker"]:has(button) > button,
.tenant-admin-panel [class*="background"][class*="image"]:has(button) > button,
.tenant-admin-page [class*="selected"][class*="image"]:has(button) > button,
.tenant-admin-page [class*="image"][class*="picker"]:has(button) > button,
.tenant-admin-page [class*="media"][class*="picker"]:has(button) > button,
.tenant-admin-page [class*="background"][class*="image"]:has(button) > button,
.tenant-admin-main [class*="selected"][class*="image"]:has(button) > button,
.tenant-admin-main [class*="image"][class*="picker"]:has(button) > button,
.tenant-admin-main [class*="media"][class*="picker"]:has(button) > button,
.tenant-admin-main [class*="background"][class*="image"]:has(button) > button,
main div:has(> button):has(> img) > button,
main div:has(> button):has(> picture) > button,
main div:has(> button):has(> [class*="thumb"]) > button,
main div:has(> button):has(> [class*="preview"]) > button,
main div:has(> button):has(> [class*="placeholder"]) > button {
    grid-column: 4 !important;
    justify-self: end !important;
    white-space: nowrap !important;
}

.tenant-admin-panel [class*="selected"][class*="image"]:has(button) > :not(:first-child):not(img):not(picture):not(button),
.tenant-admin-panel [class*="image"][class*="picker"]:has(button) > :not(:first-child):not(img):not(picture):not(button),
.tenant-admin-panel [class*="media"][class*="picker"]:has(button) > :not(:first-child):not(img):not(picture):not(button),
.tenant-admin-panel [class*="background"][class*="image"]:has(button) > :not(:first-child):not(img):not(picture):not(button),
main div:has(> button):has(> img) > :not(:first-child):not(img):not(picture):not(button),
main div:has(> button):has(> picture) > :not(:first-child):not(img):not(picture):not(button),
main div:has(> button):has(> [class*="thumb"]) > :not(:first-child):not(img):not(picture):not(button),
main div:has(> button):has(> [class*="preview"]) > :not(:first-child):not(img):not(picture):not(button),
main div:has(> button):has(> [class*="placeholder"]) > :not(:first-child):not(img):not(picture):not(button) {
    grid-column: 3 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    position: static !important;
    z-index: auto !important;
}

/* Large, obvious color picker. The hex text field remains separate. */
.tenant-admin-panel input[type="color"],
.tenant-admin-page input[type="color"],
.tenant-admin-main input[type="color"],
main input[type="color"] {
    width: 100% !important;
    min-width: 12rem !important;
    height: 3.6rem !important;
    padding: 0 !important;
    border: 1px solid var(--tenant-admin-border, #cfc6b9) !important;
    border-radius: .7rem !important;
    background: transparent !important;
    cursor: pointer !important;
}

.tenant-admin-panel input[type="color"]::-webkit-color-swatch-wrapper,
.tenant-admin-page input[type="color"]::-webkit-color-swatch-wrapper,
.tenant-admin-main input[type="color"]::-webkit-color-swatch-wrapper,
main input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0 !important;
}

.tenant-admin-panel input[type="color"]::-webkit-color-swatch,
.tenant-admin-page input[type="color"]::-webkit-color-swatch,
.tenant-admin-main input[type="color"]::-webkit-color-swatch,
main input[type="color"]::-webkit-color-swatch {
    border: 0 !important;
    border-radius: .65rem !important;
}

.tenant-admin-panel input[type="color"]::-moz-color-swatch,
.tenant-admin-page input[type="color"]::-moz-color-swatch,
.tenant-admin-main input[type="color"]::-moz-color-swatch,
main input[type="color"]::-moz-color-swatch {
    border: 0 !important;
    border-radius: .65rem !important;
}

/* Remove the redundant tiny trailing color swatches. */
.tenant-color-swatch,
.tenant-admin-color-swatch,
.tenant-color-preview-swatch,
.tenant-color-preview,
.color-swatch,
.color-preview,
.palette-current-swatch,
.swatch-current,
input[type="color"] + .tenant-color-swatch,
input[type="color"] + .tenant-admin-color-swatch,
input[type="color"] + .tenant-color-preview,
input[type="color"] + .color-swatch,
input[type="color"] + .color-preview,
main input[type="color"] ~ [class*="swatch"],
main input[type="color"] ~ [class*="preview"]:not([class*="palette"]):not([class*="toolbar"]),
main .tenant-admin-field:has(input[type="color"]) > :last-child[class*="swatch"],
main .tenant-admin-field:has(input[type="color"]) > :last-child[class*="preview"],
main .form-row:has(input[type="color"]) > :last-child[class*="swatch"],
main .form-row:has(input[type="color"]) > :last-child[class*="preview"],
main div:has(> input[type="color"]):has(> input[type="text"]) > :last-child:not(input):not(label):not(button):not(select):not(textarea) {
    display: none !important;
}

@media (max-width: 760px) {
    main div:has(> button):has(> img),
    main div:has(> button):has(> picture),
    main div:has(> button):has(> [class*="thumb"]),
    main div:has(> button):has(> [class*="preview"]),
    main div:has(> button):has(> [class*="placeholder"]) {
        grid-template-columns: 1fr auto !important;
        min-height: 0 !important;
    }
    main div:has(> button):has(> img) > :first-child,
    main div:has(> button):has(> picture) > :first-child,
    main div:has(> button):has(> [class*="thumb"]) > :first-child,
    main div:has(> button):has(> [class*="preview"]) > :first-child,
    main div:has(> button):has(> [class*="placeholder"]) > :first-child {
        grid-column: 1 / -1 !important;
    }
    main div:has(> button):has(> img) > img,
    main div:has(> button):has(> picture) > picture,
    main div:has(> button):has(> [class*="thumb"]) > [class*="thumb"],
    main div:has(> button):has(> [class*="preview"]) > [class*="preview"],
    main div:has(> button):has(> [class*="placeholder"]) > [class*="placeholder"] {
        grid-column: 1 !important;
    }
    main div:has(> button):has(> img) > button,
    main div:has(> button):has(> picture) > button,
    main div:has(> button):has(> [class*="thumb"]) > button,
    main div:has(> button):has(> [class*="preview"]) > button,
    main div:has(> button):has(> [class*="placeholder"]) > button {
        grid-column: 2 !important;
    }
}
/* content-colors-backgrounds-controls-layout-20260630-v10:end */

/* artsfolio-content-colors-layout-v13 start */
/*
   ArtsFolio tenant-admin image/color control layout rescue.
   The JS normalizes the mixed picker markup into these classes.
*/
.js-af-image-picker-row {
  display: grid !important;
  grid-template-columns: clamp(7.5rem, 13vw, 9.25rem) minmax(0, 1fr) max-content !important;
  grid-template-areas: "thumb title action" !important;
  align-items: center !important;
  column-gap: 1rem !important;
  row-gap: 0.65rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.js-af-image-picker-row > * {
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.js-af-image-picker-row .js-af-picker-label {
  display: none !important;
}
.js-af-image-picker-row .js-af-picker-thumb {
  grid-area: thumb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: clamp(7.5rem, 13vw, 9.25rem) !important;
  max-width: 100% !important;
  height: 5.4rem !important;
  overflow: hidden !important;
  border-radius: 0.7rem !important;
  object-fit: cover !important;
}
.js-af-image-picker-row img.js-af-picker-thumb,
.js-af-image-picker-row .js-af-picker-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0.7rem !important;
}
.js-af-image-picker-row .js-af-picker-placeholder {
  background: rgba(0, 0, 0, 0.06) !important;
  color: rgba(0, 0, 0, 0.58) !important;
  font-weight: 500 !important;
}
.js-af-image-picker-row .js-af-picker-title {
  grid-area: title !important;
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}
.js-af-image-picker-row .js-af-picker-action {
  grid-area: action !important;
  justify-self: end !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.js-af-image-picker-row .js-af-broken-image,
.js-af-image-picker-row img[alt*="unavailable" i],
.js-af-image-picker-row img[src=""],
.js-af-image-picker-row img:not([src]) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.js-af-color-control-row .js-af-extra-color-swatch,
.js-af-color-control-row input[type="color"] ~ .tenant-color-swatch,
.js-af-color-control-row input[type="color"] ~ .color-swatch,
.js-af-color-control-row input[type="color"] ~ .swatch,
.js-af-color-control-row input[type="color"] ~ .color-preview,
.js-af-color-control-row input[type="color"] ~ .tenant-color-preview {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
.js-af-color-control-row input[type="color"] {
  min-height: 3.25rem !important;
  height: 3.25rem !important;
  border-radius: 0.8rem !important;
  padding: 0.22rem !important;
  cursor: pointer !important;
}
.js-af-color-control-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0 !important; }
.js-af-color-control-row input[type="color"]::-webkit-color-swatch { border: 0 !important; border-radius: 0.55rem !important; }
.js-af-color-control-row input[type="color"]::-moz-color-swatch { border: 0 !important; border-radius: 0.55rem !important; }
@media (max-width: 980px) {
  .js-af-image-picker-row {
    grid-template-columns: clamp(7rem, 28vw, 9rem) minmax(0, 1fr) !important;
    grid-template-areas: "thumb title" "thumb action" !important;
  }
  .js-af-image-picker-row .js-af-picker-action { justify-self: start !important; }
}
@media (max-width: 620px) {
  .js-af-image-picker-row {
    grid-template-columns: 1fr !important;
    grid-template-areas: "thumb" "title" "action" !important;
  }
  .js-af-image-picker-row .js-af-picker-thumb { width: min(100%, 10rem) !important; }
}
/* artsfolio-content-colors-layout-v13 end */

/* content-colors-backgrounds-admin-layout-v14 begin */
/* Rescue the selected-image rows used by Content and Settings > Colors & Backgrounds. */
.tenant-admin-selected-image-rescued,
.tenant-admin-image-picker-rescued,
.tenant-admin-layout-rescue-row {
  display: grid !important;
  grid-template-columns: 132px 164px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 1.25rem !important;
  row-gap: .75rem !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.tenant-admin-selected-image-rescued .tenant-admin-layout-rescue-label,
.tenant-admin-image-picker-rescued .tenant-admin-layout-rescue-label,
.tenant-admin-layout-rescue-row .tenant-admin-layout-rescue-label {
  display: none !important;
}

.tenant-admin-layout-rescue-hidden,
.tenant-admin-layout-rescue-row [alt="Image unavailable"],
.tenant-admin-layout-rescue-row [alt*="Image unavailable"],
.tenant-admin-layout-rescue-row [aria-label="Image unavailable"],
.tenant-admin-layout-rescue-row [aria-label*="Image unavailable"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.tenant-admin-layout-rescue-thumb,
.tenant-admin-layout-rescue-row img:not(.tenant-admin-layout-rescue-hidden) {
  grid-column: 1 !important;
  width: 164px !important;
  max-width: 164px !important;
  height: 116px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

.tenant-admin-layout-rescue-row .tenant-admin-layout-rescue-empty,
.tenant-admin-layout-rescue-row .tenant-admin-no-image,
.tenant-admin-layout-rescue-row [class*="placeholder"],
.tenant-admin-layout-rescue-row [class*="Placeholder"] {
  grid-column: 1 !important;
}

.tenant-admin-layout-rescue-title {
  grid-column: 2 / 4 !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  position: static !important;
  transform: none !important;
}

.tenant-admin-layout-rescue-row button,
.tenant-admin-layout-rescue-row a[href],
.tenant-admin-layout-rescue-row input[type="button"],
.tenant-admin-layout-rescue-row input[type="submit"] {
  grid-column: 4 !important;
  justify-self: end !important;
  white-space: nowrap !important;
  position: static !important;
  transform: none !important;
}

/* Color controls: the long input is the swatch; the extra tiny swatch is hidden. */
.tenant-admin-color-control-rescued {
  display: grid !important;
  grid-template-columns: minmax(9rem, 1fr) minmax(12rem, 1fr) !important;
  align-items: center !important;
  gap: .75rem !important;
}

.tenant-admin-color-control-rescued input[type="color"] {
  display: block !important;
  width: 100% !important;
  min-height: 3.25rem !important;
  height: 3.25rem !important;
  padding: .25rem !important;
  border-radius: 14px !important;
  cursor: pointer !important;
}

.tenant-admin-color-control-rescued .tenant-admin-color-swatch,
.tenant-admin-color-control-rescued .tenant-admin-color-preview,
.tenant-admin-color-control-rescued [class*="swatch"],
.tenant-admin-color-control-rescued [class*="Swatch"],
.tenant-admin-color-control-rescued [class*="preview"],
.tenant-admin-color-control-rescued [class*="Preview"] {
  display: none !important;
}

@media (max-width: 760px) {
  .tenant-admin-selected-image-rescued,
  .tenant-admin-image-picker-rescued,
  .tenant-admin-layout-rescue-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }
  .tenant-admin-layout-rescue-thumb,
  .tenant-admin-layout-rescue-row img:not(.tenant-admin-layout-rescue-hidden) {
    grid-column: 1 !important;
    width: 112px !important;
    max-width: 112px !important;
    height: 86px !important;
  }
  .tenant-admin-layout-rescue-title {
    grid-column: 2 !important;
  }
  .tenant-admin-layout-rescue-row button,
  .tenant-admin-layout-rescue-row a[href],
  .tenant-admin-layout-rescue-row input[type="button"],
  .tenant-admin-layout-rescue-row input[type="submit"] {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
  .tenant-admin-color-control-rescued {
    grid-template-columns: 1fr !important;
  }
}
/* content-colors-backgrounds-admin-layout-v14 end */




/* Keep selected image rows from pinching text into unreadable columns. */
.tenant-admin-panel [class*="selected-image"],
.tenant-admin-panel [class*="image-picker"],
.tenant-admin-panel [class*="selected-media"],
.tenant-admin-panel [class*="background-image"],
.tenant-admin-form [class*="selected-image"],
.tenant-admin-form [class*="image-picker"],
.tenant-admin-form [class*="selected-media"],
.tenant-admin-form [class*="background-image"] {
    min-width: 0;
}

.tenant-admin-panel [class*="selected-image"] *,
.tenant-admin-panel [class*="image-picker"] *,
.tenant-admin-panel [class*="selected-media"] *,
.tenant-admin-panel [class*="background-image"] *,
.tenant-admin-form [class*="selected-image"] *,
.tenant-admin-form [class*="image-picker"] *,
.tenant-admin-form [class*="selected-media"] *,
.tenant-admin-form [class*="background-image"] * {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Long color input is the swatch; redundant small swatches stay hidden. */
.tenant-admin-panel input[type="color"] + .tenant-color-swatch,
.tenant-admin-panel input[type="color"] + .color-preview-swatch,
.tenant-admin-panel input[type="color"] + .color-swatch,
.tenant-admin-panel .tenant-color-swatch[aria-hidden="true"],
.tenant-admin-panel .color-preview-swatch[aria-hidden="true"],
.tenant-admin-panel .color-swatch[aria-hidden="true"],
.tenant-admin-form input[type="color"] + .tenant-color-swatch,
.tenant-admin-form input[type="color"] + .color-preview-swatch,
.tenant-admin-form input[type="color"] + .color-swatch,
form input[type="color"] + .tenant-color-swatch,
form input[type="color"] + .color-preview-swatch,
form input[type="color"] + .color-swatch {
    display: none !important;
}

/* site-image-picker-render-v20
   Render-level repair for tenant admin site image pickers.
   The PHP renderer no longer emits the visible "Image unavailable" fallback.
   These rules provide the intended layout for Selected image / Change image rows
   and keep the long color input as the useful swatch. */
.site-image-picker-current {
    display: grid !important;
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.site-image-picker-current > span:first-child {
    white-space: nowrap;
}

.site-image-picker-image-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(5.5rem, 12vw, 10rem);
    min-width: clamp(5.5rem, 12vw, 10rem);
    height: 5.5rem;
    overflow: hidden;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.06);
}

.site-image-picker-image-wrap.is-missing {
    display: none !important;
}

.site-image-picker-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-image-picker-image-fallback {
    display: none !important;
}

.site-image-picker-current-title,
.site-image-picker-current strong,
.site-image-picker-current b {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.site-image-picker-change-button {
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .site-image-picker-current {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .site-image-picker-image-wrap {
        width: 100%;
        min-width: 0;
        height: 8rem;
    }

    .site-image-picker-change-button {
        justify-self: stretch;
        text-align: center;
    }
}

/* The long color input is now the swatch; hide redundant small right-side chips. */
input[type="color"] + .tenant-color-swatch,
input[type="color"] + .color-preview-swatch,
input[type="color"] + .color-swatch,
.tenant-color-swatch[aria-hidden="true"],
.color-preview-swatch[aria-hidden="true"],
.color-swatch[aria-hidden="true"] {
    display: none !important;
}

/* site-image-picker-summary-grid-v22
   The rendered row is <summary class="site-image-picker-summary">, not
   .site-image-picker-current. Give the actual summary four explicit lanes:
   label, thumbnail/empty state, title/status, Change image button. */
.site-image-picker-summary {
    display: grid !important;
    grid-template-columns: max-content max-content minmax(14rem, 1fr) max-content !important;
    align-items: center !important;
    column-gap: 1.35rem !important;
    row-gap: 0.75rem !important;
    min-width: 0 !important;
}

.site-image-picker-summary > span:first-child {
    grid-column: 1 !important;
    justify-self: start !important;
    white-space: nowrap !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap,
.site-image-picker-summary > .site-image-picker-empty,
.site-image-picker-summary > .site-image-picker-draft-warning {
    grid-column: 2 !important;
    justify-self: start !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(7.5rem, 18vw, 16rem) !important;
    min-width: clamp(7.5rem, 18vw, 16rem) !important;
    height: 7rem !important;
    overflow: hidden !important;
    border-radius: 0.65rem !important;
    background: rgba(0, 0, 0, 0.06) !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.site-image-picker-summary > strong {
    grid-column: 3 !important;
    justify-self: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    z-index: 1 !important;
}

.site-image-picker-summary > .site-image-picker-change-button {
    grid-column: 4 !important;
    justify-self: end !important;
    white-space: nowrap !important;
    min-width: max-content !important;
    z-index: 2 !important;
}

/* Draft warning belongs with the title/status lane when a real thumbnail exists. */
.site-image-picker-summary > .site-image-picker-image-wrap + strong + .site-image-picker-draft-warning {
    grid-column: 3 !important;
}

/* The old fallback must never occupy the title lane. */
.site-image-picker-summary .site-image-picker-image-fallback {
    display: none !important;
}

@media (max-width: 900px) {
    .site-image-picker-summary {
        grid-template-columns: max-content minmax(7rem, 1fr) max-content !important;
    }

    .site-image-picker-summary > span:first-child {
        grid-column: 1 !important;
    }

    .site-image-picker-summary > .site-image-picker-image-wrap,
    .site-image-picker-summary > .site-image-picker-empty,
    .site-image-picker-summary > .site-image-picker-draft-warning {
        grid-column: 2 !important;
    }

    .site-image-picker-summary > strong {
        grid-column: 2 !important;
    }

    .site-image-picker-summary > .site-image-picker-change-button {
        grid-column: 3 !important;
    }
}

@media (max-width: 680px) {
    .site-image-picker-summary {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .site-image-picker-summary > span:first-child,
    .site-image-picker-summary > .site-image-picker-image-wrap,
    .site-image-picker-summary > .site-image-picker-empty,
    .site-image-picker-summary > .site-image-picker-draft-warning,
    .site-image-picker-summary > strong,
    .site-image-picker-summary > .site-image-picker-change-button {
        grid-column: 1 !important;
        justify-self: stretch !important;
    }

    .site-image-picker-summary > .site-image-picker-image-wrap {
        width: 100% !important;
        min-width: 0 !important;
        height: 9rem !important;
    }

    .site-image-picker-summary > .site-image-picker-change-button {
        text-align: center !important;
    }
}

/* site-image-picker-compact-summary-grid-v23
   Content can render two site-image pickers side-by-side. A four-column
   summary row is too wide there, so the actual <summary> gets a compact
   three-column/two-row grid:
   row 1: Selected image | title/status | Change image
   row 2: thumbnail      | title/status | Change image
*/
.site-image-picker,
.site-image-picker details,
details.site-image-picker,
.site-image-picker-summary {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.site-image-picker-summary {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) max-content !important;
    grid-template-areas:
        "label title button"
        "thumb  title button" !important;
    align-items: center !important;
    column-gap: 1rem !important;
    row-gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.site-image-picker-summary > span:first-child {
    grid-area: label !important;
    justify-self: start !important;
    align-self: end !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    position: static !important;
    transform: none !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap,
.site-image-picker-summary > .site-image-picker-empty,
.site-image-picker-summary > .site-image-picker-draft-warning:not(:last-child) {
    grid-area: thumb !important;
    justify-self: start !important;
    align-self: start !important;
    position: static !important;
    transform: none !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(5.25rem, 12vw, 9.5rem) !important;
    min-width: clamp(5.25rem, 12vw, 9.5rem) !important;
    max-width: 9.5rem !important;
    height: 5.25rem !important;
    overflow: hidden !important;
    border-radius: 0.65rem !important;
    background: rgba(0, 0, 0, 0.06) !important;
    z-index: 0 !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    object-fit: cover !important;
    position: static !important;
    transform: none !important;
}

.site-image-picker-summary > strong {
    grid-area: title !important;
    justify-self: start !important;
    align-self: center !important;
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    position: static !important;
    transform: none !important;
    z-index: 1 !important;
}

.site-image-picker-summary > .site-image-picker-image-wrap + strong + .site-image-picker-draft-warning,
.site-image-picker-summary > strong + .site-image-picker-draft-warning {
    grid-area: title !important;
    align-self: end !important;
    justify-self: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    position: static !important;
    transform: none !important;
}

.site-image-picker-summary > .site-image-picker-change-button {
    grid-area: button !important;
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
    min-width: max-content !important;
    max-width: 100% !important;
    position: static !important;
    transform: none !important;
    z-index: 2 !important;
}

.site-image-picker-summary .site-image-picker-image-fallback {
    display: none !important;
}

@media (max-width: 760px) {
    .site-image-picker-summary {
        grid-template-columns: minmax(0, 1fr) max-content !important;
        grid-template-areas:
            "label button"
            "thumb  button"
            "title title" !important;
    }

    .site-image-picker-summary > .site-image-picker-image-wrap {
        width: min(11rem, 100%) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 6.25rem !important;
    }
}

@media (max-width: 520px) {
    .site-image-picker-summary {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "label"
            "thumb"
            "title"
            "button" !important;
        align-items: stretch !important;
    }

    .site-image-picker-summary > .site-image-picker-change-button {
        justify-self: stretch !important;
        text-align: center !important;
    }
}

/* content-about-contact-wide-v24
   Content page: About page and Contact page cards should stack full-width
   instead of being squeezed into side-by-side columns. This intentionally keys
   off the actual textareas so other two-column admin grids keep their layout. */
form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
:is(
    .tenant-admin-grid,
    .tenant-admin-form-grid,
    .tenant-admin-card-grid,
    .tenant-settings-grid,
    .tenant-content-grid,
    .content-grid,
    .settings-grid,
    .admin-grid,
    [class*="grid" i]
) {
    grid-template-columns: minmax(0, 1fr) !important;
}

form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
:is(
    .tenant-admin-grid,
    .tenant-admin-form-grid,
    .tenant-admin-card-grid,
    .tenant-settings-grid,
    .tenant-content-grid,
    .content-grid,
    .settings-grid,
    .admin-grid,
    [class*="grid" i]
) > *:has(textarea[name*="about" i][name*="html" i]),
form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
:is(
    .tenant-admin-grid,
    .tenant-admin-form-grid,
    .tenant-admin-card-grid,
    .tenant-settings-grid,
    .tenant-content-grid,
    .content-grid,
    .settings-grid,
    .admin-grid,
    [class*="grid" i]
) > *:has(textarea[name*="contact" i][name*="html" i]) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

/* If the content page panels/cards themselves have layout width limits, relax them. */
form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
*:has(> textarea[name*="about" i][name*="html" i]),
form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
*:has(> textarea[name*="contact" i][name*="html" i]) {
    max-width: none !important;
}

/* Full-width cards give the picker enough room; keep the summary usable there. */
form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
.site-image-picker-summary {
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content !important;
    grid-template-areas: "label thumb title button" !important;
}

form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
.site-image-picker-summary > span:first-child {
    grid-area: label !important;
}

form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
.site-image-picker-summary > .site-image-picker-image-wrap,
form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
.site-image-picker-summary > .site-image-picker-empty {
    grid-area: thumb !important;
}

form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
.site-image-picker-summary > strong {
    grid-area: title !important;
}

form:has(textarea[name*="about" i][name*="html" i]):has(textarea[name*="contact" i][name*="html" i])
.site-image-picker-summary > .site-image-picker-change-button {
    grid-area: button !important;
}

/* content-page-grid-v25
   Content page renderer now adds .content-page-grid and full-width section
   classes directly. This replaces the earlier broad selector attempt. */
.content-page-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

.content-page-grid > .admin-panel,
.content-page-grid > .content-page-section,
.content-page-grid > .content-page-about-section,
.content-page-grid > .content-page-contact-section {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.content-page-grid textarea {
    width: 100%;
}

/* Full-width content cards can use a simple, roomy picker row. */
.content-page-grid .site-image-picker-summary {
    display: grid !important;
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content !important;
    grid-template-areas: "label thumb title button" !important;
    align-items: center !important;
    column-gap: 1.25rem !important;
    row-gap: 0.75rem !important;
    overflow: hidden !important;
}

.content-page-grid .site-image-picker-summary > span:first-child {
    grid-area: label !important;
    white-space: nowrap !important;
}

.content-page-grid .site-image-picker-summary > .site-image-picker-image-wrap,
.content-page-grid .site-image-picker-summary > .site-image-picker-empty {
    grid-area: thumb !important;
}

.content-page-grid .site-image-picker-summary > .site-image-picker-image-wrap {
    width: clamp(8rem, 18vw, 14rem) !important;
    min-width: clamp(8rem, 18vw, 14rem) !important;
    max-width: 14rem !important;
    height: 7rem !important;
}

.content-page-grid .site-image-picker-summary > strong {
    grid-area: title !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

.content-page-grid .site-image-picker-summary > .site-image-picker-change-button {
    grid-area: button !important;
    justify-self: end !important;
    white-space: nowrap !important;
}

@media (max-width: 760px) {
    .content-page-grid .site-image-picker-summary {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "label"
            "thumb"
            "title"
            "button" !important;
        align-items: stretch !important;
    }

    .content-page-grid .site-image-picker-summary > .site-image-picker-image-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 9rem !important;
    }

    .content-page-grid .site-image-picker-summary > .site-image-picker-change-button {
        justify-self: stretch !important;
        text-align: center !important;
    }
}

/* Phase-two sales catalog controls. */
.admin-sale-config {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
}

.admin-sale-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1rem 0;
}

.admin-sale-variants summary {
    cursor: pointer;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.admin-sale-variant-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.admin-sale-variant-table th,
.admin-sale-variant-table td {
    border: 1px solid rgba(30, 25, 20, 0.18);
    padding: 0.45rem;
    vertical-align: top;
}

.admin-sale-variant-table input[type="text"],
.admin-sale-variant-table input[type="number"],
.admin-sale-variant-table select {
    max-width: 12rem;
    width: 100%;
}


/* Compact sales checkout form controls for artwork admin. */
.admin-sale-config {
    border: 1px solid rgba(120, 97, 70, .28) !important;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.admin-sale-config .admin-sale-help {
    margin-top: 0;
    max-width: 72rem;
}

.admin-sale-config .admin-sale-topline {
    display: grid;
    grid-template-columns: minmax(18rem, 2fr) minmax(12rem, 1fr);
    gap: 1rem;
    align-items: end;
    margin: 1rem 0;
}

.admin-sale-config .admin-sale-checkout-toggle {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: auto;
    padding: .85rem 1rem;
    border: 1px solid rgba(120, 97, 70, .22);
    border-radius: 14px;
    background: rgba(255,255,255,.62);
}

.admin-sale-config .admin-sale-checkout-toggle input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
}

.admin-sale-config .admin-sale-grid {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-sale-config .admin-sale-grid label,
.admin-sale-config .admin-sale-topline label {
    display: block;
}

.admin-sale-config select,
.admin-sale-config input[type="text"],
.admin-sale-config input[type="number"] {
    min-height: 2.8rem;
    padding: .65rem .8rem;
}

.admin-sale-config small {
    display: block;
    margin-top: .35rem;
    line-height: 1.25;
    opacity: .78;
}

.admin-sale-config .admin-sale-advanced-shipping {
    grid-column: 1 / -1;
    padding: .85rem 1rem;
    border: 1px dashed rgba(120, 97, 70, .34);
    border-radius: 14px;
    background: rgba(255,255,255,.48);
}

.admin-sale-config .admin-sale-advanced-shipping summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-sale-config .admin-sale-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-top: .75rem;
}

@media (max-width: 760px) {
    .admin-sale-config .admin-sale-topline {
        grid-template-columns: 1fr;
    }
}

/* Artwork edit notes and grid usability. */
.artwork-public-notes-field textarea,
.admin-public-notes textarea {
    min-height: 8rem;
}
.artwork-thumb-edit-link {
    display: inline-block;
    text-decoration: none;
}
.artwork-thumb-edit-link img {
    display: block;
}

/* Sales order review notes should preserve line breaks without creating horizontal overflow. */
.sales-order-notes {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ArtsFolio logo aspect-ratio guard.
   Tenant admin can inherit platform logo markup through shared headers; never
   let a logo image stretch when the palette/header sizing changes. */
.tenant-admin-public-header img,
.tenant-admin-public-header .brand img,
.tenant-admin-public-header .logo-brand img,
.site-header.tenant-admin-public-header img,
.tenant-admin-page .logo-brand img,
.tenant-admin-page .platform-admin-logo img,
.tenant-admin-page .compact-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(285px, 56vw) !important;
    max-height: 82px !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
    flex: 0 0 auto !important;
}
/* End ArtsFolio logo aspect-ratio guard. */

/* End of file. */
