/* =========================================================
   pages.css — 상세 페이지 · 모달 · 드로어 · 팝오버 · 폼
   ========================================================= */
.page { flex: 1; min-width: 0; }
.page .content { padding-top: 12px; }
.page-title-row { padding: 6px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.page-title-row .pagehead-right { margin-left: auto; }
.page-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 12px; }
.page-sub { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }
.page-sub a { color: var(--accent-text); }
.title-av { width: 40px; height: 40px; border-radius: 50%; }
.muted { color: var(--text-3); }
.link { color: var(--accent-text); font-weight: 500; font-size: 12px; }
.rot90 { transform: rotate(90deg); } .rot-90 { transform: rotate(-90deg); }

/* toolbar / chips */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar.in-card { margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); font-size: 12px; font-weight: 500; color: var(--text-2); transition: background .15s, border-color .15s, color .15s; }
.chip:hover { background: var(--bg-hover); }
.chip.active { background: var(--btn-dark-bg); color: var(--btn-dark-text); border-color: transparent; }
.chip.static { cursor: default; font-style: normal; padding: 3px 9px; font-size: 11px; background: var(--bg-sunken); }
.chip.static button { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: var(--text-3); }
.chip.static button svg { width: 10px; height: 10px; }
.count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bg-active); color: var(--text-2); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.segmented.sm button { padding: 3px 10px; font-size: 11.5px; }
.chart-host { min-height: 200px; }
.chart-host.tall { min-height: 280px; }
.chart-svg { width: 100%; display: block; overflow: visible; stroke: none; stroke-width: 1; }
.chart-svg .gridline { stroke: var(--line); stroke-dasharray: 3 4; }
.chart-svg .axis { font-family: var(--font-mono); font-size: 10px; fill: var(--text-3); }
.chart-svg .bar { transform-box: fill-box; transform-origin: bottom; animation: growY .6s cubic-bezier(.3,.7,.3,1) both; cursor: pointer; }
.chart-svg .bar:hover { opacity: .85; }
.sparkline { width: 80px; height: 26px; stroke: none; }
.tabs.inner { padding: 0; margin: 4px 0 14px; background: transparent; }
.tabs.inner .tab { padding: 8px 12px 10px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 12.5px; }
.dl dt { color: var(--text-3); } .dl dd { margin: 0; color: var(--text); font-weight: 500; }
.dl dd a { color: var(--accent-text); }
.prob { height: 4px; width: 80px; background: var(--line); border-radius: 2px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.prob i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 2px; }
.health-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.health-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 2px; animation: growX .6s ease both; transform-origin: left; }

/* home */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.dash-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-sunken); transition: border-color .15s, transform .15s; }
.dash-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.dash-tile > div { flex: 1; min-width: 0; } .dash-tile b { display: block; font-size: 13px; } .dash-tile span { font-size: 11px; color: var(--text-3); }
.dash-tile svg { color: var(--text-3); }
.people-mini li a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; position: relative; }
.people-mini li a:hover { background: var(--bg-hover); }
.people-mini img { width: 30px; height: 30px; border-radius: 50%; }
.people-mini .dot { position: absolute; left: 27px; top: 27px; }
.people-mini b { display: block; font-size: 12.5px; } .people-mini span { font-size: 11px; color: var(--text-3); }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--bg-elev); background: var(--text-4); display: inline-block; }
.dot.online { background: var(--green); } .dot.away { background: var(--yellow); }

