/* KWAY 업무대장 디자인 시스템 v1 (2026-11-15)
   다른 css 뒤에 불러와서 공통 모양을 덮어쓴다. 색·글자 값은 style.css :root 변수에 있다.
   규칙: 흰 카드를 옅은 회색 바닥 위에 띄우고, 카드에는 테두리·그림자를 쓰지 않는다.
   모서리 — 배지 4 / 입력창·메뉴 8 / 칸반 카드·안내 박스 12 / 큰 카드·모달 24 / 버튼·칩·검색창 알약. */

/* ---------- 바탕·글자 ---------- */
body{background:var(--bg);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
h1{font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-.02em;color:var(--heading)}
h2{font-size:20px;line-height:1.3;font-weight:700;letter-spacing:-.02em;color:var(--heading)}
h3{font-size:16px;line-height:1.5;font-weight:600;letter-spacing:-.02em}
small{font-size:14px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--heading);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ---------- 사이드바 ---------- */
.sidebar{background:var(--white);border-right:1px solid var(--border)}
.nav-section{font-size:12px;font-weight:600;color:var(--faint);letter-spacing:-.02em}
.sidebar-nav .nav-item{min-height:40px;padding:8px 12px;border-radius:var(--radius-sm);font-size:14px;letter-spacing:-.02em;color:var(--ink)}
.sidebar-nav .nav-item:hover{background:var(--surface);color:var(--ink)}
.sidebar-nav .nav-item.active,.sidebar-nav .nav-item.active:hover{background:var(--soft);color:var(--accent-text);font-weight:600;box-shadow:none}
.sidebar-nav .nav-item.active>svg{color:var(--accent-strong)}
.sidebar-nav .nav-item:focus-visible{outline:2px solid var(--heading);outline-offset:-2px}
.sidebar-nav .nav-item.active .nav-count:not(.is-alert){background:var(--white);color:var(--accent-text)}
.nav-count{border-radius:var(--radius-pill);font-size:12px;line-height:16px;padding:2px 7px}
.sidebar-bottom{border-top:1px solid var(--border)}

/* ---------- 상단바 ---------- */
.topbar{background:var(--white);border-bottom:1px solid var(--border)}
.breadcrumb{font-size:14px;color:var(--faint);letter-spacing:-.02em}
.search-box{height:40px;padding:0 16px;border-radius:var(--radius-pill);background:var(--surface);border:1px solid transparent}
.search-box:hover{border-color:var(--border)}
.search-box:focus-within{background:var(--white);border-color:var(--heading);box-shadow:none}
.search-box input,.search-box input:focus{font-size:14px!important;letter-spacing:-.02em}
.search-box kbd{font-size:12px;color:var(--faint)}
.view-as-select,.toolbar-select{height:40px;padding:0 32px 0 14px;border:1px solid var(--border);border-radius:var(--radius-pill);background-color:var(--white);font-size:14px}
.topbar .button,.top-tools .button.ceo-top{height:40px}

/* ---------- 페이지 머리 ---------- */
.page-heading{margin-bottom:24px}
.page-heading h1{color:var(--heading)}
.page-heading p{font-size:14px;line-height:20px;color:var(--muted);letter-spacing:-.02em;margin-top:8px}

/* ---------- 버튼 ---------- */
.button{height:40px;min-height:40px;padding:0 16px;border:0;border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);box-shadow:none;font-size:14px;font-weight:600;letter-spacing:-.02em;gap:6px;transition:background-color .15s}
.button:hover{filter:none;background:var(--border)}
.button:active{transform:none}
.button.primary,.top-tools .button.primary{background:var(--accent);color:var(--on-accent);border:0}
.button.primary:hover{filter:none;background:var(--accent-strong)}
.button.quiet{background:transparent;color:var(--muted)}
.button.quiet:hover{background:var(--surface);color:var(--ink)}
.button.danger{background:var(--danger-soft);color:var(--danger-text)}
.button.danger:hover{background:var(--danger-line)}
.button.small,.page-heading .button.small{height:32px;min-height:32px;padding:0 12px;font-size:14px}
.button:disabled,.button:disabled:hover{background:var(--surface);color:var(--disabled)}
.button svg{width:16px;height:16px}
.login-form .button{height:48px}
.top-tools .button.ceo-top{background:var(--surface);color:var(--ink);border:0}
.top-tools .button.ceo-top:hover{background:var(--border)}
.icon-button{border-radius:var(--radius-pill)}

