/* 시안 1 — 실제 슈퍼워크 화면 (디자인시스템 버전 2 · 블랙 글래스모피즘 다크)
   출처: feature/design-system-v2 · frontend-v3
   - 틀: (redesign)/layout.tsx · app-shell/sidebar.tsx · glass-v2.css 다크 토큰
   - 회의록: meetings/page.tsx · tabs/actions-tab.tsx   - 업무: tasks/page.tsx · task/todo-board.tsx
   - 회사 MD: company-md/page.tsx                         - AI: ai-assistant-panel.tsx (voice-demo.css)
   모든 선택자는 .sw- 접두사. */

.sw-shell {
  /* glass-v2.css .dark [data-glass-v2] */
  --t1: #ececee; --t2: #a9a9b1; --t3: #83838c; --t4: #6f6f78;
  --bd: rgba(255, 255, 255, .07);
  --bd2: rgba(255, 255, 255, .045);
  --bg2: rgba(255, 255, 255, .025);
  --well: #141416;
  --primary: #1f78f0;          /* .dark .palette-hex 채움 */
  --primary-text: #6ea8ff;     /* 글자·테두리로 쓰일 때 */
  --red: #e24b4a; --amber: #e3b45e; --green: #3fb98d;
  --tag-blue-bg: rgba(110, 168, 255, .12); --tag-blue-ink: #a3c3f0;
  --tag-grey-bg: #2a2e35; --tag-grey-ink: #aeb3bc;
  --hg-pill: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07));
  --hg-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  --hg-chip: rgba(255, 255, 255, .06);
  --hg-chip-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  --hg-card: linear-gradient(160deg, rgba(48, 49, 55, .7), rgba(30, 31, 36, .55));
  --hg-rim: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05);
  --hg-glass-btn: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));

  /* 앱 바탕 — #111216 + 하늘·청록·갈색 빛 3개. 뒤의 점묘가 비치도록 살짝 투명 */
  position: relative;
  display: flex;
  padding: 10px;
  border-radius: 28px;
  background:
    radial-gradient(60% 70% at 6% 4%, rgba(70, 98, 150, .35), transparent 70%),
    radial-gradient(50% 60% at 98% 0%, rgba(60, 110, 104, .25), transparent 70%),
    radial-gradient(55% 60% at 88% 104%, rgba(130, 88, 66, .25), transparent 70%),
    rgba(17, 18, 22, .82);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.005em;
  text-align: left;
  overflow: hidden;
}
.sw-shell svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sw-shell button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: default; }

