/* MES 팝업·출력: shared styles grouped by publishing role. */

/* resources/css/common.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"], meta[name="mes-style-surface"][content="login"])) {
/* Common report page components */
.report-page {
    gap: 10px;
    min-height: 0;
    height: calc(100vh - 89px);
}

.report-sheet {
    width: 100%;
    flex: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    margin-top: -22px;
}

.sheet-header {
    border-bottom: 2px solid #111827;
    padding-bottom: 8px;
}

.sheet-title {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.sheet-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.report-kpi-card {
    border: 1px solid #cbd5e1;
    border-left: 4px solid #64748b;
    border-radius: 8px;
    padding: 9px 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.report-kpi-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
}

.report-kpi-value {
    margin-top: 5px;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    line-height: 1;
}

.report-kpi-caption {
    margin-top: 6px;
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.report-chart-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.report-chart-card.status-card {
    grid-row: auto;
}

.chart-title {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
}

.chart-subtitle {
    margin-top: 2px;
    font-size: 10px;
    color: #64748b;
}

.chart-canvas-wrap {
    flex: 1;
    min-height: 0;
    margin-top: 8px;
    position: relative;
}

.chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.report-doughnut-box {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    flex: 1;
    min-height: 0;
    margin-top: 8px;
}

.report-chart-legend-vertical {
    display: grid;
    gap: 6px;
    align-content: center;
    min-width: 0;
}

.report-chart-legend-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 2px 0;
    font-size: 11px;
    font-weight: 800;
    color: #111827;
    text-align: left;
}

.report-chart-legend-item.is-hidden {
    opacity: .38;
}

.report-chart-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.report-chart-legend-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-chart-legend-value {
    color: #334155;
    font-weight: 900;
}

.report-doughnut-canvas-wrap {
    position: relative;
    height: 100%;
    min-height: 0;
}

.report-doughnut-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.empty-chart {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}

.board-countdown {
    display: none;
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 3000;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

#boardReloadCountdown {
    min-width: 20px;
    color: #0f172a;
    text-align: right;
}

body.report-board-mode,
body.defect-board-mode {
    overflow: hidden;
}

body.report-board-mode .sidebar,
body.report-board-mode .top-nav,
body.report-board-mode .mes-footer,
body.report-board-mode .navbar,
body.report-board-mode .nav-wrap,
body.report-board-mode footer,
body.report-board-mode .footer,
body.defect-board-mode .sidebar,
body.defect-board-mode .top-nav,
body.defect-board-mode .mes-footer,
body.defect-board-mode .navbar,
body.defect-board-mode .nav-wrap,
body.defect-board-mode footer,
body.defect-board-mode .footer {
    display: none !important;
}

body.report-board-mode .main-content,
body.defect-board-mode .main-content {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.report-board-mode .report-page > .grid-header,
body.report-board-mode .report-page > .report-filter,
body.defect-board-mode .report-page > .grid-header,
body.defect-board-mode .report-page > .report-filter {
    display: none !important;
}

body.report-board-mode .report-sheet > .sheet-header,
body.defect-board-mode .report-sheet > .sheet-header {
    display: none !important;
}

body.report-board-mode .report-sheet,
body.defect-board-mode .report-sheet {
    width: calc(100vw - 100px) !important;
    height: calc(100vh - 100px) !important;
    flex: none !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 50px !important;
}

body.report-board-mode .board-countdown,
body.defect-board-mode .board-countdown {
    display: flex;
}

@media (max-width: 1000px) {
    .report-filter,
    .report-kpi-grid,
    .report-chart-grid,
    .mes-status-kpi-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .report-sheet {
        width: 100%;
        aspect-ratio: auto;
    }
}
}

/* resources/css/popup.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"])) {
/* =========================
   🔥 팝업 오버레이
========================= */
.popup-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;

    background: rgba(0, 0, 0, 0.2);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* =========================
   🔥 팝업 박스
========================= */
.popup-box {
    width: 420px;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 30px;

    background: #ffffff;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.1);

    color: #111827;
    overflow: visible !important;
    position: fixed;
}

/* =========================
   🔥 타이틀바
========================= */
.popup-box h5 {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: #f1f1f1;
    border-bottom: 1px solid #e5e7eb;
    color: #000000;
    cursor: move;
    user-select: none;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0;
}

/* =========================
   🔥 내부 패딩
========================= */
.popup-box > *:not(h5) {
    padding-left: 20px;
    padding-right: 20px;
}

.popup-box > .form-group:first-of-type {
    margin-top: 15px;
}

/* =========================
   🔥 INPUT (선명하게)
========================= */
.popup-box input {
    background: #ffffff;
    border: 1px solid #cbd5e1;   /* 🔥 더 진하게 */
    color: #111827;
    height: 38px;
}

.popup-box input::placeholder {
    color: #9ca3af;
}

.popup-box input:focus {
    border-color: #2f6fed;
    box-shadow: 0 0 0 2px rgba(47,111,237,0.2);
    outline: none;
}

/* =========================
   🔥 버튼
========================= */
.popup-box .btn {
    border-radius: 6px;
    font-size: 13px;
}

/* =========================
   🔥 닫기 버튼 (기본부터 색 표시)
========================= */
.popup-box .btn-secondary {
    background: #e5e7eb;
    color: #111827;
    border: none;
}

/* 🔥 X 아이콘 기본 빨간색 */
.popup-box .btn-secondary i {
    color: #ef4444;
}

/* hover */
.popup-box .btn-secondary:hover {
    background: #fee2e2;
}

.popup-box .btn-secondary:hover i {
    color: #dc2626;
}

/* =========================
   🔥 저장 버튼
========================= */
.popup-box .btn-success {
    background: #2f6fed;
    color: #ffffff;
    border: none;
}

/* 🔥 체크 아이콘 기본 흰색 유지 */
.popup-box .btn-success i {
    color: #2f6fed;
}

/* 🔥 체크 아이콘 기본 흰색 유지 */
.popup-box .btn-add i {
    color: #3fed2f;
}

.popup-box .btn-success:hover {
    background: #1e4ed8;
}

/* =========================
   🔥 버튼 영역
========================= */
.popup-box .text-end,
.popup-box .d-flex {
    margin-top: 20px;
}

/* =========================
   🔥 FORM
========================= */
.form-group {
    margin-bottom: 12px;
}

/* 🔥 라벨 검정 */
.form-group label {
    display: block;
    font-size: 12px;
    color: #000000;   /* 🔥 변경 */
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
}
}

