.mhws-composer-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(68vh, 46rem);
  min-width: 0;
  max-width: 100%;
}
.mhws-composer-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem 0.35rem;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.2rem 0.3rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f7f4ee, #efeae0);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mhws-composer-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 0.3rem;
  border-right: 1px solid rgba(15, 40, 80, 0.12);
}
.mhws-composer-group:last-child {
  border-right: 0;
  padding-right: 0;
}
.mhws-composer-icon {
  display: inline-flex;
  pointer-events: none;
}
.mhws-composer-icon svg {
  display: block;
}
.mhws-composer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #0b2a56;
  cursor: pointer;
}
.mhws-composer-btn:hover,
.mhws-composer-btn:focus-visible {
  background: #fff;
  border-color: rgba(15, 40, 80, 0.18);
  outline: none;
}
.mhws-composer-btn.is-active,
.mhws-composer-btn.is-accent {
  background: #fff;
  border-color: rgba(11, 42, 86, 0.28);
}
.mhws-composer-btn.is-accent {
  background: #0b2a56;
  color: #fff;
  border-color: #0b2a56;
}
.mhws-composer-cluster,
.mhws-composer-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  height: 1.85rem;
  padding: 0 0.15rem 0 0.2rem;
  border-radius: 6px;
  color: #0b2a56;
}
.mhws-composer-cluster:hover,
.mhws-composer-color-wrap:hover {
  background: #fff;
}
.mhws-composer-select {
  height: 1.6rem;
  max-width: 5.4rem;
  border: 0;
  background: transparent;
  font: 500 0.7rem/1.2 system-ui, sans-serif;
  color: #12233f;
  cursor: pointer;
}
.mhws-composer-color-wrap {
  position: relative;
  width: 1.85rem;
  padding: 0;
  justify-content: center;
  overflow: hidden;
}
.mhws-composer-color {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  width: 100%;
  height: 100%;
}
.mhws-composer-color-wrap::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  pointer-events: none;
}
.mhws-composer-color-wrap:has(input[title="Highlight"])::after {
  background: #e6c84a;
}
.mhws-composer-chrome {
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
}
.mhws-composer-chrome-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.mhws-composer-layout-group,
.mhws-composer-lang-group {
  display: inline-flex;
  gap: 0.1rem;
  padding: 0.08rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-radius: 8px;
  background: #efeae0;
}
.mhws-composer-lang-btn {
  width: auto;
  min-width: 1.85rem;
  padding: 0 0.35rem;
  font: 650 0.7rem/1 "Sora", system-ui, sans-serif;
}
.mhws-composer-anchor {
  display: none;
}
.mhws-composer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1180;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(14, 24, 44, 0.55);
  cursor: pointer;
}
.mhws-composer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.15rem 6.6rem 0.25rem 0;
}
.mhws-composer-meta select,
.mhws-composer-meta input[type="text"] {
  height: 1.85rem;
  margin: 0;
  padding: 0 0.45rem;
  border: 1px solid rgba(15, 40, 80, 0.16);
  border-radius: 6px;
  background: #fff;
  font: 500 0.78rem/1.2 system-ui, sans-serif;
  color: #12233f;
}
.mhws-composer-meta select {
  max-width: 9.5rem;
}
.mhws-composer-meta #tplComposeChrome {
  max-width: 12.5rem;
}
.mhws-composer-meta select[hidden] {
  display: none;
}
.mhws-composer-meta input[type="text"] {
  flex: 1 1 12rem;
  min-width: 8rem;
}
.mhws-composer-actions {
  display: inline-flex;
  gap: 0.15rem;
  margin-left: auto;
}
.mhws-composer-status {
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
  min-height: 0;
  font-size: 0.75rem;
  color: #5a6a80;
}
.mhws-composer-paper-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 22rem;
  overflow: auto;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #c5cdd8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mhws-composer-desk {
  position: relative;
  padding: 12px 10px 20px;
}
.mhws-composer-paper-wrap:focus-within {
  outline: 2px solid rgba(11, 42, 86, 0.25);
  outline-offset: -2px;
}
.mhws-composer-paper {
  display: block;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  margin: 0 auto;
  padding: 16mm;
  background: #fff;
  color: #12233f;
  font: 12pt/1.5 Georgia, "Times New Roman", serif;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  box-shadow: 0 1px 6px rgba(15, 40, 80, 0.22);
}
.mhws-composer-paper.is-paged {
  max-width: none;
  flex-shrink: 0;
}
.mhws-composer-paper.is-paged.has-watermark {
  background-color: #fff;
}
.mhws-page-frames {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.mhws-page-frame-head,
.mhws-page-frame-foot {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #fff;
  box-sizing: border-box;
}
.mhws-page-chrome-tpl {
  flex: 0 0 auto;
  overflow: visible;
  box-sizing: border-box;
}
.mhws-page-chrome-tpl .sheet,
.mhws-page-chrome-tpl .pad {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.mhws-page-chrome-margin {
  flex: 1 1 auto;
  min-height: 0;
}
.mhws-page-spacer {
  display: block;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  pointer-events: none;
  user-select: none;
}
.mhws-page-spacer-rest,
.mhws-page-spacer-foot,
.mhws-page-spacer-head {
  background: #fff;
}
.mhws-page-gap {
  box-sizing: border-box;
  background: #c5cdd8;
  border-top: 1px solid rgba(11, 42, 86, 0.18);
  border-bottom: 1px solid rgba(11, 42, 86, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mhws-page-gap::after {
  content: attr(data-label);
  font: 650 0.62rem/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a80;
}
.mhws-simple-chrome {
  box-sizing: border-box;
  width: 100%;
}
.mhws-simple-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3mm 12mm 1mm;
  text-align: center;
  box-sizing: border-box;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
}
.mhws-simple-head img {
  width: 14mm;
  height: auto;
  display: block;
}
.mhws-simple-head h1 {
  margin: 1.5mm 0 0;
  font-size: 11pt;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b2a56;
  font-weight: 700;
}
.mhws-simple-head .sub {
  margin: 0.8mm 0 0;
  font-size: 8pt;
  font-weight: 600;
  color: #1a6b3a;
}
.mhws-simple-head .meta {
  margin: 0.8mm 0 0;
  font-size: 7pt;
  color: #5a6a80;
}
.mhws-simple-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3mm 12mm 6mm;
  border-top: 0.7pt solid rgba(11, 42, 86, 0.35);
  font: 650 8pt/1.3 "Noto Sans", "Segoe UI", sans-serif;
  color: #5a6a80;
  text-align: center;
  box-sizing: border-box;
}
.mhws-page-chrome-tpl .accent-edge {
  display: grid;
  grid-template-columns: 1fr 7mm 1fr;
  height: 2.6mm;
}
.mhws-page-chrome-tpl .accent-edge .n { background: #0b2a56; }
.mhws-page-chrome-tpl .accent-edge .g { background: #c9a227; }
.mhws-page-chrome-tpl .accent-edge .e { background: #1a6b3a; }
.mhws-page-chrome-tpl .accent-edge-thin {
  height: 0.4mm;
  background: rgba(11, 42, 86, 0.12);
}
.mhws-page-chrome-tpl .pad {
  padding: 3.5mm 12mm 0;
  font-family: "Noto Sans", "Source Sans 3", "Segoe UI", sans-serif;
}
.mhws-page-chrome-tpl .brand {
  display: grid;
  grid-template-columns: 18mm 1fr;
  gap: 4mm;
  align-items: center;
  padding: 0 0 2mm;
}
.mhws-page-chrome-tpl .brand .logo,
.mhws-page-chrome-tpl .head .seal {
  width: 18mm;
  height: auto;
  display: block;
}
.mhws-page-chrome-tpl .brand h1,
.mhws-page-chrome-tpl .org h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b2a56;
  text-transform: uppercase;
  line-height: 1.1;
}
.mhws-page-chrome-tpl .colony,
.mhws-page-chrome-tpl .org .sub,
.mhws-page-chrome-tpl .org .colony {
  margin: 0.6mm 0 0;
  font-size: 8pt;
  font-weight: 700;
  color: #143a6e;
}
.mhws-page-chrome-tpl .addr,
.mhws-page-chrome-tpl .reg-no,
.mhws-page-chrome-tpl .org .reg-no {
  margin: 0.5mm 0 0;
  font-size: 7.2pt;
  font-weight: 600;
  color: #5a6a80;
}
.mhws-page-chrome-tpl .rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3mm;
  margin: 0 0 2.2mm;
  width: 100%;
}
.mhws-page-chrome-tpl .rule::before,
.mhws-page-chrome-tpl .rule::after {
  content: "";
  height: 0;
  border-top: 1pt solid #0b2a56;
}
.mhws-page-chrome-tpl .rule .pip {
  width: 2.2mm;
  height: 2.2mm;
  background: #c9a227;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1.2pt #fff, 0 0 0 1.7pt rgba(11, 42, 86, 0.35);
}
.mhws-page-chrome-tpl .head {
  display: grid;
  grid-template-columns: 20mm 1fr;
  gap: 5mm;
  align-items: center;
  padding: 8mm 14mm 3mm;
  border-bottom: none;
}
.mhws-page-chrome-tpl .officers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 0;
  align-items: start;
  justify-items: center;
  margin: 0 0 1.6mm;
  width: 100%;
  font-size: 6.8pt;
}
.mhws-page-chrome-tpl .role {
  min-width: 0;
  width: 100%;
  padding: 0 2mm;
  position: relative;
  text-align: center;
}
.mhws-page-chrome-tpl .role:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 0;
  border-right: 0.7pt solid rgba(11, 42, 86, 0.14);
}
.mhws-page-chrome-tpl .role .title {
  display: block;
  font-size: 6pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a6b3a;
}
.mhws-page-chrome-tpl .role .name {
  display: block;
  font-weight: 700;
  color: #0b2a56;
}
.mhws-page-chrome-tpl .role .ph {
  display: block;
  color: #5a6a80;
}
.mhws-page-chrome-tpl .officers + .rule {
  margin: 0 0 1.6mm;
}
.mhws-page-chrome-tpl .officers-foot,
.mhws-page-chrome-tpl .mhws-header-gold-rule {
  display: none;
}
.mhws-page-chrome-tpl .mhws-simple-chrome .rule,
.mhws-page-chrome-tpl .mhws-simple-head + .rule,
.mhws-page-chrome-tpl .org + .rule,
.mhws-page-chrome-tpl .mhws-st-head + .rule {
  margin: 0 0 1.6mm;
}
.mhws-page-chrome-tpl .foot {
  padding: 0 12mm;
}
.mhws-page-chrome-tpl .contacts {
  display: grid;
  grid-template-columns: 1.35fr 1.25fr 1fr;
  gap: 3mm;
  padding: 2mm 0 1.5mm;
  border-top: 1pt solid rgba(11, 42, 86, 0.45);
  font-size: 6.6pt;
}
.mhws-page-chrome-tpl .contact {
  display: grid;
  grid-template-columns: 3.5mm 1fr;
  gap: 1.4mm;
}
.mhws-page-chrome-tpl .contact svg {
  width: 3.2mm;
  height: 3.2mm;
  stroke: #1a6b3a;
  fill: none;
}
.mhws-page-chrome-tpl .contact .k {
  display: block;
  font-size: 5.6pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a6b3a;
}
.mhws-page-chrome-tpl .contact .v {
  color: #0b2a56;
  font-weight: 600;
}
.mhws-page-chrome-tpl .slogan-bar {
  margin: 0 -12mm;
  background: linear-gradient(90deg, #0b2a56 0%, #143a6e 48%, #124a38 100%);
  color: #f7f3ea;
  text-align: center;
  padding: 1.6mm 8mm;
  font-size: 7.4pt;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mhws-page-chrome-tpl .pad .slogan-bar {
  margin: 0 -12mm;
}
.mhws-page-chrome-tpl > .slogan-bar {
  margin: 0;
}
.mhws-page-chrome-tpl img.wm,
.mhws-page-chrome-tpl .layout-picker,
.mhws-page-chrome-tpl .screen-hint { display: none !important; }
.mhws-composer-paper[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #8a96a8;
  font-style: italic;
}
.mhws-composer-paper h2 span,
.mhws-composer-paper h3 span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.mhws-composer-paper h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18pt;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #0b2a56;
}
.mhws-composer-paper h3 {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.3;
  color: #143a6e;
}
.mhws-composer-paper p { margin: 0 0 0.55rem; }
.mhws-composer-paper .mhws-tab {
  white-space: pre;
  tab-size: 4;
  -moz-tab-size: 4;
}
.mhws-composer-paper .mhws-img-pair {
  display: flex;
  align-items: stretch;
  gap: 10pt;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8pt;
}
.mhws-composer-paper .mhws-img-pair .mhws-img {
  flex: 0 0 auto;
}
.mhws-composer-paper .mhws-img-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: text;
}
.mhws-composer-paper .mhws-img-text p {
  margin: 0 0 0.35rem;
}
.mhws-composer-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.75rem;
  table-layout: fixed;
}
.mhws-composer-paper th,
.mhws-composer-paper td {
  border: 1px solid #0b2a56;
  padding: 0.28rem 0.4rem;
  vertical-align: top;
  word-wrap: break-word;
}
.mhws-composer-paper table.mhws-table-noborder th,
.mhws-composer-paper table.mhws-table-noborder td {
  border: none;
}
.mhws-composer-paper img { max-width: 100%; height: auto; }
.mhws-composer-paper blockquote {
  margin: 0.4rem 0 0.7rem;
  padding: 0.2rem 0 0.2rem 0.75rem;
  border-left: 3px solid #c9a227;
  color: #3a4a60;
}
.templates-compose-meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  gap: 0;
}
.mhws-composer-shell [data-author-pane]:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.mhws-composer-shell[hidden] {
  display: none !important;
}
html.mhws-compose-overlay {
  overflow: hidden;
}
html.mhws-compose-overlay body {
  overflow: hidden;
}
.mhws-composer-shell.is-layout-panel,
.mhws-composer-shell.is-layout-window {
  position: fixed;
  z-index: 1190;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f4f0e8;
  box-shadow: -18px 0 48px rgba(10, 20, 40, 0.28);
  overflow: hidden;
  pointer-events: auto;
}
.mhws-composer-shell.is-layout-panel {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(56rem, 96vw);
  height: 100dvh;
  max-height: 100dvh;
  padding: 0.4rem 0.55rem 0.55rem;
  padding-top: calc(0.4rem + env(safe-area-inset-top));
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
}
.mhws-composer-shell.is-layout-window {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  padding: 0.45rem 0.7rem 0.6rem;
  padding-top: calc(0.45rem + env(safe-area-inset-top));
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
}
.mhws-composer-shell.is-layout-panel .mhws-composer-chrome,
.mhws-composer-shell.is-layout-window .mhws-composer-chrome {
  top: calc(0.35rem + env(safe-area-inset-top));
  right: 0.45rem;
}
.mhws-composer-shell.is-layout-panel .templates-compose-meta,
.mhws-composer-shell.is-layout-window .templates-compose-meta,
.mhws-composer-shell.is-layout-panel [data-author-pane]:not([hidden]),
.mhws-composer-shell.is-layout-window [data-author-pane]:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mhws-composer-shell.is-layout-panel .mhws-composer-paper-wrap,
.mhws-composer-shell.is-layout-window .mhws-composer-paper-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: auto;
}
.mhws-composer-shell.is-layout-panel .mhws-composer-paper,
.mhws-composer-shell.is-layout-window .mhws-composer-paper {
  flex: none;
  min-height: 297mm;
  overflow: visible;
  user-select: text;
}
.mhws-composer-shell.is-layout-panel .mhws-composer-paper.is-paged,
.mhws-composer-shell.is-layout-window .mhws-composer-paper.is-paged {
  min-height: 297mm;
}
.mhws-composer-shell.is-layout-window .templates-compose-meta,
.mhws-composer-shell.is-layout-window [data-author-pane]:not([hidden]) {
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (max-width: 720px) {
  .mhws-composer-shell.is-layout-panel {
    left: 0;
    right: 0;
    width: 100%;
  }
  .mhws-composer-meta {
    padding-right: 0;
    padding-top: 2.1rem;
  }
  .mhws-composer-meta input[type="text"] {
    flex: 1 1 100%;
    min-width: 0;
  }
  .mhws-composer-paper-wrap {
    min-height: 16rem;
  }
}

.mhws-table-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.12rem 0.3rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-top: 0;
  background: #e8eef6;
  overflow-x: auto;
}
.mhws-table-tools[hidden] {
  display: none !important;
}
.mhws-table-tools-label {
  margin-right: 0.3rem;
  font: 700 0.62rem/1 "Sora", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b2a56;
}
.mhws-table-scope {
  display: inline-flex;
  margin: 0 0.28rem 0 0;
}
.mhws-table-scope button {
  height: 1.55rem;
  padding: 0 0.4rem;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-right-width: 0;
  background: #fff;
  font: 650 0.62rem/1 system-ui, sans-serif;
  color: #0b2a56;
  cursor: pointer;
}
.mhws-table-scope button:first-child {
  border-radius: 4px 0 0 4px;
}
.mhws-table-scope button:last-child {
  border-right-width: 1px;
  border-radius: 0 4px 4px 0;
}
.mhws-table-scope button.is-on {
  background: #0b2a56;
  color: #fff;
  border-color: #0b2a56;
}
.mhws-table-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  height: 1.85rem;
  min-width: 1.85rem;
  padding: 0 0.2rem;
  font: 650 0.62rem/1 system-ui, sans-serif;
  color: #0b2a56;
  overflow: hidden;
}
.mhws-table-color input[type="color"] {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid rgba(15, 40, 80, 0.22);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.mhws-composer-paper tr.is-row-pick td,
.mhws-composer-paper tr.is-row-pick th,
.mhws-composer-paper td.is-col-pick,
.mhws-composer-paper th.is-col-pick {
  box-shadow: inset 0 0 0 2px #c9a227;
}
.mhws-table-picker {
  position: fixed;
  z-index: 1300;
  min-width: 11rem;
  padding: 0.45rem 0.5rem 0.4rem;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 20, 40, 0.22);
}
.mhws-table-picker-label {
  margin: 0 0 0.35rem;
  font: 650 0.75rem/1.2 system-ui, sans-serif;
  color: #0b2a56;
}
.mhws-table-picker-hint {
  margin: 0.35rem 0 0;
  font: 500 0.68rem/1.3 system-ui, sans-serif;
  color: #5a6a80;
}
.mhws-table-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 14px);
  gap: 3px;
}
.mhws-table-picker-cell {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid #9aa8bc;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}
.mhws-table-picker-cell.is-on {
  background: #c5d4ea;
  border-color: #0b2a56;
}
.mhws-table-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.mhws-table-overlay[hidden] {
  display: none !important;
}
.mhws-table-col-gutter,
.mhws-table-row-gutter {
  position: absolute;
  padding: 0;
  border: 0;
  pointer-events: auto;
  background: transparent;
  cursor: pointer;
}
.mhws-table-col-gutter {
  top: -11px;
  height: 11px;
  border-radius: 3px 3px 0 0;
  background: #d5deea;
}
.mhws-table-row-gutter {
  left: -11px;
  width: 11px;
  border-radius: 3px 0 0 3px;
  background: #d5deea;
}
.mhws-table-col-gutter:hover,
.mhws-table-row-gutter:hover {
  background: #c9a227;
}
.mhws-table-col-resizer,
.mhws-table-row-resizer {
  position: absolute;
  pointer-events: auto;
  z-index: 4;
  background: transparent;
}
.mhws-table-col-resizer {
  top: 0;
  width: 7px;
  height: 100%;
  margin-left: -3px;
  cursor: col-resize;
}
.mhws-table-row-resizer {
  left: 0;
  width: 100%;
  height: 7px;
  margin-top: -3px;
  cursor: row-resize;
}
.mhws-table-col-resizer:hover,
.mhws-table-row-resizer:hover {
  background: rgba(201, 162, 39, 0.35);
}
body.mhws-table-resizing {
  user-select: none;
}
body.mhws-table-resizing-col,
body.mhws-table-resizing-col * {
  cursor: col-resize !important;
}
body.mhws-table-resizing-row,
body.mhws-table-resizing-row * {
  cursor: row-resize !important;
}

.mhws-table-num {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  height: 1.85rem;
  padding: 0 0.2rem;
  font: 650 0.62rem/1 system-ui, sans-serif;
  color: #0b2a56;
}
.mhws-table-num input {
  width: 2.4rem;
  height: 1.5rem;
  padding: 0 0.2rem;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-radius: 4px;
  background: #fff;
  font: 500 0.72rem/1 system-ui, sans-serif;
  color: #12233f;
}
.mhws-margin-unit {
  font: 500 0.58rem/1 system-ui, sans-serif;
  color: #5a6a80;
}
.mhws-margin-picker {
  position: fixed;
  z-index: 1300;
  width: 13.5rem;
  padding: 0.5rem 0.55rem 0.45rem;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 20, 40, 0.22);
}
.mhws-margin-presets {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
}
.mhws-margin-preset {
  flex: 1;
  height: 1.55rem;
  border: 1px solid rgba(15, 40, 80, 0.16);
  border-radius: 5px;
  background: #f4f0e8;
  font: 650 0.68rem/1 system-ui, sans-serif;
  color: #0b2a56;
  cursor: pointer;
}
.mhws-margin-preset:hover {
  background: #fff;
}
.mhws-margin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.45rem;
}
.mhws-margin-field.is-top,
.mhws-margin-field.is-bottom {
  grid-column: 1 / -1;
  justify-self: center;
}
.mhws-margin-field {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font: 650 0.72rem/1 system-ui, sans-serif;
  color: #0b2a56;
}
.mhws-margin-field input {
  width: 3.2rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-radius: 5px;
  font: 500 0.8rem/1 system-ui, sans-serif;
}

