﻿@font-face { font-family: "OCRB"; src: url(../../font/OCR-B.ttf) format("truetype"); font-display: swap; }
.mg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 24px; align-items: start; }
.mg__form, .mg__out { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 22px; background: var(--navy-700); box-shadow: inset 0 0 0 1px var(--navy-600); }
.mg__out { position: sticky; top: calc(var(--header-h, 68px) + 16px); }
.mg__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mg__quick-l { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--periwinkle); margin-right: 4px; }
.mg__chip { padding: 7px 14px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 500; color: var(--white); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--navy-600); cursor: pointer; transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.mg__chip:hover { background: rgba(0, 81, 255, .18); box-shadow: inset 0 0 0 1px var(--blue); }
.mg__hint { margin: 0; font-size: 14px; line-height: 1.45; color: var(--periwinkle); }
.mg__hint a { color: var(--blue-light); }
.mg__row { display: flex; flex-wrap: wrap; gap: 14px; }
.mg__row > * { flex: 1 1 200px; min-width: 0; }
.mg__row--3 > * { flex: 1 1 110px; }
.mg__field { display: flex; flex-direction: column; gap: 6px; }
.mg__field > span, .mg__legend { font-size: 13px; font-weight: 500; color: var(--periwinkle); }
.mg__in { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 15px; color: var(--white); background: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-600); outline: none; transition: box-shadow var(--dur) var(--ease-out); -webkit-appearance: none; appearance: none; }
.mg__in::placeholder { color: var(--muted); }
.mg__in:focus-visible { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(0, 81, 255, .18); }
.mg__in:disabled { opacity: .45; }
.is-err .mg__in { box-shadow: inset 0 0 0 1px #ff5a6a, 0 0 0 3px rgba(255, 90, 106, .18); }
select.mg__in { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393AADB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
select.mg__in option { color: #07132D; background: #fff; }
.mg__more { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.mg__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mg__pill { position: relative; }
.mg__pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.mg__pill span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--white); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--navy-600); cursor: pointer; transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.mg__pill span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-500); transition: background-color var(--dur) var(--ease-out); }
.mg__pill input:checked + span { background: rgba(0, 81, 255, .18); box-shadow: inset 0 0 0 1px var(--blue); }
.mg__pill input:checked + span::before { background: var(--blue-light); box-shadow: 0 0 8px rgba(66, 126, 255, .8); }
.mg__pill input:focus-visible + span { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(0, 81, 255, .18); }
.mg__chk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--white); cursor: pointer; user-select: none; }
.mg__chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.mg__chk i { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-600); display: grid; place-items: center; transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.mg__chk i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.mg__chk input:checked + i { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.mg__chk input:checked + i::after { opacity: 1; }
.mg__chk input:focus-visible + i { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(0, 81, 255, .18); }
.mg__group { display: flex; flex-direction: column; gap: 10px; }
.mg__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.mg__note { display: none; margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #ffb4bb; background: rgba(255, 90, 106, .12); box-shadow: inset 0 0 0 1px rgba(255, 90, 106, .35); }
.mg__note.is-on { display: block; }
.mg__out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg__out-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.1; color: var(--white); }
.mg__mrz { position: relative; container-type: inline-size; display: grid; gap: 6px; min-height: 120px; padding: 18px 16px; border-radius: 16px; background: var(--white); }
.mg__line { display: none; }
.mg__line input { display: block; width: 100%; padding: 0; border: 0; background: transparent; font-family: "OCRB", "Courier New", monospace; font-size: 14px; font-size: 3.6cqw; line-height: 1.35; color: #0b0f1a; letter-spacing: 0; white-space: pre; outline: none; }
.mg__empty { display: grid; place-items: center; min-height: 84px; padding: 0 10px; text-align: center; font-size: 13px; line-height: 1.5; color: #6b7a99; }
.mg__copy { display: none; align-items: center; gap: 10px; }
.mg__copy .pc-btn { flex: none; }
#copy2 { display: none; font-size: 14px; font-weight: 500; color: var(--blue-light); }
.mg__ctrl { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--navy-600); }
.mg__ctrl-row { display: flex; gap: 10px; }
.mg__ctrl-row .mg__in { flex: 1 1 auto; }
.mg__ctrl-out { min-height: 22px; margin: 0; font-size: 15px; font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; }
.mg__ctrl-out:empty::before { content: "—"; color: var(--muted); }
@media (max-width: 960px) {
  .mg { grid-template-columns: 1fr; }
  .mg__out { position: static; }
}
@media (max-width: 560px) {
  .mg__form, .mg__out { padding: 18px; }
  .mg__actions .pc-btn { flex: 1 1 100%; }
}
.mg__others { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mg__others .tl-other { flex-wrap: nowrap; }
.mg__others .tl-other__text { min-width: 0; }
.mg__others .tl-other .pc-btn { flex: none; }
@media (max-width: 640px) {
  .mg__others .tl-other { flex-wrap: wrap; }
}
.mg__legend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mg__field { position: relative; }
.mg__ic { position: absolute; left: 15px; bottom: 14px; width: 18px; height: 18px; color: var(--blue-light); pointer-events: none; }
.mg__ic + .mg__in { padding-left: 42px; }
.mg__pills { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--navy-900); box-shadow: inset 0 0 0 1px var(--navy-600); }
.mg__pill span { height: 38px; padding: 0 18px; border-radius: 999px; background: transparent; box-shadow: none; }
.mg__pill span::before { display: none; }
.mg__pill input:checked + span { background: var(--blue); box-shadow: none; }
.mg__pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 81, 255, .28); }
.mg__chip { display: inline-flex; align-items: center; }
.mg__group { position: relative; }
.mg__ctrl-row { position: relative; }
.mg__ctrl-row .mg__ic { bottom: 14px; }
.mg__pills { align-self: flex-start; }
