/* MDT 在线路线工具 */
.mdt-page {
    border-radius: 10px;
    border: 1px solid rgba(255, 192, 69, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    padding: 20px 22px 28px;
    box-sizing: border-box;
    /* 与 public.css .global-public-scroll 统一 */
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 31, 30, 0.9) rgba(71, 51, 50, 0.8);
}

.mdt-page *,
.mdt-modal,
.mdt-modal * {
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 31, 30, 0.9) rgba(71, 51, 50, 0.8);
}

.mdt-page::-webkit-scrollbar,
.mdt-page *::-webkit-scrollbar,
.mdt-modal::-webkit-scrollbar,
.mdt-modal *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.mdt-page::-webkit-scrollbar-track,
.mdt-page *::-webkit-scrollbar-track,
.mdt-modal::-webkit-scrollbar-track,
.mdt-modal *::-webkit-scrollbar-track {
    background-color: rgba(71, 51, 50, 0.8);
    border-radius: 2em;
}

.mdt-page::-webkit-scrollbar-thumb,
.mdt-page *::-webkit-scrollbar-thumb,
.mdt-modal::-webkit-scrollbar-thumb,
.mdt-modal *::-webkit-scrollbar-thumb {
    background-color: rgba(44, 31, 30, 0.9);
    border-radius: 2em;
}

.mdt-page::-webkit-scrollbar-thumb:hover,
.mdt-page *::-webkit-scrollbar-thumb:hover,
.mdt-modal::-webkit-scrollbar-thumb:hover,
.mdt-modal *::-webkit-scrollbar-thumb:hover {
    background-color: rgba(94, 62, 62, 0.95);
}

.mdt-page::-webkit-scrollbar-corner,
.mdt-page *::-webkit-scrollbar-corner,
.mdt-modal::-webkit-scrollbar-corner,
.mdt-modal *::-webkit-scrollbar-corner {
    background: transparent;
}

.mdt-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.mdt-page-header h1 {
    margin: 0;
    color: #ffe9c7;
    font-size: 26px;
    font-weight: 800;
}

.mdt-page-header p {
    margin: 6px 0 0;
    color: #a89f93;
    font-size: 13px;
}

/* public.css 对全局 button 使用了 !important，MDT 按钮必须同级覆盖 */
.mdt-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 192, 69, 0.4) !important;
    background: rgba(255, 192, 69, 0.12) !important;
    color: #ffc045 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mdt-btn:hover {
    background: rgba(255, 192, 69, 0.22) !important;
    color: #ffe9c7 !important;
    opacity: 1;
}

