/* =========================================================
   왁자지껄 AI 발전소 — 스타일
   크림 배경 · 짙은 초록 · 노랑/핑크/파랑/민트 팔레트
   ========================================================= */
:root {
  --cream: #FBF4E4; --cream-2: #F5EBD3; --paper: #FFFDF7; --line: #E9DEC4; --line-2: #DCCDAA;
  --ink: #1D2F28; --ink-2: #3E5148; --muted: #6F7C74;
  --green: #1D2F28; --green-2: #2A4238;
  --yellow: #F2CF6B; --pink: #EDB7AE; --blue: #AFCFE6; --mint: #BCD8B5;
  --in: #2F7A55; --out: #D9694F; --warn: #C9772B;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 0 rgba(29,47,40,.04), 0 6px 18px -10px rgba(29,47,40,.25);
  --font: 'Pretendard', 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Do Hyeon', 'Pretendard', sans-serif;
  --pixel: 'Silkscreen', ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.empty { color: var(--muted); font-size: .93em; padding: 10px 2px; list-style: none; }
.hint { color: var(--muted); font-size: .82em; margin: 10px 0 0; line-height: 1.5; }
.sp { flex: 1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; line-height: 1.2; transition: background .15s, transform .1s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--cream-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--green); border-color: var(--green); color: #FFF8E6; }
.btn-primary:hover { background: var(--green-2); }
.btn-lg { padding: 14px 22px; font-size: 16px; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 4px 9px; font-size: 12px; }
.btn-xs.on { background: var(--green); color: #fff; border-color: var(--green); }
.btn-danger-soft { color: #B5452F; border-color: #EBC2B6; }
.btn-light { background: #FFF8E6; color: var(--green); border-color: #FFF8E6; }
.btn-ghost-light { background: transparent; color: #FFF8E6; border-color: rgba(255,248,230,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.link-btn { background: none; border: 0; text-decoration: underline; color: var(--ink-2); font-size: 13px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 16px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--cream-2); }

/* ---------- 브랜드 ---------- */
.brand-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #FFF8E6; font-family: var(--display); font-size: 22px; padding: 8px 20px 8px 14px; border-radius: 999px; text-decoration: none; letter-spacing: 0; }
.brand-pill .bolt { width: 20px; height: 20px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linejoin: round; }
.brand-sm { font-size: 19px; padding: 6px 16px 6px 12px; }

/* ---------- 로그인 ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(circle at 15% 20%, rgba(242,207,107,.35) 0 160px, transparent 161px),
  radial-gradient(circle at 88% 78%, rgba(175,207,230,.4) 0 200px, transparent 201px), var(--cream); }
.login-card { width: min(440px, 100%); background: var(--paper); border: 1.5px solid var(--line); border-radius: 28px; padding: 30px 28px; box-shadow: var(--shadow); }
.login-title { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.15; margin: 20px 0 14px; letter-spacing: 0; }
.login-team { display: flex; gap: 10px; margin-bottom: 18px; min-height: 76px; }
.login-team figure { margin: 0; text-align: center; flex: 1; }
.login-team img { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--mc); background: var(--mc); display: block; margin: 0 auto; }
.login-team figcaption { font-size: 12px; font-weight: 700; margin-top: 4px; }
#loginForm { display: grid; gap: 12px; }
#loginForm label, .form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
input:not([type=checkbox]):not([type=range]):not([type=color]), select, textarea { width: 100%; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,47,40,.12); }
input[type=color] { width: 40px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 2px; background: #fff; }
.login-err { color: #B5452F; font-size: 13px; min-height: 1em; margin: 0; }
.login-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- 화면 가리기 ---------- */
.cover { position: fixed; inset: 0; z-index: 200; background: var(--green); color: #FFF8E6; display: grid; place-items: center; text-align: center; padding: 16px;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 18px 18px; }
.cover-clock { font-family: var(--pixel); font-size: clamp(56px, 14vw, 120px); color: var(--yellow); }
.cover p { font-size: 18px; margin: 4px 0 24px; opacity: .85; }
.cover-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 상단바 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251,244,228,.94); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--line); }
.topbar-row { max-width: 1480px; margin: 0 auto; padding: 10px 24px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.clock { font-family: var(--pixel); font-size: 18px; color: var(--ink); padding: 0 6px; }
.sync-badge { border: 0; border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 800; background: #DDEEE3; color: var(--in); white-space: nowrap; }
.sync-busy { background: var(--cream-2); color: var(--ink-2); }
.sync-err { background: #F8DDD5; color: #A8452F; }
.sync-offline { background: #EEE8DA; color: var(--muted); }
.login-mode { margin: 0; font-size: 13px; background: var(--cream); border-radius: 10px; padding: 8px 12px; color: var(--ink-2); }
#btnSyncSetup { display: block; margin: 10px auto 0; }
.idle-left { font-size: 12px; color: var(--warn); font-weight: 700; }
.nav { max-width: 1480px; margin: 0 auto; padding: 0 24px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); border: 1.5px solid transparent; background: transparent; position: relative; }
.nav b { font-family: var(--pixel); font-size: 11px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--ink-2); font-weight: 400; }
.nav a:hover, .nav button:hover { background: var(--cream-2); }
.nav a.active { background: var(--green); color: #FFF8E6; }
.nav a.active b { background: var(--yellow); color: var(--green); }
.nav-edit { margin-left: auto; border-color: var(--line-2) !important; }
.nav-edit.active { background: var(--yellow) !important; border-color: var(--yellow) !important; color: var(--green); }
.nav-badge { position: absolute; top: 0; right: 2px; background: #E0533A; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.sample-banner { max-width: 1480px; margin: 12px auto 0; padding: 10px 16px; background: #FFF3C9; border: 1.5px dashed #E4C35C; border-radius: 14px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: calc(100% - 48px); }

/* ---------- 본문 · 보드 ---------- */
.main { max-width: 1480px; margin: 0 auto; padding: 18px 24px 60px; }
.view-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.view-head h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; letter-spacing: 0; line-height: 1.1; }
.view-sub { margin: 0; color: var(--muted); font-size: 14.5px; }

.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 10px; column-gap: 16px; row-gap: 0; position: relative; }
.block { position: relative; margin-bottom: 16px; background: var(--blk-bg, var(--paper)); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; font-size: calc(var(--fs, 1) * 15px); }
.block.has-ink, .block.has-ink * { color: var(--blk-ink) !important; }
.block-plain { background: var(--blk-bg, transparent); border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px 4px; flex: none; }
.block-head h3 { margin: 0; font-size: 1.12em; font-weight: 800; letter-spacing: -0.02em; }
.block-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 18px 16px; scrollbar-width: thin; }
.block-plain > .block-body { padding: 0; overflow: auto; }

/* 편집 모드 */
.blk-handle, .blk-resize { display: none; }
body.editing .board { background-image:
    repeating-linear-gradient(90deg, rgba(29,47,40,.055) 0 var(--colw, 80px), transparent var(--colw, 80px) calc(var(--colw, 80px) + 16px)),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(29,47,40,.07) 19px 20px);
  outline: 2px dashed rgba(29,47,40,.18); outline-offset: 6px; border-radius: 6px; min-height: 70vh; }
body.editing .block { outline: 2px dashed rgba(29,47,40,.35); outline-offset: -2px; overflow: hidden; }
body.editing .block.selected { outline: 3px solid #E4A72C; }
body.editing .block.dragging { opacity: .85; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); z-index: 999 !important; }
body.editing .blk-handle { display: flex; align-items: center; gap: 6px; position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 30; background: rgba(29,47,40,.88); color: #FFF8E6; font-size: 12.5px; font-weight: 700; padding: 0 12px; cursor: grab; touch-action: none; border-radius: var(--r) var(--r) 0 0; }
body.editing .blk-handle span { font-size: 15px; color: var(--yellow); }
body.editing .blk-handle:active { cursor: grabbing; }
body.editing .blk-resize { display: block; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; z-index: 31; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 50%, #E4A72C 50%); border-radius: 0 0 var(--r) 0; }
body.editing .block-head { padding-top: 38px; }
body.editing .block-plain > .block-body { padding-top: 32px; }
body.editing [data-edit] { outline: 1.5px dashed #E4A72C; outline-offset: 3px; border-radius: 4px; cursor: text; }
body.editing [data-edit]:focus { outline-style: solid; background: #FFF6D8; }
.editbar { position: sticky; top: 104px; z-index: 45; max-width: 1480px; margin: 10px auto 0; width: calc(100% - 48px); background: var(--yellow); color: var(--green); border-radius: 16px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.editbar-msg { font-size: 13.5px; }
.editbar-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.edit-panel { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 340px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); font-size: 13px; }
.ep-title { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.ep-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.ep-row > span { width: 62px; font-weight: 700; color: var(--ink-2); }
.ep-row > span:nth-of-type(2) { width: auto; margin-left: 8px; }
.ep-row em { font-style: normal; color: var(--muted); min-width: 34px; }
.ep-row input[type=range] { flex: 1; }
.ep-row select { flex: 1; padding: 6px 8px; font-size: 13px; }
.ep-foot small { flex: 1; color: var(--muted); }

/* ---------- 업무 리스트 ---------- */
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.task:last-child { border-bottom: 0; }
.chk { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; cursor: pointer; }
.chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chk span { position: absolute; inset: 0; border: 2px solid var(--line-2); border-radius: 7px; background: #fff; transition: all .15s; }
.chk input:checked + span { background: var(--green); border-color: var(--green); }
.chk input:checked + span::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.chk input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29,47,40,.2); }
.task-main { flex: 1; min-width: 0; display: grid; }
.task-title { font-weight: 600; font-size: 1em; line-height: 1.4; }
.task-meta { font-size: .8em; color: var(--muted); }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task.late .task-meta { color: #B5452F; font-weight: 700; }
.pri { color: #B5452F; }
.x-btn { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 2px 4px; opacity: .45; }
.task:hover .x-btn { opacity: 1; }
.more-link { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .9em; color: var(--ink-2); }

.prog { display: flex; align-items: center; gap: 10px; }
.prog > span { font-family: var(--pixel); font-size: .85em; min-width: 40px; text-align: right; }
.prog-bar { flex: 1; height: 10px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--mc, var(--green)); border-radius: 99px; transition: width .4s; }
.prog-bar.sm { height: 7px; }

/* ---------- 발전량 ---------- */
.power { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto; gap: 6px 18px; align-items: center; }
.turbine { grid-row: 1 / 3; width: 98px; }
.turbine svg { width: 100%; display: block; }
.blades { transform-origin: 60px 60px; }
.blades.on { animation: spin var(--spd, 3s) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.power-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lcd { font-family: var(--pixel); font-size: 2.9em; line-height: 1; color: var(--green); }
.power-num em { font-style: normal; font-family: var(--pixel); font-size: 1em; color: var(--ink-2); }
.lvl { background: var(--yellow); color: var(--green); border-radius: 999px; padding: 3px 12px; font-size: .9em; margin-left: 4px; }
.meter { display: flex; gap: 3px; margin: 8px 0 4px; }
.meter i { flex: 1; height: 16px; border-radius: 3px; background: var(--cream-2); }
.meter i.on { background: hsl(calc(140 - var(--h) * 1.1) 58% 50%); box-shadow: 0 0 8px -2px hsl(calc(140 - var(--h) * 1.1) 70% 55%); }
.power-desc { margin: 0; font-size: .82em; color: var(--muted); }
.power-chips { grid-row: 1 / 3; grid-column: 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 8px; }
.power-chips li { background: var(--cream); border-radius: 12px; padding: 8px 12px; display: grid; }
.power-chips b { font-size: 1.35em; line-height: 1.1; }
.power-chips small { font-size: .6em; color: var(--muted); }
.power-chips span { font-size: .75em; color: var(--muted); font-weight: 600; }
.power-split { grid-column: 1 / -1; display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--cream-2); gap: 2px; margin-top: 4px; }
.power-legend { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; font-size: .8em; color: var(--ink-2); font-weight: 600; }
.power-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- 오늘 요약 ---------- */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sum-date { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.sum-date b { font-family: var(--display); font-weight: 400; font-size: 2em; line-height: 1; }
.sum-date span { color: var(--muted); font-weight: 700; }
.sum-item { text-decoration: none; background: var(--cream); border-radius: 12px; padding: 8px 12px; display: grid; position: relative; transition: background .15s; }
.sum-item:hover { background: var(--cream-2); }
.sum-item span { font-size: .78em; color: var(--muted); font-weight: 700; }
.sum-item b { font-size: 1.3em; line-height: 1.2; }
.sum-item b small { font-size: .6em; margin-left: 2px; }
.sum-item:last-child { grid-column: 1 / -1; }
.sum-item em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: .72em; background: #F7D4CB; color: #9A3A26; padding: 1px 7px; border-radius: 99px; font-weight: 800; }
.neg { color: #B5452F; } .pos { color: var(--in); }

/* ---------- 사무실 카드 ---------- */
.rooms { container-type: inline-size; }
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-content: start; }
@container (max-width: 760px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 420px) { .rooms { grid-template-columns: 1fr; } }
.room { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.room-scene { position: relative; height: 250px; overflow: hidden; cursor: pointer; outline: none; background: var(--ms); }
.room-scene:focus-visible { box-shadow: inset 0 0 0 3px var(--green); }
.room-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-slow { animation: spin 6s linear infinite; transform-box: view-box; }
.blink { animation: blink 1.6s steps(2) infinite; } .blink.b1 { animation-delay: .5s; } .blink.b2 { animation-delay: 1s; animation-duration: 1.1s; }
@keyframes blink { 50% { opacity: .2; } }
.chalk { position: absolute; left: 12px; top: 14px; z-index: 2; background: #2B4238; border: 5px solid #B88A5A; border-radius: 6px; color: #F4F1E6; padding: 6px 12px 7px; min-width: 104px; box-shadow: 0 4px 0 rgba(0,0,0,.12); font-family: var(--display); line-height: 1.05; text-align: center; }
.chalk small { display: block; font-family: var(--pixel); font-size: 10px; color: var(--yellow); letter-spacing: .08em; }
.chalk b { display: block; font-weight: 400; font-size: 34px; }
.chalk b i { font-style: normal; font-size: 22px; opacity: .6; margin: 0 2px; }
.chalk span { display: block; font-size: 15px; opacity: .92; margin-top: 2px; }
.person-wrap { position: absolute; right: 2%; bottom: 52px; width: 64%; height: 215px; z-index: 3; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.person { position: relative; height: 100%; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3,1.4,.5,1), filter .3s; }
.person img { height: 100%; width: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); user-select: none; }
.person-ph { height: 100%; aspect-ratio: .8; border-radius: 50% 50% 0 0; background: var(--mc); display: grid; place-items: center; font-family: var(--display); font-size: 60px; }
.desk { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 4; background: linear-gradient(#9A6A45 0 10px, #7E5438 10px 12px, #8C5F3F 12px); box-shadow: 0 -2px 0 rgba(0,0,0,.08); }
.monitor { position: absolute; left: 14px; bottom: 56px; width: 74px; height: 50px; background: #24343A; border-radius: 6px; padding: 5px; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.monitor::after { content: ''; position: absolute; left: 30px; bottom: -8px; width: 14px; height: 8px; background: #3A4A50; }
.screen { position: relative; height: 100%; background: #0F2A1E; border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.screen span { font-family: var(--pixel); color: #7CF0A0; font-size: 14px; position: relative; z-index: 1; }
.screen i { position: absolute; left: 0; bottom: 0; height: 4px; background: #7CF0A0; }
.mug { position: absolute; left: 98px; bottom: 56px; width: 16px; height: 18px; background: #FFF8E6; border-radius: 2px 2px 5px 5px; }
.mug::after { content: ''; position: absolute; right: -6px; top: 4px; width: 6px; height: 8px; border: 2px solid #FFF8E6; border-left: 0; border-radius: 0 5px 5px 0; }
.nameplate { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: linear-gradient(#2A3F35, #1D2F28); color: #FFF8E6; border: 2px solid #C9A46A; border-radius: 6px; padding: 4px 14px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.nameplate span { font-size: 13px; color: var(--yellow); font-weight: 700; }
.nameplate b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .02em; }
.bubble { position: absolute; left: 10px; right: 10px; top: 112px; z-index: 6; width: max-content; max-width: 62%; background: #fff; border: 2px solid var(--green); border-radius: 14px; padding: 6px 11px; font-size: 13.5px; font-weight: 700; line-height: 1.35; opacity: 0; transform: translateY(8px) scale(.9); transition: all .25s; pointer-events: none; }
.bubble::after { content: ''; position: absolute; right: -9px; top: 12px; border: 7px solid transparent; border-left-color: var(--green); }
.fx { position: absolute; opacity: 0; transition: opacity .25s; pointer-events: none; }
.fx-sweat { right: 22%; top: 12%; font-size: 20px; }
.fx-spark { right: 18%; top: 4%; font-size: 22px; }
.fx-zzz { right: 12%; top: 0; font-family: var(--display); color: var(--green); font-size: 18px; }
.fx-zzz i, .fx-zzz b { font-style: normal; display: inline-block; }
.fx-zzz i { font-size: 22px; transform: translateY(-8px); } .fx-zzz b { font-size: 28px; transform: translateY(-18px); font-weight: 400; }
/* 기본 자세: 기분에 따라 은은한 움직임 */
.mood-busy .person { animation: typing 1.1s ease-in-out infinite; }
.mood-bored .person { animation: sway 4s ease-in-out infinite; }
.mood-normal .person { animation: breathe 3.6s ease-in-out infinite; }
@keyframes typing { 50% { transform: translateY(2px) rotate(.4deg); } }
@keyframes sway { 50% { transform: rotate(-1.5deg) translateY(3px); } }
@keyframes breathe { 50% { transform: translateY(-2px); } }
/* 가까이 오면 반응 */
.room.near .bubble { opacity: 1; transform: none; }
.room.near.mood-normal .person { animation: hop .6s cubic-bezier(.3,1.6,.5,1); transform: rotate(calc(var(--look, 0) * 3deg)); }
.room.near.mood-normal .fx-spark { opacity: 1; animation: twinkle 1s ease-in-out infinite; }
.room.near.mood-busy .person { animation: busyNear .35s ease-in-out infinite; transform: translateY(6px) scale(1.03); filter: saturate(1.15) contrast(1.05); }
.room.near.mood-busy .fx-sweat { opacity: 1; animation: drip 1s ease-in infinite; }
.room.near.mood-busy .room-scene::before { content: ''; position: absolute; inset: 0; z-index: 2; background: repeating-conic-gradient(from 0deg at 62% 40%, rgba(255,255,255,.0) 0 6deg, rgba(255,255,255,.35) 6deg 8deg); pointer-events: none; animation: twinkle .8s linear infinite; }
.room.near.mood-bored .person { animation: none; transform: rotate(-5deg) translateY(10px); filter: saturate(.75) brightness(.97); }
.room.near.mood-bored .fx-zzz { opacity: 1; animation: float 2s ease-in-out infinite; }
@keyframes hop { 40% { transform: translateY(-12px); } }
@keyframes busyNear { 0%, 100% { transform: translateY(6px) scale(1.03); } 50% { transform: translateY(4px) scale(1.03) rotate(.6deg); } }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes float { 50% { transform: translate(4px, -6px); } }
@keyframes twinkle { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .person, .blades, .spin-slow, .fx, .blink { animation: none !important; } }

.room-info { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.team-chip { display: inline-block; background: var(--mc); color: var(--mi); font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; margin-right: 6px; vertical-align: 2px; }
.room-name { font-size: 18px; font-weight: 800; }
.room-role { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.mood-pill { flex: none; font-size: 12px; font-weight: 800; background: var(--ms); color: var(--mi); padding: 4px 10px; border-radius: 99px; white-space: nowrap; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.room-duty { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.tasks.mini .task { padding: 5px 0; }
.tasks.mini .task-title { font-size: 13.5px; }
.tasks.mini .task-meta { font-size: 11.5px; }
.room-more { margin-top: auto; border: 0; background: var(--ms); color: var(--mi); font-weight: 800; font-size: 13.5px; border-radius: 12px; padding: 9px 12px; display: flex; justify-content: space-between; }
.room-more:hover { filter: brightness(.97); }

/* ---------- 브리핑 ---------- */
.brief-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.brief-badge { background: var(--green); color: #FFF8E6; font-size: .8em; font-weight: 800; padding: 4px 11px; border-radius: 99px; }
.brief-badge.pre { background: var(--cream-2); color: var(--ink-2); }
.brief-tools { display: flex; gap: 6px; }
.brief-tools select { width: auto; padding: 4px 8px; font-size: 12.5px; border-radius: 99px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.brief-grid h4 { margin: 6px 0 4px; font-size: .88em; color: var(--ink-2); }
.brief-wide { grid-column: 1 / -1; }
.brief-list { margin: 0; padding: 0 0 0 2px; list-style: none; font-size: .92em; }
.brief-list li { padding: 3px 0; }
.brief-list.num { counter-reset: n; }
.brief-list.num li { counter-increment: n; padding-left: 26px; position: relative; }
.brief-list.num li::before { content: counter(n); position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--yellow); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.brief-list small { color: var(--muted); margin-left: 4px; }
.brief-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9em; }
.brief-teams li { display: grid; grid-template-columns: 50px 1fr 38px; align-items: center; gap: 8px; }
.brief-teams em { font-style: normal; font-family: var(--pixel); font-size: .8em; text-align: right; }

/* ---------- 일정 리스트 ---------- */
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.ev:last-child { border-bottom: 0; }
.ev b { display: block; font-size: .96em; }
.ev small { display: block; color: var(--muted); font-size: .8em; }
.ev small.prep { color: var(--ink-2); }
.ev-list.big .ev { cursor: pointer; }
.dday { flex: none; font-family: var(--pixel); font-size: 11px; background: var(--cream-2); color: var(--ink); border-radius: 8px; padding: 4px 6px; min-width: 50px; text-align: center; margin-top: 2px; }
.dday.today { background: #E0533A; color: #fff; }
.dday.past { opacity: .6; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,32,27,.5); backdrop-filter: blur(2px); }
.modal-box { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: pop .22s ease-out; }
.modal-box.wide { width: min(1040px, 100%); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream-2); font-size: 15px; z-index: 2; }
.m-title { font-size: 22px; margin: 0 0 16px; font-weight: 800; }
.modal h3 { font-size: 15px; margin: 18px 0 8px; }
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.form-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.chk-line { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 6px !important; font-weight: 700; }
.chk-line input { width: 18px; height: 18px; accent-color: var(--green); }
.ed-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-add { display: flex; gap: 6px; margin: 10px 0 4px; }
.inline-add input[name=title] { flex: 1 1 0; min-width: 0; }
.inline-add input[type=date] { width: 160px !important; flex: none; }

/* 직원 상세 */
.member-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--ms); border-radius: 20px; padding: 18px 22px; margin: -4px 0 18px; }
.mh-imgs { position: relative; width: 190px; height: 170px; }
.mh-cut { position: absolute; right: 0; bottom: 0; height: 175px; border-radius: 0 0 14px 14px; }
.mh-toon { position: absolute; left: 0; bottom: 0; width: 92px; height: 92px; border-radius: 50%; border: 4px solid #FFF8E6; z-index: 1; box-shadow: var(--shadow); }
.mh-text h2 { margin: 6px 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: 0; }
.mh-text h2 small { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--mi); margin-left: 6px; }
.chips { display: flex; gap: 6px; }
.chips span { background: #FFF8E6; border-radius: 99px; padding: 2px 11px; font-weight: 800; font-size: 13px; }
.mh-text blockquote { margin: 10px 0; font-weight: 800; font-size: 16px; }
.status-edit { display: flex !important; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.status-edit input { max-width: 220px; padding: 6px 10px !important; font-size: 13px !important; }
.donut { position: relative; width: 120px; text-align: center; }
.donut svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.d-bg { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 9; }
.d-fg { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.donut b { position: absolute; top: 36px; left: 0; right: 0; font-family: var(--pixel); font-size: 19px; }
.donut small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.member-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.member-grid h3:first-child { margin-top: 0; }
.profile-facts dl { margin: 0; display: grid; grid-template-columns: 86px 1fr; gap: 8px 12px; font-size: 14px; }
.profile-facts dt { font-weight: 800; color: var(--mi); }
.profile-facts dd { margin: 0; }
.dl-area { margin-top: 18px; border-top: 1.5px dashed var(--line); padding-top: 4px; }
.dl-area h3 small { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dl-card { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px; display: grid; gap: 2px; text-align: left; transition: transform .15s, box-shadow .15s; }
.dl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dl-thumb { height: 130px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(#f1ece0 0 25%, #fff 0 50%) 0 0 / 16px 16px; margin-bottom: 6px; }
.dl-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dl-thumb.photo img, .dl-thumb.card img { object-fit: cover; width: 100%; height: 100%; }
.dl-card b { font-size: 14px; } .dl-card small { color: var(--muted); font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(15,24,20,.8); display: grid; place-items: center; padding: 16px; }
.lb-box { max-width: min(900px, 100%); max-height: 100%; display: grid; gap: 10px; }
.lb-box img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 12px; margin: 0 auto; background: repeating-conic-gradient(#e9e3d5 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.lb-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #fff; font-weight: 700; }
.lb-bar span { flex: 1; }

/* ---------- 토스트 ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { background: var(--green); color: #FFF8E6; padding: 11px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); animation: pop .2s; transition: opacity .4s, transform .4s; max-width: 520px; }
.toast-warn { background: #8A4A1C; }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- 단톡방 ---------- */
.chat { display: flex; flex-direction: column; background: #B7CBD9; border-radius: var(--r); overflow: hidden; border: 1.5px solid #A5BBCB; height: 100%; position: relative; }
.chat.drop::after { content: '여기에 놓으면 첨부돼요'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29,47,40,.6); color: #fff; font-weight: 800; font-size: 18px; z-index: 5; }
.chat-head { flex: none; background: rgba(255,255,255,.35); padding: 12px 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chat-head b { font-size: 17px; } .chat-head span { color: var(--ink-2); font-weight: 700; }
.chat-head small { color: var(--ink-2); font-size: 12.5px; margin-left: auto; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-day { text-align: center; margin: 6px 0; } .chat-day span { background: rgba(0,0,0,.15); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 99px; }
.chat-sys { align-self: center; background: rgba(255,255,255,.55); font-size: 12.5px; padding: 4px 12px; border-radius: 99px; color: var(--ink-2); font-weight: 600; }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.avatar { width: 40px; height: 40px; border-radius: 15px; object-fit: cover; flex: none; background: #fff; }
.avatar.ph { display: grid; place-items: center; font-weight: 800; color: var(--ink); }
.avatar.me { background: var(--green); color: var(--yellow); font-size: 13px; }
.msg-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; position: relative; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-name { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.msg-row { display: flex; align-items: flex-end; gap: 6px; }
.msg.mine .msg-row { flex-direction: row-reverse; }
.bubble-msg { background: #fff; padding: 9px 13px; border-radius: 4px 16px 16px 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.msg.mine .bubble-msg { background: #FEE500; border-radius: 16px 4px 16px 16px; }
.bubble-msg b { color: #2456A8; }
.msg time { font-size: 11px; color: rgba(29,47,40,.6); white-space: nowrap; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-img { border: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; width: 180px; height: 140px; }
.chat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-img.missing::after { content: '파일 없음'; display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
.chat-file { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: #fff; border: 0; border-radius: 12px; padding: 9px 12px; text-align: left; max-width: 240px; }
.chat-file span { grid-row: 1 / 3; font-size: 22px; } .chat-file b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chat-file small { color: var(--muted); font-size: 11.5px; }
.msg-menu { position: absolute; top: 100%; z-index: 5; display: flex; background: var(--green); border-radius: 12px; overflow: hidden; margin-top: 4px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4); }
.msg.mine .msg-menu { right: 0; }
.msg-menu button { border: 0; background: none; color: #FFF8E6; font-size: 13px; font-weight: 700; padding: 8px 12px; white-space: nowrap; }
.msg-menu button:hover { background: rgba(255,255,255,.12); }
.chat-pending { flex: none; background: #fff; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.pend { background: var(--cream); border-radius: 99px; padding: 4px 6px 4px 11px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.pend button { border: 0; background: none; color: var(--muted); }
.chat-input { flex: none; background: #fff; padding: 8px 10px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "m m m" "a t s"; gap: 6px 8px; align-items: end; }
.mention-bar { grid-area: m; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mention-bar button { flex: none; border: 1.5px solid var(--line); background: var(--cream); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.attach { grid-area: a; width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.chat-input textarea { grid-area: t; resize: none; border: 0 !important; box-shadow: none !important; background: var(--cream) !important; border-radius: 14px; padding: 10px 12px; min-height: 40px; max-height: 120px; line-height: 1.4; }
.send { grid-area: s; height: 40px; border: 0; border-radius: 12px; background: #FEE500; font-weight: 800; padding: 0 16px; }
.sub-h { margin: 6px 0 8px; font-size: .95em; } .sub-h small { color: var(--muted); margin-left: 4px; }
.people { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.people li { display: flex; align-items: center; gap: 10px; }
.people li div { display: grid; } .people small { color: var(--muted); font-size: .8em; }
.people .avatar { width: 38px; height: 38px; }
.shared { list-style: none; margin: 0; padding: 0; }
.shared button { width: 100%; border: 0; background: none; display: flex; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed var(--line); text-align: left; font-size: .9em; }
.shared button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared small { color: var(--muted); }
.side-foot { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 캘린더 ---------- */
.cal-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-head > b { font-family: var(--display); font-weight: 400; font-size: 1.7em; margin: 0 6px; letter-spacing: 0; }
.cal-legend { display: flex; gap: 10px; margin-left: auto; font-size: .8em; font-weight: 700; color: var(--ink-2); flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .8em; font-weight: 800; color: var(--ink-2); padding: 4px 0; }
.sun { color: #C2412C !important; } .sat { color: #2E64A8 !important; }
.cal-cell { min-height: 86px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; text-align: left; align-items: stretch; overflow: hidden; position: relative; transition: border-color .15s; }
.cal-cell:hover { border-color: var(--green); }
.cal-cell.other { background: transparent; opacity: .45; }
.cal-cell.today { border-color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.cal-cell.today .cal-num { background: var(--green); color: var(--yellow); }
.cal-num { font-weight: 800; font-size: .85em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal-cell.sun .cal-num { color: #C2412C; } .cal-cell.sat .cal-num { color: #2E64A8; }
.cal-ev { display: block; font-size: .74em; font-weight: 700; background: color-mix(in srgb, var(--c) 45%, white); border-left: 3px solid var(--c); border-radius: 4px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.cal-ev.done { opacity: .55; text-decoration: line-through; }
.cal-more { font-size: .72em; color: var(--muted); font-weight: 700; }
.cal-task { position: absolute; top: 5px; right: 6px; font-size: .7em; font-weight: 800; color: var(--ink-2); background: var(--cream-2); border-radius: 6px; padding: 0 5px; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.up-list li { border: 1.5px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 10px 12px; background: #fff; }
.up-top { display: flex; align-items: center; gap: 8px; }
.up-top b { flex: 1; cursor: pointer; font-size: .98em; }
.up-list dl { margin: 6px 0 0; display: grid; grid-template-columns: 52px 1fr; gap: 2px 8px; font-size: .84em; }
.up-list dt { color: var(--muted); font-weight: 700; } .up-list dd { margin: 0; }
.st-sel { width: auto !important; padding: 3px 8px !important; font-size: .8em !important; border-radius: 99px !important; font-weight: 700 !important; }
.st, .st-sel { background: var(--cream-2); }
.st { font-size: .76em; font-weight: 800; border-radius: 99px; padding: 3px 9px; flex: none; }
.st-1 { background: #FFF0C2 !important; } .st-2 { background: #D6EBD0 !important; } .st-3 { background: #E5E2DC !important; }

/* ---------- 체크리스트 ---------- */
.task-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-add input[name=title] { flex: 1 1 220px; }
.task-add select, .task-add input[type=date] { width: auto !important; flex: none; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 99px; padding: 3px; margin-left: auto; }
.seg button { border: 0; background: none; border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.col-head .avatar { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--mc); }
.col-head div { flex: 1; display: grid; } .col-head small { color: var(--muted); font-size: .8em; }
.col-pct { font-family: var(--pixel); font-size: 1.05em; }
.col-add { margin-top: 10px; }
.col-add input { padding: 8px 12px !important; font-size: .9em !important; background: var(--cream) !important; border-style: dashed !important; }

/* ---------- 매출관리 ---------- */
.kpi { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.kpi-month { display: flex; align-items: center; gap: 6px; padding-right: 6px; }
.kpi-month b { font-family: var(--display); font-weight: 400; font-size: 1.6em; letter-spacing: 0; }
.kpi-item { flex: 1 1 140px; background: var(--cream); border-radius: 14px; padding: 10px 14px; display: grid; }
.kpi-item span { font-size: .8em; color: var(--muted); font-weight: 700; }
.kpi-item b { font-size: 1.4em; line-height: 1.2; }
.kpi-item small { font-size: .78em; color: var(--ink-2); font-weight: 700; }
.kpi-item.main { background: var(--green); color: #FFF8E6; } .kpi-item.main span, .kpi-item.main small { color: rgba(255,248,230,.75); }
.kpi-item.main b.neg { color: #FFB8A6; }
.kpi-csv { align-self: center; }
.seg.big { display: flex; margin: 0; } .seg.big button { flex: 1; padding: 9px; font-size: 15px; }
.seg.big button.on.in { background: var(--in); color: #fff; } .seg.big button.on.out { background: var(--out); color: #fff; }
.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: -6px; }
.cat-pick button, .cat-filter button, .ai-chips button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; padding: 7px 4px; font-weight: 700; font-size: .9em; color: var(--ink-2); }
.cat-pick button.on, .cat-filter button.on { background: var(--green); border-color: var(--green); color: #FFF8E6; }
.ai-sub { background: #F4F1FA; border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.ai-sub small { color: var(--muted); font-size: .78em; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 5px; } .ai-chips button { padding: 4px 9px; font-size: .8em; border-radius: 99px; }
.editing-note { margin: 0; background: #FFF3C9; padding: 6px 10px; border-radius: 10px; font-size: .88em; font-weight: 700; }
.chart-legend { display: flex; gap: 14px; align-items: center; font-size: .82em; font-weight: 700; color: var(--ink-2); flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-legend small { margin-left: auto; color: var(--muted); }
.chart-legend.sub { margin-top: 10px; }
.chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .tick.cur { fill: var(--ink); font-weight: 800; }
.chart .cat { font-size: 13px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.chart .val { font-size: 11px; font-weight: 800; fill: var(--in); font-family: var(--font); }
.chart .val.neg { fill: var(--out); }
.cat-filter { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; } .cat-filter button { padding: 4px 11px; border-radius: 99px; font-size: .82em; }
.table-wrap { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: .9em; }
.ledger th { text-align: left; font-size: .82em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1.5px solid var(--line-2); white-space: nowrap; }
.ledger td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td.memo { white-space: normal; color: var(--ink-2); min-width: 120px; }
.ledger tbody tr { cursor: pointer; } .ledger tbody tr:hover { background: var(--cream); }
.ledger .r { text-align: right; } td.in { color: var(--in); font-weight: 800; } td.out { color: var(--out); font-weight: 800; }
.tag { font-size: .78em; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.tag.in { background: #DDEEE3; color: var(--in); } .tag.out { background: #F8DDD5; color: #A8452F; } .tag.ai { background: #E9E2F7; color: #5B3F99; }
.sample { color: var(--muted); background: var(--cream-2); border-radius: 4px; padding: 0 5px; }
.ai-total { background: #F4F1FA; border-radius: 14px; padding: 10px 14px; display: grid; }
.ai-total span { font-size: .8em; color: #5B3F99; font-weight: 700; } .ai-total b { font-size: 1.4em; }
.ai-list { list-style: none; margin: 8px 0; padding: 0; }
.ai-list li { display: grid; grid-template-columns: 1fr auto; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ai-list span { font-size: .78em; color: var(--muted); grid-row: 2; } .ai-list em { font-style: normal; font-weight: 800; grid-row: 1 / 3; grid-column: 2; align-self: center; }
.mini-bars { display: flex; gap: 6px; height: 80px; align-items: flex-end; margin-top: 10px; }
.mini-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 3px; }
.mini-bars i { width: 100%; max-width: 26px; background: #9E86CF; border-radius: 4px 4px 0 0; min-height: 2px; }
.mini-bars small { font-size: 10.5px; color: var(--muted); }

/* ---------- 커뮤니티 ---------- */
.links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; container-type: inline-size; }
.link-card { position: relative; }
.link-card a { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 78px; text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-left: 8px solid var(--lc); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); transition: transform .15s; }
.link-card a:hover { transform: translateY(-2px); }
.link-card.unset a { border-style: dashed; border-left-style: solid; background: transparent; }
.link-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--lc); display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.link-txt { flex: 1; min-width: 0; display: grid; }
.link-txt b { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-txt small { font-size: .78em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-go { color: var(--muted); font-weight: 800; }
.link-edit { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--cream-2); font-size: 12px; opacity: 0; transition: opacity .15s; }
.link-card:hover .link-edit, .link-edit:focus { opacity: 1; }
@media (hover: none) { .link-edit { opacity: .8; } }
.memo-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .memo-tools small { color: var(--muted); }
.corkboard { position: relative; height: calc(100% - 44px); min-height: 280px; border-radius: 14px; background: #D9B98C radial-gradient(rgba(120,80,40,.18) 1px, transparent 1.5px) 0 0 / 9px 9px; box-shadow: inset 0 0 0 6px #B8885A; overflow: hidden; }
.note { position: absolute; width: 170px; background: var(--nc); box-shadow: 0 8px 14px -8px rgba(0,0,0,.45); transform: rotate(var(--r)); border-radius: 3px 3px 14px 3px; }
.note.lift { transform: rotate(0) scale(1.04); z-index: 5; box-shadow: 0 16px 24px -10px rgba(0,0,0,.5); }
.note-bar { display: flex; gap: 4px; align-items: center; padding: 6px 8px 0; cursor: grab; touch-action: none; }
.note-grip { flex: 1; color: rgba(0,0,0,.35); }
.nc { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.2); padding: 0; }
.note-x { border: 0; background: none; color: rgba(0,0,0,.45); font-size: 12px; margin-left: 2px; }
.note textarea { width: 100%; height: 110px; resize: none; border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: 'Gowun Dodum', var(--font); font-size: 16px; font-weight: 600; line-height: 1.4; padding: 6px 10px 10px; }

.game { display: grid; gap: 8px; }
.game-hud { display: flex; justify-content: space-between; font-family: var(--pixel); font-size: 13px; background: var(--green); color: var(--yellow); padding: 6px 12px; border-radius: 10px; }
.game-hud b { color: #FFF8E6; font-weight: 400; }
.game-screen { position: relative; border-radius: 12px; overflow: hidden; border: 4px solid var(--green); }
.game-screen canvas { width: 100%; display: block; image-rendering: pixelated; aspect-ratio: 4 / 3; touch-action: none; }
.game-screen canvas.hit { filter: brightness(1.8) saturate(.4); }
.game-over { position: absolute; inset: 0; background: rgba(29,47,40,.88); color: #FFF8E6; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 10px; }
.game-over b { font-family: var(--pixel); font-size: 20px; color: var(--yellow); font-weight: 400; }
.game-over p { margin: 0; font-size: 13.5px; } .game-over small { font-size: 12px; opacity: .7; }
.game-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game-pad button { border: 0; background: var(--cream-2); border-radius: 10px; padding: 10px; font-size: 16px; user-select: none; touch-action: manipulation; }

.editor { display: grid; gap: 10px; }
.ed-stage { position: relative; min-height: 200px; background: repeating-conic-gradient(#f1ece0 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.ed-stage canvas, .ed-stage video { max-width: 100%; max-height: 300px; display: block; }
.ed-stage video { width: 100%; background: #000; }
.ed-drop { position: absolute; inset: 0; display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; background: rgba(255,253,247,.85); text-align: center; padding: 10px; }
.ed-drop.small { inset: auto 8px 8px auto; padding: 4px 10px; font-size: 12px; border-radius: 99px; background: rgba(255,255,255,.9); border-width: 1.5px; z-index: 3; }
.ed-stage.video .ed-drop.small { top: 8px; bottom: auto; }
.vd-cap { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-weight: 800; padding: 4px 14px; border-radius: 6px; pointer-events: none; }
.ed-ctrl { display: grid; gap: 8px; font-size: .9em; }
.ed-ctrl.off { opacity: .45; pointer-events: none; }
.presets { display: flex; gap: 5px; flex-wrap: wrap; }
.presets button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 99px; padding: 4px 11px; font-size: .85em; font-weight: 700; }
.rng { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: .9em; }
input[type=range] { accent-color: var(--green); width: 100%; }
.ed-row input:not([type=color]) { flex: 1; padding: 7px 10px; font-size: .95em; }
.ed-row select { width: auto; padding: 5px 8px; font-size: .9em; }
.trim { display: grid; gap: 4px; }
.trim-row { display: grid; grid-template-columns: 30px 1fr 40px auto; gap: 8px; align-items: center; font-weight: 700; }
.trim-row em { font-style: normal; font-family: var(--pixel); font-size: 11px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1180px) {
  .power { grid-template-columns: auto 1fr; }
  .power-chips { grid-row: auto; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  body { font-size: 15px; }
  .topbar-row { padding: 8px 16px 4px; }
  .nav { padding: 0 16px 8px; }
  .nav a, .nav button { padding: 7px 11px; font-size: 14px; }
  .nav-edit { display: none !important; }
  .clock { display: none; }
  .main { padding: 14px 16px 80px; }
  .sample-banner { width: calc(100% - 32px); }
  .view-head h2 { font-size: 28px; }
  .board { display: flex; flex-direction: column; gap: 14px; }
  .block { margin-bottom: 0; grid-column: auto !important; grid-row: auto !important; z-index: auto !important; overflow: visible; }
  .block-body { overflow: visible; }
  .block-plain > .block-body { overflow: visible; }
  .block[data-block="chatRoom"] { height: calc(100dvh - 150px); min-height: 420px; }
  .block[data-block="chatRoom"] > .block-body { height: 100%; }
  .block[data-block="memo"] .corkboard { height: 360px; }
  .block[data-block="rooms"] .rooms { gap: 12px; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .mh-imgs { width: 200px; }
  .chips { justify-content: center; }
  .member-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 10.5px; padding: 0 3px; }
  .cal-legend { margin-left: 0; width: 100%; order: 9; }
  .seg { margin-left: 0; }
  .modal { padding: 0; place-items: end center; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 20px 16px 28px; width: 100%; }
  .modal-box.wide { width: 100%; }
}
@media (max-width: 560px) {
  .rooms { grid-template-columns: 1fr; }
  .room-scene { height: 240px; }
  .power-chips { grid-template-columns: repeat(2, 1fr); }
  .turbine { width: 76px; }
  .lcd { font-size: 2.4em; }
  .brief-grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .brand-sm { font-size: 17px; }
  .icon-btn { width: 36px; height: 36px; }
  .msg { max-width: 94%; }
  .chat-img { width: 150px; height: 120px; }
  .cal-cell { min-height: 54px; }
  .cal-ev { display: none; }
  .cal-cell:has(.cal-ev)::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--green); }
  .cal-task { display: none; }
  .task-add > * { flex: 1 1 45% !important; }
  .task-add input[name=title] { flex-basis: 100% !important; }
  .kpi-month { width: 100%; justify-content: center; }
  .kpi-item { flex-basis: 40%; }
  .inline-add { flex-wrap: wrap; } .inline-add input[name=title] { flex-basis: 100%; }
}

/* =========================================================
   v2 사무실 카드: 책상 높이 통일 · 프로필 사진 · 취향 소품
   ========================================================= */
.room-scene { height: 250px; }
.person-wrap { left: 18%; right: 4%; width: auto; height: 168px; bottom: 70px; justify-content: center; }
.person img { filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.desk { height: 82px; background: linear-gradient(#7E5438 0 2px, #8C5F3F 2px); }
.desk-top { position: absolute; left: -6px; right: -6px; top: -12px; height: 16px; background: linear-gradient(#B98A60, #A87A52); border-radius: 4px 4px 0 0; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.monitor { left: 10px; bottom: 80px; width: 70px; height: 48px; z-index: 2; }
.monitor::after { left: 28px; }
.desk-item { position: absolute; bottom: 82px; z-index: 3; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .2s; }
.desk-item svg { display: block; width: 100%; height: auto; overflow: visible; }
.desk-item:hover, .desk-item.pop { transform: translateY(-4px) rotate(-4deg); }
.desk-item.drink { right: 12px; width: 34px; }
.desk-item.prop { right: 52px; width: 32px; bottom: 80px; }
.steam path { animation: steam 2.4s ease-in-out infinite; }
.steam path + path { animation-delay: .8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-6px); } }
.bubbles circle { animation: fizz 1.8s linear infinite; }
.bubbles circle:nth-child(2) { animation-delay: .6s; } .bubbles circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes fizz { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.nameplate { bottom: 14px; }
.chalk { left: 10px; top: 10px; min-width: 92px; padding: 5px 10px 6px; border-width: 4px; }
.chalk b { font-size: 28px; }
.chalk span { font-size: 14px; }
.bubble { top: 96px; }
.room.talk .bubble { opacity: 1; transform: none; }
.wall-item { position: absolute; z-index: 1; pointer-events: auto; }
.wall-item.lp { top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; background: repeating-radial-gradient(#1E1E22 0 2px, #2C2C33 2px 4px); box-shadow: 0 3px 6px rgba(0,0,0,.25); animation: spin 4s linear infinite; }
.wall-item.lp i { position: absolute; inset: 16px; border-radius: 50%; background: #E58E80; }
.wall-item.disco { top: 0; right: 20px; width: 34px; height: 64px; }
.wall-item.disco::before { content: ''; position: absolute; left: 16px; top: 0; width: 2px; height: 28px; background: #8a8a8a; }
.wall-item.disco i { position: absolute; left: 1px; top: 28px; width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(#eee, #9fc3e6, #fff, #f2cf6b, #ddd, #f7b3c2, #eee); box-shadow: 0 0 12px rgba(255,255,255,.8); animation: spin 5s linear infinite; }
.room-duty { min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tasks.mini.scroll { height: 122px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .room-scene { height: 250px; } }

/* =========================================================
   사무실 전경 (직원들이 돌아다니는 2.5D 오피스)
   ========================================================= */
.floor { position: relative; width: 100%; aspect-ratio: 1000 / 470; max-height: 100%; margin: 0 auto; }
.floor-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.walker { position: absolute; width: 0; height: 0; transition: left 2.6s linear, top 2.6s linear; z-index: 5; cursor: pointer; }
.walker-body { position: absolute; left: -22px; bottom: 0; width: 44px; display: grid; justify-items: center; transform-origin: 50% 100%; }
.walker.walking .walker-body { animation: walkbob .35s ease-in-out infinite; }
@keyframes walkbob { 50% { transform: translateY(-4px) rotate(2deg); } }
.walker-head { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--mc); background: var(--mc); object-fit: cover; box-shadow: 0 2px 4px rgba(0,0,0,.25); position: relative; z-index: 1; }
.walker-torso { width: 30px; height: 22px; margin-top: -6px; border-radius: 12px 12px 6px 6px; background: var(--mc); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.walker-legs { display: flex; gap: 6px; margin-top: -1px; }
.walker-legs i { width: 7px; height: 9px; background: #3A4248; border-radius: 0 0 3px 3px; }
.walker.walking .walker-legs i:first-child { animation: leg .35s ease-in-out infinite; }
.walker.walking .walker-legs i:last-child { animation: leg .35s ease-in-out infinite reverse; }
@keyframes leg { 50% { transform: translateY(-3px); } }
.walker-shadow { position: absolute; left: -16px; top: -5px; width: 32px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.18); }
.walker-name { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 800; background: var(--green); color: #FFF8E6; padding: 1px 8px; border-radius: 99px; }
.walker-say { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); white-space: nowrap; background: #fff; border: 2px solid var(--green); border-radius: 12px; padding: 2px 9px; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none; }
.walker.saying .walker-say, .walker:hover .walker-say { opacity: 1; }
.walker.flip .walker-body { transform: scaleX(-1); }
.walker.flip .walker-head { transform: scaleX(-1); }
.floor-legend { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: var(--muted); background: rgba(255,253,247,.85); padding: 3px 10px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .walker { transition: none; } .walker-body, .walker-legs i { animation: none !important; } }
.floor-wrap { display: flex; justify-content: center; align-items: center; padding-top: 0 !important; background: linear-gradient(#FBF4E4, #F5EBD3); }
@media (min-width: 900px) { .floor { height: 100%; width: auto; max-width: 100%; } }
@media (max-width: 899px) { .floor-wrap { overflow: hidden !important; padding: 0 !important; } .walker-head { width: 30px; height: 30px; } .walker-torso { width: 22px; height: 16px; } .walker-name { font-size: 10px; } .floor-legend { display: none; } }

/* =========================================================
   v3 카드 장면: ‘프로필 스튜디오’ 컨셉 (책상·칠판 제거, 얼굴 크게)
   ========================================================= */
.room-scene.studio { height: 270px; background: var(--ms); }
.studio-bg { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 105%, var(--mc) 0 38%, transparent 70%), linear-gradient(160deg, #FFFDF7 0%, var(--ms) 60%);
}
.studio-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(29,47,40,.07) 1.2px, transparent 1.4px); background-size: 16px 16px; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb.o1 { width: 150px; height: 150px; right: -40px; top: -50px; background: var(--mc); opacity: .45; }
.orb.o2 { width: 70px; height: 70px; left: -20px; top: 70px; background: #fff; opacity: .6; }
.studio-word { position: absolute; left: 14px; top: 8px; font-family: var(--display); font-size: 46px; line-height: 1; color: var(--mi); opacity: .13; letter-spacing: .02em; white-space: nowrap; }
.studio .person-wrap { left: 0; right: 0; width: auto; bottom: 0; height: 250px; z-index: 2; justify-content: center; }
.studio .person img { height: 100%; width: auto; filter: drop-shadow(0 10px 16px rgba(29,47,40,.18)); -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
.studio-name { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: flex; align-items: baseline; gap: 7px; background: rgba(29,47,40,.88); color: #FFF8E6; padding: 6px 14px; border-radius: 14px; backdrop-filter: blur(6px); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.studio-name span { font-size: 12.5px; font-weight: 700; color: var(--mc); }
.studio-name b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1; }
.studio-name em { font-style: normal; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.14); padding: 1px 7px; border-radius: 99px; }
.studio-items { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.glass-chip { width: 46px; height: 46px; border-radius: 15px; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 7px; box-shadow: 0 6px 14px -8px rgba(29,47,40,.45); cursor: pointer; transition: transform .2s; }
.glass-chip svg { width: 100%; height: 100%; overflow: visible; }
.glass-chip:hover, .glass-chip.pop { transform: translateY(-3px) rotate(-5deg); }
.studio .bubble { top: 14px; left: auto; right: 12px; max-width: 70%; }
.studio .bubble::after { right: auto; left: 18px; top: auto; bottom: -9px; border: 7px solid transparent; border-top-color: var(--green); }
.studio .fx-sweat { right: 30%; top: 14%; } .studio .fx-zzz { right: 26%; top: 4%; } .studio .fx-spark { right: 28%; top: 6%; }
.studio-items { left: 12px; right: auto; top: 12px; bottom: auto; }
.room-role.inline { display: inline; font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.room-top { align-items: center; }
/* 모바일: 사무실 전경 생략 (편집 모드는 이미 PC 전용) */
@media (max-width: 899px) { .block[data-block="floor"] { display: none !important; } }

/* =========================================================
   단톡방: 상단 우측 패널
   ========================================================= */
.chat-open { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: #FEE500; color: #2B2400; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.chat-open:hover { filter: brightness(.97); }
.chat-open .nav-badge { top: -6px; right: -4px; }
body.chat-on .chat-open { outline: 3px solid rgba(29,47,40,.25); }
.chat-drawer { position: fixed; z-index: 70; top: 112px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid #A5BBCB; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20,32,27,.45); animation: drawerIn .22s ease-out; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; background: #B7CBD9; flex-wrap: wrap; }
.drawer-head b { font-size: 16px; }
.drawer-head small { flex: 1; min-width: 120px; font-size: 12px; color: var(--ink-2); }
.drawer-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); font-size: 14px; }
.drawer-side { flex: none; max-height: 45%; overflow: auto; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.chat-drawer .chat { flex: 1; min-height: 0; height: auto; border: 0; border-radius: 0; }
@media (max-width: 899px) {
  .chat-open span { display: none; }
  .chat-open { padding: 8px 12px; }
  .chat-drawer { inset: 0; width: auto; top: 0; right: 0; bottom: 0; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.gcal-btn { border-color: #9DBCE0; color: #1F4E8C; background: #EEF4FB; }
.gcal-btn.err { border-color: #EBC2B6; color: #A8452F; background: #FBEDE8; }
.picked { display: inline-block; margin-left: 6px; font-size: .78em; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #FFF0C2; color: #6E5200; }
.picked.done { background: #D6EBD0; color: #2C6337; }
.picked.g { background: #EEF4FB; color: #1F4E8C; }
@keyframes drawerIn { from { transform: translateX(24px); } to { transform: none; } }
.brand-pill { white-space: nowrap; }
@media (max-width: 899px) { .chat-drawer { animation: none; } }
@media (max-width: 420px) { .brand-sm { font-size: 15px; padding: 6px 12px 6px 10px; } .top-right { gap: 6px; } .icon-btn { width: 34px; height: 34px; font-size: 14px; } }
@media (max-width: 560px) { .drawer-head small { display: none; } .drawer-head b { flex: 1; } }

/* 오늘의 발전소 · 작은 월간 달력 */
.mc { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.mc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mc-head b { font-family: var(--display); font-weight: 400; font-size: 1.35em; letter-spacing: 0; margin: 0 2px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mc-dow { text-align: center; font-size: .75em; font-weight: 800; color: var(--ink-2); }
.mc-cell { border: 1px solid var(--line); background: #fff; border-radius: 8px; height: 40px; padding: 3px 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .85em; font-weight: 700; color: var(--ink); }
.mc-cell:hover { border-color: var(--green); }
.mc-cell.other { opacity: .38; background: transparent; }
.mc-cell.sun span { color: #C2412C; } .mc-cell.sat span { color: #2E64A8; }
.mc-cell.today span { background: var(--green); color: var(--yellow); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.mc-cell.pick { border: 2px solid #E4A72C; background: #FFF8E1; }
.mc-dots { display: flex; gap: 2px; font-style: normal; }
.mc-dots b { width: 6px; height: 6px; border-radius: 50%; }
.mc-day { border-top: 1px dashed var(--line); padding-top: 6px; min-height: 0; overflow: auto; }
.mc-day h4 { margin: 0 0 4px; font-size: .88em; }
.mc-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mc-day li { display: grid; grid-template-columns: 8px 44px 1fr auto; gap: 6px; align-items: center; font-size: .86em; cursor: pointer; padding: 3px 4px; border-radius: 6px; }
.mc-day li:hover { background: var(--cream); }
.mc-day li i { width: 8px; height: 8px; border-radius: 50%; }
.mc-day li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-day li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mc-day li em { font-style: normal; font-size: .9em; color: var(--ink-2); }
.mc-day .empty { padding: 2px; margin: 0; font-size: .82em; }
.mc-cell { height: 34px; }
.mc-grid { gap: 2px; }
.mc { gap: 6px; }
.block[data-block="miniCal"] .block-body { overflow: hidden; display: flex; flex-direction: column; }
.mc { flex: 1; min-height: 0; }
.mc-day { flex: 1; }
@media (max-width: 899px) { .block[data-block="miniCal"] .block-body { overflow: visible; } .mc-cell { height: 40px; } }