/* ---------- 큰 카드 ---------- */
.panel{border:0;border-radius:var(--radius-lg);background:var(--white)}
.panel-head{padding:24px 24px 16px}
.panel-head h2,.hd-panel-head h2{font-size:20px;color:var(--heading)}
.panel-subtitle{font-size:14px;color:var(--muted)}
details.panel>summary{border-radius:var(--radius-lg)}
.ceo-section.is-red,.ceo-section.is-yellow{border-left:0}

/* 지표 줄: 한 장의 흰 카드 안에 칸을 나누고, 칸 사이는 옅은 세로선 */
.metrics,.hd-metrics,.gb-stats{border:0;border-radius:var(--radius-lg);background:var(--white);font-variant-numeric:tabular-nums}
.metric-label{font-size:14px;color:var(--muted);letter-spacing:-.02em}
.metric-value{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.02em;color:var(--heading);margin:8px 0}
.metric-value small{font-size:16px;font-weight:600;color:var(--muted)}
.metric-foot{font-size:14px;color:var(--faint)}
.hd-metric{padding:20px 24px;transition:background-color .15s}
.hd-metric:hover{background:var(--surface)}
.hd-metric[aria-pressed=true]{background:var(--soft);border-top-color:transparent}
.hd-metric:first-child{border-radius:var(--radius-lg) 0 0 var(--radius-lg)}
.hd-metric:last-child{border-radius:0 var(--radius-lg) var(--radius-lg) 0}
.gb-stats>div{padding:20px 24px}

/* ---------- 탭·전환 스위치 ---------- */
.tab{font-size:16px;font-weight:600;letter-spacing:-.02em;color:var(--faint)}
.tab:hover{color:var(--ink)}
.tab.active{color:var(--accent-text);border-color:var(--accent-strong);font-weight:600}
.gb-tabs:not(.gb-subtabs) button{color:var(--faint);letter-spacing:-.02em}
.gb-tabs:not(.gb-subtabs) button:hover{color:var(--ink)}
.gb-tabs:not(.gb-subtabs) button.active{color:var(--accent-text);border-color:var(--accent-strong)}
.gb-tabs.gb-subtabs{gap:4px;padding:4px;border-radius:var(--radius-pill);background:var(--surface)}
.gb-tabs.gb-subtabs button{height:32px;padding:0 14px;border-radius:var(--radius-pill);font-size:14px;letter-spacing:-.02em;color:var(--muted)}
.gb-tabs.gb-subtabs button.active{background:var(--white);color:var(--ink);box-shadow:var(--shadow-xs)}
.calendar-mode{display:inline-flex;gap:4px;padding:4px;border:0;border-radius:var(--radius-pill);background:var(--surface)}
.calendar-mode button{min-height:32px;height:32px;padding:0 14px;border-radius:var(--radius-pill);background:transparent;color:var(--muted)}
.calendar-mode button+button{border-left:0}
.calendar-mode button.selected{background:var(--white);color:var(--ink);box-shadow:var(--shadow-xs)}

/* 필터 칩 */
.gb-status-filters button{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--white);color:var(--muted);letter-spacing:-.02em}
.gb-status-filters button.active{background:var(--soft);border-color:var(--accent-line);color:var(--accent-text)}

/* ---------- 표 ---------- */
.data-table th{background:var(--surface);color:var(--muted);font-size:14px;font-weight:600;letter-spacing:-.02em;border-bottom:0;padding-top:12px;padding-bottom:12px}
.data-table th:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}
.data-table th:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}
.data-table td{font-size:14px;letter-spacing:-.02em;border-bottom:1px solid var(--border)}
.data-table{font-variant-numeric:tabular-nums}
.panel>.table-scroll{padding:0 24px 16px}
.c-table th,.rr-table th,.import-table th{background:var(--surface);color:var(--muted);font-size:14px;font-weight:600}
.rr-table-wrap,.import-table-wrap,.doc-table-wrap{border-radius:var(--radius-md)}

/* ---------- 배지 ---------- */
.badge{padding:2px 6px;border-radius:var(--radius-xs);font-size:12px;line-height:16px;font-weight:600;letter-spacing:-.02em}
.badge.doing,.badge.active{background:var(--info-soft);color:var(--info-text)}
.badge.review{background:var(--warning-soft);color:var(--warning-text)}
.badge.done,.badge.completed{background:var(--success-soft);color:var(--success-text)}
.badge.paused,.badge.restricted,.badge.overdue{background:var(--danger-soft);color:var(--danger-text)}
.task-row .badge,.task-detail-status .badge,.guide-flow-item .badge{font-size:12px}

