/* The tabs of a server's page (views/server-console.js, server-stats.js,
   server-files.js, server-editor.js, server-players.js, server-settings.js).
   The page's frame (name, controls, the tab bar) is servers.css; tokens come
   from style.css. Nothing here is set from script: the pages only choose
   classes, so the content security policy needs no exceptions. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mc-section-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.mc-section-help { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---- 콘솔 ---- */
.mc-console { position: relative; display: flex; flex-direction: column; gap: 10px; }
.mc-log {
  height: min(60vh, 520px);
  min-height: 240px;
  padding: 12px 14px;
  overflow: auto;
  border-radius: var(--radius-card);
  background: #141414;
  color: #d7d7d9;
  font: 13px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mc-log:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mc-line.warn { color: var(--warn); }
.mc-line.error { color: var(--error); }
.mc-line.cmd { color: var(--accent); }
.mc-jump { position: absolute; right: 14px; bottom: 64px; }
.mc-jump .icon { width: 14px; height: 14px; }
.mc-console-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; }
.mc-command-form { display: flex; gap: 8px; }
.mc-command { flex: 1; min-width: 0; }

/* ---- 통계 ---- */
.mc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mc-stat { padding: 16px; border-radius: var(--radius-card); background: var(--surface); }
.mc-stat-title { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.mc-stat-value { margin: 0; font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.mc-stat-sub { margin: 4px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.mc-meter {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--fill);
  -webkit-appearance: none;
  appearance: none;
}
.mc-meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 4px; background: var(--fill); }
.mc-meter::-webkit-meter-optimum-value,
.mc-meter::-webkit-meter-suboptimum-value,
.mc-meter::-webkit-meter-even-less-good-value { border-radius: 4px; background: var(--accent); }
.mc-meter::-moz-meter-bar { border-radius: 4px; background: var(--accent); }
.mc-stat[data-full="true"] .mc-meter::-webkit-meter-optimum-value,
.mc-stat[data-full="true"] .mc-meter::-webkit-meter-suboptimum-value,
.mc-stat[data-full="true"] .mc-meter::-webkit-meter-even-less-good-value { background: var(--error); }
.mc-stat[data-full="true"] .mc-meter::-moz-meter-bar { background: var(--error); }
.mc-stat-chart { margin-top: 10px; }
.mc-stat-chart:empty { display: none; }
.mc-spark { display: block; width: 100%; height: 40px; }
.mc-spark-line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---- 파일 ---- */
.mc-files-browser.dropping { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--radius-card); }
.mc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 6px; font-size: 13px; }
.mc-crumb { padding: 2px 6px; border: 0; border-radius: 5px; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.mc-crumb:hover { background: var(--hover); }
.mc-crumb[aria-current="page"] { color: var(--text); font-weight: 600; cursor: default; }
.mc-crumb-sep { color: var(--faint); }
.mc-files-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.mc-files-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.mc-files-actions .btn { min-height: 26px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; gap: 4px; }
.mc-files-actions .btn .icon { width: 13px; height: 13px; }
.mc-files-status { min-height: 14px; margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.mc-files { width: 100%; border-collapse: collapse; border-radius: 8px 8px 0 0; background: var(--surface); }
.mc-files-list { background: var(--surface); border-radius: 8px; }
.mc-files th { padding: 4px 8px; border-bottom: 1px solid var(--separator); color: var(--muted); font-size: 11px; font-weight: 600; text-align: left; }
.mc-files td { height: 24px; padding: 0 8px; font-size: 13px; line-height: 20px; vertical-align: middle; }
.mc-files tbody tr:nth-child(even) { background: var(--zebra); }
.mc-file-row:hover { background: var(--hover) !important; }
.mc-file-row.selected { background: var(--accent-soft) !important; }
.mc-files .check-input { width: 14px; height: 14px; margin: 0; border-radius: 4px; background-size: 14px 14px; }
.mc-col-check { width: 26px; }
.mc-col-size { width: 74px; color: var(--muted); text-align: right; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.mc-col-mod { width: 120px; color: var(--muted); white-space: nowrap; font-size: 12px; }
.mc-col-menu { width: 30px; text-align: right; }
.mc-col-menu .btn, .mc-col-menu button { min-height: 22px; padding: 0 6px; }
.mc-file-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 1px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mc-file-link.plain { cursor: default; }
.mc-file-link:hover:not(.plain) .mc-file-name { text-decoration: underline; }
.mc-file-icon { flex: none; width: 16px; height: 16px; color: var(--muted); }
.mc-file-name { overflow-wrap: anywhere; }
.mc-file-tag { padding: 0 5px; border-radius: 5px; background: var(--fill); color: var(--muted); font-size: 10.5px; }

/* One colour per kind of file (views/file-kinds.js): the icon and the name. */
.mc-k-dir { --k: var(--k-dir); }
.mc-k-archive { --k: var(--k-archive); }
.mc-k-jar { --k: var(--k-jar); }
.mc-k-json { --k: var(--k-json); }
.mc-k-yaml { --k: var(--k-yaml); }
.mc-k-config { --k: var(--k-config); }
.mc-k-skript { --k: var(--k-skript); }
.mc-k-code { --k: var(--k-code); }
.mc-k-image { --k: var(--k-image); }
.mc-k-text { --k: var(--k-text); }
.mc-k-data { --k: var(--k-data); }
.mc-k-file { --k: var(--k-file); }
.mc-file-row .mc-file-icon, .mc-drag-ghost .icon { color: var(--k); }
.mc-file-row .mc-file-name { color: var(--k); }
.mc-k-dir .mc-file-name { font-weight: 600; }
.mc-k-file .mc-file-name, .mc-k-text .mc-file-name { color: var(--text); }
/* The empty space under the rows, striped like more rows (24px each); .odd: the first of them is a striped one. */
.mc-files-list { position: relative; }
.mc-files-fill { min-height: 260px; border-radius: 0 0 8px 8px; background: repeating-linear-gradient(to bottom, transparent 0 24px, var(--zebra) 24px 48px); cursor: default; user-select: none; }
.mc-files-fill.odd { background: repeating-linear-gradient(to bottom, var(--zebra) 0 24px, transparent 24px 48px); }
.mc-marquee { position: absolute; top: var(--top, 0); left: 0; right: 0; height: var(--height, 0); border: 1px solid var(--accent); background: var(--accent-soft); pointer-events: none; }
.mc-files-empty { margin: 8px 0; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 640px) {
  .mc-col-mod { display: none; }
}

/* ---- 모드 / 플러그인 (views/server-mods.js) ---- */
.mc-mods.dropping { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--radius-card); }
.mc-mods-title { margin: 0 0 12px; font-size: 17px; font-weight: 650; }
.mc-mods-drop { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; padding: 16px; border: 1.5px dashed var(--separator); border-radius: var(--radius-card); color: var(--muted); font-size: 14px; }
.mc-mods-drop .icon { width: 18px; height: 18px; }
.mc-mods.dropping .mc-mods-drop { border-color: var(--accent); color: var(--accent); }
.mc-mods-search { width: 100%; max-width: 320px; margin: 0 0 10px; }
.mc-mods-hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.mc-mods-list { border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.mc-mod-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--separator); font-size: 14px; }
.mc-mod-row:first-child { border-top: 0; }
.mc-mod-row:hover:not(.mc-mod-head) { background: var(--hover); }
.mc-mod-head { color: var(--muted); font-size: 12px; font-weight: 600; }
.mc-mod-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mc-mod-size { flex: none; width: 80px; color: var(--muted); text-align: right; white-space: nowrap; }
.mc-mod-date { flex: none; width: 140px; color: var(--muted); white-space: nowrap; }
.mc-mod-actions { flex: none; display: flex; gap: 4px; min-width: 150px; justify-content: flex-end; }
.mc-mod-btn { padding: 4px 10px; font-size: 13px; }
.mc-mod-btn .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .mc-mod-date { display: none; }
  .mc-mod-actions { min-width: 0; }
  .mc-mod-btn span { display: none; }
  .mc-mod-btn.danger span { display: inline; }
}