/* resources/css/excel-grid-popup.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"])) {
.mes-excel-popup {
    width: min(1180px, calc(100vw - 38px));
    max-width: none;
    max-height: calc(100vh - 42px);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    border-radius: 10px;
    overflow: hidden !important;
}
.mes-excel-popup > *:not(h5) { padding-left: 0 !important; padding-right: 0 !important; }
.mes-excel-popup > h5 { flex: 0 0 38px; width: 100%; min-height: 38px; max-height: 38px; color: #eef2ef; background: #217346; border-bottom-color: #185c37; border-radius: 10px 10px 0 0; }
.mes-excel-popup > h5:hover { background: #1b633b; }
.mes-excel-popup > .mes-excel-actions { flex: 0 0 auto; margin: 12px 14px !important; }
.mes-excel-popup > .mes-excel-actions .btn { margin: 0 2px; }
.mes-excel-popup .mes-excel-submit { color: #374151 !important; background: #fff !important; border-color: #217346 !important; }
.mes-excel-popup .mes-excel-submit:hover, .mes-excel-popup .mes-excel-submit:focus, .mes-excel-popup .mes-excel-submit:active { color: #374151 !important; background: #fff !important; border-color: #16a34a !important; box-shadow: 0 0 7px rgba(22,163,74,.78), 0 0 15px rgba(34,197,94,.52), 0 0 25px rgba(34,197,94,.28) !important; }
.mes-excel-popup .mes-excel-submit:hover i, .mes-excel-popup .mes-excel-submit:focus i { color: #16a34a !important; filter: drop-shadow(0 0 4px rgba(34,197,94,.6)); }
.mes-excel-popup .mes-excel-submit i { display: inline-block; margin-left: 6px; color: #217346 !important; font-size: 15px !important; }
.mes-excel-popup .mes-excel-close { color: #dc2626 !important; background: #fff !important; border-color: #dc2626 !important; }
.mes-excel-popup .mes-excel-close:hover, .mes-excel-popup .mes-excel-close:focus, .mes-excel-popup .mes-excel-close:active { color: #b91c1c !important; background: #fff7f7 !important; border-color: #dc2626 !important; box-shadow: 0 0 7px rgba(220,38,38,.5), 0 0 14px rgba(239,68,68,.28) !important; }
.mes-excel-popup .mes-excel-close i { color: #dc2626 !important; }
.mes-excel-close-confirm-actions { gap: 10px; }
.mes-excel-close-confirm-actions .mes-excel-confirm-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 36px; padding: 0; background: #fff !important; border: 1px solid; border-radius: 6px; }
.mes-excel-close-confirm-actions .mes-excel-confirm-button.is-cancel { color: #dc2626 !important; border-color: #dc2626 !important; }
.mes-excel-close-confirm-actions .mes-excel-confirm-button.is-cancel:hover, .mes-excel-close-confirm-actions .mes-excel-confirm-button.is-cancel:focus { background: #fff7f7 !important; box-shadow: 0 0 7px rgba(220,38,38,.45) !important; }
.mes-excel-close-confirm-actions .mes-excel-confirm-button.is-confirm { color: #2563eb !important; border-color: #2563eb !important; }
.mes-excel-close-confirm-actions .mes-excel-confirm-button.is-confirm:hover, .mes-excel-close-confirm-actions .mes-excel-confirm-button.is-confirm:focus { background: #eff6ff !important; box-shadow: 0 0 7px rgba(37,99,235,.45) !important; }
.mes-excel-close-confirm-actions .mes-excel-confirm-button i { color: currentColor !important; }
.mes-excel-table-wrap { position: relative; flex: 1; max-height: 607px; overflow-x: hidden; overflow-y: auto; border: 1px solid #a6a6a6; border-radius: 0; background: #fff; }
.mes-excel-popup > .mes-excel-table-wrap { width: 100%; margin: 0; padding: 0; }
.mes-excel-table { width: 100%; min-width: 0; max-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.mes-excel-table th { position: sticky; z-index: 3; padding: 0 5px; border-right: 1px solid #b7b7b7; border-bottom: 1px solid #a6a6a6; color: #111; background: #e7e7e7; text-align: center; font-weight: 600; }
.mes-excel-column-row, .mes-excel-column-row th { height: 24px; min-height: 24px; max-height: 24px; }
.mes-excel-column-row th { top: 0; font-size: 11px; font-weight: 500; }
.mes-excel-label-row, .mes-excel-label-row th { height: 42px; min-height: 42px; max-height: 42px; }
.mes-excel-label-row th { top: 24px; background: #d9d9d9; font-size: 12px; }
.mes-excel-table tbody tr { height: 36px; }
.mes-excel-table td { height: 36px; min-height: 36px; padding: 0; border-right: 1px solid #d0d0d0; border-bottom: 1px solid #d0d0d0; vertical-align: middle; background: #fff; }
.mes-excel-table th:last-child, .mes-excel-table td:last-child { border-right: 0; }
.mes-excel-table [data-excel-grid-column], .mes-excel-table [data-excel-grid-label-column], .mes-excel-table [data-excel-grid-select-all], .mes-excel-row-number, .mes-excel-cell { cursor: cell; }
.mes-excel-table th:focus, .mes-excel-table td:focus { outline: 0; }
.mes-excel-corner { position: sticky; left: 0; z-index: 5 !important; padding: 0 !important; background: #d9d9d9 !important; }
.mes-excel-corner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - .5px), #8c8c8c 50%, transparent calc(50% + .5px)); pointer-events: none; }
.mes-excel-row-label { position: sticky; left: 0; z-index: 4 !important; background: #d9d9d9 !important; }
.mes-excel-row-number { position: sticky; left: 0; z-index: 2; width: 48px; color: #111; background: #e7e7e7 !important; text-align: center; vertical-align: middle !important; font-variant-numeric: tabular-nums; user-select: none; }
.mes-excel-cell { position: relative; }
.mes-excel-cell.is-selected, .mes-excel-cell.is-editing { background: #fff !important; }
.mes-excel-table:not(.is-row-selection):not(.is-column-selection):not(.is-range-selection) .mes-excel-cell.is-selected::after,
.mes-excel-cell.is-editing::after { content: ''; position: absolute; inset: -1px; z-index: 9; border: 2px solid #217346; pointer-events: none; }
.mes-excel-table.is-row-selection .is-selected, .mes-excel-table.is-column-selection .is-selected { color: #111; background: #f0f0f0 !important; }
.mes-excel-table.is-row-selection .mes-excel-cell.is-selected .mes-excel-cell-editor,
.mes-excel-table.is-column-selection .mes-excel-cell.is-selected .mes-excel-cell-editor { background: transparent !important; }
.mes-excel-table.is-row-selection .is-selected { box-shadow: inset 0 2px #217346, inset 0 -2px #217346; }
.mes-excel-table.is-row-selection .is-selected.is-range-start { box-shadow: inset 2px 0 #217346, inset 0 2px #217346, inset 0 -2px #217346; }
.mes-excel-table.is-row-selection .is-selected.is-range-end { box-shadow: inset -2px 0 #217346, inset 0 2px #217346, inset 0 -2px #217346; }
.mes-excel-table.is-column-selection .is-selected { box-shadow: inset 2px 0 #217346, inset -2px 0 #217346; }
.mes-excel-table.is-column-selection .is-selected.is-range-start { box-shadow: inset 2px 0 #217346, inset -2px 0 #217346, inset 0 2px #217346; }
.mes-excel-table.is-column-selection .is-selected.is-range-end { box-shadow: inset 2px 0 #217346, inset -2px 0 #217346, inset 0 -2px #217346; }
.mes-excel-table.is-range-selection .mes-excel-cell.is-selected { background: #f0f0f0 !important; box-shadow: none; }
.mes-excel-table.is-range-selection .mes-excel-row-number.is-selected,
.mes-excel-table.is-range-selection th.is-selected { color: #111; background: #f0f0f0 !important; box-shadow: none; }
.mes-excel-table.is-range-selection .mes-excel-cell.is-selected .mes-excel-cell-editor { background: transparent !important; }
.mes-excel-range-outline { position: fixed; z-index: 12020; display: none; border: 2px solid #217346; pointer-events: none; box-sizing: border-box; }
body.mes-excel-is-dragging, body.mes-excel-is-dragging * { cursor: cell !important; user-select: none !important; }
.mes-excel-cell-editor { width: 100%; min-height: 35px; padding: 8px 7px 6px; overflow: hidden; color: #111; background: transparent; font: inherit; line-height: 20px; text-align: center; white-space: pre; text-overflow: ellipsis; outline: 0; cursor: cell; }
.mes-excel-cell.is-editing .mes-excel-cell-editor { overflow: visible; white-space: pre-wrap; text-overflow: clip; cursor: text; caret-color: #111; }
.mes-excel-cell-editor.is-invalid { color: #991b1b; background: #fff1f2; }
.mes-excel-cell-error { display: none; padding: 2px 4px 0; color: #dc2626; font-size: 9px; line-height: 1.25; white-space: normal; }
.mes-excel-cell-editor.is-invalid + .mes-excel-cell-error { display: block; }
.mes-excel-cell-error:empty { display: none !important; }
.mes-excel-context-menu { position: fixed; z-index: 12050; min-width: 154px; padding: 5px; border: 1px solid #b7b7b7; border-radius: 4px; background: #fff; box-shadow: 0 7px 20px rgba(0,0,0,.18); }
.mes-excel-context-menu button { display: flex; align-items: center; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 3px; color: #111; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.mes-excel-context-menu button[hidden] { display: none; }
.mes-excel-context-menu button:hover, .mes-excel-context-menu button:focus { background: #e9ecef; outline: 0; }
.mes-excel-context-menu button[data-action="remove"] { color: #b91c1c; }
.mes-excel-row-insert { display: grid; grid-template-columns: 58px 1fr; gap: 5px; padding: 5px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.mes-excel-row-insert[hidden] { display: none; }
.mes-excel-row-insert input { width: 58px; height: 32px; padding: 0 6px; border: 1px solid #b7b7b7; border-radius: 3px; color: #111; background: #fff; font-size: 12px; text-align: center; outline: 0; }
.mes-excel-row-insert input:focus { border-color: #217346; box-shadow: 0 0 0 2px rgba(33,115,70,.14); }
.mes-excel-row-insert button[data-action="insert-rows"] { justify-content: center; color: #166534; font-weight: 700; }
.mes-excel-row-insert input:disabled,
.mes-excel-row-insert button:disabled { cursor: not-allowed; opacity: .5; }
.mes-excel-context-menu .mes-excel-menu-link { height: 36px; margin-top: 4px; border-top: 1px solid #dbeafe; border-radius: 0 0 3px 3px; color: #2563eb; font-weight: 700; }
.mes-excel-context-menu .mes-excel-menu-link:hover, .mes-excel-context-menu .mes-excel-menu-link:focus { color: #1d4ed8; background: #eff6ff; }
.mes-excel-required { color: #dc2626; }
.master-registration-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 12px; margin: 12px 14px !important; }
.master-registration-actions .btn { white-space: nowrap; }
.master-registration-popup .mes-excel-label-row small { display: block; margin-top: 1px; color: #397452; font-size: 9px; font-weight: 600; }
@media (max-width: 720px) { .mes-excel-popup { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); padding: 0; } }
@media (max-width: 720px) { .master-registration-actions { align-items: stretch; flex-direction: column; } .master-registration-actions > div { justify-content: flex-end; flex-wrap: wrap; } }
}

/* resources/css/alert.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"])) {
/* ================================
   🔥 커스텀 얼럿 스타일
================================ */

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);
    

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 40000;
}

.alert-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;

    padding: 25px;
    min-width: 280px;

    text-align: center;

    box-shadow:
        0 0 10px rgba(0,0,0,0.5),
        0 0 20px rgba(34, 211, 238, 0.2);
}

.alert-message {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-main);
}

.alert-actions {
    display: flex;
    justify-content: center;
}
}