/* ---------- 입력창 ---------- */
:where(#app,#modal) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){border:1px solid var(--border-strong);border-radius:var(--radius-sm);background-color:var(--white);color:var(--ink);min-height:40px;padding:0 12px}
:where(#app,#modal) :where(textarea){padding:10px 12px}
.form-group label{font-size:14px;font-weight:600;color:var(--muted);letter-spacing:-.02em}
.form-group input,.form-group select,.form-group textarea{min-height:44px;border:1px solid var(--border-strong);border-radius:var(--radius-sm)}
.form-group input:hover,.form-group select:hover,.form-group textarea:hover{border-color:var(--muted)}
.form-group input:focus-visible,.form-group select:focus-visible,.form-group textarea:focus-visible{outline:none;border-color:var(--heading);box-shadow:0 0 0 1px var(--heading)}
input::placeholder,textarea::placeholder{color:var(--faint)}
.toolbar input,.toolbar select{border-color:var(--border-strong);border-radius:var(--radius-sm);min-height:40px}
.form-error{color:var(--danger-text);font-size:14px}

/* ---------- 안내 박스·빈 상태 ---------- */
.notice{border-radius:var(--radius-md);background:var(--surface);color:var(--muted);font-size:14px;line-height:20px;letter-spacing:-.02em}
.empty strong{color:var(--ink);font-size:16px}
.empty p{font-size:14px}
.kanban-empty,.gb-empty{border:0;border-radius:var(--radius-md);background:var(--surface);color:var(--muted)}

/* ---------- 칸반 ---------- */
.kanban-lane{border:0;border-radius:var(--radius-md);background:var(--surface)}
.kanban-lane.is-drop-target,.gh-brand-board .kanban-lane.gh-drop-target{box-shadow:inset 0 0 0 2px var(--accent-strong);background:var(--soft)}
.kanban-lane-head h2{font-size:14px;font-weight:600;color:var(--muted)}
.kanban-card{border:0;border-radius:var(--radius-md);padding:16px;box-shadow:none;background:var(--white);transition:background-color .15s}
.kanban-card:hover,.kanban-card[data-card-open]:hover,.gh-brand-board .kanban-card:hover{border:0;box-shadow:0 0 0 1px var(--border)}
.kanban-card.is-overdue,.kanban-card.is-blocked{border:0}
.kanban-card.is-stuck{border:0;box-shadow:inset 0 0 0 2px var(--danger-text)}
.kanban-card-tags span{border-radius:var(--radius-xs);background:var(--surface);color:var(--muted)}

/* ---------- 캘린더 ---------- */
.period-schedule .calendar-main,.period-schedule .calendar-agenda{border:0;border-radius:var(--radius-lg)}

/* ---------- 모달·토스트 ---------- */
dialog{border:0;border-radius:var(--radius-lg);box-shadow:var(--shadow-overlay)}
dialog::backdrop{background:rgba(9,30,66,.32);backdrop-filter:none}
.modal-head{padding:24px;background:var(--white)}
.modal-head h2{font-size:20px}
#toast{border-radius:var(--radius-md);box-shadow:var(--shadow-pop);font-size:14px;letter-spacing:-.02em}
.help-launcher{border-radius:var(--radius-pill);box-shadow:var(--shadow-pop)}

/* ---------- 로그인 ---------- */
.login-form h2{font-size:28px}

/* ---------- 전환 스위치 공통(알약) ---------- */
.pill-switch,.hd-kind-tabs,.gf-toggle,.gh-color-by,:is(.ceo-board,.ops-trend) .ceo-seg-switch,.nav-lane{gap:4px;padding:4px;border:0;border-radius:var(--radius-pill);background:var(--surface)}
.pill-switch button,.hd-kind-tabs button,.gf-toggle button,.gh-color-by button,:is(.ceo-board,.ops-trend) .ceo-seg-switch button,.nav-lane button{min-height:32px;padding:0 14px;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--muted);font-size:14px;font-weight:600;letter-spacing:-.02em;transition:background-color .15s,color .15s}
.pill-switch button:hover,.hd-kind-tabs button:hover,.gf-toggle button:hover,.gh-color-by button:hover,:is(.ceo-board,.ops-trend) .ceo-seg-switch button:hover,.nav-lane button:hover{color:var(--ink)}
.pill-switch button.active,.hd-kind-tabs button[aria-pressed=true],.gf-toggle button.active,.gh-color-by button[aria-pressed="true"],:is(.ceo-board,.ops-trend) .ceo-seg-switch button[aria-pressed=true],.nav-lane button.active{background:var(--white);color:var(--ink);box-shadow:var(--shadow-xs)}
.nav-lane button{padding:0 4px;font-size:12px}
.nav-lane.is-4,.nav-lane.is-5,.library-filters .pill-switch,.board-teams .pill-switch,.adp-box-head .pill-switch{border-radius:var(--radius-md)}
.nav-lane.is-4 button,.nav-lane.is-5 button{border-radius:var(--radius-sm)}
.nav-lane.is-one b{border-radius:var(--radius-pill)}
.gh-color-by button{font-size:12px;min-height:28px;padding:0 10px}
.ceo-seg-switch:not(:is(.ceo-board,.ops-trend) *) button{border:1px solid var(--border);border-radius:var(--radius-pill)}
.ceo-seg-switch:not(:is(.ceo-board,.ops-trend) *) button[aria-pressed=true]{background:var(--soft);border-color:var(--accent-line);color:var(--accent-text);font-weight:600}

/* ---------- 메인 대시보드 ---------- */
.hd-space-tabs{gap:24px;margin-bottom:24px}
.hd-space-tabs button{padding:12px 4px;font-size:20px;font-weight:700;letter-spacing:-.02em;color:var(--faint);border-bottom:2px solid transparent;margin-bottom:-1px}
.hd-space-tabs button span{font-size:14px;font-weight:600}
.hd-space-tabs button:hover{color:var(--ink)}
.hd-space-tabs button[aria-pressed=true]{background:transparent;border-radius:0;color:var(--accent-text);border-color:var(--accent-strong)}
.hd-states{gap:12px}
.hd-states button{border:0;border-radius:var(--radius-md);background:var(--surface);padding:12px 16px;transition:background-color .15s}
.hd-states .doing,.hd-states .live,.hd-states .review,.hd-states .proposal{background:var(--surface)}
.hd-states button:hover{border:0;background:var(--border)}
.hd-states button[aria-pressed=true]{background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent-line)}
.hd-states button[aria-pressed=true] strong{color:var(--accent-text)}
.hd-states span{font-size:12px;color:var(--muted)}
.hd-states strong{font-size:20px;color:var(--heading);font-variant-numeric:tabular-nums}
.hd-team-tabs button,.hd-owner-tabs button{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--white);padding:0 14px;min-height:36px;font-size:14px}
.hd-team-tabs button[aria-pressed=true],.hd-owner-tabs button[aria-pressed=true]{background:var(--soft);border-color:var(--accent-line);color:var(--accent-text);font-weight:600}
.hd-team-tabs button:hover,.hd-owner-tabs button:hover{background:var(--surface)}

