/* 앱 창 (components/WindowFrame.qml): 바탕 #fbffffff, 테두리 #9e8faad8, 모서리 16, 그림자 0 14 · 흐림 46 · rgba(36,61,110,.15),
   제목줄 63 (#adffffff, 아래 선 #1a7b89aa), 왼쪽 30 · 오른쪽 32, 아이콘 판 28, 제목 20 / 820, 단추 29. */
.win { position: fixed; z-index: 50; filter: drop-shadow(0 14px 23px rgba(36,61,110,.15)); }
.win > .win-clip { position: absolute; inset: 0; display: flex; flex-direction: column; }
.win.max > .win-clip { clip-path: none !important; }
.win-title { position: relative; flex: none; height: 63px; display: flex; align-items: center; gap: 10px; padding: 0 32px 0 30px;
  background: rgba(255,255,255,.68); border-bottom: 1px solid rgba(123,137,170,.10); cursor: default; touch-action: none; }
.win-icon { position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.win-icon img, .win-icon svg { width: 17px; height: 17px; }
.win-name { flex: 1; min-width: 0; font-size: 20px; font-weight: 820; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btns { display: flex; gap: 6px; }
.win-btn { position: relative; width: 29px; height: 29px; display: grid; place-items: center; cursor: pointer; }
.win-btn img { width: 15px; height: 15px; }
.win-btn:hover > svg.shape path { fill: #fff; }
.win-btn.close:hover > svg.shape path { fill: #fae0df; }
.win-body { flex: 1; min-height: 0; overflow: auto; }

/* 열고 닫는 움직임: 상단바 아이콘에서 커지며 나옴 (모션 "열기" 250 ms), 닫힐 때 그 아이콘으로 (모션 "닫기" 180 ms) */
.win { transition: transform 250ms cubic-bezier(0,0,.2,1), opacity 250ms cubic-bezier(0,0,.2,1); }
.win.from-icon { opacity: 0; }
.win.closing { transition: transform 180ms cubic-bezier(.4,0,1,1), opacity 180ms cubic-bezier(.4,0,1,1); opacity: 0; }

/* 상단바 아이콘의 실행 표시 (TopBarApps.qml): 왼쪽 2, 폭 3, 열려 있으면 10, 앞에 있으면 20 */
.bar-icon > .run { position: absolute; left: 2px; top: 50%; width: 3px; height: 0; margin-top: 0; border-radius: 1.5px; background: var(--accent);
  transition: height 160ms cubic-bezier(.33,1,.68,1), margin-top 160ms cubic-bezier(.33,1,.68,1); z-index: 2; }
.bar-icon.running > .run { height: 10px; margin-top: -5px; }
.bar-icon.front > .run { height: 20px; margin-top: -10px; }

/* ── 창 안: 기본 디자인 (테마마다 바탕화면 · 창) ── */
.dz { padding: 24px 30px 30px; display: flex; flex-direction: column; gap: 26px; }
.dz-theme h3 { margin: 0 0 10px; font-size: 15px; font-weight: 750; }
.dz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dz-shot { margin: 0; min-width: 0; }
.dz-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); }
.dz-shot figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); }

/* 창 안의 탭 (UiButton: 높이 30, 모서리 10, 폭 64 이상, 글자 12 / 600) */
.win-tabs { display: flex; gap: 6px; padding: 20px 30px 0; }
.win-tab { position: relative; height: 30px; min-width: 64px; padding: 0 12px; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; cursor: pointer; }
.win-tab.on { color: #fff; cursor: default; }
.win-tab:not(.on):hover > svg.shape path { stroke: var(--accent); }

/* ── 창 안: 스퀴클 (R값 표 · 일반과 스퀴클) ── */
.sqz { padding: 18px 30px 30px; }
.sq-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sq-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 16px 8px 0; border-bottom: 1px solid var(--line); }
.sq-table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sq-table th:first-child, .sq-table td.sq-pic { width: 118px; }
.sq-table td.sq-pic svg { display: block; }
.sq-table td.sq-px { width: 90px; font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 600; }
.sq-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 8px; }
.sq-c { margin: 0; }
.sq-c svg { display: block; margin: 0 auto; }
.sq-c figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sq-c figcaption b { font-size: 13px; font-weight: 700; }
.sq-c figcaption span { font-size: 12.5px; line-height: 1.65; color: var(--subtle); }

/* ── 창 안: 표 (색상 · 테마 창이 같이 씀) ── */
.wz { padding: 18px 30px 30px; }
.wt { width: 100%; border-collapse: collapse; font-size: 13px; }
.wt th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 16px 8px 0; border-bottom: 1px solid var(--line); }
.wt td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wt tr.wt-grp td { padding: 18px 0 8px; font-size: 12px; font-weight: 700; color: var(--subtle); }
.wnote { margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.wnote li::before { content: "- "; }

/* 색상 창 */
.cz-head { display: flex; align-items: baseline; gap: 10px; }
.cz-head b { font-size: 22px; font-weight: 700; }
.cz-head span { font-size: 13px; color: var(--muted); }
.cz-bar { margin-top: 12px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(128,140,160,.3); }
.cz-wall { margin: 6px 0 8px; font-size: 12px; color: var(--muted); }
.wt td.cz-sw { width: 46px; }
.cz-sw > .sq { width: 30px; height: 30px; display: grid; place-items: center; }
.cz-sw i { font-style: normal; font-size: 14px; font-weight: 700; }
.cz-name { width: 180px; font-weight: 600; }
.cz-hex { font-family: "Space Grotesk", sans-serif; font-size: 13px; color: var(--subtle); }
.cz-cr { text-align: right; white-space: nowrap; }
.cz-cr b { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600; margin: 0 8px 0 6px; }
.cz-how { font-size: 12px; color: var(--muted); }
.cz-lv { display: inline-block; min-width: 34px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.cz-lv.aaa { background: #2E9E6A; color: #fff; }
.cz-lv.aa { background: #DDF3E8; color: #1F6E49; }
.cz-lv.lg { background: #F6EAD9; color: #8A5A2B; }
.cz-lv.no { background: #EEF0F4; color: #8A97AD; }

/* 테마 창 */
.wt td.tz-pic { width: 76px; }
.tz-pic svg { display: block; }
.tz-num { width: 90px; font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; }
.tz-font { width: 180px; font-weight: 600; }
.tz-sample { font-size: 20px; }
.tz-sample.plex { font-family: "IBM Plex Sans KR", sans-serif; }
.tz-sample.grotesk { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.tz-sample.mono { font-family: "IBM Plex Mono", monospace; font-size: 17px; }
.tz-curve { width: 48px; height: 48px; display: grid; place-items: center; }
.tz-times { margin-top: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tz-times > .sq { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tz-times b { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 600; color: var(--accent); }
.tz-times span { font-size: 11px; color: var(--muted); }
.cz-table th:last-child { text-align: right; padding-right: 0; }
.cz-table td.cz-cr { padding-right: 0; }
.cz-table td.cz-hex { width: 220px; }