/* resources/css/coachmark.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"])) {
.coach-btn {
    width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.coach-btn::before {
    content: "?";
    width: 15px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.coach-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    background: transparent;
}

.coach-spotlight {
    position: fixed;
    z-index: 11002;
    border: 2px solid #7dd3fc;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow:
        0 0 7px 2px rgba(186, 230, 253, .98),
        0 0 18px 5px rgba(56, 189, 248, .78),
        0 0 34px 9px rgba(37, 99, 235, .4),
        inset 0 0 12px rgba(125, 211, 252, .38);
    pointer-events: none;
    transition: all .18s ease;
    animation: coach-assistant-neon 1.05s ease-in-out infinite alternate;
}

body.mes-navigation-guided .coach-spotlight {
    border: 2px solid #7dd3fc;
    box-shadow:
        0 0 7px 2px rgba(186, 230, 253, .98),
        0 0 18px 5px rgba(56, 189, 248, .78),
        0 0 34px 9px rgba(37, 99, 235, .4),
        inset 0 0 12px rgba(125, 211, 252, .38);
    animation: coach-assistant-neon 1.05s ease-in-out infinite alternate;
}

@keyframes coach-assistant-neon {
    from { border-color: #bae6fd; filter: brightness(.96); }
    to { border-color: #38bdf8; filter: brightness(1.22); }
}

@media (prefers-reduced-motion: reduce) {
    .coach-spotlight, body.mes-navigation-guided .coach-spotlight { animation: none; }
}

.coach-popover {
    position: fixed;
    z-index: 11003;
    width: min(320px, calc(100vw - 28px));
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    overflow: hidden;
}

.coach-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid #dbeafe;
}

.coach-popover-title {
    font-size: 13px;
    font-weight: 900;
    color: #1d4ed8;
}

.coach-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
}

.coach-popover-body {
    padding: 12px;
    color: #334155;
    font-size: 12px;
    line-height: 1.55;
}

.coach-popover-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.coach-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.mes-master-closing-visual {
    position: fixed;
    z-index: 30003;
    top: 50%;
    left: 50%;
    width: min(720px, calc(100vw - 48px));
    padding: 24px;
    border: 1px solid rgba(125, 211, 252, .82);
    border-radius: 22px;
    color: #0f2747;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.97));
    box-shadow: 0 26px 80px rgba(15,23,42,.3), 0 0 30px rgba(56,189,248,.38), inset 0 0 28px rgba(186,230,253,.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(.94);
    transition: opacity .32s ease, transform .42s cubic-bezier(.2,.8,.2,1), visibility .32s;
}

.mes-master-closing-visual.is-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
body.mes-master-closing-visible .coach-popover { z-index: 30004; }
.mes-master-visual-heading { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 20px; text-align: left; }
.mes-master-visual-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 0 18px rgba(56,189,248,.55); font-size: 11px; font-weight: 950; letter-spacing: .08em; }
.mes-master-visual-heading strong, .mes-master-visual-heading small { display: block; }
.mes-master-visual-heading strong { font-size: 18px; font-weight: 900; letter-spacing: -.025em; }
.mes-master-visual-heading small { margin-top: 3px; color: #64748b; font-size: 11px; font-weight: 700; }
.mes-master-source-grid, .mes-master-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mes-master-source-grid > span, .mes-master-result-grid > span { position: relative; min-width: 0; padding: 14px 10px; border: 1px solid #dbeafe; border-radius: 13px; background: rgba(255,255,255,.92); text-align: center; box-shadow: 0 7px 18px rgba(30,64,175,.08); }
.mes-master-source-grid i { display: grid; place-items: center; width: 25px; height: 25px; margin: 0 auto 7px; border-radius: 50%; color: #0369a1; background: #e0f2fe; font-size: 9px; font-style: normal; font-weight: 900; }
.mes-master-source-grid b, .mes-master-source-grid small, .mes-master-result-grid b, .mes-master-result-grid small { display: block; }
.mes-master-source-grid b, .mes-master-result-grid b { font-size: 13px; font-weight: 900; }
.mes-master-source-grid small, .mes-master-result-grid small { margin-top: 3px; color: #64748b; font-size: 10px; }
.mes-master-result-grid > span { border-color: #bfdbfe; background: linear-gradient(145deg, #eff6ff, #fff); }
.mes-master-result-grid b { color: #1d4ed8; }
.mes-master-flow { position: relative; height: 58px; display: grid; place-items: center; overflow: hidden; }
.mes-master-flow span { position: absolute; top: 12px; bottom: 12px; left: 50%; width: 2px; background: linear-gradient(#7dd3fc, #2563eb); transform: translateX(-50%); }
.mes-master-flow i { position: absolute; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 11px 3px rgba(56,189,248,.72); transform: translateX(-50%); animation: mes-master-flow-pulse 1.35s ease-in-out infinite; }
.mes-master-flow em { position: relative; z-index: 1; padding: 4px 10px; border: 1px solid #bae6fd; border-radius: 999px; color: #0369a1; background: rgba(240,249,255,.96); font-size: 10px; font-style: normal; font-weight: 900; }
.mes-master-closing-visual > p { margin: 17px 0 0; color: #1e3a8a; font-size: 12px; font-weight: 850; text-align: center; }
.mes-master-closing-visual.is-active .mes-master-source-grid > span { animation: mes-master-card-in .55s both; }
.mes-master-closing-visual.is-active .mes-master-source-grid > span:nth-child(2) { animation-delay: .08s; }
.mes-master-closing-visual.is-active .mes-master-source-grid > span:nth-child(3) { animation-delay: .16s; }
.mes-master-closing-visual.is-active .mes-master-source-grid > span:nth-child(4) { animation-delay: .24s; }
.mes-master-closing-visual.is-active .mes-master-result-grid > span { animation: mes-master-card-in .55s .32s both; }
.mes-master-closing-visual.is-active .mes-master-result-grid > span:nth-child(2) { animation-delay: .4s; }
.mes-master-closing-visual.is-active .mes-master-result-grid > span:nth-child(3) { animation-delay: .48s; }
.mes-master-closing-visual.is-active .mes-master-result-grid > span:nth-child(4) { animation-delay: .56s; }
@keyframes mes-master-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mes-master-flow-pulse { 0% { top: 9px; opacity: .2; } 35% { opacity: 1; } 100% { top: 42px; opacity: .2; } }

@media (max-width: 620px) {
    .mes-master-closing-visual { width: calc(100vw - 24px); padding: 17px 14px; }
    .mes-master-source-grid, .mes-master-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .mes-master-source-grid > span, .mes-master-result-grid > span { padding: 9px 7px; }
    .mes-master-flow { height: 42px; }
    .mes-master-flow span { top: 5px; bottom: 5px; }
    .mes-master-flow i { animation-name: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mes-master-closing-visual, .mes-master-closing-visual.is-active .mes-master-source-grid > span, .mes-master-closing-visual.is-active .mes-master-result-grid > span, .mes-master-flow i { animation: none; transition-duration: .04s; }
}

.mes-management-guide-visual {
    position: fixed;
    z-index: 30003;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 48px));
    padding: 24px;
    border: 1px solid rgba(125,211,252,.86);
    border-radius: 22px;
    color: #102a56;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,249,255,.97));
    box-shadow: 0 26px 80px rgba(15,23,42,.3), 0 0 30px rgba(56,189,248,.38), inset 0 0 28px rgba(186,230,253,.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(.94);
    transition: opacity .3s ease, transform .42s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.mes-management-guide-visual.is-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
body.mes-management-guide-visual-visible .coach-popover { z-index: 30004; }
.mes-management-visual-heading { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 20px; }
.mes-management-visual-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #06b6d4, #2563eb); box-shadow: 0 0 19px rgba(56,189,248,.58); font-size: 10px; font-weight: 950; letter-spacing: .06em; }
.mes-management-visual-heading strong, .mes-management-visual-heading small { display: block; }
.mes-management-visual-heading strong { font-size: 18px; font-weight: 900; letter-spacing: -.025em; }
.mes-management-visual-heading small { margin-top: 3px; color: #64748b; font-size: 11px; font-weight: 700; }
.mes-management-guide-visual > p { margin: 18px 0 0; color: #1e3a8a; font-size: 12px; font-weight: 850; text-align: center; }
.mes-permission-flow { display: grid; grid-template-columns: 1fr 38px 1.15fr 38px 1.25fr; align-items: center; gap: 8px; }
.mes-permission-tenant, .mes-permission-user, .mes-permission-menu { min-height: 112px; padding: 15px; border: 1px solid #dbeafe; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 8px 20px rgba(30,64,175,.08); }
.mes-permission-tenant, .mes-permission-user { display: grid; place-content: center; text-align: center; }
.mes-permission-tenant small, .mes-permission-user small { color: #64748b; font-size: 10px; }
.mes-permission-tenant b, .mes-permission-user b { margin-top: 5px; color: #1d4ed8; font-size: 15px; }
.mes-permission-user em { margin-top: 7px; color: #0284c7; font-size: 9px; font-style: normal; font-weight: 850; }
.mes-flow-arrow { color: #38bdf8; font-size: 25px; font-style: normal; font-weight: 900; text-align: center; filter: drop-shadow(0 0 7px rgba(56,189,248,.75)); animation: mes-management-arrow 1.1s ease-in-out infinite alternate; }
.mes-permission-menu { display: grid; align-content: center; gap: 7px; }
.mes-permission-menu span { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.mes-permission-menu span b { font-size: 9px; }
.mes-permission-menu .is-allowed { color: #047857; background: #ecfdf5; }
.mes-permission-menu .is-denied { color: #64748b; background: #f1f5f9; }
.mes-permission-menu .is-allowed b::before { content: '✓ '; }
.mes-permission-menu .is-denied b::before { content: '× '; }
.mes-code-flow-list { display: grid; gap: 10px; }
.mes-code-flow-row { display: grid; grid-template-columns: minmax(175px, 1fr) 110px minmax(175px, 1fr); align-items: center; gap: 11px; }
.mes-code-source, .mes-code-result { min-height: 78px; display: grid; align-content: center; padding: 11px 14px; border: 1px solid #dbeafe; border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 6px 17px rgba(30,64,175,.07); }
.mes-code-source { position: relative; padding-left: 55px; }
.mes-code-source > i { position: absolute; top: 50%; left: 13px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #0369a1; background: #e0f2fe; font-size: 9px; font-style: normal; font-weight: 900; transform: translateY(-50%); }
.mes-code-source b, .mes-code-source small, .mes-code-result b, .mes-code-result small { display: block; }
.mes-code-source b, .mes-code-result b { color: #1e3a8a; font-size: 12px; font-weight: 900; }
.mes-code-source small, .mes-code-result small { margin-top: 3px; color: #64748b; font-size: 9px; }
.mes-code-line { position: relative; height: 2px; background: #bae6fd; }
.mes-code-line::after { content: ''; position: absolute; top: 50%; right: -2px; width: 8px; height: 8px; border-top: 2px solid #38bdf8; border-right: 2px solid #38bdf8; transform: translateY(-50%) rotate(45deg); }
.mes-code-line i { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 11px 3px rgba(56,189,248,.65); transform: translateY(-50%); animation: mes-code-data-flow 1.45s linear infinite; }
.mes-code-flow-row:nth-child(2) .mes-code-line i { animation-delay: .28s; }
.mes-code-flow-row:nth-child(3) .mes-code-line i { animation-delay: .56s; }
.mes-management-guide-visual.is-closing .mes-code-result { animation: mes-management-card-glow 1.15s ease-in-out infinite alternate; }
@keyframes mes-management-arrow { from { opacity: .45; transform: translateX(-3px); } to { opacity: 1; transform: translateX(3px); } }
@keyframes mes-code-data-flow { from { left: 0; opacity: .25; } 20%, 80% { opacity: 1; } to { left: calc(100% - 7px); opacity: .25; } }
@keyframes mes-management-card-glow { from { border-color: #dbeafe; } to { border-color: #38bdf8; box-shadow: 0 0 16px rgba(56,189,248,.3); } }

@media (max-width: 650px) {
    .mes-management-guide-visual { width: calc(100vw - 24px); padding: 17px 14px; }
    .mes-permission-flow { grid-template-columns: 1fr; }
    .mes-flow-arrow { transform: rotate(90deg); animation: none; line-height: 18px; }
    .mes-permission-tenant, .mes-permission-user, .mes-permission-menu { min-height: auto; }
    .mes-code-flow-row { grid-template-columns: 1fr 35px 1fr; gap: 6px; }
    .mes-code-line { width: 35px; }
    .mes-code-source, .mes-code-result { min-height: 68px; padding: 8px; }
    .mes-code-source { padding-left: 8px; }
    .mes-code-source > i { position: static; width: fit-content; height: auto; margin-bottom: 3px; padding: 2px 5px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mes-management-guide-visual, .mes-flow-arrow, .mes-code-line i, .mes-management-guide-visual.is-closing .mes-code-result { animation: none; transition-duration: .04s; }
}
}

/* assistant/assets/css/voice-command.css */
@scope (html:has(meta[name="mes-style-feature"][content="assistant"]):has(meta[name="mes-style-surface"][content="app"], meta[name="mes-style-surface"][content="login"])) {
#mesChatLauncher {
    position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 12001; width: 104px; height: 146px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
    padding: 0; border: 0; border-radius: 18px; color: #1e3a5f; background: transparent; cursor: grab; touch-action: none; user-select: none;
    filter: drop-shadow(0 8px 12px rgba(30,64,175,.18));
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
#mesChatLauncher[aria-expanded="true"] { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.96); }
#mesChatLauncher:hover { background: transparent; }
#mesChatLauncher.is-dragging { cursor: grabbing; transition: none; filter: drop-shadow(0 10px 16px rgba(37,99,235,.3)); }
#mesChatLauncher.is-dragging .mes-assistant-robot-svg { transform: scale(1.03); }
#mesChatLauncher.is-assist-launcher { width: 104px; min-width: 0; height: 146px; padding: 0; border-radius: 18px; }
#mesChatLauncher .mes-assistant-robot-svg { display: block; width: 78px; height: 117px; flex: 0 0 117px; overflow: visible; transform-origin: 50% 88%; transition: transform .18s ease, filter .18s ease; animation: mes-assistant-idle 4.8s ease-in-out infinite; }
#mesChatLauncher:hover .mes-assistant-robot-svg { animation-play-state: paused; transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 5px 8px rgba(37,99,235,.22)); }
#mesChatLauncher.is-speaking .mes-assistant-robot-svg { animation: mes-assistant-speaking .62s ease-in-out infinite alternate; filter: drop-shadow(0 5px 9px rgba(37,99,235,.25)); }
#mesChatLauncher.is-dragging .mes-assistant-robot-svg { animation: none; }
#mesChatLauncher.is-trick-walk .mes-assistant-robot-svg { animation: mes-assistant-walk 2.6s ease-in-out both; }
#mesChatLauncher.is-trick-jump .mes-assistant-robot-svg { animation: mes-assistant-jump 1.35s cubic-bezier(.32,.05,.2,1) both; }
#mesChatLauncher.is-trick-wave .mes-assistant-robot-svg { animation: mes-assistant-wave-body 2.2s ease-in-out both; }
#mesChatLauncher.is-trick-wave .mes-robot-arm-left { transform-origin: 27px 101px; animation: mes-assistant-wave-arm-left 2.2s ease-in-out both; }
#mesChatLauncher.is-trick-wave .mes-robot-arm-right { transform-origin: 93px 101px; animation: mes-assistant-wave-arm-right 2.2s ease-in-out both; }
#mesChatLauncher.is-trick-look .mes-assistant-robot-svg { animation: mes-assistant-look-body 2.4s ease-in-out both; }
#mesChatLauncher.is-trick-look .mes-robot-antenna,
#mesChatLauncher.is-trick-look .mes-robot-antenna-light,
#mesChatLauncher.is-trick-look .mes-robot-ear,
#mesChatLauncher.is-trick-look .mes-robot-head,
#mesChatLauncher.is-trick-look .mes-robot-face,
#mesChatLauncher.is-trick-look .mes-robot-eye,
#mesChatLauncher.is-trick-look .mes-robot-mouth { animation: mes-assistant-look-head 2.4s ease-in-out both; }
#mesChatLauncher.is-plan-locked,
#mesChatLauncher.is-plan-locked:hover { border: 1px solid #cbd5e1; color: #64748b; background: #e5e7eb; box-shadow: 0 5px 16px rgba(71,85,105,.16); cursor: not-allowed; filter: grayscale(1); opacity: .82; }
#mesChatLauncher.is-plan-locked svg { opacity: .7; }
.mes-launcher-label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 25px; padding: 4px 8px; border: 1px solid #bfdbfe; border-radius: 999px; color: #1e3a5f; background: rgba(255,255,255,.96); box-shadow: 0 4px 12px rgba(30,64,175,.13); white-space: nowrap; text-align: center; font-size: 10px; font-weight: 900; line-height: 1; }
.mes-launcher-label small { display: inline-grid; place-items: center; min-width: 21px; height: 16px; padding: 0 4px; border-radius: 5px; color: #fff; background: #2563eb; font-size: 9px; font-weight: 900; opacity: 1; }
.mes-launcher-speech { position: absolute; z-index: 2; top: 10px; right: calc(100% - 12px); width: max-content; max-width: min(210px, calc(100vw - 130px)); padding: 10px 13px; border: 1px solid #bfdbfe; border-radius: 14px; color: #1e3a5f; background: rgba(255,255,255,.98); box-shadow: 0 8px 24px rgba(30,64,175,.16); font-size: 12px; font-weight: 800; line-height: 1.4; text-align: left; white-space: normal; word-break: keep-all; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(5px) scale(.96); transform-origin: right center; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.mes-launcher-speech::after { content: ""; position: absolute; top: 24px; right: -7px; width: 12px; height: 12px; border-top: 1px solid #bfdbfe; border-right: 1px solid #bfdbfe; background: #fff; transform: rotate(45deg); }
.mes-launcher-speech.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mes-launcher-speech.is-right { right: auto; left: calc(100% - 12px); transform-origin: left center; }
.mes-launcher-speech.is-right::after { right: auto; left: -7px; border: 0; border-bottom: 1px solid #bfdbfe; border-left: 1px solid #bfdbfe; }
.mes-login-arrival-curtain { position: fixed; z-index: 12000; inset: 0; opacity: 1; pointer-events: none; background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.99) 0 17%, rgba(224,242,254,.97) 43%, rgba(219,234,254,.98) 72%, #dbeafe 100%); transition: opacity .9s ease; }
.mes-login-arrival-curtain::after { content: ""; position: absolute; inset: 0; opacity: .32; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(37,99,235,.08) 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(37,99,235,.08) 80px); }
.mes-login-arrival-curtain.is-revealing { opacity: 0; }
@keyframes mes-assistant-idle {
    0%, 100% { transform: translateY(0) rotate(0); }
    28% { transform: translateY(-3px) rotate(-1.2deg); }
    62% { transform: translateY(-1px) rotate(1deg); }
    82% { transform: translateY(-4px) rotate(.4deg); }
}
@keyframes mes-assistant-speaking {
    from { transform: translateY(-2px) rotate(-1deg) scale(1.01); }
    to { transform: translateY(-5px) rotate(1.2deg) scale(1.035); }
}
@keyframes mes-assistant-walk {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0); }
    12% { transform: translateX(-8px) translateY(-3px) rotate(-3deg); }
    24% { transform: translateX(-16px) translateY(0) rotate(2deg); }
    38% { transform: translateX(-23px) translateY(-3px) rotate(-2deg); }
    52% { transform: translateX(-15px) translateY(0) rotate(2deg); }
    66% { transform: translateX(-6px) translateY(-3px) rotate(-2deg); }
    80% { transform: translateX(7px) translateY(0) rotate(2deg); }
    90% { transform: translateX(12px) translateY(-3px) rotate(-2deg); }
}
@keyframes mes-assistant-jump {
    0%, 100% { transform: translateY(0) scale(1); }
    12% { transform: translateY(3px) scale(1.05,.94); }
    42% { transform: translateY(-31px) scale(.97,1.04) rotate(-3deg); }
    62% { transform: translateY(-31px) scale(.97,1.04) rotate(3deg); }
    88% { transform: translateY(3px) scale(1.06,.93); }
}
@keyframes mes-assistant-wave-body {
    0%, 100% { transform: translateY(0) rotate(0); }
    18%, 82% { transform: translateY(-2px) rotate(-1.5deg); }
}
@keyframes mes-assistant-wave-arm-right {
    0%, 12%, 88%, 100% { transform: rotate(0); }
    24% { transform: rotate(-42deg); }
    38% { transform: rotate(-24deg); }
    52% { transform: rotate(-46deg); }
    66% { transform: rotate(-25deg); }
    78% { transform: rotate(-42deg); }
}
@keyframes mes-assistant-wave-arm-left {
    0%, 12%, 88%, 100% { transform: rotate(0); }
    24% { transform: rotate(42deg); }
    38% { transform: rotate(24deg); }
    52% { transform: rotate(46deg); }
    66% { transform: rotate(25deg); }
    78% { transform: rotate(42deg); }
}
@keyframes mes-assistant-look-body {
    0%, 100% { transform: translateY(0); }
    20%, 80% { transform: translateY(-2px); }
}
@keyframes mes-assistant-look-head {
    0%, 12%, 88%, 100% { transform: translateX(0); }
    28%, 42% { transform: translateX(-4px); }
    58%, 72% { transform: translateX(4px); }
}
#mesChatLauncher:focus-visible, .voice-command-popup button:focus-visible,
.voice-command-popup input:focus-visible, .voice-command-popup textarea:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.voice-command-overlay { display: none; position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 12000; }
.voice-command-overlay.show { display: block; }
.voice-command-overlay.is-closing { pointer-events: none; }
.voice-command-popup {
    box-sizing: border-box; display: flex; flex-direction: column; width: min(420px, calc(100vw - 32px));
    height: min(760px, calc(100dvh - 48px)); min-height: 220px; position: relative; overflow: visible;
    filter: opacity(var(--chat-opacity, 1));
    background: #fff; color: #172033; border: 1px solid #dbe3ef; border-radius: 18px;
    box-shadow: 0 12px 48px rgba(15,23,42,.2); font-size: 13px;
}
.voice-command-popup *, .voice-command-popup *::before, .voice-command-popup *::after { box-sizing: border-box; }
.voice-command-header { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; border-bottom: 1px solid #edf2f7; flex-shrink: 0; cursor: grab; touch-action: none; user-select: none; }
.voice-command-popup.is-dragging .voice-command-header { cursor: grabbing; }
.mes-assistant-heading { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.voice-command-title { font-size: 16px; font-weight: 800; }
.mes-assistant-description { color: #64748b; font-size: 11px; font-weight: 600; line-height: 1.35; }
.voice-command-close { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: #f1f5f9; color: #475569; line-height: 1; cursor: pointer; }
.voice-command-close svg { display: block; }
.mes-order-draft-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mes-order-draft-header h2 { margin: 0 !important; }
.mes-draft-toggle { position: absolute; top: 16px; left: -25px; z-index: 2; display: grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 1px solid #dbe3ef; border-right: 0; border-radius: 9px 0 0 9px; color: #2563eb; background: #fff; box-shadow: -4px 2px 10px rgba(30,64,175,.08); cursor: pointer; transition: background .18s ease, color .18s ease; }
.mes-draft-toggle:hover { background: #eff6ff; color: #1d4ed8; }
.mes-draft-toggle svg { transition: transform .18s ease; }
.mes-draft-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mes-draft-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mes-draft-toggle svg { transition: none; } }
@media (max-width: 480px) { .mes-draft-toggle { left: -10px; border-right: 1px solid #dbe3ef; border-radius: 9px; } }
.mes-chat-status-row { display: flex; align-items: center; gap: 8px; padding-right: 18px; flex-shrink: 0; }
.voice-command-status { flex: 1; min-width: 0; padding: 10px 18px; color: #64748b; font-size: 12px; min-height: 36px; overflow-wrap: anywhere; }
.mes-thinking { display: inline-flex; align-items: center; gap: 8px; }
.mes-thinking-dots { display: inline-flex; align-items: center; gap: 4px; }
.mes-thinking-dots i { width: 4px; height: 4px; border-radius: 50%; background: #64748b; animation: mes-thinking-dot .75s ease-in-out infinite; }
.mes-thinking-dots i:nth-child(2) { animation-delay: .15s; }
.mes-thinking-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mes-thinking-dot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .mes-thinking-dots i { animation: none; } }
#mesChatReset { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; line-height: 1; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #64748b; cursor: pointer; }
#mesChatReset svg { display: block; flex-shrink: 0; width: 16px; height: 16px; margin: 0; transition: transform .22s ease; }
#mesChatReset:hover { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
#mesChatReset:hover svg { transform: rotate(45deg); }
#mesChatReset:disabled { opacity: .5; cursor: wait; }
.mes-chat-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; background: #fafbfd; }
.mes-chat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.mes-chat-starters[hidden] { display: none; }
.mes-chat-starters button { width: auto; max-width: 100%; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; color: #1e3a5f; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: background .15s, border-color .15s; }
.mes-chat-starters button:hover { background: #eff6ff; border-color: #93c5fd; }
.mes-chat-starters button.is-free-locked,
.mes-chat-starters button.is-free-locked:hover { border-color: #d9e0ea; color: #94a3b8; background: #f1f5f9; box-shadow: none; cursor: not-allowed; }
.mes-chat-starters .mes-qna-open { order: 99; padding: 10px 12px; border-color: #2563eb; color: #1d4ed8; background: #fff; font-weight: 800; }
.mes-chat-starters .mes-qna-open:hover { border-color: #1d4ed8; color: #1e40af; background: #eff6ff; text-decoration: none; }
.mes-chat-starters .mes-guide-open { order: 98; padding: 10px 12px; border-color: #0ea5e9; color: #0369a1; background: #fff; font-weight: 800; }
.mes-chat-starters .mes-guide-open:hover { border-color: #0284c7; color: #075985; background: #eff6ff; text-decoration: none; }
.mes-assistant-help-choices { margin-top: 8px; padding-bottom: 2px; }
.mes-qna-panel { margin-top: 10px; padding: 14px; border: 1px solid #dbeafe; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(30,64,175,.06); }
.mes-qna-heading { margin-bottom: 8px; color: #172554; font-size: 14px; font-weight: 850; }
.mes-qna-search { display: block; width: 100%; height: 32px; margin-bottom: 10px; padding: 0 9px; border: 1px solid #cbd5e1; border-radius: 8px; color: #172033; background: #fff; font: inherit; font-size: 11px; }
.mes-qna-search:focus { border-color: #60a5fa; outline: 2px solid rgba(96,165,250,.2); }
.mes-qna-list { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.mes-qna-list button { width: fit-content; max-width: 100%; padding: 9px 10px; border: 1px solid #dbe3ef; border-radius: 9px; color: #1e3a5f; background: #f8fafc; font: inherit; text-align: left; line-height: 1.45; overflow-wrap: anywhere; cursor: pointer; }
.mes-qna-list button:hover { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.mes-qna-more { align-self: center; height: 18px; color: #64748b; font-size: 20px; font-weight: 900; line-height: 12px; letter-spacing: 3px; }
.mes-qna-empty { width: 100%; padding: 14px 8px; color: #94a3b8; font-size: 11px; text-align: center; }
.mes-qna-answer .mes-qna-question { display: block; margin: -2px -2px 13px; padding: 0 0 10px; border-bottom: 1px solid #dbeafe; color: #172554; font-size: 14px; font-weight: 850; line-height: 1.5; }
.mes-qna-answer-body { display: grid; gap: 9px; }
.mes-qna-answer-body p { margin: 0; color: #475569; line-height: 1.72; }
.mes-qna-answer-body p + p { padding-top: 9px; border-top: 1px dashed #e2e8f0; }
.mes-qna-answer-body .mes-qna-emphasis { display: inline; margin: 0; color: #1d4ed8; font-size: inherit; font-weight: 850; }
.mes-qna-back { margin-top: 12px; padding: 7px 0; border: 0; color: #2563eb; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.mes-qna-back:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.mes-qna-guide { width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid #93c5fd; border-radius: 9px; color: #fff; background: #2563eb; font: inherit; font-weight: 800; cursor: pointer; }
.mes-qna-guide:hover { border-color: #1d4ed8; background: #1d4ed8; }
.mes-qna-guide:disabled { opacity: .55; cursor: wait; }
.mes-qna-list-back { width: 100%; margin-top: 14px; padding: 10px; border: 1px solid #bfdbfe; border-radius: 9px; text-align: center; background: #eff6ff; }
.mes-qna-list-back:hover { border-color: #93c5fd; background: #dbeafe; text-decoration: none; }
.order-assistant-history { display: flex; flex-direction: column; align-items: flex-start; }
.mes-inline-order { margin: 12px 0; padding: 12px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; overflow: visible; }
.mes-order-draft-body { position: relative; }
.mes-inline-order[hidden] { display: none; }
.mes-inline-order-heading { display: flex; align-items: center; gap: 10px; margin: -12px -12px 10px; padding: 11px 12px; border-bottom: 1px solid #dbeafe; background: linear-gradient(120deg, #eff6ff, #f8fbff); }
.mes-inline-order-heading-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #2563eb, #1d4ed8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 5px 14px rgba(37,99,235,.2); }
.mes-inline-order-heading small { display: block; margin-bottom: 1px; color: #5270a1; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.mes-inline-order-heading h3 { margin: 0; color: #102a56; font-size: 15px; font-weight: 850; letter-spacing: -.02em; }
.mes-order-batch-tabs { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }
.mes-order-batch-tabs[hidden] { display: none; }
.mes-order-batch-tabs > button { min-width: 30px; height: 27px; padding: 0 7px; border: 1px solid #93c5fd; border-radius: 999px; color: #1d4ed8; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.mes-order-batch-tabs > button:hover, .mes-order-batch-tabs > button.is-active { border-color: #2563eb; color: #fff; background: #2563eb; }
.mes-order-batch-tabs > button.is-count-added { animation: mes-order-count-pop .72s cubic-bezier(.2,1.6,.35,1) both; }
@keyframes mes-order-count-pop {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(37,99,235,.35); }
    28% { transform: translateY(-12px) scale(1.32) rotate(-5deg); box-shadow: 0 0 0 7px rgba(37,99,235,.12); }
    52% { transform: translateY(3px) scale(.94) rotate(3deg); }
    72% { transform: translateY(-4px) scale(1.08) rotate(-1deg); }
    100% { transform: translateY(0) scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.mes-order-batch-summary { position: absolute; z-index: 12; right: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); margin: 0; padding: 10px 11px; border: 1px solid #93c5fd; border-radius: 11px 11px 3px 11px; color: #1e3a5f; background: #fff; box-shadow: 0 12px 30px rgba(30,64,175,.2); font-size: 11px; }
.mes-order-batch-summary::before { content: ''; position: absolute; right: 9px; bottom: -7px; width: 12px; height: 12px; border-right: 1px solid #93c5fd; border-bottom: 1px solid #93c5fd; background: #fff; transform: rotate(45deg); }
.mes-order-batch-summary[hidden] { display: none; }
.mes-order-batch-summary > strong { position: relative; display: block; margin-bottom: 5px; color: #1e40af; }
.mes-order-batch-summary ol { max-height: 132px; margin: 0; padding-left: 20px; overflow-y: auto; }
.mes-order-batch-summary li { position: relative; padding: 5px 30px 5px 0; }
.mes-order-batch-summary li > div { min-width: 0; }
.mes-order-batch-summary li::marker { color: #1d4ed8; font-weight: 800; }
.mes-order-batch-summary li + li { border-top: 1px solid #dbeafe; }
.mes-order-batch-summary li strong { margin-bottom: 1px; color: #1d4ed8; }
.mes-order-batch-summary li span { display: block; color: #475569; }
.mes-order-batch-remove { position: absolute; top: 50%; right: 0; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; color: #dc2626; background: transparent; font-size: 18px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.mes-order-batch-remove:hover { color: #991b1b; background: transparent; }
.mes-order-batch-register { display: block; width: max-content; margin: 8px 0 0 auto; padding: 7px 14px; border: 0; border-radius: 7px; color: #fff; background: #1d4ed8; font-weight: 800; cursor: pointer; }
.mes-order-batch-register:hover { background: #1e40af; }
.mes-inline-order table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.mes-inline-order th { width: 44px; text-align: left; font-weight: 600; }
.mes-inline-order td, .mes-inline-order th { padding: 6px 3px; border-bottom: 1px solid #edf2f7; }
.mes-inline-order td:last-child { width: 68px; text-align: right; white-space: nowrap; }
.mes-inline-order input { box-sizing: border-box; width: 100%; min-width: 0; height: 32px; padding: 5px 7px; font: inherit; border: 1px solid #dbe3ef; border-radius: 6px; color: #172033; background: #fff; }
.mes-order-autocomplete { position: relative; }
.mes-order-autocomplete-list { position: absolute; z-index: 8; top: calc(100% + 4px); left: 0; right: 0; max-height: 112px; overflow-y: auto; padding: 4px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.14); scrollbar-width: thin; }
.mes-order-autocomplete-list[hidden] { display: none; }
.mes-order-autocomplete-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 7px 8px; border: 0; border-radius: 6px; color: #172033; background: transparent; text-align: left; cursor: pointer; }
.mes-order-autocomplete-list button:hover, .mes-order-autocomplete-list button.is-active { background: #eff6ff; color: #1d4ed8; }
.mes-order-autocomplete-list strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mes-order-autocomplete-list small { flex-shrink: 0; color: #64748b; font-size: 10px; }
.mes-order-autocomplete.is-complete input { padding-right: 30px; border-color: #22c55e; background: #f0fdf4; box-shadow: 0 0 0 1px rgba(34,197,94,.12); }
.mes-order-autocomplete.is-complete::after { content: "✓"; position: absolute; z-index: 1; top: 16px; right: 9px; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #22c55e; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; transform: translateY(-50%); pointer-events: none; }
.mes-order-autocomplete.is-unregistered input { border-color: #f59e0b; background: #fff7ed; box-shadow: 0 0 0 1px rgba(245,158,11,.12); }
.mes-order-reference-hint { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; line-height: 1.4; }
.mes-order-reference-hint[hidden] { display: none; }
.mes-order-reference-hint.is-registered { color: #15803d; }
.mes-order-reference-hint.is-unregistered { color: #d97706; }
.mes-order-reference-hint.is-checking { color: #64748b; }
.mes-inline-order a { color: #2563eb; text-decoration: none; font-size: 11px; }
.mes-order-form-status { margin: 7px 0; min-height: 14px; font-size: 11px; color: #64748b; }
.mes-order-form-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mes-order-form-actions button { padding: 7px 15px; border: 1px solid #dbe3ef; border-radius: 7px; cursor: pointer; }
.mes-order-save { background: #1d4ed8; color: white; }
.mes-order-cancel { background: #fff; color: #64748b; }
.mes-inline-order :disabled { opacity: .6; cursor: wait; }
.mes-inline-order.is-archived input:disabled { opacity: 1; color: #334155; background: #f8fafc; cursor: default; }
.mes-inline-order.is-archived button:disabled { cursor: default; }
.order-assistant-message { width: fit-content; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; padding: 12px; margin-bottom: 10px; border-radius: 12px 12px 12px 3px; background: #edf2f7; }
.order-assistant-message.user { align-self: flex-end; background: #e6efff; margin-left: auto; border-radius: 12px 12px 3px 12px; color: #1e3a5f; }
.mes-order-completion-countdown { margin-left: auto; color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.mes-order-completion-countdown[hidden] { display: none; }
.mes-order-draft-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.order-assistant-controls dl[hidden] { display: none; }
.mes-product-lookup-link { display: block; width: fit-content; margin: 0 0 12px 4px; color: #1d4ed8; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.mes-product-lookup-link[hidden] { display: none; }
.mes-product-lookup-link:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.order-assistant-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.mes-order-draft-popup {
    box-sizing: border-box; position: absolute; right: calc(100% + 16px); bottom: 0;
    width: 380px; max-height: 100%; overflow: visible; overscroll-behavior: contain;
    padding: 0; border: 0; border-radius: 18px;
    background: transparent; color: #172033; font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
    .mes-order-batch-tabs > button.is-count-added { animation: none; }
}
.mes-order-draft-popup[hidden] { display: none; }
.mes-order-draft-popup *, .mes-order-draft-popup *::before, .mes-order-draft-popup *::after { box-sizing: border-box; }
.mes-order-draft-popup .mes-inline-order { width: 100%; margin: 0; box-shadow: 0 12px 48px rgba(15,23,42,.2); }
.mes-order-draft-popup h2 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.mes-order-draft-hint { margin: 0 0 16px; font-size: 12px; line-height: 1.6; color: #64748b; }
.mes-order-draft-popup button:focus-visible, .mes-order-draft-popup a:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.order-assistant-controls dl { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 5px 10px; width: 100%; margin: 0 0 8px; padding: 12px; border: 1px solid #dbeafe; border-radius: 10px; background: #fff; }
.order-assistant-controls dt, .order-assistant-controls dd { margin: 0; overflow-wrap: anywhere; }
.order-assistant-controls dt { color: #64748b; font-weight: 500; }
.order-assistant-controls dd.is-missing { color: #dc2626; font-weight: 600; }
.order-assistant-controls dd.is-filled { color: #15803d; font-weight: 600; }
.order-assistant-controls button, .voice-command-suggestions button { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1e40af; padding: 8px 10px; font-size: 12px; cursor: pointer; }
.order-assistant-controls button:disabled { opacity: .5; cursor: wait; }
.order-assistant-controls a { padding: 8px; }
.voice-command-result { margin-top: 10px; }
.voice-command-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.voice-command-suggestions[hidden] { display: none; }
.voice-command-text { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid #edf2f7; flex-shrink: 0; }
.voice-command-text textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 96px; padding: 10px; overflow-y: auto; resize: none; border: 1px solid #dbe3ef; border-radius: 10px; font: inherit; font-size: 13px; line-height: 1.55; color: #172033; background: #fff; }
.voice-command-text button { flex-shrink: 0; height: 42px; border: 0; border-radius: 10px; cursor: pointer; }
#mesChatMic { display: grid; place-items: center; width: 38px; background: #f1f5f9; color: #475569; }
.mes-mic-wrapper { position: relative; display: flex; flex-shrink: 0; }
.mes-mic-hint { position: absolute; left: 0; bottom: calc(100% + 10px); padding: 7px 10px; border-radius: 8px; background: #1d4ed8; color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; box-shadow: 0 3px 10px rgba(15,23,42,.15); }
.mes-mic-hint::after { content: ""; position: absolute; left: 13px; top: 100%; border: 5px solid transparent; border-top-color: #1d4ed8; }
.mes-mic-hint[hidden] { display: none; }
#mesChatLauncher.is-mic-enabled[aria-expanded="false"]::after { content: "음성인식 켜짐"; position: absolute; right: 0; bottom: calc(100% + 10px); padding: 7px 10px; border-radius: 8px; background: #1d4ed8; color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; }
#mesChatMic[aria-pressed="true"] { color: #b91c1c; background: #fee2e2; box-shadow: 0 0 0 2px #fecaca; }
.mes-chat-send { padding: 0 12px; background: #1d4ed8; color: white; }
.voice-command-text.is-free-locked textarea,
.voice-command-text.is-free-locked button:not(.mes-free-control-lock) { color: #94a3b8; background: #eef2f7; opacity: .78; cursor: not-allowed; }
.voice-command-text.is-free-locked textarea { border-color: #d9e0ea; }
.voice-command-text .mes-free-control-lock,
.voice-command-text .mes-free-control-lock:hover { position: absolute; z-index: 3; inset: 6px 8px 0; width: auto; height: auto; padding: 0; border: 0; border-radius: 11px; opacity: 0; background: transparent; cursor: not-allowed; }
.mes-free-plan-hint { position: fixed; z-index: 31000; max-width: 240px; padding: 8px 11px; border: 1px solid #93c5fd; border-radius: 9px; opacity: 0; color: #1d4ed8; background: rgba(239,246,255,.98); box-shadow: 0 7px 22px rgba(30,64,175,.2); font-size: 11px; font-weight: 800; line-height: 1.45; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.mes-free-plan-hint.is-visible { opacity: 1; transform: translateY(0); }
.voice-command-help { padding: 3px 16px 12px; color: #94a3b8; font-size: 10px; flex-shrink: 0; }
.voice-command-footer { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; flex-shrink: 0; }
.voice-command-footer .voice-command-help { flex: 1; min-width: 0; padding: 3px 0; }
.mes-chat-opacity { appearance: none; -webkit-appearance: none; width: 52px; min-width: 52px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mes-chat-opacity::-webkit-slider-runnable-track { height: 1px; background: #bfc5cc; }
.mes-chat-opacity::-moz-range-track { height: 1px; background: #bfc5cc; }
.mes-chat-opacity::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -5px; border: 1px solid #bfc5cc; border-radius: 50%; background: #fff; }
.mes-chat-opacity::-moz-range-thumb { width: 10px; height: 10px; border: 1px solid #bfc5cc; border-radius: 50%; background: #fff; }
.mes-chat-opacity:hover::-webkit-slider-thumb { border-color: #2563eb; }
.mes-chat-opacity:hover::-moz-range-thumb { border-color: #2563eb; }
@media (max-width: 900px) {
    .voice-command-overlay.has-draft.show { display: flex; flex-direction: column; gap: 12px; height: min(760px, calc(100dvh - 48px)); }
    .voice-command-overlay.has-draft .voice-command-popup { flex: 1; min-height: 180px; height: auto; }
    .mes-order-draft-popup { position: static; order: 1; width: min(420px, calc(100vw - 32px)); flex: 0 1 auto; max-height: 48%; }
}
@media (max-width: 480px) {
    #mesChatLauncher, #mesChatLauncher.is-assist-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 88px; height: 124px; }
    #mesChatLauncher .mes-assistant-robot-svg { width: 64px; height: 96px; flex-basis: 96px; }
    .mes-launcher-label { min-height: 22px; padding: 3px 6px; font-size: 9px; }
    .voice-command-overlay { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
    .voice-command-popup { width: calc(100vw - 24px); height: min(720px, calc(100dvh - 24px)); }
    .voice-command-overlay.has-draft.show { height: min(720px, calc(100dvh - 24px)); }
    .mes-order-draft-popup { width: calc(100vw - 24px); }
}
@media print { #mesChatLauncher, .voice-command-overlay { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    #mesChatLauncher .mes-assistant-robot-svg { animation: none !important; }
    #mesChatLauncher .mes-assistant-robot-svg * { animation: none !important; }
    .mes-launcher-speech { transition: none; }
    .mes-login-arrival-curtain { display: none; }
}

#mesNavigationGlow { position: fixed; inset: 0; z-index: 30000; border: 0; opacity: 0; pointer-events: none; box-shadow: inset 0 0 8px 2px rgba(186,230,253,.98), inset 0 0 25px 7px rgba(56,189,248,.82), inset 0 0 60px 18px rgba(37,99,235,.5), inset 0 0 122px 34px rgba(30,64,175,.24), 0 0 44px 12px rgba(56,189,248,.58); transition: opacity .18s ease; }
#mesNavigationGlow.is-active { opacity: 1; animation: mes-navigation-neon 1.05s ease-in-out infinite alternate; }
#mesAssistModeControls { position: fixed; top: 16px; left: 50%; z-index: 30005; display: inline-flex; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
#mesAssistModeControls.is-active { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#mesAssistSpeechToggle { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(125,211,252,.96); border-radius: 50%; color: #fff; background: linear-gradient(135deg, rgba(14,165,233,.96), rgba(37,99,235,.96)); box-shadow: 0 6px 22px rgba(37,99,235,.28), 0 0 10px rgba(125,211,252,.72); backdrop-filter: blur(10px); cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease; }
#mesAssistSpeechToggle:hover { filter: brightness(1.12); transform: scale(1.05); }
#mesAssistSpeechToggle.is-muted { background: linear-gradient(135deg, rgba(100,116,139,.96), rgba(71,85,105,.96)); }
#mesAssistSpeechToggle:disabled { opacity: .55; cursor: not-allowed; }
#mesAssistSpeechToggle svg { width: 19px; height: 19px; overflow: visible; fill: currentColor; }
#mesAssistSpeechToggle .mes-assist-volume-mark { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#mesAssistModeClose { position: static; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 7px 9px 7px 14px; border: 1px solid rgba(125,211,252,.96); border-radius: 999px; color: #fff; background: linear-gradient(135deg, rgba(14,165,233,.96), rgba(37,99,235,.96)); box-shadow: 0 6px 22px rgba(37,99,235,.28), 0 0 10px rgba(125,211,252,.72), 0 0 24px rgba(56,189,248,.48); backdrop-filter: blur(10px); transition: transform .16s ease, filter .16s ease; cursor: pointer; }
#mesAssistModeClose.is-active { visibility: visible; }
#mesAssistModeClose.is-complete { cursor: pointer; }
#mesAssistModeClose kbd { padding: 3px 6px; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; background: rgba(255,255,255,.15); color: inherit; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.2; }
#mesAssistModeClose .mes-assist-exit-label { font-size: 12px; white-space: nowrap; }
#mesAssistModeClose.is-complete span { font-variant-numeric: tabular-nums; }
#mesAssistModeClose:hover { filter: brightness(1.12); transform: scale(1.03); }
#mesAssistModeClose span { font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
#mesAssistModeClose strong { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); font-size: 17px; font-weight: 400; line-height: 1; }
#mesAssistModeClose:focus-visible, #mesAssistSpeechToggle:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
#mesAssistRobot { position: fixed; z-index: 30004; width: 82px; height: 132px; opacity: 0; visibility: hidden; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(30,64,175,.24)); transform: translateY(8px) scale(.92); transition: left .48s cubic-bezier(.22,.72,.2,1), top .48s cubic-bezier(.22,.72,.2,1), opacity .18s ease, transform .18s ease, visibility .18s; }
#mesAssistRobot.is-active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); animation: mes-assist-robot-float 2.2s ease-in-out infinite; }
#mesAssistRobot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mes-robot-antenna { fill: none; stroke: #2563eb; stroke-width: 3; stroke-linecap: round; }
.mes-robot-antenna-light { fill: #22d3ee; stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.mes-robot-antenna-spark { opacity: 0; fill: #fde047; stroke: #f59e0b; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0 5px #facc15); transform-box: fill-box; transform-origin: center; }
.mes-robot-ear { fill: #60a5fa; stroke: #fff; stroke-width: 2; }
.mes-robot-head { fill: url(#mesRobotHead); stroke: #60a5fa; stroke-width: 2.5; }
.mes-robot-face { fill: #172554; stroke: #38bdf8; stroke-width: 2; }
.mes-robot-eye { fill: #67e8f9; filter: drop-shadow(0 0 4px #22d3ee); transform-box: fill-box; transform-origin: center; animation: mes-assist-robot-blink 4.2s infinite; }
.mes-robot-mouth { fill: #67e8f9; transform-box: fill-box; transform-origin: center; }
.mes-robot-body { fill: url(#mesRobotHead); stroke: #60a5fa; stroke-width: 2.5; }
.mes-robot-chest { fill: #172554; stroke: #38bdf8; stroke-width: 2; }
.mes-robot-waist { fill: #93c5fd; stroke: #fff; stroke-width: 1.5; }
.mes-robot-arm { transform-box: view-box; }
.mes-robot-arm-right { transform-origin: 93px 101px; }
.mes-robot-joint { fill: #60a5fa; stroke: #fff; stroke-width: 2; }
.mes-robot-limb { fill: url(#mesRobotHead); stroke: #60a5fa; stroke-width: 2; }
.mes-robot-hand { fill: #dbeafe; stroke: #60a5fa; stroke-width: 2; }
.mes-robot-leg rect { fill: url(#mesRobotHead); stroke: #60a5fa; stroke-width: 2; }
.mes-robot-foot { fill: #dbeafe; stroke: #60a5fa; stroke-width: 2; stroke-linejoin: round; }
.mes-robot-badge { fill: #67e8f9; stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 0 4px #22d3ee); }
.mes-robot-badge-mark { fill: none; stroke: #172554; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#mesAssistRobot.is-speaking .mes-robot-mouth { animation: mes-assist-robot-talk .24s ease-in-out infinite alternate; }
#mesAssistRobot.is-speaking .mes-robot-arm-right { animation: mes-assist-robot-wave .58s ease-in-out infinite alternate; }
#mesVirtualCursor { position: fixed; top: 0; left: 0; z-index: 30002; width: 30px; height: 38px; opacity: 0; pointer-events: none; color: #fff; filter: drop-shadow(0 2px 3px rgba(15,23,42,.55)) drop-shadow(0 0 8px #38bdf8); transition: transform .34s cubic-bezier(.2,.78,.2,1), opacity .12s ease; }
#mesVirtualCursor.is-placing { transition: none; }
#mesVirtualCursor.is-moving { transition: opacity .12s ease; }
#mesVirtualCursor.is-active { opacity: 1; }
#mesVirtualCursor svg { display: block; overflow: visible; }
#mesVirtualCursor svg path:first-child { fill: #111827; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
#mesVirtualCursor svg path:last-child { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
#mesVirtualCursor span { position: absolute; left: 3px; top: 3px; width: 30px; height: 30px; border: 2px solid #60a5fa; border-radius: 50%; opacity: 0; transform: scale(.35); }
#mesVirtualCursor.is-clicking span { animation: mes-cursor-click .42s ease-out; }
#mesAssistActionComment { position: fixed; z-index: 30004; width: min(360px, calc(100vw - 24px)); padding: 9px 12px; border: 1px solid #bfdbfe; border-radius: 10px; opacity: 0; visibility: hidden; color: #94a3b8; background: rgba(239,246,255,.97); box-shadow: 0 8px 24px rgba(30,64,175,.2), 0 0 16px rgba(96,165,250,.32); font-size: 13px; font-weight: 800; line-height: 1.5; letter-spacing: -.01em; pointer-events: none; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
#mesAssistActionComment.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.mes-assist-speech-read { color: #1d4ed8; text-shadow: 0 0 7px rgba(56,189,248,.48); }
.mes-assist-speech-pending { color: #94a3b8; text-shadow: none; }
#mesAssistActionComment::before { content: ''; position: absolute; top: 50%; width: 13px; height: 13px; border: solid #bfdbfe; background: rgba(239,246,255,.97); transform: translateY(-50%) rotate(45deg); }
#mesAssistActionComment.robot-on-left::before { left: -7px; border-width: 0 0 1px 1px; }
#mesAssistActionComment.robot-on-right::before { right: -7px; border-width: 1px 1px 0 0; }
.mes-assist-intro-visual { position: fixed; z-index: 30003; top: 50%; left: 50%; width: min(760px, calc(100vw - 48px)); padding: 26px; border: 1px solid rgba(125,211,252,.9); border-radius: 23px; opacity: 0; visibility: hidden; color: #102a56; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.97)); box-shadow: 0 26px 80px rgba(15,23,42,.28), 0 0 32px rgba(56,189,248,.4), inset 0 0 28px rgba(186,230,253,.28); pointer-events: none; transform: translate(-50%, -46%) scale(.93); transition: opacity .3s ease, transform .44s cubic-bezier(.2,.8,.2,1), visibility .3s; }
.mes-assist-intro-visual.is-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.mes-assist-intro-heading { margin-bottom: 21px; text-align: center; }
.mes-assist-intro-heading small, .mes-assist-intro-heading strong, .mes-assist-intro-heading span { display: block; }
.mes-assist-intro-heading small { width: fit-content; margin: 0 auto 7px; padding: 4px 9px; border: 1px solid #7dd3fc; border-radius: 999px; color: #0369a1; background: #f0f9ff; font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.mes-assist-intro-heading strong { font-size: 20px; font-weight: 950; letter-spacing: -.03em; }
.mes-assist-intro-heading span { margin-top: 4px; color: #64748b; font-size: 11px; font-weight: 750; }
.mes-assist-intro-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.mes-assist-intro-items-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mes-assist-intro-items > span { position: relative; min-width: 0; padding: 17px 9px 15px; border: 1px solid #dbeafe; border-radius: 14px; opacity: 0; background: rgba(255,255,255,.95); box-shadow: 0 8px 20px rgba(30,64,175,.08); text-align: center; transform: translateY(13px); }
.mes-assist-intro-visual.is-active .mes-assist-intro-items > span { animation: mes-assist-intro-card .55s .12s both; }
.mes-assist-intro-visual.is-active .mes-assist-intro-items > span:nth-child(2) { animation-delay: .24s; }
.mes-assist-intro-visual.is-active .mes-assist-intro-items > span:nth-child(3) { animation-delay: .36s; }
.mes-assist-intro-visual.is-active .mes-assist-intro-items > span:nth-child(4) { animation-delay: .48s; }
.mes-assist-intro-visual.is-active .mes-assist-intro-items > span:nth-child(5) { animation-delay: .6s; }
.mes-assist-intro-items i { display: grid; place-items: center; width: 27px; height: 27px; margin: 0 auto 8px; border-radius: 50%; color: #0369a1; background: #e0f2fe; box-shadow: 0 0 11px rgba(56,189,248,.28); font-size: 9px; font-style: normal; font-weight: 950; }
.mes-assist-intro-items b, .mes-assist-intro-items small { display: block; }
.mes-assist-intro-items b { overflow: hidden; color: #1e3a8a; font-size: 13px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.mes-assist-intro-items small { margin-top: 4px; overflow: hidden; color: #64748b; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mes-assist-intro-summary { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; color: #1d4ed8; font-size: 11px; font-weight: 900; }
.mes-assist-intro-summary span { position: relative; z-index: 1; padding: 5px 9px; border: 1px solid #bae6fd; border-radius: 999px; background: rgba(240,249,255,.98); }
.mes-assist-intro-summary em { color: #38bdf8; font-size: 14px; font-style: normal; filter: drop-shadow(0 0 5px rgba(56,189,248,.65)); }
.mes-assist-intro-summary > i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #7dd3fc); }
.mes-assist-intro-summary > i:last-child { background: linear-gradient(90deg, #7dd3fc, transparent); }
@keyframes mes-assist-intro-card { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 650px) { .mes-assist-intro-visual { width: calc(100vw - 24px); padding: 18px 14px; } .mes-assist-intro-items, .mes-assist-intro-items-five { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; } .mes-assist-intro-items-five > span:last-child { grid-column: 1 / -1; } .mes-assist-intro-items > span { padding: 10px 7px; } .mes-assist-intro-summary { flex-wrap: wrap; margin-top: 13px; gap: 5px; } .mes-assist-intro-summary > i { display: none; } }
.mes-navigation-target { position: relative; z-index: 30001 !important; outline: 0 !important; box-shadow: inset 0 0 0 2px rgba(96,165,250,.98), inset 0 0 10px 3px rgba(56,189,248,.82), inset 0 0 24px 7px rgba(37,99,235,.46) !important; }
@keyframes mes-navigation-neon { from { opacity: .82; filter: brightness(.98) saturate(1.08); } to { opacity: 1; filter: brightness(1.24) saturate(1.2); } }
@keyframes mes-cursor-click { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.65); } }
@keyframes mes-assist-robot-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
@keyframes mes-assist-robot-talk { from { transform: scaleY(.65); } to { transform: scaleY(2.2); } }
@keyframes mes-assist-robot-wave { from { transform: rotate(-3deg); } to { transform: rotate(-18deg); } }
@keyframes mes-assist-robot-blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@media (prefers-reduced-motion: reduce) { #mesNavigationGlow.is-active, #mesVirtualCursor.is-clicking span, #mesAssistRobot.is-active, #mesAssistRobot.is-speaking .mes-robot-mouth, #mesAssistRobot.is-speaking .mes-robot-arm-right, .mes-robot-eye, .mes-assist-intro-visual.is-active .mes-assist-intro-items > span { animation: none; } #mesVirtualCursor, #mesAssistModeControls, #mesAssistModeClose, #mesAssistSpeechToggle, #mesAssistRobot, .mes-assist-intro-visual { transition-duration: .04s; } .mes-assist-intro-visual.is-active .mes-assist-intro-items > span { opacity: 1; transform: none; } }
@media print { #mesNavigationGlow, #mesVirtualCursor, #mesAssistModeControls, #mesAssistRobot, #mesAssistActionComment, .mes-assist-intro-visual { display: none !important; } }

.assistant-report-card { margin: 12px 0; padding: 12px; background: #fff; color: #172554; border: 1px solid #cbd5e1; border-radius: 10px; max-width: 100%; }
.assistant-report-card p { font-size: 12px; margin: 8px 0; }
.assistant-report-table { overflow-x: auto; }
.assistant-report-table table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.assistant-report-table th, .assistant-report-table td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; text-align: right; }
.assistant-report-table th:first-child, .assistant-report-table td:first-child { text-align: left; }
.assistant-report-chart { position: relative; height: 240px; margin: 12px 0; }

.assistant-report-change { font-weight: 800; }
.assistant-report-change.is-positive { color: #dc2626; }
.assistant-report-change.is-negative { color: #2563eb; }
.assistant-report-change.is-neutral { color: #475569; }

.assistant-report-card { box-sizing: border-box; width: 100%; min-width: 0; }
.assistant-report-chart { width: 100%; min-width: 0; height: 220px; }
}

/* assistant/assets/css/login-assistant.css */
@scope (html:has(meta[name="mes-style-page"][content="로그인/로그인"]):has(meta[name="mes-style-feature"][content="assistant"]) > body) {
#mesLoginAssistantLauncher { position: fixed; z-index: 30; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; width: 104px; height: 146px; padding: 0; border: 0; border-radius: 18px; outline: 0; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; color: #1e3a5f; background: transparent; box-shadow: none; cursor: grab; touch-action: none; user-select: none; appearance: none; filter: drop-shadow(0 8px 12px rgba(30,64,175,.18)); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
#mesLoginAssistantLauncher.is-dragging { cursor: grabbing; transition: none; }
#mesLoginAssistantLauncher.is-dragging .mes-assistant-robot-svg { animation: none; }
#mesLoginAssistantLauncher:hover,
#mesLoginAssistantLauncher:focus,
#mesLoginAssistantLauncher:focus-visible,
#mesLoginAssistantLauncher:active { border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
#mesLoginAssistantLauncher[aria-expanded="true"] { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.96); }
#mesLoginAssistantLauncher .mes-assistant-robot-svg { display: block; width: 78px; height: 117px; overflow: visible; animation: mes-assistant-idle 4.8s ease-in-out infinite; transform-origin: 50% 88%; }
#mesLoginAssistantLauncher:hover .mes-assistant-robot-svg { animation-play-state: paused; transform: translateY(-3px) scale(1.04); }
#mesLoginAssistantPanel { position: fixed; z-index: 31; right: max(28px, env(safe-area-inset-right)); bottom: 24px; width: min(420px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 48px)); min-height: 360px; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: none; }
#mesLoginAssistantPanel.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
#mesLoginAssistantPanel.is-closing { pointer-events: none; }
#mesLoginAssistantPanel .mes-chat-content { display: flex; flex-direction: column; }
#mesLoginAssistantPanel .mes-chat-starters { align-content: flex-start; }
#mesLoginAssistantPanel .mes-chat-starters button:disabled,
#mesLoginAssistantPanel .voice-command-text button:disabled,
#mesLoginAssistantPanel .voice-command-text input:disabled,
#mesLoginAssistantPanel #mesChatReset:disabled { opacity: .56; cursor: not-allowed; }
#mesLoginAssistantPanel .mes-chat-starters button:disabled:hover { background: #fff; }
#mesLoginAssistantPanel .mes-chat-starters .mes-guide-open:disabled:hover,
#mesLoginAssistantPanel .mes-chat-starters .mes-qna-open:disabled:hover { background: #fff; }
@media (max-width: 600px) {
    #mesLoginAssistantLauncher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 88px; height: 124px; }
    #mesLoginAssistantLauncher .mes-assistant-robot-svg { width: 64px; height: 96px; }
    #mesLoginAssistantPanel { right: 12px; bottom: 12px; height: min(620px, calc(100dvh - 24px)); }
}
@media (prefers-reduced-motion: reduce) { #mesLoginAssistantLauncher .mes-assistant-robot-svg { animation: none; } }
}

/* resources/css/login-startup.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"]):has(meta[name="mes-style-feature"][content="startup"])) {
body.mes-root-startup { overflow: hidden; }

/* 실제 루트 DOM을 그대로 사용하고 내용만 숨겨, 루트 구조 변경을 자동으로 반영한다. */
body.mes-root-startup .sidebar-header,
body.mes-root-startup .sidebar .nav,
body.mes-root-startup .sidebar-credit,
body.mes-root-startup .top-nav > *,
body.mes-root-startup .promo-hero > *,
body.mes-root-startup .promo-proof,
body.mes-root-startup .main-board-card-head,
body.mes-root-startup .main-board-grid,
body.mes-root-startup .main-content :is(h1, h2, h3, h4, h5, h6, p, span, strong, small, em, b, i, a, button, label, input, select, textarea, table, canvas, img, svg),
body.mes-root-startup .main-board-popup-overlay { visibility: hidden !important; }
body.mes-root-startup .main-content { pointer-events: none; user-select: none; }
body.mes-root-startup #mesChatLauncher,
body.mes-root-startup #voiceCommandOverlay { visibility: hidden !important; }

body.mes-root-revealing .sidebar-header,
body.mes-root-revealing .sidebar .nav,
body.mes-root-revealing .sidebar-credit,
body.mes-root-revealing .top-nav > *,
body.mes-root-revealing .promo-hero > *,
body.mes-root-revealing .main-board-card-head,
body.mes-root-revealing .main-board-grid,
body.mes-root-revealing .main-content :is(h1, h2, h3, h4, h5, h6, p, span, strong, small, em, b, i, a, button, label, input, select, textarea, table, canvas, img, svg) {
    animation: mes-root-content-reveal .9s cubic-bezier(.2,.72,.2,1) both;
}

.mes-login-startup { position: fixed; z-index: 11990; inset: 0; overflow: hidden; color: #e2e8f0; background: transparent; pointer-events: none; }
.mes-login-startup-copy { position: absolute; z-index: 2; right: max(142px, calc(env(safe-area-inset-right) + 142px)); bottom: max(78px, calc(env(safe-area-inset-bottom) + 78px)); width: min(420px, calc(100vw - 180px)); padding: 18px 22px 17px; border: 1px solid #bfdbfe; border-radius: 18px; opacity: 0; background: rgba(255,255,255,.98); box-shadow: 0 18px 48px rgba(15,23,42,.24); text-align: left; transform: translateX(12px) scale(.97); transform-origin: right center; transition: opacity .22s ease, transform .3s ease; }
.mes-login-startup-copy::before { content: ""; position: absolute; right: -10px; top: 50%; width: 18px; height: 18px; border-top: 1px solid #bfdbfe; border-right: 1px solid #bfdbfe; background: #fff; transform: translateY(-50%) rotate(45deg); }
.mes-login-startup.is-message-visible .mes-login-startup-copy { opacity: 1; transform: none; }
.mes-login-startup-copy h1 { min-height: 47px; margin: 0; color: #102a56; font-family: "Noto Sans KR", sans-serif; font-size: clamp(20px, 2vw, 28px); font-weight: 900; line-height: 1.65; letter-spacing: -.04em; }
.mes-login-startup-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 3px; vertical-align: -.12em; background: #2563eb; animation: mes-startup-caret .72s steps(1) infinite; }
.mes-login-startup-loader { position: absolute; z-index: 2; left: calc(50% + 110px); bottom: 5.5%; display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: center; gap: 14px; width: min(900px, calc(100vw - 300px)); color: #475569; font: 700 13px/1 "Noto Sans KR", sans-serif; transform: translateX(-50%); transition: opacity .25s ease; }
.mes-login-startup-progress { height: 7px; overflow: hidden; border: 1px solid rgba(59,130,246,.24); border-radius: 99px; background: rgba(203,213,225,.55); box-shadow: inset 0 1px 4px rgba(15,23,42,.12); }
.mes-login-startup-progress i { display: block; width: 1%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #2f6fed); box-shadow: 0 0 14px rgba(56,189,248,.8); }
.mes-login-startup-loader output { min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.mes-login-startup-robot { position: fixed; z-index: 3; left: calc(100vw - max(24px, env(safe-area-inset-right)) - 104px); top: calc(100dvh - max(24px, env(safe-area-inset-bottom)) - 146px); display: flex; align-items: flex-start; justify-content: center; width: 104px; height: 146px; opacity: 1; filter: drop-shadow(0 8px 12px rgba(30,64,175,.18)); }
.mes-login-startup-robot .mes-assistant-robot-svg { display: block; width: 78px; height: 117px; overflow: visible; transform-origin: 50% 88%; }
.mes-login-startup-robot.is-speaking .mes-robot-mouth { animation: mes-assist-robot-talk .24s ease-in-out infinite alternate; }
.mes-login-startup.is-leaving .mes-login-startup-copy,
.mes-login-startup.is-leaving .mes-login-startup-loader { opacity: 0; }

@keyframes mes-startup-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes mes-root-content-reveal { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
@media (max-width: 600px) {
    .mes-login-startup-copy { right: 94px; bottom: 90px; width: min(300px, calc(100vw - 112px)); padding: 14px 16px; }
    .mes-login-startup-robot { left: calc(100vw - 12px - 88px); top: calc(100dvh - max(12px, env(safe-area-inset-bottom)) - 124px); width: 88px; height: 124px; }
    .mes-login-startup-robot .mes-assistant-robot-svg { width: 64px; height: 96px; }
    .mes-login-startup-loader { left: 50%; bottom: 7%; grid-template-columns: minmax(0, 1fr) 52px; gap: 9px; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    .mes-login-startup *, .mes-login-startup *::before, .mes-login-startup *::after { animation: none !important; transition-duration: .08s !important; }
}
}

/* resources/css/pages/기준정보/라우팅시트_pdf.css */
@scope (html:has(meta[name="mes-style-page"][content="기준정보/라우팅시트_pdf"]) > body) {
:scope {
            margin: 0;
            height: 100vh;
            background: #111827;
            color: #fff;
            font-family: Arial, "Malgun Gothic", sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .loading { text-align: center; }
        .loading-title { font-size: 18px; font-weight: 900; }
        .loading-caption { margin-top: 8px; font-size: 13px; color: #cbd5e1; }
}

/* resources/css/pages/실적보고/매출실적보고_pdf.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/매출실적보고_pdf"]) > body) {
:scope {
            margin: 0;
            height: 100vh;
            background: #111827;
            color: #fff;
            font-family: 'Noto Sans KR', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .loading { text-align: center; }
        .loading-title { font-size: 18px; font-weight: 900; }
        .loading-caption { margin-top: 8px; font-size: 13px; color: #cbd5e1; }
}

/* resources/css/pages/실적보고/매출실적보고.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/매출실적보고"]) > body) {
.sales-report-page {
    gap: 10px;
    min-height: 0;
    height: calc(100vh - 89px);
}

.report-filter { grid-template-columns: 150px 150px 190px 260px 65px 75px 92px; }
.report-filter .worker-select-wrap { width: 190px; }
.report-kpi-card.kpi-shipment { border-left-color: #2563eb; }
.report-kpi-card.kpi-balance { border-left-color: #ca8a04; }
.report-kpi-card.kpi-rate { border-left-color: #7c3aed; }

@media (max-width: 1300px) { .report-filter { grid-template-columns: 150px 150px 190px 260px 65px 75px 92px; } }

/* Static styles migrated from the EJS markup. */
.mes-local-style-001 { width: 92px; }
}

/* resources/css/pages/실적보고/보고서준비중.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/보고서준비중"]) > body) {
.report-ready-page {
    min-height: 0;
}

.ready-panel {
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ready-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
}

.ready-caption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-dim);
}
}

/* resources/css/pages/실적보고/불량현황보고_pdf.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/불량현황보고_pdf"]) > body) {
:scope { margin: 0; height: 100vh; background: #111827; color: #fff; font-family: 'Noto Sans KR', sans-serif; display: flex; align-items: center; justify-content: center; }
        .loading { text-align: center; }
        .loading-title { font-size: 18px; font-weight: 900; }
        .loading-caption { margin-top: 8px; font-size: 13px; color: #cbd5e1; }
}

/* resources/css/pages/실적보고/불량현황보고.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/불량현황보고"]) > body) {
.defect-report-page { gap: 10px; min-height: 0; height: calc(100vh - 89px); }
.report-filter { grid-template-columns: 160px 160px 220px 65px 75px 92px; }
.report-filter .worker-select-wrap { width: 220px; }
.report-kpi-card.kpi-defect { border-left-color: #dc2626; }
.report-kpi-card.kpi-open { border-left-color: #ca8a04; }
.report-kpi-card.kpi-good { border-left-color: #0f766e; }
@media (max-width: 1300px) { .report-filter { grid-template-columns: 160px 160px 220px 65px 75px 92px; } }

/* Static styles migrated from the EJS markup. */
.mes-local-style-001 { width: 92px; }
}

/* resources/css/pages/실적보고/생산현황보고_pdf.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/생산현황보고_pdf"]) > body) {
:scope {
            margin: 0;
            height: 100vh;
            background: #111827;
            color: #fff;
            font-family: 'Noto Sans KR', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .loading { text-align: center; }
        .loading-title { font-size: 18px; font-weight: 900; }
        .loading-caption { margin-top: 8px; font-size: 13px; color: #cbd5e1; }
}

/* resources/css/pages/실적보고/생산현황보고.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/생산현황보고"]) > body) {
.production-report-page {
    gap: 10px;
    min-height: 0;
    height: calc(100vh - 89px);
}

.report-filter { grid-template-columns: 160px 160px 220px 65px 75px 92px; }
.report-filter .worker-select-wrap { width: 220px; }

.report-kpi-card.kpi-good { border-left-color: #16a34a; }
.report-kpi-card.kpi-defect { border-left-color: #dc2626; }
.report-kpi-card.kpi-yield { border-left-color: #0f766e; }

@media (max-width: 1300px) { .report-filter { grid-template-columns: 160px 160px 220px 65px 75px 92px; } }

/* Static styles migrated from the EJS markup. */
.mes-local-style-001 { width: 92px; }
}

/* resources/css/pages/실적보고/수주현황보고_pdf.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/수주현황보고_pdf"]) > body) {
:scope {
            margin: 0;
            height: 100vh;
            background: #111827;
            color: #fff;
            font-family: 'Noto Sans KR', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .loading { text-align: center; }
        .loading-title { font-size: 18px; font-weight: 900; }
        .loading-caption { margin-top: 8px; font-size: 13px; color: #cbd5e1; }
}

/* resources/css/pages/실적보고/수주현황보고.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/수주현황보고"]) > body) {
.order-report-page {
    gap: 10px;
    min-height: 0;
    height: calc(100vh - 89px);
}

.report-filter { grid-template-columns: 150px 150px 190px 120px 260px 65px 75px 92px; }

.report-filter .worker-select-wrap {
    width: 190px;
}

.report-filter .order-state-select-wrap {
    width: 120px;
}

.report-kpi-card.kpi-qty { border-left-color: #2563eb; }
.report-kpi-card.kpi-amount { border-left-color: #0f766e; }
.report-kpi-card.kpi-rate { border-left-color: #7c3aed; }

@media (max-width: 1300px) { .report-filter { grid-template-columns: 150px 150px 190px 120px 260px 65px 75px 92px; } }

/* Static styles migrated from the EJS markup. */
.mes-local-style-001 { width: 92px; }
}

/* resources/css/pages/실적보고/출하현황보고_pdf.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/출하현황보고_pdf"]) > body) {
:scope {
            margin: 0;
            height: 100vh;
            background: #111827;
            color: #fff;
            font-family: 'Noto Sans KR', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .loading { text-align: center; }
        .loading-title { font-size: 18px; font-weight: 900; }
        .loading-caption { margin-top: 8px; font-size: 13px; color: #cbd5e1; }
}

/* resources/css/pages/실적보고/출하현황보고.css */
@scope (html:has(meta[name="mes-style-page"][content="실적보고/출하현황보고"]) > body) {
.shipment-report-page {
    gap: 10px;
    min-height: 0;
    height: calc(100vh - 89px);
}

.report-filter { grid-template-columns: 150px 150px 130px 260px 65px 75px 92px; }
.report-filter .worker-select-wrap { width: 130px; }

.report-kpi-card.kpi-qty { border-left-color: #2563eb; }
.report-kpi-card.kpi-product { border-left-color: #0f766e; }
.report-kpi-card.kpi-today { border-left-color: #7c3aed; }

@media (max-width: 1300px) { .report-filter { grid-template-columns: 150px 150px 130px 260px 65px 75px 92px; } }

/* Static styles migrated from the EJS markup. */
.mes-local-style-001 { width: 92px; }
}
