/* ============================================================
   Modals — 輸出、新建專案、快捷鍵
============================================================ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px;
  width: 460px; max-width: 90vw; max-height: 90vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.modal.wide { width: 540px; }
.modal-h {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.modal-h h2 { font-size: 14px; }
.modal-b { padding: 18px; overflow-y: auto; flex: 1; }
.modal-section-title {
  font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 8px;
}
.modal-section { margin-bottom: 18px; }
.modal-section:last-child { margin-bottom: 0; }

.opt {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 4px;
  margin-bottom: 6px; cursor: pointer;
  transition: all 0.12s;
}
.opt:hover { border-color: var(--line-2); }
.opt.sel {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt-r {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--text-2); position: relative; flex-shrink: 0;
}
.opt.sel .opt-r { border-color: var(--accent); }
.opt.sel .opt-r::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--accent); border-radius: 50%;
}
.opt-c { flex: 1; }
.opt-t { font-size: 13px; }
.opt-d { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.badge { font-size: 9px; padding: 2px 6px; border-radius: 10px; font-family: var(--mono); letter-spacing: 0.5px; }
.badge.live { background: rgba(74,222,128,0.15); color: var(--ok); }
.badge.free { background: rgba(56, 189, 248, 0.15); color: var(--accent-2); }

.prog { margin-top: 14px; display: none; }
.prog.on { display: block; }
.prog-bar { height: 3px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s; }
.prog-t { margin-top: 8px; font-size: 11px; color: var(--text-1); font-family: var(--mono); }
.modal-f {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 6px; flex-shrink: 0;
}

.shortcuts-tbl {
  width: 100%; font-size: 11px; font-family: var(--mono); border-collapse: collapse;
}
.shortcuts-tbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.shortcuts-tbl td:first-child { color: var(--accent); width: 110px; }
.shortcuts-tbl td:last-child { color: var(--text-1); }
.shortcuts-tbl tr.sec-row td {
  color: var(--text-2); font-size: 9px; letter-spacing: 1.4px;
  text-transform: uppercase; padding-top: 12px; border-bottom: none;
}