/* ── 메인 사이드바 ── */
.sw-side { flex: 0 0 196px; display: flex; flex-direction: column; padding: 12px 4px 4px 4px; }
.sw-logo { display: flex; align-items: center; gap: 8px; padding: 2px 10px 18px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sw-logo i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(160deg, #fff, #c9ccd3); color: #111113; }
.sw-logo i svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.sw-sec { padding: 12px 10px 4px; font-size: 11px; letter-spacing: .5px; color: var(--t4); }
.sw-nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 13.5px; color: var(--t2); transition: background .4s, color .4s, box-shadow .4s; }
.sw-nav.is-on { background: var(--hg-pill); box-shadow: var(--hg-pill-shadow); color: var(--t1); font-weight: 600; }
.sw-nav b { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: var(--red); }
.sw-me { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 14px 10px 8px; font-size: 12.5px; }
.sw-me i, .sw-av { display: inline-grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 600; color: #fff; }
.sw-me i { width: 28px; height: 28px; font-size: 12px; background: #4b6cb7; }
.sw-me span { display: flex; flex-direction: column; line-height: 1.35; }
.sw-me small { font-size: 11px; color: var(--t4); }

/* ── 유리판 (본문 카드 한 장) ── */
.sw-panel {
  position: relative; isolation: isolate;
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
}
.sw-panel::before { /* 흐림은 가상 요소에 — glass-v2 규칙 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(165deg, rgba(36, 37, 42, .66), rgba(24, 25, 29, .58));
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  backdrop-filter: blur(36px) saturate(1.7);
}
.sw-panel::after { /* 1px 빛 림 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .08) 22%, transparent 45%, rgba(190, 200, 225, .25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* 페이지 머리 — min-h 57 · border-b · px-6 py-3 */
.sw-head { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 12px 24px; border-bottom: 1px solid var(--bd); flex-wrap: wrap; }
.sw-crumb { color: var(--t3); font-size: 15px; }
.sw-crumb + svg { color: var(--t4); }
.sw-h1 { margin: 0; font-size: 15px; font-weight: 600; color: var(--t1); }
.sw-h1-lg { font-size: 18px; font-weight: 700; }
.sw-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: var(--tag-grey-bg); color: var(--tag-grey-ink); }
.sw-tag svg { width: 12px; height: 12px; }
.sw-meta { font-size: 13px; color: var(--t4); }
.sw-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--t3); }
.sw-ib { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.sw-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 600; color: #fff !important; background: var(--primary) !important; white-space: nowrap; }
.sw-btn svg { width: 14px; height: 14px; }
.sw-search { display: flex; align-items: center; gap: 6px; width: 200px; height: 32px; padding: 0 12px; border-radius: 14px; background: var(--hg-chip); box-shadow: var(--hg-chip-shadow); font-size: 13px; color: var(--t4); }
.sw-search svg { width: 14px; height: 14px; }

/* 세그먼트 탭 — 홈 + 흰 유리 알약 */
.sw-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.sw-seg span { padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--t3); }
.sw-seg .is-on { background: var(--hg-pill); box-shadow: var(--hg-pill-shadow); color: var(--t1); }

/* ═════ 회의록 상세 ═════ */
.sw-detail { display: flex; min-height: 0; flex: 1; }
.sw-left { flex: 1; min-width: 0; padding: 20px 24px; border-right: 1px solid var(--bd); }
.sw-right { width: 44%; flex: none; padding: 20px 24px; }
.sw-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.sw-mini { padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 400; color: var(--t2); box-shadow: inset 0 0 0 1px var(--bd); }
.sw-label .sw-mini:first-of-type { margin-left: auto; }
.sw-kw { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.sw-kw span { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--tag-blue-bg); color: var(--tag-blue-ink); }
.sw-script { display: flex; flex-direction: column; gap: 18px; }
.sw-seg-row { display: flex; gap: 12px; opacity: .38; transition: opacity .5s; }
.sw-seg-row.is-on { opacity: 1; }
.sw-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; }
.sw-seg-row p { margin: 0; flex: 1; min-width: 0; }
.sw-seg-row strong { font-size: 14px; font-weight: 600; }
.sw-seg-row time { margin-left: 8px; font-size: 13px; color: var(--t4); font-variant-numeric: tabular-nums; }
.sw-seg-row p > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.7; color: var(--t2); word-break: keep-all; }
.sw-seg-row mark { background: none; color: inherit; transition: color .5s, box-shadow .5s; }
.sw-seg-row.is-picked mark { color: var(--t1); box-shadow: inset 0 -.38em 0 rgba(31, 120, 240, .38); }

.sw-tabs { display: flex; gap: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--bd); }
.sw-tabs i, .sw-act-top i { font-style: normal; }
.sw-tabs span { margin-bottom: -1px; padding-bottom: 10px; border-bottom: 2px solid transparent; font-size: 14px; color: var(--t4); }
.sw-tabs .is-on { border-color: var(--t1); color: var(--t1); font-weight: 600; }
.sw-act-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: var(--t3); }
.sw-act-top .sw-btn { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 500; transition: transform .2s, opacity .3s; }
.sw-act-top .sw-btn.is-off { opacity: .4; }
.sw-act-top .sw-btn.is-press { transform: scale(.94); }
.sw-acts { display: flex; flex-direction: column; gap: 8px; }
.sw-act {
  display: flex; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--hg-card); box-shadow: var(--hg-rim);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.sw-act.is-in { opacity: 1; transform: none; }
