/* ============================================================
   [2026-11-16] 관리 콘솔 UXUI 개편 — 사장 확정 시안(claude.ai/artifact/ELEVyWsqD6Dm81ZBn1JURF).
   · 바탕 = SHIFT X 프로필 배경 그림, 그 위에 큰 유리 창 하나
   · 박스는 지금 콘솔 그대로 굴절 유리(liquid-glass.js), 체크무늬 격자 없음
   · 왼쪽 떠 있는 캡슐 메뉴(묶음 8개) + 위쪽 화면 탭 + 화면 찾기(⌘K)
   기능 코드는 그대로, 이 파일은 styles.css · mobile.css 뒤에 읽어 겉모습만 덮는다.
   ============================================================ */
:root {
  --rx-spring: cubic-bezier(.34, 1.42, .52, 1);
  --rx-ease: cubic-bezier(.2, .8, .2, 1);
  --rx-hover: rgba(255, 255, 255, .07);
  --rx-field: rgba(0, 0, 0, .22);
  --rx-chip: rgba(255, 255, 255, .08);
}
:root[data-theme="light"] {
  --rx-hover: rgba(17, 24, 39, .05);
  --rx-field: rgba(255, 255, 255, .78);
  --rx-chip: rgba(255, 255, 255, .72);
}

html { background: #0b0b0e; }
body:has(.app.rx) { overflow: hidden; }

/* ---------- 바탕: SHIFT 그림 (격자·노이즈 없음) ---------- */
.app.rx::before {
  background: #0b0b0e url("./shift-bg.jpg") center / cover no-repeat;
  filter: brightness(var(--rx-bg-dim, .56));
}
.app.rx::after { display: none; }

/* ---------- 뼈대: 유리 창 안에 캡슐 + 본문 ---------- */
.app.rx {
  position: fixed;
  inset: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 22px;
  padding: 44px 52px 44px 48px;
}
.app.rx > .rx-window {
  position: fixed;
  inset: 26px 30px;
  z-index: 0;
  overflow: hidden;
  border-radius: 34px;
  pointer-events: none;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
}
/* 창 안 배경 = 바깥 배경과 같은 그림·같은 자리(fixed). 굴절은 liquid-glass.js 가 이 칸에 filter 로 한 번만 입힌다. */
.rx-window-bg {
  position: absolute;
  inset: 0;
  background: #0b0b0e url("./shift-bg.jpg") center / cover no-repeat fixed;
  filter: brightness(var(--rx-bg-dim, .56));
}
/* 굴절을 미리 계산한 그림(창 크기 그대로)이 오면 그대로 깐다. */
.rx-window-bg.rx-baked { background-size: 100% 100%; background-position: 0 0; background-attachment: scroll; }
.app.rx > .rx-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), rgba(10, 10, 14, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
:root[data-theme="light"] .app.rx > .rx-window::after {
  border-color: rgba(17, 24, 39, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .3)), rgba(246, 247, 249, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
:root { --rx-bg-dim: .56; }
:root[data-theme="light"] { --rx-bg-dim: .95; }


/* ---------- 왼쪽 캡슐 메뉴 ---------- */
.app.rx > .rx-rail {
  position: relative;
  z-index: 6;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 36px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.rx-mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--text);
  background: var(--rx-chip);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
.rx-rail-div { flex: none; width: 26px; height: 1px; margin: 12px 0 10px; background: var(--glass-border); }
.rx-rail-items { position: relative; display: flex; flex-direction: column; gap: 6px; }
.rx-rail-ind {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .2);
  transition: transform .58s var(--rx-spring), width .3s var(--rx-ease), height .3s var(--rx-ease), opacity .2s;
}
:root[data-theme="light"] .rx-rail-ind { background: #fff; box-shadow: 0 6px 16px rgba(25, 31, 40, .12), inset 0 0 0 1px rgba(17, 24, 39, .06); }
.rx-rb {
  position: relative;
  z-index: 1;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--sub);
  transition: color .25s, background-color .25s;
}
.rx-rb:hover { color: var(--text); background: var(--rx-hover); }
.rx-rb.active { color: var(--text); background: transparent; }
.rx-rb .material-symbols-outlined { font-size: 22px; line-height: 1; }
.rx-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(24, 24, 28, .75);
}
.rx-tip {
  position: absolute;
  left: 56px;
  top: 50%;
  z-index: 50;
  transform: translate(-6px, -50%);
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(18, 18, 22, .88);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .25);
  transition: opacity .18s, transform .22s var(--rx-ease);
}
.rx-rb:hover .rx-tip, .rx-rb:focus-visible .rx-tip { opacity: 1; transform: translate(0, -50%); }
.rx-rail-sp { flex: 1; min-height: 8px; }
.rx-me { position: relative; padding-top: 10px; }
.rx-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: transparent;
}
.rx-avatar:hover { background: var(--rx-hover); }
.rx-avatar .avatar { width: 38px; height: 38px; font-size: 14px; }
.rx-online { position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 6px; background: var(--success); box-shadow: 0 0 0 2px rgba(24, 24, 28, .85); }
.rx-me .account-dropdown { left: 58px; bottom: 0; z-index: 60; }