/* 셀러 요약 칸 */
.gc-partner-summary button{border:0;border-radius:var(--radius-lg);background:var(--white);padding:20px 24px}
.gc-partner-summary button.active{border:0;padding:20px 24px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent-line)}
.gc-partner-summary b{color:var(--heading)}

/* 캘린더 선택한 날 */
.calendar-day.is-selected{background:var(--soft);box-shadow:inset 0 0 0 2px var(--accent-strong)}
.calendar-day.is-selected.outside-month{background:var(--soft)}
.agenda-empty{font-size:14px;line-height:20px;color:var(--muted)}

/* 사이드바 아래 계정 */
.user-block strong{font-size:14px}
.user-block small{font-size:12px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}

/* 카드 머리는 선 없이 간격으로 나눈다 */
.hd-panel-head,.ceo-board .hd-panel-head{padding:24px 24px 16px;border-bottom:0}
.hd-panel-head h2 span{font-size:14px}
.hd-panel-head p{font-size:14px;line-height:20px;color:var(--muted)}
.panel>.gb-empty,.panel>.ceo-empty,.panel>.kanban-empty,.panel>.empty-box{margin:0 24px 24px}

/* 색 띠(왼쪽 굵은 선) 대신 옅은 채움으로 구분 */
.task-card.is-todo,.gb-detail-clean>.gb-todo-card,.gc-detail-organized .gc-partner-section.gb-todo-card{border:0;border-radius:var(--radius-md);background:var(--surface)}
.task-card.is-goal,.gb-detail-clean>.gb-result-card{border:0;border-radius:var(--radius-md);background:var(--success-soft)}
.task-detail-blocker,.people-todo{border:0;border-radius:var(--radius-md);background:var(--warning-soft)}
.ceo-inbox{border-left:0}
.gh-card.is-overdue{border-left-width:1px}
.gf-card,.kw-card,.adp-insight{border:0;border-radius:var(--radius-md);background:var(--surface)}
.gc-file-search-hit{border-left:0;border-radius:var(--radius-md)}
.gq-hand-note{border-left:0;border-radius:var(--radius-sm)}
.gq-reading{border:0;border-radius:var(--radius-md);background:var(--soft)}
.gf-deal-seller-info{border-left:0;border-radius:var(--radius-sm)}