.mdt-btn.is-busy,
.mdt-btn.is-busy:hover,
.mdt-stat-btn.is-busy {
    opacity: 0.72 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.mdt-btn.is-busy::before {
    content: '';
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 192, 69, 0.25);
    border-top-color: #ffc045;
    border-radius: 50%;
    animation: mdt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.mdt-btn-primary.is-busy::before {
    border-color: rgba(42, 28, 27, 0.25);
    border-top-color: #2a1c1b;
}

.mdt-btn-danger.is-busy::before {
    border-color: rgba(255, 180, 180, 0.25);
    border-top-color: #ffb4b4;
}

@keyframes mdt-spin {
    to { transform: rotate(360deg); }
}

.mdt-btn-ghost {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(0, 0, 0, 0.25) !important;
    color: #cfc5b5 !important;
}

.mdt-btn-ghost:hover {
    border-color: rgba(255, 192, 69, 0.35) !important;
    color: #ffe9c7 !important;
}

.mdt-btn-primary {
    font-weight: 700 !important;
    background: linear-gradient(180deg, #f0c060, #c78a1f) !important;
    border-color: #c78a1f !important;
    color: #2a1c05 !important;
}

.mdt-btn-primary:hover {
    background: linear-gradient(180deg, #ffd98a, #e0a838) !important;
    border-color: #e0a838 !important;
    color: #2a1c05 !important;
}

.mdt-btn-danger {
    border-color: rgba(200, 70, 70, 0.55) !important;
    background: rgba(120, 28, 28, 0.55) !important;
    color: #ffd0d0 !important;
}

.mdt-btn-danger:hover {
    border-color: rgba(240, 100, 100, 0.75) !important;
    background: rgba(150, 36, 36, 0.75) !important;
    color: #fff !important;
}

.mdt-mine-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.mdt-mine-tab {
    height: 34px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #a89f93 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mdt-mine-tab:hover {
    color: #ffe9c7 !important;
    border-color: rgba(255, 192, 69, 0.35) !important;
    background: rgba(255, 192, 69, 0.08) !important;
    opacity: 1;
}

.mdt-mine-tab.on {
    color: #1a1208 !important;
    background: linear-gradient(180deg, #ffd98a, #ffc045) !important;
    border-color: #ffc045 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 1px rgba(255, 192, 69, 0.35), 0 4px 14px rgba(255, 192, 69, 0.28);
}

.mdt-route-stats .mdt-mine-remove {
    margin-left: auto;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.mdt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.mdt-filters label {
    color: #a89f93;
    font-size: 12px;
    margin-right: 4px;
}

.mdt-filters select {
    background: #2a1c1b;
    border: 1px solid rgba(255, 192, 69, 0.25);
    color: #efe6d8;
    border-radius: 4px;
    padding: 5px 8px;
    min-width: 140px;
}

/* -------- 广场：左右布局 -------- */
.mdt-plaza {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.mdt-plaza-aside {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-sizing: border-box;
}

.mdt-plaza-aside-title {
    margin: 0 6px 10px;
    color: #ffc045;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mdt-dungeon-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mdt-dungeon-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    height: auto !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #cfc5b5 !important;
    text-align: left;
    text-decoration: none !important;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mdt-dungeon-item:hover {
    background: rgba(255, 192, 69, 0.08) !important;
    border-color: rgba(255, 192, 69, 0.28) !important;
    color: #ffe9c7 !important;
    opacity: 1;
}

.mdt-dungeon-item.on {
    background: rgba(255, 192, 69, 0.16) !important;
    border-color: #ffc045 !important;
    color: #ffe9c7 !important;
    box-shadow: 0 0 0 1px rgba(255, 192, 69, 0.35), 0 4px 14px rgba(255, 192, 69, 0.18);
}

.mdt-dungeon-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 32px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1a1210;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdt-dungeon-item.on .mdt-dungeon-thumb {
    border-color: rgba(255, 192, 69, 0.65);
}

.mdt-dungeon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92);
}

.mdt-dungeon-item.on .mdt-dungeon-thumb img,
.mdt-dungeon-item:hover .mdt-dungeon-thumb img {
    filter: brightness(1.05);
}

.mdt-dungeon-thumb-all {
    color: #ffc045;
}

.mdt-dungeon-thumb-all svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mdt-dungeon-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mdt-dungeon-item.on .mdt-dungeon-name {
    color: #ffc045;
}

.mdt-plaza-main {
    flex: 1;
    min-width: 0;
}

.mdt-filters-compact {
    margin-bottom: 14px;
}

.mdt-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.mdt-route-card {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.mdt-route-card:hover {
    border-color: rgba(255, 192, 69, 0.4);
    transform: translateY(-2px);
}

.mdt-route-card-thumb {
    position: relative;
    height: 140px;
    background: #111;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.mdt-route-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #0d0a09;
    filter: brightness(0.95);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.mdt-route-card:hover .mdt-route-card-thumb img {
    transform: scale(1.04);
    filter: brightness(1);
}

.mdt-route-card-thumb .mdt-keylevel {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 192, 69, 0.4);
    color: #ffc045;
    font-size: 12px;
    font-weight: 700;
}

.mdt-route-card-body {
    padding: 12px 14px 14px;
}

.mdt-route-card-body h3 {
    margin: 0 0 6px;
    color: #ffe9c7;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mdt-route-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.mdt-route-card-body h3 a:hover {
    color: #ffc045;
}

.mdt-route-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #a89f93;
    font-size: 12px;
    margin-bottom: 10px;
}

.mdt-route-stats {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mdt-stat-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #a89f93 !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mdt-stat-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: block;
    opacity: 0.85;
}

.mdt-stat-btn:hover {
    color: #ffe9c7 !important;
    border-color: rgba(255, 192, 69, 0.35) !important;
    background: rgba(255, 192, 69, 0.08) !important;
    opacity: 1;
}

.mdt-stat-btn.on {
    color: #ffc045 !important;
    border-color: rgba(255, 192, 69, 0.45) !important;
    background: rgba(255, 192, 69, 0.12) !important;
}

.mdt-stat-btn.mdt-fav-btn.on {
    color: #f5c542 !important;
}

.mdt-stat-num {
    font-variant-numeric: tabular-nums;
    min-width: 0.8em;
}

.mdt-route-actions {
    display: none;
}

.mdt-empty {
    text-align: center;
    color: #a89f93;
    padding: 48px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mdt-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.mdt-pager button,
.mdt-pager .mdt-pager-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.28) !important;
    color: #cfc5b5 !important;
    text-decoration: none !important;
    box-sizing: border-box;
    cursor: pointer;
}

.mdt-pager button.on,
.mdt-pager button:hover,
.mdt-pager .mdt-pager-link.on,
.mdt-pager .mdt-pager-link:hover {
    border-color: rgba(255, 192, 69, 0.45) !important;
    color: #ffc045 !important;
    background: rgba(255, 192, 69, 0.12) !important;
    opacity: 1;
}

.mdt-pager button.on,
.mdt-pager .mdt-pager-link.on {
    font-weight: 700 !important;
    box-shadow: 0 0 0 1px rgba(255, 192, 69, 0.2);
}

/* -------- Planner -------- */
.mdt-page.is-readonly .mdt-dungeon-picker,
.mdt-page.is-readonly .mdt-planner-toolbar input,
.mdt-page.is-readonly #mdt-add-pull,
.mdt-page.is-readonly #mdt-confirm-pull,
.mdt-page.is-readonly #mdt-cancel-pull,
.mdt-page.is-readonly #mdt-save-btn,
.mdt-page.is-readonly #mdt-delete-btn,
.mdt-page.is-readonly #mdt-import-btn,
.mdt-page.is-readonly #mdt-clear-btn,
.mdt-page.is-readonly .mdt-anno-sidebar,
.mdt-page.is-readonly .mdt-pull-del {
    pointer-events: none;
    opacity: 0.45;
}

.mdt-page.is-readonly .mdt-anno-sidebar {
    display: none;
}

.mdt-page.is-readonly #mdt-save-btn,
.mdt-page.is-readonly #mdt-delete-btn,
.mdt-page.is-readonly #mdt-import-btn,
.mdt-page.is-readonly #mdt-clear-btn,
.mdt-page.is-readonly #mdt-add-pull {
    display: none !important;
}

.mdt-readonly-tip {
    display: none;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 192, 69, 0.22);
    background: rgba(255, 192, 69, 0.08);
    color: #cfc5b5;
    font-size: 12px;
}

.mdt-page.is-readonly .mdt-readonly-tip {
    display: block;
}

.mdt-planner {
    display: flex;
    gap: 14px;
    align-items: stretch;
    min-height: 720px;
}

.mdt-planner-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdt-dungeon-picker {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.mdt-dungeon-pick {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.32) !important;
    color: #cfc5b5 !important;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mdt-dungeon-pick:hover {
    background: rgba(255, 192, 69, 0.1) !important;
    border-color: rgba(255, 192, 69, 0.45) !important;
    color: #ffe9c7 !important;
    opacity: 1;
    transform: translateY(-1px);
}

.mdt-dungeon-pick.on {
    background: rgba(255, 192, 69, 0.16) !important;
    border-color: #ffc045 !important;
    color: #ffe9c7 !important;
    box-shadow: 0 0 0 1px rgba(255, 192, 69, 0.35), 0 6px 16px rgba(255, 192, 69, 0.16);
}

.mdt-dungeon-pick-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1210;
}

.mdt-dungeon-pick.on .mdt-dungeon-pick-thumb,
.mdt-dungeon-pick:hover .mdt-dungeon-pick-thumb {
    border-color: rgba(255, 192, 69, 0.55);
}

.mdt-dungeon-pick-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: filter 0.15s ease, transform 0.2s ease;
}

