:root {
  --ink: #18334a;
  --blue: #00308f;
  --blue-dark: #00308f; /* #00246b; */
  --blue-light: #e6eaf4;
  --blue-border: #99acd2;
  --blue-rgb: 0, 48, 143;
  --sky: #dcecf0;
  --gold: #d8a64b;
  --line: #c9d8db;
  --paper: #f7f8f5;
  --site-font: "myriad-pro", sans-serif;
  --header-content-left: 337px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--site-font);
}

html {
  min-width: 800px;
  scroll-behavior: smooth;
}

* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

[data-scroll-active] {
  scrollbar-color: #99acd2 transparent;
}

li:not(:last-child) {
  margin-bottom: 10px; /* Adjust value as needed */
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

[data-scroll-active]::-webkit-scrollbar-thumb {
  background: #99acd2;
}

body {
  margin: 0;
  background: #b8b8b8;
  color: var(--ink);
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--blue);
}

a:visited {
  text-decoration: none;
}

.site-shell {
  background: var(--paper);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1920px;
  min-height: 100vh;
  min-width: 800px;
  width: 100%;
}

.header-inner {
  margin: 0;
  padding-left: 4vw;
  padding-right: 4vw;
  width: 100%;
}

.content-width {
  margin: 0 auto;
  width: min(1180px, calc(100% - 64px));
}

