/* Tint Control (Main.qml controlPanel · quickControlContent · QuickTile, components/TintSlider.qml).
   위 가장자리에서 내려옴: 폭 min(804, 화면 - 24), 높이 649, 아래 모서리 24, 바탕 #fbfcff. */
#control { position: fixed; top: 0; z-index: 200; height: 649px; transform: translateY(-100%); visibility: hidden;
  transition: transform 250ms cubic-bezier(.4,0,1,1), visibility 0s linear 250ms; }
#control.open { transform: translateY(0); visibility: visible; transition: transform 250ms cubic-bezier(0,0,.2,1), visibility 0s; }
#control > .panel { position: absolute; inset: 0; }
/* 매달린 위쪽은 각지게 (위 24 px를 같은 색으로 덮음) */
#control > .panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: #fbfcff; }

/* 머리: 아이콘 17 + "Tint Control" 14 / 700, 오른쪽에 날짜 · 시계와 닫기 */
.cc-head { position: absolute; left: 19px; top: 19px; right: 19px; height: 40px; display: flex; align-items: center; }
.cc-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.cc-title img { width: 17px; height: 17px; }
.cc-clock { position: relative; margin-left: auto; margin-right: 4px; height: 36px; padding: 0 8px; display: flex; align-items: center; gap: 6px; }
.cc-clock .d { font-size: 13px; font-weight: 690; }
.cc-clock .h { font-size: 15px; font-weight: 800; }
.cc-close { position: relative; width: 25px; height: 25px; display: grid; place-items: center; cursor: pointer; }
.cc-close img { width: 13px; height: 13px; }
.cc-close:hover > svg.shape path, .cc-clock:hover > svg.shape path { fill: rgba(255,255,255,.6); }

.cc-body { position: absolute; left: 19px; top: 71px; right: 19px; bottom: 28px; }

/* 빠른 제어 카드: 폭 = 안 - 257, 높이 441, 모서리 28, #f9fafb, 선 #7affffff */
.quick { position: absolute; left: 0; top: 0; height: 441px; }
.quick > .q-title { position: absolute; left: 24px; top: 18px; font-size: 21px; font-weight: 750; line-height: 1.3; }
.tiles { position: absolute; left: 24px; top: 70px; right: 24px; display: grid; grid-template-columns: repeat(4, calc((100% - 21px) / 4)); column-gap: 6px; row-gap: 10px; }
.tile { position: relative; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.tile > .col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tile.act > .col { gap: 16px; }
.tile img { width: 22px; height: 22px; }
.tile .name { font-size: 17px; font-weight: 600; color: var(--subtle); line-height: 1.3; }
.tile.add .name { font-size: 14px; }
.tile .state { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tile:hover > svg.shape path { fill: #fff; }
.tile.on > svg.shape path { fill: var(--accent); }
.tile.on:hover > svg.shape path { fill: #415def; }
.tile.on .name { color: #fff; }
.tile.on .state { color: rgba(255,255,255,.9); }
.tile > svg.sheen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; display: none; }
.tile.on > svg.sheen { display: block; }
.tile .ico-on { display: none; }
.tile.on .ico-on { display: block; } .tile.on .ico-off { display: none; }

/* 밝기 · 소리: 줄 49, 아이콘 20, 막대 x 39, 오른쪽 숫자 16 / 650 */
.levels { position: absolute; left: 24px; top: 321px; right: 24px; display: flex; flex-direction: column; gap: 2px; }
.level { position: relative; height: 49px; display: flex; align-items: center; }
.level > img { width: 20px; height: 20px; }
.level .pct { position: absolute; right: 0; font-size: 16px; font-weight: 650; color: var(--subtle); }
.slider { position: absolute; left: 39px; right: 67px; height: 28px; padding: 0 6px; cursor: pointer; touch-action: none; }
.slider .track { position: absolute; left: 6px; right: 6px; top: 8.5px; height: 11px; border-radius: 6px; background: #e4e9f3; box-shadow: inset 0 0 0 1px #c5d0e5; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); }
.slider .knob { position: absolute; top: 4.5px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px #fff; transition: transform 120ms; }
.slider.drag .knob { transform: scale(1.12); }

/* 작업관리자 카드: 247 × 441, 모서리 16, #a8ffffff */
.tasks { position: absolute; top: 0; right: 0; width: 247px; height: 441px; }
.card-title { position: absolute; left: 14px; top: 16px; font-size: 12px; font-weight: 750; line-height: 1.3; }
.t-open { position: absolute; right: 42px; top: 13px; width: 24px; height: 24px; display: grid; place-items: center; }
.t-count { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 750; color: var(--accent); }
.t-empty { position: absolute; left: 14px; right: 14px; top: 228px; text-align: center; font-size: 12px; color: var(--muted); }

/* 알림 카드: 안 폭 전체, 위 451, 높이 99 */
.notices { position: absolute; left: 0; right: 0; top: 451px; height: 99px; }
.n-clear { position: absolute; right: 14px; top: 18px; font-size: 12px; color: var(--subtle); cursor: pointer; line-height: 1.3; }
.n-empty { position: absolute; left: 14px; right: 14px; top: 47px; height: 38px; display: flex; align-items: center; gap: 8px; padding-left: 12px; font-size: 12px; color: var(--subtle); }
.n-empty img { width: 14px; height: 14px; }

/* 아래 손잡이 30 × 3 */
.cc-grab { position: absolute; left: 50%; bottom: 12px; width: 30px; height: 3px; margin-left: -15px; border-radius: 2px; background: var(--ink); opacity: .14; }

/* 상단바 가운데 손잡이: 올리면 127로 길어지고 진해짐, 누르면 Tint Control */
#hotspot { position: fixed; top: 0; left: 50%; width: 210px; height: 29px; margin-left: -105px; z-index: 170; cursor: pointer; }
#handle { transition: width 180ms cubic-bezier(.2,0,0,1), margin-left 180ms cubic-bezier(.2,0,0,1), opacity 180ms; }
#hotspot:hover ~ #handle, #handle.hot { width: 127px; margin-left: -63.5px; opacity: .4; }