.mdt-dungeon-pick:hover .mdt-dungeon-pick-thumb img,
.mdt-dungeon-pick.on .mdt-dungeon-pick-thumb img {
    filter: brightness(1.08);
    transform: scale(1.03);
}

.mdt-dungeon-pick-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.mdt-dungeon-pick.on .mdt-dungeon-pick-name {
    color: #ffc045;
}

.mdt-planner-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.mdt-planner-toolbar select,
.mdt-planner-toolbar input[type="text"],
.mdt-planner-toolbar input[type="number"] {
    background: #2a1c1b;
    border: 1px solid rgba(255, 192, 69, 0.25);
    color: #efe6d8;
    border-radius: 4px;
    padding: 5px 8px;
}

.mdt-planner-toolbar .mdt-progress {
    margin-left: auto;
    color: #ffc045;
    font-weight: 700;
    font-size: 14px;
}

.mdt-map-stage {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-height: 560px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 192, 69, 0.14);
    background:
        linear-gradient(180deg, rgba(42, 28, 27, 0.55), rgba(12, 8, 8, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mdt-anno-sidebar {
    --mdt-anno-w: 108px;
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: calc(var(--mdt-anno-w) + 34px);
    overflow: hidden;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 4;
    background:
        linear-gradient(180deg, rgba(36, 24, 22, 0.96), rgba(18, 12, 11, 0.98));
    border-right: 1px solid rgba(255, 192, 69, 0.16);
}

.mdt-anno-sidebar.is-collapsed {
    width: 34px;
}

.mdt-anno-sidebar-rail {
    width: 34px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.28);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mdt-anno-toggle {
    width: 26px !important;
    min-height: 72px;
    height: auto !important;
    padding: 8px 0 !important;
    border: 1px solid rgba(255, 192, 69, 0.28) !important;
    border-radius: 8px !important;
    background: rgba(255, 192, 69, 0.08) !important;
    color: #ffc045 !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mdt-anno-toggle:hover {
    background: rgba(255, 192, 69, 0.18) !important;
    border-color: rgba(255, 192, 69, 0.55) !important;
    color: #ffe9c7 !important;
    opacity: 1;
}

.mdt-anno-toggle-ico {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mdt-anno-sidebar.is-collapsed .mdt-anno-toggle-ico {
    transform: rotate(180deg);
}

.mdt-anno-toggle-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: inherit;
    line-height: 1;
}


.mdt-anno-sidebar-panel {
    width: var(--mdt-anno-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mdt-anno-sidebar.is-collapsed .mdt-anno-sidebar-panel {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

.mdt-anno-sidebar-head {
    padding: 12px 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mdt-anno-sidebar-heading .mdt-anno-sidebar-kicker {
    display: block;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 192, 69, 0.55);
    margin-bottom: 2px;
}

.mdt-anno-sidebar-heading h3 {
    margin: 0;
    color: #ffe9c7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mdt-anno-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 10px;
}

.mdt-anno-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdt-anno-block {
    padding: 8px 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mdt-anno-grid {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    gap: 6px;
    justify-content: center;
}

.mdt-anno-section {
    color: #ffc045;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 7px;
    text-align: center;
}

.mdt-anno-hint {
    margin: 10px 2px 0;
    color: #8f857a;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.mdt-tool-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 4px !important;
    border-radius: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.38) !important;
    color: #cfc5b5 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.mdt-tool-btn:hover {
    border-color: rgba(255, 192, 69, 0.45) !important;
    color: #ffe9c7 !important;
    transform: translateY(-1px);
    opacity: 1;
}

.mdt-tool-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mdt-tool-btn .mdt-tool-tt {
    font-weight: 800;
    font-size: 13px;
    color: #cfc5b5;
    font-family: Georgia, "Times New Roman", serif;
}

.mdt-tool-btn.on {
    border-color: #ffc045 !important;
    color: #ffc045 !important;
    background: rgba(255, 192, 69, 0.16) !important;
    box-shadow: 0 0 0 1px rgba(255, 192, 69, 0.12);
}

.mdt-tool-btn.on .mdt-tool-tt {
    color: #ffc045;
}

.mdt-color-btn {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    border: 2px solid #ffc045;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.mdt-raid-row .mdt-tool-btn {
    width: 36px;
    height: 36px;
}

.mdt-map-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 560px;
    background: #000;
    border: none;
    border-radius: 0;
    overflow: hidden;
    cursor: grab;
}

.mdt-map-loading {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a89f93;
    font-size: 15px;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.72);
    pointer-events: none;
    user-select: none;
}

.mdt-map-loading.is-error {
    color: #e74c3c;
}

.mdt-map-wrap.is-ready .mdt-map-loading {
    display: none;
}

.mdt-map-wrap.picking {
    cursor: crosshair;
}

.mdt-map-canvas {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    user-select: none;
}

.mdt-map-canvas > img.map-img {
    display: block;
    width: 100%;
    max-width: none;
    pointer-events: none;
    border: 0;
}

.mdt-map-canvas > img.map-img[hidden] {
    display: none !important;
}

#mdt-marker-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.mdt-map-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.mdt-route-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 4;
}

.mdt-map-svg .mdt-pull-index,
.mdt-route-svg .mdt-pull-index {
    fill: #ffffff;
    font-size: 26px;
    font-weight: 800;
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke fill;
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 4px;
    pointer-events: none;
    transition: font-size 0.12s ease, stroke-width 0.12s ease, opacity 0.12s ease;
}

.mdt-map-svg .mdt-pull-shape {
    transition: fill-opacity 0.12s ease, stroke-width 0.12s ease, opacity 0.12s ease;
}

.mdt-map-wrap.is-pull-hovering .mdt-pull-shape {
    opacity: 0.28;
}

.mdt-map-wrap.is-pull-hovering .mdt-pull-index {
    opacity: 0.35;
}

.mdt-map-wrap.is-pull-hovering .mdt-pull-shape.is-hover {
    opacity: 1;
    fill-opacity: 0.48 !important;
    stroke-width: 4px;
    filter: drop-shadow(0 0 6px rgba(255, 192, 69, 0.55));
}

.mdt-map-wrap.is-pull-hovering .mdt-pull-index.is-hover {
    opacity: 1;
    font-size: 34px;
    stroke-width: 5px;
    fill: #ffe9c7;
}

.mdt-npc.is-dimmed {
    opacity: 0.28 !important;
    transform: none !important;
}

.mdt-npc.is-hover-pull {
    opacity: 1 !important;
    transform: scale(1.35);
    z-index: 8;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 10px rgba(255, 192, 69, 0.65);
}

.mdt-map-svg .mdt-route-line,
.mdt-route-svg .mdt-route-line {
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
    pointer-events: none;
}

.mdt-map-svg .mdt-route-dash,
.mdt-route-svg .mdt-route-dash {
    stroke: #409EFF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14 10;
    animation: mdt-route-dash-move 22s linear infinite;
    pointer-events: none;
}

@keyframes mdt-route-dash-move {
    to {
        stroke-dashoffset: -1000;
    }
}

.mdt-npc {
    position: absolute;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    border-radius: 50%;
    border: 2px solid #666;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    opacity: 0.55;
    pointer-events: auto;
    transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}

#mdt-other-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.mdt-other-marker {
    position: absolute;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    z-index: 3;
    pointer-events: auto;
    cursor: default;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
}

.mdt-other-marker img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.mdt-other-marker.is-entrance {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    z-index: 3;
}

.mdt-other-marker.is-mapnav {
    cursor: pointer;
}

.mdt-other-marker.is-mapnav:hover {
    transform: scale(1.12);
}

/* 标注工具激活时小怪不截获拖拽，保证图形可画 */
#mdt-npc-layer.is-anno-pass .mdt-npc {
    pointer-events: none;
}