/* companies */
.co-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.co-card { padding: 16px; transition: transform .15s, border-color .15s; }
.co-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.co-head { display: flex; align-items: center; gap: 10px; }
.co-head > div { flex: 1; min-width: 0; } .co-head b { display: block; font-size: 14px; } .co-head span { font-size: 11.5px; color: var(--text-3); }
.co-logo { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.co-logo.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
.co-logo.lg { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
.co-logo svg { width: 16px; height: 16px; }
.co-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.co-stats span { display: block; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.co-stats b { font-size: 13.5px; font-weight: 600; }
.person-card { align-items: center; text-align: center; padding: 20px 16px; gap: 4px; transition: transform .15s, border-color .15s; }
.person-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.person-card img { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 6px; }
.person-card .av-wrap { position: relative; } .person-card .av-wrap .dot { position: absolute; right: 2px; bottom: 8px; width: 11px; height: 11px; }
.person-card b { font-size: 13.5px; } .person-card > span { font-size: 12px; color: var(--text-3); }
.person-card .btn { margin-top: 10px; }
.person-card.add { justify-content: center; cursor: pointer; border-style: dashed; color: var(--text-3); min-height: 180px; }
.person-card.add:hover { color: var(--text); }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.people-grid .co-stats { grid-template-columns: 1fr 1fr; width: 100%; margin-top: 12px; }
.note-card b { font-size: 13.5px; } .note-card p { color: var(--text-2); font-size: 12.5px; margin: 6px 0 10px; white-space: pre-line; }
.pick-list { margin-top: 10px; max-height: 300px; overflow: auto; }
.pick-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.pick-list li:hover { background: var(--bg-hover); }
.pick-list img { width: 28px; height: 28px; border-radius: 50%; grid-row: span 2; }
.pick-list b { font-size: 12.5px; } .pick-list span { font-size: 11px; color: var(--text-3); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 300px; transition: border-color .15s, background .15s; }
.kcol.over { border-color: var(--accent); background: var(--accent-tint); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: 12.5px; }
.kcol-head .mono { margin-left: auto; font-size: 11px; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; }
.kcard { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.kcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.kcard.dragging { opacity: .4; }
.kcard-top { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 4px; }
.kcard b { display: block; font-size: 12.5px; line-height: 1.35; }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kcard .amt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.kcard .favatar { width: 22px; height: 22px; }
.kcard .prob { width: 100%; margin: 8px 0 0; }
.kadd { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-radius: 8px; border: 1px dashed var(--line-strong); color: var(--text-3); font-size: 12px; }
.kadd:hover { color: var(--text); background: var(--bg-hover); }
.deal-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.deal-hero b { display: block; font-size: 15px; } .deal-hero a { font-size: 12px; color: var(--accent-text); }
.drawer-actions { display: flex; gap: 8px; margin-top: 16px; }
input[type="range"] { accent-color: var(--accent); vertical-align: middle; width: 120px; }

/* tasks */
.tasklist li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.tasklist li:last-child { border-bottom: 0; }
.tasklist.compact li { padding: 7px 2px; }
.tk-main { flex: 1; min-width: 0; } .tk-main b { display: block; font-size: 12.5px; font-weight: 500; } .tk-main span { font-size: 11px; color: var(--text-3); }
.tasklist li.done .tk-main b { text-decoration: line-through; color: var(--text-3); }
.tasklist .favatar { width: 22px; height: 22px; }
.pri { font-style: normal; font-weight: 600; text-transform: capitalize; }
.pri.high { color: var(--red); } .pri.medium { color: var(--orange); } .pri.low { color: var(--blue); }
.quick-add { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 9px; margin-bottom: 6px; color: var(--text-3); }
.quick-add input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 12.5px; color: var(--text); }
.quick-add select { border: 1px solid var(--line); background: var(--bg-elev); border-radius: 6px; font-size: 11.5px; padding: 3px 6px; color: var(--text); }
.ring-wrap { position: relative; width: 140px; height: 140px; margin: 6px auto 12px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); stroke: none; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center b { font-size: 22px; } .ring-center span { font-size: 11px; color: var(--text-3); }

/* notes */
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; min-height: 480px; }
.notes-list { padding: 12px; }
.notes-list .search { max-width: none; margin-bottom: 8px; }
.notes-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.notes-list li:hover { background: var(--bg-hover); } .notes-list li.active { background: var(--bg-active); }
.notes-list b { display: block; font-size: 12.5px; } .notes-list span { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-list em { font-style: normal; font-size: 10.5px; color: var(--text-4); font-family: var(--font-mono); }
.notes-editor { padding: 16px 20px; }
.notes-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.note-title { flex: 1; border: 0; background: transparent; font-size: 20px; font-weight: 600; outline: 0; color: var(--text); font-family: inherit; }
.note-body { flex: 1; min-height: 320px; border: 0; background: transparent; outline: 0; resize: vertical; font: inherit; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.notes-foot { display: flex; justify-content: space-between; font-size: 11.5px; padding-top: 10px; border-top: 1px solid var(--line); }

/* calendar */
.cal-layout { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head b { font-size: 15px; min-width: 150px; text-align: center; }
.cal-head .btn { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); text-align: center; padding: 4px 0 6px; font-weight: 600; }
.cal-cell { min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; gap: 3px; }
.cal-cell:hover { background: var(--bg-hover); } .cal-cell.off { border-color: transparent; cursor: default; }
.cal-cell.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }
.cal-day { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.cal-cell.today .cal-day { background: var(--accent); color: #fff; border-radius: 999px; width: 20px; height: 20px; display: inline-grid; place-items: center; }
.cal-ev { display: block; font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.agenda li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border-bottom: 0; }
.agenda i { width: 4px; height: 28px; border-radius: 2px; background: var(--c); }
.agenda div { flex: 1; } .agenda b { display: block; font-size: 12.5px; } .agenda span { font-size: 11px; color: var(--text-3); }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.prod-card { padding: 16px; cursor: pointer; transition: transform .15s, border-color .15s; }
.prod-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.prod-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prod-card > b { font-size: 14px; }
.prod-price { margin: 10px 0 12px; } .prod-price b { font-size: 20px; } .prod-price span { margin-left: 4px; font-size: 12px; }
.prod-foot { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.prod-foot span { display: block; font-size: 10.5px; } .prod-foot b { font-size: 13px; }

/* pipeline / support */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 70px 1fr 30px; align-items: center; gap: 10px; font-size: 12px; }
.funnel-bar { height: 18px; background: var(--bg-sunken); border-radius: 5px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--blue))); border-radius: 5px; animation: growX .7s ease both; transform-origin: left; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 20px 0 6px; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; padding-bottom: 46px; }
.podium-item img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--line); }
.podium-item.p0 img { border-color: var(--yellow); width: 64px; height: 64px; }
.podium-item b { font-size: 12.5px; } .podium-item span { font-size: 11px; color: var(--text-3); }
.podium-item i { position: absolute; bottom: 0; width: 64px; border-radius: 8px 8px 0 0; background: var(--bg-sunken); border: 1px solid var(--line); font-style: normal; font-weight: 700; font-family: var(--font-mono); display: grid; place-items: center; color: var(--text-3); }
.podium-item.p0 i { height: 40px; background: var(--accent-tint); color: var(--accent-text); } .podium-item.p1 i { height: 30px; } .podium-item.p2 i { height: 22px; }
.podium-item.p0 { order: 2; } .podium-item.p1 { order: 1; } .podium-item.p2 { order: 3; }