/* 빈 상태 상자 */
.gb-empty{padding:16px 20px;line-height:20px}
.gb-agenda-body>.gb-empty,.cw-panel .gb-empty,.ops-panel .gb-empty,.gf-list>.gb-empty,.gb-detail-clean .gb-empty{background:transparent;padding-left:0;padding-right:0;border-radius:0}
.gt-by>.gb-empty{margin:0 24px 24px;padding:16px 20px}
.gt-by>.gb-hint{padding:0 24px 16px}
.gt-box .panel-head{padding:20px 24px 12px;flex-wrap:wrap;row-gap:4px}
.gt-box .panel-head small{font-size:12px;color:var(--faint)}
.gt-by .gt-kgroup,.gt-by .gt-group{margin:0 24px 12px;border:0;border-radius:var(--radius-md);background:var(--surface)}
.hub-overview{margin-bottom:32px}
.hub-overview-grid{padding:8px 24px 24px;gap:24px}
.hub-overview .help-box{margin:0 24px 24px}

/* 로그인 */
.login-aside h1{line-height:1.25;letter-spacing:-.02em}

/* ================= 모달 공통 ================= */
.modal-head{padding:24px 24px 16px;gap:12px;border-bottom:1px solid var(--border)}
.modal-head h2{font-size:20px;line-height:1.3;color:var(--heading)}
.modal-head .modal-close{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:var(--radius-pill);color:var(--muted)}
.modal-head .modal-close:hover{background:var(--surface);color:var(--ink)}
.modal-head-actions{gap:8px}
.modal-body{padding:24px}
.modal-body h3{font-size:16px;line-height:1.5;font-weight:700;letter-spacing:-.02em;color:var(--heading)}
.modal-body .tabs{margin-bottom:24px}

/* 입력 묶음: 제목은 선 대신 간격으로 나눈다 */
.form-section{margin:32px 0 16px;padding-top:0;border-top:0;font-size:16px;font-weight:700;color:var(--heading)}
.form-group small{font-size:12px;line-height:16px;color:var(--faint)}

/* 저장·취소 버튼 줄은 창 아래에 붙여서 길게 내려가도 늘 보이게 */
#modal .modal-body>form>.form-actions:last-child,#modal .modal-body>.form-actions:last-child,.gb-campaign-new>.form-actions{position:sticky;bottom:0;z-index:2;margin:24px -24px -24px;padding:16px 24px;background:var(--white);border-top:1px solid var(--border);gap:8px}

/* 접는 칸(추가 설정·더 보기) */
details.gb-form-options,.form-more{border:0;border-radius:var(--radius-md);background:var(--surface);padding:0}
details.gb-form-options>summary,.form-more>summary{padding:14px 16px;font-size:14px;font-weight:600;color:var(--ink);border-radius:var(--radius-md)}
details.gb-form-options[open],.form-more[open]{padding-bottom:16px}
details.gb-form-options[open]>*:not(summary),.form-more[open]>*:not(summary){margin-left:16px;margin-right:16px}

/* 삭제 버튼 */
.gb-delete-button,.button.gb-delete-button{border:0;background:var(--danger-soft);color:var(--danger-text)}
.gb-delete-button:hover{background:var(--danger-line)}

/* ================= 공구 상세 ================= */
.gb-detail-top{gap:12px}
.gb-detail-section,.gb-partner-card{border-radius:var(--radius-md);border-color:var(--border)}
.gb-detail-section{padding:20px}
.gb-detail-section.is-blank{background:var(--white)}
.gb-section-head h3{font-size:16px;color:var(--heading)}
.gb-detail-grid dt{font-size:12px;color:var(--muted);letter-spacing:-.02em}
.gb-detail-grid dd{font-size:16px;font-weight:600;color:var(--ink)}
dl.gb-campaign-fields{border-radius:var(--radius-md)}
.gb-product-img.is-empty{border-radius:var(--radius-md);border-color:var(--border-strong)}
.jump-bar{gap:8px}
.jump-bar button{min-height:32px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--white);color:var(--muted);font-size:12px;font-weight:600;letter-spacing:-.02em}
.jump-bar button:hover{background:var(--surface);color:var(--ink)}
.jump-bar button.is-blank{border-style:dashed;color:var(--faint)}
.gb-check{border-radius:var(--radius-sm)}
.gb-stage-select{border-radius:var(--radius-pill)}