/* ---------- 본문: 위쪽 줄 + 스크롤 칸 ---------- */
.app.rx > .rx-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rx-top.topbar {
  position: relative;
  top: auto;
  z-index: 8;
  flex: none;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 2px 0 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.rx-grow { flex: 1; }
.rx-tabs {
  position: relative;
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rx-tabs::-webkit-scrollbar { display: none; }
.rx-tab {
  flex: none;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: transparent;
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
  transition: color .25s, background-color .2s;
}
.rx-tab:hover { color: var(--text); background: var(--rx-hover); }
.rx-tab.active { color: var(--text); }
.rx-cnt {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--rx-chip);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.rx-tab.active .rx-cnt { background: var(--primary); color: #fff; }
.rx-tab-ind {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  pointer-events: none;
  background: var(--text);
  box-shadow: 0 0 12px rgba(255, 255, 255, .4);
  transition: transform .52s var(--rx-spring), opacity .2s;
}
:root[data-theme="light"] .rx-tab-ind { box-shadow: none; }
.rx-search {
  flex: none;
  min-width: 200px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  border-radius: 22px;
  background: var(--rx-chip);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--sub);
  font-size: 14px;
  transition: background-color .2s, color .2s;
}
.rx-search:hover { background: rgba(255, 255, 255, .13); color: var(--text); }
:root[data-theme="light"] .rx-search:hover { background: #fff; }
.rx-search .material-symbols-outlined { font-size: 19px; }
.rx-search kbd, .rx-cmd kbd {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: var(--text);
  font: 600 11.5px/1 Inter, system-ui, sans-serif;
}
:root[data-theme="light"] .rx-search kbd, :root[data-theme="light"] .rx-cmd kbd { background: #fff; box-shadow: inset 0 -1px 0 rgba(17, 24, 39, .12), inset 0 0 0 1px rgba(17, 24, 39, .08); }
.rx-top .topbar-actions { display: flex; align-items: center; gap: 10px; }
.rx-top .notification-button, .rx-top .theme-toggle {
  background: var(--rx-chip);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--text);
}
.rx-top .notification-button:hover, .rx-top .theme-toggle:hover { background: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .rx-top .notification-button:hover, :root[data-theme="light"] .rx-top .theme-toggle:hover { background: #fff; }
.rx-top .notification-button b { background: var(--primary); }
.rx .notification-dropdown, .rx .account-dropdown { background: rgba(22, 22, 26, .94); border-color: var(--glass-border); }
:root[data-theme="light"] .rx .notification-dropdown, :root[data-theme="light"] .rx .account-dropdown { background: rgba(255, 255, 255, .97); }

.rx-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 8px 32px 6px;
  margin-right: -8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
:root[data-theme="light"] .rx-scroll { scrollbar-color: rgba(17, 24, 39, .2) transparent; }
.rx-scroll > .content { max-width: 1320px; padding: 0 0 24px; }

/* 화면 안쪽의 불투명 칸(목록 줄·메시지 칸·표 줄무늬)을 반투명 유리 톤으로. 상세 창·확인 창 같은 덮개는 읽기 쉽게 불투명 그대로. */
.app.rx .rx-scroll { --surface: rgba(255, 255, 255, .045); --surface-soft: rgba(255, 255, 255, .065); --surface-hover: rgba(76, 158, 255, .16); --primary-weak: rgba(76, 158, 255, .16); --line: rgba(255, 255, 255, .1); }
.app.rx .rx-scroll :is(.detail-modal, .slideover, .dlg-backdrop, .wk-confirm) { --surface: #16161c; --surface-soft: #1e1e26; --surface-hover: #1a2740; --primary-weak: #16233a; --line: #26262f; }
:root[data-theme="light"] .app.rx .rx-scroll { --surface: rgba(255, 255, 255, .62); --surface-soft: rgba(255, 255, 255, .5); --surface-hover: rgba(232, 243, 255, .85); --primary-weak: rgba(232, 243, 255, .85); --line: rgba(17, 24, 39, .08); }
:root[data-theme="light"] .app.rx .rx-scroll :is(.detail-modal, .slideover, .dlg-backdrop, .wk-confirm) { --surface: #fff; --surface-soft: #f2f4f6; --surface-hover: #eef6ff; --primary-weak: #e8f3ff; --line: #e5e8eb; }

/* ---------- 큰 제목 ---------- */
.rx-head { padding: 12px 2px 22px; }
.rx-crumb { font-size: 13px; color: var(--sub); }
.rx-h1 { margin: 6px 0 0; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--text); }
.rx-desc { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--sub); }

/* ---------- 유리 표면 모서리 ---------- */
.app.rx .panel { border-radius: 22px; }
.app.rx .metric-card { border-radius: 18px; }

/* ---------- 대시보드 위쪽 ---------- */
.rx-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.app.rx .metric-card.static.rx-hero {
  grid-column: span 5;
  min-height: 252px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #fff;
  background: linear-gradient(150deg, rgba(76, 158, 255, .5), rgba(76, 158, 255, .22) 58%, rgba(76, 158, 255, .1)), var(--glass) !important;
}
:root[data-theme="light"] .app.rx .metric-card.static.rx-hero { background: linear-gradient(150deg, rgba(49, 130, 246, .95), rgba(49, 130, 246, .78) 60%, rgba(49, 130, 246, .66)) !important; }
.rx-hero-head { display: flex; align-items: center; justify-content: space-between; }
.rx-hero-head .label { margin: 0; font-size: 14px; font-weight: 700; color: #fff; }
.rx-hero-go { width: 40px; height: 40px; padding: 0; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.rx-hero-go:hover { background: rgba(255, 255, 255, .28); }
.rx-hero-num { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 auto; }
.rx-hero-num b { font-size: 84px; line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.rx-hero-num span { font-size: 20px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.rx-hero-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.app.rx .rx-hero-split .stat-cell { display: block; text-align: left; padding: 10px 12px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .18) !important; }
.app.rx .rx-hero-split .stat-cell:hover { background: rgba(255, 255, 255, .18) !important; }
.rx-hero-split .stat-cell span { display: block; font-size: 12px; color: rgba(255, 255, 255, .88); }
.rx-hero-split .stat-cell b { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rx-stats { grid-column: span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app.rx .metric-card.rx-stat { min-height: 118px; padding: 18px 20px; display: flex; flex-direction: column; text-align: left; }
.rx-stat-top { display: flex; align-items: center; gap: 10px; }
.rx-stat-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--text); background: var(--rx-chip); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.app.rx .rx-stat .label { margin: 0; font-size: 13px; font-weight: 600; color: var(--sub); }
.app.rx .metric-card.rx-stat .value { margin-top: 12px; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.app.rx .metric-card.rx-stat .value .unit { margin-left: 3px; font-size: 14px; font-weight: 600; color: var(--sub); }
.app.rx .metric-card.rx-stat p { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); }
.app.rx .rx-todo { grid-column: span 5; margin: 0; }
.app.rx .rx-recent { grid-column: span 7; margin: 0; }
.rx-todo-list { display: flex; flex-direction: column; gap: 2px; }
.rx-todo-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: transparent; color: var(--text); text-align: left; }
.rx-todo-row:hover { background: var(--rx-hover); }
.rx-todo-row.zero { opacity: .58; }
.rx-todo-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--rx-chip); color: var(--text); }
.rx-todo-ico.danger { background: rgba(255, 91, 106, .2); color: #ffb3b9; }
.rx-todo-ico.accent { background: rgba(76, 158, 255, .22); color: #b8d9ff; }
.rx-todo-ico.warn { background: rgba(245, 166, 35, .2); color: #ffd99a; }
:root[data-theme="light"] .rx-todo-ico.danger { color: var(--danger); }
:root[data-theme="light"] .rx-todo-ico.accent { color: var(--primary); }
:root[data-theme="light"] .rx-todo-ico.warn { color: #b26b00; }
.rx-todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rx-todo-text b { font-size: 14px; font-weight: 700; }
.rx-todo-text small { margin-top: 2px; font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-chev { font-size: 20px; color: var(--muted); }
.rx-recent-head, .rx-recent-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 80px minmax(0, 1fr) 70px; gap: 12px; align-items: center; }
.rx-recent-head { padding: 0 10px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--glass-border); }
.rx-recent-row { width: 100%; padding: 9px 10px; border-radius: 12px; background: transparent; color: var(--text); text-align: left; font-size: 13.5px; }
.rx-recent-row:hover { background: var(--rx-hover); }
.rx-who { min-width: 0; display: flex; align-items: center; gap: 10px; }
.rx-who .avatar { flex: none; width: 30px; height: 30px; font-size: 12.5px; }
.rx-who > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rx-mut { color: var(--sub); }
.rx-num { font-variant-numeric: tabular-nums; }

/* ---------- 미끄러지는 알약 (motion.js 가 .rx-thumb 를 넣는다) ---------- */
.rx-seg { position: relative; }
.rx-seg > :not(.rx-thumb) { position: relative; z-index: 1; }
.rx-seg > .rx-thumb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 12px rgba(0, 0, 0, .16);
  transition: transform .52s var(--rx-spring), width .52s var(--rx-spring), height .3s var(--rx-ease), opacity .2s;
}
.rx-seg > .active, .rx-seg > [aria-selected="true"] { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
/* 알약은 모두 같은 흰 알약(밝은 테마는 검은 알약) + 그 위 글자는 바탕색. */
.rx-seg > .rx-thumb { background: var(--text) !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .25) !important; }
.app.rx .rx-seg > .active, .app.rx .rx-seg > [aria-selected="true"] { color: var(--bg) !important; }
.app.rx .rx-seg > .active b, .app.rx .rx-seg > [aria-selected="true"] b { color: inherit !important; opacity: .7; }

/* ---------- 버튼·입력칸 ---------- */
.app.rx .primary:not(.danger-bg) { border-radius: 999px; background: #fff; color: #111; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.app.rx .primary:not(.danger-bg):hover { background: #ececef; }
:root[data-theme="light"] .app.rx .primary:not(.danger-bg) { background: #111; color: #fff; }
:root[data-theme="light"] .app.rx .primary:not(.danger-bg):hover { background: #2a2a2e; }
.app.rx .ghost { border-radius: 999px; background: var(--rx-chip); box-shadow: inset 0 0 0 1px var(--glass-border); }
.app.rx .ghost:hover { background: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .app.rx .ghost:hover { background: #fff; }
.app.rx input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
.app.rx select,
.app.rx textarea {
  background-color: var(--rx-field);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
.app.rx input:focus, .app.rx select:focus, .app.rx textarea:focus { box-shadow: inset 0 0 0 2px var(--primary); }

/* ---------- 차트가 차오르고 그려진다(화면에 들어올 때만) ---------- */
.rx-entering .bars .bar { transform-origin: bottom; animation: rxGrow .8s var(--rx-ease) .28s both; }
.rx-entering .line-chart polyline { stroke-dasharray: 1200; animation: rxDraw 1.1s var(--rx-ease) .28s both; }
@keyframes rxGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rxDraw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }

/* ---------- 화면 찾기(⌘K) ---------- */
.rx-cmd-layer { position: fixed; inset: 0; z-index: 300; }
.rx-cmd-scrim { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(8, 8, 10, .42); cursor: default; animation: rxFade .25s ease both; }
.rx-cmd {
  position: absolute;
  left: 50%;
  top: 12vh;
  width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05) 60%), rgba(22, 22, 26, .7);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 80px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  backdrop-filter: blur(40px) saturate(160%);
  animation: rxPop .42s cubic-bezier(.2, 1.2, .3, 1) both;
}
:root[data-theme="light"] .rx-cmd { background: rgba(255, 255, 255, .9); }
.rx-cmd-field { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-radius: 16px; background: var(--rx-field); box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--sub); }
.app.rx .rx-cmd-field input, .rx-cmd-field input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 16px; color: var(--text); }
.rx-cmd-list { max-height: min(420px, 60vh); margin-top: 8px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.rx-cmd-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: transparent; color: var(--text); font-size: 14.5px; text-align: left; }
.rx-cmd-item[hidden] { display: none; }
.rx-cmd-item:hover, .rx-cmd-item.cursor { background: var(--rx-hover); }
.rx-cmd-item.cursor { box-shadow: inset 0 0 0 1px var(--glass-border); }
.rx-cmd-item .material-symbols-outlined { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--rx-chip); }
.rx-cmd-item small { margin-left: auto; font-size: 12px; color: var(--sub); }
.rx-cmd-empty { padding: 28px; text-align: center; color: var(--sub); }
@keyframes rxPop { from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes rxFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .rx-rail-ind, .rx-tab-ind, .rx-seg > .rx-thumb { transition: none; }
  .rx-entering .bars .bar, .rx-entering .line-chart polyline, .rx-cmd, .rx-cmd-scrim { animation: none; }
}

/* ---------- 낮은 창(세로 720px 이하): 메뉴 칸을 줄여 끝까지 보이게 ---------- */
@media (max-height: 720px) and (min-width: 761px) {
  .app.rx { padding-top: 38px; padding-bottom: 38px; }
  .app.rx > .rx-window { inset: 20px 30px; }
  .rx-mark, .rx-rail-div { display: none; }
  .rx-rail-items { gap: 2px; }
  .rx-rb { height: 40px; }
}

/* ---------- 좁은 데스크톱: 대시보드 위쪽을 두 줄로 ---------- */
@media (max-width: 1180px) and (min-width: 761px) {
  .app.rx .metric-card.static.rx-hero, .rx-stats, .app.rx .rx-todo, .app.rx .rx-recent { grid-column: 1 / -1; }
  .rx-search { min-width: 0; }
  .rx-search-label { display: none; }
}

/* ---------- 휴대폰(760px 이하): 메뉴는 아래 떠 있는 막대 ---------- */
@media (max-width: 760px) {
  .app.rx { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 12px 90px; }
  .app.rx > .rx-window { inset: 6px; border-radius: 24px; }
  .app.rx > .rx-rail {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 30;
    height: 64px;
    flex-direction: row;
    padding: 0 6px;
    border-radius: 22px;
  }
  .rx-mark, .rx-rail-div, .rx-rail-sp, .rx-find { display: none; }
  .rx-rail-items { flex: 1; flex-direction: row; justify-content: space-between; gap: 0; }
  .rx-rb { width: 38px; height: 46px; border-radius: 14px; }
  .rx-badge { top: 1px; right: -3px; }
  .rx-tip { display: none; }
  .rx-me { padding: 0 0 0 4px; }
  .rx-avatar { width: 40px; height: 40px; }
  .rx-avatar .avatar { width: 32px; height: 32px; font-size: 13px; }
  .rx-me .account-dropdown { position: absolute; left: auto; right: 0; bottom: 58px; width: min(300px, calc(100vw - 24px)); }
  .rx-top.topbar { min-height: 52px; gap: 6px; padding: 0 2px; }
  .rx-grow { display: none; }
  .rx-tabs { flex: 1; height: 44px; }
  .rx-tab { height: 38px; padding: 0 10px; font-size: 14px; }
  .rx-search { width: 40px; min-width: 0; height: 40px; padding: 0; justify-content: center; }
  .rx-search-label, .rx-search kbd { display: none; }
  .rx-top .topbar-actions { gap: 6px; }
  .rx-top .notification-button, .rx-top .theme-toggle { width: 40px; height: 40px; }
  .rx-scroll { padding: 2px 4px 24px; margin-right: 0; }
  .rx-scroll > .content { padding: 0 0 16px; }
  .rx-head { padding: 8px 2px 14px; }
  .rx-h1 { font-size: 28px; }
  .rx-desc { font-size: 13px; }
  .rx-dash { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app.rx .metric-card.static.rx-hero, .rx-stats, .app.rx .rx-todo, .app.rx .rx-recent { grid-column: 1 / -1; }
  .app.rx .metric-card.static.rx-hero { min-height: 0; padding: 18px; }
  .rx-hero-num b { font-size: 60px; }
  .rx-stats { gap: 10px; }
  .app.rx .metric-card.rx-stat { min-height: 0; padding: 14px; }
  .app.rx .metric-card.rx-stat .value { margin-top: 10px; font-size: 21px; }
  .rx-recent-head, .rx-recent-row { grid-template-columns: minmax(0, 1.5fr) 60px 84px; }
  .rx-recent-head > span:nth-child(4), .rx-recent-row > span:nth-child(4) { display: none; }
  .rx-cmd { top: 8vh; }
}

/* ============================================================
   안쪽 부품 — 탭·표·목록·검색줄·버튼·칩·상세 창 (릴스 문법)
   ============================================================ */
/* 불러오는 동안 본문을 숨기고(제목·로딩 막대만), 데이터가 오면 한 번에 떠오른다. */
.content.rx-pending > :not(.rx-head):not(.load-bar) { visibility: hidden; }
.content.rx-pending::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent) no-repeat;
  background-size: 38% 100%;
  animation: rxBar 1.05s ease-in-out infinite;
}
@keyframes rxBar { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* 어두운 테마 색 묶음: 칩·알림·태그의 옅은 바탕을 반투명 색으로 */
:root[data-theme="dark"] .app.rx {
  --success-weak: rgba(34, 197, 94, .16);
  --warn-weak: rgba(245, 166, 35, .17);
  --danger-weak: rgba(255, 91, 106, .17);
}

/* --- 탭 묶음: 알약 칸 하나 --- */
.app.rx :is(.type-tabs, .segmented, .metric-tabs, .wk-views, .so-tabs, .sc-tabs, .oo-seg, .rvp-tabs) {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
:root[data-theme="light"] .app.rx :is(.type-tabs, .segmented, .metric-tabs, .wk-views, .so-tabs, .sc-tabs, .oo-seg, .rvp-tabs) { background: rgba(255, 255, 255, .6); }
.app.rx :is(.type-tabs, .segmented, .metric-tabs, .wk-views, .so-tabs, .sc-tabs, .oo-seg, .rvp-tabs)::-webkit-scrollbar { display: none; }
.app.rx :is(.type-tabs, .segmented, .metric-tabs, .wk-views, .so-tabs, .sc-tabs, .oo-seg, .rvp-tabs) > button {
  flex: none;
  height: 34px;
  min-height: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
  transition: color .25s;
}
.app.rx :is(.type-tabs, .segmented, .metric-tabs, .wk-views, .so-tabs, .sc-tabs, .oo-seg, .rvp-tabs) > button:hover { color: var(--text); }
.app.rx .type-tabs, .app.rx .wk-views { margin-bottom: 16px; }
.app.rx .segmented > button { height: 30px; padding: 0 13px; font-size: 13px; }
.app.rx .metric-tabs { padding: 3px; }
.app.rx .metric-tabs > button { height: 24px; padding: 0 9px; font-size: 11.5px; }
.app.rx .so-tabs { margin: 12px 20px 2px; }

/* --- 표: 줄무늬 없이 얇은 구분선, 줄에 올리면 둥근 강조 --- */
.app.rx .data-table { border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.app.rx .data-table th { padding: 10px 14px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.app.rx .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--rx-sep, rgba(255, 255, 255, .06)); }
:root[data-theme="light"] .app.rx { --rx-sep: rgba(17, 24, 39, .06); }
.app.rx .data-table tr:nth-child(even) { background: transparent; }
.app.rx .data-table tr:hover { background: transparent; }
.app.rx .data-table tr:hover > td { background: var(--rx-hover); }
.app.rx .data-table tr:hover > td:first-child { border-radius: 12px 0 0 12px; }
.app.rx .data-table tr:hover > td:last-child { border-radius: 0 12px 12px 0; }
.app.rx .data-table tr:last-child > td { border-bottom: 0; }
.app.rx .data-table tr.row-bad > td { background: var(--danger-weak); }
.app.rx .table-wrap:has(> .admin-table) { border-radius: 16px; border-color: var(--line); }
.app.rx .table-wrap:has(> .admin-table) .admin-table thead th { background: rgba(20, 20, 24, .92); }
:root[data-theme="light"] .app.rx .table-wrap:has(> .admin-table) .admin-table thead th { background: rgba(255, 255, 255, .95); }

/* --- 작품 목록(심사 대기·콘텐츠 관리) --- */
.app.rx .wk-table { border-top: 0; gap: 2px; }
.app.rx .wk-row { padding: 10px 12px; border-bottom: 1px solid var(--rx-sep, rgba(255, 255, 255, .06)); border-radius: 0; transition: background-color .2s; }
.app.rx .wk-row:not(.wk-head):hover { background: var(--rx-hover); border-radius: 14px; border-bottom-color: transparent; }
.app.rx .wk-row.cursor { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; border-bottom-color: transparent; }
:root[data-theme="light"] .app.rx .wk-row.cursor { background: #fff; }
.app.rx .wk-row.picked { background: rgba(76, 158, 255, .14); border-radius: 14px; }
.app.rx .wk-head { border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.app.rx .wk-thumb { width: 44px; height: 56px; border-radius: 10px; }
.app.rx .wk-tag { padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.app.rx .wk-score { min-width: 46px; padding: 5px 10px; border-radius: 999px; }
:root[data-theme="dark"] .app.rx .wk-tag.danger { color: #ffb3b9; }
:root[data-theme="dark"] .app.rx .wk-tag.warn { color: #ffd27a; }
:root[data-theme="dark"] .app.rx .wk-score.hi { background: rgba(255, 91, 106, .28); color: #ffd0d4; }
:root[data-theme="dark"] .app.rx .wk-score.mid { color: #ffe0a6; }
.app.rx .wk-score.lo { background: var(--rx-chip); color: var(--sub); }
.app.rx .wk-bar select, .app.rx .wk-search input { height: 40px; }

/* --- 목록(행) --- */
.app.rx .rows { border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="light"] .app.rx .rows { background: rgba(255, 255, 255, .55); }
.app.rx .row { padding: 14px 18px; border-bottom: 1px solid var(--rx-sep, rgba(255, 255, 255, .06)); transition: background-color .2s, border-color .2s; }
.app.rx .rows:not(.cards-2) > .row:hover { background: var(--rx-hover); }
.app.rx .rows.cards-2 { gap: 12px; background: transparent; box-shadow: none; border-radius: 0; }
.app.rx .rows.cards-2 .row { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .045); }
.app.rx .rows.cards-2 .row:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
:root[data-theme="light"] .app.rx .rows.cards-2 .row { background: rgba(255, 255, 255, .62); }
:root[data-theme="light"] .app.rx .rows.cards-2 .row:hover { border-color: rgba(17, 24, 39, .18); background: #fff; }
.app.rx .row h3 { font-size: 14.5px; font-weight: 700; }

/* --- 검색줄: 상자 없이 알약 칸들 --- */
.app.rx .toolbar, .app.rx .inline-form { gap: 8px; margin-bottom: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app.rx .panel .inline-form { margin-bottom: 0; }
.app.rx .toolbar > input:not([type="checkbox"]):not([type="radio"]), .app.rx .toolbar > select { min-height: 42px; border-radius: 999px; padding-left: 16px; }
.app.rx input[type="search"], .app.rx input[placeholder*="검색"], .app.rx input[placeholder*="찾기"], .app.rx input[placeholder*="찾을"], .app.rx #wkQ {
  padding-left: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6b6c2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 16px 16px;
}
.app.rx #rxCmdInput { padding-left: 0 !important; background-image: none; }
.app.rx select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6b6c2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
:root[data-theme="dark"] .app.rx select option { background: #1c1c22; color: var(--text); }
.app.rx .form-field input, .app.rx .form-field select { border: 0; border-radius: 12px; }
.app.rx .form-field > span:first-child { color: var(--sub); }

/* --- 버튼·칩 --- */
.app.rx .small-btn { height: 30px; min-height: 0; padding: 0 12px; border-radius: 999px; font-size: 12.5px; }
.app.rx .icon-btn { border-radius: 999px; }
.app.rx .danger-bg { border-radius: 999px; }
.app.rx .pager button { border-radius: 999px; }
:root[data-theme="dark"] .app.rx .chip { min-height: 24px; padding: 0 10px; font-weight: 600; }
:root[data-theme="dark"] .app.rx .chip.ok { color: #86efac; }
:root[data-theme="dark"] .app.rx .chip.warn { color: #fcd34d; }
:root[data-theme="dark"] .app.rx .chip.danger { color: #fda4af; }
:root[data-theme="dark"] .app.rx .chip.neutral, :root[data-theme="dark"] .app.rx .chip.soft { background: rgba(255, 255, 255, .08); color: var(--sub); }
.app.rx .alert { border-radius: 16px; }

/* --- 패널 머리 --- */
.app.rx .panel h2, .app.rx .section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.app.rx .section-head p { font-size: 13px; color: var(--sub); }
.app.rx .skeleton-row { border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .11) 40%, rgba(255, 255, 255, .05) 55%); background-size: 300% 100%; }
:root[data-theme="light"] .app.rx .skeleton-row { background: linear-gradient(90deg, rgba(17, 24, 39, .05) 25%, rgba(17, 24, 39, .1) 40%, rgba(17, 24, 39, .05) 55%); background-size: 300% 100%; }
.app.rx .mini-chart { border-radius: 16px; }

/* --- 상세 창: 오른쪽에 떠 있는 유리 서랍 --- */
.app.rx:has(.slideover, .detail-modal, .dlg-backdrop) > .rx-main { z-index: 40; }
.app.rx .slideover {
  top: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(22, 22, 26, .95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  animation: rxSlideIn .55s cubic-bezier(.2, 1.1, .3, 1) both;
}
:root[data-theme="light"] .app.rx .slideover { background: rgba(255, 255, 255, .97); }
@keyframes rxSlideIn { from { transform: translateX(112%); } to { transform: none; } }
.app.rx .detail-modal .panel { background: rgba(22, 22, 26, .95) !important; }
:root[data-theme="light"] .app.rx .detail-modal .panel { background: rgba(255, 255, 255, .97) !important; }
.app.rx .so-head { border-bottom-color: var(--line); }

@media (max-width: 760px) {
  .app.rx .slideover { top: 0; right: 0; bottom: 0; border-radius: 0; }
  .app.rx :is(.type-tabs, .wk-views, .so-tabs, .sc-tabs, .oo-seg) { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .app.rx .slideover { animation: none; }
  .content.rx-pending::after { animation: none; }
}

/* ============================================================
   화면별 목록 — 성격에 맞게 읽기 쉽게
   ============================================================ */
/* 일반 목록 줄: 제목·설명·칩·버튼 크기와 간격 */
.app.rx .row { align-items: center; gap: 18px; }
.app.rx .row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; line-height: 1.4; }
.app.rx .row p { margin-top: 5px; font-size: 13px; line-height: 1.5; color: var(--sub); }
.app.rx .row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; }
.app.rx .row .actions { gap: 6px; }
.app.rx .row .actions > button:not(.small-btn):not(.primary) { height: 34px; min-height: 0; padding: 0 14px; font-size: 13px; }
.app.rx .ghost.danger-text { color: var(--danger); }
:root[data-theme="dark"] .app.rx .ghost.danger-text { color: #ff8a96; }

/* 퀀타 로그: 은행 거래 내역처럼 — 금액은 색 글자, 0원·빈칸은 흐리게 */
.app.rx .point-ledger-head { padding: 10px 18px; background: transparent; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.app.rx .point-ledger-row { padding: 14px 18px; }
.app.rx .ledger-money { min-height: 0; padding: 0; border-radius: 0; background: transparent; font-size: 15.5px; font-weight: 700; }
.app.rx .ledger-in { color: var(--success); }
.app.rx .ledger-out { color: var(--danger); }
:root[data-theme="dark"] .app.rx .ledger-in { color: #7fe3b1; }
:root[data-theme="dark"] .app.rx .ledger-out { color: #ff9aa5; }
.app.rx .ledger-none { color: var(--muted); font-weight: 500; font-size: 13px; }
.app.rx .ledger-description small { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app.rx .ledger-member strong, .app.rx .ledger-member .link-strong { font-size: 14.5px; }
.app.rx .ledger-balance strong { font-size: 15.5px; }

/* 공지: 종류 칩 + 제목 + 미리보기 */
.app.rx .notice-row h3 > span:first-child { font-size: 11.5px !important; padding: 3px 10px !important; }
.app.rx .notice-row p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80ch; }

/* 운영 로그: 시간 순서가 보이는 세로 줄 */
.app.rx .rows:has(> .audit-item) { padding: 6px 0; }
.app.rx .audit-item { position: relative; padding-left: 42px; border-bottom: 0; }
.app.rx .audit-item::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.app.rx .audit-item::after { content: ""; position: absolute; left: 18px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(76, 158, 255, .16); }
.app.rx .audit-item h3 { font-size: 14px; }
.app.rx .audit-item .kv-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app.rx .audit-item .kv { display: inline-flex; gap: 5px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--rx-chip); font-size: 12px; color: var(--sub); }
.app.rx .audit-item .kv b { color: var(--text); font-weight: 600; }

/* 회원 카드: 이름·번호·상태가 한눈에 */
.app.rx .user-row h3 { font-size: 15px; }
.app.rx .user-row .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }

/* 통계 칸(등급·업적·재무 개요 등): 숫자를 크게 */
.app.rx .stat-cell b, .app.rx .stat-value, .app.rx .stat-num { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app.rx .stat-cell span, .app.rx .stat-label, .app.rx .stat-lab { color: var(--sub); }

/* ============================================================
   선택칸 — 유리 펼침 목록(크롬 135+ base-select), 그 외 브라우저는 알약 + 꺾쇠
   ============================================================ */
@supports (appearance: base-select) {
  .app.rx select:not([multiple]):not([size]), .app.rx select:not([multiple]):not([size])::picker(select) { appearance: base-select; -webkit-appearance: base-select; }
  .app.rx select:not([multiple]):not([size]) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px 0 16px;
    border: 0;
    border-radius: 999px;
    background-image: none;
    background-color: var(--rx-field);
    box-shadow: inset 0 0 0 1px var(--glass-border);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, box-shadow .2s;
  }
  .app.rx .form-field select:not([multiple]):not([size]) { border-radius: 12px; }
  .app.rx select:not([multiple]):not([size]):hover { background-color: rgba(255, 255, 255, .1); }
  :root[data-theme="light"] .app.rx select:not([multiple]):not([size]):hover { background-color: #fff; }
  .app.rx select:not([multiple]):not([size]):open { box-shadow: inset 0 0 0 2px var(--primary); }
  .app.rx select::picker-icon {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6b6c2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: rotate .3s var(--rx-spring);
  }
  .app.rx select:open::picker-icon { rotate: 180deg; }
  .app.rx select::picker(select) {
    min-width: anchor-size(width);
    max-height: min(360px, 60vh);
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(26, 26, 30, .9);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 22px 60px rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    opacity: 0;
    translate: 0 -6px;
    scale: .98;
    transition: opacity .18s ease, translate .32s var(--rx-spring), scale .32s var(--rx-spring), display .32s allow-discrete, overlay .32s allow-discrete;
  }
  :root[data-theme="light"] .app.rx select::picker(select) { background: rgba(255, 255, 255, .95); box-shadow: 0 22px 60px rgba(25, 31, 40, .18); }
  .app.rx select:open::picker(select) { opacity: 1; translate: 0 0; scale: 1; }
  @starting-style { .app.rx select:open::picker(select) { opacity: 0; translate: 0 -6px; scale: .98; } }
  .app.rx select option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    cursor: pointer;
  }
  .app.rx select option:hover, .app.rx select option:focus-visible { background: var(--rx-hover); outline: none; }
  .app.rx select option:checked { background: rgba(255, 255, 255, .1); font-weight: 700; }
  :root[data-theme="light"] .app.rx select option:checked { background: rgba(17, 24, 39, .06); }
  .app.rx select option::checkmark { order: 2; margin-left: auto; content: "✓"; color: var(--primary); font-weight: 800; }
  :root[data-theme="dark"] .app.rx select option { background: transparent; }
}

/* ============================================================
   작품 심사 화면 — 앱 작품 에디터와 같은 칸(사장 '실제 앱 에디터 화면이랑 동일하게')
   카드 #1F1F21·모서리 16 / 입력칸 #161616·테두리 #2C2C30·모서리 10 / 고른 칩 = 흰 바탕·검은 글자(앱 _StyleChip)
   ============================================================ */
.rv-right.ed-mode {
  --text: #F6F6F7; --sub: #AEAEB2; --muted: #77777C; --line: #2C2C30;
  --surface: #1F1F21; --surface-soft: #222225; --surface-hover: #2a2a2e;
  background: #161616;
  color: #F6F6F7;
  padding: 20px 24px 64px;
}
.ed-card { max-width: 828px; margin: 0 auto 14px; padding: 16px 18px; border-radius: 16px; background: #1F1F21; color: #F6F6F7; }
.ed-card-h { display: flex; align-items: baseline; gap: 8px; }
.ed-card-h b { font-size: 15px; font-weight: 700; color: #F6F6F7; }
.ed-card-h span { font-size: 14px; color: #AEAEB2; }
.ed-desc { margin: 6px 0 0; font-size: 13px; color: #AEAEB2; }
.ed-card-b { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ed-field > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: #AEAEB2; }
.ed-input { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid #2C2C30; background: #161616; color: #F6F6F7; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.ed-input.multi { display: block; }
.ed-input:has(> .ed-chips:only-child) { min-height: 0; padding: 0; border: 0; background: transparent; }
.ed-note { display: block; margin-top: 5px; font-size: 12px; color: #77777C; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-chip { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid #3A3A3E; background: transparent; color: #AEAEB2; font-size: 13px; font-weight: 600; line-height: 1.2; }
.ed-chip.on { background: #fff; border-color: #fff; color: #0B0B0B; }
.ed-switches { display: flex; flex-direction: column; }
.ed-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ed-switch:last-child { border-bottom: 0; }
.ed-switch b { display: block; font-size: 14px; font-weight: 600; color: #F6F6F7; }
.ed-switch small { display: block; margin-top: 2px; font-size: 12px; color: #77777C; }
.ed-toggle { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #3A3A3E; }
.ed-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ed-toggle.on { background: #D10000; }
.ed-toggle.on::after { transform: translateX(18px); }
.ed-unset { max-width: 828px; margin: 4px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #77777C; }
.ed-unset b { margin-right: 4px; font-weight: 600; }
.ed-sub { margin: 8px 0 6px; font-size: 13px; font-weight: 700; color: #AEAEB2; }
.ed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ed-photos figure { margin: 0; }
.ed-photos .rv-imgbtn { display: block; width: 100%; padding: 0; border: 0; background: none; }
.ed-photos img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.ed-photos figcaption { margin-top: 5px; font-size: 12px; color: #AEAEB2; }
.ed-story { display: flex; flex-direction: column; gap: 8px; }
.ed-card .rv-sec { margin: 0; padding: 0; border: 0; background: transparent; }
.ed-card .rv-sec > h3 { display: none; }
.ed-card .rvr-list, .ed-card .rv-list, .ed-card .rv-card { color: #F6F6F7; }