/* settings */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-body { padding: 22px 24px; }
.settings-body h2 { margin: 0 0 16px; font-size: 16px; } .settings-body h3 { margin: 18px 0 8px; font-size: 13.5px; }
.settings-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.profile-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; } .profile-row img { width: 56px; height: 56px; border-radius: 50%; }
.theme-picker { display: flex; gap: 12px; margin-bottom: 8px; }
.theme-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 500; }
.theme-opt.active { border-color: var(--accent); }
.theme-prev { width: 120px; height: 72px; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); }
.theme-prev.light { background: #f3f4f6; } .theme-prev.dark { background: #14120f; }
.theme-prev i { display: block; height: 10px; border-radius: 3px; }
.theme-prev.light i { background: #fff; border: 1px solid #e7e9ec; } .theme-prev.dark i { background: #1e1b18; border: 1px solid #2a2622; }
.theme-prev.light i:first-child { width: 50%; background: #0f9d8a; border: 0; } .theme-prev.dark i:first-child { width: 50%; background: #f4831f; border: 0; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan-card.current { background: var(--bg-sunken); } .plan-card.rec { border-color: var(--accent); }
.plan-card .price { font-size: 22px; font-weight: 600; } .plan-card .price small { font-size: 11px; color: var(--text-3); font-weight: 400; }
.plan-card .btn { margin-top: auto; justify-content: center; }
.rec-tag { position: absolute; top: -9px; left: 14px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.feat { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; font-size: 12.5px; }
.feat li { display: flex; align-items: center; gap: 6px; } .feat svg { width: 13px; height: 13px; color: var(--green); }

/* docs */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; }
.docs-nav { padding: 12px; } .docs-nav .search { max-width: none; margin-bottom: 8px; }
.docs-nav a { display: block; padding: 7px 10px; border-radius: 7px; font-size: 12.5px; color: var(--text-2); }
.docs-nav a:hover { background: var(--bg-hover); } .docs-nav a.active { background: var(--bg-active); color: var(--text); font-weight: 600; }
.docs-body { padding: 24px 28px; font-size: 13.5px; line-height: 1.7; }
.docs-body h2 { margin: 0 0 10px; font-size: 18px; } .docs-body h3 { font-size: 14px; margin: 18px 0 6px; }
.docs-body code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-sunken); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.docs-foot { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }

/* forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev); color: var(--text); font: inherit; font-size: 13px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input.sm { height: 28px; font-size: 12px; width: auto; }
.input:disabled { background: var(--bg-sunken); color: var(--text-3); }
textarea.input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.input-group { display: flex; align-items: center; gap: 6px; } .input-group > span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.switch { flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(14px); }
.switch.row { padding: 10px 0; border-bottom: 1px solid var(--line); } .switch.row div b { display: block; font-size: 13px; color: var(--text); }
.color-row { display: flex; gap: 8px; } .color-row label { flex-direction: row; cursor: pointer; } .color-row input { display: none; }
.color-row .dash-dot { width: 22px; height: 22px; border-radius: 6px; border: 2px solid transparent; } .color-row input:checked + .dash-dot { border-color: var(--text); }
.chip-input { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev); cursor: text; }
.chip-input input { flex: 1; min-width: 160px; border: 0; background: transparent; outline: 0; font: inherit; font-size: 13px; color: var(--text); }
.invite-link { margin-top: 4px; } .invite-link .input-group { margin-top: 6px; }
.access-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.access-list li > div { flex: 1; } .access-list b { display: block; font-size: 12.5px; } .access-list span { font-size: 11px; color: var(--text-3); }
.btn-danger { background: var(--red); color: #fff; border-color: transparent; } .btn-danger:hover { background: var(--red); filter: brightness(1.1); }
.btn-danger-ghost { color: var(--red); } .btn-danger-ghost svg { color: var(--red); }
.btn:disabled { opacity: .6; cursor: default; }

/* modal / drawer */
.modal-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .18s; backdrop-filter: blur(2px); }
.modal-wrap.in { opacity: 1; } .modal-wrap.out { opacity: 0; }
.modal { width: min(520px, 100%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); transform: translateY(8px) scale(.98); transition: transform .18s; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal-wrap.in .modal { transform: none; }
.modal.sm { width: min(420px, 100%); } .modal.lg { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.modal-body { padding: 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-sunken); border-radius: 0 0 16px 16px; }
.drawer-wrap { place-items: stretch end; padding: 0; }
.drawer { width: min(440px, 100%); height: 100%; background: var(--bg-elev); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(30px); transition: transform .22s; display: flex; flex-direction: column; margin-left: auto; }
.modal-wrap.in .drawer { transform: none; }
.drawer-body { padding: 18px; overflow: auto; flex: 1; }
.pop-anim { animation: rise .15s ease both; }
.popover-title.row { display: flex; justify-content: space-between; align-items: center; }
.popover-item.check { cursor: pointer; } .popover-item.check input { margin-right: 4px; }
.notif-list { max-height: 320px; overflow: auto; }
.notif-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.notif-list li:hover { background: var(--bg-hover); } .notif-list li.read { opacity: .65; }
.notif-list li > div { flex: 1; } .notif-list em { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; }
.notif-list .fav { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--t); color: var(--c); flex: none; }
.notif-list .fav svg { width: 12px; height: 12px; }
.notif-list .fav.mention { --c: var(--blue); --t: var(--blue-tint); } .notif-list .fav.upload { --c: var(--purple); --t: var(--purple-tint); } .notif-list .fav.join { --c: var(--yellow); --t: var(--yellow-tint); } .notif-list .fav.deal { --c: var(--green); --t: var(--green-tint); }
.unread { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.account-head { display: flex; align-items: center; gap: 10px; padding: 8px; }
.account-head img { width: 36px; height: 36px; border-radius: 50%; } .account-head b { display: block; font-size: 13px; } .account-head span { font-size: 11.5px; color: var(--text-3); }

/* palette */
.palette { position: fixed; z-index: 80; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 420px; overflow: auto; animation: rise .12s ease both; }
.pal-group { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; }
.pal-item svg { color: var(--text-3); } .pal-item .go { margin-left: auto; opacity: 0; }
.pal-item:hover, .pal-item.active { background: var(--bg-hover); } .pal-item.active .go { opacity: 1; }
.pal-item span { color: var(--text-3); font-size: 11.5px; }
.pal-empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 12.5px; }

/* edit mode / widgets */
.widget-remove { display: none; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; place-items: center; z-index: 2; box-shadow: var(--shadow); }
.widget-remove svg { width: 11px; height: 11px; }
body.editing .card[data-tabs] { position: relative; outline: 1.5px dashed var(--accent); outline-offset: 2px; }
body.editing .card[data-tabs] .widget-remove { display: grid; }
body.editing .grip { opacity: 1; color: var(--accent); }
.card.widget-hidden { display: none !important; }
.card.expanded { grid-column: 1 / -1; }
.widget-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.widget-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-align: left; font-size: 12.5px; }
.widget-tile:not([disabled]):hover { border-color: var(--accent); background: var(--accent-tint); }
.widget-tile[disabled] { opacity: .5; cursor: default; } .widget-tile span { font-size: 11px; color: var(--text-3); } .widget-tile svg { color: var(--text-3); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state svg { width: 28px; height: 28px; color: var(--text-4); margin-bottom: 4px; } .empty-state b { color: var(--text); font-size: 14px; } .empty-state .btn { margin-top: 10px; }
.empty-state.span-3 { grid-column: span 3; }
body.compact { font-size: 12.5px; } body.compact .card { padding: 10px 12px 12px; } body.compact .table td { padding: 6px 10px; }
.icon-btn[href] { text-decoration: none; }

/* responsive */
@media (max-width: 1280px) { .co-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .people-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .kanban { grid-template-columns: repeat(5, 220px); } }
@media (max-width: 960px) { .page-title-row { padding-left: 14px; padding-right: 14px; } .notes-layout, .cal-layout, .settings-layout, .docs-layout { grid-template-columns: 1fr; } .settings-nav { flex-direction: row; overflow-x: auto; } .settings-nav .nav-item { width: auto; } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .page-title-row .pagehead-right { width: 100%; margin-left: 0; } .co-grid, .prod-grid, .people-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .page-title { font-size: 19px; } .cal-cell { min-height: 54px; padding: 4px; } .cal-ev { display: none; } .cal-cell .cal-day::after { content: ""; } .drawer { width: 100%; } .modal-wrap { padding: 8px; } .empty-state.span-3 { grid-column: span 1; } .toolbar .search { width: 100%; max-width: none; } }

/* ===== 감사 후 추가: 일괄 작업 바 · 탭 닫기 · 섹션 접기 · 주간 뷰 · 타임라인 · 포커스 ===== */
.bulkbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border-radius: 9px; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 12.5px; animation: rise .15s ease both; }
.bulkbar b { margin-right: 6px; color: var(--accent-text); }
.bulkbar .icon-btn { margin-left: auto; }
.tab.custom { display: inline-flex; align-items: center; gap: 6px; padding-right: 8px; }
.tab-close { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: var(--text-4); opacity: 0; transition: opacity .15s, background .15s; }
.tab.custom:hover .tab-close, .tab.custom.active .tab-close { opacity: 1; }
.tab-close:hover { background: var(--bg-active); color: var(--text); }
.tab-close svg { width: 10px; height: 10px; }
.nav-toggle { display: inline-flex; align-items: center; gap: 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.nav-toggle .lbl-chev { transition: transform .2s; }
.nav-toggle.closed .lbl-chev { transform: rotate(-90deg); }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.tt-hint { font-size: 10px; opacity: .55; margin-top: 4px; }
.leaders li { position: relative; }
.leader-link { position: absolute; inset: 0; border-radius: 8px; }
.leaders li:hover .lname { color: var(--accent-text); }
tr.clickable { cursor: pointer; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: -2px; border-left: 2px solid var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { border-color: var(--green); }
.timeline i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg-elev); flex: none; margin-top: 1px; display: grid; place-items: center; }
.timeline li.done i { background: var(--green); border-color: var(--green); }
.timeline li.done i::after { content: ""; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.timeline li.now i { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.timeline b { display: block; font-size: 12.5px; } .timeline span { font-size: 11.5px; }
.timeline li:not(.done):not(.now) b { color: var(--text-3); }
.file-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 16px; text-align: center; }
.file-ico { width: 52px; height: 60px; border-radius: 8px; background: var(--bg-sunken); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-text); margin-bottom: 6px; }
.profile-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.profile-actions .btn + .btn { margin-top: 0; }
.kcol.focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cal-grid.week { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch; }
.week-col { border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 260px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s; }
.week-col:hover { background: var(--bg-hover); }
.week-col.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }
.week-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.week-head span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.week-head b { font-size: 14px; }
.week-col.today .week-head b { background: var(--accent); color: #fff; border-radius: 999px; width: 24px; height: 24px; display: inline-grid; place-items: center; }
.week-ev { padding: 6px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, transparent); border-left: 3px solid var(--c); font-size: 11.5px; }
.week-ev span { display: block; font-size: 10.5px; color: var(--text-3); } .week-ev b { display: block; font-weight: 500; }
.week-empty { text-align: center; padding: 10px 0; font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.search input:focus-visible, .input:focus-visible, .note-title:focus-visible, .note-body:focus-visible { outline: none; }
@media (max-width: 640px) { .cal-grid.week { grid-template-columns: 1fr; } .week-col { min-height: 0; } .bulkbar .btn span { display: none; } }