/* ================= 셀러·업체 상세 ================= */
.gc-detail-nav{display:flex;gap:24px;padding:0;margin-bottom:24px;background:transparent;border-radius:0;border-bottom:1px solid var(--border);overflow-x:auto}
.gc-detail-nav button{flex:0 0 auto;padding:12px 4px;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--faint);font-size:16px;font-weight:600;letter-spacing:-.02em;white-space:nowrap;box-shadow:none}
.gc-detail-nav button:hover{color:var(--ink)}
.gc-detail-nav button[aria-pressed=true]{background:transparent;box-shadow:none;color:var(--accent-text);border-bottom-color:var(--accent-strong)}
.gc-detail-nav small{display:inline-block;margin:0 0 0 4px;font-size:12px}
.gc-important{border:0;border-radius:var(--radius-xs);background:var(--soft);color:var(--accent-text);padding:2px 6px;line-height:16px}
.gc-partner-section{border-radius:var(--radius-md);padding:20px}
.gb-todo-card .button,.gc-partner-section.gb-todo-card .button{background:var(--white)}
.gb-todo-card .button:hover{background:var(--border)}
.sr-grid>.gb-empty{padding:16px 20px}

/* ================= AI 도우미 ================= */
.ai-mode{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--white);padding:16px;font-size:16px;letter-spacing:-.02em;transition:background-color .15s}
.ai-mode:hover{border-color:var(--border);background:var(--surface)}
.ai-mode.active{background:var(--soft);border-color:var(--accent-line);color:var(--accent-text);box-shadow:none}
.ai-mode.active svg{color:var(--accent-strong)}
.ai-connection-notice{border:0;border-radius:var(--radius-lg);background:var(--soft);padding:20px 24px}

/* ================= 업무 보고 ================= */
.report-row{border:0;border-radius:var(--radius-md);background:var(--surface);padding:16px}
.report-row select,.report-row input,.report-row textarea{border-radius:var(--radius-sm)}
.report-status{gap:4px;padding:4px;border:0;border-radius:var(--radius-pill);background:var(--white)}
.report-status button{min-height:32px;padding:0 14px;border-radius:var(--radius-pill)}
.report-status button+button{border-left:0}
.report-status .is-on.is-done{background:var(--success-soft);color:var(--success-text)}
.report-status .is-on.is-doing{background:var(--info-soft);color:var(--info-text)}
.report-status .is-on.is-other{background:var(--surface);color:var(--ink)}