.mdt-npc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mdt-npc a {
    display: block;
    width: 100%;
    height: 100%;
}

.mdt-npc.boss {
    opacity: 1;
    border-width: 3px;
    border-color: #ffc045;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
}

.mdt-npc.active,
.mdt-npc:hover {
    opacity: 1;
    border-color: #ffc045;
    transform: scale(1.25);
    z-index: 5;
}

.mdt-npc.in-pull {
    opacity: 1;
}

.mdt-marker {
    position: absolute;
    z-index: 6;
    transform: translate(-50%, -50%);
    cursor: move;
    user-select: none;
    pointer-events: auto;
}

.mdt-marker.text {
    font-size: 12px;
    line-height: 1.2;
    color: #ffe9c7;
    background: rgba(0, 0, 0, 0.65);
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 192, 69, 0.45);
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px #000;
}

.mdt-marker.raid {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    padding: 0;
}

.mdt-marker.selected {
    /* 选中态只用手柄，不要外框 */
    z-index: 8;
}

.mdt-anno-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 5;
}

.mdt-anno-svg .mdt-anno-shape {
    pointer-events: all;
    cursor: move;
}

.mdt-anno-handles {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 12;
    pointer-events: none;
}

.mdt-hbtn {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
    line-height: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    box-sizing: border-box;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 13;
}