.mhws-composer-paper .mhws-img {
  position: relative;
  line-height: 0;
  max-width: 100%;
  cursor: move;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
}
.mhws-composer-paper .mhws-img img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.mhws-composer-paper .mhws-img.is-selected {
  outline: 2px solid #c9a227;
  outline-offset: 1px;
}
.mhws-composer-paper .mhws-img.is-dragging {
  opacity: 0.55;
}
.mhws-img-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.12rem 0.3rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-top: 0;
  background: #eef6ee;
  overflow-x: auto;
}
.mhws-img-tools[hidden] {
  display: none !important;
}
.mhws-img-tools-label {
  margin-right: 0.25rem;
  font: 650 0.68rem/1 system-ui, sans-serif;
  color: #1a6b3a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mhws-img-size {
  width: auto;
  min-width: 1.85rem;
  padding: 0 0.28rem;
  font: 650 0.68rem/1 system-ui, sans-serif;
}
.mhws-img-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.mhws-img-overlay[hidden] {
  display: none;
}
.mhws-img-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1.5px solid #0b2a56;
  border-radius: 1px;
  pointer-events: auto;
  z-index: 4;
  touch-action: none;
}
.mhws-img-handle.is-nw { left: -5px; top: -5px; cursor: nwse-resize; }
.mhws-img-handle.is-ne { right: -5px; top: -5px; cursor: nesw-resize; }
.mhws-img-handle.is-sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.mhws-img-handle.is-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
body.mhws-img-resizing,
body.mhws-img-resizing * {
  cursor: nwse-resize !important;
  user-select: none !important;
}
.mhws-download-picker {
  position: fixed;
  z-index: 1400;
  min-width: 12.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 24, 44, 0.18);
}
.mhws-download-picker p {
  margin: 0.35rem 0 0.3rem;
  font: 650 0.72rem/1.2 system-ui, sans-serif;
  color: #0b2a56;
}
.mhws-download-picker p:first-child {
  margin-top: 0;
}
.mhws-download-picker button {
  display: block;
  width: 100%;
  margin: 0 0 0.2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-radius: 6px;
  background: #f7f4ee;
  color: #12233f;
  font: 600 0.8rem/1.2 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.mhws-download-picker button:hover,
.mhws-download-picker button:focus-visible {
  background: #0b2a56;
  color: #fff;
  outline: none;
}
.mhws-download-picker.is-wide {
  min-width: 16.5rem;
  max-width: 22rem;
}
.mhws-download-picker .is-muted {
  font: 500 0.74rem/1.35 system-ui, sans-serif;
  color: #5a6a80;
}

.mhws-stationery-form {
  margin-top: 0.55rem;
}
.mhws-stationery-meta {
  margin-bottom: 0.55rem;
}
.mhws-stationery-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.mhws-stationery-controls {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(70vh, 42rem);
  overflow: auto;
  padding-right: 0.2rem;
}
.mhws-stationery-controls fieldset {
  margin: 0;
  padding: 0.55rem 0.65rem 0.7rem;
  border: 1px solid rgba(15, 40, 80, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.mhws-stationery-controls legend {
  padding: 0 0.25rem;
  font: 650 0.72rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b2a56;
}
.mhws-stationery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.55rem;
}
.mhws-stationery-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font: 500 0.74rem/1.2 system-ui, sans-serif;
  color: #12233f;
}
.mhws-stationery-grid label.span-2,
.mhws-stationery-check {
  grid-column: 1 / -1;
}
.mhws-stationery-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem !important;
}
.mhws-stationery-grid input,
.mhws-stationery-grid select {
  min-height: 1.85rem;
  border: 1px solid rgba(15, 40, 80, 0.16);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  font: 500 0.78rem/1.2 system-ui, sans-serif;
  background: #fff;
  color: #12233f;
}
.mhws-stationery-lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.mhws-stationery-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 0.4rem;
  border: 1px dashed rgba(15, 40, 80, 0.14);
  border-radius: 6px;
  background: #f8fafc;
}
.mhws-stationery-line input,
.mhws-stationery-line select {
  min-height: 1.7rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-radius: 5px;
  padding: 0.15rem 0.3rem;
  font: 500 0.74rem/1.2 system-ui, sans-serif;
  background: #fff;
}
.mhws-stationery-line {
  grid-template-columns: 1fr auto auto auto auto auto;
  align-items: center;
}
.mhws-stationery-line input[data-field="text"] {
  grid-column: 1 / -1;
}
.mhws-stationery-preview-wrap {
  min-width: 0;
  overflow: auto;
  max-height: min(70vh, 42rem);
  padding: 0.65rem;
  border-radius: 10px;
  background: #c5cdd8;
}
.mhws-stationery-preview {
  margin: 0 auto;
  transform-origin: top center;
}
.mhws-stationery-shell.is-layout-panel .mhws-composer-chrome,
.mhws-stationery-shell.is-layout-window .mhws-composer-chrome {
  top: calc(0.35rem + env(safe-area-inset-top));
  right: 0.45rem;
}
.mhws-stationery-preview .sheet {
  margin: 0 auto;
}
.mhws-stationery-shell.is-layout-panel .mhws-stationery-meta,
.mhws-stationery-shell.is-layout-window .mhws-stationery-meta {
  padding-right: 0;
  padding-top: 2.1rem;
}
.mhws-stationery-shell.is-layout-panel .mhws-stationery-layout,
.mhws-stationery-shell.is-layout-window .mhws-stationery-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}
.mhws-stationery-shell.is-layout-panel .mhws-stationery-controls,
.mhws-stationery-shell.is-layout-window .mhws-stationery-controls {
  max-height: none;
}
.mhws-stationery-shell.is-layout-panel .mhws-stationery-preview-wrap,
.mhws-stationery-shell.is-layout-window .mhws-stationery-preview-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
}
.mhws-stationery-shell.is-layout-window .mhws-stationery-layout {
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  height: calc(100dvh - 7.5rem);
}
@media (max-width: 920px) {
  .mhws-stationery-layout {
    grid-template-columns: 1fr;
  }
  .mhws-stationery-line {
    grid-template-columns: 1fr 1fr;
  }
}