/* ---- 파일 편집 ---- */
/* The editor is a window above the page (views/server-editor.js): moved by the title bar, resized by the corner. */
.mc-editor { position: fixed; top: var(--y, 72px); left: var(--x, 80px); z-index: var(--z, 900); display: flex; flex-direction: column; gap: 8px; width: min(860px, 94vw); height: min(70vh, 640px); min-width: 340px; min-height: 240px; max-width: 98vw; max-height: 96vh; padding: 10px 12px 12px; overflow: hidden; resize: both; border-radius: 12px; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mc-editor:focus { outline: none; }
.mc-editor-head { cursor: grab; user-select: none; }
.mc-editor-head:active { cursor: grabbing; }
.mc-editor-head { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.mc-editor-title { display: flex; flex-direction: column; min-width: 0; }
.mc-editor-path { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.mc-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mc-editor-actions .btn .icon { width: 14px; height: 14px; }
.mc-editor-state { color: var(--muted); font-size: 13px; }
.mc-editor-state[data-dirty="true"] { color: var(--warn); }
.mc-editor-problem { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--error-soft); color: var(--error); font-size: 13px; }
.mc-editor-body { flex: 1; min-height: 0; overflow: hidden; border-radius: var(--radius-card); background: #141414; }
.mc-editor-body:focus-within { box-shadow: 0 0 0 2px var(--accent); }
/* One scroller holds the line numbers, the coloured <pre> and the textarea.
   The numbers stay at the left edge (sticky); the code cell is at least as wide
   as the widest line (so a long line scrolls sideways) and as tall as the text
   or the box, whichever is more (the grid stretches its row). */
.mc-scroll { display: grid; grid-template-columns: auto minmax(max-content, 1fr); height: 100%; overflow: auto; }
.mc-gutter { position: sticky; left: 0; z-index: 1; min-width: 44px; margin: 0; padding: 12px 8px 12px 12px; background: #141414; color: var(--faint); font: 13px/1.5 var(--mono); text-align: right; user-select: none; }
.mc-codecell { display: grid; min-width: 0; }
/* The <pre> and the textarea are the same box in the same cell. */
.mc-hl, .mc-editor-text {
  grid-area: 1 / 1;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 24px 12px 12px;
  border: 0;
  font: 13px/1.5 var(--mono);
  letter-spacing: normal;
  white-space: pre;
  tab-size: 2;
}
.mc-hl { color: #e6e6e8; pointer-events: none; }
.mc-editor-text { width: 100%; height: 100%; resize: none; overflow: hidden; outline: none; background: transparent; color: transparent; caret-color: #e6e6e8; }
.mc-editor-text::selection { background: rgba(111, 147, 247, 0.4); color: transparent; }
.mc-editor-text:disabled { opacity: 1; }
.hl-c { color: #7f8c8d; font-style: italic; }
.hl-s { color: #a5d6a7; }
.hl-k { color: #82b1ff; }
.hl-n { color: #ffcc80; }
.hl-b { color: #ce93d8; }
.hl-t { color: #ff8a80; }
.mc-editor-help { flex: none; margin: 0; color: var(--muted); font-size: 12px; }

/* ---- 플레이어 ---- */
.mc-players-note { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.mc-players-wrap { display: flex; flex-direction: column; gap: 20px; }
.mc-players-section { padding: 16px; border-radius: var(--radius-card); background: var(--surface); }
.mc-player-list { margin: 0; padding: 0; list-style: none; }
.mc-player { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--separator); }
.mc-player:first-child { border-top: 0; }
.mc-player-name { flex: 1; min-width: 120px; font-weight: 600; overflow-wrap: anywhere; }
.mc-player-extra { color: var(--muted); font-size: 12px; }
.mc-player-actions, .mc-by-name { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mc-section-head .mc-section-title { margin: 0; }
.mc-section-head .btn .icon { width: 14px; height: 14px; }
.mc-players-empty { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- 설정 ---- */
.mc-settings-form { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.mc-settings-section { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-card); background: var(--surface); }
.mc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mc-save-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mc-save-row .btn .icon { width: 14px; height: 14px; }
.mc-danger { padding: 16px; border: 1px solid var(--error-soft); border-radius: var(--radius-card); background: var(--surface); }
.mc-danger .btn { margin-top: 4px; }
.mc-danger-why { margin: 0 0 8px; color: var(--warn); font-size: 13px; }

/* The entry as the game's server list draws it: dark rows, the icon at the
   left, the name and the player count on top, the two MOTD lines under. */
.mc-listing { display: flex; gap: 12px; padding: 10px; border: 2px solid #5b5b5b; background: #000; font-family: var(--mono); }
.mc-icon-btn { position: relative; flex: none; width: 64px; height: 64px; padding: 0; border: 0; background: #1b1b1b; cursor: pointer; }
.mc-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mc-icon-img, .mc-icon-canvas { display: block; width: 64px; height: 64px; image-rendering: pixelated; }
.mc-icon-btn[data-empty="true"]::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #6b6b6b; font-size: 28px; }
.mc-icon-hint { position: absolute; inset: auto 0 0 0; padding: 2px 0; background: rgba(0, 0, 0, 0.6); color: #fff; font: 11px var(--font); text-align: center; opacity: 0; transition: opacity 0.15s; }
.mc-icon-btn:hover .mc-icon-hint, .mc-icon-btn:focus-visible .mc-icon-hint { opacity: 1; }
.mc-list-text { flex: 1; min-width: 0; }
.mc-list-top { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-size: 14px; }
.mc-list-count { color: #8e8e93; }
.mc-motd-line { min-height: 20px; font-size: 14px; line-height: 20px; white-space: pre; overflow: hidden; }
.mc-motd-edit { display: flex; flex-direction: column; gap: 8px; }
.mc-motd-row { display: flex; align-items: flex-end; gap: 10px; }
.mc-motd-row .field { flex: 1; min-width: 0; }
.mc-motd-count { flex: none; padding-bottom: 12px; color: var(--muted); font-size: 12px; }
.mc-motd-count[data-over="true"] { color: var(--error); }
.mc-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-code { min-width: 30px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--fill); color: var(--text); font: 13px var(--font); cursor: pointer; }
.mc-code:hover { background: var(--fill-strong); }
.mc-code.mc-sw { width: 30px; min-width: 30px; padding: 0; border: 2px solid rgba(255, 255, 255, 0.25); }
.mc-code:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The game's colours and styles. A swatch is a button coloured with the
   text colour of its code (currentColor), so one table serves both. */
.mc-c0 { color: #000000; } .mc-c1 { color: #0000aa; } .mc-c2 { color: #00aa00; } .mc-c3 { color: #00aaaa; }
.mc-c4 { color: #aa0000; } .mc-c5 { color: #aa00aa; } .mc-c6 { color: #ffaa00; } .mc-c7 { color: #aaaaaa; }
.mc-c8 { color: #555555; } .mc-c9 { color: #5555ff; } .mc-ca { color: #55ff55; } .mc-cb { color: #55ffff; }
.mc-cc { color: #ff5555; } .mc-cd { color: #ff55ff; } .mc-ce { color: #ffff55; } .mc-cf { color: #ffffff; }
.mc-sw { background: currentColor; }
.mc-sw:hover { background: currentColor; filter: brightness(1.15); }
.mc-b { font-weight: 800; }
.mc-i { font-style: italic; }
.mc-u { text-decoration: underline; }
.mc-s { text-decoration: line-through; }
.mc-u.mc-s { text-decoration: underline line-through; }
.mc-k { letter-spacing: 0.1em; opacity: 0.6; }
.mc-c0.mc-sw { border-color: rgba(255, 255, 255, 0.5); }

@media (prefers-reduced-motion: reduce) {
  .mc-icon-hint { transition: none; }
}

/* ---- 클라이언트 모드팩 (views/modpack.js) ---- */
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface); }
.mp-bar-text { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: 13px; }
.mp-warn { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--error-bg, rgba(255, 69, 58, 0.14)); color: var(--text); font-size: 15px; line-height: 1.55; }
.mp-warn p { margin: 0; }
.mp-warn strong { font-weight: 800; }
.mp-warn .mp-base { padding: 1px 8px; border-radius: 6px; background: var(--error, #ff453a); color: #fff; }
.mp-steps { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mp-group { margin: 0 0 12px; }
.mp-group-title { margin: 0 0 4px; font-size: 14px; font-weight: 650; }
.mp-note { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; }
.mp-list { max-height: 140px; overflow: auto; margin: 0; padding: 8px 12px 8px 28px; border-radius: 10px; background: var(--surface); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mp-banner { position: relative; display: flex; align-items: center; min-height: 190px; margin: 0 0 18px; overflow: hidden; border-radius: var(--radius-card); background: #1c1c1e; color: #fff; }
.mp-banner-bg { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.012) 8%, rgba(0, 0, 0, 0.05) 18%, rgba(0, 0, 0, 0.13) 28%, rgba(0, 0, 0, 0.27) 38%, rgba(0, 0, 0, 0.46) 49%, rgba(0, 0, 0, 0.68) 60%, rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.96) 86%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.012) 8%, rgba(0, 0, 0, 0.05) 18%, rgba(0, 0, 0, 0.13) 28%, rgba(0, 0, 0, 0.27) 38%, rgba(0, 0, 0, 0.46) 49%, rgba(0, 0, 0, 0.68) 60%, rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.96) 86%, #000 100%); }
.mp-banner-body { position: relative; max-width: 560px; padding: 24px 26px; }
.mp-banner-title { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.mp-banner-text { margin: 10px 0 16px; color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.6; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.mp-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-banner-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mp-banner-ghost:hover { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 640px) { .mp-banner-bg { width: 100%; opacity: 0.55; } .mp-banner-body { padding: 18px; } }
.mp-card { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface); }
.mp-card-title { margin: 0; font-size: 15px; font-weight: 650; }
.mp-card .mp-warn { margin: 10px 0; background: var(--error-bg, rgba(255, 69, 58, 0.14)); }
.mp-card-text { margin: 8px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mp-launchers { display: flex; align-items: center; gap: 8px; }
.mp-logo { flex: none; width: 28px; height: 28px; }

/* ---- 파일 두 창 (views/server-files.js filesDualTab) ---- */
.mc-dual { display: grid; grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); gap: 8px; align-items: start; }
.mc-dual[data-count="3"] { grid-template-columns: var(--cols, repeat(3, minmax(0, 1fr))); }
/* Four tabs: a grid of windows, two by two. */
.mc-dual[data-count="4"] { grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); }
.mc-dual .mc-pane { min-width: 0; padding: 8px; border-radius: var(--radius-card); background: var(--zebra); }
.mc-dual .mc-col-mod { display: none; }

@media (max-width: 980px) { .mc-dual, .mc-dual[data-count] { grid-template-columns: minmax(0, 1fr); } .mc-split { display: none; } }
.mc-dual-hint { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
/* The tabs of the 파일 tab and the long button that opens a new one at their right edge. */
.mc-tabs-wrap { display: flex; align-items: stretch; gap: 6px; }
.mc-dual-area { flex: 1; min-width: 0; }
.mc-newtab { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; min-height: 140px; padding: 0; border: 0; border-radius: 8px; background: var(--fill); color: var(--muted); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.mc-newtab:hover { background: var(--fill-strong); color: var(--text); }
.mc-newtab .icon { width: 14px; height: 14px; }
.mc-pane-head { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 4px; }
.mc-pane-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.mc-pane-close { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; }
.mc-pane-close:hover { background: var(--hover); color: var(--text); }
.mc-pane-close .icon { width: 11px; height: 11px; }

/* ---- dragging entries between the panes ---- */
.mc-drag-ghost { position: absolute; top: -1000px; left: -1000px; display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); font-size: 14px; }
.mc-drag-ghost .icon { flex: none; width: 16px; height: 16px; }
.mc-drag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-drag-count { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.mc-file-row.dragging { opacity: 0.35; }
.mc-file-row.drop-into { background: rgba(10, 132, 255, 0.22); outline: 2px solid var(--accent); outline-offset: -2px; }
.mc-files-browser { position: relative; }
.mc-files-browser.carrying .mc-files-list { cursor: grabbing; }
.mc-files-browser.dropping { background: rgba(10, 132, 255, 0.08); }
.mc-files-browser.dropping::after { content: attr(data-drop); position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); pointer-events: none; }

/* The dividers between the columns of the tabs: pulled sideways, they set the widths (--cols). */
.mc-dual-area { position: relative; }
.mc-split { position: absolute; top: 0; bottom: 0; left: var(--at, 50%); z-index: 2; width: 12px; margin-left: -6px; cursor: col-resize; }
.mc-split::after { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; border-radius: 1px; background: transparent; transition: background-color 0.15s; }
.mc-split:hover::after { background: var(--accent); }
/* The fourth tab opens under the first: a gradient from the bottom edge of the page says so. */
.mc-below-hint { position: fixed; right: 0; bottom: 0; left: 0; z-index: 800; display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 96px; padding: 0 0 18px; border: 0; background: linear-gradient(to top, rgba(120, 160, 255, 0.55), rgba(120, 160, 255, 0)); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); cursor: pointer; animation: below-in 0.4s ease-out; transition: opacity 0.5s ease; }
.mc-below-hint .icon { width: 16px; height: 16px; stroke-width: 2.6; animation: below-bounce 1s ease-in-out infinite; }
.mc-below-hint.leaving { opacity: 0; }
@keyframes below-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes below-bounce { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .mc-below-hint, .mc-below-hint .icon { animation: none; } }