.site-header {
  background-image: url("../images/sky-tab-2.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
  height: 218px;
  min-height: 218px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.official-bar {
  background: transparent;
}

.official-bar,
.brand-bar {
  transform: scale(.5);
  transform-origin: top left;
  width: 200%;
}

.official-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  min-height: 52px;
  padding-left: var(--header-content-left);
}

.official-copy {
  color: #fff;
  display: block;
  font-size: 28px;
  line-height: 28px;
  white-space: nowrap;
}

.official-inner .flag {
  height: 24px;
  width: 40px;
}

.official-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.official-toggle span {
  font-size: 18px;
  margin-left: 5px;
}

.brand-bar {
  background: transparent;
}

.brand-inner {
  align-items: center;
  display: flex;
  min-height: 384px;
  padding-bottom: 34px;
  padding-top: 16px;
}

.seal-link {
  display: block;
  height: 240px;
  left: 80px;
  position: absolute;
  top: -68px;
  width: 240px;
  z-index: 1;
}

.seal-link img {
  display: block;
  height: 240px;
  object-fit: contain;
  width: 240px;
}

.brand-titles {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 238px;
  justify-content: center;
  left: var(--header-content-left);
  margin-left: 0;
  position: absolute;
  top: -70px;
  z-index: 1;
}

.ifs-title {
  color: #fff;
  display: block;
  font-size: 28pt;
  font-weight: 400;
  line-height: 37px;
  white-space: nowrap;
}

.daf-title {
  color: #fff;
  display: block;
  font-size: 42pt;
  font-weight: 400;
  line-height: 56px;
  white-space: nowrap;
}

.daf-short {
  display: none;
}

.large-ifs-lockup {
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  font-size: 170px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: 200px;
  top: 46px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.editor-toolbar {
  background: #fdfdfd;
  margin-top: -68px;
  color: #17191b;
  position: relative;
  z-index: 3;
}

.toolbar-main {
  align-items: stretch;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 42px;
  min-width: 800px;
  position: relative;
}

.toolbar-main::after {
  border-bottom: 2px solid #888888;
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.toolbar-group {
  align-items: stretch;
  display: flex;
  min-width: 0;
}

.toolbar-left {
  justify-self: start;
}

.toolbar-center {
  justify-self: center;
}

.toolbar-right {
  justify-self: end;
}

.toolbar-item,
.toolbar-edit {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  padding: 0 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.toolbar-item[hidden] {
  display: none !important;
}

.toolbar-item:not(:disabled):hover {
  background: #eef3f7;
}

.toolbar-item.save-item.has-unsaved-changes {
  background: #fff1d2;
  box-shadow: inset 0 -3px #d8a64b;
  color: #714800;
  font-weight: 700;
  margin: 6px;
}

.toolbar-item.save-item.has-unsaved-changes:disabled {
  cursor: not-allowed;
}

.save-unsaved-indicator {
  color: #bf6d00;
  font-size: 19px;
  line-height: 1;
  margin-left: 5px;
}

.toolbar-item:disabled {
  color: #888888;
  cursor: not-allowed;
}

.toolbar-item .bi,
.toolbar-edit .bi {
  font-size: 14px;
  line-height: 1;
  margin-right: 5px;
}

.toolbar-item.is-active {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.toolbar-item.is-active::before {
  border: 1px solid #888888;
  border-bottom: 2px solid #fdfdfd;
  content: "";
  inset: 8px 0 0;
  pointer-events: none;
  position: absolute;
}

.toolbar-edit {
  align-self: center;
  background: var(--blue);
  border: 1px solid var(--blue-dark);
  border-radius: 3px;
  color: #fff;
  font-weight: 600;
  height: 30px;
  min-width: 94px;
  text-transform: none;
}

.toolbar-edit:hover {
  background: var(--blue-dark);
}

.toolbar-edit.is-cancel-mode {
  background: #6b7278;
  border-color: #596167;
}

.toolbar-edit.is-cancel-mode:hover {
  background: #596167;
}

.poc-menu {
  text-transform: none;
}

.poc-dropdown {
  display: flex;
  position: relative;
}

.poc-menu-panel {
  background: #fff;
  border: 1px solid #888888;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  left: 0;
  min-width: 240px;
  position: absolute;
  top: 100%;
  z-index: 30;
}

.poc-menu-panel[hidden] {
  display: none;
}

.poc-menu-user {
  border-bottom: 1px solid #dfe3e5;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 2px;
  padding: 12px 16px;
}

.poc-menu-user-label {
  color: #6b7278;
  font-size: 11px;
  text-transform: uppercase;
}

.poc-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: #17191b;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  gap: 8px;
  padding: 11px 16px;
  text-align: left;
  width: 100%;
}

.poc-menu-item:hover,
.poc-menu-item:focus-visible {
  background: #eef3f7;
}

.toolbar-caret {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  height: 6px;
  margin-left: 7px;
  transform: rotate(45deg) translateY(-2px);
  width: 6px;
}

.photo-strip {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 175px;
  left: 0;
  position: absolute;
  right: 0;
  top: 152px;
  z-index: 2;
}

.photo-strip-item {
  background: #d8e4e6;
  height: 175px;
  margin: 0;
  overflow: hidden;
}

.photo-strip-item img {
  display: block;
  height: 175px;
  object-fit: cover;
  width: 100%;
}

.editor-workspace {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 50%) minmax(0, 25%);
  min-height: calc(100vh - 192px);
}

.workspace-column {
  min-width: 0;
  padding: 20px 18px;
}

.workspace-left {
  border-right: 1px solid #d4d8db;
}

.workspace-right {
  border-left: 1px solid #d4d8db;
}

.ifs-editor-page {
  overflow: hidden;
}

.ifs-editor-page .site-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.ifs-editor-page .site-header,
.ifs-editor-page .editor-toolbar {
  flex-shrink: 0;
}

.ifs-editor-page .site-header {
  z-index: 0;
}

.ifs-editor-page .site-shell > main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ifs-editor-page .editor-workspace {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.ifs-editor-page .workspace-left,
.ifs-editor-page .installation-document-preview,
.ifs-editor-page .word-editor-shell {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

.ifs-editor-page .page-preview {
  min-height: 0;
  overflow: hidden;
}

.ifs-editor-page .word-editor-form,
.ifs-editor-page .installation-document-preview,
.ifs-editor-page .word-editor-shell {
  flex: 1;
  min-height: 0;
}

.ifs-editor-page .word-editor-form {
  overflow: hidden;
}

.ifs-editor-page .word-editor-shell > * {
  flex-shrink: 0;
}

.ifs-editor-page .workspace-right {
  min-height: 0;
  overflow: hidden;
}

.workspace-panel[hidden] {
  display: none;
}

.workspace-panel.is-source-mode-disabled {
  opacity: 0.45;
}

.word-editor-tool:disabled,
.word-editor-select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-kicker {
  color: #667985;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.panel-heading h2 {
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.panel-heading .workspace-placeholder-heading {
  color: #a8b2b9;
  font-size: 30px;
  text-align: left;
}

.panel-heading + h3,
.workspace-panel h3 {
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.workspace-panel p {
  color: #56666f;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.workspace-panel .panel-note {
  color: #667985;
  font-size: 13px;
}

.installation-picker-inline {
  align-items: center;
  border-bottom: 1px solid #dfe3e5;
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 14px;
}

.installation-picker-inline label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.installation-picker-inline form {
  flex: 1 1 auto;
  min-width: 0;
}

.installation-picker-inline select {
  background: #f3f6f7;
  border: 1px solid #dfe3e5;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  min-height: 32px;
  padding: 5px 8px;
  width: 100%;
}

.installation-picker-inline select:focus-visible {
  border-color: var(--blue);
  outline: 2px solid rgba(var(--blue-rgb), 0.2);
  outline-offset: 1px;
}

.panel-note {
  font-weight: 700;
}

.page-tree,
.image-library,
.workflow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-tree-section > summary,
.page-tree-leaf {
  align-items: start;
  appearance: none;
  background: transparent;
  border-bottom: 1px solid #e1e5e7;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: #354d5e;
  column-gap: 8px;
  cursor: pointer;
  display: grid;
  font-size: 14px;
  font-family: inherit;
  grid-template-columns: 10px minmax(0, 1fr);
  line-height: 1.35;
  min-width: 0;
  padding: 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.page-tree-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  min-width: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.page-tree-section > summary {
  cursor: pointer;
  list-style: none;
}

.page-tree-section > summary::-webkit-details-marker {
  display: none;
}

.page-tree-section > summary::before,
.page-tree-leaf::before {
  content: "";
  height: 6px;
  width: 6px;
}

.page-tree-section > summary::before {
  border-bottom: 1px solid #667985;
  border-right: 1px solid #667985;
  margin-top: 4px;
  transform: rotate(-45deg);
  transition: transform 150ms ease;
}

.page-tree-section[open] > summary::before {
  transform: rotate(45deg);
}

.page-tree-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-tree-section > summary:hover,
.page-tree-leaf:hover {
  background: #f3f6f7;
}

.page-tree-link:hover .page-tree-label-text {
  color: var(--blue);
}

.page-tree .page-tree-current {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  padding-left: 7px;
}

.is-editing-section .page-tree {
  opacity: .35;
  pointer-events: none;
  user-select: none;
}

.page-tree {
  transition: opacity 160ms ease;
}

.page-tree-children {
  border-left: 1px solid #dfe3e5;
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0 0 0 8px;
}

.text-tool-menu {
  border-top: 1px solid #dfe3e5;
}

.text-tool-list,
.text-tool-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.text-tool-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e1e5e7;
  color: #354d5e;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.text-tool-item > .bi:first-child {
  color: #667985;
  font-size: 16px;
  text-align: center;
  width: 20px;
}

.text-tool-item:hover {
  background: #f3f6f7;
}

.text-tool-item.is-active {
  background: var(--blue-light);
  box-shadow: inset 3px 0 var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.text-tool-item.is-active > .bi:first-child {
  color: var(--blue);
}

.text-tool-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}

.text-tool-disclosure .text-tool-caret {
  color: #667985;
  font-size: 12px;
  margin-left: auto;
  transition: transform 160ms ease;
}

.text-tool-disclosure[aria-expanded="true"] .text-tool-caret {
  transform: rotate(180deg);
}

.text-tool-submenu .text-tool-item {
  background: #fafbfb;
  padding-left: 30px;
}

.image-library li {
  align-items: center;
  border-top: 1px solid #e1e5e7;
  color: #354d5e;
  display: flex;
  font-size: 13px;
  gap: 12px;
  min-height: 70px;
  padding: 10px 0;
}

.image-library img {
  height: 44px;
  object-fit: contain;
  width: 52px;
}

.page-preview {
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  isolation: isolate;
  margin-top: 4px;
}

.page-preview > p {
  color: #56666f;
  padding: 30px 48px;
}

.word-editor-form {
  display: flex;
  flex-direction: column;
  margin: 12px 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.word-editor-form[hidden],
.installation-document-preview[hidden] {
  display: none;
}

.installation-document-preview,
.word-editor-shell {
  box-sizing: border-box;
  color: #243f52;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 100%;
  padding: 20px 30px 60px;
  width: 100%;
}

.page-section-heading {
  color: #18334a;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 26px;
}

h1.page-section-heading {
  font-size: 32px;
}

.installation-document-content h1,
.installation-document-content h2,
.installation-document-content h3 {
  color: var(--blue);
  line-height: 1.3;
  margin: 28px 0 12px;
}

.installation-document-content p {
  margin: 0 0 16px;
}

.installation-document-content ul,
.installation-document-content ol {
  margin: 0 0 18px 24px;
  padding-left: 18px;
}

.installation-document-content blockquote {
  border-left: 4px solid #d3dfe5;
  color: #4d6675;
  margin: 20px 0;
  padding-left: 18px;
}

.word-editor-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.word-editor-title-row {
  align-items: center;
  display: flex;
  margin: 0;
  padding: 0;
}

.word-editor-title-row > .page-section-heading {
  min-width: 0;
  width: 100%;
}

.word-editor-save {
  background: var(--blue);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 16px;
}

.word-editor-surface {
  margin: 0;
  min-height: 480px;
  padding: 0;
  position: relative;
}

.word-document {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #243f52;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  min-height: 480px;
  outline: none;
  padding: 0;
}

.word-document:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.word-document h1,
.word-document h2,
.word-document h3 {
  color: var(--blue);
  font-weight: 700;
  line-height: 1.3;
  margin: 28px 0 12px;
}

.word-document p {
  margin: 0 0 16px;
}

.word-document blockquote {
  border-left: 4px solid #d3dfe5;
  color: #4d6675;
  margin: 20px 0;
  padding-left: 18px;
}

.word-document ul,
.word-document ol {
  margin: 0 0 18px 24px;
  padding-left: 18px;
}

.word-editor-content-hidden {
  display: none;
}

.preview-heading {
  margin-bottom: 30px;
}

.preview-heading h1 {
  color: #243f52;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.preview-heading > p {
  color: #56666f;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.preview-section {
  border-top: 1px solid #d4d8db;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 20px 0;
}

.preview-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  grid-row: span 4;
  padding-top: 4px;
}

.preview-section h2 {
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.preview-section p {
  color: #56666f;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 700px;
}

.preview-section a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.preview-section a span {
  color: var(--gold);
  font-size: 18px;
  margin-left: 8px;
  vertical-align: -1px;
}

.workflow-list li {
  border-top: 1px solid #e1e5e7;
  color: #354d5e;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.workflow-list li > span {
  font-size: 14px;
  font-weight: 700;
}

.workflow-list small {
  color: #667985;
  font-size: 12px;
}

.workflow-list .workflow-current > span::before {
  background: var(--blue);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 8px;
  vertical-align: 1px;
  width: 8px;
}

@media (max-width: 1600px) {
  .toolbar-item,
  .toolbar-edit {
    font-size: 11px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .toolbar-item .bi,
  .toolbar-edit .bi {
    font-size: 12px;
    margin-right: 3px;
  }

  .toolbar-edit {
    min-width: 72px;
  }

}

@media (max-width: 1300px) {
  .toolbar-right .toolbar-item {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 1190px) {
  .toolbar-right .toolbar-item {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 1100px) {
  .toolbar-right .toolbar-item {
    padding-left: 3px;
    padding-right: 3px;
  }
}

@media (max-width: 700px) {
  .brand-inner {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .content-width {
    width: min(100% - 36px, 1180px);
  }

  .editor-toolbar {
    overflow-x: auto;
  }

  .photo-strip {
    grid-template-columns: repeat(6, 320px);
    overflow-x: auto;
    top: 152px;
  }

  .photo-strip-item,
  .photo-strip-item img {
    height: 175px;
    width: 320px;
  }

}

@media (max-width: 1000px) {
  .toolbar-item,
  .toolbar-edit {
    padding-left: 8px;
    padding-right: 8px;
  }

  .toolbar-item .bi,
  .toolbar-edit .bi {
    display: none;
  }

  .utility-item span,
  .poc-menu span:first-of-type {
    display: inline;
  }
}

/* =========================================================
   ENHANCED CONTENT EDITOR & IMAGE MANAGEMENT SUITE
   ========================================================= */

.text-tool-item .tool-desc {
  color: #728490;
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

.image-mgmt-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-upload-zone {
  background: #f8fafb;
  border: 1.5px dashed #c8d3d9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  transition: all 160ms ease;
}

.image-upload-zone.is-drag-over {
  background: var(--blue-light);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.15);
}

.upload-zone-main {
  align-items: center;
  display: flex;
  gap: 8px;
  height: 80px;
  justify-content: space-between;
  width: 100%;
}

.upload-zone-info {
  align-items: center;
  display: flex;
  flex-grow: 1;
  gap: 8px;
  min-width: 0;
}

.image-upload-zone .upload-icon {
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
  margin: 0;
}

.upload-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.image-upload-zone .upload-title {
  color: #1a3952;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.image-upload-zone .upload-hint {
  color: #6a7c88;
  font-size: 10.5px;
  line-height: 1.2;
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone-action {
  align-items: center;
  display: flex;
  flex-shrink: 0;
}

.btn-upload-file {
  align-items: center;
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  height: 35px;
  justify-content: center;
  padding: 0 9px;
  transition: all 140ms ease;
  white-space: nowrap;
}

.btn-upload-file:hover {
  background: var(--blue);
  color: #fff;
}

.upload-status {
  background: var(--blue-light);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  padding: 4px 8px;
  width: 100%;
}

.image-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.image-search-input-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3e5;
  border-radius: 6px;
  display: flex;
  gap: 6px;
  padding: 4px 10px;
}

.image-search-input-wrap .bi-search {
  color: #7b8e9b;
  font-size: 13px;
  flex-shrink: 0;
}

.image-search-input-wrap input {
  border: 0;
  color: #1a3952;
  font-size: 13px;
  outline: 0;
  width: 100%;
}

.btn-search-clear {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8c9ba5;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  justify-content: center;
  padding: 0;
  transition: color 120ms ease;
}

.btn-search-clear:hover {
  color: #dc3545;
}

.btn-search-clear[hidden] {
  display: none !important;
}

.image-catalog-heading {
  margin-bottom: -6px;
}

.layout-preset-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #667985;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  padding: 0;
  text-align: left;
  width: 100%;
}

.layout-preset-toggle .panel-kicker {
  margin: 0;
}

.layout-preset-toggle i {
  font-size: 11px;
  transition: transform 140ms ease;
}

.layout-preset-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.layout-preset-grid[hidden] {
  display: none !important;
}

.layout-preset-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

@media (max-width: 1190px) {
  .layout-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.layout-preset-card {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  padding: 4px;
  text-align: center;
  transition: all 140ms ease;
}

.layout-preset-card:hover {
  color: var(--blue);
}

.preset-icon-mockup {
  aspect-ratio: 0.8;
  background-color: #fff;
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
  height: auto;
  max-width: 112px;
  position: relative;
  width: 100%;
}

.preset-icon-mockup::before {
  background: #d9d9d9;
  content: "";
  left: 5.36%;
  position: absolute;
  right: 5.36%;
}

.preset-icon-mockup.hero-mockup::before {
  height: 39.29%;
  top: 30.71%;
}

.preset-icon-mockup.grid2-mockup::before {
  background: linear-gradient(to bottom, #d9d9d9 0 48.67%, #fff 48.67% 51.33%, #d9d9d9 51.33%);
  height: 80.71%;
  top: 10%;
}

.preset-icon-mockup.grid3-mockup::before,
.preset-icon-mockup.large-three-mockup::before,
.preset-icon-mockup.large-six-mockup::before,
.preset-icon-mockup.strip6-mockup::before,
.preset-icon-mockup.strip9-mockup::before,
.preset-icon-mockup.strip12-mockup::before {
  --preset-columns: linear-gradient(to right, #d9d9d9 0 31.5%, #fff 31.5% 34.25%, #d9d9d9 34.25% 65.75%, #fff 65.75% 68.5%, #d9d9d9 68.5%);
}

.preset-icon-mockup.grid3-mockup::before {
  background: var(--preset-columns);
  height: 17.14%;
  top: 40.71%;
}

.preset-icon-mockup.large-three-mockup::before {
  background:
    linear-gradient(#d9d9d9, #d9d9d9) top / 100% 64.71% no-repeat,
    var(--preset-columns) bottom / 100% 28.24% no-repeat;
  height: 60.71%;
  top: 10%;
}

.preset-icon-mockup.large-six-mockup::before {
  background:
    linear-gradient(#d9d9d9, #d9d9d9) top / 100% 48% no-repeat,
    var(--preset-columns) 0 70% / 100% 21% no-repeat,
    var(--preset-columns) bottom / 100% 21% no-repeat;
  height: 80.71%;
  top: 10%;
}

.preset-icon-mockup.strip4-mockup::before,
.preset-icon-mockup.cover-mockup::before {
  --preset-four-columns: linear-gradient(to right, #d9d9d9 0 23%, #fff 23% 25.67%, #d9d9d9 25.67% 48.67%, #fff 48.67% 51.33%, #d9d9d9 51.33% 74.33%, #fff 74.33% 77%, #d9d9d9 77%);
}

.preset-icon-mockup.strip4-mockup::before {
  aspect-ratio: 4.35;
  background: var(--preset-four-columns);
  top: 50%;
  transform: translateY(-50%);
}

.preset-icon-mockup.cover-mockup::before {
  background:
    linear-gradient(#d9d9d9, #d9d9d9) top / 100% 72% no-repeat,
    var(--preset-four-columns) bottom / 100% 24.84% no-repeat;
  height: 58.57%;
  top: 20.71%;
}

.preset-icon-mockup.strip6-mockup::before {
  --preset-row-height: 54.72%;
  --preset-row-gap: 9.43%;
  height: 37.86%;
  top: 31.43%;
}

.preset-icon-mockup.strip9-mockup::before {
  --preset-row-height: 35.37%;
  --preset-row-gap: 6.10%;
  height: 58.57%;
  top: 20%;
}

.preset-icon-mockup.strip12-mockup::before {
  --preset-row-height: 26.13%;
  --preset-row-gap: 4.50%;
  height: 79.29%;
  top: 10%;
}

.preset-icon-mockup.strip6-mockup::before,
.preset-icon-mockup.strip9-mockup::before,
.preset-icon-mockup.strip12-mockup::before {
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--preset-row-height) - var(--preset-row-gap)), #fff calc(var(--preset-row-height) - var(--preset-row-gap)), #fff var(--preset-row-height)),
    var(--preset-columns);
}

.preset-icon-mockup.float-mockup::before {
  display: none;
}

.float-mockup-copy {
  color: #777;
  display: flow-root;
  font-size: 6px;
  font-weight: 400;
  left: 5.36%;
  line-height: 1.4;
  overflow: hidden;
  position: absolute;
  right: 5.36%;
  text-align: left;
  top: 50%;
  transform: translateY(-50%);
}

.float-mockup-copy::before {
  aspect-ratio: 250 / 188;
  background: #d9d9d9;
  content: "";
  float: left;
  margin: 0 4px 3px 0;
  width: 54.4%;
}

.image-library-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 2px;
}

.image-library-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e5e7;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 10px;
  transition: all 140ms ease;
}

.image-library-card[hidden] {
  display: none !important;
}

.image-library-card.is-new-upload {
  background: var(--blue-light);
  border-color: var(--blue);
  box-shadow: inset 3px 0 var(--blue);
}

.image-library-empty {
  align-items: center;
  background: #f8fafb;
  border: 1px dashed #cfd8dc;
  border-radius: 8px;
  color: #6b7e8c;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
}

.image-library-empty i {
  color: #9aa8b2;
  font-size: 24px;
}

.image-library-empty p {
  color: #1a3952;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.image-library-empty span {
  font-size: 11px;
}

.image-library-empty[hidden] {
  display: none !important;
}

.image-library-card:hover {
  border-color: var(--blue);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.image-card-thumb-wrap {
  align-items: center;
  background: #f4f6f8;
  border-radius: 6px;
  display: flex;
  flex-shrink: 0;
  height: 60px;
  justify-content: center;
  overflow: hidden;
  width: 70px;
}

.image-card-thumb-wrap img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.image-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.image-card-title {
  color: #1a3952;
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card-meta {
  overflow-wrap: anywhere;
  color: #6b7e8c;
  display: block;
  font-size: 11px;
  margin: 2px 0 6px;
}

.image-card-usage {
  display: block;
}

.image-card-usage.is-used {
  font-weight: 700;
}

.image-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-img-action {
  align-items: center;
  background: #f1f4f6;
  border: 1px solid #dfe3e5;
  border-radius: 4px;
  color: #1a3952;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  padding: 3px 8px;
  transition: all 120ms ease;
}

.btn-img-action:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-img-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-img-delete {
  color: #b02a37;
}

.btn-img-delete:hover:not(:disabled) {
  background: #b02a37;
  border-color: #b02a37;
}

.selected-image-notice {
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  margin: 10px 0 14px;
  padding: 10px 12px;
}

.selected-image-notice-inner {
  align-items: center;
  display: flex;
  gap: 10px;
}

.selected-image-notice-inner > i {
  color: var(--blue-dark);
  font-size: 20px;
  flex-shrink: 0;
}

.selected-image-notice-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.selected-image-notice-text strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.selected-image-notice-text span {
  color: #3b5a75;
  font-size: 11px;
  line-height: 1.3;
}

.btn-deselect-img {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #647d91;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.btn-deselect-img:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* Editor Toolbar Enhancements */
.word-editor-toolbar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(18, 42, 58, 0.04);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px 18px 18px 18px;
  flex-shrink: 0;
  width: 100%;
  z-index: 20;
}

.toolbar-btn-group {
  align-items: center;
  border-right: 1px solid #e2e8f0;
  display: flex;
  gap: 3px;
  padding-right: 6px;
}

.word-editor-select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #243f52;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  height: 35px;
  padding: 2px 8px;
}

.word-editor-select:focus {
  border-color: var(--blue);
  outline: none;
}

.word-editor-tool {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #243f52;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  gap: 3px;
  height: 35px;
  justify-content: center;
  min-width: 35px;
  padding: 0 8px;
  transition: all 120ms ease;
}

.word-editor-tool:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.word-editor-tool.tool-highlight {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-dark);
  font-weight: 600;
}

.word-editor-tool.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.word-editor-source-view {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-sizing: border-box;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 480px;
  outline: 0;
  padding: 18px;
  resize: vertical;
  width: 100%;
}

.html-source-validation {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #243f52;
  font-size: 13px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
}

.html-source-validation p {
  margin: 0;
}

.html-source-validation ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.word-editor-footer {
  align-items: center;
  background: transparent;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 36px;
  padding: 16px 0 0;
}

.editor-mode-indicator {
  align-items: center;
  color: #2e7d32;
  display: flex;
  font-weight: 600;
  gap: 6px;
}

.status-dot {
  background: #2e7d32;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

/* Image Selection & Drag-and-Drop Replacement */
#word-document-editor img {
  cursor: pointer;
  max-width: 100%;
  transition: all 140ms ease;
}

#word-document-editor img.is-selected-image {
  box-shadow: 0 0 0 6px rgba(var(--blue-rgb), 0.25);
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

#word-document-editor img.is-image-drop-target {
  filter: brightness(105%);
  outline: 3px dashed #16a34a !important;
  outline-offset: 4px;
}

#word-document-editor img.img-replace-success {
  animation: img-replace-flash 1s ease-out;
}

@keyframes img-replace-flash {
  0% {
    box-shadow: 0 0 16px rgba(22, 163, 74, 0.6);
    outline: 4px solid #16a34a;
    outline-offset: 4px;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    outline: 3px solid var(--blue);
    outline-offset: 3px;
  }
}

.image-library-card[draggable="true"] {
  cursor: grab;
}

.image-library-card[draggable="true"]:active {
  cursor: grabbing;
}

/* Image Formatting Styles */
.img-rounded-sm { border-radius: 4px; }
.img-rounded-md { border-radius: 8px; }
.img-rounded-lg { border-radius: 16px; }
.img-rounded-pill { border-radius: 999px; }

.img-border-subtle { border: 1px solid #dfe3e5; }
.img-border-blue { border: 3px solid var(--blue); }
.img-border-navy { border: 3px solid var(--blue-dark); }

.img-shadow-subtle { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.img-shadow-elevated { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16); }

/* Document Figures & Tables */
[hidden] {
  display: none !important;
}

:is(.word-document, .installation-document-content) [data-align="left"] { text-align: left; }
:is(.word-document, .installation-document-content) [data-align="center"] { text-align: center; }
:is(.word-document, .installation-document-content) [data-align="right"] { text-align: right; }
:is(.word-document, .installation-document-content) [data-align="justify"] { text-align: justify; }

ul[type="disc"] { list-style-type: disc; }
ul[type="circle"] { list-style-type: circle; }
ul[type="square"] { list-style-type: square; }
ul[type="none"] { list-style-type: none; }

:is(.word-document, .installation-document-content) img {
  max-width: 100%;
  height: auto;
}

:is(.word-document, .installation-document-content) img[width] {
  width: attr(width type(<length-percentage>), calc(attr(width type(<number>), 0) * 1px));
}

img[data-rotate], #modal-img-preview {
  rotate: calc(attr(data-rotate type(<number>), 0) * 1deg);
  scale: attr(data-flip-x type(<number>), 1) attr(data-flip-y type(<number>), 1);
}

img[data-filter], #modal-img-preview {
  filter: brightness(calc(attr(data-brightness type(<number>), 100) / 100))
    contrast(calc(attr(data-contrast type(<number>), 100) / 100)) var(--image-preset-filter, brightness(1));
}

img[data-filter="none"] { --image-preset-filter: brightness(1); }
img[data-filter="grayscale"] { --image-preset-filter: grayscale(1); }
img[data-filter="sepia"] { --image-preset-filter: sepia(0.8); }
img[data-filter="warm"] { --image-preset-filter: sepia(0.3) saturate(1.4); }
img[data-filter="vibrant"] { --image-preset-filter: saturate(1.7) contrast(1.1); }
img[data-filter="cool"] { --image-preset-filter: hue-rotate(180deg) saturate(0.9); }

.ifs-two-column-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.ifs-two-column-copy > div { min-width: 0; }

:is(.ifs-photo-large-three, .ifs-photo-large-six, .ifs-photo-strip-4, .ifs-photo-strip-6,
  .ifs-photo-strip-9, .ifs-photo-strip-12, .ifs-photo-grid-2, .ifs-photo-grid-3) {
  display: grid;
  width: 100%;
  max-width: 800px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: min(25px, 3.125%);
  margin: 20px auto;
}

.ifs-photo-strip-4 {
  max-width: 755px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: min(25px, 3.311%);
}

.ifs-photo-grid-2 {
  max-width: 525px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: min(25px, 4.762%);
}

:is(.ifs-photo-large-three, .ifs-photo-large-six) > figure:first-child { grid-column: 1 / -1; }

:is(.ifs-photo-large-three, .ifs-photo-large-six, .ifs-photo-strip-4, .ifs-photo-strip-6, .ifs-photo-strip-9,
  .ifs-photo-strip-12, .ifs-photo-grid-2, .ifs-photo-grid-3, .ifs-photo-cover) figure {
  margin: 0;
  min-width: 0;
}

:where(.ifs-photo-large-three, .ifs-photo-large-six, .ifs-photo-strip-4, .ifs-photo-strip-6, .ifs-photo-strip-9,
  .ifs-photo-strip-12, .ifs-photo-grid-2, .ifs-photo-grid-3, .ifs-photo-cover, .ifs-float-card) img {
  display: block;
  object-fit: contain;
  background: #dbe4eb;
  border-radius: 4px;
}

:where(.word-document, .installation-document-content) figcaption {
  text-align: center;
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
}

:is(.ifs-photo-large-three, .ifs-photo-large-six, .ifs-photo-strip-4, .ifs-photo-strip-6, .ifs-photo-strip-9,
  .ifs-photo-strip-12, .ifs-photo-grid-2, .ifs-photo-grid-3, .ifs-photo-cover) figcaption {
  color: #56666f;
  font-size: 13px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

:where(.ifs-photo-grid-2) img { border-radius: 6px; }
.ifs-photo-grid-2 figcaption { margin-top: 6px; font-size: 13px; }
.ifs-photo-cover { width: 100%; margin: 20px auto; }
.ifs-cover-strip figcaption {
  font-size: 14px;
  font-weight: 700;
}

.ifs-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2%;
  margin-top: 12px;
}

.ifs-photo-cover img:is([width="170"], [width="1200"]) { width: 100%; }

img[data-aspect-ratio="800 / 440"] { aspect-ratio: 800 / 440; }
img[data-aspect-ratio="250 / 188"] { aspect-ratio: 250 / 188; }
img[data-aspect-ratio="170 / 170"] { aspect-ratio: 170 / 170; }
img[data-aspect-ratio="1 / 1"] { aspect-ratio: 1 / 1; }

.ifs-hero-banner img {
  display: block;
  object-fit: contain;
  background: #dbe4eb;
}

.ifs-hero-banner {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ifs-hero-banner figcaption {
  padding: 10px 16px;
  background: #f4f7f8;
  color: #435b6c;
  font-size: 13px;
}

.ifs-float-layout {
  display: flow-root;
  width: 800px;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 20px auto;
}

.ifs-float-card {
  float: left;
  box-sizing: border-box;
  width: 34.5%;
  max-width: 100%;
  margin: 0 2.5% 16px 0;
  padding: min(12px, 1.5%);
  background: #f8fafc;
  border: 1px solid #dfe3e5;
  border-radius: 8px;
}

.ifs-float-card :is(p, figcaption) {
  margin: 8px 0 0;
  font-size: 12px;
  color: #435b6c;
}

.ifs-float-card p { font-weight: 600; }

.ifs-figure-block {
  margin: 20px auto;
  max-width: 100%;
}

.ifs-figure-block.align-center { text-align: center; }

:is(.word-document, .installation-document-content) p > img.img-rounded-md {
  display: block;
  margin: 16px auto;
}

.ifs-figcaption {
  color: #56666f;
  font-size: 13px;
  text-align: center;
}

.ifs-matrix-table {
  border-collapse: collapse;
  margin: 20px 0;
  width: 100%;
}

.ifs-matrix-table th,
.ifs-matrix-table td {
  border: 1px solid #dfe3e5;
  font-size: 13px;
  padding: 10px 14px;
  text-align: left;
}

.ifs-matrix-table th {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.ifs-matrix-table.table-striped tbody tr:nth-child(even) {
  background: #f8fafb;
}

.ifs-facility-group-material-types .ifs-matrix-table {
  margin-inline: auto;
  table-layout: fixed;
}

.ifs-facility-group-material-types .ifs-matrix-table td:first-child { width: 30%; }
.ifs-facility-group-material-types .ifs-matrix-table td:nth-child(2) { width: 70%; }

/* Modal Dialog Backdrops & Windows */
.editor-modal-backdrop {
  align-items: center;
  background: rgba(12, 28, 42, 0.6);
  backdrop-filter: blur(2px);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.editor-modal-backdrop[hidden] {
  display: none !important;
}

.editor-modal-dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 580px;
  overflow: hidden;
  width: 90%;
}

.image-editor-dialog {
  max-width: 820px;
}

.editor-modal-header {
  align-items: center;
  background: var(--blue);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
}

.editor-modal-header h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.editor-modal-body {
  overflow-y: auto;
  padding: 20px;
}

.image-editor-modal-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 300px 1fr;
}

@media (max-width: 768px) {
  .image-editor-modal-grid {
    grid-template-columns: 1fr;
  }
}

.image-modal-preview-box {
  align-items: center;
  background: #f1f4f6;
  border: 1px solid #dfe3e5;
  border-radius: 8px;
  display: flex;
  height: 230px;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 8px;
}

.image-modal-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: all 160ms ease;
}

.image-transform-btn-row {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}

.btn-transform {
  align-items: center;
  background: #f4f6f8;
  border: 1px solid #d2d9de;
  border-radius: 6px;
  color: #243f52;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  justify-content: center;
  padding: 6px 8px;
  transition: all 120ms ease;
}

.btn-transform:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.control-group {
  margin-bottom: 14px;
}

.control-group label {
  color: #1a3952;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.modal-asset-picker-container {
  background: #f8fafc;
  border: 1px solid #dfe3e5;
  border-radius: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 8px;
}

.modal-asset-picker-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
}

.modal-asset-option {
  align-items: center;
  background: #fff;
  border: 1px solid #d2d9de;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px 4px;
  text-align: center;
  transition: all 120ms ease;
}

.modal-asset-option:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.modal-asset-option.is-selected {
  background: var(--blue-light);
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}

.modal-asset-thumb {
  align-items: center;
  background: #f1f4f6;
  border-radius: 4px;
  display: flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.modal-asset-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.modal-asset-label {
  color: #1a3952;
  display: block;
  font-size: 10px;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-asset-empty {
  color: #647d91;
  font-size: 11px;
  font-style: italic;
  padding: 8px;
  text-align: center;
}

.modal-asset-empty[hidden] {
  display: none !important;
}

.control-row-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

#modal-img-width-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#modal-img-width {
  min-width: 0;
}

.form-control {
  background: #fff;
  border: 1px solid #dfe3e5;
  border-radius: 6px;
  color: #1a3952;
  font-size: 13px;
  padding: 7px 10px;
  width: 100%;
}

.form-control:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(var(--blue-rgb), 0.2);
}

.filter-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-filter-preset {
  background: #f1f4f6;
  border: 1px solid #dfe3e5;
  border-radius: 6px;
  color: #354d5e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  transition: all 120ms ease;
}

.btn-filter-preset.is-active,
.btn-filter-preset:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.control-sliders {
  background: #f8fafb;
  border: 1px solid #dfe3e5;
  border-radius: 8px;
  margin-top: 14px;
  padding: 12px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.slider-row:last-child {
  margin-bottom: 0;
}

.slider-row label {
  color: #354d5e;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  justify-content: space-between;
}

.range-slider {
  cursor: pointer;
  width: 100%;
}

.editor-modal-footer {
  align-items: center;
  background: #f4f7f8;
  border-top: 1px solid #dfe3e5;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 20px;
}

.btn-modal-secondary {
  align-items: center;
  background: #fff;
  border: 1px solid #d2d9de;
  border-radius: 6px;
  color: #354d5e;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 8px 16px;
  transition: all 120ms ease;
}

.btn-modal-secondary:hover {
  background: #eef2f5;
}

.btn-modal-primary {
  align-items: center;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 8px 18px;
  transition: all 120ms ease;
}

.btn-modal-primary:hover {
  background: var(--blue-dark);
}