/* ================= 대표 현황판 ================= */
/* 지표 칸: 설명이 두 줄이 되어도 라벨·숫자 줄이 칸마다 같은 높이에서 시작 */
.hd-metric{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;text-align:left}
.ceo-board .ceo-tile>span{font-size:14px;font-weight:600;color:var(--muted);letter-spacing:-.02em}
.ceo-board .ceo-tile>span::before{width:8px;height:8px}
.ceo-tile strong{display:flex;align-items:baseline;gap:4px;margin:8px 0;font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ceo-tile strong small{font-size:16px;font-weight:600;color:var(--muted)}
.ceo-tile.is-ok strong{color:var(--heading)}
.ceo-tile>p{margin-top:auto;font-size:12px;line-height:16px;color:var(--faint);display:flex;justify-content:space-between;gap:8px}

/* 카톡방 담당자 비어 있음: 진한 테두리 대신 흰 카드 + 주의 머리줄 */
.ceo-kk-owners{margin:0 0 24px;padding:0;border:0;border-radius:var(--radius-lg);background:var(--white);overflow:hidden;font-size:14px;line-height:20px;letter-spacing:-.02em}
.ceo-kk-owners>p:first-child{margin:0;padding:16px 24px;background:var(--warning-soft);color:var(--warning-text)}
.ceo-kk-owners>p:first-child b{display:block;margin-bottom:2px;font-size:16px;line-height:24px;color:var(--heading)}
.ceo-kk-owners>ul,.ceo-kk-owners>details{margin:0 24px}
.ceo-kk-owners li{min-height:56px;padding:8px 0;border-top:1px solid var(--border)}
.ceo-kk-owners>ul>li:first-child{border-top:0}
.ceo-kk-owners li b{font-size:14px;font-weight:600;color:var(--ink)}
.ceo-kk-owners li .button.small{background:var(--surface)}
.ceo-kk-owners li .button.small:hover{background:var(--border)}
.ceo-kk-owners details{border-top:1px solid var(--border)}
.ceo-kk-owners summary{padding:14px 0;font-weight:600;color:var(--accent-text)}
.ceo-kk-owners details[open]>summary{padding-bottom:4px}
.ceo-kk-owners>.gb-hint{margin:0;padding:12px 24px 16px;border-top:1px solid var(--border);font-size:12px;line-height:16px;color:var(--faint)}
.ceo-kk-owners>ul:last-child,.ceo-kk-owners>details:last-child{margin-bottom:8px}

/* 상태 칩 */
.ceo-chip{border-radius:var(--radius-xs);padding:2px 6px;line-height:16px;letter-spacing:-.02em}
.ceo-chip.late{color:var(--danger-text);background:var(--danger-soft)}
.ceo-chip.acked,.ceo-chip.event{color:var(--success-text);background:var(--success-soft)}

/* 사이드바 스크롤 막대를 옅게 */
.sidebar-nav{scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.sidebar-nav::-webkit-scrollbar{width:6px}
.sidebar-nav::-webkit-scrollbar-thumb{background:var(--border);border-radius:var(--radius-pill)}
.sidebar-nav::-webkit-scrollbar-track{background:transparent}
.ceo-tile>p>span[aria-hidden]{margin-left:auto}
/* 11/24 내 하루: 갈 곳이 없는 숫자 칸(받은 지시 0건)은 누르는 칸처럼 보이지 않게 */
.ceo-tile:disabled{cursor:default;color:inherit}
/* 11/24 휴대폰 점검(B1~B10): 글자가 세로로 쪼개지거나 화면 밖으로 넘치던 곳 */
/* 표 칸은 낱글자로 줄바꿈하지 않는다(넘치면 .table-scroll 이 옆으로 밀림) */
.data-table th,.data-table td{word-break:keep-all}
.pill-switch button,.cs-out-tools .text-link{white-space:nowrap}
/* 셀러 제안·제안 문구: 필터 줄과 목록이 상자 왼쪽 끝에 붙던 것 */
.panel>.gb-toolbar:is([data-form="gpr-filter"],[data-form="gtp-filter"]){padding:20px 24px 0;margin-bottom:12px}
.panel>.gb-toolbar[data-form="gtp-filter"]~.gc-latest-note{padding-left:24px;padding-right:24px}
@media(max-width:760px){
 .pill-switch{flex-wrap:wrap;max-width:100%;border-radius:var(--radius-md)}
 .pill-switch button{flex:0 0 auto}
 .cs-stat-range,.cs-out-head,.cs-out-tools{flex-wrap:wrap}
 .cs-stat-range input{min-width:0;flex:1 1 150px}
 .cs-out-tools{margin-left:0}
 .kw-filters label{min-width:0;max-width:100%}
 .toolbar>input{flex:1 1 180px}
 /* 떠 있는 도움말 버튼: 물음표만 남기고, 페이지 맨 끝 내용이 가려지지 않게 아래 여백 */
}
/* 11/27 Dan 님: 모달 창 크기 조절 — 오른쪽 아래 모서리를 끌어 늘리고 줄인다. 처음 크기는 그대로(:where로 낮춰 창별 :has 규칙이 이김), 고른 크기는 창 종류별로 기억(app.js useModalSize). 좁은 화면(모바일)은 끔. */
:where(#modal)[open]{resize:both;overflow:auto;border-bottom-right-radius:4px;min-width:min(360px,calc(100vw - 30px));min-height:180px;max-width:calc(100vw - 30px)}
:where(#modal)[open][style*="height"]{max-height:calc(100vh - 30px)}
:where(#modal)[open]::-webkit-resizer{background:linear-gradient(135deg,transparent 0 40%,var(--muted) 40% 48%,transparent 48% 60%,var(--muted) 60% 68%,transparent 68% 80%,var(--muted) 80% 88%,transparent 88%)}
@media (max-width:760px){:where(#modal)[open]{resize:none}}
/* 11/28 화면 점검 C 묶음 7건 */
/* 회색 카드 위의 회색 버튼이 글자만 있는 것처럼 보이던 것: 흰 바탕으로 */
:is(.kw-actions,.gf-work-row,.gf-main-acts,.gt-kgroup-head)>button:is([class="button"],[class="button "],[class="button small"]){background:var(--white)}
/* 업체 공계서: '과세' 칸 글자 잘림, 자동 계산 칸 머리가 붙던 것, 줄 버튼이 글자만 있던 것 */
.gq-table td select{min-width:84px;padding-right:28px}
.gq-table th.gq-calc,.gq-table td.gq-calc{min-width:58px;padding-left:10px;padding-right:10px}
.gq-row-btn{border:1px solid var(--border);background:var(--white)}
.gq-gen-actions .button.quiet{background:var(--surface)}
/* 업체 CS 조건: 체크박스가 입력칸 크기로 커지던 것 */
.cs-checks label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;width:auto;font-size:14px;font-weight:400}
#modal .cs-checks input[type=checkbox],.cs-checks input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none}
/* 콘텐츠 보드·인플루언서: 7열이 한 화면에 들어오게(좁으면 옆으로 밀림) */
.c-board{grid-template-columns:repeat(7,minmax(146px,1fr))}
/* 페이지 머리의 버튼 묶음이 두 줄로 쪼개지던 것: 넓은 화면에서는 설명 글이 대신 줄바꿈 */
@media(min-width:1100px){
 .page-heading>.row-actions{flex-shrink:0;max-width:62%;justify-content:flex-end}
 .gh-workspace .page-heading>.row-actions{max-width:none}
}
/* 떠 있는 도움말 버튼: 물음표 동그라미로 줄여 본문을 덜 가리게(마우스를 올리면 이름이 펴짐), 페이지 끝에는 여백 */
.content{padding-bottom:84px}
#help-widget .help-launcher{font-size:0;gap:0;padding:9px}
#help-widget .help-launcher>span{font-size:16px}
@media(min-width:761px){#help-widget .help-launcher{right:6px;bottom:14px}}
@media(hover:hover){#help-widget .help-launcher:is(:hover,:focus-visible){font-size:14px;gap:9px;padding:9px 16px 9px 9px}}
/* 11/28 화면 점검 C 묶음: 남은 정렬·여백 */
/* 한 줄에 놓인 버튼·입력칸·선택칸의 높이 맞추기 */
.calendar-controls .button.small{height:38px;min-height:38px}
.board-search .button.small,.board-filters .button.small,.toolbar>.button.small,.gg-actual .button.small{height:40px;min-height:40px}
.board-filters select,.toolbar select{height:40px;min-height:40px}
.hub-search-main .button,.ai-model-controls .button{height:50px;min-height:50px;padding-left:22px;padding-right:22px}
.gg-controls .icon-button{width:40px;height:40px;display:inline-grid;place-items:center}
.gg-controls input[type=date]{min-height:40px}
/* 날짜·시각 칸이 옆 칸보다 2px 크던 것 */
dialog input:is([type=date],[type=time],[type=month],[type=datetime-local]),.hub-filters input[type=date]{line-height:22px}
.ceo-dir-row .ceo-del{align-self:center}
/* 흰 상자끼리 간격 없이 붙던 곳 */
.hd-dashboard>.panel:has(+.hd-overview){margin-bottom:18px}
#content>section[class="panel"]+section[class="panel"]{margin-top:16px}
.cs-stat-cards{margin-bottom:14px}
/* 상자 없이 바탕에 떠 있던 할 일 묶음(브랜드 단계의 '관련 업무', 전체 업무의 정기 업무)을 흰 상자로 */
.gf-list>.mine-group,#content>.mine-group{background:var(--white);border-radius:var(--radius-lg);padding-bottom:10px;margin-bottom:16px}
/* 빈 안내 문장의 시작선: 상자 안 다른 글과 맞추기 */
.ops-panel .gb-empty{margin-left:0;margin-right:0}
td.gb-empty,.ops-panel td.gb-empty{padding-left:12px;padding-right:12px}
.panel>p.muted:only-child{margin:0;padding:20px 24px}
/* 표 머리 첫 칸만 흰색이던 것(왼쪽 고정 열) */
.cs-sum thead th:first-child{background:var(--surface)}
/* 카톡 업무: 한 열이 수천 px로 길어지던 것을 열 안에서 스크롤 */
@media(min-width:761px){.kw-col{max-height:calc(100vh - 120px);overflow-y:auto}}
