/* 창 맵 패널.
   태블릿에서 손가락으로 쓰는 화면이다. 누르는 것은 전부 44px 이상으로 둔다. */

:root {
  --bg: #0e1117;
  --card: #161b22;
  --card2: #1c2128;
  --border: #2d333b;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: rgba(88, 166, 255, .14);
  --ok: #3fb950;
  --warn: #d29922;
  --err: #f85149;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* 본문과 상단이 같은 너비를 쓰게 한 곳에서 정의한다. 이게 어긋나면
     넓은 모니터에서 머리말만 화면 끝까지 늘어나 보인다. */
  --page: 1000px;
  --pad: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  overscroll-behavior: none;
}

#app { display: flex; flex-direction: column; min-height: 100%; }

/* ------------------------------------------------------------------ 상단 */
/* 상단 3층(바 + 사용량 띠 + 탭)을 한 덩어리로 고정한다.
   각각에 sticky 를 걸면 셋 다 top:0 이라 서로 겹친다. */
#top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 17, 23, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
/* 상단 3층과 본문이 같은 너비·같은 좌우 여백을 쓴다. */
#bar, #usage-strip, #tabs, #stage {
  width: 100%; max-width: var(--page); margin-inline: auto;
  padding-inline: var(--pad);
}

#bar {
  display: flex; align-items: center; gap: 12px;
  padding-block: 12px 10px;
}
#dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
body[data-state="online"]     #dot { background: var(--ok); }
body[data-state="offline"]    #dot { background: var(--err); }
body[data-state="connecting"] #dot { background: var(--warn); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

#hostname {
  font-weight: 700; font-size: 15px; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.badge {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid transparent;
  white-space: nowrap;
}
.badge.off { background: rgba(139, 148, 158, .14); color: var(--muted); }
.badge.bad { background: rgba(248, 81, 73, .14); color: var(--err); }

#bar button, #bar a {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--card2); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 17px; cursor: pointer;
}
#bar button:active, #bar a:active { background: var(--border); }

/* --------------------------------------------------- 사용량 띠 + 탭 */
#usage-strip { padding-bottom: 12px; }

/* 밑줄만으로 현재 탭을 표시하면 흐린 글자 넷이 나란히 있어 어느 것이 켜져
   있는지 한눈에 안 들어온다. 켜진 것을 통째로 칠한다. */
#tabs { display: flex; padding-bottom: 12px; }
#tabs button {
  flex: 1; position: relative;
  min-height: 46px; padding: 0 10px; margin: 0 3px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted);
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: background .12s, color .12s;
}
#tabs button:first-child { margin-left: 0; }
#tabs button:last-child { margin-right: 0; }
#tabs button.on {
  color: #06121f; background: var(--accent); border-color: var(--accent);
}
#tabs button:not(.on):hover { color: var(--text); background: #232a34; }

.badge-dot {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px;
  font-size: 12px; font-weight: 800; line-height: 1;
  color: #06121f; background: var(--accent); border-radius: 999px;
}
/* 켜진 탭에서는 배경이 이미 파랑이라 뒤집어 준다. */
#tabs button.on .badge-dot { color: var(--accent); background: #06121f; }

.tab { display: flex; flex-direction: column; gap: 16px; }
.tab[hidden] { display: none; }

/* --------------------------------------------------------- 대상 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  min-height: 42px; padding: 0 16px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text);
  background: var(--card2); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
}
.chip:not(.on):hover { background: #232a34; border-color: #3d444d; }
.chip.fg { border-color: var(--ok); }
.chip.on {
  color: #06121f; background: var(--accent); border-color: var(--accent);
}
.chip:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ 카드 */
#stage {
  flex: 1; display: flex; flex-direction: column;
  padding-block: 18px calc(28px + var(--safe-b));
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card h2 {
  font-size: 17px; font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 9px;
}
.count { font-size: 13px; font-weight: 500; color: var(--muted); }
.hint { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin-bottom: 14px; }
.hint.tight { margin: 10px 0 0; }
.hint b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ 입력 */
textarea, select, input[type="text"] {
  width: 100%; font: inherit; color: var(--text);
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 76px; font-size: 15px; }
select { min-height: 46px; font-size: 15px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 34px;
}
textarea:focus, select:focus, input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.grid2 label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.actions .check { margin-right: auto; }

