/* 위젯 (Main.qml widgetColumn · WidgetCard, components/DayTodos.qml): 폭 300, 위 82, 오른쪽 22, 사이 12 */
#widgets { position: absolute; top: 82px; right: 22px; width: 300px; display: flex; flex-direction: column; gap: 12px; z-index: 4; }
.card { position: relative; width: 300px; padding: 38px 13px 10px; }
.card.sq > .title { position: absolute; left: 13px; top: 14px; font-size: 12px; font-weight: 750; letter-spacing: -0.4px; line-height: 1.3; }
.cal { display: flex; flex-direction: column; gap: 6px; }
.cal-head { position: relative; height: 26px; display: grid; place-items: center; font-size: 13px; font-weight: 750; }
.nav { position: absolute; top: 0; width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px; color: var(--subtle); }
.nav.prev { left: 0; } .nav.next { right: 0; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 2px; row-gap: 2px; }
.wd { height: 18px; text-align: center; font-size: 12px; color: var(--muted); line-height: 18px; }
.day { position: relative; height: 24px; display: grid; place-items: center; font-size: 12px; }
.day.today { color: #fff; }
.todos { display: flex; flex-direction: column; gap: 4px; }
.todos .rule { height: 1px; background: var(--line); }
.todos .head { height: 24px; display: flex; align-items: center; font-size: 12px; font-weight: 750; }
.todos .none { height: 24px; display: flex; align-items: center; font-size: 12px; color: var(--muted); }
.todos .gap { height: 2px; }
.todo-add { position: relative; height: 32px; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.notice { position: relative; height: 34px; display: flex; align-items: center; padding-left: 12px; font-size: 12px; color: var(--subtle); }
.add-widget { position: relative; width: 300px; height: 40px; display: grid; place-items: center; font-size: 12px; font-weight: 650; color: var(--subtle); }

/* ── 달력: 넘기기 · 고르기 · 할 일이 남은 날의 점 (Main.qml calendarWidget, DayTodos.qml) ── */
.nav { cursor: pointer; }
.nav:hover > svg.shape path { fill: #fff; }
.day.pick { cursor: pointer; }
.day > .dot { position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--accent); }
.day.today > .dot { background: #fff; }
.todos .head { justify-content: space-between; }
.todos .count { font-weight: 400; color: var(--muted); }
.todo { position: relative; height: 28px; display: flex; align-items: center; cursor: pointer; }
.todo .box { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.todo .text { margin: 0 24px 0 8px; flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo.done .text { text-decoration: line-through; color: var(--muted); }
.todo .off { position: absolute; right: 0; top: 4px; width: 20px; height: 20px; display: none; place-items: center; }
.todo:hover .off { display: grid; }
.todo .off:hover > svg.shape path { fill: rgba(174,113,141,.24); }
.todo-add { cursor: pointer; }
.todo-add:not(.editing):hover > svg.shape path { fill: rgba(60,86,221,.12); }
.todo-input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 10px; font: inherit; font-size: 12px; color: var(--ink); }
.todo-input::placeholder { color: var(--muted); }
.add-widget { cursor: pointer; }
.add-widget:hover > svg.shape path { fill: rgba(244,247,253,.78); }

/* ── 빠른 제어 위젯: 작은 칸 64 × 64, 모서리 12 · 막대 줄 26 ── */
.q-wrap { display: flex; flex-direction: column; gap: 10px; }
.q-tiles { display: grid; grid-template-columns: repeat(4, 64px); column-gap: 6px; row-gap: 6px; }
.tile.compact { height: 64px; }
.tile.compact > .col, .tile.compact.act > .col { gap: 3px; }
.tile.compact img { width: 18px; height: 18px; }
.tile.compact .name, .tile.compact .state { font-size: 12px; }
.q-levels .level { height: 26px; }
.q-levels .level > img { width: 16px; height: 16px; }
.q-levels .slider { left: 24px; right: 40px; }
#widgets .q-levels .pct { font-size: 12px; }

/* ── 작업 관리자 위젯 ── */
.w-tasks .w-open { right: 10px; top: 8px; cursor: pointer; }
.meters { display: flex; gap: 8px; height: 32px; margin-bottom: 4px; }
.meter { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-text { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar { height: 4px; border-radius: 2px; background: rgba(128,136,178,.25); }
.notice.center { justify-content: center; padding: 0; }

/* ── 클립보드 기록 ── */
.clips { display: flex; flex-direction: column; gap: 4px; }
.clip { position: relative; height: 46px; cursor: pointer; }
.clip:hover > svg.shape path { fill: rgba(255,255,255,.46); stroke: rgba(255,255,255,.78); stroke-width: 1; }
.c-ico { position: absolute; left: 9px; top: 8.5px; width: 29px; height: 29px; display: grid; place-items: center; }
.c-ico img { width: 16px; height: 16px; }
.c-text { position: absolute; left: 46px; right: 34px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1px; }
.c-main { font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-sub { font-size: 12px; color: var(--muted); }
.c-off { position: absolute; right: 8px; top: 12px; width: 22px; height: 22px; display: none; place-items: center; }
.clip:hover .c-off { display: grid; }
.c-off img { width: 10px; height: 10px; }
.c-off:hover > svg.shape path { fill: rgba(174,113,141,.2); }

/* ── 미디어 (MediaCard.qml): 작게 300 × 125, 크게 480 × 200 ── */
.media { position: relative; }
.media canvas { position: absolute; left: 0; top: 0; }
.media > .md-title { position: absolute; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media > .md-expand { position: absolute; display: grid; place-items: center; cursor: pointer; }
#media-large { position: absolute; top: 82px; right: 334px; z-index: 4; }

/* ── 날씨 (WeatherCard.qml): 300 × 188 ── */
.card.w-weather { height: 188px; padding: 0; cursor: pointer; }
.card.sq > .wx-place { position: absolute; right: 13px; top: 13px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.card.sq > .wx-wait { position: absolute; left: 13px; top: 48px; right: 13px; font-size: 12px; color: var(--muted); }
.card.sq > .sky { position: absolute; }
.card.sq > .wx-deg { position: absolute; left: 70px; top: 62px; transform: translateY(-50%); font-size: 30px; font-weight: 600; }
.card.sq > .wx-now { position: absolute; left: 124px; top: 46px; display: flex; flex-direction: column; gap: 2px; }
.wx-words { font-size: 12px; font-weight: 600; }
.wx-hl { font-size: 11px; color: var(--muted); }
.card.sq > .wx-rule { position: absolute; left: 12px; right: 12px; top: 100px; height: 1px; background: var(--line); }
.card.sq > .wx-hours { position: absolute; left: 12px; right: 12px; top: 108px; display: flex; }
.wx-h { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wx-label { font-size: 11px; color: var(--muted); }
.wx-t { font-size: 12px; font-weight: 600; }
.card.sq > .wx-menu { position: absolute; right: 8px; top: 32px; width: 200px; padding: 6px; z-index: 5; }
.wx-item { position: relative; height: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; border-radius: 8px; cursor: pointer; }
.wx-item:hover { background: rgba(128,136,178,.16); }
.wx-item.on { font-weight: 700; color: var(--accent); }

/* ── 위젯 추가 창: 위젯 열의 왼쪽 14, 폭 2 × 200 + 3 × 14 ── */
#widget-picker { position: absolute; top: 82px; right: 336px; width: 442px; z-index: 231; }
.wp { position: relative; width: 442px; }
.wp > .wp-title { position: absolute; left: 16px; top: 14px; font-size: 14px; font-weight: 750; line-height: 1.3; }
.wp > .wp-close { position: absolute; right: 16px; top: 15px; font-size: 12px; color: var(--subtle); cursor: pointer; line-height: 1.3; }
.wp > .wp-grid { position: absolute; left: 14px; right: 14px; top: 46px; bottom: 14px; overflow: auto; display: grid; grid-template-columns: 200px 200px; gap: 14px; align-content: start; }
.wp-choice { position: relative; width: 200px; cursor: pointer; }
.wp-choice:hover > svg.shape path { fill: rgba(60,86,221,.12); stroke: #3c56dd; }
.wp-choice > .wp-view { position: absolute; left: 7px; top: 7px; right: 7px; bottom: 46px; overflow: hidden; pointer-events: none; }
.wp-scale { width: 300px; transform: scale(.62); transform-origin: 0 0; }
.wp-choice > .wp-name { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; font-weight: 650; }