.mdt-hbtn-del {
    background-color: #e74c3c;
}

.mdt-hbtn-rot {
    background-color: #3498db;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M20 8a8 8 0 1 0 1.5 5M20 8V3m0 5h-5'/%3E%3C/svg%3E");
}

.mdt-hbtn-scale {
    background-color: #2ecc71;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5M3 3l7 7M21 3l-7 7M3 21l7-7M21 21l-7-7'/%3E%3C/svg%3E");
    cursor: nwse-resize;
}

.mdt-marquee {
    position: absolute;
    border: 1px dashed #ffc045;
    background: rgba(255, 192, 69, 0.12);
    pointer-events: none;
    z-index: 20;
    box-sizing: border-box;
}

.mdt-raid-icon {
    width: 22px;
    height: 22px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* WoW 风格集合标记（CSS 绘制） */
.raid-star {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f1c40f' stroke='%23000' stroke-width='1' d='M12 2l2.9 6.3L22 9.2l-5 4.8 1.4 7L12 17.8 5.6 21l1.4-7-5-4.8 7.1-.9z'/%3E%3C/svg%3E");
}
.raid-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='%23e67e22' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
.raid-diamond {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239b59b6' stroke='%23000' stroke-width='1.5' d='M12 2l8 10-8 10L4 12z'/%3E%3C/svg%3E");
}
.raid-triangle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232ecc71' stroke='%23000' stroke-width='1.5' d='M12 3l10 18H2z'/%3E%3C/svg%3E");
}
.raid-moon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ecf0f1' stroke='%23000' stroke-width='1' d='M14 3a9 9 0 1 0 7 14.5A8 8 0 0 1 14 3z'/%3E%3C/svg%3E");
}
.raid-square {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='1' fill='%233498db' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
.raid-cross {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath stroke='%23e74c3c' stroke-width='4' stroke-linecap='round' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.raid-skull {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ecf0f1' stroke='%23000' stroke-width='1' d='M12 2c-4.5 0-8 3.2-8 7.5 0 2.6 1.3 4.4 3 5.7V19h2l1 2h4l1-2h2v-3.8c1.7-1.3 3-3.1 3-5.7C20 5.2 16.5 2 12 2z'/%3E%3Ccircle cx='9' cy='10' r='1.5' fill='%23000'/%3E%3Ccircle cx='15' cy='10' r='1.5' fill='%23000'/%3E%3C/svg%3E");
}

.mdt-marker .mdt-raid-icon {
    width: 28px;
    height: 28px;
}

.mdt-map-tabs {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 15;
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 24px);
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.mdt-map-tabs:not(:empty) {
    display: flex;
}

.mdt-map-tab {
    pointer-events: auto;
    height: auto !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 192, 69, 0.28) !important;
    background: rgba(12, 8, 8, 0.78) !important;
    color: #cfc5b5 !important;
    font-size: 12px !important;
    cursor: pointer;
    backdrop-filter: blur(4px);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mdt-map-tab:hover,
.mdt-map-tab.on {
    border-color: #ffc045 !important;
    color: #ffc045 !important;
    background: rgba(255, 192, 69, 0.14) !important;
    opacity: 1;
}

.mdt-planner-right {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* -------- Planner embed（副本详情 iframe：地图 + 波次）-------- */
.mdt-embed.mdt-page,
.mdt-page.mdt-embed,
.index-global-list.mdt-embed {
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    background: #0a0706 !important;
    overflow: hidden !important;
}

.mdt-embed .mdt-page-header,
.mdt-embed .mdt-dungeon-picker,
.mdt-embed .mdt-planner-toolbar,
.mdt-embed .mdt-anno-sidebar,
.mdt-embed .mdt-panel:not(.mdt-pull-panel),
.mdt-embed .mdt-pull-panel .mdt-save-row,
.mdt-embed .mdt-pull-del,
.mdt-embed .mdt-readonly-tip,
.mdt-embed .mdt-toast,
.mdt-embed .mdt-modal,
.mdt-embed #mdt-add-pull,
.mdt-embed #mdt-confirm-pull,
.mdt-embed #mdt-cancel-pull,
.mdt-embed #mdt-save-btn,
.mdt-embed #mdt-delete-btn,
.mdt-embed #mdt-import-btn,
.mdt-embed #mdt-export-btn,
.mdt-embed #mdt-clear-btn {
    display: none !important;
}

.mdt-embed .mdt-planner {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: 680px !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.mdt-embed .mdt-planner-left {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: calc(100% - 300px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
}

.mdt-embed .mdt-map-stage {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.mdt-embed .mdt-map-wrap {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.mdt-embed .mdt-planner-right {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    min-height: 0 !important;
    height: 100% !important;
    gap: 0 !important;
    overflow: hidden !important;
    visibility: visible !important;
    z-index: 2;
    position: relative;
}

.mdt-embed .mdt-pull-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 10px 8px 8px !important;
    box-sizing: border-box;
    overflow: hidden;
    visibility: visible !important;
}

.mdt-embed .mdt-pull-panel-head {
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
}

.mdt-embed .mdt-pull-list {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    visibility: visible !important;
}

.mdt-embed .mdt-pull-item {
    pointer-events: auto;
}

.mdt-embed .mdt-embed-progress {
    flex-shrink: 0;
    margin: 0 0 8px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 192, 69, 0.1);
    border: 1px solid rgba(255, 192, 69, 0.22);
    color: #ffc045;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.mdt-panel {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
}

.mdt-panel h3 {
    margin: 0 0 10px;
    color: #ffc045;
    font-size: 15px;
    font-weight: 700;
}

.mdt-pull-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mdt-pull-panel-head h3 {
    margin: 0;
}

.mdt-pull-dungeon-name {
    color: #a89f93;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mdt-pull-list {
    max-height: 480px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    padding: 4px 0;
}

.mdt-pull-empty {
    color: #a89f93;
    font-size: 13px;
    padding: 16px 12px;
}

.mdt-pull-empty-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px dashed rgba(255, 192, 69, 0.35);
    color: #a89f93;
    font-size: 11px;
}

.mdt-pull-item.is-empty {
    opacity: 0.72;
}

.mdt-pull-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    min-height: 34px;
    cursor: pointer;
    box-sizing: border-box;
}

.mdt-pull-item:hover {
    background: rgba(255, 192, 69, 0.12);
    box-shadow: inset 3px 0 0 #ffc045;
}

.mdt-pull-item.on,
.mdt-pull-item.has-boss.on {
    background: rgba(255, 255, 255, 0.1);
}

.mdt-pull-item.has-boss {
    background: rgba(255, 255, 255, 0.06);
}

.mdt-pull-num {
    width: 18px;
    flex-shrink: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.mdt-pull-icons {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    align-items: center;
}

.mdt-pull-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e056fd;
    overflow: visible;
    flex-shrink: 0;
    display: block;
    box-sizing: border-box;
    background: #111;
}

.mdt-pull-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.mdt-pull-cnt {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 3px #000, 0 1px 2px #000;
    pointer-events: none;
    white-space: nowrap;
}

.mdt-pull-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.mdt-pull-pct {
    color: #fff;
    font-size: 12px;
    min-width: 46px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mdt-pull-skull {
    color: #ececec;
    font-size: 12px;
    line-height: 1;
}

.mdt-pull-del {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #888 !important;
    font-size: 14px !important;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
}

.mdt-pull-item:hover .mdt-pull-del {
    opacity: 1;
}

.mdt-pull-del:hover {
    color: #ff6b6b !important;
    opacity: 1;
}

.mdt-pull-item-head {
    display: none;
}

.mdt-pull-enemies {
    display: none;
}

.mdt-pull-meta {
    display: none;
}

.mdt-tool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mdt-tool-row button {
    min-width: 36px !important;
    height: 32px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #efe6d8 !important;
    cursor: pointer;
}

.mdt-tool-row button.on {
    border-color: #ffc045 !important;
    color: #ffc045 !important;
    background: rgba(255, 192, 69, 0.12) !important;
}

.mdt-save-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mdt-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 192, 69, 0.4);
    color: #ffe9c7;
    z-index: 99999;
    display: none;
}

.mdt-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mdt-modal[hidden] {
    display: none !important;
}

.mdt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mdt-modal-panel {
    position: relative;
    width: min(560px, 100%);
    padding: 18px 18px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 192, 69, 0.28);
    background: linear-gradient(180deg, #2a1c1b 0%, #1a1211 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.mdt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mdt-modal-head h3 {
    margin: 0;
    color: #ffc045;
    font-size: 16px;
}

.mdt-modal-close {
    border: 0;
    background: transparent;
    color: #cbb9a4;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.mdt-modal-close:hover {
    color: #ffc045;
}

.mdt-modal-hint {
    margin: 0 0 10px;
    color: #a89f93;
    font-size: 12px;
    line-height: 1.5;
}

.mdt-modal-hint code {
    color: #ffc045;
}

.mdt-import-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 140px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 192, 69, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: #f3e7d5;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
}

