:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #e3e6eb;
  --text: #16181d;
  --muted: #6b7280;
  --accent: #1f8a70;
  --accent-soft: #e2f3ed;
  --me: #1f8a70;
  --me-text: #ffffff;
  --bot: #ffffff;
  --danger: #d6336c;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --panel: #171a21;
    --line: #262a33;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --accent: #5cc9a7;
    --accent-soft: #15302a;
    --me: #1f7a63;
    --me-text: #ffffff;
    --bot: #1d2129;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ── 로그인 ── */
.login { max-width: 360px; margin: 12vh auto; padding: 0 16px; text-align: center; }
.login img { border-radius: 18px; }
.login p { color: var(--muted); }
.login form { display: grid; gap: 10px; margin-top: 20px; }
.login input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.login .key-login { margin-top: 18px; text-align: left; }
.login .key-login summary { color: var(--muted); font-size: 13px; cursor: pointer; text-align: center; }
.login .key-login p { font-size: 13px; }
.login-set { display: grid; gap: 8px; max-width: 360px; }
.login-set input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.login-set button { padding: 10px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.login button { padding: 12px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.error { color: var(--danger); }

/* ── 레이아웃: PC는 좌우, 폰은 한 화면씩 ── */
.app { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: 100dvh; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

@media (min-width: 761px) { .mobile-only { display: none !important; } }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app .chat { display: none; }
  .app.in-chat .side { display: none; }
  .app.in-chat .chat { display: flex; }
  .mobile-only { display: inline-flex; }
}

.brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.brand img { border-radius: 8px; }
.brand div { flex: 1; display: flex; flex-direction: column; }
.brand small, .chat-head small { color: var(--muted); font-size: 12px; }
.icon-btn { border: 0; background: transparent; font-size: 20px; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn[aria-pressed="true"] { background: var(--accent-soft); }

/* ── 빠른 버튼 ── */
/* 2개씩 한 줄, 버튼이 늘어나도 아래로 이어짐 */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.quick button {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 24px; text-align: left;
}
.quick button[hidden] { display: none; }
.quick button span { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; letter-spacing: -0.02em; }
.quick button:active { transform: scale(.97); }
.quick button[aria-pressed="true"], .quick button.on { border-color: var(--accent); background: var(--accent-soft); }
.quick button.on span { color: var(--accent); font-weight: 600; }
.quick button[aria-pressed="true"] span { color: var(--accent); font-weight: 600; }

/* ── 팀장 / 작업실 탭 ── */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 14px 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.tabs button { border: 0; background: transparent; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }

/* ── 작업실 도구 화면 ── */
.chat.tool-mode .messages, .chat.tool-mode .composer, .chat.tool-mode #attach, .chat.tool-mode #new-chat { display: none; }
.toolpane { flex: 1; overflow-y: auto; padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; width: 100%; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; color: var(--muted); background: var(--panel); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop button, .tool-actions button, .row button { border: 0; border-radius: 10px; padding: 9px 14px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card h4 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row > b { font-size: 14px; }
.row.base > b::after { content: " ●"; color: var(--accent); }
.fields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.fields input, .fields select { width: 92px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.fields select { width: auto; }
.fields input[readonly] { opacity: .7; }
.fields label { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.fields label input[type="radio"] { width: auto; }
.estimate { font-size: 14px; }
.estimate b { color: var(--accent); }
.tool-actions { display: flex; gap: 8px; }
.tool-actions .primary { flex: 1; padding: 13px; background: var(--accent); color: #fff; font-size: 16px; border-radius: 12px; }
.tool-actions .primary:disabled { opacity: .45; }
.result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result .download { border: 0; padding: 10px 16px; border-radius: 20px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr auto; } .row > b { grid-column: 1 / -1; } }

/* ── 📅 오늘 · 📒 장부 · 📰 이슈 (슬라이드) ── */
.board { max-width: 1180px; gap: 18px; }
/* 오늘: 일정표(왼쪽) | 체크리스트·다가오는 일정(오른쪽) */
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.split-main, .split-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split-side { position: sticky; top: 0; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 11px; background: var(--accent-soft);
  color: var(--accent); font-size: 12.5px; text-align: center; vertical-align: 2px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split-side { position: static; } }
.slide { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 4%); }
.slide h3 { margin: 0 0 14px; font-size: 17px; letter-spacing: -0.01em; }
.slide.hero { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0b3d33)); color: #fff; border: 0; padding: 28px 28px 26px; }
.slide.hero small { opacity: .8; font-size: 13px; }
.slide.hero h2 { margin: 4px 0 6px; font-size: 30px; letter-spacing: -0.02em; line-height: 1.25; }
.slide.hero p { margin: 0; opacity: .92; }
.slide.hero .primary { margin-top: 16px; border: 0; padding: 11px 18px; border-radius: 12px; background: #fff; color: var(--accent); font-weight: 700; }
.slide.hero .primary:disabled { opacity: .8; }
.allday { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.allday span { background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 12px; font-size: 13px; }
.timetable { --row: 52px; position: relative; height: calc(var(--hours) * var(--row)); margin-left: 52px; }
.hour { position: absolute; left: -52px; right: 0; top: calc(var(--i) * var(--row)); border-top: 1px solid var(--line); height: var(--row); }
.hour span { position: absolute; left: 0; top: -9px; font-size: 12px; color: var(--muted); background: var(--panel); padding-right: 6px; }
.event { position: absolute; top: calc(var(--top) * var(--row) + 2px); height: calc(var(--len, 1) * var(--row) - 6px); min-height: 22px;
  left: calc(var(--col) * 100% / var(--cols)); width: calc(100% / var(--cols) - 6px); overflow: hidden;
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 5px 9px; font-size: 13.5px; }
.event b { color: var(--accent); margin-right: 4px; }
.event small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event.act { background: var(--bg); border-left-color: var(--muted); }
.event.act b { color: var(--muted); }
.legend { float: right; font-size: 12px; font-weight: 400; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.legend i, .dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.legend i.plan, .dots i.plan { background: var(--accent); }
.legend i.done, .dots i.done { background: var(--muted); }
.legend i.done { margin-left: 6px; }
.hero-main { min-width: 0; }
.hero-tools { display: flex; gap: 10px; align-items: flex-start; }
.mini-cal { background: rgb(255 255 255 / 14%); border-radius: 14px; padding: 8px 10px 6px; width: 236px; min-height: 180px; }
.mini-cal .cal-head { margin-bottom: 4px; font-size: 13px; }
.mini-cal .cal-head button { border: 0; background: rgb(255 255 255 / 18%); color: #fff; width: 26px; height: 22px; font-size: 15px; border-radius: 7px; line-height: 1; }
.mini-cal .cal-grid { gap: 1px; }
.mini-cal .cal-grid .dow { color: rgb(255 255 255 / 75%); font-size: 10.5px; padding: 1px 0; }
.mini-cal .cal-grid button { background: transparent; color: #fff; font-size: 12px; padding: 2px 0 1px; border-radius: 7px; gap: 1px; cursor: pointer; }
.mini-cal .cal-grid button:hover { border-color: rgb(255 255 255 / 60%); }
.mini-cal .cal-grid button.is-today { color: #fff; text-decoration: underline; }
.mini-cal .cal-grid button.sel { background: #fff; color: var(--accent); font-weight: 800; }
.mini-cal .cal-grid .dots { height: 4px; gap: 2px; }
.mini-cal .dots i { width: 4px; height: 4px; }
.mini-cal .dots i.plan { background: #fff; }
.mini-cal .dots i.done { background: rgb(255 255 255 / 55%); }
.mini-cal .cal-grid button.sel .dots i.plan { background: var(--accent); }
.mini-cal .cal-grid button.sel .dots i.done { background: var(--muted); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.slide.hero .ghost { margin-top: 16px; border: 1px solid rgb(255 255 255 / 50%); background: transparent; color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; width: 36px; height: 32px; font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-grid button { border: 1px solid transparent; background: var(--bg); border-radius: 10px; padding: 7px 0 4px; font: inherit; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cal-grid button:hover { border-color: var(--accent); }
.cal-grid button.is-today { font-weight: 800; color: var(--accent); }
.cal-grid button.sel { background: var(--accent); color: #fff; }
.cal-grid .dots { display: flex; gap: 3px; height: 8px; }
.day.link { cursor: pointer; }
.day.link:hover { text-decoration: underline; }
.now { position: absolute; left: -6px; right: 0; top: calc(var(--top) * var(--row)); border-top: 2px solid var(--danger); z-index: 2; }
.now span { position: absolute; right: 0; top: -11px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.clock { text-align: right; background: rgb(255 255 255 / 16%); border-radius: 14px; padding: 8px 14px; }
.clock small { display: block; opacity: .85; font-size: 12px; }
.clock b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.photo-result { border: 2px solid var(--accent); }
.photo-result .line .del, .link-btn { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; flex: none; }
.link-btn { margin-top: 10px; }
.now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.check small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.day { margin: 14px 0 4px; font-size: 13px; color: var(--accent); }
.day:first-of-type { margin-top: 0; }
.line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; min-width: 0; }
.line > b { flex: none; width: 46px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.who-tag { flex: none; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.who-tag.me { background: var(--bg); color: var(--muted); }
.ellipsis { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.tile:hover { border-color: var(--accent); }
.tile small { color: var(--muted); font-size: 12.5px; }
.tile p { margin: 6px 0 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile time { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.md { font-size: 15px; line-height: 1.65; }
.md h4 { margin: 16px 0 8px; font-size: 16px; }
.md h4:first-child { margin-top: 0; }
.md ol, .md ul { padding: 0; margin: 0; list-style: none; counter-reset: n; display: grid; gap: 10px; }
.md li { counter-increment: n; position: relative; padding: 14px 16px 14px 52px; background: var(--bg); border-radius: 14px; }
.md ol li::before { content: counter(n); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.md ul li::before { content: "•"; position: absolute; left: 22px; top: 12px; color: var(--accent); font-size: 18px; }
.md .sub { color: var(--muted); font-size: 13.5px; }
.md a { color: var(--accent); }
@media (max-width: 760px) { .slide { padding: 18px 16px; border-radius: 16px; } .slide.hero h2 { font-size: 24px; } }

/* ── 🧩 확장 라이브러리 · 🔧 제작대 ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button, .chip { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 6px 12px; border-radius: 16px;
  font-size: 13px; text-decoration: none; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.ext p { margin: 6px 0; font-size: 14px; }
.ext small { display: block; color: var(--muted); font-size: 12.5px; }
.ext small.warn { color: var(--danger); margin-top: 4px; }
.ext-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ext-head b { font-size: 15.5px; }
.star { font-size: 12px; color: #c27c0e; font-weight: 700; }
.ext-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.ext-actions button, .ext-actions select { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 7px 12px; border-radius: 10px; font: inherit; font-size: 13.5px; }
.ext-actions .get { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.ext-actions .remove { color: var(--danger); }
.code summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 10px; }
.code pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 12.5px; max-height: 420px; }
code { background: var(--bg); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.wide-input { width: 100%; margin-top: 10px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.tool-actions select { border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--bg); color: var(--text); font: inherit; }
details.card > summary { cursor: pointer; }

/* ── 📰 이슈 ── */
.date-chips { margin-top: -4px; }
.issues { display: grid; gap: 12px; }
.issue { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px; background: var(--bg); border-radius: 14px; border: 2px solid transparent; }
.issue.focus { border-color: var(--accent); }
.issue .num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.issue .topic { font-size: 12px; color: var(--accent); font-weight: 600; }
.issue h4 { margin: 2px 0 6px; font-size: 16px; line-height: 1.4; }
.issue h4 a { color: inherit; text-decoration: none; }
.issue h4 a:hover { color: var(--accent); text-decoration: underline; }
.issue p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.issue .why { color: var(--muted); font-size: 13.5px; }
.related { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.related small { color: var(--muted); font-size: 12px; }
.related button, .thread button { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 12px; padding: 4px 10px; font-size: 12.5px; text-align: left; }
.related button:hover, .thread button:hover { border-color: var(--accent); color: var(--accent); }
.thread { padding: 10px 0; border-top: 1px solid var(--line); }
.thread:first-of-type { border-top: 0; }
.thread small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.thread ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.thread button.here { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ── 초대한 사람(member)은 작업실만 ── */
body.member .tabs, body.member #leads, body.member #fab-mic, body.member .quick [data-board="kmong"],
body.member .quick [data-board="devbox"],
body.member .owner-only, body.member #back { display: none !important; }
@media (max-width: 760px) { body.member #back { display: inline-flex !important; } }

/* ── 링크 모음 ── */
.search { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.link-row:first-of-type { border-top: 0; }
.link-row a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.link-row a:hover b { color: var(--accent); text-decoration: underline; }
.link-row b { display: block; font-size: 14.5px; }
.link-row small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.link-row .del { border: 0; background: transparent; color: var(--muted); font-size: 15px; padding: 6px; border-radius: 8px; }
.link-row .del:hover { background: var(--bg); color: var(--danger); }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-grid input, .add-grid select { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; min-width: 0; }
.add-grid .wide { grid-column: 1 / -1; }
.add-grid button { grid-column: 1 / -1; border: 0; padding: 11px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.invite { display: flex; gap: 8px; }
.invite input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.invite button { border: 0; padding: 9px 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; flex: none; }

/* ── 팀장 목록 ── */
.leads { overflow-y: auto; padding: 4px 12px 24px; flex: 1; }
.leads h3 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 16px 6px 6px; letter-spacing: .02em; }
.lead {
  width: 100%; text-align: left; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center;
  padding: 10px; border: 0; border-radius: 12px; background: transparent;
}
.lead:hover { background: var(--bg); }
.lead.active { background: var(--accent-soft); }
.lead .avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  background: var(--bg); border: 1px solid var(--line); position: relative;
}
.lead .avatar.mem::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: #2fb344; border: 2px solid var(--panel);
}
.lead > span:last-child { min-width: 0; }
.lead b { display: block; font-size: 14.5px; }
.lead small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead.chief .avatar { background: var(--accent); color: #fff; border: 0; }

/* 폰 첫 화면의 큰 마이크 버튼 */
.fab {
  position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 64px; height: 64px;
  border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 28px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.leads { padding-bottom: 96px; }

/* ── 대화 ── */
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.chat-head div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: min(720px, 88%); padding: 10px 14px; border-radius: var(--radius); white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--me); color: var(--me-text); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bot); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg .meta { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.msg.me .meta { text-align: right; }
.msg .thumb { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 10px; margin-top: 6px; }
.chat.dragging { outline: 3px dashed var(--accent); outline-offset: -10px; background: var(--accent-soft); }
.chat.dragging .messages::after { content: "여기에 놓으면 이 팀장 작업 폴더로 올라가요"; position: sticky; bottom: 0; align-self: center;
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 14px; }
.msg .download { display: inline-block; margin-top: 8px; padding: 7px 14px; border: 0; border-radius: 18px;
  background: var(--accent); color: #fff; font-weight: 600; }
.progress { align-self: flex-start; font-size: 13px; color: var(--muted); padding: 0 6px; }
.empty { margin: auto; text-align: center; color: var(--muted); }
.empty b { color: var(--text); font-size: 17px; }

.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.composer textarea {
  flex: 1; resize: none; max-height: 160px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
.mic, .send { width: 46px; height: 46px; border-radius: 50%; border: 0; font-size: 20px; flex: none; }
.mic { background: var(--accent-soft); }
.send { background: var(--accent); color: #fff; }
.mic:disabled { opacity: .4; }

/* ── 음성 듣는 중 ── */
.listening {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 10; padding: 16px; text-align: center;
}
.listening p { font-size: 18px; max-width: 520px; }
.listening button { padding: 10px 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); }
.pulse {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 44px;
  background: var(--accent); color: #fff; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 26px transparent; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
@media (max-width: 760px) { .hero-row { flex-wrap: wrap; } .hero-tools { width: 100%; justify-content: space-between; } .mini-cal { flex: 1; max-width: 300px; } }

/* 🤝 협력사 */
.pviews { margin: 0; }
.slide.hero a.ghost { display: inline-block; text-decoration: none; }
.preq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.preq-head h3 { margin-bottom: 8px; }
.preq-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); margin-left: 4px; font-weight: 500; }
.tags .tag { margin-left: 0; }
button.tag { cursor: pointer; font: inherit; font-size: 12px; }
button.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.red { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.tag.warn { color: #b26a00; border-color: #e8c27a; }
.ptable-wrap { overflow-x: auto; margin: 0 -4px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable td:first-child { white-space: nowrap; }
.ptable .hist { color: var(--muted); font-size: 12.5px; min-width: 140px; }
.ptable .note { font-size: 12.5px; }
.ptable .dl { text-align: center; color: var(--muted); }
.ptable .dl input { width: 18px; height: 18px; accent-color: var(--accent); }
.ptable .miss { color: var(--danger); font-weight: 700; }
.ptable tr.st-na td { color: var(--muted); }
.ptable tr.st-missing td:first-child b, .ptable tr.st-late td:first-child b { color: var(--danger); }
.row-act { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 8px; padding: 3px 6px; font-size: 12.5px; }
.notion { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.partner { border-bottom: 1px solid var(--line); }
.partner summary { cursor: pointer; padding: 10px 2px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.partner summary small { margin-left: auto; color: var(--muted); }
.partner .pbody { padding: 0 2px 14px; }
.partner .hero-actions { margin-top: 10px; align-items: center; }
.contacts td { white-space: nowrap; }
.contacts a { color: inherit; }
.inbox { border: 2px solid var(--danger); }
.inbox .line span small { display: block; color: var(--muted); font-size: 12px; }
.inbox .line > b { width: 46px; }
.pform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pform input:not([type=checkbox]):not([type=radio]), .pform select { font: inherit; font-size: 15px; color: var(--text); padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.pform .seg { display: flex; gap: 16px; margin-bottom: 10px; }
.pform .seg label, .pform fieldset label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 14px; margin: 0; }
.pform .pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pform fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.pform legend { padding: 0 4px; font-weight: 700; }
.pform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pform .primary-btn { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 10px; }
.pform .link-btn { margin-top: 0; }
.gchat { padding: 14px 20px; }
.gchat .line { align-items: center; padding: 0; }
.gchat .line > b { width: auto; }
.gchat .line > span { flex: 1; }
.gchat .line span small { display: block; color: var(--muted); font-size: 12px; }
.gchat .link-btn { margin-top: 0; }
.line.past { opacity: .55; }
.line .t { color: var(--accent); }
.done-tag { color: var(--accent); font-size: 12px; white-space: nowrap; }
details.slide.inbox { padding: 0; }
.inbox-bar { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: baseline; padding: 14px 20px; }
.inbox-bar::-webkit-details-marker { display: none; }
.inbox-bar b { color: var(--danger); white-space: nowrap; }
.inbox-bar span { color: var(--muted); font-size: 13px; }
.inbox-bar::after { content: "▾"; margin-left: auto; color: var(--muted); }
.inbox[open] .inbox-bar::after { content: "▴"; }
.inbox-body { padding: 0 20px 16px; max-height: 60vh; overflow-y: auto; }
/* 팀장별 진행 표시 */
.lead { position: relative; }
.job-dot { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 9px; }
.job-dot.working { color: var(--accent); background: var(--accent-soft); animation: jobpulse 1.4s ease-in-out infinite; }
.job-dot.unread { color: #fff; background: var(--danger); }
@keyframes jobpulse { 50% { opacity: .45; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; border: 0; border-radius: 22px;
  background: #1f2a27; color: #fff; padding: 11px 18px; font: inherit; font-size: 14px; box-shadow: 0 6px 24px rgb(0 0 0 / 25%); cursor: pointer; }
/* 📮 개발 전달함 */
.dv-item { border-top: 1px solid var(--line); padding: 12px 0; }
.dv-item:first-child { border-top: 0; }
.dv-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.dv-head small { color: var(--muted); font-size: 12px; }
.dv-reason { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.dv-body { margin: 6px 0 0; font-size: 14px; white-space: pre-wrap; }
.dv-item .hero-actions { margin-top: 8px; }
.sec-sum { list-style: none; cursor: pointer; }
.sec-sum::-webkit-details-marker { display: none; }
.sec-sum h3 { margin: 0; }
details[open] > .sec-sum h3 { margin-bottom: 14px; }
/* 📚 라이브러리 */
.lib-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lib-cat { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 16px 12px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; font: inherit; min-height: 76px; }
.lib-cat b { font-size: 15px; }
.lib-cat small { color: var(--muted); font-size: 12px; }
.lib-cat:hover { border-color: var(--accent); }
.lib-cat.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lib-cat.on small { color: rgb(255 255 255 / 80%); }
.lib-cat.add { border-style: dashed; color: var(--muted); align-items: center; justify-content: center; text-align: center; }
.lib-search { margin-top: 14px; }
.lib-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); }
.lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lib-card { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 14px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; font: inherit; color: var(--text); }
.lib-card:hover { border-color: var(--accent); }
.lib-card .tag { align-self: flex-start; margin: 0; }
.lib-card b { font-size: 14.5px; line-height: 1.35; }
.lib-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-card small { color: var(--muted); font-size: 11.5px; }
.lib-ask { display: flex; gap: 8px; }
.lib-ask input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.lib-answer { white-space: pre-wrap; margin-top: 10px; font-size: 14px; }
.lib-modal { position: fixed; inset: 0; background: rgb(0 0 0 / 45%); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lib-modal-box { position: relative; background: var(--panel); color: var(--text); border-radius: 18px; padding: 24px; width: min(760px, 100%); max-height: 86vh; overflow-y: auto; }
.lib-modal-box h2 { margin: 6px 0 10px; font-size: 21px; }
.lib-modal-box small { color: var(--muted); }
.lib-body { white-space: pre-wrap; line-height: 1.65; font-size: 15px; margin: 12px 0; }
.lib-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); }
/* 🤝 협력 프로젝트 목록 */
.pj-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pj-sum h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.pj-sum .line .tag { margin: 0; flex: none; }
.pj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pj-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 14px; }
.pj-open { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pj-open b { font-size: 16px; }
.pj-open small { color: var(--muted); }
.pj-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.pj-stats .tag { margin: 0; }
.pj-todo { font-size: 13px; color: var(--danger); }
.pj-card .hero-actions { margin-top: 10px; }
.back-link { border: 0; background: rgb(255 255 255 / 18%); color: #fff; border-radius: 8px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; margin-right: 6px; }
@media (max-width: 760px) { .pj-sum { grid-template-columns: 1fr; } }
/* 일정 화면: 프로젝트 요약 */
.pj-mini-list { display: flex; flex-direction: column; gap: 6px; }
.pj-mini-row { all: unset; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pj-mini-row:hover { border-color: var(--accent); }
.pj-mini-row .tag { margin: 0; }
.pj-mini-row small { color: var(--muted); font-size: 12.5px; }
.pj-mini-row em { font-style: normal; color: var(--danger); font-size: 12.5px; width: 100%; }
.slide h3 #t-detail { margin: 0 0 0 8px; font-weight: 500; }
/* 🧑‍💻 크몽 */
.km-ask { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.km-ask textarea { font: inherit; font-size: 14.5px; border: 0; border-radius: 12px; padding: 10px 12px; resize: vertical; color: #1f2a27; }
.km-ask .primary { align-self: flex-start; margin-top: 0 !important; }
.km-progress { margin-top: 10px !important; white-space: pre-wrap; background: rgb(255 255 255 / 14%); border-radius: 10px; padding: 10px 12px; max-height: 260px; overflow-y: auto; }
.km-detail { white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
/* 팀장 목록 맨 아래 장부 */
.ledger-link { display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 14px 8px 18px; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ledger-link:hover, .ledger-link.on { border-color: var(--accent); color: var(--accent); }

/* 📚 읽음 / 안읽음 */
.lib-card.read { opacity: 0.62; }
.lib-card.unread { border-color: var(--accent); }

/* 🎬 영화·드라마 작품 목록 */
.watch .chips { margin-bottom: 6px; }
.watch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(160px, calc((100% - 36px) / 4)), 1fr)); gap: 12px; margin-top: 8px; }
/* 카드는 모두 같은 크기: 위 포스터 + 아래 정보 (넘치는 글은 줄여서). 컴퓨터에서 한 줄에 4개쯤 */
.watch-card { height: 404px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  display: flex; flex-direction: column; overflow: hidden; }
.watch-card.seen { background: var(--bg); }
.watch-card.seen .watch-top b { color: var(--muted); }
.watch-card.seen .watch-poster { opacity: 0.75; }
/* 포스터는 잘리지 않게 가운데에, 남는 곳은 같은 포스터를 흐리게 깔아 채움 */
.watch-poster { position: relative; flex-shrink: 0; width: 100%; height: 200px; border: 0; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--img, none) center / contain no-repeat, var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.watch-poster::before { content: ""; position: absolute; inset: -20px; background: var(--img, none) center / cover no-repeat;
  filter: blur(16px) brightness(0.7); z-index: -1; }
.watch-poster { isolation: isolate; }
.watch-poster.big { width: 150px; height: 225px; border-radius: 10px; cursor: default; background-size: cover; }
.watch-poster.big::before { display: none; }
.watch-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px 8px; }
.watch-info > * { min-width: 0; }
.watch-top { display: flex; align-items: baseline; gap: 6px; border: 0; background: none; padding: 0; text-align: left; color: var(--text); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-top b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.watch-top small, .watch-meta { color: var(--muted); font-size: 12px; }
.watch-meta, .watch-actors, .watch-rating { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.watch-actors { color: var(--text); font-size: 12px; min-height: 15px; }
.watch-genres { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; min-height: 18px; }
.watch-genres span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.watch-rating { font-size: 12px; font-weight: 600; min-height: 16px; }
.watch-info p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.watch-mine { cursor: pointer; }
.watch-mine i { color: var(--muted); }
.mystars span, .watch-note [data-s] { color: var(--line); }
.mystars span.on, .watch-note [data-s].on { color: #f2b01e; }
.watch-ctl { margin-top: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.watch-ctl .prio { white-space: nowrap; }
.watch-ctl .prio button, .watch-note [data-s] { border: 0; background: none; padding: 0 1px; font-size: 13px; color: var(--line); cursor: pointer; }
.watch-note [data-s] { font-size: 26px; }
.watch-ctl .prio button.on { color: var(--accent); }
.watch-note [data-s].on { color: #f2b01e; }
.watch-ctl .seen-box { display: flex; align-items: center; gap: 3px; color: var(--text); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.watch-ctl .seen-box { margin-left: auto; }
.wd-del { margin: 18px 0 0; text-align: right; }
.watch-detail .wd-head { display: flex; gap: 16px; align-items: flex-start; }
.watch-detail .wd-head h2 { margin: 0 0 2px; }
.watch-detail .wd-head p { margin: 6px 0 0; font-size: 13.5px; }
.watch-detail h4 { margin: 16px 0 6px; }
.watch-detail > p { margin: 0; line-height: 1.6; white-space: pre-wrap; }
.watch-note { display: flex; flex-direction: column; gap: 8px; }
.watch-note textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; font-size: 14px; background: var(--panel); color: var(--text); resize: vertical; }
.watch-note button[type=submit] { align-self: flex-end; }
@media (max-width: 520px) {
  .watch-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .watch-card { height: 392px; }
  .watch-poster { height: 180px; }
  .watch-info { padding: 8px 9px 6px; }
  .watch-detail .wd-head { flex-direction: column; }
}

/* 🔔 알림 설정 */
.alarm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.alarm-row:first-child { border-top: 0; }
.alarm-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alarm-row small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.alarm-row .alarm-btns { flex-direction: row; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.alarm-row button { flex-shrink: 0; }

/* 📰 오늘의 이슈 (claude.ai '오늘의 이슈' 페이지와 같은 구성) */
.issue-page { display: flex; flex-direction: column; gap: 14px; }
.ip-head { display: flex; flex-direction: column; gap: 4px; }
.ip-head small { color: var(--muted); font-size: 13px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ip-head h2 { margin: 0; font-size: 30px; line-height: 1.2; text-wrap: balance; }
.ip-head p { margin: 0; color: var(--muted); }
.ip-back { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.ip-dates { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-top: 0; }
.ip-dates button { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ip-list, .ip-timeline { list-style: none; margin: 0; padding: 0; }
.ip-list { border-top: 1px solid var(--line); }
.ip-list li, .ip-timeline li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ip-list li.empty { color: var(--muted); }
.ip-list .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ip-list .tag { margin: 0; }
.ip-list .thread { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ip-list .thread:hover { color: var(--accent); }
.ip-list .thread b { color: var(--accent); }
.issue-page h4 { margin: 0; font-size: 17px; line-height: 1.45; text-wrap: balance; }
.issue-page li p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.issue-page .src { font-size: 12.5px; }
.issue-page .src a { color: var(--accent); }
.ip-timeline { border-left: 2px solid var(--line); margin-left: 5px; }
.ip-timeline li { padding-left: 20px; position: relative; border-bottom: 0; }
.ip-timeline li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--accent); }
.ip-timeline .when { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.ip-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ip-topics button { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg);
  color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ip-topics button:hover, .ip-topics button.on { border-color: var(--accent); }
.ip-topics small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ip-foot { margin: 4px 2px 16px; }
.settings-list { display: flex; flex-direction: column; gap: 4px; }
/* 📰 기간 보기 */
.ip-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ip-period .chips { margin-top: 0; }
.ip-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ip-range input { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
.ip-list .day { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ip-group { gap: 8px !important; }
.ip-timeline.small { margin-top: 4px; }
.ip-timeline.small li { padding: 8px 0 8px 18px; gap: 3px; }
.ip-timeline.small li::before { top: 13px; width: 10px; height: 10px; left: -6px; }
.ip-timeline.small li b { font-size: 14.5px; line-height: 1.45; }
.ip-timeline.small li p { font-size: 13.5px; }
.ip-timeline.small li:not(.latest) { opacity: 0.8; }
.ip-timeline.small li.latest::before { background: var(--accent); }

/* 🔮 오늘의 운세 (재미용) */
.fortune { display: flex; flex-direction: column; gap: 6px; }
.fortune p { margin: 0; }
.ft-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ft-head small { color: var(--muted); font-size: 12px; }
.ft-stars { color: #f2b01e; letter-spacing: 1px; }
.ft-total { font-size: 15px; }
.ft-lucky { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-lucky span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); }
.ft-advice { font-size: 13.5px; color: var(--muted); }
.ft-note { color: var(--muted); font-size: 11px; opacity: 0.8; }

/* 📐 도면 목록표 */
.cad-tpls { display: flex; flex-direction: column; gap: 6px; }
.cad-tpl { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.cad-tpl.on { border-color: var(--accent); background: var(--accent-soft); }
.cad-tpl span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cad-tpl small { color: var(--muted); font-size: 12px; }
.cad-sort { margin-left: auto; font-weight: 400; display: inline-flex; gap: 6px; }
.card h4:has(.cad-sort) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cad-table { overflow-x: auto; margin-top: 8px; }
.cad-table table { border-collapse: collapse; width: 100%; font-size: 13px; }
.cad-table th, .cad-table td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; white-space: nowrap; }
.cad-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.cad-table input { width: 100%; min-width: 70px; box-sizing: border-box; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; font: inherit; background: transparent; color: var(--text); }
.cad-table input:focus { border-color: var(--accent); background: var(--panel); outline: none; }
.cad-table td:nth-child(3) input { min-width: 180px; }
.cad-table tr.warn td { background: color-mix(in srgb, #f2b01e 10%, transparent); }
.perm-chips { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.perm-chips label { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.user-row { align-items: flex-start; }

/* 🔔 알림 · 👥 멤버 · 👤 내 일정·자료 */
.notice-btn { position: relative; }
.notice-btn.has::after { content: attr(data-n); position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; text-align: center; }
.notice-list { display: flex; flex-direction: column; gap: 2px; }
.notice { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice small { color: var(--muted); font-size: 12px; }
.notice.new span { font-weight: 600; }
.mem-body select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
.my-list { display: flex; flex-direction: column; }
.my-list .line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.my-list .line span { flex: 1; min-width: 0; }
.my-list .line.done span { color: var(--muted); text-decoration: line-through; }
.my-list small { color: var(--muted); font-size: 12px; }
.my-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.my-add.col { flex-direction: column; }
.my-add input, .my-add textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
.my-add input[name=title] { flex: 1; min-width: 160px; }
.my-add button { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.my-date { padding: 6px 8px; border-radius: 8px; border: 0; font: inherit; }
.pj-due { margin-bottom: 10px; }
.my-new { margin-top: 10px; }
.my-new summary { list-style: none; cursor: pointer; display: inline-block; }
.android-steps { padding-left: 20px; line-height: 1.7; }
/* 🔔 새로 바뀐 것 · 📜 수정 내역 */
.inbox.news .inbox-bar b { color: var(--accent); }
.inbox.news { border-color: var(--accent); }
.news-list .line, .plist .line { display: flex; gap: 10px; align-items: baseline; }
.news-list .line span { flex: 1; min-width: 0; }
.news-tag { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hist-day { margin: 14px 0 4px; font-size: 13px; color: var(--muted); }

/* 🌐 사이트별 색 (246HEAD 는 기본 초록) */
body[data-site="archi"] { --accent: #2c5282; --accent-soft: #e3ebf6; --me: #2c5282; }
body[data-site="ent"] { --accent: #dd5a1f; --accent-soft: #fdebe1; --me: #dd5a1f; }
@media (prefers-color-scheme: dark) {
  body[data-site="archi"] { --accent: #7aa7e0; --accent-soft: #1a2738; --me: #2c5282; }
  body[data-site="ent"] { --accent: #f59a6b; --accent-soft: #3a2015; --me: #b84a17; }
}
.site-switch { border: 0; background: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.site-switch span { color: var(--muted); font-size: 13px; }
.site-pick { width: min(440px, 100%); }
.site-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; margin-top: 10px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.site-card img { border-radius: 10px; }
.site-card span { display: flex; flex-direction: column; }
.site-card small { color: var(--muted); }
.site-card.on, .site-card:hover { border-color: var(--accent); background: var(--accent-soft); }
/* 🗳️ 건의함 */
.sg-list { display: flex; flex-direction: column; gap: 10px; }
.sg-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sg-card.new { border-color: var(--accent); }
.sg-card p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.sg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg-meta small { color: var(--muted); font-size: 12px; }
.sg-meta .tag { margin: 0; }
.tag.sg-new { background: var(--accent); color: #fff; }
.tag.sg-sent { background: var(--accent-soft); color: var(--accent); }
.sg-reply, .sg-op { background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.sg-reply p, .sg-op p { margin: 4px 0 0; }
.sg-op small { color: var(--muted); }
.sg-act { display: flex; gap: 6px; flex-wrap: wrap; }
/* 🤖 설계 도우미 */
.help-log { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; margin-bottom: 8px; }
.help-msg { padding: 10px 12px; border-radius: 12px; max-width: 85%; line-height: 1.55; white-space: pre-wrap; }
.help-msg.user { align-self: flex-end; background: var(--me); color: #fff; }
.help-msg.bot { align-self: flex-start; background: var(--bg); }
.help-msg small { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; }
.help .my-add input { flex: 1; }
/* 🔮 ENT 운세 */
.ft-big { font-size: 26px; letter-spacing: 3px; color: #ffe08a; margin: 6px 0 !important; }
.ft-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ft-area { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.ft-area p { margin: 0; font-size: 13.5px; color: var(--muted); }
.ft-lucky.big span { font-size: 14px; padding: 6px 14px; }
/* 🌐 다른 사이트로 가는 버튼: 왼쪽 맨 아래 한 줄 (목록을 내려도 그대로). 세 개가 넘으면 아이콘만 */
.site-links { display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  background: var(--panel); flex-shrink: 0; }
.site-links:empty { display: none; }
.site-links button { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.site-links button:hover { border-color: var(--accent); }
.site-links img { border-radius: 7px; flex-shrink: 0; }
.site-links span { display: flex; flex-direction: column; min-width: 0; }
.site-links b { font-size: 12.5px; }
.site-links small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-links.compact button { flex: 0 0 auto; padding: 5px; }
.site-links.compact span { display: none; }
/* ✏️ 버튼 고르기 · ENT 아래 목록(테두리 버튼) · 🏆 게임 기록 */
.quick .quick-edit { grid-column: 1 / -1; padding: 4px; border: 0; background: none; color: var(--muted); font-size: 12px; justify-content: flex-end; }
.quick .quick-edit:hover { color: var(--accent); background: none; }
.pick-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.pick-list label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
#ent .ent-btn { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--panel); }
#ent .ent-btn:hover { border-color: var(--accent); }
#ent .ent-btn.soon { opacity: .55; border-style: dashed; }
.game-form .my-add { margin-top: 6px; }
.game-row input[name=p] { flex: 2; } .game-row input[name=s] { flex: 1; min-width: 80px; }
.game-rank { margin-bottom: 14px; }
.game-rank h4 { margin: 6px 0; }
.game-rank table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.game-rank th, .game-rank td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.game-rank th { color: var(--muted); font-weight: 600; font-size: 12px; }
.game-rec { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.game-rec small { color: var(--muted); }
.game-scores { display: flex; flex-wrap: wrap; gap: 6px; }
.game-scores span { padding: 3px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; }
.game-scores span.win { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pick-btns [data-save] { padding: 9px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
.my-add select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
/* 🔎 운세 모아보기 */
.ft-web .ft-go { padding: 10px 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.ft-overall { font-size: 15px; line-height: 1.75; margin: 0; }
.ft-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ft-src { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ft-src p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.ft-src a { font-size: 12.5px; color: var(--accent); }
.ft-src .tag { margin: 0 0 0 4px; }
.tag.tone-good { background: #e3f6ea; color: #1f7a45; } .tag.tone-warn { background: #fdeaea; color: #b4232c; }
.ft-detail summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; list-style: none; }
.ft-detail summary::before { content: "▸ "; } .ft-detail[open] summary::before { content: "▾ "; }
.ft-detail p { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 10px; margin: 6px 0; }
.ft-src small { color: var(--muted); font-size: 11.5px; } .ft-src small a { color: var(--muted); }
/* 🗓️ 일정 만들기 (구글 캘린더처럼) */
.gcal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gcal-head h3 { margin: 0; white-space: nowrap; }
.gcal-head .link-btn { white-space: nowrap; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.cal-new { margin-left: auto; white-space: nowrap; padding: 7px 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
.cal-week, .gcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-week span:first-child { color: var(--danger); }
.cal-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; background: var(--panel); }
.cal-cell.empty { border: 0; background: none; cursor: default; }
.cal-cell.today .cal-n { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; }
.cal-cell.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-n { font-size: 12px; font-weight: 600; align-self: flex-start; }
.cal-chip { border: 0; border-radius: 5px; padding: 1px 5px; font: inherit; font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--accent-soft); color: var(--text); cursor: pointer; }
.cal-chip.src-notion { background: #f1efe9; } .cal-chip.src-google { background: #e8f0fe; } .cal-chip.src-error { background: #fdeaea; }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-line { cursor: pointer; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.cal-line span { flex: 1; min-width: 0; }
.cal-line > b { width: auto; min-width: 46px; }
.cal-btns .cal-del { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--danger); font-weight: 600; }
.cal-edit .my-add input { min-width: 0; }
.cal-btns { display: flex; gap: 8px; align-items: center; }
.cal-btns button:first-child { padding: 9px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
.cal-props .line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cal-props .line span { flex: 1; }
.cal-sync .sync-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.cal-sync .sync-item small { color: var(--muted); }
@media (max-width: 760px) { .gcal-head { gap: 4px; } .gcal-head h3 { font-size: 16px; } .cal-cell { min-height: 64px; } .cal-chip { font-size: 10px; padding: 0 3px; } .cal-chip b { display: none; } }
.cal-talk { display: flex; gap: 8px; width: 100%; }
.cal-talk input { flex: 1; min-width: 0; width: auto; max-width: none; }
.cal-talk button { flex: none; white-space: nowrap; }
.cal-props .line > b { width: auto; white-space: nowrap; }
/* 🙋 가입·내 정보 · 👥 사람 관리 */
.login-set.pf { max-width: 460px; }
.login-set select { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; min-width: 0; }
.pf-l { margin-top: 8px; font-weight: 700; font-size: 14px; }
.pf-l small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.pf-org { min-height: 1em; margin-top: -4px; }
.pf-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; }
.login-set .link-btn { background: none; color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 760px) { .pf-row { grid-template-columns: 1fr; } }
.pp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.pp-tools .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pp-tools .seg button { border: 0; background: none; padding: 6px 11px; font: inherit; font-size: 13px; color: var(--muted); }
.pp-tools .seg button.on { background: var(--accent); color: #fff; font-weight: 700; }
.pp-q { flex: 1; min-width: 140px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; }
.pp-group { border-top: 1px solid var(--line); padding: 6px 0; }
.pp-group summary { cursor: pointer; padding: 6px 0; }
.pp-group summary small { color: var(--muted); }
.user-row small { display: block; }
.mem-found .link-row { padding: 6px 0; }
.pp-sum { color: rgb(255 255 255 / 85%); font-size: 13px; margin: 6px 0 0; }
.pj-notion-note p { margin: 0; font-size: 14px; line-height: 1.6; }
/* 📋 노션 연결 · 📅 프로젝트 전체 일정 */
.steps { padding-left: 20px; line-height: 1.7; font-size: 14px; }
.pe-item { cursor: pointer; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pe-item .line > b { width: auto; min-width: 46px; white-space: nowrap; }
.pe-reqs { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 56px; }
.pe-pick { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; padding: 6px 0; }
.pe-pick label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.cal-edit select { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
@media (max-width: 760px) { .pe-reqs { padding-left: 0; } }
.ib-chat { display: flex; gap: 8px; align-items: flex-end; }
.ib-chat textarea { flex: 1; resize: none; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; line-height: 1.4; }
.ib-chat textarea::placeholder { color: var(--muted); }
.ib-chat button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; padding: 0; }
.cal-btns button.cal-del:first-child { background: none; color: var(--danger); border: 1px solid var(--line); padding: 9px 14px; font-weight: 600; }

/* 왼쪽 위: 사이트 이름 대신 246 로고 (누르면 다른 사이트로) */
.site-switch img#site-word { height: 22px; width: auto; max-width: 100%; display: block; }
.site-switch { max-width: 100%; }
.brand div { min-width: 0; }
#status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-color-scheme: dark) { #site-word { filter: invert(1) hue-rotate(180deg) brightness(1.1); } }
/* 📏 면적산출표 */
.ar-layers { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ar-layers label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.ar-layers small { color: var(--muted); }
.ar-floor { border-top: 1px solid var(--line); padding: 6px 0; }
.ar-floor summary { cursor: pointer; padding: 4px 0; }
.ar-floor summary small { color: var(--muted); margin-left: 6px; }
.ar-site { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ar-site label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ar-site label.wide { grid-column: 1 / -1; }
.ar-site input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.ar-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; font-size: 14px; }
@media (max-width: 760px) { .ar-site { grid-template-columns: 1fr 1fr; } }
/* 🧩 문제·퀴즈 카드 */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.quiz-card { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 8px; font: inherit; color: var(--text); cursor: pointer; min-height: 130px; }
.quiz-card:hover { border-color: var(--accent); }
.quiz-card.solved { border-left: 4px solid #16a34a; }
.quiz-card.wrong { border-left: 4px solid var(--danger); }
.qc-top { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.qc-lv { color: #f59e0b; letter-spacing: -1px; }
.qc-q { flex: 1; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qc-st { font-size: 12px; color: var(--muted); }
.quiz-modal { max-width: 560px; }
.flip { perspective: 1200px; }
.flip-in { display: grid; transition: transform .5s; transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 4px 2px; }
.face.back { transform: rotateY(180deg); }
.qm-q { font-size: 18px; line-height: 1.6; font-weight: 600; white-space: pre-wrap; }
.qm-hint { background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.qm-a { font-size: 22px; font-weight: 800; color: var(--accent); white-space: pre-wrap; }
.qm-ex { line-height: 1.7; white-space: pre-wrap; }
.qm-btns { display: flex; gap: 8px; margin: 12px 0; }
.qm-btns button { flex: 1; padding: 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; }
.qm-btns .ok { background: #16a34a; } .qm-btns .no { background: var(--danger); }
.primary-btn { padding: 10px 22px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; }
.qm-foot { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.qm-ans { display: flex; gap: 8px; margin: 10px 0 4px; }
.qm-ans input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.qm-msg { min-height: 1.2em; color: var(--danger); font-size: 14px; margin: 0; }
.qm-ok { color: #16a34a; font-size: 16px; } .qm-no { color: var(--danger); }
.qm-btns { flex-wrap: wrap; align-items: center; }
.qh-sub { font-size: 16px; font-weight: 600; opacity: .85; margin-left: 6px; }
.qz-rec { cursor: pointer; }
.qz-rec > b { width: auto; min-width: 82px; }
.quiz-modal .lib-close { position: absolute; z-index: 10; }
.flip.on .face.front, .flip:not(.on) .face.back { pointer-events: none; }
/* 🧱 면적선 만들기 */
.rm-lay input { width: 100%; min-width: 140px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.rm-lay tr.on td:first-child input { border-color: var(--accent); }
.rm-opt { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 10px 0; }
.rm-opt label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.rm-opt input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
a.primary-btn { display: inline-block; text-decoration: none; }
.sh-cat td small { display: block; color: var(--muted); font-size: 11px; }
.sh-cat tr.on td:nth-child(3) b { color: var(--accent); }
.sh-cat select, .sh-cat input { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.dv-st.dv-todo { background: #fff4d6; } .dv-st.dv-doing { background: #e0ecff; } .dv-st.dv-done { background: #dcf5e3; }
