:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Pretendard", "Noto Sans KR", sans-serif;
  color: #191f28;
  background: transparent;
  font-synthesis: none;
  --blue: #3182f6;
  --blue-soft: #e8f3ff;
  --grey-50: #f9fafb;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-300: #d1d6db;
  --grey-500: #8b95a1;
  --grey-600: #6b7684;
  --grey-700: #4e5968;
  --grey-900: #191f28;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; margin: 0; overflow: hidden; background: transparent; }
html.capture-hires, html.capture-hires body { width: 744px; height: 1120px; }
html.capture-hires #root { width: 372px; height: 560px; transform: scale(2); transform-origin: left top; }
html.capture-game-over { background: #eef2f7; }
html.capture-game-over body { display: grid; place-items: center; background: #eef2f7; }
html.capture-game-over #root { width: 372px; height: 560px; box-shadow: 0 18px 48px rgba(25, 31, 40, .14); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.drag-region { -webkit-app-region: drag; }
.no-drag, button, input, select, textarea { -webkit-app-region: no-drag; }

.loading-stage {
  width: 100%; height: 100%; display: grid; place-items: center; background: transparent;
}
.loading-stage { color: var(--grey-500); }

.widget-shell {
  position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(25, 31, 40, .13); border-radius: 19px; background: #fff;
}




.learningx-queue-page { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; color: #191f28; background: #fff; }
.learningx-queue-top { height: 49px; flex: 0 0 auto; padding: 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff; }
.learningx-queue-top strong { text-align: center; font-size: 13px; font-weight: 700; }
.learningx-queue-top button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #191f28; cursor: pointer; }
.learningx-queue-top button:hover, .learningx-queue-top button:focus-visible { outline: 1px solid #6b7684; outline-offset: -2px; }
.learningx-queue-top .learningx-queue-toggle { width: auto; min-height: 30px; justify-self: end; padding: 0 4px; color: #4e5968; font-size: 11px; font-weight: 650; white-space: nowrap; }
.learningx-queue-mini { min-height: 66px; flex: 0 0 auto; padding: 9px 12px; display: flex; align-items: center; gap: 8px; background: #fff; }
.learningx-queue-cover { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; background: #f2f4f6; color: #4e5968; }
.learningx-queue-mini-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.learningx-queue-mini-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.learningx-queue-mini-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b7684; font-size: 9px; }
.learningx-queue-mini button { width: 27px; height: 30px; flex: 0 0 auto; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #191f28; cursor: pointer; }
.learningx-queue-mini button:disabled { opacity: .35; cursor: default; }
.learningx-queue-mini button:not(:disabled):focus-visible { outline: 1px solid #6b7684; }
.learningx-queue-progress { height: 3px; flex: 0 0 auto; background: #e5e8eb; }
.learningx-queue-progress span { display: block; height: 100%; background: #293748; transition: width .6s ease-out; }
.learningx-queue-heading { height: 52px; flex: 0 0 auto; padding: 0 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e5e8eb; }
.learningx-queue-heading strong { height: 100%; padding: 0 4px; display: flex; align-items: center; border-bottom: 2px solid #191f28; font-size: 12px; }
.learningx-queue-heading span { color: #6b7684; font-size: 10px; }
.learningx-queue-heading button { width: 27px; height: 27px; margin-left: auto; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #4e5968; cursor: pointer; }
.learningx-queue-heading button:disabled { opacity: .35; cursor: default; }
.learningx-queue-heading button:not(:disabled):focus-visible { outline: 1px solid #6b7684; }
.learningx-queue-list { min-height: 0; flex: 1; overflow-y: auto; scrollbar-color: #c9cfd5 #fff; }
.learningx-queue-row { min-height: 62px; padding: 8px 15px; display: flex; align-items: center; gap: 12px; }
.learningx-queue-row.current { background: #f5f7f9; }
.learningx-queue-row.completed { background: #f4f8f5; }
.learningx-queue-row.pending { background: #f7f9fc; }
.learningx-queue-row + .learningx-queue-row { border-top: 1px solid #edf0f2; }
.learningx-queue-row.completed .learningx-queue-row-art, .learningx-queue-row.completed .learningx-queue-state { color: #28744b; }
.learningx-queue-row.pending .learningx-queue-row-art, .learningx-queue-row.pending .learningx-queue-state { color: #245c9a; }
.learningx-queue-row-art { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; background: #f2f4f6; color: #4e5968; }
.learningx-queue-row-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.learningx-queue-row-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.learningx-queue-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b7684; font-size: 9px; }
.learningx-queue-empty, .learningx-queue-error { margin: 0; padding: 18px 20px; color: #6b7684; font-size: 11px; line-height: 1.5; }
.learningx-queue-error { color: #c44d54; }
.learningx-mini-player { width: calc(100% - 26px); min-height: 45px; margin: 5px 13px 7px; padding: 7px 10px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 6px; background: #0b4c66; color: #fff; text-align: left; cursor: pointer; }
.learningx-mini-player:hover, .learningx-mini-player:focus-visible { outline: 2px solid #0b4c66; outline-offset: 2px; }
.learningx-mini-icon { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; }
.learningx-mini-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.learningx-mini-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
.learningx-mini-copy small { color: #c2dbe4; font-size: 9px; }
.learningx-mini-progress { font-size: 10px; font-weight: 750; color: #c2dbe4; font-variant-numeric: tabular-nums; }

.window-resize-zone { position: absolute; z-index: 100; background: transparent; touch-action: none; user-select: none; }
.window-resize-top { top: 0; left: 16px; right: 16px; height: 7px; cursor: ns-resize; }
.window-resize-right { top: 16px; right: 0; bottom: 16px; width: 7px; cursor: ew-resize; }
.window-resize-bottom { right: 16px; bottom: 0; left: 16px; height: 7px; cursor: ns-resize; }
.window-resize-left { top: 16px; bottom: 16px; left: 0; width: 7px; cursor: ew-resize; }
.window-resize-top-left, .window-resize-top-right, .window-resize-bottom-left, .window-resize-bottom-right { width: 16px; height: 16px; }
.window-resize-top-left { top: 0; left: 0; cursor: nwse-resize; }
.window-resize-top-right { top: 0; right: 0; cursor: nesw-resize; }
.window-resize-bottom-left { bottom: 0; left: 0; cursor: nesw-resize; }
.window-resize-bottom-right { bottom: 0; right: 0; cursor: nwse-resize; }

.widget-header {
  position: relative; height: 54px; padding: 0 12px 0 13px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; flex: 0 0 auto;
}
.widget-header > strong { grid-column: 2; text-align: center; font-size: 14px; white-space: nowrap; letter-spacing: -.02em; }
.header-game-button { grid-column: 1; grid-row: 1; justify-self: start; width: 27px; height: 27px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; color: #5c8add; background: #edf5ff; cursor: pointer; }
.header-game-button:hover, .header-game-button:focus-visible { color: #1769ce; background: #dcecff; outline: 0; }
.header-actions { grid-column: 3; display: flex; justify-content: flex-end; gap: 1px; }
.header-actions button, .detail-actions button {
  width: 27px; height: 27px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px;
  color: #8b95a1; background: transparent; cursor: pointer;
}
.header-actions button:hover, .detail-actions button:hover { color: var(--grey-900); background: var(--grey-100); }
.header-actions button:disabled { opacity: .48; }

.schedule-strip {
  min-height: 58px; margin: 0 13px; padding: 10px 12px; border-radius: 13px; display: flex; align-items: center; gap: 11px;
  color: var(--grey-700); background: linear-gradient(115deg, #f5f9ff, #edf5ff); border: 1px solid #e0edff;
}
.schedule-strip time { font-size: 12px; font-weight: 700; color: #2272df; font-variant-numeric: tabular-nums; }
.schedule-strip > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.schedule-strip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: -.02em; }
.schedule-strip small { font-size: 9px; color: #8b95a1; }
.schedule-strip svg { color: #6b9ee8; }

.schedule-preview { flex: 0 0 auto; margin: 0 0 2px; }
.schedule-preview > header { min-height: 43px; padding: 4px 15px 5px; display: flex; align-items: center; justify-content: space-between; }
.schedule-heading { display: flex; flex-direction: column; gap: 1px; }
.schedule-heading strong { color: #191f28; font-size: 15px; line-height: 1.25; letter-spacing: -.03em; }
.schedule-heading small { color: #8b95a1; font-size: 10px; font-weight: 650; }
.schedule-preview > header button { padding: 5px 3px; border: 0; color: #6b7684; background: transparent; font-size: 10px; font-weight: 650; cursor: pointer; }
.schedule-preview > header button:hover { color: var(--blue); }
.schedule-cards { display: flex; gap: 7px; padding: 0 13px 7px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.schedule-cards::-webkit-scrollbar { display: none; }
.schedule-card { width: 150px; height: 70px; flex: 0 0 auto; padding: 9px 11px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; overflow: hidden; border: 1px solid #dfebfc; border-radius: 12px; color: #333d49; background: linear-gradient(145deg, #f8fbff, #edf5ff); text-align: left; cursor: pointer; scroll-snap-align: start; }
.schedule-card:hover { border-color: #a9ccfb; background: #eff6ff; }
.schedule-card time { color: #191f28; font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.schedule-card strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.schedule-card small { width: 100%; min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; color: #8b95a1; font-size: 9px; }
.schedule-time { flex: 0 0 auto; color: #2272df; font-weight: 750; font-variant-numeric: tabular-nums; }
.schedule-location { min-width: 0; display: flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; }
.schedule-location::before { content: "·"; color: #c0c6cd; }
.schedule-card.ongoing { border-color: #94bffb; }
.schedule-card.ended { border-color: #e5e8eb; color: #8b95a1; background: #f7f8fa; box-shadow: none; }
.schedule-card.ended time,
.schedule-card.ended .schedule-time { color: #8b95a1; }
.schedule-card.ended .schedule-location { color: #b0b8c1; }
.schedule-empty { height: 44px; margin: 0 13px 7px; width: calc(100% - 26px); padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px dashed #d9e1eb; border-radius: 10px; color: #8b95a1; background: #fafbfc; font-size: 11px; cursor: pointer; }

.task-tabs {
  height: 48px; margin: 0 16px; display: flex; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--grey-200);
}
.task-tabs button { position: relative; border: 0; padding: 0 3px; background: transparent; color: #8b95a1; font-size: 13px; font-weight: 650; cursor: pointer; }
.task-tabs button b { margin-left: 3px; font-size: 12px; font-weight: 600; }
.task-tabs button.active { color: var(--grey-900); }
.task-tabs button.active::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 2px; border-radius: 2px; background: #191f28; }
.task-tabs .assignments-tab { margin-left: auto; }
.task-tabs .assignments-tab, .task-tabs .lectures-tab, .task-tabs .materials-tab { display: flex; align-items: center; gap: 3px; color: #4e5968; }
.task-tabs .assignments-tab:hover, .task-tabs .lectures-tab:hover, .task-tabs .materials-tab:hover { color: var(--blue); }
.capture-tap { position: absolute; z-index: 30; top: 183px; width: 34px; height: 34px; border: 2px solid rgba(49,130,246,.9); border-radius: 50%; background: rgba(49,130,246,.10); box-shadow: 0 0 0 8px rgba(49,130,246,.09); pointer-events: none; }
.capture-tap.assignments { left: 264px; }
.capture-tap.materials { left: 323px; }
.capture-tap.download { left: 303px; top: 342px; }
.capture-tap i { position: absolute; right: -5px; bottom: -9px; width: 13px; height: 18px; border-radius: 8px 8px 10px 10px; background: white; border: 1.5px solid #3182f6; transform: rotate(-24deg); box-shadow: 0 3px 8px rgba(25,31,40,.16); }

.task-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 8px; scrollbar-width: thin; scrollbar-color: #d7dce2 transparent; }
.task-list::-webkit-scrollbar { width: 5px; }
.task-list::-webkit-scrollbar-thumb { border-radius: 5px; background: #d7dce2; }
.settings-scroll::-webkit-scrollbar, .detail-scroll::-webkit-scrollbar { display: none; }
.task-row { min-height: 44px; display: flex; align-items: center; gap: 9px; border-radius: 9px; transition: background .13s ease; }
.task-row:hover { background: #f7f8fa; }
.task-row.is-drag-placeholder { background: #edf5ff; box-shadow: inset 0 0 0 1px #bdd8ff; }
.task-row.is-drag-placeholder > * { visibility: hidden; }
.drag-handle { width: 16px; height: 28px; flex: 0 0 16px; margin-right: -6px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; color: #aeb8c4; cursor: grab; opacity: 0; touch-action: none; transition: opacity .12s ease, color .12s ease; }
.task-row:hover .drag-handle, .drag-handle:focus-visible { opacity: 1; }
.drag-handle:active { cursor: grabbing; color: var(--blue); }
.drag-handle:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 4px; }
.task-drag-preview { position: fixed; z-index: 1000; pointer-events: none; border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(27, 44, 68, .17), 0 2px 6px rgba(27, 44, 68, .09); transform: scale(1.015); }
.task-drag-preview .task-row { height: 100%; background: #fff; }
.task-drag-preview .drag-handle { opacity: 1; color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .task-drag-preview { transform: none; } }
.task-row.is-suggestion { background: linear-gradient(90deg, rgba(255, 242, 236, .72), rgba(255, 255, 255, 0)); }
.check-button, .detail-check {
  width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; padding: 0;
  border: 1.5px solid #c7cdd4; border-radius: 5px; background: white; color: white; cursor: pointer;
}
.check-button:hover, .detail-check:hover { border-color: var(--blue); }
.task-row.is-done .check-button, .detail-view .detail-check:has(svg) { border-color: var(--blue); background: var(--blue); }
.suggestion-mark, .detail-suggestion-mark { flex: 0 0 auto; display: grid; place-items: center; color: #f77153; background: #fff0eb; border: 1px solid #ffd9cd; }
.suggestion-mark { width: 18px; height: 18px; border-radius: 6px; }
.detail-suggestion-mark { width: 21px; height: 21px; margin-top: 2px; border-radius: 7px; }
.task-open {
  min-width: 0; height: 39px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 0;
  border: 0; background: transparent; text-align: left; cursor: pointer;
}
.priority-chip { max-width: 88px; flex: 0 0 auto; overflow: hidden; padding: 2px 5px; border-radius: 5px; font-size: 10px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.priority-chip.high { color: #8b36a9; background: #f4e8fb; }
.priority-chip.medium { color: #2478ce; background: #e8f3ff; }
.priority-chip.low { color: #168750; background: #e5f6ed; }
.task-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 560; letter-spacing: -.025em; }
.task-row.is-done .task-title { color: #a1a9b2; text-decoration: line-through; }
.task-open time { margin-left: auto; color: #788390; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-open time.overdue { color: #d23f57; }
.confirm-task-button { height: 25px; flex: 0 0 auto; padding: 0 8px; border: 0; border-radius: 7px; color: white; background: #f77153; font-size: 9px; font-weight: 750; cursor: pointer; }
.confirm-task-button:hover { background: #e75f42; }
.confirm-task-button:disabled { opacity: .55; cursor: default; }
.memo-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #ff759a; }

.empty-state { height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #b0b8c1; }
.empty-state svg { margin-bottom: 10px; }
.empty-state strong { font-size: 12px; color: #6b7684; }
.empty-state small { margin-top: 4px; font-size: 10px; }

.widget-footer {
  height: 46px; flex: 0 0 auto; padding: 0 13px 0 16px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--grey-100);
}
.widget-footer > span { display: flex; align-items: center; gap: 3px; color: #a3aab3; font-size: 9px; font-weight: 650; }
.widget-footer i { width: 5px; height: 5px; border-radius: 50%; background: #d1d6db; }
.widget-footer i.on { background: #20b26b; box-shadow: 0 0 0 2px #e0f5e9; }
.widget-footer i.off { background: #e44b5e; box-shadow: 0 0 0 2px #fde8eb; }
.widget-footer i.waiting { background: #f5a623; box-shadow: 0 0 0 2px #fff0d5; }
.widget-footer small { margin-left: auto; color: #a3aab3; font-size: 9px; }
.widget-footer button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; color: #7f8995; background: transparent; cursor: pointer; }
.widget-footer button:hover { color: var(--blue); background: var(--blue-soft); }
.widget-footer .footer-sort-button { width: auto; min-width: 48px; padding: 0 5px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 650; }
.widget-footer .footer-sort-button:disabled { opacity: .4; cursor: default; }
.widget-footer .footer-sort-button:disabled:hover { color: #7f8995; background: transparent; }

.game2048-view { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.game2048-restart { justify-self: end; }
.game2048-content { min-height: 0; flex: 1; padding: 13px 15px; display: flex; flex-direction: column; }
.game2048-scores { min-height: 58px; display: flex; align-items: stretch; gap: 7px; }
.game2048-scores > div { min-width: 0; flex: 1; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; border-radius: 10px; background: #f2f6fc; }
.game2048-scores small { color: #8b95a1; font-size: 9px; font-weight: 700; }
.game2048-scores strong { color: #293748; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.game2048-board { position: relative; width: min(100%, 320px); aspect-ratio: 1; align-self: center; flex: 0 0 auto; margin: auto; border-radius: 15px; background: #dce6f2; touch-action: none; user-select: none; overflow: hidden; }
.game2048-cell-grid { position: absolute; inset: 7px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 7px; }
.game2048-cell-grid > span { border-radius: 9px; background: rgba(255,255,255,.52); }
.game2048-tile-layer { position: absolute; inset: 7px; pointer-events: none; }
.game2048-tile { position: absolute; width: calc((100% - 21px) / 4); height: calc((100% - 21px) / 4); display: grid; place-items: center; border-radius: 9px; color: #355779; background: #f0f5fa; font-size: 25px; font-weight: 850; letter-spacing: -.06em; font-variant-numeric: tabular-nums; transition: transform 145ms cubic-bezier(.18,.78,.22,1); will-change: transform; }
.game2048-tile.is-moving { transform: translate(var(--travel-x), var(--travel-y)); }
.game2048-tile.is-spawned { animation: game2048-spawn 130ms ease-out both; }
.game2048-tile.is-merged { animation: game2048-merge 180ms ease-out both; }
@keyframes game2048-spawn { from { opacity: 0; scale: .58; } to { opacity: 1; scale: 1; } }
@keyframes game2048-merge { 0% { scale: 1; } 45% { scale: 1.12; } 100% { scale: 1; } }
.game2048-tile.tile-2 { background: #f8fbff; }
.game2048-tile.tile-4 { background: #e8f3ff; }
.game2048-tile.tile-8 { color: #1769ce; background: #d4e8ff; }
.game2048-tile.tile-16 { color: #1769ce; background: #baddff; }
.game2048-tile.tile-32 { color: white; background: #70aaf9; }
.game2048-tile.tile-64 { color: white; background: #3182f6; }
.game2048-tile.tile-128, .game2048-tile.tile-256 { color: white; background: #f78d71; font-size: 22px; }
.game2048-tile.tile-512, .game2048-tile.tile-1024, .game2048-tile.tile-2048 { color: white; background: #ef6b4d; font-size: 20px; }
.game2048-over { position: absolute; inset: 7px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 16px; border-radius: 9px; background: rgba(255,255,255,.94); animation: game2048-over 180ms ease-out both; text-align: center; }
@keyframes game2048-over { from { opacity: 0; } to { opacity: 1; } }
.game2048-over strong { font-size: 18px; }
.game2048-final-score { color: #3182f6; font-size: 28px; font-weight: 850; font-variant-numeric: tabular-nums; }
.game2048-nickname { margin: 2px 0 5px; color: #6b7684; font-size: 11px; }
.game2048-ranks { width: 100%; display: flex; justify-content: center; gap: 20px; margin: 2px 0 6px; }
.game2048-ranks span { display: flex; align-items: center; gap: 5px; color: #8b95a1; font-size: 11px; }
.game2048-ranks b { color: #293748; font-size: 12px; }
.game2048-over button { width: min(100%, 205px); min-height: 33px; padding: 7px 11px; border: 0; border-radius: 8px; font-size: 11px; font-weight: 750; cursor: pointer; }
.game2048-over .game2048-primary { color: white; background: #3182f6; }
.game2048-over .game2048-primary:hover { background: #1769ce; }
.game2048-over .game2048-primary:disabled { opacity: .55; cursor: wait; }
.game2048-over .game2048-secondary { color: #1769ce; background: #e8f3ff; }
.game2048-over .game2048-retry { width: auto; min-height: 25px; padding: 4px 8px; color: #6b7684; background: transparent; }
.game2048-over small { max-width: 235px; color: #8b95a1; font-size: 9px; line-height: 1.4; }
.game2048-over .game2048-error { color: #c43e55; }
@media (prefers-reduced-motion: reduce) {
  .game2048-tile { transition-duration: .01ms; animation-duration: .01ms; }
  .game2048-over { animation-duration: .01ms; }
}

.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 49px; min-height: 91px; padding: 7px; display: flex; flex-direction: column; gap: 5px;
  border: 1px solid #b8d5fd; border-radius: 13px; background: rgba(255, 255, 255, .98); box-shadow: 0 10px 28px rgba(25, 31, 40, .16), 0 0 0 3px rgba(49, 130, 246, .08);
}
.quick-add-main, .quick-add-options { width: 100%; display: flex; align-items: center; gap: 5px; }
.quick-add-title { min-width: 0; flex: 1; height: 31px; padding: 0 7px; border: 0; outline: 0; color: var(--grey-900); font-size: 11px; }
.quick-add-options > span { padding-left: 7px; color: #6b7684; font-size: 10px; font-weight: 700; }
.quick-add-options .deadline-trigger { height: 29px; font-size: 9px; }
.quick-add-options .priority-picker { width: 92px; flex: 0 0 auto; }
.quick-add-options .priority-trigger { height: 29px; }
.quick-add-main > button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; cursor: pointer; }
.quick-add .save-add { color: white; background: var(--blue); }
.quick-add .cancel-add { color: var(--grey-500); background: var(--grey-100); }

.detail-view, .settings-panel { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.sub-panel { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.detail-header, .panel-header {
  height: 56px; flex: 0 0 auto; padding: 0 13px; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center;
  border-bottom: 1px solid var(--grey-100);
}
.detail-header-title, .panel-header > strong { text-align: center; font-size: 14px; font-weight: 700; }
.dashboard-panel .detail-header > time { text-align: right; color: #8b95a1; font-size: 11px; font-weight: 650; }
.round-button { width: 29px; height: 29px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #788390; background: var(--grey-100); cursor: pointer; }
.round-button:hover { color: var(--grey-900); background: var(--grey-200); }
.detail-actions { display: flex; justify-content: flex-end; }
.detail-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 20px 20px; }
.detail-title-row { display: flex; align-items: flex-start; gap: 12px; }
.detail-check { width: 21px; height: 21px; margin-top: 2px; }
.detail-title-input { width: 100%; min-height: 29px; margin: -4px -7px -4px 0; padding: 4px 7px; resize: none; overflow: hidden; border: 1px solid transparent; border-radius: 8px; outline: 0; color: var(--grey-900); background: transparent; font: inherit; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.035em; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.detail-title-input:hover { border-color: var(--grey-200); background: #fafbfc; }
.detail-title-input:focus { border-color: #f77153; background: white; box-shadow: 0 0 0 3px rgba(247, 113, 83, .09); }
.confirm-suggestion { width: 100%; min-height: 54px; margin-top: 18px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #ffd2c6; border-radius: 12px; color: #cf4d31; background: #fff3ef; text-align: left; cursor: pointer; }
.confirm-suggestion > svg { flex: 0 0 auto; }
.confirm-suggestion > span { display: flex; flex-direction: column; gap: 2px; }
.confirm-suggestion strong { font-size: 11px; }
.confirm-suggestion small { color: #9d675a; font-size: 9px; }
.confirm-suggestion:hover { border-color: #f77153; background: #ffebe4; }
.confirm-suggestion:disabled { opacity: .6; cursor: default; }
.detail-meta { margin: 22px 0 0 1px; display: flex; flex-direction: column; gap: 13px; }
.detail-meta > div { min-height: 25px; display: flex; align-items: center; gap: 9px; color: #5c6673; font-size: 13px; }
.detail-meta small { color: #9aa3ad; font-size: 11px; }
.detail-delete-footer { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--grey-100); }
.detail-delete-footer button { min-height: 35px; padding: 0 7px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; color: #c64a52; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.detail-delete-footer button:hover, .detail-delete-footer button:focus-visible { outline: 0; background: #fff1f2; }
.detail-delete-dialog { width: calc(100% - 40px); max-width: 320px; margin: auto; padding: 20px; border: 1px solid #e5e8eb; border-radius: 16px; color: var(--grey-900); background: white; box-shadow: 0 18px 48px rgba(25,31,40,.22); }
.detail-delete-dialog::backdrop { background: rgba(25,31,40,.28); }
.detail-delete-dialog > strong { display: block; font-size: 16px; font-weight: 700; }
.detail-delete-dialog > p { margin: 8px 0 20px; color: var(--grey-600); font-size: 12px; line-height: 1.55; }
.detail-delete-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.detail-delete-dialog-actions button { min-width: 68px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--grey-700); background: var(--grey-100); font-size: 12px; font-weight: 700; cursor: pointer; }
.detail-delete-dialog-actions button:hover, .detail-delete-dialog-actions button:focus-visible { outline: 0; background: var(--grey-200); }
.detail-delete-dialog-actions .detail-delete-commit { color: white; background: #d44f57; }
.detail-delete-dialog-actions .detail-delete-commit:hover, .detail-delete-dialog-actions .detail-delete-commit:focus-visible { background: #bd3e47; }
.editable-meta { min-height: 30px !important; }
.priority-picker { position: relative; width: max-content; min-width: 66px; }
.priority-trigger { width: 100%; height: 27px; padding: 0 7px 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 4px; border: 0; border-radius: 7px; outline: 0; font-size: 10px; font-weight: 800; cursor: pointer; }
.priority-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priority-trigger svg { flex: 0 0 auto; transition: transform .15s ease; }
.priority-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.priority-trigger:hover, .priority-trigger:focus-visible { box-shadow: 0 0 0 2px rgba(49, 130, 246, .16); }
.priority-trigger.auto, .priority-trigger.medium { color: #2478ce; background: #e8f3ff; }
.priority-trigger.high { color: #8b36a9; background: #f4e8fb; }
.priority-trigger.low { color: #168750; background: #e5f6ed; }
.priority-menu { position: absolute; top: calc(100% + 5px); right: 0; z-index: 35; min-width: 122px; padding: 4px; border: 1px solid #e6eaf0; border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(25, 31, 40, .16); }
.priority-picker.up .priority-menu { top: auto; bottom: calc(100% + 5px); }
.priority-menu button { width: 100%; min-height: 29px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-radius: 6px; color: #4e5968; background: transparent; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.priority-menu button:hover, .priority-menu button:focus-visible, .priority-menu button.selected { color: #2478ce; background: #edf5ff; outline: 0; }
.priority-label { color: #5c6673; font-size: 12px; font-weight: 700; }
.deadline-label { color: #5c6673; font-size: 12px; font-weight: 700; }
.deadline-picker { min-width: 0; flex: 1; }
.deadline-trigger { width: 100%; height: 34px; padding: 0 9px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid #dfe3e8; border-radius: 7px; color: #98a2ad; background: white; font-size: 11px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.deadline-trigger:hover, .deadline-trigger:focus-visible { border-color: #f77153; box-shadow: 0 0 0 3px rgba(247, 113, 83, .09); outline: 0; }
.deadline-trigger.has-value { color: #4e5968; }
.deadline-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-trigger svg { flex: 0 0 auto; color: #6b7684; }

.calendar-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; }
.calendar-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(25, 31, 40, .20); backdrop-filter: blur(2px); cursor: default; }
.calendar-dialog { position: relative; width: 100%; max-width: 338px; padding: 17px 18px 16px; border: 1px solid rgba(25, 31, 40, .12); border-radius: 16px; background: white; box-shadow: 0 22px 58px rgba(25, 31, 40, .27); }
.calendar-dialog-header { height: 27px; display: flex; align-items: flex-start; justify-content: space-between; }
.calendar-dialog-header strong { font-size: 13px; letter-spacing: -.02em; }
.calendar-dialog-header button { width: 26px; height: 26px; margin: -5px -5px 0 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; color: #8b95a1; background: transparent; cursor: pointer; }
.calendar-dialog-header button:hover { color: #191f28; background: #f2f4f6; }
.calendar-navigation { height: 45px; display: flex; align-items: center; justify-content: space-between; }
.calendar-selects { display: flex; align-items: center; gap: 7px; }
.calendar-select-wrap { position: relative; }
.calendar-select-trigger { height: 30px; padding: 0 7px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 7px; color: #191f28; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.calendar-select-trigger:hover, .calendar-select-trigger[aria-expanded="true"] { background: #f2f4f6; }
.calendar-select-trigger svg { color: #8b95a1; }
.calendar-select-menu { position: absolute; top: 34px; left: 0; z-index: 2; width: 88px; max-height: 198px; overflow-y: auto; padding: 4px; border: 1px solid #dfe3e8; border-radius: 9px; background: white; box-shadow: 0 8px 20px rgba(25,31,40,.15); scrollbar-width: thin; }
.calendar-select-menu.month-menu { width: 67px; }
.calendar-select-menu button { width: 100%; height: 29px; padding: 0 7px; border: 0; border-radius: 6px; color: #4e5968; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.calendar-select-menu button:hover { background: #f2f4f6; }
.calendar-select-menu button[aria-selected="true"] { color: #2272df; background: #e8f3ff; font-weight: 750; }
.calendar-arrows { display: flex; gap: 3px; }
.calendar-arrows button { width: 29px; height: 29px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; color: #4e5968; background: transparent; cursor: pointer; }
.calendar-arrows button:hover { background: #f2f4f6; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-weekdays { margin: 5px 0 7px; }
.calendar-weekdays span { color: #8b95a1; font-size: 9px; font-weight: 700; }
.calendar-days { row-gap: 3px; }
.calendar-days > span, .calendar-days > button { width: 32px; height: 32px; place-self: center; }
.calendar-days > button { padding: 0; border: 0; border-radius: 50%; color: #4e5968; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }
.calendar-days > button:hover { background: #f2f4f6; }
.calendar-days > button.today { box-shadow: inset 0 0 0 1px #f77153; color: #d95135; }
.calendar-days > button.selected { color: white; background: #f77153; box-shadow: none; }
.calendar-quick-row { margin-top: 13px; padding-top: 12px; display: flex; align-items: center; gap: 6px; border-top: 1px solid #f2f4f6; }
.calendar-quick-row > button { height: 29px; padding: 0 10px; border: 1px solid #e5e8eb; border-radius: 7px; color: #4e5968; background: white; font-size: 9px; font-weight: 650; cursor: pointer; }
.calendar-quick-row > button:hover { border-color: #f77153; color: #d95135; background: #fff7f5; }
.calendar-time-field { min-width: 0; height: 31px; margin-left: auto; padding: 0 7px; display: flex; align-items: center; gap: 4px; border: 1px solid #dfe3e8; border-radius: 7px; color: #8b95a1; }
.calendar-time-field:focus-within { border-color: #f77153; box-shadow: 0 0 0 3px rgba(247, 113, 83, .09); }
.calendar-time-field input { width: 43px; padding: 0; border: 0; outline: 0; color: #4e5968; background: transparent; font-size: 10px; font-variant-numeric: tabular-nums; }
.calendar-actions { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-actions button { height: 34px; padding: 0 13px; border-radius: 8px; font-size: 9px; font-weight: 700; cursor: pointer; }
.calendar-actions button:disabled { opacity: .4; cursor: default; }
.calendar-clear { border: 0; color: #8b95a1; background: transparent; }
.calendar-save { min-width: 84px; border: 0; color: white; background: #f77153; }
.calendar-save:hover:not(:disabled) { background: #df6044; }
.calendar-export { width: 100%; min-height: 36px; margin-top: 14px; padding: 0 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #cfe2fd; border-radius: 10px; color: #2272df; background: #f3f8ff; font-size: 9px; font-weight: 700; cursor: pointer; }
.calendar-export:hover:not(:disabled) { border-color: #8ab9fa; background: #e8f3ff; }
.calendar-export:disabled { color: #98a2ad; border-color: #e5e8eb; background: #f7f8fa; cursor: default; }
.calendar-export.exported { color: #168750; border-color: #c9ead8; background: #edf9f2; }
.calendar-export.stale { color: #b66c08; border-color: #f2d39e; background: #fff8eb; }
.meta-icon { width: 22px; display: grid; place-items: center; color: #98a2ad; }
.source-context { margin-top: 20px; padding: 13px 14px; border-radius: 12px; color: var(--grey-600); background: var(--grey-50); border: 1px solid var(--grey-100); }
.source-links { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.source-links button { max-width: 100%; min-height: 29px; padding: 0 9px; display: flex; align-items: center; gap: 5px; border: 1px solid #d8e7fb; border-radius: 8px; color: #2272df; background: #f5f9ff; font-size: 9px; cursor: pointer; }
.source-links button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-context strong { font-size: 9px; color: #8b95a1; }
.source-context p { margin: 6px 0 0; font-size: 11px; line-height: 1.55; letter-spacing: -.015em; }
.memo-field { display: flex; min-height: 180px; margin-top: 18px; flex-direction: column; border-top: 1px solid var(--grey-200); }
.memo-field > span { height: 38px; display: flex; align-items: center; font-size: 11px; font-weight: 700; }
.memo-field i { margin-left: auto; color: #a3aab3; font-size: 8px; font-style: normal; font-weight: 500; }
.memo-field textarea { width: 100%; min-height: 150px; flex: 1; resize: none; border: 0; outline: 0; padding: 0; color: #333d49; background: transparent; font-size: 12px; line-height: 1.75; }
.memo-field textarea::placeholder { color: #b0b8c1; }

.calendar-panel-scroll, .dashboard-scroll, .assignments-scroll, .materials-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 15px 16px 18px; scrollbar-width: thin; scrollbar-color: #d7dce2 transparent; }
.calendar-panel-scroll::-webkit-scrollbar, .dashboard-scroll::-webkit-scrollbar, .assignments-scroll::-webkit-scrollbar, .materials-scroll::-webkit-scrollbar { width: 5px; }
.calendar-panel-scroll::-webkit-scrollbar-thumb, .dashboard-scroll::-webkit-scrollbar-thumb, .assignments-scroll::-webkit-scrollbar-thumb, .materials-scroll::-webkit-scrollbar-thumb { border-radius: 5px; background: #d7dce2; }
.sub-panel-heading { min-height: 49px; padding: 0 2px 12px; display: flex; align-items: center; justify-content: space-between; }
.sub-panel-heading > span { display: flex; flex-direction: column; gap: 4px; }
.sub-panel-heading strong { font-size: 14px; }
.sub-panel-heading small { color: #8b95a1; font-size: 11px; }
.sub-panel-heading > svg { color: #7baef3; }
.agenda-list { display: flex; flex-direction: column; gap: 8px; }
.agenda-item { min-height: 72px; padding: 10px; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #e5e8eb; border-radius: 13px; background: white; }
.agenda-item.selected { border-color: #85b9fc; box-shadow: 0 0 0 3px rgba(49, 130, 246, .09); }
.agenda-item.ongoing { border-color: #a9ccfb; background: #f6faff; }
.agenda-item.ended { border-color: #e5e8eb; color: #8b95a1; background: #f7f8fa; box-shadow: none; }
.agenda-item.ended .agenda-time strong,
.agenda-item.ended .agenda-content strong { color: #8b95a1; }
.agenda-item.ended .agenda-time small,
.agenda-item.ended .agenda-content small { color: #b0b8c1; }
.agenda-item.ended .agenda-actions { filter: grayscale(1); opacity: .58; }
.agenda-time, .agenda-content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.agenda-time { padding-right: 8px; border-right: 1px solid #edf0f2; }
.agenda-time strong { color: #191f28; font-size: 15px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.agenda-time small { color: #2272df; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.agenda-content small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b95a1; font-size: 9px; }
.agenda-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.agenda-actions button { min-width: 32px; height: 25px; padding: 0 7px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #2272df; background: #e8f3ff; font-size: 9px; font-weight: 750; cursor: pointer; }
.panel-empty { height: 310px; }

.assignments-summary { min-height: 67px; padding: 12px 10px 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 64px 76px; align-items: center; border: 1px solid #dceafb; border-radius: 15px; background: linear-gradient(145deg, #f8fbff, #edf5ff); }
.assignments-summary > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.assignments-summary > span:first-child { flex-direction: row; align-items: center; gap: 7px; color: #397fdc; }
.assignments-summary > span:not(:first-child) { align-items: center; padding: 0 8px; border-left: 1px solid #d9e8fb; text-align: center; }
.assignments-summary strong { color: #2272df; font-size: 16px; letter-spacing: -.03em; }
.assignments-summary > span:first-child strong { color: #333d49; font-size: 13px; }
.assignments-summary small { color: #8b95a1; font-size: 9px; font-weight: 650; }
.assignments-summary .danger strong { color: #d8485f; }
.assignment-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.assignment-row { width: 100%; min-height: 76px; padding: 9px 9px 9px 8px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 19px; align-items: center; gap: 9px; border: 1px solid #e5e8eb; border-radius: 13px; color: #333d49; background: white; text-align: left; cursor: pointer; }
.assignment-row:hover:not(:disabled) { border-color: #a9ccfb; background: #f7fbff; }
.assignment-row:disabled { opacity: .6; cursor: default; }
.assignment-row > svg { color: #8b95a1; }
.assignment-row:hover > svg { color: #2272df; }
.assignment-row.overdue { border-color: #eceef1; background: #fafbfc; }
.assignment-row.submitted { border-color: #eceef1; background: #fafbfc; }
.assignment-countdown { min-height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; color: #2272df; background: #e8f3ff; font-size: 9px; font-weight: 800; white-space: nowrap; }
.assignment-countdown.today { color: #b66c08; background: #fff0d7; }
.assignment-countdown.overdue { color: #8b95a1; background: #eef0f2; }
.assignment-countdown.undated { color: #6b7684; background: #f2f4f6; }
.assignment-countdown.submitted { color: #667586; background: #eef0f2; }
.assignment-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.assignment-copy > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6196df; font-size: 9px; font-weight: 700; }
.assignment-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: -.015em; }
.assignment-copy > span { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: #8b95a1; font-size: 9px; white-space: nowrap; }
.assignment-copy time { color: #596574; font-weight: 700; font-variant-numeric: tabular-nums; }
.assignment-copy i { overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.assignment-row.overdue .assignment-copy > strong, .assignment-row.overdue .assignment-copy time { color: #8b95a1; }
.assignment-row.submitted .assignment-copy > strong, .assignment-row.submitted .assignment-copy time { color: #8b95a1; }

.materials-summary { min-height: 67px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 66px 66px; align-items: center; border: 1px solid #dceafb; border-radius: 15px; background: linear-gradient(145deg, #f8fbff, #edf5ff); }
.materials-summary > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.materials-summary > span:not(:first-child) { align-items: center; padding-left: 0; border-left: 1px solid #d9e8fb; text-align: center; }
.materials-summary strong { color: #2272df; font-size: 16px; letter-spacing: -.03em; }
.materials-summary > span:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333d49; font-size: 13px; }
.materials-summary small { color: #8b95a1; font-size: 10px; font-weight: 650; }
.course-bar { margin: 13px -16px 0; padding: 0 16px 10px; display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid #eef0f2; scrollbar-width: none; cursor: grab; user-select: none; touch-action: pan-y; }
.course-bar.dragging { cursor: grabbing; }
.course-bar::-webkit-scrollbar { display: none; }
.course-bar button { max-width: 145px; height: 33px; flex: 0 0 auto; padding: 0 9px; display: flex; align-items: center; gap: 6px; border: 1px solid #e5e8eb; border-radius: 10px; color: #6b7684; background: white; cursor: inherit; }
.course-bar button:hover { border-color: #b9d5fa; color: #2272df; }
.course-bar button.active { border-color: #82b4f8; color: #1769d2; background: #eef6ff; box-shadow: 0 0 0 2px rgba(49, 130, 246, .07); }
.course-bar button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.course-bar button b { min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 6px; color: #7d8793; background: #f2f4f6; font-size: 9px; }
.course-bar button.active b { color: #1769d2; background: #dcecff; }
.course-files { padding-top: 13px; }
.course-files > header { min-height: 39px; display: flex; align-items: flex-start; gap: 8px; }
.course-files > header > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.course-files > header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; letter-spacing: -.02em; }
.course-files > header small { color: #8b95a1; font-size: 10px; }
.material-view-tabs { margin: 3px 0 12px; padding: 3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; border-radius: 11px; background: #f1f4f8; }
.material-view-tabs button { min-width: 0; min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 8px; color: #697585; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.material-view-tabs button.active { color: #1769d2; background: white; box-shadow: 0 1px 5px rgba(31, 52, 76, .10); }
.material-view-tabs button:focus-visible { outline: 2px solid #3182f6; outline-offset: 2px; }
.material-view-tabs button span { color: inherit; font-size: 10px; font-variant-numeric: tabular-nums; }
.material-view-panel { min-height: 180px; }
.course-route-button { height: 26px; padding: 0 9px; display: flex; align-items: center; border: 0; border-radius: 7px; color: #168750; background: #e9f8f0; font-size: 9px; font-weight: 750; cursor: pointer; }
.course-route-button:hover { background: #d9f2e5; }
.course-route-button.needs-folder { color: #b66c08; background: #fff0d7; }
.course-route-button.needs-folder:hover { background: #ffe6bd; }
.course-folder { min-height: 32px; margin: 0 0 7px; padding: 4px 5px 4px 8px; display: flex; align-items: center; gap: 6px; overflow: hidden; border-radius: 8px; color: #7d8793; background: #f7f8fa; font-size: 10px; white-space: nowrap; }
.course-folder svg { flex: 0 0 auto; color: #669de8; }
.course-folder > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.course-folder.needs-folder { color: #a86813; background: #fff8eb; }
.course-alias { min-height: 35px; margin: 0 0 9px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border: 1px solid #e9edf2; border-radius: 9px; background: #fbfcfd; }
.course-alias span { flex: 0 0 auto; color: #6b7684; font-size: 9px; font-weight: 700; }
.course-alias input { min-width: 0; flex: 1; border: 0; outline: 0; color: #333d49; background: transparent; font-size: 11px; font-weight: 750; text-align: right; }
.course-alias:focus-within { border-color: #9ec5fb; background: #f7fbff; box-shadow: 0 0 0 2px rgba(49, 130, 246, .07); }
.material-list { display: flex; flex-direction: column; gap: 5px; }
.material-row { width: 100%; min-height: 53px; padding: 7px 8px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: white; text-align: left; cursor: pointer; }
.material-row:hover:not(:disabled) { border-color: #c9dffa; background: #f7fbff; }
.material-row:disabled { opacity: 1; cursor: default; }
.file-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #3b82e6; background: #eaf3ff; }
.material-row.downloaded .file-icon { color: #168750; background: #e8f7ef; }
.material-row.redownload-armed { border-color: #f0b35e; background: #fffaf2; }
.material-row.needs-folder { border-color: #f3e2c7; background: #fffdf8; }
.online-materials { margin-top: 2px; }
.online-materials h3 { display: flex; align-items: baseline; gap: 5px; margin: 0 0 7px; color: #333d49; font-size: 12px; }
.online-materials h3 small { color: #8b95a1; font-size: 10px; }
.other-materials { margin-top: 13px; border-top: 1px solid #e8edf3; }
.other-materials-toggle { width: 100%; min-height: 58px; padding: 10px 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; color: #445160; background: transparent; text-align: left; cursor: pointer; }
.other-materials-toggle > span { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 750; }
.other-materials-toggle small { color: #8b95a1; font-size: 9px; font-weight: 500; }
.other-materials-toggle svg { flex: 0 0 auto; color: #8895a3; transition: transform .16s ease; }
.other-materials-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.other-materials-toggle:focus-visible { outline: 2px solid #3182f6; outline-offset: 2px; border-radius: 8px; }
.other-materials-list { padding-bottom: 4px; }
.online-material-row { width: 100%; min-height: 53px; margin-top: 5px; padding: 7px 8px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: white; text-align: left; cursor: pointer; }
.online-material-row:hover { border-color: #c9dffa; background: #f7fbff; }
.online-material-row:focus-visible { outline: 2px solid #3182f6; outline-offset: 2px; }
.file-icon.online { color: #5b62cb; background: #f0efff; }
.file-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333d49; font-size: 12px; }
.file-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #98a2ad; font-size: 9px; }
.file-action { min-width: 49px; height: 26px; padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 7px; color: #2272df; background: #e8f3ff; font-size: 9px; font-weight: 750; }
.material-row.downloaded .file-action { color: #168750; background: #e8f7ef; }
.material-row.redownload-armed .file-action { color: #b66c08; background: #fff0d7; }
.material-error { padding: 12px; border-radius: 10px; color: #c43e55; background: #fff1f3; font-size: 8px; line-height: 1.45; }
.material-warning { margin-bottom: 9px; padding: 10px 12px; border-radius: 10px; color: #8a5a0a; background: #fff8e6; font-size: 8px; line-height: 1.45; }
.material-error button, .material-warning button { display: block; min-height: 25px; margin-top: 5px; padding: 3px 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.material-error button:focus-visible, .material-warning button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.material-empty { min-height: 220px; }

.progress-card { padding: 16px; border: 1px solid #dceafb; border-radius: 16px; background: linear-gradient(145deg, #f8fbff, #edf5ff); }
.progress-card > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; }
.progress-card span { display: flex; flex-direction: column; gap: 3px; }
.progress-card small { color: #6b7684; font-size: 11px; font-weight: 650; }
.progress-card strong { color: #2272df; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.progress-card em { color: #8b95a1; font-size: 10px; font-style: normal; }
.progress-track { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: #d9e9ff; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4593ff, #1f6ee2); transition: width .3s ease; }
.metric-grid { margin: 10px 0 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.metric-grid > div { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #eceff2; border-radius: 12px; background: #fbfcfd; }
.metric-grid strong { font-size: 17px; }
.metric-grid small { color: #8b95a1; font-size: 10px; }
.metric-grid .danger strong { color: #e34e65; }
.dashboard-section { margin-top: 17px; }
.dashboard-section > header { height: 27px; display: flex; align-items: flex-start; justify-content: space-between; }
.dashboard-section > header strong { font-size: 12px; }
.dashboard-section > header small { color: #f06c4e; font-size: 9px; font-weight: 700; }
.dashboard-section > header button { padding: 0; border: 0; color: #2272df; background: transparent; font-size: 10px; font-weight: 650; cursor: pointer; }
.priority-progress-row { min-height: 34px; display: grid; grid-template-columns: 1fr 24px; gap: 5px; align-items: center; border-bottom: 1px solid #f2f4f6; }
.priority-progress-row .priority-chip { min-width: 26px; height: 17px; padding: 0 4px; display: grid; place-items: center; justify-self: start; line-height: 1; }
.priority-progress-row > strong { text-align: right; font-size: 12px; }
.next-event-card { width: 100%; min-height: 54px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #dceafb; border-radius: 12px; color: #2272df; background: #f7fbff; text-align: left; cursor: pointer; }
.next-event-card > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.next-event-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333d49; font-size: 12px; }
.next-event-card small { color: #8b95a1; font-size: 10px; }
.recent-done { min-height: 33px; display: grid; grid-template-columns: 19px 1fr auto; align-items: center; color: #6b7684; border-bottom: 1px solid #f2f4f6; }
.recent-done > svg { color: #20b26b; }
.recent-done span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.recent-done time { color: #a3aab3; font-size: 9px; }
.dashboard-empty { margin: 2px 0 0; padding: 12px; border-radius: 10px; color: #8b95a1; background: #f7f8fa; font-size: 9px; }

.panel-header > span { width: 1px; }
.settings-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 15px 18px 4px; scrollbar-width: none; }
.settings-panel-overview { background: #fff; }
.settings-panel-overview .settings-scroll { padding: 18px 16px 16px; }
.settings-overview h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: -.02em; }
.settings-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.settings-card { position: relative; min-width: 0; height: 104px; padding: 9px 10px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--grey-200); border-radius: 12px; color: var(--grey-900); background: var(--grey-50); text-align: center; cursor: pointer; }
.settings-card:hover { border-color: var(--grey-300); background: #fff; }
.settings-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.settings-card:disabled { cursor: default; opacity: .64; }
.settings-card:disabled:hover { border-color: var(--grey-200); background: var(--grey-50); }
.settings-card-logo { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; color: #306ebd; }
.settings-card-logo img { max-width: 33px; max-height: 33px; object-fit: contain; }
.settings-card-logo.canvas { width: 36px; justify-content: flex-start; overflow: hidden; }
.settings-card-logo.canvas img { width: auto; height: 36px; max-width: none; max-height: none; flex: 0 0 auto; }
.settings-card-logo.material { color: var(--grey-700); }
.settings-card strong { font-size: 12px; font-weight: 700; }
.settings-card-status { position: absolute; right: 8px; bottom: 9px; left: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--grey-600); font-size: 11px; font-weight: 600; }
.settings-card-status.action { color: var(--grey-600); }
.settings-card-status.connected { color: #2c7a58; }
.settings-soon-row { min-height: 43px; padding: 9px 2px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--grey-200); }
.settings-card-grid + .settings-soon-row { margin-top: 10px; }
.settings-soon-row img, .settings-chatgpt-mark { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.settings-chatgpt-mark { display: grid; place-items: center; color: var(--grey-600); }
.settings-soon-row > span:nth-child(2), .settings-more-row > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.settings-soon-row strong, .settings-more-row strong { font-size: 12px; }
.settings-soon-row small, .settings-more-row small { color: var(--grey-600); font-size: 11px; }
.settings-soon-row em { color: var(--grey-600); font-size: 11px; font-style: normal; white-space: nowrap; }
.settings-more-row { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--grey-200); color: var(--grey-900); background: transparent; text-align: left; cursor: pointer; }
.settings-more-row:hover { color: var(--blue); }
.settings-more-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.settings-more-row svg { color: var(--grey-500); }
.settings-section { padding: 0 1px 17px; margin-bottom: 17px; border-bottom: 1px solid var(--grey-100); }
.settings-section:last-child { margin-bottom: 0; border-bottom: 0; }
.learningx-settings-copy { margin: 0 0 17px; color: #4e5968; font-size: 11px; line-height: 1.55; }
.learningx-settings-copy p { margin: 0 0 5px; }
.learningx-settings-actions { display: flex; align-items: stretch; gap: 8px; }
.learningx-settings-actions .primary-button { flex: 1; min-width: 0; width: auto; }
.learningx-settings-actions button:disabled { opacity: .45; cursor: default; }
.learningx-settings-refresh { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #d9dee3; border-radius: 10px; color: #4e5968; background: #fff; cursor: pointer; }
.learningx-settings-refresh:not(:disabled):hover, .learningx-settings-refresh:focus-visible { color: var(--blue); border-color: #a8caf8; }
.learningx-settings-error { margin: 9px 0 0; color: #b33f55; font-size: 11px; line-height: 1.5; }
.learningx-settings-list { margin-top: 22px; border-top: 1px solid #e5e8eb; }
.learningx-settings-list header { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.learningx-settings-list header strong { font-size: 12px; }
.learningx-settings-list header span { color: #6b7684; font-size: 11px; }
.learningx-settings-item { padding: 11px 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #f0f2f5; }
.learningx-settings-item strong { overflow-wrap: anywhere; font-size: 11px; }
.learningx-settings-item small { color: #6b7684; font-size: 10px; line-height: 1.5; }
.learningx-settings-empty { margin: 0; padding: 13px 0; border-top: 1px solid #f0f2f5; color: #6b7684; font-size: 11px; }
.shortcut-current { min-height: 42px; margin: 9px 0; display: flex; align-items: center; gap: 10px; color: var(--grey-700); }
.shortcut-current > span { display: flex; flex-direction: column; gap: 3px; color: var(--grey-900); }
.shortcut-current strong { font-size: 11px; }
.shortcut-current small { color: var(--grey-600); font-size: 11px; }
.shortcut-message { margin: 7px 0; font-size: 10px; line-height: 1.5; }
.shortcut-message.success { color: #176844; }
.shortcut-message.error { color: #bf3636; }
.setup-intro { margin-bottom: 15px; padding: 13px; border: 1px solid #dceafb; border-radius: 12px; background: #f7fbff; }
.setup-intro > strong { display: block; font-size: 13px; }
.setup-intro p { margin: 6px 0 7px; color: #6b7684; font-size: 10px; line-height: 1.5; }
.setup-intro .text-button { min-height: 26px; padding: 0; }
.school-search-input { position: relative; }
.school-search-input > svg { position: absolute; left: 11px; top: 12px; color: #6b7684; pointer-events: none; }
.field .school-search-input input { padding-left: 32px; }
.school-search-results { margin: -3px 0 8px; border: 1px solid #dfe3e8; border-radius: 9px; overflow: hidden; }
.school-result-count { margin: 0; padding: 8px 10px; color: #6b7684; font-size: 10px; line-height: 1.5; }
.school-search-results ul { max-height: 178px; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.school-search-results li button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 11px; border: 0; background: #fff; color: #333d49; text-align: left; cursor: pointer; }
.school-search-results li button:hover, .school-search-results li button:focus-visible { background: #edf5ff; outline: 2px solid #3182f6; outline-offset: -2px; }
.school-search-results strong, .school-search-results small { display: block; overflow-wrap: anywhere; }
.school-search-results strong { font-size: 11px; font-weight: 600; }
.school-search-results small { margin-top: 3px; color: #6b7684; font-size: 10px; }
.canvas-school-picker > .helper { margin-top: -3px; }
.excluded-recommendations ul { list-style: none; margin: 14px 0 0; padding: 0; }
.excluded-recommendations li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.excluded-recommendations li > span { flex: 1; min-width: 0; }
.excluded-recommendations li strong { display: block; color: #333d49; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.excluded-recommendations li small { display: block; color: #6b7684; font-size: 10px; margin-top: 5px; }
.excluded-recommendations li button { flex-shrink: 0; }
.excluded-empty { margin: 36px 0; color: #6b7684; font-size: 12px; text-align: center; }
.exclude-recommendation-action { margin-bottom: 16px; }
.exclude-recommendation-action button { padding: 8px 0; border: 0; background: transparent; color: #6b7684; font-size: 11px; cursor: pointer; }
.exclude-recommendation-action button:hover { color: #333d49; }
.exclude-recommendation-action button:focus-visible { outline: 2px solid #3182f6; outline-offset: 3px; }
.exclude-recommendation-action p { color: #6b7684; font-size: 10px; line-height: 1.5; margin: 7px 0 0; }
.token-steps .helper { margin: 7px 0 0; }
.token-steps { margin: 0 0 11px; padding: 11px 12px; border: 1px solid #e5e8eb; border-radius: 10px; background: #fbfcfd; }
.token-steps > strong { font-size: 11px; }
.token-steps ol { margin: 7px 0 0; padding-left: 18px; color: #6b7684; font-size: 10px; line-height: 1.7; }
.token-steps li b { color: #333d49; }
.token-steps .text-button { min-height: 27px; margin-top: 5px; padding: 0; }
.canvas-connect-button { width: auto; min-width: 132px; height: 34px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; }
.canvas-connect-button:disabled { opacity: .6; cursor: default; }
.connection-result { margin-top: 11px; padding: 11px 12px; border-radius: 10px; font-size: 10px; line-height: 1.5; }
.connection-result strong { display: block; font-size: 11px; }
.connection-result p { margin: 5px 0 0; }
.connection-result .text-button { min-height: 28px; margin-top: 5px; padding: 0; }
.connection-result.success { color: #176844; border: 1px solid #c5ebd5; background: #effaf3; }
.connection-result.error { color: #b33f55; border: 1px solid #f6d5dc; background: #fff4f5; }
.sync-policy-note { display: block; margin: -5px 0 9px; color: #8b95a1; font-size: 10px; line-height: 1.45; }
.settings-section h3 { margin: 0 0 12px; font-size: 13px; }
.priority-name-settings .helper { margin-bottom: 12px; }
.priority-name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.priority-name-field { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.priority-name-field small { color: var(--grey-600); font-size: 10px; }
.priority-name-field input { width: 100%; height: 29px; padding: 0 7px; border: 1px solid #dfe3e8; border-radius: 7px; outline: 0; color: var(--grey-900); background: white; font-size: 11px; }
.priority-name-field input:focus { border-color: #8ab9fa; box-shadow: 0 0 0 3px rgba(49, 130, 246, .08); }
.report-section textarea { width: 100%; min-height: 84px; padding: 9px 10px; border: 1px solid var(--grey-200); border-radius: 9px; outline: 0; color: var(--grey-900); background: #fff; font-size: 11px; line-height: 1.5; resize: vertical; }
.report-section textarea:focus { border-color: #8ab9fa; box-shadow: 0 0 0 3px rgba(49, 130, 246, .08); }
.report-section .report-privacy { margin-top: 11px; }
.report-send-button { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; }
.report-send-button:disabled { background: var(--grey-300); cursor: not-allowed; }
.diagnostics-heading { display: flex; align-items: center; gap: 10px; }
.diagnostics-heading > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.diagnostics-heading strong { font-size: 13px; }
.diagnostics-heading small { color: var(--grey-600); font-size: 11px; line-height: 1.4; }
.diagnostics-heading .outline-button { flex: 0 0 auto; }
.diagnostics-results { margin-top: 12px; padding: 5px 10px; border: 1px solid var(--grey-100); border-radius: 11px; background: var(--grey-50); }
.diagnostic-row { min-height: 39px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--grey-100); }
.diagnostic-row:last-of-type { border-bottom: 0; }
.diagnostic-indicator { width: 7px; height: 7px; border-radius: 50%; background: #c5cbd2; }
.diagnostic-indicator.passed { background: #20b26b; box-shadow: 0 0 0 3px #e0f5e9; }
.diagnostic-indicator.failed { background: #e34e65; box-shadow: 0 0 0 3px #fde8ec; }
.diagnostic-indicator.skipped { background: #f5a623; box-shadow: 0 0 0 3px #fff0d5; }
.diagnostic-row > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.diagnostic-row strong { font-size: 11px; }
.diagnostic-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey-600); font-size: 10px; }
.diagnostic-row em { color: var(--grey-600); font-size: 10px; font-style: normal; font-weight: 700; }
.diagnostics-results > p { margin: 7px 0 4px; color: var(--grey-600); font-size: 10px; text-align: right; }
.trace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.trace-heading h3 { margin-bottom: 4px; }
.trace-heading p { margin: 0 0 10px; color: var(--grey-600); font-size: 11px; }
.trace-heading .outline-button { flex: 0 0 auto; }
.trace-empty { padding: 18px 10px; color: var(--grey-600); font-size: 12px; text-align: center; }
.trace-time, .trace-note { margin: 10px 0; color: var(--grey-600); font-size: 11px; line-height: 1.5; }
.trace-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 13px; }
.trace-counts div { min-width: 0; padding: 9px 3px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--grey-200); border-radius: 9px; background: var(--grey-50); }
.trace-counts strong { font-size: 17px; line-height: 1; }
.trace-counts span { color: var(--grey-600); font-size: 9px; text-align: center; }
.trace-requests { margin: 14px 0; border: 1px solid var(--grey-200); border-radius: 9px; font-size: 11px; }
.trace-requests summary { padding: 10px 12px; cursor: pointer; font-weight: 600; }
.trace-requests > div { max-height: 200px; overflow: auto; border-top: 1px solid var(--grey-200); }
.trace-requests > div > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--grey-100); }
.trace-requests code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.trace-requests span { flex: 0 0 auto; color: var(--grey-600); }
.trace-subheading, .trace-list-heading h3 { margin: 18px 0 8px; }
.trace-results { margin: 0; padding: 0; list-style: none; }
.trace-results li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--grey-100); }
.trace-results li > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--grey-100); font-size: 11px; font-weight: 700; }
.trace-results strong { min-width: 0; flex: 1; font-size: 11px; line-height: 1.4; }
.trace-results small { flex: 0 0 auto; color: var(--grey-600); font-size: 10px; }
.trace-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trace-list-heading h3 { margin: 18px 0 8px; }
.trace-items { display: flex; flex-direction: column; gap: 8px; }
.trace-item { padding: 10px; border: 1px solid var(--grey-200); border-radius: 9px; background: #fff; }
.trace-item > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.trace-item strong { min-width: 0; font-size: 11px; line-height: 1.4; }
.trace-item p { margin: 5px 0 0; font-size: 11px; }
.trace-item small { display: block; margin-top: 6px; color: var(--grey-600); font-size: 10px; line-height: 1.4; }
.trace-decision { flex: 0 0 auto; color: var(--grey-600); font-size: 10px; white-space: nowrap; }
.trace-decision.recommended { color: #2c7a58; font-weight: 700; }
.trace-decision.merged { color: #306ebd; }
.integration-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.integration-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #536071; background: var(--grey-100); }
.integration-row > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.integration-row strong { font-size: 13px; }
.integration-row small { color: var(--grey-600); font-size: 11px; }
.status-dot { display: flex; align-items: center; gap: 4px; color: #9aa3ad; font-size: 10px; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d1d6db; }
.status-dot.connected { color: #168750; }
.status-dot.connected::before { background: #20b26b; }
.status-dot.configured { color: #c27b17; }
.status-dot.configured::before { background: #f5a623; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.field > span { color: var(--grey-600); font-size: 11px; font-weight: 700; }
.field input, .field select { width: 100%; height: 37px; padding: 0 10px; border: 1px solid #dfe3e8; border-radius: 9px; outline: 0; color: #333d49; background: white; font-size: 12px; }
.field input:focus, .field select:focus { border-color: #8ab9fa; box-shadow: 0 0 0 3px rgba(49, 130, 246, .08); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inline-fields .field { min-width: 0; }
.guidance-field textarea { width: 100%; min-height: 76px; padding: 9px 10px; resize: vertical; border: 1px solid #dfe3e8; border-radius: 9px; outline: 0; color: #333d49; background: white; font-size: 12px; line-height: 1.5; }
.guidance-field textarea:focus { border-color: #8ab9fa; box-shadow: 0 0 0 3px rgba(49, 130, 246, .08); }
.switch-row { display: flex; align-items: center; justify-content: space-between; }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch-row strong { font-size: 12px; }
.switch-row small { color: var(--grey-600); font-size: 11px; }
.switch-row input { position: relative; width: 34px; height: 19px; appearance: none; border-radius: 10px; background: #d1d6db; transition: .18s; }
.switch-row input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0, 0, 0, .17); transition: .18s; }
.switch-row input:checked { background: var(--blue); }
.switch-row input:checked::after { left: 17px; }
.notification-switch { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--grey-100); }
.notification-test { margin-top: 11px; }
.comparison-trigger { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--grey-100); }
.planner-comparison { margin-top: 10px; padding: 10px; display: grid; gap: 8px; border: 1px solid #dfe8f5; border-radius: 10px; background: #f8fbff; }
.planner-comparison > small { color: #6b7684; font-size: 9px; }
.planner-comparison section { padding: 8px; border-radius: 8px; background: white; }
.planner-comparison section > strong { display: block; margin-bottom: 5px; color: #333d49; font-size: 10px; }
.planner-comparison p { margin: 0; padding: 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f2f5; font-size: 9px; }
.planner-comparison p:first-of-type { border-top: 0; }
.planner-comparison p b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333d49; }
.planner-comparison p span { flex: 0 0 auto; color: #6b7684; }
.helper { margin: 0 0 9px; color: var(--grey-600); font-size: 11px; line-height: 1.5; }
.scope-warning { margin-top: 8px; color: #c27b17; }
.outline-button, .text-button { min-height: 33px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; font-size: 11px; font-weight: 650; cursor: pointer; }
.outline-button { border: 1px solid #d9dee3; background: white; }
.outline-button:hover { color: var(--blue); border-color: #a8caf8; }
.text-button { border: 0; color: var(--blue); background: transparent; }
.button-row { display: flex; gap: 6px; }
.settings-footer { flex: 0 0 auto; padding: 11px 18px 15px; border-top: 1px solid var(--grey-100); background: rgba(255, 255, 255, .94); }
.setup-footer-error { margin: 0 0 7px; color: #b33f55; font-size: 10px; line-height: 1.4; }
.primary-button { width: 100%; height: 40px; border: 0; border-radius: 10px; color: white; background: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: #1b64da; }

.notion-guide { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.notion-guide-header { height: 52px; flex: 0 0 auto; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--grey-100); }
.notion-guide-header strong { font-size: 13px; }
.notion-guide-header button { width: 30px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--grey-600); cursor: pointer; }
.notion-guide-header button:hover { background: var(--grey-100); }
.notion-real-preview-banner { padding: 9px 20px; color: #1f5ca8; background: #edf5ff; border-bottom: 1px solid #d7e8ff; font-size: 12px; font-weight: 700; }
.notion-guide-body { flex: 1; min-height: 0; overflow-y: auto; }
.notion-guide-content { padding: 22px 19px 20px; }
.notion-step { font-size: 10px; color: var(--blue); font-weight: 750; }
.notion-guide h2 { margin: 8px 0 7px; font-size: 21px; line-height: 1.3; letter-spacing: -.045em; }
.notion-guide p { margin: 0 0 20px; color: var(--grey-600); font-size: 11px; line-height: 1.55; }
.notion-guide p b { color: var(--grey-900); }
.notion-guide-footer { min-height: 64px; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--grey-100); background: #fff; }
.notion-guide-footer .primary-button { flex: 1; }
.notion-guide-footer .primary-button:disabled { opacity: .5; cursor: default; }
.notion-field { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700; }
.notion-field input, .notion-condition select, .notion-condition input, .notion-rule-section > select, .notion-search input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--grey-200); border-radius: 8px; color: var(--grey-900); background: #fff; font-size: 11px; }
.notion-link { display: flex; align-items: center; gap: 5px; margin-top: 12px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.notion-disconnect { margin-top: 22px; color: var(--grey-500); }
.notion-new-rule { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #d9e7fc; border-radius: 12px; color: #2469bd; background: #f3f8ff; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.notion-new-rule svg:last-child { margin-left: auto; }
.notion-profile-row { min-height: 55px; display: flex; align-items: center; border-bottom: 1px solid var(--grey-100); }
.notion-profile-row:first-of-type { margin-top: 14px; }
.notion-profile-row button { border: 0; background: transparent; cursor: pointer; }
.notion-profile-row button:first-child { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 9px 2px; }
.notion-profile-row strong { font-size: 12px; }
.notion-profile-row small { color: var(--grey-500); font-size: 10px; }
.notion-profile-row button:last-child { color: var(--grey-500); padding: 10px; }
.notion-search { height: 38px; display: flex; align-items: center; gap: 4px; padding-left: 10px; border: 1px solid var(--grey-200); border-radius: 9px; color: var(--grey-500); }
.notion-search input { flex: 1; border: 0; padding-left: 4px; outline: none; }
.notion-search button { width: 35px; height: 35px; border: 0; background: transparent; color: var(--grey-600); cursor: pointer; }
.notion-source-list { margin-top: 12px; }
.notion-source-list > button { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 9px; padding: 7px 2px; border: 0; border-bottom: 1px solid var(--grey-100); background: transparent; text-align: left; cursor: pointer; }
.notion-source-list > button > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.notion-source-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.notion-source-list small { font-size: 10px; color: var(--grey-500); }
.notion-source-list > button > svg { color: var(--grey-500); }
.notion-source-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #4885db; background: #eef5ff; }
.notion-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.notion-mode-grid button { min-height: 143px; display: flex; flex-direction: column; align-items: flex-start; padding: 13px 11px; border: 1px solid var(--grey-200); border-radius: 13px; background: #fff; text-align: left; cursor: pointer; }
.notion-mode-grid button.active { border-color: var(--blue); background: #f5f9ff; box-shadow: inset 0 0 0 1px var(--blue); }
.notion-mode-grid button:disabled { opacity: .43; cursor: default; }
.notion-mode-grid strong { margin: 11px 0 6px; font-size: 12px; }
.notion-mode-grid small { color: var(--grey-600); font-size: 10px; line-height: 1.45; }
.notion-radio { width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid var(--grey-300); border-radius: 50%; color: white; }
.notion-mode-grid .active .notion-radio { background: var(--blue); border-color: var(--blue); }
.notion-guide-note { margin-top: 15px; padding: 11px 12px; border-radius: 9px; color: var(--grey-600); background: var(--grey-50); font-size: 10px; line-height: 1.5; }
.notion-rule-section { display: flex; flex-direction: column; gap: 7px; margin-top: 17px; }
.notion-rule-section > strong { font-size: 12px; }
.notion-rule-section > small { color: var(--grey-500); font-size: 10px; line-height: 1.45; }
.notion-rule-section > select { width: 100%; margin-top: 3px; }
.notion-condition { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.notion-condition select, .notion-condition input { width: 100%; }
.notion-filter-row { display: flex; align-items: flex-start; gap: 5px; padding: 8px; border-radius: 9px; background: var(--grey-50); }
.notion-filter-row .notion-condition { flex: 1; }
.notion-filter-row > button { width: 30px; height: 30px; flex: 0 0 auto; border: 0; background: transparent; color: var(--grey-500); cursor: pointer; }
.notion-add-filter { align-self: flex-start; display: flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.notion-completion-card { padding: 13px; border: 1px solid #dbe9fc; border-radius: 11px; background: #f7faff; }
.notion-rule-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.notion-rule-toggle > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.notion-rule-toggle strong { font-size: 12px; }
.notion-rule-toggle small { color: var(--grey-600); font-size: 10px; line-height: 1.45; }
.notion-rule-toggle input { width: 16px; height: 16px; accent-color: var(--blue); }
.notion-rule-summary { margin-top: 10px; padding: 8px 9px; border-radius: 7px; color: #2469bd; background: #eaf3ff; font-size: 10px; font-weight: 650; }
.notion-legacy-filters { margin-top: 17px; padding: 10px 0; border-top: 1px solid var(--grey-100); color: var(--grey-700); font-size: 11px; }
.notion-legacy-filters summary { cursor: pointer; font-weight: 700; }
.notion-legacy-filters > small { display: block; margin: 8px 0; color: var(--grey-500); font-size: 10px; }
.notion-legacy-filters .notion-filter-row { margin-top: 7px; }
.notion-live-preview { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--grey-100); }
.notion-live-preview > strong { font-size: 13px; }
.notion-live-preview > p { margin: 7px 0 5px; }
.notion-live-preview > small { display: block; margin-top: 11px; color: var(--grey-500); font-size: 10px; line-height: 1.5; }
.notion-live-preview .notion-preview-error { color: #b42337; }
.notion-preview-list { display: flex; flex-direction: column; }
.notion-preview-item { min-height: 50px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 2px; border-bottom: 1px solid var(--grey-100); }
.notion-preview-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.notion-preview-item small { color: var(--grey-500); font-size: 10px; }
.notion-recommendation-test { margin-top: 16px; }
.notion-recommendation-test > button { width: 100%; padding: 11px 12px; border: 1px solid #c8d9f5; border-radius: 10px; background: #eef5ff; color: #2464b8; font-size: 12px; font-weight: 700; cursor: pointer; }
.notion-recommendation-test > button:disabled { opacity: .55; cursor: default; }
.notion-recommendation-result { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grey-100); }
.notion-recommendation-result > strong { font-size: 13px; }
.notion-recommendation-result > p { margin: 6px 0 8px; color: var(--grey-600); font-size: 11px; }
.notion-chatgpt-test { padding-top: 16px; border-top: 1px solid var(--grey-100); }
.notion-chatgpt-test > strong { font-size: 13px; }
.notion-chatgpt-test > p { margin: 8px 0 12px; color: var(--grey-600); font-size: 11px; line-height: 1.5; }
.notion-preview-list label { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid var(--grey-100); cursor: pointer; }
.notion-preview-list label.imported { opacity: .5; cursor: default; }
.notion-preview-list input { width: 16px; height: 16px; accent-color: var(--blue); }
.notion-preview-list label span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notion-preview-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.notion-preview-list small { color: var(--grey-500); font-size: 10px; }
.notion-empty { padding: 26px 8px; color: var(--grey-500); font-size: 11px; line-height: 1.5; text-align: center; }
.notion-error { margin: 0 18px 12px; padding: 9px 10px; border-radius: 8px; color: #b42337; background: #fff0f1; font-size: 11px; line-height: 1.4; }
.notion-save-button { height: 40px; padding: 0 10px; border: 1px solid var(--grey-200); border-radius: 10px; background: #fff; color: var(--grey-700); font-size: 11px; font-weight: 700; cursor: pointer; }
.notion-save-button:disabled { opacity: .55; cursor: default; }
.notion-loading { display: flex; align-items: center; gap: 6px; color: var(--grey-500); font-size: 11px; }

.toast { position: absolute; left: 50%; bottom: 53px; z-index: 30; max-width: calc(100% - 26px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 10px; white-space: nowrap; color: white; background: #333d49; box-shadow: 0 8px 24px rgba(25, 31, 40, .22); font-size: 9px; animation: toast-in .18s ease-out; }
.toast.error { background: #d23f57; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 7px); } }