.mdt-import-input:focus {
    outline: none;
    border-color: rgba(255, 192, 69, 0.55);
}

.mdt-modal-actions {
    margin-top: 12px;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    .mdt-planner {
        flex-direction: column;
    }

    .mdt-embed .mdt-planner {
        flex-direction: row !important;
    }

    .mdt-planner-right {
        width: 100%;
    }

    .mdt-embed .mdt-planner-right {
        flex: 0 0 280px !important;
        width: 280px !important;
        max-width: 280px !important;
        min-width: 280px !important;
    }

    .mdt-embed .mdt-planner-left {
        max-width: calc(100% - 280px) !important;
    }

    .mdt-dungeon-picker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mdt-map-stage,
    .mdt-map-wrap {
        min-height: 420px;
    }

    .mdt-embed .mdt-map-stage,
    .mdt-embed .mdt-map-wrap {
        min-height: 0 !important;
    }

    .mdt-anno-sidebar {
        --mdt-anno-w: 100px;
    }

    .mdt-plaza-aside {
        width: 176px;
    }
}

@media (max-width: 900px) {
    .mdt-plaza {
        flex-direction: column;
    }

    .mdt-plaza-aside {
        width: 100%;
        position: static;
        max-height: none;
        padding: 10px;
    }

    .mdt-dungeon-list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .mdt-dungeon-item {
        flex: 0 0 auto;
        width: auto !important;
        max-width: 148px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 6px !important;
    }

    .mdt-dungeon-thumb {
        width: 100%;
        height: 48px;
    }

    .mdt-dungeon-name {
        text-align: center;
        font-size: 12px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 760px) {
    .mdt-dungeon-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mdt-map-stage {
        flex-direction: column;
        min-height: 0;
    }

    .mdt-anno-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 192, 69, 0.16);
    }

    .mdt-anno-sidebar.is-collapsed {
        width: 100%;
        height: 42px;
    }

    .mdt-anno-sidebar-rail {
        width: 100%;
        flex-direction: row;
        padding: 6px 8px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mdt-anno-toggle {
        width: auto;
        min-height: 0;
        height: 30px;
        padding: 0 10px;
        flex-direction: row;
        gap: 6px;
    }

    .mdt-anno-toggle-label {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 0.12em;
    }

    .mdt-anno-sidebar.is-collapsed .mdt-anno-sidebar-panel {
        display: none;
    }

    .mdt-anno-sidebar-panel {
        width: 100%;
    }

    .mdt-anno-grid {
        grid-template-columns: repeat(8, 36px);
        justify-content: flex-start;
    }

    .mdt-map-wrap {
        min-height: 360px;
    }
}