.sw-act.is-done.is-in { opacity: .7; }
.sw-act.is-done .sw-act-t { text-decoration: line-through; color: var(--t3); }
.sw-chk { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid rgba(154, 154, 163, .3); display: grid; place-items: center; }
.sw-act.is-done .sw-chk { border-color: var(--green); background: var(--green); color: #fff; }
.sw-chk svg { width: 12px; height: 12px; stroke-width: 3; }
.sw-act-t { margin: 0; font-size: 14px; font-weight: 500; }
.sw-act-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 12px; color: #9a9aa3; }
.sw-act-m > span { display: inline-flex; align-items: center; gap: 4px; }
.sw-act-m svg { width: 12px; height: 12px; }
.sw-pri { padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.sw-pri.high { background: rgba(38, 22, 28, .9); color: #f37f8e; }
.sw-pri.medium { background: rgba(38, 31, 18, .9); color: #e3b45e; }
.sw-pri.low { background: rgba(17, 34, 28, .9); color: #5fcfa6; }
.sw-go { display: none; padding: 2px 6px; border-radius: 4px; font-size: 11px; background: rgba(23, 37, 84, .5); color: #60a5fa; }
.sw-act.is-sent .sw-go { display: inline-block; animation: sw-pop .4s var(--ease); }

.sw-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: rgba(40, 41, 46, .92); box-shadow: var(--hg-rim), 0 8px 24px rgba(0, 0, 0, .35);
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .4s, transform .4s var(--ease);
}
.sw-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.sw-toast svg { vertical-align: -3px; margin-right: 6px; color: var(--green); }

/* ═════ 내 할일 보드 ═════ */
.sw-bar2 { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--bd2); font-size: 12px; color: var(--t3); flex-wrap: wrap; }
.sw-count { padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.sw-count b { color: var(--t1); font-weight: 600; }
.sw-count .p { color: var(--primary-text); }
.sw-chip { padding: 4px 8px; border-radius: 6px; font-weight: 500; }
.sw-chip.is-on { background: var(--hg-chip); box-shadow: var(--hg-chip-shadow); color: var(--t1); }
.sw-cols { display: flex; gap: 10px; padding: 12px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--bd) transparent; }
.sw-col { flex: 1 1 0; min-width: 176px; display: flex; flex-direction: column; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--bd); }
.sw-col-h { display: flex; align-items: center; gap: 7px; padding: 10px 12px 8px; border-bottom: 1px solid var(--bd2); font-size: 13.5px; font-weight: 700; }
.sw-dot { width: 7px; height: 7px; border-radius: 50%; }
.sw-col-h em { margin-left: auto; padding: 0 7px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-style: normal; font-size: 13px; font-weight: 600; color: var(--t4); font-variant-numeric: tabular-nums; }
.sw-col-b { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 6px; min-height: 120px; }
.sw-add { margin: 0 6px 6px; padding: 6px; border-radius: 8px; border: 1px dashed var(--bd); font-size: 13px; color: var(--t3); text-align: center; }

.sw-task {
  position: relative; padding: 9px 10px 9px 12px; border-radius: 8px;
  background: var(--hg-card); box-shadow: var(--hg-rim);
}
.sw-task::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 2px 2px 0; background: var(--pc, #888780); }
.sw-task.is-done { opacity: .5; }
.sw-task.card { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.sw-task.card.is-in { opacity: 1; transform: none; }
.sw-task.card.is-in.is-done { opacity: .5; }
.sw-r1 { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font-size: 11px; line-height: 1.3; }
.sw-r1 > span:first-child { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--t3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-r1 svg { width: 12px; height: 12px; }
.sw-r1 .flag { margin-left: auto; }
.sw-r1 .flag + .due { margin-left: 0; }
.sw-r1 .due { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--t4); white-space: nowrap; }
.sw-r1 .due.amber, .sw-r1 .flag.amber { color: var(--amber); }
.sw-r1 .due.red, .sw-r1 .flag.red { color: #f37f8e; }
.sw-av { width: 16px; height: 16px; font-size: 9px; box-shadow: 0 0 0 1px #1c1c1f; }
.sw-r2 { display: flex; align-items: flex-start; gap: 7px; }
.sw-r2 .sw-chk { width: 15px; height: 15px; margin-top: 2px; border-width: 2px; border-color: rgba(255, 255, 255, .14); }
.sw-task.is-done .sw-chk { border-color: var(--green); background: var(--green); color: #fff; }
.sw-task.is-done .sw-chk svg { width: 9px; height: 9px; }
.sw-new { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--primary); }
.sw-r2 p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.4; font-weight: 500; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-task.is-unseen .sw-r2 p { font-weight: 800; }

/* ═════ 업무로 내보내기 창 (export-tasks-dialog.tsx) ═════ */
.sw-dlg { padding: 18px 18px 16px; }
.sw-dlg-t { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.sw-dlg-k { margin: 0 0 6px; font-size: 12px; color: var(--t3); }
.sw-dlg-sel { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; background: var(--hg-chip); box-shadow: var(--hg-chip-shadow); }
.sw-dlg-sel span { margin-left: auto; color: var(--t4); }
.sw-dlg-rows { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.sw-dlg-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--bd); transition: background .3s, box-shadow .3s; }
.sw-dlg-row .sw-chk { width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; transition: background .3s, border-color .3s; }
.sw-dlg-row.is-on { background: rgba(31, 120, 240, .08); box-shadow: inset 0 0 0 1px rgba(110, 168, 255, .3); }
.sw-dlg-row.is-on .sw-chk { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sw-dlg-row p { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.4; word-break: keep-all; }
.sw-dlg-row small { font-size: 12px; color: var(--t4); }
.sw-dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.sw-dlg-x { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; font-size: 13px; color: var(--t2); background: var(--hg-glass-btn); }
.sw-dlg-foot .sw-btn { border-radius: 10px; transition: transform .2s, opacity .3s; }
.sw-dlg-foot .sw-btn.is-off { opacity: .4; }
.sw-dlg-foot .sw-btn.is-press { transform: scale(.94); }

/* ═════ 회사 MD ═════ */
.sw-md { padding: 22px 24px 20px; }
.sw-md h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sw-md-sub { margin: 6px 0 18px; font-size: 13px; line-height: 1.65; color: var(--t3); word-break: keep-all; }
.sw-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sw-toc div { padding: 10px 12px; border-radius: 12px; background: var(--hg-chip); box-shadow: var(--hg-chip-shadow); }
.sw-toc b { display: block; font-size: 11px; font-weight: 600; color: var(--t4); letter-spacing: .3px; }
.sw-toc span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--t2); line-height: 1.5; word-break: keep-all; }
.sw-toc .is-on { background: var(--hg-pill); box-shadow: var(--hg-pill-shadow); }
.sw-toc .is-on span { color: var(--t1); }
.sw-sec-card { padding: 16px 18px; border-radius: 14px; background: var(--hg-card); box-shadow: var(--hg-rim); }
.sw-sec-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.sw-sec-card h4 small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--t4); }
.sw-sec-card ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.7; color: var(--t2); }
.sw-sec-card li { display: flex; gap: 6px; }
.sw-sec-card li::before { content: "•"; color: var(--t4); }
.sw-sec-card li b { color: var(--t1); font-weight: 600; }
.sw-hist { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bd); font-size: 12px; color: var(--t3); }
.sw-hist svg { width: 14px; height: 14px; color: var(--t4); }
.sw-hist .sw-av { width: 18px; height: 18px; }
.sw-ai-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--primary-text); }
.sw-ai-note svg { width: 14px; height: 14px; }

