
/* ── AlphaX 어드민 전용 보탬 — ★고객 콘솔 app.css 뒤에 «덧붙인다». 콘솔 것을 고치지 않는다.
      콘솔이 이미 가진 변수(--space-card · --line · --surface · --radius-card …)만 쓴다.
      ★ 새 색·새 크기를 만들지 않는다. 만들면 그 순간 두 화면이 갈린다.            */

/* ── 2026-10-01 로그인 새 모양 (사장님 «어드민로그인 창도 옛화면이던데 싹 없에») — 로고·글귀·회색 단추는 콘솔 부품
      (lib/loginLogoMotion.mjs · lib/loginPresentationStyles.mjs)을 그대로 쓴다. 어드민 app.css 는 콘솔보다 옛 판이라
      입력칸 글자만 14px 로 남아 있다 → 콘솔 v4/app.css «.gate-form input» 의 글자 크기 한 줄을 그대로 옮긴다
      (좁은 폭·가로 모드에서 입력칸을 누를 때 화면이 저절로 커지는 것도 같이 막힌다 · 16px 은 콘솔 값 그대로 — 새 크기가 아니다)
      ★ 알림 칸(.alert-strip) 묶음 «앞»에 둔다 — 그 묶음 뒤는 알림 칸 시험이 «알림 칸 것»으로 센다 */
.gate-form input { font-size: max(16px, var(--font-body)); }

/* 콘솔 카드 격자 — 넓으면 3열, 좁으면 2열, 더 좁으면 1열 */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-card);
  align-items: start;
}

/* 카드 사이 세로 간격 — 콘솔 shell 안의 카드들이 붙지 않게 */
.shell > .card,
.shell > .admin-grid { margin-bottom: var(--space-card); }
.shell > *:last-child { margin-bottom: 0; }

/* 콘솔 한 대 카드 — 콘솔의 .card 를 그대로 쓰고 안쪽만 정돈 */
.admin-console .st-list-column { display: flex; flex-direction: column; }
.admin-console .card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 「아직 준비 중」·「목록 없음」 안내 */
.admin-empty { color: var(--text-muted); padding: var(--sp-3) 0; line-height: 1.7; }
.admin-empty__sub { color: var(--text-muted); font-size: var(--font-small, 0.85em); opacity: 0.8; }

/* 아직 속이 없는 메뉴 — 흐리게 */
.app-nav__item.is-soon { opacity: 0.55; }