/* -------- Ant Design 风格确认框（对齐主站 guild-theme-modal）-------- */
.mdt-ant-confirm-root {
    position: fixed;
    inset: 0;
    z-index: 100100;
}

.mdt-ant-confirm-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mdt-ant-confirm-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.mdt-ant-confirm-panel {
    pointer-events: auto;
    width: min(420px, 100%);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(180deg, #241713 0%, #1a110f 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mdt-ant-confirm-body {
    display: flex;
    gap: 14px;
    padding: 22px 22px 10px;
}

.mdt-ant-confirm-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: #ffc045;
}

.mdt-ant-confirm-icon.is-danger {
    color: #ff7875;
}

.mdt-ant-confirm-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.mdt-ant-confirm-title {
    margin: 0 0 8px;
    color: #ffd98a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.mdt-ant-confirm-content {
    margin: 0;
    color: #e8dcc8;
    font-size: 14px;
    line-height: 1.6;
}

.mdt-ant-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 22px 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    margin-top: 8px;
}

.mdt-ant-confirm-footer .mdt-btn {
    min-width: 72px;
    height: 32px !important;
    padding: 0 15px !important;
}

.mdt-modal-close {
    border: 0 !important;
    background: transparent !important;
    color: #cbb9a4 !important;
    height: auto !important;
    padding: 0 4px !important;
}

.mdt-modal-close:hover {
    color: #ffc045 !important;
    opacity: 1;
}

.mdt-modal-actions .mdt-btn {
    height: 32px !important;
}