button.primary, .actions button {
  min-height: 48px; padding: 0 18px; flex: 1;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
}
.actions .check { flex: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: #06121f; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }

/* ------------------------------------------------------------------ 녹음 */
#ptt {
  position: relative; overflow: hidden;
  width: 100%; min-height: 110px; margin-bottom: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--text);
  background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; touch-action: none; user-select: none;
}
body[data-rec="1"] #ptt { background: rgba(248, 81, 73, .16); border-color: var(--err); }
#timer { font-size: 12px; font-weight: 500; color: var(--muted); }
#meter { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: transparent; }
#meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .06s linear; }

/* ------------------------------------------------------------------ 계획 */
#plan {
  margin-top: 12px; padding: 12px; border-radius: 10px;
  background: var(--card2); border: 1px solid var(--border); font-size: 13px;
}
#plan .k { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
#plan .v { margin: 2px 0 10px; word-break: break-word; }
#plan .v:last-child { margin-bottom: 0; }
#plan .v.big { font-weight: 700; font-size: 15px; color: var(--accent); }
#plan.bad { border-color: var(--err); }
#plan.good { border-color: var(--ok); }

/* ------------------------------------------------------------------ 창 맵 */
#map { display: flex; flex-direction: column; gap: 12px; }
.screen { }
.screen-name { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.screen-box {
  position: relative; width: 100%;
  background: #0a0d12; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.win {
  position: absolute; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 2px; text-align: center;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  color: var(--text); background: var(--accent-dim);
  border: 1px solid var(--accent); border-radius: 4px;
  cursor: pointer;
}
.win.fg { background: rgba(63, 185, 80, .22); border-color: var(--ok); }
.win.min { opacity: .4; border-style: dashed; }
.win:active { background: var(--accent); color: #06121f; }
.win .slot {
  position: absolute; top: 1px; left: 3px;
  font-size: 9px; color: var(--muted);
}
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; text-align: center; }

/* ------------------------------------------------------- 녹음 단축키 */
.hk-row { display: flex; gap: 10px; align-items: stretch; }
.hk-row input { flex: 1; min-height: 46px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.hk-row button { flex: none; min-height: 46px; padding: 0 20px; }

.hk-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hk-presets button {
  min-height: 38px; padding: 0 12px;
  font: inherit; font-size: 12.5px; color: var(--muted);
  background: var(--card2); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
}
.hk-presets button:active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
#hotkey-note { margin-top: 10px; margin-bottom: 0; }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px;
}

/* ------------------------------------------------------- 프로젝트 설정 */
#project-list { display: flex; flex-direction: column; gap: 10px; }
.slot-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 12px;
  padding: 14px; border-radius: 12px;
  background: var(--card2); border: 1px solid var(--border);
}
.slot-row.fg { border-color: var(--ok); }
.slot-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-sub { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: -4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.slot-fields.two { grid-template-columns: 1.6fr 1fr; }
.slot-fields label {
  display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted);
}
.slot-row input[type="text"], .slot-row select { min-height: 40px; font-size: 13px; padding: 8px 10px; }
.slot-row select { padding-right: 30px; }
.slot-go {
  width: 46px; height: 46px; flex: none; font-size: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); cursor: pointer;
}

/* ------------------------------------------------------------------ 사용량 */
#gauge {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: #0b0f15; border: 1px solid var(--border); margin-top: 9px;
}
#gauge i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s ease; }
#gauge[data-level="warn"]    i { background: var(--warn); }
#gauge[data-level="danger"]  i { background: var(--err); }
#gauge[data-level="unknown"] i { background: var(--muted); }

#usage-line { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.usage-cap { font-size: 13px; color: var(--muted); flex: none; }
#usage-pct { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
#usage-line .count { font-size: 13.5px; }
/* 가장 자주 보는 숫자다. 남은 시간은 흐리게 두지 않는다. */
#usage-reset { color: var(--text); opacity: .82; }

/* 실제 값인지 추정인지 한눈에. 추정치를 실제로 읽으면 계획이 어긋난다. */
.count.ok  { color: var(--ok); }
.count.est { color: var(--warn); }