/* ── 계정 발급 화면 — 콘솔이 이미 가진 것만 쓴다 ───────────────── */
.st-row input[type="text"],
.st-row input[type="password"],
.st-row select {
  width: 100%; max-width: 260px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input, 8px);
  background: var(--surface-2, var(--surface));
  color: var(--text-title, inherit);
  font: inherit;
}
.st-row strong { min-width: 0; flex: 0 1 auto; }
.admin-actions { margin-top: var(--sp-3); display: flex; gap: 8px; }
.admin-btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input, 8px);
  background: var(--accent, #21F1A8);
  color: var(--accent-ink); font: inherit; font-weight: var(--weight-bold); cursor: pointer;
}
.admin-btn[disabled] { opacity: 0.6; cursor: default; }
[data-issue-error] { color: var(--danger, #ff6b6b); }
[data-issue-ok] { color: var(--accent, #21F1A8); }

/* ── 만들기 모달 안의 입력칸 — 크고 누르기 쉽게 ───────────────── */
.admin-form { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field > span { color: var(--text-muted); font-size: 0.9em; }
.admin-field--readonly strong { color: var(--text-title, inherit); overflow-wrap: anywhere; }
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input, 8px);
  background: var(--surface-2, var(--surface));
  color: var(--text-title, inherit);
  font: inherit; line-height: 1.4;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus { outline: 2px solid var(--accent, #21F1A8); outline-offset: 1px; }
.account-dialog__panel { max-width: 420px; width: calc(100% - 32px); }
.account-dialog__panel--operator { max-width: 1100px; max-height: calc(100dvh - 32px); overflow-y: auto; }
/* 10-05 5판: 절대 배치 chart-host의 기준은 차트 칸. 닫기는 스크롤 밖에 둔다.
   높이값은 콘솔 5e4f5e5의 .chart-slot 규칙(PC / ≤820 / ≤380)을 그대로 사용한다.
   10-08 걸음 1 : 차트 칸은 콘솔 부품(renderChartCard)의 .chart-slot 이다(옛 .admin-chart__slot 은 없앴다 · 값은 그대로).
   닫기는 머리에서 바닥 줄(.account-dialog__actions)로 옮겼다 — 바닥 줄이 스크롤 밖. */
.account-dialog__panel.admin-chart__panel { display: flex; flex-direction: column; overflow: hidden; }
.admin-chart__panel > .account-dialog__actions { flex: 0 0 auto; }
.admin-chart__body { min-height: 0; overflow-y: auto; }
.admin-chart__panel .chart-slot { position: relative; height: clamp(410px, 56vh, 620px); }
.admin-chart__panel .chart-slot > .chart-host { position: absolute; inset: 0; }
@media (max-width: 820px) { .admin-chart__panel .chart-slot { height: 330px; } }
@media (max-width: 380px) { .admin-chart__panel .chart-slot { height: 290px; } }
/* 10-08 걸음 1 : 차트 창 머리 = 콘솔 차트 머리 «글자 크기·굵기» (사장님 «차트 창 머리를 콘솔 차트 머리와 똑같이» → «그래»).
   어드민이 쓰는 app.css 는 콘솔 7073fd3(08-25) 판이라 제목이 작은 흐린 글자다 — 콘솔 지금 판(1.28.23 mvp/v4/app.css = d3531a8 · md5 067fd47a · :2036·:2038·:2136-2139·:2151)의
   제목 1.3rem/600(폰 1.125rem · 380 이하 1rem) · 상태 글 .875rem · 폰 봉 단추·범례 .75rem 만 «이 창 안에» 옮긴다. 새 색·새 값 0.
   굵기 600 은 어드민 :root --weight-bold(= 콘솔 600 · test_admin_color ROOT) 토큰으로 적는다. */
.admin-chart__panel .chart-card .card-title em { margin: 0; color: var(--text-title); font-size: 1.3rem; font-weight: var(--weight-bold); letter-spacing: -.025em; }
.admin-chart__panel .chart-status { font-size: .875rem; }
/*   단계 글자(콘솔 부품 .chart-stage · 어드민 app.css 판에선 보이는 흐린 작은 글자)는 제목 «바로 옆», 봉 길이 단추는 오른쪽 끝 —
     설계 화면 그림(«<em>청담 · 이더리움</em>  2단계 운용 중 ··· [1분][5분][15분][1시간]») 자리. 머리 줄의 사이 띄움(space-between)이
     가운데로 밀던 것을 단계 글자 «뒤 여백»만 바꿔 붙인다. 새 색·새 크기 0. */
.admin-chart__panel .chart-card .chart-stage { margin-right: auto; }
@media (max-width: 820px) {
  .admin-chart__panel .chart-card .card-title em { font-size: 1.125rem; }
  .admin-chart__panel .chart-tf { font-size: .75rem; }
  .admin-chart__panel .chart-legend__item { font-size: .75rem; }
}
@media (max-width: 380px) { .admin-chart__panel .chart-card .card-title em { font-size: 1rem; } }
.operator-grant-scroll { overflow-x: auto; margin-bottom: 16px; }
.operator-grant-inputs { min-width: 900px; width: 100%; }
.operator-grant-inputs .admin-field { margin: 0; }
.operator-grant-inputs input { min-width: 120px; }
.operator-grant-inputs select { min-width: 240px; }
.account-dialog__actions { display: flex; gap: 8px; justify-content: flex-end; }
.account-dialog__actions button { padding: 10px 18px; border-radius: var(--radius-input, 8px);
  border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
/*   ★2026-10-02 손보기 3 — 창 아래 단추([저장]·[닫기]·[만들기])가 «투명 · 보통 글씨»였다. 콘솔 창 단추는 «바탕색 채움 · 굵은 글씨»
     (콘솔 app.css .account-dialog__actions button — background var(--canvas) · color var(--text-title) · font-weight var(--weight-bold)).
     → 콘솔과 같은 모양. 크기·자리는 그대로 */
.account-dialog__actions button { background: var(--canvas); color: var(--text-title); font-weight: var(--weight-bold, 700); min-height: 44px; }
.account-dialog__actions button[disabled] { opacity: 0.6; cursor: default; }

/* ── 파트너 «목록» 표 — 엑셀처럼 (Owner 그림 2026-08-27) ───────── */
/*    ★ 콘솔이 이미 가진 변수만 쓴다. 새 색·새 크기를 만들지 않는다.        */
.ptab__wrap { overflow-x: auto; margin-top: 4px; }
.ptab { min-width: 720px; display: flex; flex-direction: column; }
.ptab__row {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 0.8fr 0.45fr 0.45fr 0.85fr 0.7fr 1.3fr;
  gap: 10px; align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.ptab__row:last-child { border-bottom: 0; }
.ptab__row--head {
  color: var(--text-muted); font-size: 0.85em; font-weight: var(--weight-bold);
  border-bottom: 1px solid var(--line);
}
.ptab__c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptab__c--id { font-weight: var(--weight-bold); }
.ptab__c--num { text-align: right; }
.ptab__c--act { text-align: right; }

/* ★★ 2026-09-02 — 「하위생성」 단추가 «잘려서» 안 보였다 〔사장님 실측 · "버튼 어디있어?"〕.
      옛 계약 : 표를 오른쪽으로 «밀어야» 만들기 단추가 보였다 (min-width 720px).
      왜 틀렸나 : 사장님이 에이전트를 만드시고도 ★총판 만들 길을 못 찾으셨다.
                 단추가 «없는» 것이 아니라 «가려진» 것이었다.
      새 계약 : 만들기 칸은 표를 밀지 않아도 ★오른쪽에 늘 붙어 있다.
   ★ 새 것을 «더하지» 않는다 — 있던 칸을 자리만 고정한다 (08-30 화면 금지 셋과 안 부딪친다). */
.ptab__c--act { position: sticky; right: 0; background: var(--surface); padding-left: 10px; }
.ptab__row--head .ptab__c--act { background: var(--surface); }
.ptab__empty { padding: 18px 4px; color: var(--text-muted); }
.admin-btn--sm { padding: 6px 12px; font-size: 0.9em; font-weight: var(--weight-bold); }

/* ── 접었다 펴는 «+» 와 들여쓰기 (Owner 그림 2026-08-27) ───────── */
.ptab__c--id { display: flex; align-items: center; gap: 8px; }
.ptab__indent { display: inline-block; flex: 0 0 auto; }
.ptab__idtext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptab__tog {
  flex: 0 0 auto; width: 22px; height: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-2, var(--surface)); color: inherit;
  font: inherit; font-weight: var(--weight-bold); cursor: pointer; padding: 0;
}
.ptab__tog:hover { border-color: var(--accent, #21F1A8); }
.ptab__tog.is-open { background: var(--accent, #21F1A8); color: var(--accent-ink); border-color: var(--accent, #21F1A8); }
.ptab__tog--none { border: 0; background: transparent; cursor: default; }
.ptab__row--sub { opacity: 0.75; }

/* ── 키 「등록됨」 딱지 · 고치는 법 목록 ──────────────────────── */
.ptab__ok { color: var(--accent, #21F1A8); font-weight: var(--weight-bold); }
.admin-fix { margin: 8px 0 0 0; padding-left: 20px; line-height: 1.7; }
.admin-fix li { margin: 2px 0; }

/* ── ★★ 층별 목록 표 (2026-09-02 사장님 지시) ─────────────────────────
      "각 레벨별 탭에는 상단에 생성 버튼이 딱하나 / 그아래는 엑셀처럼 / 맨끝에 수정버튼 회색으로"
   ★ 콘솔의 변수만 쓴다. 새 색·새 크기를 만들지 않는다. */
.lvl__wrap { overflow-x: auto; margin-top: 4px; }
.lvl { min-width: 640px; display: flex; flex-direction: column; }
.lvl__row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 0.9fr 0.5fr 0.6fr 0.7fr;
  gap: 10px; align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
/* 09-19 콘솔 표: 생성일·마지막 확인 시각을 뺀 여덟 칸. */
/*   ★2026-10-02 손보기 3 #5 — 창 폭 1024 에서 상위코드가 «super1 (슈퍼…»로 잘렸다(.8fr ≈ 98px).
     칸 «수»는 그대로 여덟 · 폭만 옮긴다 : ○/✗/— 한 글자뿐인 키·IP 칸과 단추 칸에서 덜어 상위코드에 준다 */
.lvl__row--console { grid-template-columns: .9fr 1fr 1.2fr .5fr .5fr .6fr .65fr .6fr; }
.lvl__row:last-child { border-bottom: 0; }
.lvl__row--head { color: var(--text-muted); font-size: 0.85em; font-weight: var(--weight-bold); }
.lvl__c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl__c--id { font-weight: var(--weight-bold); }
/*   ★2026-10-02 손보기 3 #3 — 모르는 아이디(—)는 굵게 하지 않는다(값처럼 튀었다) */
.lvl__c--id .admin-empty__sub { font-weight: 400; }
.lvl__c--num { text-align: right; }
/*   2026-09-30 손보기 2 : 숫자 칸(오른쪽 맞춤) 바로 뒤 «상태»가 붙어 «1 정상»처럼 읽혔다 → 숫자 칸 오른쪽에 숨 한 칸 */
@media (min-width: 821px) { .lvl__row .lvl__c--num { padding-right: 1.2em; } }   /* 폰(카드 모양)에는 안 건다 */
/*   ★ 「수정」은 표를 밀지 않아도 늘 보인다 — 오늘 「하위생성」이 잘려서 안 보였던 그 병을 안 되풀이한다. */
.lvl__c--act { text-align: right; position: sticky; right: 0; background: var(--surface); padding-left: 10px; }
.lvl__row--head .lvl__c--act { background: var(--surface); }
.lvl__empty { padding: 18px 4px; color: var(--text-muted); }
/*   ★ 「수정」은 ★회색이다 (사장님 지정) — 만들기(강조)와 눈에 띄게 다르다. */
.admin-btn--quiet {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-muted); font-weight: var(--weight-normal);
}

/* ── ★★ 도움말 — 슬라이드를 «세로로» 이어 붙인다 (2026-09-02 사장님 지시) ──
      "ppt 형식으로 만들면 좋을거같아" → "스크롤 해서 내려가면서 하나하나 볼수있으면 참좋을듯"
   ★ 콘솔이 이미 쓰는 변수만 쓴다. 새 색을 만들지 않는다. */
/*   ★ 2026-09-02 사장님 : "대메뉴처럼 해야지" — 페이지 대제목. 카드 안 작은 글씨가 아니다. */
.help__title {
  margin: 4px 0 18px;
  /*   ★2026-10-02 어드민 색 맞추기 — 콘솔 09-24 페이지 대제목 값 그대로 (콘솔 app.css «.help-page .help__title» : 1.5rem · 600 · -.035em) */
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--text);
}
.help__slide { margin-bottom: 20px; }
.help__say { color: var(--text-muted); line-height: 1.7; margin: 0 0 12px; }
.help__link { color: var(--accent, #21F1A8); text-decoration: underline; }
.help__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-right: 8px; border-radius: 50%;
  background: var(--accent, #21F1A8); color: var(--accent-ink); font-size: 0.85em; font-weight: var(--weight-bold);
}
.help__svg { width: 100%; height: auto; display: block; border-radius: var(--radius-card); }

/*   ★★ 2026-09-02 — 총괄이 그린 SVG 를 버리고 ★사장님이 주신 «실제 안내본»으로 갈았다.
      사장님 : "이건 우리가 만든 이미지자나 (…) ★무조건 캡쳐본이 있어야되"
   ★ 데스크톱은 원본 비율 그대로. ★모바일은 «가로 스크롤이 아니라» 폭 100%로 줄인다(지시서 명시). */
.help__shot {
  display: block;
  width: 100%;
  max-width: 1672px;
  height: auto;              /* ★ 비율 유지 — width/height 속성이 자리를 미리 잡아 흔들림이 없다 */
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface-2, var(--surface));
}
.help__say--note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

/*   ★★ 2026-09-11 사장님 : "도움말탭안에 각 항복별 탭도 좀 만들어서 나눠안내해야할거같아
        안그럼 너무 길고스크롤이 많아" — 항목 탭 한 줄 + 한 번에 «한 항목»만 그린다.
   ★ 콘솔이 이미 쓰는 변수만 쓴다. 새 색을 만들지 않는다. */
.help__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  scroll-margin-top: 12px;
}
.help__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;           /* 콘솔 09-24 «.help-page .help__tab» 모서리 */
  background: var(--surface-2, var(--surface));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/*   ★2026-10-02 어드민 색 맞추기 — 고른 칸·글자를 콘솔 09-24 도움말 항목과 같게 (콘솔 app.css «.help-page .help__tab*» · «.help__tab*»)
     옛 : 강조색 테두리 + 안쪽 강조 선 · 이름 15.2px/700 · 보조 12.48px · 고른 칸 보조 글자 강조색
     새 : 고른 칸 = 선택 바탕 + 일반 선색 테두리 + 왼쪽 회색 선 · 이름 14px/500 · 보조 12px · 고른 칸 보조 글자 = 제목 글자색
     (콘솔은 --brand 로 쓰지만 어드민 밝게 화면에서는 --brand 가 :root 의 어두운 값으로 굳는다 → 같은 뜻의 --text-title 을 바로 쓴다)
     ★ 항목을 «한 줄로 늘어놓는» 배치는 그대로 (콘솔은 왼쪽 세로 목록 — 배치는 이번 결정 밖) */
.help__tab:hover { border-color: var(--text-title); }
.help__tab:focus-visible { outline: 2px solid var(--text-title); outline-offset: 2px; }
.help__tab.is-on {
  background: var(--selected);
  border-color: var(--line);
  outline: 0;
  box-shadow: inset 2px 0 var(--text-muted);
}
.help__tab-name { font-size: .875rem; font-weight: 500; line-height: 1.3; }
.help__tab-where { font-size: .75rem; color: var(--text-muted); line-height: 1.3; }
.help__tab.is-on .help__tab-where { color: var(--text-title); }
.help__next { display: flex; justify-content: flex-end; margin: 4px 0 28px; }
@media (max-width: 820px) {
  /*   ★ 폰 — 두 칸 격자. 가로로 밀지 않는다. 마지막 칸이 홀로 남으면 한 줄을 다 쓴다.
       ★전환점은 콘솔·어드민과 «같은» 820px (09-03 그물 test_admin_breakpoint_820 · 처음에 760 으로 썼다가 회귀가 잡았다) */
  .help__tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .help__tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .help__next { justify-content: stretch; }
  .help__next-btn { width: 100%; }
}

/*   ★ 2026-09-02 사장님 : "걍 가로로 하고 에이전트 생성 만들어"
     제목과 생성 단추를 «한 줄»로. 줄나눔·개수 배지 없음. */
.lvl__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 4px 0 18px;
}
.lvl__title { margin: 0; }

/* ── 층별 대시보드 — 위층은 합계 줄, 슈퍼콘솔은 자기 콘솔 카드 ───────── */
.dash-issues {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-bottom: var(--space-card);
  color: var(--text);
}
.dash-table { overflow-x: auto; max-width: 100%; min-width: 0; }
/*   ★2026-09-30 손볼 곳 #1 — 최소 폭 900 이 창 폭 800 에서 «오늘 합»을 잘라 먹었다 → 620 (돈 칸 폭은 그대로 맞는다) */
.dash-table__inner { display: flex; flex-direction: column; min-width: 620px; }
.dash-row {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.65fr 0.7fr 0.9fr 0.9fr 0.75fr auto;
  gap: 12px; align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: 0; }
.dash-row--head { color: var(--text-muted); font-size: 0.85em; font-weight: var(--weight-bold); }
.dash-row--total { font-weight: var(--weight-bold); }
.dash-row__c { min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.dash-row__c--id { font-weight: var(--weight-bold); }
.dash-row__c--num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-empty { color: var(--text-muted); padding: 18px 4px; }
/*   ★2026-09-30 손볼 곳 #14 — 폰에서 표가 아이디·닉네임만 보이고 돈 칸은 옆으로 밀어야 보였다
     → 층 표(lvl)와 «같은» 폰 모양 : 줄마다 «이름 ··· 값» · 머리줄 감춤 · 빈 «소식 끊김»은 감춤 */
@media (max-width: 820px) {
  .dash-table__inner { min-width: 0; }
  .dash-row { display: block; padding: 12px 4px; }
  .dash-row--head { display: none; }
  .dash-row__c {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding: 4px 0; text-align: left;
  }
  .dash-row__c::before { content: attr(data-k); color: var(--text-muted); font-size: 0.86em; flex: 0 0 auto; font-weight: 400; }
  .dash-row__c--id { font-size: 1.05em; }
  /* 빈 «소식 끊김» 칸은 감춤 — 칸 이름표(data-k)는 언어를 고르면 번역되는 글자라 선택자로 읽지 않는다(어드민 언어 · 10-14 검사 막을 것 1).
     대신 «자리»로 가린다 : adminDashboard.mjs summaryRow 의 일곱째 칸(metricCell)이 언제나 «소식 끊김» 이다 — 시험 K 가 그 자리와 이 선택자를 같이 못박는다. */
  .dash-row__c:nth-child(7):empty { display: none; }
}
/* 위층 : 층 줄을 누르면 그 가지의 판을 «보기만» 한다 (2026-09-16 사장님) */
.dash-row > [data-dash-focus] { white-space: nowrap; }
.dash-focus {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin: 0 0 var(--space-card);
}
.dash-focus > span { color: var(--text-muted); }
/* ── 슈퍼콘솔 «CCTV 열 칸» (2026-09-16 사장님 「10개의 모니터가 보이듯이」) ──────────
   ★ 칸 수가 창 폭 따라 «변하지 않게» 고정 열 : 넓은 화면 5열(2줄 × 5 = 10) · 821~1099px 3열 · 820px 이하 2열(10-05 간략보기).
   ★ 빈 자리도 칸이다(점선). 폰에서는 빈 자리를 접고 「빈 자리 N개」 한 줄만 보인다. */
.dash-cctv {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dash-bot .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-cctv__card { min-width: 0; margin: 0; padding: 12px; font-size: var(--font-body); line-height: 1.4; }
.dash-cctv__card .card-head { flex-wrap: wrap; align-items: flex-start; gap: 4px 8px; margin: 0 0 8px; }
.dash-cctv__card .card-title { min-width: 0; margin: 0; font-size: var(--font-body); line-height: inherit; overflow-wrap: anywhere; }
.dash-cctv__card .server-tag { flex: 0 0 auto; }
.dash-cctv__big {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0; border-bottom: 1px solid var(--line);
}
.dash-cctv__big > strong { font-size: 1em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-cctv__big > span, .dash-cctv__small > span, .dash-cctv__last > span { color: var(--text-muted); font-size: 0.85em; }
.dash-cctv__small, .dash-cctv__last {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 8px;
}
.dash-cctv__small > strong, .dash-cctv__last > strong { font-variant-numeric: tabular-nums; }
/*   ★2026-10-02 어드민 색 맞추기 — 돈 «+»·«−» 색을 콘솔 09-24 돈 색으로 (총괄 판단 : 사장님 결정 «어드민 색을 콘솔 09-24 새 모양에» 안에 든다)
     옛 : «+» 강조색(어둡게 금색 · 밝게 민트) · «−» #ff6b6b — 콘솔은 돈만 초록·빨강(--positive · --negative · 어둡게 #0ECB81 · #F6465D)
     새 : 두 모드 다 콘솔 돈 이름. 어둡게 값은 아래 «콘솔 09-24» :root 묶음에 콘솔 app.css 에서 다시 읽은 값으로 박았다 */
.dash-cctv strong.is-plus { color: var(--positive); }
.dash-cctv strong.is-minus { color: var(--negative); }
.admin-chart__details strong.is-plus { color: var(--positive); }
.admin-chart__details strong.is-minus { color: var(--negative); }
.dash-cctv__empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 160px; border: 1px dashed var(--line); border-radius: var(--radius-card);
  color: var(--text-muted);
}
.dash-cctv__more { display: none; color: var(--text-muted); margin: 10px 4px 0; }
/* ★ 2026-09-17 — 넘친 콘솔 이름 한 줄은 넓은 화면에서도 보인다(맨 위 이상 줄이 없어져 여기가 유일한 자리) */
.dash-cctv__more.dash-cctv__overflow { display: block; }
/* 2026-09-17 A2 — 운용 시작·마감 단추 · 판 머리 [전체 …] · 카드 아래 결과 한 줄 */
.dash-cctv__head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0 0 10px; }
.dash-cctv__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-cctv__result { margin: 8px 0 0; color: var(--text-muted); font-size: 0.85em; overflow-wrap: anywhere; }
@media (min-width: 821px) and (max-width: 1099px) {
  .dash-cctv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 세로메뉴 맨 아래의 밝기 스위치 (2026-09-03 사장님 「어드민도 옮겨」 · 콘솔과 같은 자리 · 같은 규칙) ─────
   PC 세로메뉴와 모바일 서랍이 같은 발 칸(app-nav__foot)에 둔다. 두 칸이 폭을 나눠 갖는다(기본 규칙 · 모바일 전용 아님).
   ★ 콘솔 v4/app.css 에 «글자까지 같은» 규칙이 있다(3c05281). 어드민의 app.css 는 콘솔 «사본»이라 옛 사본이면 이 규칙이 없다 →
     여기서 같은 글자로 지킨다. 새 사본이 와도 값이 같아 두 화면이 안 갈린다. 옛 자리 규칙(--top · --drawer)은 없앴다. */
.theme-switch--nav { margin: 0 var(--sp-2); justify-content: stretch; }
.theme-switch--nav .theme-seg { flex: 1 1 0; }

/* ── ★★ 모바일 — 가로 스크롤을 «없앤다» (2026-09-02 사장님 지적) ─────────
      "모바일로 보는데 ★가로스크롤 있는건 너무 짜쳐"
   ★ 표를 접어서 «세로 카드»로 읽는다. 칸 이름은 data-k 를 라벨로 쓴다. */
@media (max-width: 820px) {
  /* 09-16: 대시보드는 표만 가로로 밀고 모든 칸을 읽는다. */
  .dash-cctv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cctv__empty { display: none; }
  .dash-cctv__more { display: block; }
  .lvl__wrap { overflow-x: visible; }
  .lvl { min-width: 0; }
  .lvl__row, .lvl__row--console {
    display: block; padding: 14px 4px;
  }
  /*   ★ 머리줄 감추기는 «위 규칙 뒤»에 와야 한다 — 앞에 두면 display:block 이 덮는다.
        ★2026-09-02 실측 : 앞에 뒀더니 머리줄이 세로로 그대로 남았다. */
  .lvl__row--head, .lvl__row--head.lvl__row--console { display: none; }
  .lvl__c {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding: 4px 0; white-space: normal; overflow: visible; text-align: left;
  }
  .lvl__c::before {
    content: attr(data-k);
    color: var(--text-muted); font-size: 0.86em; flex: 0 0 auto;
    font-weight: 400;   /* ★2026-10-02 손보기 3 — 폰 카드의 «아이디» 이름표만 굵었다(칸 굵기를 물려받음) → 다른 이름표와 같게 */
  }
  .lvl__c--id { font-size: 1.05em; }
  .lvl__c--num { text-align: right; }
  /*   ★ 수정 단추는 붙박이를 풀고 줄 아래에 그대로 둔다 — 가로로 밀 일이 없으니 필요 없다. */
  .lvl__c--act { position: static; background: none; padding-left: 0; margin-top: 6px; }
  .lvl__c--act::before { content: ""; }
  /*   ★ 하부 리스트(옛 나무 화면)도 같은 병이 있다 — 폭을 풀어 준다. */
  .ptab { min-width: 0; }
}

/* ── ★★ 2026-09-03 [수정] 창 — «이름 : 값»을 한 줄에 (사장님 : "수정탭 너무 구려") ─────────
      옛 모양 : 칸마다 이름 한 줄 + 값 한 줄, 일곱 칸이 «세로로 열네 줄» — 스크롤만 길고 고칠 것은 0.
      새 모양 : 한 줄에 «이름 왼쪽 · 값 오른쪽». 좁으면 값이 아래로 접힌다(flex-wrap).
   ★ 새 칸·새 색·새 크기를 «만들지 않는다» — 콘솔이 이미 가진 변수만, 배치만 바꾼다. */
.admin-form--edit { gap: 0; margin: 12px 0 4px; }
.admin-form--edit .admin-field {
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.admin-form--edit .admin-field:last-child { border-bottom: 0; }
.admin-form--edit .admin-field > span { flex: 0 0 5.5em; }
.admin-form--edit .admin-field--readonly strong { flex: 1 1 auto; min-width: 0; text-align: right; }
/*   닉네임 칸 — 이름 옆에 «바로» 입력칸. 좁으면 아래로 접힌다. */
.admin-form--edit .admin-field input { flex: 1 1 160px; width: auto; padding: 8px 10px; }
/*   ★2026-10-02 손보기 3 — 폰(375)에서 닉네임·운용 아이디 칸만 이름 아랫줄로 밀렸다(입력칸의 기본 최소 폭) → 고르기 칸(min-width:0)과 같게 한 줄 */
.admin-form--edit .admin-field input { min-width: 0; }
/*   2026-09-30 손보기 2 : «상위코드» 고르기 칸만 폭 100% 라 이름 아랫줄로 밀렸다(다른 줄은 한 줄) → 입력칸과 같은 모양 */
.admin-form--edit .admin-field select { flex: 1 1 160px; width: auto; min-width: 0; padding: 8px 10px; }
/*   ★ 2026-09-03 «비고» 칸 — 사장님이 직접 적으시는 여러 줄 메모(통화 기록을 «쌓아» 적으신다).
     이름은 위에 붙이고(align flex-start), 칸은 세로로만 늘린다. 안내 문구(placeholder) 0. */
.admin-form--edit .admin-field--memo { align-items: flex-start; }
.admin-form--edit .admin-field--memo > span { padding-top: 8px; }
.admin-form--edit .admin-field textarea {
  flex: 1 1 160px; width: auto; min-height: 5.5em; padding: 8px 10px;
  resize: vertical; line-height: 1.4;
}
/*   ★ 2026-09-03 상태 «스위치» — 사장님 : "활성화 옆에 스위치를 둬 온엔오프 그게 더 이미지엔 나아"
     옛 모양 : 단추 줄 왼쪽에 [비활성화]/[활성화] 단추(상태에 따라 갈아 끼움).
     새 모양 : «상태» 줄의 값(정상/비활성) 옆에 켜짐/꺼짐 스위치 하나. 켜짐 = 강조색에 손잡이 오른쪽 · 꺼짐 = 선 색에 손잡이 왼쪽.
     ★ 새 색을 만들지 않는다 — 이 파일이 이미 쓰는 변수(--accent · --line · --surface · --text-muted)와 강조 바탕 위 글자색(--accent-ink · 2026-10-02 #0b0b0b 에서 콘솔 이름으로)뿐.
     ★ 스위치는 <button role="switch"> 다 — 키보드(탭 · 스페이스 · 엔터)로도 켜고 끈다. */
.admin-form--edit .admin-field--status strong { flex: 1 1 auto; }
/*   ★ 2026-09-17 [API 키 바꾸기 허용] 줄 — 표 «사용» 칸의 옛 단추를 [수정] 창으로 옮겼다
     (사장님 : "그것은 수정쪽에 버튼이 있어야 할거같음 저자리엔 어울리지 않아").
     단추는 줄 오른쪽(다른 줄의 값·스위치와 같은 자리) · 안내 한 줄은 그 아래 줄 전체. 새 색·새 크기 0 — 배치만. */
.admin-form--edit .admin-field--keyreset > p { flex: 1 1 100%; margin: 0; line-height: 1.5; }
/*   ★ 2026-09-30 «계정 고치기» — 칸은 기존 입력 줄 모양 그대로(단추 0 · 사장님 «일괄적으로»). 최근 결과 한 줄만 배치.
     «비밀번호» 줄은 칸이 둘(아이디 · 새 비밀번호) — 이름 옆 한 줄에 반씩 (좁은 창에서 아랫줄로 밀리지 않게) */
.admin-form--edit .admin-field--pair { flex-wrap: nowrap; }
.admin-form--edit .admin-field--pair input { flex: 1 1 0; min-width: 0; }
.admin-form--edit > p[data-acct-last] { margin: 6px 0 0; line-height: 1.5; }
/* 10-26 콘솔 [수정]만: 읽기·이름표·계정 세 묶음, 모든 입력의 시작/끝/높이를 맞춘다. */
.admin-form--edit.admin-console-edit { margin-top: 0; gap: 12px; }
.admin-console-edit .admin-edit-group + .admin-edit-group { border-top: 1px solid var(--line); padding-top: 4px; }
.admin-console-edit .admin-field {
  display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 6px 12px;
  border-bottom: 0; padding: 6px 0;
}
.admin-console-edit .admin-field > span { width: auto; white-space: normal; overflow-wrap: anywhere; }
.admin-console-edit .admin-field input,
.admin-console-edit .admin-field select,
.admin-console-edit .admin-field textarea {
  box-sizing: border-box; width: 100%; min-width: 0; height: 38px; min-height: 38px; padding: 8px 10px; line-height: 20px;
}
.admin-console-edit .admin-field--viewer > small { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.admin-console-edit p { margin: 6px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.admin-console-edit .admin-field--keyreset > p { grid-column: 1 / -1; }
@media (max-width: 360px) {
  .admin-console-edit .admin-field { grid-template-columns: minmax(0, 1fr); }
  .admin-console-edit .admin-field--readonly strong { text-align: left; }
  .admin-console-edit .admin-field--viewer > small { grid-column: 1; }
}
.admin-switch {
  flex: 0 0 auto; position: relative; width: 44px; height: 24px; margin-left: 10px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2, var(--surface)); cursor: pointer; font: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.admin-switch__knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted);
  transition: transform .15s ease, background .15s ease;
}
.admin-switch[aria-checked="true"] { background: var(--accent, #21F1A8); border-color: var(--accent, #21F1A8); }
.admin-switch[aria-checked="true"] .admin-switch__knob { transform: translateX(20px); background: var(--accent-ink); }
.admin-switch:focus-visible { outline: 2px solid var(--accent, #21F1A8); outline-offset: 2px; }
.admin-switch[disabled] { opacity: 0.6; cursor: default; }

/* 보기 전용 계정 대장: 긴 결과 문장을 자르지 않고 줄바꿈한다. */
[data-admin-grants-table] .admin-table { width: 100%; border-collapse: collapse; text-align: left; }
[data-admin-grants-table] th,
[data-admin-grants-table] td { padding: var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
[data-admin-grants-table] th { color: var(--text-muted); font-weight: var(--weight-bold); }
[data-admin-grants-table] td:last-child { min-width: 240px; line-height: 1.7; }
[data-admin-grants-table] tr:last-child td { border-bottom: 0; }
.dash-cctv__unit { font-size: 0.6em; font-weight: var(--weight-normal); color: var(--text-muted); margin-left: 0.2em; }

/* ── ★2026-10-02 사장님 결정 — «어드민 색·글씨·모서리를 콘솔의 09-24 새 모양에 맞춘다» ───────────────────────────
   까닭 : 어드민 웹루트의 app.css 는 콘솔의 «09-02 판»(app.css?v=20260902k)이다. 콘솔은 09-24 에 새 판으로 바뀌었다
          (콘솔 mvp/v4/app.css 머리 «console refresh · 2026-09-24»). 밝게 모드는 색이 통째로 달랐다.
   방법 : 그 판의 값을 «글자 그대로» 옮겨 덮는다 — 새 색·새 크기를 만들지 않는다(콘솔 값이다).
          시험 tests/test_admin_color_20261002.mjs 가 콘솔 app.css 를 읽어 값마다 대조한다(콘솔이 바뀌면 빨개진다).
   ① 어디서나  글자 크기·굵기 · 모서리 · 메뉴 폭 · 본문 최대 폭 · 메뉴 로고 크기
              (어둡게 모드의 바탕·카드·글자 «색»은 이미 콘솔과 같다 — 손대지 않는다. 메뉴용 세 이름 + 돈 색 둘(--positive · --negative) + 강조 둘(--accent · --accent-ink)만
               콘솔 어둡게 값 그대로 박는다 — 돈 색·강조 단추 글자를 콘솔 이름으로 바꾸면서 값이 웹루트 app.css 사본에 기대지 않게)
   ② 밝게 모드  콘솔 밝게 블록을 통째로 — 녹회색 바탕 · 카드 · 선 · 글자 · 민트 강조 · 메뉴 짙은 색
   ③ 메뉴 모양  콘솔 09-24 의 옆줄 메뉴·폰 위줄·서랍 — 짙은 판 · 줄 높이 44 · 모서리 7 · 고른 칸 왼쪽 줄
   ★ 콘솔이 숨긴 메뉴 소제목(.app-nav__section)은 «그대로 둔다» — 어드민 소제목 «관리»는 사장님이 정하신 메뉴 나무다(09-02)
   ★ 콘솔 본문 여백·전광판·딱지 모양(Round 2 의 나머지)은 옮기지 않았다 — 이번 결정은 «색·글씨·모서리·메뉴»다 */
:root {
  --font-display: 2rem;
  --font-title: 1rem;
  --font-body: 1rem;
  --font-small: 0.8125rem;
  --font-micro: 0.75rem;
  --weight-normal: 400;
  --weight-bold: 600;
  --weight-heavy: 650;
  --radius-card: 10px;
  --radius-inner: 8px;
  --radius-control: 8px;
  --nav-w: 164px;
  --shell-max: 1760px;
  --logo-size-nav: 27px;
  --nav-surface: #262626;
  --selected: #191919;
  --focus: #ECECEC;
  --positive: #0ECB81;
  --negative: #F6465D;
  --accent: #E8B339;
  --accent-ink: #2A1E04;
}
body.theme-light {
  color-scheme: light;
  --logo-word: #12271D;
  --canvas: #D4D6D5;
  --surface: #ECEEED;
  --line: #ADB5AF;
  --section-surface: #E3E6E4;
  --summary-surface: #E3E6E4;
  --canvas-raised: var(--surface);
  --select-background: var(--surface);
  --text-title: #12271D;
  --text-body: #12271D;
  --text-muted: #43524A;
  --text-faint: #4B5A51;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 7 14 10' fill='none' stroke='%2343524A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  --overlay: rgba(15, 23, 32, 0.4);
  --nav-surface: #34423B;
  --selected: #BBD9C7;
  --focus: #198461;
  --positive: #075D3D;
  --negative: #922439;
  --accent: #7CE8BC;
  --accent-ink: #082C1E;
  --logo-x: #0A5135;
}
/*   메뉴 짙은 색 — 콘솔과 같다 : 밝게 모드에서도 옆줄 메뉴 · 폰 위줄 · 서랍은 짙은 판(본문 녹회색과 색조를 잇는다) */
.theme-light :is(.app-nav, .app-header, .drawer__panel) {
  color-scheme: dark;
  --canvas: #2B3731;
  --surface: #3B4B42;
  --line: #516257;
  --text-title: #F0F4F1;
  --text-body: #F0F4F1;
  --text-muted: #D0D8D2;
  --text-faint: #BBC9BF;
  --selected: #435B4E;
  --logo-word: #F0F4F1;
  --logo-x: #A2E3C1;
  --focus: #A2E3C1;
  color: var(--text-body);
  background: var(--nav-surface);
  border-color: var(--line);
}
body { letter-spacing: -.012em; }
/*   메뉴 줄 — 콘솔 09-24 와 같은 값 */
.app-nav { padding: 32px 12px 20px; background: var(--nav-surface); border-right-color: var(--line); }
.app-nav__brand { padding: 0 8px 38px; }
.app-nav__group { padding: 0 0 18px; }
/*   어드민만 있는 소제목(«관리») — 콘솔은 소제목을 숨겼다. 남겨 두되 글 머리를 메뉴 그림과 같은 줄(메뉴 줄 안쪽 여백 12)에 맞춘다 */
.app-nav__section { padding-inline: 12px; }
.app-nav__item { min-height: 44px; margin-bottom: 4px; padding: 11px 12px; gap: 9px; border-radius: 7px; font-size: .8125rem; white-space: nowrap; }
.app-nav__item svg { width: 17px; height: 17px; stroke-width: 1.7; }
.app-nav__item:hover { background: var(--selected); color: var(--text-title); }
.app-nav__item.is-on { background: var(--selected); color: var(--logo-x); box-shadow: inset 2px 0 var(--logo-x); }
.theme-dark .app-nav__item.is-on { color: var(--text-title); box-shadow: inset 2px 0 var(--text-muted); }
.app-nav__foot { padding: 14px 0 0; gap: 10px; }
.app-nav__foot .app-nav__item { font-size: .75rem; padding-left: 8px; gap: 6px; }
.theme-switch { margin: 0; padding: 3px; gap: 2px; border: 0; background: var(--canvas); border-radius: 6px; }
.theme-seg { min-height: 34px; padding: 0 8px; font-size: .8125rem; }
.theme-seg.is-on { background: var(--line); color: var(--text-title); }
@media (min-width: 821px) and (max-width: 1150px) {
  :root { --nav-w: 144px; }
  .app-nav { padding-inline: 8px; }
  .app-nav__brand { padding-inline: 6px; }
  .app-nav__item { padding-inline: 10px; gap: 6px; }
  .app-nav__section { padding-inline: 10px; }
}
@media (max-width: 820px) {
  .app-header .server-tag { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; padding: 0; border: 0; font-size: .8125rem; }
  .drawer__panel { background: var(--nav-surface); padding: 32px 18px; }
  .drawer .app-nav__item { font-size: 1rem; min-height: 48px; }
}
/*   밝게 모드에서 «글자»로 쓰던 강조색 — 콘솔 밝게 강조(민트)는 «단추 바탕» 색이라 글자로 쓰면 바탕에 묻힌다.
     콘솔이 밝게 화면에서 민트를 글자로 쓸 때의 이름(--logo-x · 짙은 초록)으로 · 오류 줄은 콘솔 밝게 빨강(--negative)으로.
     어둡게 모드는 그대로다(이 줄은 밝게 모드에만 걸린다). 돈 «+»·«−» 는 두 모드 다 위 .dash-cctv 줄이 콘솔 돈 색으로 정한다 */
body.theme-light :is(.ptab__ok, [data-issue-ok], .help__link) { color: var(--logo-x); }
body.theme-light .alert-strip__btn.is-mid { color: var(--logo-x); border-color: var(--logo-x); }
body.theme-light [data-issue-error] { color: var(--negative); }

/* ── ★ 2026-09-17 맨 위 «종류 칸» (사장님 「맨 상위에 좌라락 · 숫자를 누르면 해당 페이지로」) ──────────
   ★ 콘솔 app.css 에 있는 변수만 쓴다 — 새 색·새 글꼴 0. 위 등급 = --negative · 중 = --accent · 아래 = --text-body · 0 = --text-muted.
   ★ 본문 맨 위에 붙어 따라온다(sticky). 폰은 헤더(--header-h) 밑에 붙는다. 넘치면 칸 안에서 줄을 바꾼다(가로로 밀지 않는다). */
.alert-strip {
  position: sticky; top: 0; z-index: 20;
  margin: 0 0 var(--space-card);
  padding: var(--sp-2) 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  min-width: 0; max-width: 100%;
}
.alert-strip__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; }
.alert-strip__groups, .alert-strip__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.alert-strip__btn {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: transparent; color: var(--text-muted);
}
.alert-strip__btn strong { font-variant-numeric: tabular-nums; }
.alert-strip__btn.is-high { color: var(--negative); border-color: var(--negative); }
.alert-strip__btn.is-mid { color: var(--accent); border-color: var(--accent); }
.alert-strip__btn.is-low { color: var(--text-body); }
.alert-strip__line { margin: var(--sp-2) 0 0; color: var(--text-body); overflow-wrap: anywhere; }
/* 종류 칸을 누르고 온 «그 줄» — 바탕색으로 파고들고 왼쪽에 강조 선 */
.lvl__row.is-focus { background: var(--canvas); box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 820px) {
  .alert-strip { top: var(--header-h); }
  .alert-strip__groups { width: 100%; }
  /*   ★2026-09-30 손볼 곳 #15 — 폰에서 알림 줄이 세 줄로 접혀 화면 절반을 먹었다
       → 0 인 칸은 감춘다(«일이 있는 칸»만 · 평소 화면은 조용하다) · 가로로 밀지는 않는다(09-02 사장님 «가로스크롤 짜쳐») */
  .alert-strip__btn.is-zero { display: none; }
}

/* Inquiry layout reuses the existing admin heading, card and spacing tokens. */
.admin-inquiries-pane .admin-inquiries { display:grid; gap:var(--space-card); margin-bottom:var(--space-card); }
.admin-inquiries-pane .admin-inquiry dl { display:grid; grid-template-columns:90px minmax(0,1fr); gap:var(--sp-2); margin:0; }
.admin-inquiries-pane .admin-inquiry dt { color:var(--text-muted); }
.admin-inquiries-pane .admin-inquiry dd { margin:0; overflow-wrap:anywhere; }
.admin-inquiries-pane .admin-inquiry-memo { white-space:pre-wrap; }

/* ── 2026-09-30 손보기 2 : 본문 오른쪽 위에 혼자 떠 있던 역할 딱지(«관리자») — 폰은 머리줄에 이미 있다(PC 는 세로메뉴가 누구인지 말한다)
      → 본문 쪽 한 개만 숨긴다 (머리줄의 딱지는 그대로) */
.shell-top { display: none; }

/* 10-05 한 화면 집계 — 기존 한눈에 strip 부품과 색을 그대로 쓴다. */
.dash-cctv__strip { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; margin-bottom: var(--space-card); }
.dash-cctv__strip .strip__kv { display: flex; align-items: baseline; gap: 4px; }
.dash-cctv__strip .strip__v { font-size: 1em; }
.dash-cctv__wallet { flex-wrap: wrap; min-width: 0; }
.dash-cctv__wallet .strip__asof { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .dash-cctv__strip { column-gap: 16px; }
  .dash-cctv__strip .strip__kv { gap: 4px; }
  .dash-cctv__strip .strip__u { font-size: .85em; }
  .dash-cctv__strip .dash-cctv__wallet { flex-basis: 100%; }
}

/* 10-05 문제 표시는 딱지와 테두리 한 곳씩. 보호 글자에는 색을 주지 않는다. */
.dash-cctv__card[data-cctv-state="끊김"] { border-color: var(--negative); }
.dash-cctv__card[data-cctv-state="끊김"] .server-tag { color: var(--negative); }
.dash-cctv__card[data-cctv-state="살필 것"] { border-color: var(--text-title); }
.dash-cctv__card[data-cctv-state="살필 것"] .server-tag { color: var(--text-title); }
.dash-cctv { align-items: start; }
/* 10-08 사장님 «칸 자체를 누르면 차트 · 버튼이 노란색으로 너무 눈에 띈다» — 「차트 보기」 단추를 빼고 산 칸 전체를 누른다.
   새 색 0 : 손을 올리면 테두리만 기존 흐린 글자 색으로 한 단계(밝게·어둡게 두 모드 다 기존 변수 · 문제 칸 테두리는 그대로).
   키보드 초점은 도움말 탭(.help__tab)과 같은 줄. 폰 규칙 밖(모든 폭)이라 폰에서도 칸을 누르면 열린다. */
.dash-cctv__card[data-admin-chart] { cursor: pointer; }
.dash-cctv__card[data-admin-chart]:hover:not([data-cctv-state="살필 것"]) { border-color: var(--text-muted); }
.dash-cctv__card[data-admin-chart]:focus-visible { outline: 2px solid var(--text-title); outline-offset: 2px; }
/* 10-05 간략보기: 폰 바깥 카드가 2열이므로 카드 안의 세 값은 세로로 읽는다.
   높이를 강제로 잘라 숨기지 않는다. 1440×900 예산은 시험의 CSS 대조로 확인한다. */
.admin-chart__details .dash-cctv__small { overflow-wrap: anywhere; }

/* ── 2026-10-08 걸음 2 : 슈퍼콘솔 차트 창 «운용 마감» 창 = 콘솔 마감 창 부품 그대로 (설계 §4 걸음 2 · adminStopDialog.mjs) ──
   어드민 서빙 app.css(콘솔 7073fd3 · 08-25 판)에는 창 뼈대(.op-modal · .cs-*)가 이미 있다. 그 뒤 콘솔에 붙은 «고르면 노랗게»
   덩어리(콘솔 1.28.23 a93d74b mvp/v4/app.css 의 아래 주석부터 #cs-confirm 줄까지)만 «글자 그대로» 옮긴다 — 새 색·새 크기 0. */
/* ★ 2026-09-17 사장님 — 마감 방식 창 : 네 줄 중 하나를 «고르면» 그 줄과 [요청] 단추가 노랗게 바뀐다.
     사장님 원문: 「4개중 한개를 선택을 했어 그럼 저 요청버튼이 노란색으로 바뀌는 효과를 넣어줬음 좋겠어」 ·
     「선택한 색도 바뀌었으면 좋겠어 그래야 내가 정확하게 봇만 멈추기를 선택한게 맞지? 라는 확신이 드니까」.
   ★ 색은 «운용 시작» 단추와 같은 노랑(--accent · --accent-ink) — 새 색 0.
   ★ 셸 셋(v4 · 옛 PC · 옛 모바일)이 같은 창 그리기를 쓰므로 고른 상태는 **라디오 자체**(:checked)로 가른다 —
     셸마다 따로 배선하지 않는다(§2-5). 창을 새로 열면 아무것도 안 골라져 있어 원래 모양이다.
   ★ 테두리는 한 종류(1px)·그림자 0 규칙 그대로 — 색만 바꾼다.
   ★ 누르는 동작·비밀번호·중복 누름 막기는 그대로 — 막힌(disabled) 단추는 노랗게 하지 않는다(옛 흐린 모양 그대로).
   ★ 고른 줄 바탕은 --canvas 에 노랑을 조금 섞는다 — --surface-inner 는 :root 에서 어두운 값으로 굳어
     밝은 화면에서 안 풀린다(아래 계산기 주석과 같은 까닭). --canvas 는 밝은/어두운 화면 둘 다 제 값이다. */
/* ★ 같은 까닭으로 마감 방식 창은 밝은 화면에서 줄 바탕·입력칸이 어두운 채 글자도 어두워 **안 읽혔다**(2026-09-17 실측 ·
     줄 바탕 rgb(25,25,25) · 제목 글자 rgb(26,26,26)). 사장님 지시 「밝은/어두운 화면 둘 다 읽히게」에 따라
     창 안에서만 :root 정의를 «글자 그대로» 다시 적는다 — 새 값이 아니고, 어두운 화면 값은 한 개도 안 바뀐다. */
.cs-modal { --canvas-raised: var(--canvas); --surface-inner: var(--canvas); --surface-soft: var(--canvas); --line-strong: var(--line);
  --brand: var(--text-title); --brand-soft: var(--canvas); --brand-ink: var(--canvas); --warning: var(--text-title);
  --checking: var(--text-muted); --checking-soft: var(--canvas); }
.cs-opt-row:has(> .cs-opt-head .cs-radio:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--canvas));
}
/* 고른 줄에서도 (?) 동그라미가 보이게 — 노란 바탕 위에서 옛 선(--line)은 거의 안 보인다. 흐린 글자색(기존 토큰)으로 테두리만. */
.cs-opt-row:has(> .cs-opt-head .cs-radio:checked) .cs-help:not([aria-expanded="true"]) { border-color: var(--text-faint); }
.cs-modal:has(.cs-radio:checked) #cs-confirm:not(:disabled) { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
/* 어드민이 덧댄 안내 한 줄(이 창 안에만) — 글자는 (?) 설명과 같은 .cs-opt-d · 옆 들여쓰기만 줄 상자와 맞춘다(기존 12px). */
.cs-body > .admin-stop-gap { margin: 0 0 12px; }

/* 10-30: 실제 콘솔 9bea675:mvp/v4/app.css의 passwordChange 규격.
   styles.css의 옛 녹색 규격이 아니라 현행 회색·44px 입력·8px 간격을 그대로 쓴다. */
.admin-pw.pw-sec { display: grid; gap: var(--sp-2); min-width: 0; margin-top: var(--sp-2); }
.admin-pw .pw-t { margin: 0; color: var(--text-title); font-size: var(--font-title); }
.admin-pw .pw-note { margin: 0; color: var(--text-muted); font-size: var(--font-small); }
.admin-pw .pw-l { color: var(--text-muted); font-size: var(--font-small); }
.admin-pw .pw-in { width: 100%; height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--line);
  border-radius: var(--radius-control); outline: none; background: var(--canvas); color: var(--text-title); }
.admin-pw .pw-in:focus { border-color: var(--text-muted); }
.admin-pw .pw-field { display: grid; gap: var(--sp-1); }
.admin-pw .pw-pips { display: none; }
/* 잊은 비밀번호 재설정·4자 규칙 안내는 어드민에 필요하므로 보인다. */
.admin-pw .pw-hint { display: block; color: var(--text-muted); font-size: var(--font-small); }
.admin-pw .pw-show { display: flex; align-items: center; gap: var(--sp-1); color: var(--text-muted); font-size: var(--font-small); }
.admin-pw .pw-show input { width: auto; margin: 0; accent-color: var(--text-title); }
.admin-password-edit ~ [data-admin-edit-error] { margin: 0; color: var(--text-title); font-size: var(--font-small); font-weight: var(--weight-bold); }
.admin-password-edit ~ .account-dialog__actions [data-admin-edit-save] {
  min-height: 44px; margin-top: var(--sp-1); border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--canvas); color: var(--text-title); font-weight: var(--weight-bold); cursor: pointer; }
.admin-password-edit ~ .account-dialog__actions [data-admin-edit-save]:disabled { opacity: .55; cursor: default; }
