#gml-help-open {
  position: absolute;
  z-index: 450;
  top: 14px;
  left: 14px;
  padding: 9px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #174761;
  font: 600 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
}
#gml-help-open span { font-size: 12px; font-weight: 400; }
#map-workspace:has(#gml-file-panel:not([hidden])) #gml-help-open { display: none; }
#gml-help-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100% - 24px));
  max-height: 88dvh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #334b5a;
  background: #f5f8fa;
  font: 15px/1.7 system-ui, sans-serif;
  box-shadow: 0 24px 80px #102a4350;
}
#gml-help-dialog::backdrop { background: #102a4380; backdrop-filter: blur(3px); }
#gml-help-dialog .gml-help-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 30px 34px;
  background: linear-gradient(120deg, #123c51, #226b7b);
  color: #fff;
}
#gml-help-dialog .gml-help-heading h2 { margin: 8px 0 12px; color: #fff; font-size: 27px; line-height: 1.25; }
#gml-help-dialog .gml-help-heading p { max-width: 600px; margin: 0; color: #e1eef2; }
.gml-help-eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .14em; }
#gml-help-dialog .gml-help-heading button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #ffffff14;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.gml-help-body { padding: 28px 34px; }
#gml-help-dialog h2 { margin: 0 0 8px; color: #174761; font-size: 22px; line-height: 1.35; }
#gml-help-dialog p { margin: 8px 0 12px; }
.gml-help-start { padding: 24px; border: 1px solid #dce7ed; border-radius: 12px; background: #fff; }
.gml-help-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; padding: 0; list-style: none; counter-reset: help-step; }
.gml-help-steps li { counter-increment: help-step; }
.gml-help-steps li::before { display: block; margin-bottom: 8px; color: #26818a; font-size: 23px; font-weight: 750; content: counter(help-step, decimal-leading-zero); }
.gml-help-steps strong { display: block; margin-bottom: 6px; color: #174761; }
.gml-help-steps span { display: block; font-size: 14px; }
#gml-help-dialog .gml-help-tip { margin: 20px 0 0; padding: 16px 18px; border-left: 3px solid #328e98; border-radius: 0 8px 8px 0; background: #eaf3f5; font-size: 14px; }
.gml-help-section-title { margin: 30px 0 16px; }
.gml-help-section-title .gml-help-eyebrow { color: #39818b; }
.gml-help-features { display: grid; gap: 14px; }
.gml-help-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid #dce7ed; border-radius: 12px; background: #fff; }
.gml-help-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #edf4f7; color: #26818a; font-size: 21px; font-weight: 750; }
#gml-help-dialog h3 { margin: 0 0 8px; color: #174761; font-size: 18px; line-height: 1.4; }
#gml-help-dialog .gml-help-card p:last-child { margin-bottom: 0; }
#gml-help-dialog .gml-help-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 18px 34px; border-top: 1px solid #dce7ed; background: #fff; }
.gml-help-footer span { color: #647987; font-size: 12px; }
#gml-help-dialog .gml-help-footer button { padding: 10px 18px; border: 0; border-radius: 8px; background: #185b70; color: #fff; font: 600 14px/1.5 system-ui, sans-serif; cursor: pointer; }
#gml-help-dialog button:focus-visible, #gml-help-open:focus-visible { outline: 3px solid #55b6ca; outline-offset: 3px; }
@media (hover: hover) { #gml-help-open:hover { border-color: #174761; background: #174761; color: #fff; } }
@media (max-width: 600px) {
  #gml-help-open { top: 10px; left: 10px; padding: 6px 10px; font-size: 12px; }
  #gml-help-dialog { max-height: 92dvh; border-radius: 12px; font-size: 14px; }
  #gml-help-dialog .gml-help-heading { padding: 24px 20px; }
  #gml-help-dialog .gml-help-heading h2 { font-size: 23px; }
  .gml-help-body { padding: 20px 16px; }
  .gml-help-start { padding: 18px; }
  .gml-help-steps { grid-template-columns: 1fr; gap: 18px; }
  .gml-help-steps li { position: relative; padding-left: 42px; }
  .gml-help-steps li::before { position: absolute; top: 0; left: 0; font-size: 20px; }
  .gml-help-card { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .gml-help-icon { width: 40px; height: 40px; }
  #gml-help-dialog h3 { font-size: 17px; }
  #gml-help-dialog .gml-help-footer { padding: 16px; }
}
