@font-face {
  font-family: DemoPretendard;
  src: url('/gm-landing/assets/Pretendard.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

.gm-preview-bar, .gm-demo-tools, .gm-demo-dialog {
  font-family: DemoPretendard, system-ui, sans-serif;
  box-sizing: border-box;
}

.gm-demo-tools {
  padding: 7px clamp(12px, 3vw, 28px);
  border-bottom: 1px solid #cdd8e8;
  background: #f0f4f9;
  color: #192b44;
  font-size: 14px;
}

.gm-demo-tools-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-demo-tools h2 { display: inline; font-size: 14px; margin: 0; }
.gm-demo-tools .gm-demo-start { display: inline; margin-inline-start: 6px; font-size: 13px; color: #435a77; word-break: keep-all; }
.gm-demo-tools p { margin: 8px 0 0; }
.gm-demo-tools [hidden], .gm-template [hidden], .gm-demo-dialog [hidden] { display: none !important; }
.gm-demo-tools[data-ready='true'] .gm-demo-fallback,
.gm-demo-tools:not([data-ready='true']) :is(#gm-demo-actions, #gm-demo-reset) { display: none; }
#gm-demo-actions { display: flex; flex-wrap: wrap; gap: 5px 7px; padding-block: 3px 5px; }
#gm-demo-actions button:first-child { background: #254980; color: #fff; border-color: #254980; }
#gm-demo-actions button:first-child:hover { background: #193661; }
#gm-demo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.gm-demo-tools button, .gm-demo-dialog button, .gm-demo-screen button {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #c3d1e5;
  border-radius: 6px;
  background: #fff;
  color: #1b3d6c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.gm-demo-tools button:hover, .gm-demo-dialog button:hover, .gm-demo-screen button:hover { background: #e1ecfc; }
.gm-demo-tools #gm-demo-reset { border-color: transparent; background: transparent; padding-inline: 6px; flex: none; }
.gm-demo-tools :focus-visible, .gm-demo-dialog :focus-visible, .gm-demo-screen :focus-visible, .gm-template [data-demo-control]:focus-visible {
  outline: 2px solid #3b72cf;
  outline-offset: 2px;
}

.gm-template [data-demo-control] { cursor: pointer; }
.gm-demo-dialog {
  width: min(580px, calc(100% - 24px));
  max-height: 85dvh;
  padding: 0;
  border: 1px solid #cedaeb;
  border-radius: 12px;
  background: #fff;
  color: #192b44;
  color-scheme: light;
  box-shadow: 0 20px 64px #0b15294d;
  font-size: 15px;
  line-height: 1.5;
}

.gm-demo-dialog::backdrop { background: #12213ba8; }
.gm-demo-dialog > header {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: #f2f6fc;
  border-bottom: 1px solid #d5dfed;
}

.gm-demo-dialog h2 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.gm-demo-dialog h2:focus { outline: none; }
.gm-demo-dialog-body { padding: 16px; display: grid; gap: 10px; overflow-wrap: anywhere; }
.gm-demo-dialog-body :is(p, ul, ol, dl) { margin: 0; }
.gm-demo-dialog-body dl > div { display: grid; grid-template-columns: minmax(72px, .7fr) minmax(0, 2fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #e6edf6; }
.gm-demo-dialog-body dt { color: #4c607c; }
.gm-demo-dialog-body dd { margin: 0; font-weight: 650; }
.gm-demo-dialog-body form, .gm-demo-dialog-body label { display: grid; gap: 8px; }
.gm-demo-dialog-body :is(input, select, textarea) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #cad6e7;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
  color: inherit;
  font: inherit;
}

.gm-demo-dialog-body :is(ul, ol) { padding-inline-start: 20px; }
.gm-demo-dialog-body li + li { margin-top: 6px; }
.gm-demo-dialog-body [role='alert'] { color: #9c263b; }

.gm-template [data-gm-demo-covered] { display: none !important; }
.gm-demo-screen {
  --gm-workspace-ink: #172944;
  --gm-workspace-line: #d4e0ef;
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--gm-workspace-line);
  border-radius: 10px;
  background: #f7f9fd;
  color: var(--gm-workspace-ink);
  color-scheme: light;
  font: 15px/1.5 DemoPretendard, system-ui, sans-serif;
  scroll-margin-top: 62px;
}

.gm-demo-screen *, .gm-demo-screen *::before, .gm-demo-screen *::after { box-sizing: border-box; }
.gm-demo-screen-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 13px 16px; border-bottom: 1px solid var(--gm-workspace-line); background: #eef3fa; }
.gm-demo-screen > .gm-demo-screen-header h2 { margin: 0; font-size: clamp(17px, 2.5vw, 23px); line-height: 1.25; color: inherit; }
.gm-demo-screen-header h2:focus { outline: none; }
.gm-demo-screen-header button { flex: none; white-space: nowrap; }
.gm-demo-screen-body { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gm-demo-screen-body > :is(section, article), .gm-demo-flow-grid > :is(section, article) { min-width: 0; padding: 12px; border: 1px solid var(--gm-workspace-line); border-radius: 8px; background: #fff; }
.gm-demo-screen-body h3 { margin: 0 0 8px; color: inherit; font-size: 16px; }
.gm-demo-flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; align-items: start; min-width: 0; }
.gm-demo-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gm-demo-screen button[aria-pressed=true], .gm-demo-screen button[type=submit] { color: #fff; background: #254980; border-color: #254980; }
.gm-demo-screen button:disabled { opacity: .55; cursor: default; }
.gm-demo-screen-body table { width: 100%; border-collapse: collapse; }
.gm-demo-screen-body :is(th, td) { padding: 8px; border-bottom: 1px solid var(--gm-workspace-line); text-align: start; }
.gm-demo-screen-body input[type=search] { width: 100%; }
.gm-demo-screen-body label:has(> input[type=checkbox]) { display: flex; align-items: start; gap: 9px; }
.gm-demo-screen-body label > input[type=checkbox] { flex: none; width: 18px; min-height: 18px; margin-top: 3px; accent-color: #254980; }
.gm-demo-screen-body > ul > li { margin-block: 6px; }

@media (max-width: 600px) {
  .gm-demo-tools .gm-demo-start { display: block; margin: 1px 0 0; line-height: 1.3; }
  .gm-demo-tools button, .gm-demo-dialog button, .gm-demo-screen button { min-height: 44px; }
  .gm-demo-dialog-body :is(input, select, textarea) { font-size: 16px; }
  .gm-demo-screen-header, .gm-demo-screen-body { padding: 10px; }
}