/* ------------------------------------------------------------ 바로가기 */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.link-btn {
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
  min-height: 58px; padding: 10px 12px; text-decoration: none;
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
}
.link-btn:active { background: var(--accent-dim); border-color: var(--accent); }
.link-name { font-weight: 700; font-size: 15px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-host { font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ 예약 */
#queue-list { display: flex; flex-direction: column; gap: 10px; }
.q-row {
  padding: 11px 12px; border-radius: 10px;
  background: var(--card2); border: 1px solid var(--border);
}
.q-row.s-done      { opacity: .65; }
.q-row.s-cancelled { opacity: .5; }
.q-row.s-failed    { border-color: var(--err); }
.q-row.s-running   { border-color: var(--accent); }

.q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.q-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(139, 148, 158, .16); color: var(--muted); white-space: nowrap;
}
.s-pending .q-badge { background: var(--accent-dim); color: var(--accent); }
.s-failed  .q-badge { background: rgba(248, 81, 73, .16); color: var(--err); }
.s-done    .q-badge { background: rgba(63, 185, 80, .16); color: var(--ok); }
.q-when { font-size: 11.5px; color: var(--muted); }
.q-text { font-size: 14.5px; line-height: 1.55; word-break: break-word; }
.q-err { font-size: 12px; color: var(--err); margin-top: 5px; }
.q-actions { display: flex; gap: 8px; margin-top: 9px; }
.q-actions button {
  flex: 1; min-height: 38px; font: inherit; font-size: 13px; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}

/* ------------------------------------------------------------------ 진단 */
#diag { font-size: 14px; }
#diag div { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
#diag div:last-child { border-bottom: 0; }
#diag span:first-child { color: var(--muted); min-width: 108px; flex: none; }
#diag span:last-child { word-break: break-all; }

/* ------------------------------------------------------------------ PIN */
#lock {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; padding: 12px;
  background: rgba(14, 17, 23, .96);
  /* 화면보다 커지면 스크롤. 인덱스 쪽과 같은 규칙이다. */
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#lock > .panel {
  max-height: calc(100dvh - 24px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
#lock[hidden] { display: none; }
#lock .panel {
  width: 100%; max-width: 320px; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
#lock h2 { font-size: 17px; margin-bottom: 6px; }
#lock p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
#pin-dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; min-height: 12px; }
#pin-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
#pin-dots i.on { background: var(--accent); }
#keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#keypad button {
  min-height: 56px; font: inherit; font-size: 19px; font-weight: 600; color: var(--text);
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
#keypad button.alt { font-size: 14px; color: var(--muted); }
.err { color: var(--err); font-size: 12.5px; margin-top: 12px; min-height: 18px; }

/* ------------------------------------------------------------------ 토스트 */
#toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  max-width: min(92vw, 460px); z-index: 50;
  padding: 11px 16px; border-radius: 10px;
  background: #21262d; border: 1px solid var(--border);
  font-size: 13px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { border-color: var(--err); color: #ffc9c6; }

@media (max-width: 600px) {
  :root { --pad: 14px; }
  #tabs button { font-size: 14px; padding: 0 4px; }
  .card { padding: 16px; }
}

@media (max-width: 380px) {
  .slot-fields, .slot-fields.two { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- Claude 진행 상태 */
.chip .led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: middle;
}
.chip .led.idle { background: var(--ok); }
.chip .led.busy { background: var(--accent); animation: led-pulse 1s infinite; }
.chip.on .led { background: #06121f; }
@keyframes led-pulse { 50% { opacity: .25; } }

/* 창 맵에서 응답 중인 창은 테두리로 표시한다. */
.win.working { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.q-proj {
  font-size: 12px; font-weight: 700; color: var(--text);
  padding: 2px 9px; border-radius: 999px;
  background: rgba(255,255,255,.07); white-space: nowrap;
}

/* ---------------------------------------------------------- 명령 기록 */
#log-list { display: flex; flex-direction: column; gap: 9px; }
.log-row {
  padding: 12px 14px; border-radius: 12px;
  background: var(--card2); border: 1px solid var(--border);
}
.log-row.bad { border-color: var(--err); }
.log-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.log-time { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-act {
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent); white-space: nowrap;
}
.log-row.bad .log-act { background: rgba(248,81,73,.16); color: var(--err); }
.log-src { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.log-said { font-size: 14.5px; line-height: 1.55; word-break: break-word; }
.log-typed { margin-top: 4px; font-size: 13px; color: var(--muted); word-break: break-word; }

/* 프로젝트 열기 — 이름으로 걸러 찾기 */
#ws-filter {
  width: 100%; margin-top: 8px; min-height: 42px;
  font: inherit; font-size: 14px; color: var(--text);
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
}
#ws-list { max-height: 44vh; overflow-y: auto; }

/* 현황 관련 스타일은 status.css 로 옮겼다 (인덱스와 공용) */

#now-recap { display: flex; flex-direction: column; gap: 8px; }
.now-stage {
  margin-bottom: 12px; padding: 11px 13px; border-radius: 10px;
  background: var(--accent-dim); color: var(--text);
  font-size: 13.5px; line-height: 1.6;
}

/* 추천 명령 — 본문은 눌러서 고치고, 화살표는 그대로 보낸다 */
#now-suggest { display: flex; flex-direction: column; gap: 9px; }
.sug-row { display: flex; gap: 8px; align-items: stretch; }
.sug-pick {
  flex: 1; min-width: 0; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  font: inherit; color: var(--text);
  background: var(--card2); border: 1px solid var(--border);
}
.sug-pick:hover { background: #232a34; border-color: #3d444d; }
.sug-pick:active { transform: translateY(1px); }
.sug-label { font-size: 13px; font-weight: 800; color: var(--accent); }
.sug-body { font-size: 13.5px; line-height: 1.55; color: var(--text); word-break: break-word; }
.sug-go {
  flex: none; width: 54px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700;
  color: #06121f; background: var(--accent); border: 1px solid var(--accent);
}
.sug-go:disabled { opacity: .45; }
.sug-go:active:not(:disabled) { transform: translateY(1px); }

@media (max-width: 480px) {
  .sug-go { width: 46px; }
}

/* --------------------------------------------------------- 전체 진행 상황 */
#now-overview { display: flex; flex-direction: column; gap: 9px; }

.ov-row {
  display: flex; flex-direction: column; gap: 5px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 13px 15px; border-radius: 12px;
  font: inherit; color: var(--text);
  background: var(--card2); border: 1px solid var(--border);
}
.ov-row:hover { background: #232a34; border-color: #3d444d; }
.ov-row:active { transform: translateY(1px); }
.ov-row.busy { border-color: rgba(88, 166, 255, .5); }

.ov-head { display: flex; align-items: center; gap: 9px; }
.ov-head .led { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 0; }
.ov-head .led.idle    { background: var(--ok); }
.ov-head .led.busy    { background: var(--accent); animation: led-pulse 1s infinite; }
.ov-head .led.unknown { background: var(--muted); }
.ov-name { font-size: 15px; font-weight: 800; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-age { font-size: 12px; color: var(--muted); flex: none; }
.ov-row.busy .ov-age { color: var(--accent); font-weight: 700; }

.ov-body {
  font-size: 13.5px; line-height: 1.55; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 아직 요약이 안 된 줄은 원문이라 흐리게 — 채워지면 또렷해진다 */
.ov-body.raw { color: var(--muted); }
.ov-next { font-size: 12.5px; line-height: 1.5; color: var(--accent); }

/* 현황 탭 — 공용 스타일(status.css) 위에 패널에서만 필요한 여백 */
#now-overview { display: flex; flex-direction: column; gap: 10px; }
#now-recap { display: flex; flex-direction: column; gap: 10px; }
#now-card .now-state { margin-bottom: 12px; }

/* 권하지 않는 단축키 후보 — 수정키가 눌린 채 남을 수 있다 */
.hk-presets button.warn { color: var(--warn); border-color: rgba(210,153,34,.4); }

/* -------------------------------------------- 새 프로젝트 / 제외 목록 */
/* 제목 줄 오른쪽에 버튼을 둔다. 목록 위에 있어야 '여기에 더한다' 로 읽힌다. */
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h2 { flex: 1; min-width: 0; margin: 0; }
.card-head > button {
  flex: 0 0 auto; width: auto; min-height: 34px; padding: 0 12px;
  border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--text); background: var(--card); border: 1px solid var(--border);
}
.card-head > button:active { background: #232a34; }

#ws-new { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 4px; }
#ws-new[hidden] { display: none; }
#ws-new > input {
  width: 100%; box-sizing: border-box; min-height: 46px;
  padding: 0 13px; border-radius: 10px;
  font-family: inherit; font-size: 15px;
  color: var(--text); background: var(--card2, var(--card));
  border: 1px solid var(--accent);
}
#ws-new > input:focus { outline: none; }

#ex-filter {
  width: 100%; box-sizing: border-box; min-height: 42px;
  margin-bottom: 10px; padding: 0 13px; border-radius: 10px;
  font-family: inherit; font-size: 14px;
  color: var(--text); background: var(--card2, var(--card));
  border: 1px solid var(--border);
}
#ex-list { max-height: 46vh; overflow-y: auto; }
