.gl-toast-container,
#toast,
.toast {
  z-index: 13000 !important;
}
.glcm-back {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(22, 18, 40, 0.45);
}
.glcm-back[hidden] { display: none !important; }
.glcm,
.glcm * { box-sizing: border-box; }
.glcm {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(40, 20, 80, 0.22);
  color: #1f2430;
}
.glcm.glcm--acc { width: min(640px, 100%); }
.glcm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
  padding: 22px 24px 8px;
}
.glcm-kicker {
  margin: 0 0 4px;
  color: #6b46e5;
  font-size: 12px;
  font-weight: 700;
}
.glcm-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}
.glcm-x {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.glcm-x:hover { background: #e5e7eb; color: #111827; }
.glcm-note {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 8px;
  margin: 8px 24px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4efff;
  color: #4c3a7a;
  font-size: 13px;
  line-height: 1.45;
}
.glcm-note i { color: #6b46e5; margin-top: 2px; }
.glcm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 24px 16px;
}
.glcm-checkout {
  flex-shrink: 0;
  padding: 12px 24px 22px;
  border-top: 1px solid #eef0f4;
  background: #fff;
}
.glcm-checkout[hidden] { display: none !important; }
.glcm-checkout .glcm-sum { margin-top: 0; }
.glcm-checkout .glcm-foot { margin-top: 12px; }
.glcm-loading, .glcm-err { margin: 24px 0; text-align: center; color: #667085; }
.glcm-err { color: #b42318; }
.glcm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.glcm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.glcm-field--full { grid-column: 1 / -1; }
.glcm-field--full .glcm-lab { min-height: 0; }
.glcm-lab {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 34px;
  gap: 2px;
}
.glcm-lab span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.glcm-lab small {
  display: block;
  min-height: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #8b93a1;
}
.glcm-step,
.glcm-sel,
.glcm-date {
  width: 100%;
  height: 46px;
  border: 1px solid #d9dde5;
  border-radius: 10px;
  background: #fff;
}
.glcm-step {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.glcm-step button {
  flex: 0 0 46px;
  width: 46px;
  border: 0;
  background: #f7f8fb;
  color: #374151;
  font-size: 20px;
  font-family: inherit;
  cursor: pointer;
}
.glcm-step input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #1f2430;
  -moz-appearance: textfield;
  appearance: textfield;
}
.glcm-step input:focus { outline: 0; }
.glcm-step input::-webkit-outer-spin-button,
.glcm-step input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.glcm-sel,
.glcm-date {
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2430;
}
.glcm-sel {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.glcm-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.glcm-choice--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.glcm-choice button {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  height: 58px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d7deea;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  font-family: inherit;
  line-height: 1.25;
  color: #475467;
  cursor: pointer;
}
.glcm-choice button i {
  flex: 0 0 auto;
  width: auto;
  color: #6d3fe0;
  font-size: 14px;
  line-height: 1;
}
.glcm-choice-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.glcm-choice-txt strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.glcm-choice-txt em { display: none; }
.glcm-choice button.is-on {
  border-color: #8064eb;
  background: #f4f1ff;
  color: #5b38c7;
}
.glcm-choice button.is-on i { color: #6d3fe0; }
.glcm-choice--dest button {
  justify-content: flex-start;
  height: auto;
  min-height: 74px;
  padding: 12px;
  text-align: left;
}
.glcm-choice--dest .glcm-choice-txt {
  align-items: flex-start;
}
.glcm-choice--dest .glcm-choice-txt strong {
  font-size: 14px;
  font-weight: 700;
}
.glcm-choice--dest .glcm-choice-txt em {
  display: block;
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
  color: #8b93a1;
}
.glcm-choice--dest button i {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f1edff;
  color: #6d3fe0;
  font-size: 15px;
}
.glcm-choice button:disabled,
.glcm-choice button.is-off {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8f9fb;
  color: #1f2430;
}
.glcm-shared {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.glcm-shared-hint,
.glcm-shared-warn {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.glcm-shared-hint { color: #8b93a1; }
.glcm-shared-warn { color: #b42318; }
.glcm-sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f6f8;
}
.glcm-sum small { display: block; color: #8b93a1; font-size: 12px; margin-bottom: 4px; }
.glcm-sum b { display: block; font-size: 14px; line-height: 1.4; word-break: keep-all; }
.glcm-sum em {
  display: block;
  font-style: normal;
  color: #2b6cb0;
  font-size: 22px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.glcm-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.glcm-foot button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}
.glcm-cancel {
  min-width: 88px;
  border: 1px solid #d5dce7;
  background: #fff;
  color: #475467;
}
.glcm-add {
  min-width: 190px;
  border: 1px solid #6d3fe0;
  background: #6d3fe0;
  color: #fff;
}
.glcm-add:disabled { opacity: 0.6; cursor: wait; }
.glcm-acc-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.glcm-acc-tools b {
  color: #1f2430;
  font-size: 13px;
}
.glcm-acc-tool-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.glcm-acc-bulk-btn {
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d5dce7;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.glcm-acc-bulk-btn--on {
  border-color: #6d3fe0;
  background: #6d3fe0;
  color: #fff;
}
.glcm-acc-bulk {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #f9fafc;
}
.glcm-acc-bulk[hidden] { display: none !important; }
.glcm-acc-bulk label {
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}
.glcm-acc-bulk textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 9px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font: 12px/1.5 inherit;
}
.glcm-acc-bulk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8993a4;
  font-size: 11px;
}
.glcm-acc-table-wrap {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
}
.glcm-acc-table-scroll {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}
.glcm-acc-table {
  width: 100%;
  border-collapse: collapse;
}
.glcm-acc-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px;
  background: #f6f8fb;
  color: #657085;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}
.glcm-acc-table td {
  padding: 7px 9px;
  border-top: 1px solid #edf0f4;
  font-size: 12px;
}
.glcm-acc-table th:first-child,
.glcm-acc-table td:first-child {
  width: 36px;
  text-align: center;
  color: #8b93a1;
}
.glcm-acc-table th:last-child,
.glcm-acc-table td:last-child { width: 72px; }
.glcm-acc-table input {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #dbe0e8;
  border-radius: 7px;
  font: 12px inherit;
  color: #1f2430;
}
.glcm-acc-table input:focus {
  outline: 0;
  border-color: #6d3fe0;
  box-shadow: 0 0 0 3px rgba(109, 63, 224, 0.12);
}
.glcm-acc-table input.is-error {
  border-color: #ef4444;
  background: #fff7f7;
}
.glcm-acc-state {
  white-space: nowrap;
  color: #9aa3b1;
  font-size: 11px;
}
.glcm-acc-state.ok {
  color: #059669;
  font-weight: 700;
}
.glcm-acc-status {
  min-height: 16px;
  margin: 0;
  color: #687386;
  font-size: 12px;
}
.glcm-acc-status.is-err { color: #dc2626; }
.glcm-acc-status.is-ok { color: #059669; }
@media (max-width: 640px) {
  .glcm-grid,
  .glcm-choice,
  .glcm-choice--3 { grid-template-columns: minmax(0, 1fr); }
  .glcm-sum { grid-template-columns: minmax(0, 1fr); }
  .glcm-sum em { text-align: left; }
  .glcm-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .glcm-foot button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }
}