@keyframes sw-pop { from { opacity: 0; transform: scale(.8); } }

/* ── 반응형 — 화면 폭이 아니라 각 창(.sw-shell) 폭 기준(컨테이너 쿼리).
   대표 화면(.frame-inner)은 1280px 로 그린 뒤 통째로 줄이므로 레이아웃이 바뀌지 않고, UI 조각만 제 폭에 맞춘다 ── */
.sw-shell { container-type: inline-size; }
@container (max-width: 1100px) { .sw-side { display: none; } }
@container (max-width: 860px) {
  .sw-detail { flex-direction: column; }
  .sw-left { border-right: 0; border-bottom: 1px solid var(--bd); }
  .sw-right { width: auto; }
  .sw-search { display: none; }
}
@container (max-width: 640px) {
  .sw-panel { border-radius: 18px; }
  .sw-head { padding: 12px 16px; }
  .sw-left, .sw-right { padding: 16px; }
  .sw-meta, .sw-tools .sw-ib:nth-child(n+2) { display: none; }
  .sw-crumb, .sw-crumb + svg { display: none; }
  .sw-toc { grid-template-columns: 1fr; }
  .sw-toc div:not(.is-on) { display: none; }
  .sw-md { padding: 18px 16px; }
  .sw-bar2 .sw-chip:nth-child(n+4) { display: none; }
  .sw-kw { margin-bottom: 18px; }
}
@media (max-width: 640px) { .sw-shell:not(.frame-inner) { padding: 6px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .sw-act, .sw-task.card, .sw-seg-row, .sw-toast { transition: none; }
}
