/* 마젠타 케이터링 리브랜딩(Open Circle) 기준: 페이퍼 바탕 · 코코아 잉크 · 마젠타는 포인트에만 */
:root {
  --paper: #F7F4EF;      /* 메인 바탕 */
  --card: #FBF9F6;       /* 카드 · 문서 */
  --linen: #EAE3D9;      /* 보조 바탕 */
  --tint: #F2EDE6;       /* 강조 칸 */
  --line: #E2DBD1;
  --line-2: #D9D1C6;
  --ink: #3B3431;        /* 텍스트 */
  --sub: #6E655E;        /* 보조 텍스트 */
  --taupe: #9A8F86;      /* 장식 · 보조 그래픽 */
  --beige: #CFC5B8;      /* 차트: 스타일링 */
  --magenta: #B3325F;    /* 포인트 */
  --magenta-dk: #83203F;
  --magenta-soft: #E9D3DB;
  --pink: #E7A9BE;
  --white: #FFFFFF;
  --f-en: 'Marcellus', 'Times New Roman', serif;
  --f-title: 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', serif;
  --f-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--magenta); }
a:hover { color: var(--magenta-dk); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.en { font-family: var(--f-en); }
.muted { color: var(--sub); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 상단 바 */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px;
  padding: 14px 32px; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { display: block; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; gap: 4.6px; font-family: var(--f-en); line-height: 1; white-space: nowrap; color: var(--ink); }
.brand-word .b1 { font-size: 18px; letter-spacing: .14em; }
.brand-word .b2 { font-size: 6.2px; letter-spacing: .52em; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.nav a, .top-settings { display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: var(--sub); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .top-settings:hover { color: var(--ink); }
.nav a[aria-current="page"], .top-settings[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--magenta); }
.ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nav a[aria-current="page"] .ic, .top-settings[aria-current="page"] .ic { stroke: var(--magenta); }
.top-settings { margin-left: auto; }
body.signed-out .top-settings { visibility: hidden; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 2px; border: 1px solid transparent;
  font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--magenta); color: var(--white); }
.btn-primary:hover { background: var(--magenta-dk); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2A2320; color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--taupe); font-weight: 600; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: transparent; color: var(--magenta-dk); border-color: var(--magenta); font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link { font-size: 14px; font-weight: 700; text-decoration: none; }

/* 본문 */
.view { width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 32px 80px; display: flex; flex-direction: column; gap: 44px; flex: 1; }
.view:focus { outline: none; }
.loading { color: var(--sub); }
.foot { border-top: 1px solid var(--line); padding: 20px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--sub); }
.foot-en { font-family: var(--f-en); letter-spacing: .2em; }
.foot-me { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-btn { font: inherit; font-size: 12.5px; color: var(--ink); background: none; border: 1px solid var(--line-2); padding: 4px 10px; cursor: pointer; border-radius: 2px; min-height: 32px; }
.foot-btn:hover { border-color: var(--ink); }
.login { max-width: 420px; width: 100%; margin: 40px auto 0; padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; }
.login .login-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.login h1 { font-family: var(--f-title); font-size: 30px; font-weight: 700; }
.login .err { color: var(--magenta-dk); font-size: 13.5px; margin: 0; }
.login .err:empty { display: none; }
.login .btn { margin-top: 8px; min-height: 50px; }
body.signed-out .nav { visibility: hidden; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.page-head > div { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-family: var(--f-en); font-size: 13px; letter-spacing: .36em; color: var(--magenta); text-transform: uppercase; }
.page-head h1 { font-family: var(--f-title); font-size: 40px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.page-head p { margin: 0; color: var(--sub); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.sec { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; border-top: 1px solid var(--ink); padding-top: 14px; }
.sec-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sec-head .tag { font-family: var(--f-en); font-size: 14px; letter-spacing: .2em; color: var(--magenta); font-variant-numeric: lining-nums; }
.sec-head .tag.num-tag, .fs-h .tag { font-family: var(--f-body); font-weight: 700; letter-spacing: .08em; }
.sec-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sec-head .desc { font-size: 14px; color: var(--sub); }

.card { background: var(--card); border: 1px solid var(--line); }
.pad { padding: 26px 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }

/* 숫자 지표 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { background: var(--card); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.kpi .k { font-size: 13.5px; font-weight: 600; color: var(--sub); }
.big { font-family: var(--f-body); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big small { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.kpi .big { font-size: 38px; }
.kpi .d { font-size: 13.5px; color: var(--sub); }
.accent { color: var(--magenta); }

/* 매출 지도 */
.map { padding: 36px 32px 32px; display: flex; flex-direction: column; align-items: center; }
.map-total { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.map-total .big { font-size: 52px; }
.map-total .big small { font-size: 20px; }
.map-stem { width: 1px; height: 32px; background: var(--taupe); margin-top: 18px; }
.band-wrap { position: relative; align-self: stretch; overflow-x: auto; }
.band { display: flex; gap: 3px; min-width: 720px; border-top: 1px solid var(--taupe); padding-top: 14px; }
.band > div { min-height: 150px; padding: 20px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.band .en { font-size: 11px; letter-spacing: .3em; }
.band .nm { font-size: 16px; font-weight: 700; }
.band .amt { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.band .amt small { font-family: var(--f-body); font-size: 13px; font-weight: 600; margin-left: 3px; }
.band .pc { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-catering { background: var(--ink); color: var(--paper); }
.svc-catering .en { color: var(--pink); }
.svc-styling { background: var(--beige); color: var(--ink); }
.svc-gift { background: var(--magenta); color: var(--white); }
.band .zero { min-width: 0; padding: 0; }

.levers { align-self: stretch; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.lever { border: 1px solid var(--line); background: var(--paper); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.lever-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.sw { width: 10px; height: 10px; flex-shrink: 0; display: inline-block; }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.eq > span:not(.x) { display: flex; flex-direction: column; gap: 2px; }
.eq b { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.eq i { font-style: normal; font-size: 12px; color: var(--sub); }
.eq .x { color: var(--taupe); font-size: 18px; }
.lever-tip { font-size: 13.5px; padding-top: 12px; border-top: 1px solid var(--line); }
.lever-tip b { color: var(--magenta); }

/* 매출 공식 (자세히) */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 24px 28px; }
.formula .f-name { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.formula .f-name .big { font-size: 30px; }
.formula .eq { flex: 999 1 460px; }
.formula .eq b { font-size: 26px; }
.formula .f-tip { flex: 1 1 240px; margin: 0; font-size: 14px; line-height: 1.6; }
.formula .f-tip b.accent { color: var(--magenta); }

/* 구성 막대 · 범례 */
.stack { display: flex; height: 34px; gap: 2px; background: var(--linen); }
.stack span { display: block; min-width: 0; }
.legend { display: flex; flex-direction: column; }
.legend > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.legend > div:last-child { border-bottom: 0; }
.legend .l { flex: 1; }
.legend .p { width: 60px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mix { display: flex; flex-direction: column; gap: 30px; }
.mix-block { display: flex; flex-direction: column; gap: 14px; }
.mix-block > .t { font-size: 14px; font-weight: 700; }

/* 월별 막대 */
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.bars-wrap { position: relative; overflow-x: auto; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(34px, 1fr)); gap: 8px; align-items: end; min-width: 520px; height: 280px; padding-top: 8px; border-bottom: 1px solid var(--line-2); }
.bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.bar .tot { font-size: 11.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.bar .col { display: flex; flex-direction: column; gap: 1px; }
.bar .col span { display: block; }
.bar.now .tot { color: var(--magenta); }
.months { display: grid; grid-template-columns: repeat(12, minmax(34px, 1fr)); gap: 8px; min-width: 520px; font-size: 12.5px; color: var(--sub); text-align: center; padding-top: 6px; }

/* 진행 단계 */
.pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; }
.pipe a { background: var(--card); border: 1px solid var(--line); border-top-width: 3px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.pipe a:hover { border-color: var(--taupe); }
.pipe .k { font-size: 13px; font-weight: 700; color: var(--sub); }
.pipe .big { font-size: 32px; }
.pipe .d { font-size: 13.5px; color: var(--sub); }

/* 표 */
.table-wrap { position: relative; overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
table.list { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--sub); padding: 14px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.list td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list th:first-child, table.list td:first-child { padding-left: 20px; }
table.list th:last-child, table.list td:last-child { padding-right: 20px; }
table.list .r { text-align: right; }
table.list a.row-link { color: var(--ink); font-weight: 700; text-decoration: none; }
table.list a.row-link:hover { color: var(--magenta); }
table.list .sub { display: block; font-size: 12.5px; color: var(--sub); font-weight: 400; }

/* 상태 칩 */
.chip { display: inline-block; padding: 4px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.st-문의 { border-color: var(--line-2); color: var(--sub); }
.st-견적작성 { border-color: var(--taupe); color: var(--ink); }
.st-견적발송 { background: var(--magenta-soft); color: var(--magenta-dk); }
.st-계약확정 { background: var(--magenta); color: var(--white); }
.st-행사완료 { background: var(--ink); color: var(--paper); }
.st-정산완료 { background: var(--linen); color: var(--ink); }
.st-취소 { color: var(--sub); text-decoration: line-through; border-color: var(--line); }
select.status-select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); border-radius: 2px; min-height: 36px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .fchip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 2px; }
.filters a.fchip { display: inline-flex; align-items: center; text-decoration: none; }
.filters a.fchip:hover { border-color: var(--ink); }
.filters a.fchip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
.filters .fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters .search { flex: 1 1 220px; max-width: 320px; margin-left: auto; }

/* 빈 상태 · 안내 */
.empty { padding: 40px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.empty h3 { font-family: var(--f-title); font-size: 22px; }
.empty p { margin: 0; color: var(--sub); max-width: 60ch; }
.banner { padding: 16px 20px; border: 1px solid var(--magenta); background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.banner b { color: var(--magenta-dk); }
.note { font-size: 13px; color: var(--sub); margin: 0; line-height: 1.6; }

/* 입력 폼 */
.form-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.form-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fs { background: var(--card); border: 1px solid var(--line); padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; margin: 0; min-width: 0; }
.fs-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.fs-h .tag { font-size: 13px; color: var(--magenta); }
.fs-h h2 { font-size: 17px; font-weight: 800; }
.fs-h .desc { font-size: 13px; color: var(--sub); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; }
.field .with-unit { display: flex; align-items: center; gap: 8px; }
.field .with-unit span { color: var(--sub); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .search {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--white);
  font: inherit; font-size: 15px; color: var(--ink); border-radius: 2px; width: 100%;
}
.field textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; min-height: 92px; }
.field input[type="number"] { font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); background: var(--white); font-size: 14.5px; font-weight: 600; cursor: pointer; border-radius: 2px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.types label { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; border-radius: 2px; }
.types label:has(input:checked) { border: 2px solid var(--magenta); padding: 17px 19px; background: var(--white); }
.types label:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 2px; }
.types .en { font-size: 10.5px; letter-spacing: .28em; color: var(--magenta); }
.types .nm { font-size: 16px; font-weight: 700; }
.types .ds { font-size: 13.5px; color: var(--sub); }
.types .pr { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.opts { display: flex; flex-direction: column; }
.opts label { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opts input { width: 20px; height: 20px; accent-color: var(--magenta); flex-shrink: 0; margin: 0; }
.opts .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opts .t b { font-size: 15px; font-weight: 600; }
.opts .t i { font-style: normal; font-size: 13px; color: var(--sub); }
.opts .pr { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.summary { flex: 1 1 340px; min-width: 0; background: var(--card); border: 1px solid var(--ink); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.summary h2 { font-size: 17px; font-weight: 800; }
.sum-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sum-head b { font-size: 15px; }
.sum-head span { font-size: 13.5px; color: var(--sub); }
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.rows > div > span:first-child { color: var(--sub); }
.rows > div > span:last-child { font-variant-numeric: tabular-nums; }
.rows.sep { border-top: 1px solid var(--line); padding-top: 8px; }
.sum-total { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--ink); }
.sum-total .k { font-size: 13px; font-weight: 600; color: var(--sub); }
.sum-total .big { font-size: 34px; }
.sum-total .d { font-size: 13px; color: var(--sub); }
.form-actions { display: flex; flex-direction: column; gap: 8px; }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }

/* 이번 달 */
.month-bar { position: relative; display: flex; gap: 2px; height: 28px; background: var(--linen); }
.month-bar .c { background: var(--ink); }
.month-bar .p { background: var(--magenta-soft); border: 1px dashed var(--magenta); }
.month-bar .mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--magenta); }
.month-mark-label { position: relative; height: 18px; font-size: 12px; font-weight: 600; color: var(--magenta-dk); }
.month-mark-label span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

.upcoming a { display: flex; align-items: center; gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.upcoming a:last-child { border-bottom: 0; }
.upcoming a:hover { background: var(--paper); }
.upcoming .when { width: 70px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.upcoming .when .en { font-size: 13px; letter-spacing: .12em; color: var(--magenta); }
.upcoming .when span:last-child { font-size: 13px; color: var(--sub); }
.upcoming .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.upcoming .what b { font-size: 15px; }
.upcoming .what span { font-size: 13px; color: var(--sub); }

.todo a { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.todo a:hover { border-color: var(--taupe); }
.todo .k { font-size: 13px; font-weight: 700; color: var(--sub); }
.todo .big { font-size: 34px; }
.todo .go { font-size: 14px; font-weight: 700; color: var(--magenta); }

/* 설정 */
.set-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.set-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--sub); padding: 10px 8px; border-bottom: 1px solid var(--ink); }
.set-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.set-table input, .set-table textarea { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 14px; color: var(--ink); border-radius: 2px; }
.set-table textarea { padding: 8px 10px; min-height: 120px; line-height: 1.5; font-size: 13px; }
.set-table input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }
.sec { scroll-margin-top: 96px; }

/* 이메일 · 시간 · 보조 문구 */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.email-row > input:first-child { flex: 1 1 140px; min-width: 0; }
.email-row .at { color: var(--sub); font-size: 15px; }
.email-row select { flex: 0 1 150px; width: auto !important; min-width: 120px; }
.email-row > input:last-child { flex: 1 1 140px; min-width: 0; }
.time-range { display: flex; align-items: center; gap: 8px; }
.time-range input { flex: 1 1 0; min-width: 0; }
.time-range > span { color: var(--sub); }
.hint { font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.linkbtn { font: inherit; font-size: 12.5px; color: var(--magenta); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* 행사 관리: 단계 흐름 */
.flowbar { display: flex; gap: 2px; height: 10px; background: var(--linen); }
.flowbar span { display: block; min-width: 6px; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 8px; }
.stage { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.stage:hover { border-color: var(--taupe); }
.stage[aria-current="true"] { border: 2px solid var(--ink); padding: 13px 15px; }
.stage .k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.stage b { font-size: 24px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stage .pc { font-size: 12px; color: var(--sub); }
.stage.minor b { font-size: 20px; }
.ev-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.viewtabs { display: inline-flex; border: 1px solid var(--line-2); background: var(--white); border-radius: 2px; }
.viewtabs button { font: inherit; font-size: 14px; font-weight: 600; min-height: 42px; padding: 0 18px; border: 0; background: none; color: var(--sub); cursor: pointer; }
.viewtabs button + button { border-left: 1px solid var(--line-2); }
.viewtabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ev-toolbar .search { flex: 1 1 240px; max-width: 360px; }
.ev-date { display: inline-flex; align-items: center; gap: 8px; }
.dd { display: inline-block; font-family: var(--f-en); font-size: 11px; letter-spacing: .08em; padding: 2px 6px; border: 1px solid var(--magenta); color: var(--magenta-dk); }
.dd.today { background: var(--magenta); color: var(--white); }
.dd.past { border-color: var(--line-2); color: var(--sub); }

/* 행사 관리: 보드 */
.board { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.bcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bcol header { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid; }
.bcol header b { font-size: 14px; }
.bcol header span { font-size: 12.5px; color: var(--sub); }
.bcard { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--white); border: 1px solid var(--line); }
.bcard .row-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.bcard .row-link:hover { color: var(--magenta); }
.bcard .muted { font-size: 13px; }
.bmeta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bamt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bcard .status-select { width: 100%; }

/* 행사 관리: 캘린더 */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cal-head h3 { font-family: var(--f-title); font-size: 22px; min-width: 120px; text-align: center; }
.cal-head .btn { min-height: 38px; padding: 0 12px; }
.cal-wrap { position: relative; overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); min-width: 700px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-w { padding: 8px; font-size: 12.5px; font-weight: 700; color: var(--sub); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.cal-w.sun, .cal-cell.sun .cal-d { color: var(--magenta-dk); }
.cal-cell { min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); min-width: 0; }
.cal-cell.blank { background: var(--paper); }
.cal-cell.is-today { background: #FBF3F6; }
.cal-cell.is-today .cal-d { background: var(--magenta); color: var(--white); }
.cal-d { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.cal-ev { display: block; font-size: 12px; line-height: 1.35; padding: 3px 6px; border-left: 3px solid; background: var(--paper); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { background: var(--linen); }
.cal-ev .t { font-variant-numeric: tabular-nums; color: var(--sub); margin-right: 4px; }
.cal-more { font-size: 11.5px; color: var(--sub); padding-left: 6px; }

/* 설정 저장 바 */
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 18px; background: var(--card); border: 1px solid var(--ink); }
.savebar .btn { min-height: 48px; padding: 0 28px; }
.set-table select { width: 100%; min-height: 40px; padding: 0 8px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 14px; color: var(--ink); border-radius: 2px; }

/* 메뉴 편집기 */
.me-wrap { display: flex; flex-direction: column; gap: 10px; }
.me-head { display: flex; flex-direction: column; gap: 2px; }
.me-head .lbl { font-size: 13px; font-weight: 600; }
.menu-ed { display: flex; flex-direction: column; gap: 10px; }
.me-list { display: flex; flex-direction: column; gap: 10px; }
.me-course { border: 1px solid var(--line); background: var(--white); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.me-chead { display: flex; align-items: center; gap: 6px; }
.me-cname { flex: 1; min-width: 0; min-height: 38px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; color: var(--magenta-dk); text-transform: uppercase; }
.me-cname::placeholder { letter-spacing: .02em; text-transform: none; font-family: var(--f-body); }
.me-items { display: flex; flex-direction: column; gap: 6px; }
.me-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.me-item input { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-2); background: var(--white); font: inherit; font-size: 14px; color: var(--ink); border-radius: 2px; min-width: 0; width: 100%; }
.me-item .me-en { font-family: var(--f-en); font-size: 12px; letter-spacing: .1em; }
.me-item .me-en::placeholder { font-family: var(--f-body); letter-spacing: 0; }
.iconbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--white); color: var(--sub); font: inherit; font-size: 15px; cursor: pointer; border-radius: 2px; flex-shrink: 0; }
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.me-del:hover, .me-cdel:hover { border-color: var(--magenta); color: var(--magenta-dk); }
.me-add-item { align-self: flex-start; font-size: 13px; text-decoration: none; padding: 4px 0; }
.me-add-course { align-self: flex-start; min-height: 38px; }
.type-cards { display: flex; flex-direction: column; gap: 14px; }
.tcard { display: flex; flex-direction: column; gap: 18px; }
.tc-en { font-family: var(--f-en); font-size: 12px; letter-spacing: .3em; color: var(--magenta); }
@media (max-width: 560px) { .me-item { grid-template-columns: minmax(0, 1fr) auto auto; } .me-item .me-en { grid-column: 1 / -1; grid-row: 2; } }

/* 견적서: 요약 금액은 차분하게 */
.cv-sum { margin-top: 30px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); padding: 16px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.cv-sum .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cv-sum .row > span { font-size: 14px; font-weight: 600; }
.cv-sum .row i { font-style: normal; font-weight: 400; color: var(--sub); font-size: 13px; }
.cv-sum .row b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cv-sum .sub { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.cv-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cv-toc > div > span:last-child { font-size: 12.5px; color: var(--sub); }
.q-h { margin: 26px 0 0; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-h span { font-size: 12px; font-weight: 400; color: var(--sub); }
.ct td.e { font-family: var(--f-en); font-size: 11px; letter-spacing: .12em; color: var(--sub); }
.ct tr.grp td { border-top: 1px solid var(--line-2); }
.q-memo { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--sub); }
.q-memo b { color: var(--ink); }
.qpage.flow { height: auto; min-height: 1123px; }

/* 새 버전 안내 */
.update-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 10px 30px rgba(40, 28, 22, .25); max-width: calc(100% - 32px); }
.update-bar .btn { min-height: 38px; padding: 0 14px; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 14px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); }

/* 견적서 (A4) */
.q-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; }
.q-toolbar .t { display: flex; flex-direction: column; gap: 4px; }
.q-toolbar .t b { font-size: 15px; }
.q-toolbar .t span { font-size: 13.5px; color: var(--sub); }
.q-desk { overflow-x: auto; background: var(--line-2); padding: 48px 24px; }
.q-stack { display: flex; flex-direction: column; align-items: center; gap: 32px; min-width: 794px; }
.qpage {
  width: 794px; height: 1123px; padding: 56px 72px 48px; background: var(--card); color: var(--ink);
  box-shadow: 0 18px 40px rgba(40, 28, 22, .15); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0;
}
.qpage.cover { padding: 64px 72px 56px; }
.q-run { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.q-run .lg { display: flex; align-items: center; gap: 9px; font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; }
.q-run .no { font-size: 12px; color: var(--sub); }
.q-run .no span { font-family: var(--f-en); letter-spacing: .12em; }
.q-title { margin-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.q-title > div { display: flex; flex-direction: column; gap: 10px; }
.q-title .eyebrow { font-size: 13px; }
.q-title h2 { font-family: var(--f-title); font-size: 36px; font-weight: 700; line-height: 1.2; }
.q-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.q-foot .pg { font-family: var(--f-en); letter-spacing: .1em; }

.cv-top { display: flex; justify-content: space-between; align-items: center; }
.cv-logo { display: flex; align-items: center; gap: 11px; }
.cv-logo .w { display: flex; flex-direction: column; gap: 4.9px; font-family: var(--f-en); line-height: 1; white-space: nowrap; }
.cv-logo .w span:first-child { font-size: 19px; letter-spacing: .14em; }
.cv-logo .w span:last-child { font-size: 6.5px; letter-spacing: .52em; }
.cv-no { font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: var(--sub); }
.cv-title { margin-top: 100px; display: flex; flex-direction: column; gap: 14px; }
.cv-title .eyebrow { font-size: 14px; }
.cv-title h1 { font-family: var(--f-title); font-size: 48px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.cv-title .ev { font-size: 18px; font-weight: 600; }
.cv-info { margin-top: 44px; border-top: 1px solid var(--ink); }
.cv-info > div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cv-info > div > span:first-child { width: 104px; flex-shrink: 0; font-size: 13.5px; color: var(--sub); padding-top: 1px; }
.cv-total { margin-top: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 28px; background: var(--tint); }
.cv-total .l { display: flex; flex-direction: column; gap: 8px; }
.cv-total .l > span:first-child { font-size: 13.5px; font-weight: 600; }
.cv-total .big { font-size: 44px; }
.cv-total .r { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.cv-total .r b { color: var(--ink); font-weight: 600; }
.cv-toc { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cv-toc > div { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.cv-toc .en { font-size: 12px; letter-spacing: .2em; color: var(--magenta); }
.cv-toc b { font-size: 14px; font-weight: 600; }
.cv-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cv-bottom .meta { align-self: stretch; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--sub); }

.mn-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13.5px; color: var(--sub); }
.mn-meta b { font-size: 15px; color: var(--ink); }
.mn-card { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); padding: 32px 44px 36px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mn-card .type-en { font-family: var(--f-en); font-size: 12px; letter-spacing: .36em; padding-left: .36em; color: var(--magenta); }
.mn-courses { align-self: stretch; display: flex; flex-direction: column; gap: 20px; }
.mn-course { display: flex; flex-direction: column; gap: 12px; }
.mn-course .ch { display: flex; align-items: center; gap: 14px; }
.mn-course .ch::before, .mn-course .ch::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.mn-course .ch span { font-family: var(--f-en); font-size: 11px; letter-spacing: .32em; padding-left: .32em; color: var(--sub); }
.mn-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.mn-items > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.mn-items .ko { font-family: var(--f-title); font-size: 17px; font-weight: 700; }
.mn-items .en2 { font-family: var(--f-en); font-size: 10px; letter-spacing: .22em; color: var(--sub); }
.mn-opts { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.mn-opts > b { font-size: 14px; }
.mn-opts .g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--ink); }
.mn-opts .g > div { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mn-opts .g b { font-size: 14px; font-weight: 600; }
.mn-opts .g span { font-size: 12.5px; color: var(--sub); }
.q-notes { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.65; color: var(--sub); }
.q-notes b { color: var(--ink); }

.ct { margin-top: 10px; width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ct th { font-size: 12px; color: var(--sub); text-align: left; font-weight: 600; padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.ct td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ct .r { text-align: right; font-variant-numeric: tabular-nums; }
.ct td.c { color: var(--sub); width: 76px; }
.ct td.i { font-weight: 600; }
.ct-sum { margin-top: 18px; align-self: flex-end; width: 340px; display: flex; flex-direction: column; font-size: 13.5px; }
.ct-sum > div { display: flex; justify-content: space-between; padding: 6px 0; }
.ct-sum > div > span:first-child { color: var(--sub); }
.ct-sum > div > span:last-child { font-variant-numeric: tabular-nums; }
.ct-sum .tot { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ink); align-items: baseline; }
.ct-sum .tot span:first-child { color: var(--ink); font-weight: 700; }
.ct-sum .tot span:last-child { font-size: 16px; font-weight: 700; color: var(--ink); }
.pay { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.pay > b { font-size: 14px; }
.pay .g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay .g > div { background: var(--tint); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.pay .g span { font-size: 12.5px; color: var(--sub); }
.pay .g b { font-size: 18px; font-variant-numeric: tabular-nums; }

.tm { margin-top: 24px; border-top: 1px solid var(--ink); }
.tm > div { display: flex; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tm .en { width: 92px; flex-shrink: 0; font-size: 13px; letter-spacing: .12em; color: var(--magenta); }
.incl { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.incl > div { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; font-size: 13px; line-height: 1.75; }
.incl > div:first-child { background: var(--tint); }
.incl > div:last-child { border: 1px solid var(--line-2); }
.incl b { font-size: 14px; }
.cancel { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cancel > b { font-size: 14px; }
.cancel .g { border-top: 1px solid var(--ink); font-size: 13.5px; }
.cancel .g > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cancel .g b { font-weight: 600; }
.sign { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sign > div { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 12px; }
.sign .k { font-size: 12.5px; color: var(--sub); }
.sign b { font-size: 14px; }
.sign .line { display: flex; justify-content: space-between; align-items: flex-end; height: 36px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--sub); }

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; position: static; }
  .view { padding: 28px 16px 64px; gap: 36px; }
  .page-head h1 { font-size: 32px; }
  .map { padding: 28px 16px; }
  .map-total .big { font-size: 38px; }
  .summary { position: static; }
  .foot { padding: 18px 16px; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; display: block; }
  .topbar, .foot, .no-print, .toast, .update-bar { display: none !important; }
  .view { padding: 0; max-width: none; display: block; }
  .q-desk { background: none; padding: 0; overflow: visible; }
  .q-stack { gap: 0; min-width: 0; display: block; }
  .qpage { box-shadow: none; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qpage:last-child { break-after: auto; page-break-after: auto; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 견적서 2 · 3페이지를 A4 한 장 안에 (여백 · 줄 간격 압축) */
.qpage:not(.cover) { padding: 46px 64px 40px; }
.qpage:not(.cover) .q-title { margin-top: 24px; }
.qpage:not(.cover) .q-title h2 { font-size: 28px; }
.qpage:not(.cover) .q-title .eyebrow { font-size: 12px; }
.qpage:not(.cover) .q-h { margin-top: 20px; }
.ct th { padding-bottom: 8px; }
.ct td { padding: 7px 0; }
.ct-sum { margin-top: 12px; }
.ct-sum > div { padding: 4px 0; }
.ct-sum .tot { margin-top: 4px; padding-top: 9px; }
.tm { margin-top: 18px; }
.tm > div { padding: 7px 0; font-size: 13px; }
.pay { margin-top: 18px; gap: 8px; }
.pay .g > div { padding: 12px 16px; gap: 4px; }
.pay .g b { font-size: 16px; }
.incl { margin-top: 16px; gap: 12px; }
.incl > div { padding: 13px 16px; gap: 6px; font-size: 12.5px; line-height: 1.6; }
.cancel { margin-top: 16px; gap: 8px; }
.cancel .g { font-size: 13px; }
.cancel .g > div { padding: 7px 0; }
.sign { margin-top: 16px; }
.sign > div { gap: 6px; padding-top: 10px; }
.sign .line { height: 30px; }
.q-notes { margin-top: 14px; }
.ct td.i .en-line { display: block; margin-top: 3px; font-family: var(--f-en); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; color: var(--sub); line-height: 1.5; }
.ct td.c { vertical-align: top; }
.qpage:not(.cover) .q-title { margin-top: 18px; }
.qpage:not(.cover) .q-h { margin-top: 16px; }
.ct td { padding: 6px 0; }
.ct td.i .en-line { margin-top: 2px; }
.q-memo { margin-top: 8px; }

/* 매출 구조: 기간 선택 · 집계 기준 */
.period { display: flex; flex-direction: column; gap: 10px; }
.period .filters a.fchip { min-height: 38px; }
.viewtabs a { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; min-height: 42px; padding: 0 20px; color: var(--sub); text-decoration: none; }
.viewtabs a + a { border-left: 1px solid var(--line-2); }
.viewtabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.period .viewtabs { align-self: flex-start; }
.basis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.basis b { font-size: 13px; color: var(--magenta-dk); }
.basis span { display: inline-flex; gap: 8px; }
.basis i { font-style: normal; color: var(--sub); }
a.bar { color: var(--ink); text-decoration: none; }
a.bar:hover .col { outline: 1px solid var(--taupe); outline-offset: 2px; }
.bar.dim { opacity: .28; }
.months span.on { color: var(--ink); font-weight: 700; }

/* 단가 관리 · 메뉴 단가: 구성별 탭 */
.type-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.type-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 16px; border: 1px solid var(--line-2); background: var(--white); font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 2px; }
.type-tabs button b { font-size: 15px; }
.type-tabs button span { font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.type-tabs button:hover { border-color: var(--ink); }
.type-tabs button[aria-selected="true"] { border: 2px solid var(--magenta); padding: 11px 15px; background: var(--card); }
.tcard .fields { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px 16px; }
.tcard .me-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); align-items: start; }
.tt-add { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 16px; border: 1px dashed var(--taupe); background: transparent; font: inherit; color: var(--magenta-dk); text-align: left; cursor: pointer; border-radius: 2px; }
.tt-add b { font-size: 15px; }
.tt-add span { font-size: 12.5px; color: var(--sub); }
.tt-add:hover { border-style: solid; border-color: var(--magenta); }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tc-del { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* 고객 공유 링크 */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; }
.share-bar .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.share-bar .t b { font-size: 15px; }
.share-bar .t span { font-size: 13.5px; color: var(--sub); }
.share-state.ok, .share-tag.ok { color: var(--magenta) !important; font-weight: 600; }
.share-url { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 2 1 420px; min-width: 0; }
.share-url input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; font: inherit; font-size: 13px; color: var(--sub); background: var(--tint); }
.share-url input:focus { outline: 2px solid var(--magenta); outline-offset: 1px; }
.share-tag { font-size: 12px; }

/* 로그인: 구글 버튼 · 안내 */
.g-wrap { display: flex; flex-direction: column; gap: 16px; }
.g-btn { min-height: 44px; display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--taupe); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice { margin: 0; padding: 10px 12px; background: var(--tint); border-left: 3px solid var(--magenta); font-size: 13.5px; }
.login-foot { margin: 4px 0 0; font-size: 12.5px; color: var(--taupe); text-align: center; }
.login-foot a { color: var(--sub); }

/* 개인정보 취급 안내 */
.ack { max-width: 720px; margin: 24px auto; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.ack h1 { margin: 0; font-family: var(--f-title); font-size: 28px; }
.ack p { margin: 0; color: var(--sub); }
.ack-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
.ack-list b { color: var(--ink); }
.ack-check { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--tint); font-weight: 600; cursor: pointer; }
.ack-check input { width: 18px; height: 18px; accent-color: var(--magenta); }

/* 개인정보 보호 · 접속 기록 */
.u-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.u-tag { display: inline-block; font-size: 11.5px; padding: 2px 8px; border: 1px solid var(--line-2); color: var(--sub); white-space: nowrap; }
.u-tag.warn { border-color: var(--magenta-soft); color: var(--magenta); background: #FFF; }
.purge-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.purge-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 360px; }
.pv-auto { display: flex; flex-direction: column; gap: 8px; }
.pv-auto ul { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--sub); font-size: 14px; }
.audit-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.audit-filter .field { flex: 1 1 160px; min-width: 0; }
table.audit td { font-size: 13px; }
table.audit tr.warn td { color: var(--magenta-dk); }

/* ───────── 홈 포털 (아마란스10 구성: 어두운 첫 화면 + 위젯) ───────── */
.pi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
body.on-home .view { max-width: none; padding: 0 0 72px; gap: 0; }
body.on-home .topbar { background: #141110; border-bottom-color: rgba(242, 237, 230, .08); }
body.on-home .brand, body.on-home .brand-word { color: #F2EDE6; }
body.on-home .nav a, body.on-home .top-settings { color: #A99F96; }
body.on-home .nav a:hover, body.on-home .top-settings:hover, body.on-home .nav a[aria-current="page"] { color: #FFFFFF; }

.hero {
  position: relative; overflow: hidden; color: #F2EDE6;
  background: radial-gradient(120% 90% at 50% 40%, #241D1B 0%, #141110 58%, #0E0C0B 100%);
  min-height: calc(100vh - 71px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 16px 160px;
}
.hero-arcs { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(242, 237, 230, .12); stroke-width: 1.2; pointer-events: none; }
.hero-arcs .m { stroke: rgba(179, 50, 95, .55); }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; max-width: 640px; }
.hero-brand, .auth-brand { display: flex; align-items: center; gap: 16px; }
.hero-word { display: flex; flex-direction: column; gap: 9px; font-family: var(--f-en); line-height: 1; color: #FFFFFF; }
.hero-word .b1 { font-size: 46px; letter-spacing: .16em; }
.hero-word .b2 { font-size: 13px; letter-spacing: .62em; color: #CFC5B8; }
.hero-greet { margin: 0 0 8px; color: #CFC5B8; font-size: 15px; }
.hero-search { display: flex; align-items: center; width: 100%; height: 56px; padding: 0 8px 0 26px; background: #E9E4DE; border-radius: 999px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(231, 169, 190, .55), 0 14px 40px -12px rgba(0, 0, 0, .6); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.hero-search input::placeholder { color: #8A8079; }
.hero-search button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.hero-search button:hover { background: rgba(59, 52, 49, .08); }
.hero-search .pi { width: 22px; height: 22px; }
.hero-recent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; }
.hero-recent b { color: #F2EDE6; margin-right: 4px; }
.rq { display: inline-flex; align-items: center; border: 1px solid rgba(242, 237, 230, .35); border-radius: 999px; padding: 1px 2px 1px 10px; }
.rq button { background: none; border: 0; color: #F2EDE6; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 3px 2px; }
.rq .x { color: #A99F96; padding: 3px 7px; font-weight: 400; }
.hero-scroll { position: absolute; bottom: 124px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; color: #F2EDE6; font-size: 12px; font-weight: 600; text-decoration: none; }
.hero-scroll:hover { color: #FFFFFF; }
.hero-scroll svg { width: 22px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dock { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #CFC5B8; font-size: 11.5px; text-decoration: none; }
.dock a:hover { color: #FFFFFF; }
.dock-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #FFFFFF; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s ease; }
.dock a:hover .dock-ic { transform: translateY(-3px); }
.dock .pi { width: 26px; height: 26px; stroke-width: 1.5; }
.dock .a1 .dock-ic { background: linear-gradient(140deg, #D9578A, #8E2246); }
.dock .a2 .dock-ic { background: linear-gradient(140deg, #7F6F66, #3B3431); }
.dock .a3 .dock-ic { background: linear-gradient(140deg, #EDB3C7, #C25A82); }
.dock .a4 .dock-ic { background: linear-gradient(140deg, #CFC5B8, #8B7E74); }
.dock .a5 .dock-ic { background: linear-gradient(140deg, #C24470, #5E1630); }
.dock .a6 .dock-ic { background: linear-gradient(140deg, #A99F96, #4A403B); }

.portal { max-width: 1440px; margin: 0 auto; padding: 40px 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; scroll-margin-top: 72px; }
.pt-main, .pt-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pw { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; min-width: 0; box-shadow: 0 1px 2px rgba(59, 52, 49, .04), 0 12px 30px -26px rgba(59, 52, 49, .4); }
.pw-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pw-h h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.pw-h h2 small { font-size: 12px; font-weight: 500; color: var(--taupe); }
.pw-more { margin-left: auto; font-size: 12.5px; color: var(--sub); text-decoration: none; white-space: nowrap; }
.pw-more:hover { color: var(--magenta); }
.pw-note { margin-left: auto; font-size: 12px; color: var(--taupe); }
.pw-empty { margin: 0; padding: 22px 0 6px; color: var(--taupe); font-size: 14px; }
.pw-empty.sm { padding: 4px 0 0; font-size: 13px; }

.pw-banner { background: linear-gradient(100deg, #83203F 0%, #B3325F 50%, #D77A9C 100%); border: 0; color: #FFFFFF; }
.pw-banner .pw-h { border-bottom-color: rgba(255, 255, 255, .22); }
.pw-banner .pw-more { color: rgba(255, 255, 255, .85); }
.pw-banner .pw-more:hover { color: #FFFFFF; }
.bn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); padding-top: 12px; }
.bn-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; color: #FFFFFF; text-align: center; text-decoration: none; border-radius: 8px; position: relative; }
.bn-row a + a::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255, 255, 255, .2); }
.bn-row a:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.bn-row .pi { width: 28px; height: 28px; stroke-width: 1.4; }
.bn-row b { font-size: 13.5px; }
.bn-row span { font-size: 11.5px; opacity: .82; }

.wk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-pills button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: #FFFFFF; color: var(--sub); cursor: pointer; }
.wk-pills button:hover { border-color: var(--taupe); color: var(--ink); }
.wk-pills button[aria-selected="true"] { background: var(--magenta-soft); border-color: var(--magenta); color: var(--magenta-dk); }
.wl { list-style: none; margin: 0; padding: 0; }
.wl li + li { border-top: 1px solid var(--line); }
.wl a { display: grid; grid-template-columns: minmax(0, 1fr) 150px 96px; align-items: center; gap: 16px; padding: 15px 8px; margin: 0 -8px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.wl a:hover { background: var(--tint); }
.pw-up .wl a { grid-template-columns: 58px minmax(0, 1fr) 150px; }
.wl-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wl-t b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-s { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--taupe); }
.wl-s .who { color: var(--sub); font-weight: 600; }
.wl-st { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink); }
.wl-st .num { flex-basis: 100%; padding-left: 16px; font-size: 12px; color: var(--taupe); }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; }
.wl-a { text-align: right; font-size: 14px; font-weight: 700; }
.up-d { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 7px 0; border-radius: 8px; background: var(--tint); }
.up-d b { font-size: 21px; font-weight: 800; }
.up-d span { font-size: 11px; color: var(--sub); }

.rv { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 18px; }
.rv-total { display: flex; flex-direction: column; gap: 4px; }
.rv-total b { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.rv-total small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.rv-total span { font-size: 12.5px; color: var(--taupe); }
.rv-bar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.rv-leg { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; font-size: 13px; }
.rv-leg li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--sub); }
.rv-leg b { color: var(--ink); }
.rv-leg .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

.dn { position: relative; width: 168px; height: 168px; margin: 20px auto 14px; }
.donut { display: block; width: 100%; height: 100%; }
.donut circle { fill: none; stroke-width: 7; }
.donut .track { stroke: var(--tint); }
.dn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.dn-c b { font-size: 28px; font-weight: 800; line-height: 1; }
.dn-c b small { font-size: 14px; margin-left: 1px; }
.dn-c span { font-size: 12px; color: var(--sub); }
.dn-leg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 13px; }
.dn-leg li { display: flex; align-items: center; min-width: 0; }
.dn-leg b { margin-left: auto; font-weight: 600; color: var(--sub); }
.mini3 { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--tint); border: 1px solid var(--line); border-radius: 8px; }
.mini3 a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; text-align: center; text-decoration: none; font-size: 11.5px; color: var(--sub); }
.mini3 a + a { border-left: 1px solid var(--line); }
.mini3 a:hover { background: #FFFFFF; }
.mini3 b { font-size: 16px; font-weight: 800; color: var(--magenta); }
.mini3 b small { font-size: 11px; margin-left: 1px; }

.hc-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 8px; }
.hc-nav b { font-size: 15px; }
.hc-nav button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #FFFFFF; color: var(--sub); font-size: 16px; line-height: 1; cursor: pointer; }
.hc-nav button:hover { border-color: var(--taupe); color: var(--ink); }
.hc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.hc-w { font-size: 11.5px; color: var(--taupe); padding: 4px 0; }
.hc-w.sun { color: var(--magenta); }
.hc-grid button { position: relative; aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.hc-grid button:hover { background: var(--tint); }
.hc-grid button.sun { color: var(--magenta-dk); }
.hc-grid button.today { box-shadow: inset 0 0 0 1px var(--magenta); color: var(--magenta); font-weight: 700; }
.hc-grid button.on { background: var(--magenta); color: #FFFFFF; }
.hc-grid button i { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--magenta); }
.hc-grid button.on i { background: #FFFFFF; }
.hc-day { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.hc-dh { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.hc-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hc-day a { display: flex; align-items: center; font-size: 13px; color: var(--ink); text-decoration: none; }
.hc-day a b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-day a .num { margin-left: 8px; font-size: 12px; color: var(--taupe); }
.hc-day a:hover b { color: var(--magenta); }

.tl { list-style: none; margin: 0; padding: 4px 0 0; }
.tl-day { padding: 12px 0 10px; font-size: 13px; font-weight: 700; }
.tl-it { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.tl-it::before { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--line); }
.tl-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: var(--taupe); }
.tl-ic .pi { width: 15px; height: 15px; stroke-width: 2; }
.tl-it.k-ok .tl-ic { background: var(--magenta); }
.tl-it.k-seen .tl-ic { background: var(--pink); }
.tl-it.k-edit .tl-ic { background: #8F8278; }
.tl-it.k-new .tl-ic { background: var(--ink); }
.tl-it a { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 3px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.tl-it a:hover > span:first-child { color: var(--magenta); }
.tl-s { font-size: 12.5px; color: var(--sub); }
.tl-it time { font-size: 11.5px; color: var(--taupe); }

@media (max-width: 1100px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .pt-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .hero { padding: 48px 16px 150px; }
  .hero-word .b1 { font-size: 30px; }
  .hero-word .b2 { font-size: 9px; }
  .hero-brand svg { width: 44px; height: 44px; }
  .hero-scroll { bottom: 112px; }
  .dock { gap: 8px; bottom: 22px; }
  .dock-ic { width: 44px; height: 44px; border-radius: 12px; }
  .dock .pi { width: 22px; height: 22px; }
  .dock-l { font-size: 10.5px; }
  .portal { padding: 24px 16px 0; gap: 16px; }
  .pt-main, .pt-side { gap: 16px; }
  .pt-side { grid-template-columns: minmax(0, 1fr); }
  .pw { padding: 18px 16px; }
  .wl a { grid-template-columns: minmax(0, 1fr) auto; }
  .wl-a { display: none; }
  .pw-up .wl a { grid-template-columns: 52px minmax(0, 1fr); }
  .pw-up .wl-st { display: none; }
  .rv { grid-template-columns: minmax(0, 1fr); }
  .rv-leg { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── 로그인 (왼쪽 브랜드 · 오른쪽 로그인) ───────── */
body.signed-out .topbar, body.signed-out .foot { display: none; }
body.signed-out .view { max-width: none; padding: 0; gap: 0; }
body.signed-out .view > .card.empty { margin: 40px 16px; }
.ack-wrap { padding: 40px 16px; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 100vh; }
.auth-hero {
  position: relative; overflow: hidden; color: #F2EDE6;
  background: radial-gradient(120% 90% at 40% 50%, #241D1B 0%, #141110 60%, #0E0C0B 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 56px 64px 120px;
}
.auth-brand { position: relative; }
.auth-brand .hero-word .b1 { font-size: 40px; }
.auth-copy { position: relative; display: flex; flex-direction: column; gap: 10px; }
.auth-copy b { font-size: 22px; font-weight: 700; color: #FFFFFF; }
.auth-copy span { font-size: 18px; font-weight: 300; color: #CFC5B8; }
.auth-legal { position: absolute; left: 64px; bottom: 40px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #A99F96; }
.auth-legal a { color: #F2EDE6; font-weight: 700; text-decoration: none; }
.auth-legal a:hover { color: #FFFFFF; text-decoration: underline; }
.auth-panel { display: flex; align-items: center; padding: 48px 40px; background: #F4F2EF; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.auth-form h1 { margin: 0 0 36px; font-size: 22px; font-weight: 800; color: var(--ink); }
.pill { width: 100%; height: 50px; padding: 0 24px; border: 1px solid #D5CFC8; border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 15px; color: var(--ink); }
.pill::placeholder { color: #A39990; }
.pill:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-soft); }
.auth-btn { margin-top: 18px; height: 54px; border: 0; border-radius: 8px; background: var(--magenta); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(131, 32, 63, .8); }
.auth-btn:hover { background: var(--magenta-dk); }
.auth-btn:disabled { opacity: .6; cursor: wait; }
.auth-save { display: flex; align-items: center; gap: 8px; padding-left: 10px; font-size: 13px; color: var(--sub); cursor: pointer; }
.auth-save input { width: 16px; height: 16px; accent-color: var(--magenta); }
.auth-form .err { margin: 0; padding-left: 10px; font-size: 13.5px; color: var(--magenta-dk); }
.auth-form .err:empty { display: none; }
.auth-form .login-foot { margin-top: 18px; padding-left: 10px; text-align: left; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-hero { padding: 40px 24px 32px; gap: 18px; }
  .auth-brand .hero-word .b1 { font-size: 28px; }
  .auth-brand svg { width: 40px; height: 40px; }
  .auth-copy b { font-size: 17px; }
  .auth-copy span { font-size: 14px; }
  .auth-legal { display: none; }
  .auth-panel { align-items: flex-start; padding: 32px 20px 48px; }
  .auth-form h1 { margin-bottom: 14px; }
}

/* 홈 위젯: 챙겨야 할 일 · 목표 · 관리자 알림 */
.pw-h .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--magenta); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.td, .ad { list-style: none; margin: 0; padding: 4px 0 0; }
.td li + li, .ad li + li { border-top: 1px solid var(--line); }
.td a, .ad a { display: grid; grid-template-columns: 64px minmax(0, 1fr) 14px; align-items: center; gap: 14px; padding: 13px 8px; margin: 0 -8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.ad a { grid-template-columns: 10px minmax(0, 1fr) 14px; }
.td a:hover, .ad a:hover { background: var(--tint); }
.td-lv { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--tint); color: var(--sub); white-space: nowrap; }
.td .lv0 .td-lv { background: var(--magenta); color: #FFFFFF; }
.td .lv1 .td-lv { background: var(--magenta-soft); color: var(--magenta-dk); }
.td-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; }
.td-t b { font-weight: 700; }
.td-n { font-size: 12.5px; color: var(--taupe); }
.td-go { color: var(--taupe); font-size: 18px; line-height: 1; }
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--taupe); }
.ad .warn .ad-dot { background: var(--magenta); }
.ad-ok { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0 4px; font-size: 14px; }
.ad-ok .pi { color: var(--magenta); margin-top: 2px; }
.ad-ok > span { display: flex; flex-direction: column; gap: 3px; }
.as-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; cursor: pointer; }
.gl { display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
.gl-m { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 13px; color: var(--sub); }
.gl-g { position: relative; width: 180px; }
.gauge { display: block; width: 100%; }
.gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge .g-track { stroke: var(--tint); }
.gauge .g-val { stroke: var(--magenta); }
.gl-g b { position: absolute; left: 0; right: 0; bottom: 0; font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.gl-g b small { font-size: 14px; margin-left: 1px; }
.gl-k { font-weight: 700; color: var(--ink); margin-top: 8px; }
.gl-left { font-size: 12.5px; }
.gl-left b { color: var(--magenta); }
.gl-left.ok { color: var(--magenta); font-weight: 700; }
.gl-y { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.gl-y .gl-k { margin: 0; display: flex; justify-content: space-between; }
.gl-y .gl-k b { color: var(--magenta); }
.gl-bar { position: relative; height: 10px; border-radius: 999px; background: var(--tint); }
.gl-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #B3325F, #D77A9C); }
.gl-bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.gl-sub { color: var(--sub); font-size: 12.5px; }
.gl-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.gl-form .fields { grid-template-columns: minmax(0, 1fr); }


/* ───────── 홈 첫 화면 · 업무 HOME 분리 ───────── */
body.on-home .view { padding: 0; }
body.on-home .foot { display: none; }
.hero { min-height: 0; flex: 1; padding: 64px 16px 150px; cursor: auto; }
.hero-go { position: absolute; bottom: 132px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid rgba(242, 237, 230, .35); border-radius: 999px; color: #F2EDE6; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; background: rgba(255, 255, 255, .04); }
.hero-go:hover { color: #FFFFFF; border-color: #F2EDE6; background: rgba(255, 255, 255, .1); }
.hero-go .pi { width: 16px; height: 16px; }
.dock .a0 .dock-ic { background: linear-gradient(140deg, #F2EDE6, #B9ADA2); color: #3B3431; }
.portal { max-width: none; margin: 0; padding: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dash-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.dash-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dash-head span { font-size: 13.5px; color: var(--sub); }
@media (max-width: 760px) {
  .hero { padding: 48px 16px 140px; }
  .hero-go { bottom: 108px; }
  .portal { padding: 0; }
}

/* ───────── 전체 화면: 홈과 같은 포털 스타일 ───────── */
.topbar { background: #141110; border-bottom-color: rgba(242, 237, 230, .08); }
.topbar .brand, .topbar .brand-word { color: #F2EDE6; }
.nav a, .top-settings { color: #A99F96; }
.nav a:hover, .top-settings:hover, .nav a[aria-current="page"], .top-settings[aria-current="page"] { color: #FFFFFF; }
.view { gap: 28px; }
.page-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--f-body); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.eyebrow { font-size: 12px; letter-spacing: .3em; }
.sec-head { border-top: 0; padding-top: 0; }
.sec-head h2 { font-size: 18px; }

.card, .table-wrap, .kpis, .stage { border-radius: 10px; }
.card, .table-wrap, .stage { background: #FFFFFF; }
.card, .table-wrap, .kpis { box-shadow: 0 1px 2px rgba(59, 52, 49, .04), 0 12px 30px -26px rgba(59, 52, 49, .4); }
.kpis { overflow: hidden; }
.kpi { background: #FFFFFF; }
.stage:hover { border-color: var(--line-2); box-shadow: 0 8px 20px -16px rgba(59, 52, 49, .5); }
.stage[aria-current="true"] { border: 1px solid var(--magenta); padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--magenta); }
table.list th { background: #FBF9F6; border-bottom-color: var(--line-2); }
table.list tbody tr:hover td { background: var(--tint); }

.btn { border-radius: 6px; }
.chip { border-radius: 4px; }
.filters .fchip { border-radius: 6px; min-height: 36px; font-size: 13px; }
.filters a.fchip[aria-current="page"], .filters .fchip[aria-pressed="true"] { background: var(--magenta-soft); border-color: var(--magenta); color: var(--magenta-dk); }
.field input, .field select, .field textarea, input.search, .set-table input, .set-table select { border-radius: 6px; }

@media print {
  .card, .table-wrap, .kpis { box-shadow: none; }
}
.viewtabs { border-radius: 8px; overflow: hidden; }
.viewtabs button[aria-pressed="true"], .viewtabs a[aria-current="page"] { background: var(--magenta); color: #FFFFFF; }

/* 단가 한눈에 보기 (그래프) */
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; align-items: start; }
.pw-viz .pw-h { margin-bottom: 8px; }
.hb { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 16px; }
.hb li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 118px; align-items: center; gap: 14px; }
.hb-k { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-k b { font-size: 14px; }
.hb-k span { font-size: 11px; color: var(--taupe); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-k .en { letter-spacing: .08em; }
.hb-track { position: relative; height: 22px; background: var(--tint); border-radius: 6px; }
.hb-bar { display: block; height: 100%; border-radius: 6px; min-width: 2px; transition: width .4s ease; }
.hb-bar.c0 { background: linear-gradient(90deg, #B3325F, #D77A9C); }
.hb-bar.c1 { background: linear-gradient(90deg, #3B3431, #7F6F66); }
.hb-bar.c2 { background: linear-gradient(90deg, #83203F, #B3325F); }
.hb-bar.c3 { background: linear-gradient(90deg, #9A8F86, #CFC5B8); }
.hb-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px #FFFFFF; }
.hb-mark-key { display: inline-block; width: 3px; height: 12px; background: var(--ink); border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.hb-v { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--sub); }
.hb-v b { font-size: 16px; color: var(--ink); }
.hb-v small { font-size: 11px; color: var(--taupe); }
.hb-axis { position: relative; height: 18px; margin: 6px 132px 0 144px; font-size: 10.5px; color: var(--taupe); }
.hb-axis span { position: absolute; transform: translateX(-50%); }
.viz-note { margin: 10px 0 0; font-size: 12px; color: var(--taupe); }
.viz-sub { margin: 0 0 4px; font-size: 13px; color: var(--sub); }
.viz-sub b { color: var(--ink); }
.sim-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 16px 0 6px; }
.sim-types { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-types button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #FFFFFF; color: var(--sub); cursor: pointer; }
.sim-types button[aria-checked="true"] { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }
.sim-g { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sub); flex: 1 1 260px; }
.sim-g b { font-size: 18px; color: var(--magenta); }
.sim-g input { flex: 1; accent-color: var(--magenta); }
.sim-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--sub); flex-basis: 100%; }
.sim-opts input { accent-color: var(--magenta); }
.sim-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; padding-top: 10px; }
.sim-charts { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.viz-svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-svg text { font-size: 10.5px; fill: var(--taupe); font-family: var(--f-body); }
.viz-svg .gl { stroke: var(--line); stroke-width: 1; }
.viz-svg .cur { stroke: var(--magenta); stroke-width: 1.5; stroke-dasharray: 4 3; }
.viz-svg .cur-dot { fill: #FFFFFF; stroke: var(--magenta); stroke-width: 2.5; }
.viz-svg .pp { fill: none; stroke: var(--magenta); stroke-width: 2.5; stroke-linejoin: round; }
.viz-svg .base { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.viz-leg { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--sub); }
.viz-leg li, .sim-list li { display: flex; align-items: center; gap: 6px; }
.viz-leg .sw, .sim-list .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sim-side { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--tint); border-radius: 10px; }
.sim-big { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sub); }
.sim-big > b { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.sim-big > b small { font-size: 15px; margin-left: 2px; }
.dn.sm { width: 140px; height: 140px; margin: 4px auto; }
.sim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sim-list b { margin-left: auto; font-weight: 700; }
.sim-list .num:last-child { width: 36px; text-align: right; color: var(--taupe); }
@media (max-width: 900px) {
  .sim-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hb li { grid-template-columns: 92px minmax(0, 1fr) 84px; gap: 10px; }
  .hb-axis { margin: 6px 94px 0 102px; }
}

/* 휴대폰 앱 설치 안내 */
.app-card { display: flex; flex-direction: column; gap: 12px; }
.app-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.app-steps > div { padding: 14px 16px; background: var(--tint); border-radius: 8px; }
.app-steps .en { font-size: 11px; letter-spacing: .2em; color: var(--magenta); }
.app-steps ol { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.app-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #141110; color: #F2EDE6; border-radius: 10px; font-size: 12.5px; }
.app-hint img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.app-hint > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; color: #CFC5B8; }
.app-hint b { color: #FFFFFF; font-size: 13.5px; }
.app-hint a { color: #FFFFFF; font-weight: 700; text-decoration: none; padding: 6px 10px; border: 1px solid rgba(242, 237, 230, .35); border-radius: 999px; white-space: nowrap; }
.app-hint button { background: none; border: 0; color: #A99F96; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }

/* 휴대폰: 메뉴는 아래 탭 바로 (앱처럼) */
@media (max-width: 760px) {
  .topbar { flex-wrap: nowrap; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; }
  .brand svg { width: 32px; height: 32px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #141110; border-top: 1px solid rgba(242, 237, 230, .1);
  }
  .nav a { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 2px; font-size: 11px; border-bottom: 0; border-top: 2px solid transparent; }
  .nav a[aria-current="page"] { border-top-color: var(--magenta); border-bottom: 0; }
  .nav .ic { width: 20px; height: 20px; }
  body:not(.signed-out) { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body.on-home .hero { padding-bottom: 130px; }
}

/* 메뉴 단가: 구성 타일 */
.type-tabs { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.type-tabs button { gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(59, 52, 49, .04); }
.type-tabs button:hover { border-color: var(--line-2); box-shadow: 0 10px 22px -18px rgba(59, 52, 49, .6); }
.type-tabs button[aria-selected="true"] { border: 1px solid var(--magenta); padding: 16px 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--magenta), 0 12px 26px -20px rgba(131, 32, 63, .7); }
.type-tabs .tt-en { font-size: 10.5px; letter-spacing: .18em; color: var(--taupe); }
.type-tabs button span.tt-p { margin-top: 6px; font-size: 12px; color: var(--sub); }
.type-tabs .tt-p b { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin-right: 2px; }
.type-tabs button[aria-selected="true"] .tt-p b { color: var(--magenta); }
.tt-bar { display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.tt-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #B3325F, #D77A9C); }
.type-tabs button span.tt-m { font-size: 11.5px; color: var(--taupe); }
.tt-add { border-radius: 10px; justify-content: center; align-items: center; text-align: center; min-height: 120px; }

/* 메뉴 단가: 편집 카드 */
.tcard { padding: 0; gap: 0; }
.tc-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: 10px 10px 0 0; background: linear-gradient(100deg, #2A2220 0%, #141110 100%); color: #F2EDE6; }
.tc-hn { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; min-width: 0; }
.tc-hero .tc-en { color: var(--pink); font-size: 11.5px; letter-spacing: .3em; }
.tc-name { font-size: 24px; font-weight: 800; color: #FFFFFF; }
.tc-desc { font-size: 13px; color: #CFC5B8; }
.tc-hp { display: flex; align-items: baseline; gap: 6px; color: #CFC5B8; font-size: 13px; }
.tc-price { font-size: 34px; font-weight: 800; color: #FFFFFF; letter-spacing: -.01em; }
.tc-hero .tc-del { background: transparent; color: #E7A9BE; border-color: rgba(231, 169, 190, .5); }
.tc-hero .tc-del:hover { background: rgba(231, 169, 190, .12); color: #FFFFFF; }
.tc-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 24px 26px; align-items: start; }
.tc-form { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tc-grp { display: flex; flex-direction: column; gap: 12px; }
.tc-grp h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.tc-grp h3 .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--magenta-soft); color: var(--magenta-dk); font-size: 11px; }
.tcard .fields { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 16px; }
.in-unit { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; background: #FFFFFF; overflow: hidden; }
.in-unit:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-soft); }
.field .in-unit input { flex: 1; min-width: 0; border: 0; border-radius: 0; font-size: 17px; font-weight: 700; text-align: right; box-shadow: none; outline: none; }
.in-unit span { padding: 0 14px 0 6px; font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.staff-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14.5px; }
.staff-row input { width: 76px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; text-align: center; color: var(--ink); }
.staff-row input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-soft); }
.staff-row b { color: var(--magenta-dk); }
.tc-prev { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--tint); border-radius: 10px; }
.tp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-h b { font-size: 14px; }
.tp-g { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #FFFFFF; }
.tp-g button { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border: 0; background: none; color: var(--sub); cursor: pointer; }
.tp-g button[aria-pressed="true"] { background: var(--magenta); color: #FFFFFF; }
.tp-total { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--sub); }
.tp-total b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.tp-total b small { font-size: 14px; margin-left: 2px; }
.tp-bar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; background: #FFFFFF; }

/* 메뉴판 모양 */
.menu-board { border-radius: 0 0 10px 10px; padding: 22px 26px 26px; border-top: 1px solid var(--line); background: #FBF9F6; }
.menu-board .me-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; align-items: start; }
.menu-board .me-course { border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; padding: 18px 18px 12px; gap: 6px; }
.menu-board .me-chead { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-board .me-cname { border: 0; text-align: center; font-size: 13px; color: var(--magenta); }
.menu-board .me-item { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "ko up del" "en up del"; gap: 0 4px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.menu-board .me-item .me-ko { grid-area: ko; border: 1px solid transparent; min-height: 32px; font-family: var(--f-title); font-size: 15.5px; font-weight: 700; padding: 0 6px; }
.menu-board .me-item .me-en { grid-area: en; border: 1px solid transparent; min-height: 26px; font-size: 11px; letter-spacing: .14em; color: var(--taupe); padding: 0 6px; }
.menu-board .me-item input:hover { border-color: var(--line); }
.menu-board .me-item input:focus { border-color: var(--magenta); outline: none; background: #FFFFFF; }
.menu-board .me-item .me-up { grid-area: up; }
.menu-board .me-item .me-del { grid-area: del; }
.menu-board .me-item .iconbtn, .menu-board .me-chead .iconbtn { width: 28px; height: 28px; font-size: 13px; border-color: transparent; opacity: .45; }
.menu-board .me-item:hover .iconbtn, .menu-board .me-chead:hover .iconbtn, .menu-board .iconbtn:focus-visible { opacity: 1; border-color: var(--line-2); }
.menu-board .me-add-item { align-self: center; margin-top: 4px; }
@media (max-width: 900px) {
  .tc-body { grid-template-columns: minmax(0, 1fr); }
  .tc-prev { position: static; }
}
@media (hover: none) {
  .menu-board .me-item .iconbtn, .menu-board .me-chead .iconbtn { opacity: .8; }
}

/* 저장 바: 포털 스타일 · 휴대폰에서는 아래 탭 바 위에 */
.savebar { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -8px 24px -18px rgba(59, 52, 49, .45); }
@media (max-width: 760px) {
  .savebar { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

/* ───────── 휴대폰 화면 정리 ───────── */
@media print { .q-stack { zoom: 1 !important; } }
@media (max-width: 760px) {
  /* 공통 간격 · 글자 */
  .view { padding: 18px 16px 28px; gap: 20px; }
  body.on-home .view { padding: 0; }
  .page-head { padding-bottom: 14px; gap: 12px; align-items: flex-start; }
  .page-head > div { gap: 6px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 13px; line-height: 1.5; }
  .page-head .head-actions { width: 100%; }
  .page-head .head-actions .btn { flex: 1; }
  .eyebrow { font-size: 10.5px; letter-spacing: .26em; }
  .sec { gap: 12px; }
  .sec-head { gap: 4px 10px; }
  .sec-head h2 { font-size: 16px; }
  .sec-head .desc { font-size: 12.5px; flex-basis: 100%; }
  .card.pad, .card .pad { padding: 16px; }
  .fs { padding: 18px 16px; gap: 14px; border-radius: 10px; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .field > label { font-size: 12.5px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .filters { gap: 6px; }
  .filters .fchip { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
  .filters .search { flex-basis: 100%; max-width: none; margin-left: 0; }
  .viewtabs button { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .banner { padding: 12px 14px; }
  .dash-head h1 { font-size: 22px; }
  .dash-head span { font-size: 12.5px; }

  /* 숫자 카드: 2열 */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px; gap: 4px; }
  .kpi .k, .kpi .d { font-size: 11.5px; }
  .kpi .big { font-size: 24px; }
  .kpi .big small { font-size: 12px; margin-left: 2px; }

  /* 진행 단계: 옆으로 넘기는 띠 */
  .stages { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .stage { flex: 0 0 108px; padding: 10px 12px; scroll-snap-align: start; }
  .stage[aria-current="true"] { padding: 10px 12px; }

  /* 매출 구조 */
  .basis { padding: 12px 14px; gap: 4px 14px; font-size: 12.5px; border-radius: 10px; }
  .formula { padding: 16px; gap: 12px; }
  .formula .f-name .big { font-size: 24px; }
  .formula .eq b { font-size: 19px; }
  .formula .f-tip { font-size: 13px; }
  .bars, .months { min-width: 0; gap: 3px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bars { height: 200px; }
  .bar .tot { display: none; }
  .months { font-size: 10px; }

  /* 캘린더: 한 화면에 */
  .cal { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cal-w { padding: 6px 2px; font-size: 11px; text-align: center; }
  .cal-cell { min-height: 72px; padding: 3px 2px; gap: 2px; }
  .cal-d { align-self: center; font-size: 11px; padding: 0 5px; }
  .cal-ev { font-size: 10px; padding: 1px 3px; border-left-width: 2px; }
  .cal-ev .t { display: none; }
  .cal-more { font-size: 10px; padding-left: 2px; }

  /* 보드: 한 칸씩 넘기기 */
  .board { grid-auto-columns: 84%; scroll-snap-type: x mandatory; }
  .bcol { scroll-snap-align: start; }

  /* 표 → 카드 */
  .table-wrap { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  table.list { display: block; min-width: 0 !important; }
  table.list thead { display: none; }
  table.list tbody { display: flex; flex-direction: column; gap: 10px; }
  table.list tr { display: block; padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(59, 52, 49, .04); }
  table.list tbody tr:hover td { background: transparent; }
  table.list td { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 2px 10px; padding: 4px 0 !important; border: 0; text-align: left; font-size: 14px; }
  table.list td > * { grid-column: 2; min-width: 0; }
  table.list td[data-label]::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 3; font-size: 11.5px; color: var(--taupe); }
  table.list td[data-label=""], table.list td:not([data-label]) { display: block; }
  table.list td[data-label=""]::before { display: none; }
  table.list td .head-actions { justify-content: flex-start !important; flex-wrap: wrap; padding-top: 6px; }
  table.list td[colspan] { display: block; }

  /* 행사 목록 카드 */
  table.list.evlist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "date amt" "type st" "q q"; gap: 6px 12px; }
  table.list.evlist td, .evlist td[data-label] { display: block; }
  table.list.evlist td::before { display: none !important; }
  table.list.evlist td:nth-child(1) { grid-area: date; }
  table.list.evlist td:nth-child(2) { grid-area: name; padding-bottom: 4px !important; border-bottom: 1px solid var(--line); }
  table.list.evlist td:nth-child(2) .row-link { font-size: 16px; }
  table.list.evlist td:nth-child(3) { grid-area: type; font-size: 13px; }
  table.list.evlist td:nth-child(4) { grid-area: amt; text-align: right; }
  table.list.evlist td:nth-child(5) { grid-area: st; align-self: center; }
  table.list.evlist td:nth-child(6) { grid-area: q; padding-top: 8px !important; border-top: 1px solid var(--line); }
  table.list.evlist td[colspan] { grid-column: 1 / -1; }

  /* 설정 표(추가 서비스 · 인력 운송) → 입력 카드 */
  .set-table { display: block; min-width: 0 !important; }
  .set-table thead { display: none; }
  .set-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .set-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
  .set-table td { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; padding: 0 !important; border: 0 !important; min-width: 0; }
  .set-table td[data-label]::before { content: attr(data-label); font-size: 11.5px; font-weight: 600; color: var(--taupe); }
  .set-table td[data-label=""]::before { display: none; }
  #opt-rows td:nth-child(3), #opt-rows td:nth-child(4) { grid-column: auto; }
  .set-table input, .set-table select { width: 100%; font-size: 16px; }

  /* 견적서 화면 */
  .q-toolbar, .share-bar { padding: 14px 16px; }
  .q-toolbar .head-actions, .share-url { width: 100%; }
  .q-toolbar .head-actions .btn { flex: 1 1 auto; }
  .q-desk { padding: 12px 8px; border-radius: 10px; }

  /* 행사 등록 요약 */
  .summary { padding: 18px 16px; border-radius: 10px; }

  /* 업무 HOME 위젯 */
  .pw-h h2 { font-size: 15px; }
  .wk-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; order: 3; padding-bottom: 2px; }
  .wk-pills button { white-space: nowrap; }
  .bn-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bn-row a { padding: 10px 4px; }
  .bn-row a + a::before { display: none; }
  .bn-row span { font-size: 10.5px; }
  .mini3 b { font-size: 14px; }
  .td a { grid-template-columns: 52px minmax(0, 1fr) 10px; gap: 10px; }
}

/* ───────── 로그인: Open Circle (원호 안의 로그인) ───────── */
.oc-login {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 12px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 32px calc(22px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(60% 55% at 50% 48%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F7F4EF 0%, #F2EDE6 100%);
  color: var(--ink); overflow: hidden;
}
.oc-top { display: flex; align-items: center; gap: 10px; }
.oc-top .brand-word { color: var(--ink); }
.oc-top .brand-word .b1 { font-size: 15px; }
.oc-top .brand-word .b2 { font-size: 5.4px; }
.oc-stage { position: relative; display: grid; place-items: center; min-height: 0; }
/* 원호 그림: viewBox -14 -14 228 228 (원호 반지름 92, 점선 궤도 106) */
.oc-ring {
  position: absolute; width: min(730px, 93vh, 107vw); height: auto; aspect-ratio: 1; fill: none; stroke-linecap: round; pointer-events: none;}
.oc-ring .arc { stroke-width: 4.6; stroke-dasharray: 300; stroke-dashoffset: 300; animation: oc-draw 1.4s cubic-bezier(.6, .1, .2, 1) .15s forwards; }
.oc-ring .r { stroke: url(#oc-gr); }
.oc-ring .l { stroke: url(#oc-gl); animation-delay: .35s; }
.oc-ring .st-r1 { stop-color: var(--magenta-dk); }
.oc-ring .st-r2 { stop-color: var(--magenta); }
.oc-ring .st-r3 { stop-color: var(--pink); }
.oc-ring .st-l1 { stop-color: var(--beige); }
.oc-ring .st-l2 { stop-color: var(--taupe); }
/* 마젠타 원호 뒤 은은한 빛 — 숨 쉬듯, 입력 중엔 조금 더 밝게 */
.oc-ring .glow { stroke: var(--magenta); stroke-width: 9; opacity: 0; filter: url(#oc-blur); animation: oc-glow-in 1.2s ease 1.2s forwards, oc-breathe 5.5s ease-in-out 2.4s infinite; }
.oc-login:focus-within .oc-ring .glow { stroke-width: 12; }
/* 바깥 점선 궤도 — 아주 천천히 회전 */
.oc-ring .spark { fill: #FFFFFF; stroke: var(--magenta); stroke-width: 1.4; }
.oc-ring .spark.sl { stroke: var(--taupe); }
/* 로그인 성공: 열린 원이 닫히며 들어감 */
.oc-ring .full { stroke: var(--magenta); stroke-width: 4.6; stroke-dasharray: 578.1; stroke-dashoffset: 578.1; }
.oc-login.is-in .oc-ring .full { transition: stroke-dashoffset .7s cubic-bezier(.6, .1, .2, 1); stroke-dashoffset: 0; }
.oc-login.is-in .oc-ring .l { transition: opacity .5s; opacity: .25; }
.oc-login.is-in .oc-form { transition: opacity .35s, transform .35s; opacity: 0; transform: translateY(-8px); }
.oc-aura {
  position: absolute; width: min(520px, 70vh, 80vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231, 169, 190, .38), rgba(233, 211, 219, .16) 55%, rgba(233, 211, 219, 0));  opacity: 0; animation: oc-fade 1.6s ease .4s forwards;
}
.oc-form > *, .oc-top, .oc-foot { animation: oc-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.oc-top { animation-delay: .1s; }
.oc-form > :nth-child(1) { animation-delay: .45s; }
.oc-form > :nth-child(2) { animation-delay: .52s; }
.oc-form > :nth-child(3) { animation-delay: .59s; }
.oc-form > :nth-child(4) { animation-delay: .66s; }
.oc-form > :nth-child(5) { animation-delay: .73s; }
.oc-form > :nth-child(6) { animation-delay: .8s; }
.oc-form > :nth-child(n+7) { animation-delay: .87s; }
.oc-form > .err { animation: none; } /* 틀렸을 때 바로 보이도록 */
.oc-foot { animation-delay: 1s; }
.oc-form.shake { animation: oc-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes oc-draw { to { stroke-dashoffset: 0; } }
@keyframes oc-fade { to { opacity: 1; } }
@keyframes oc-glow-in { to { opacity: .35; } }
@keyframes oc-breathe { 0%, 100% { opacity: .35; } 50% { opacity: .12; } }
@keyframes oc-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes oc-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
  .oc-ring .arc { animation: none; stroke-dashoffset: 0; }
  .oc-ring .glow { animation: none; opacity: .3; }
  .oc-aura { animation: none; opacity: 1; }
  .oc-ring .spark { display: none; }
  .oc-form > *, .oc-top, .oc-foot, .oc-form.shake { animation: none; }
}
.oc-form { position: relative; width: min(340px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.oc-eyebrow { font-size: 11px; letter-spacing: .42em; color: var(--magenta); }
.oc-form h1 { font-family: var(--f-title); font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.oc-sub { margin: -6px 0 14px; font-size: 13.5px; color: var(--sub); }
.oc-cheer { min-height: 1.5em; text-wrap: balance; transition: opacity .45s ease, transform .45s ease; }
.oc-form > .oc-cheer { animation-fill-mode: backwards; } /* 첫 등장 뒤엔 transition으로 바뀌도록 */
.oc-cheer.out { opacity: 0; transform: translateY(-4px); }
.oc-field { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.oc-field label { font-size: 11.5px; font-weight: 700; color: var(--taupe); letter-spacing: .04em; }
.oc-field input { height: 44px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--line-2); border-radius: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.oc-field input:focus { outline: none; border-bottom-color: var(--magenta); }
.oc-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #FBF9F6 inset; -webkit-text-fill-color: var(--ink); }
.oc-form .err { margin: 0; font-size: 13px; color: var(--magenta-dk); text-align: left; }
.oc-form .err:empty { display: none; }
.oc-btn { margin-top: 10px; height: 52px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: background .15s, transform .15s; }
.oc-btn:hover { background: var(--magenta); }
.oc-btn:active { transform: translateY(1px); }
.oc-btn:disabled { opacity: .6; cursor: wait; }
.oc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.oc-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.oc-btn:hover svg { transform: translateX(3px); }
.oc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--taupe); }
.oc-row .auth-save { padding-left: 0; font-size: 12.5px; }
.oc-form .notice { text-align: left; }
.oc-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 11.5px; color: var(--taupe); }
.oc-foot a { color: var(--sub); font-weight: 700; text-decoration: none; }
.oc-foot a:hover { color: var(--magenta); }
.oc-foot .en { letter-spacing: .16em; }
@media (max-width: 560px) {
  .oc-login { padding-inline: 20px; }
  .oc-ring { width: 146vw; opacity: .55; }
  .oc-aura { width: 110vw; }
  .oc-form h1 { font-size: 24px; }
}

/* 상단 로그아웃 */
.top-logout { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 7px 12px; border: 1px solid rgba(242, 237, 230, .25); border-radius: 999px; background: transparent; color: #CFC5B8; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.top-logout:hover { color: #FFFFFF; border-color: #F2EDE6; }
.top-logout[hidden] { display: none; }
body.signed-out .top-logout { display: none; }
@media (max-width: 760px) {
  .top-logout { padding: 7px 9px; }
  .top-logout span { display: none; }
  .top-logout .ic { width: 18px; height: 18px; }
}

/* ───────── 행사 관리 ───────── */
.ekpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ekpi { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(59, 52, 49, .04), 0 12px 30px -26px rgba(59, 52, 49, .4); transition: transform .15s, box-shadow .15s; }
.ekpi:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(59, 52, 49, .45); }
.ekpi-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #FFFFFF; }
.ekpi-ic .pi { width: 22px; height: 22px; }
.ekpi.k1 .ekpi-ic { background: linear-gradient(140deg, #7F6F66, #3B3431); }
.ekpi.k2 .ekpi-ic { background: linear-gradient(140deg, #D9578A, #8E2246); }
.ekpi.k3 .ekpi-ic { background: linear-gradient(140deg, #EDB3C7, #C25A82); }
.ekpi.k4 .ekpi-ic { background: linear-gradient(140deg, #CFC5B8, #8B7E74); }
.ekpi-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ekpi .k { font-size: 12.5px; font-weight: 600; color: var(--sub); }
.ekpi b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ekpi b small { font-size: 14px; font-weight: 600; margin-left: 2px; }
.ekpi.k3 b { color: var(--magenta); }
.ekpi .d { font-size: 12px; color: var(--taupe); }

.pipe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pipe-head h2 { font-size: 16px; font-weight: 800; }
.pipe-x { display: flex; gap: 6px; }
.pipe-x a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #FFFFFF; color: var(--sub); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.pipe-x a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pipe { display: flex; gap: 4px; filter: drop-shadow(0 1px 1px rgba(59, 52, 49, .08)) drop-shadow(0 8px 16px rgba(59, 52, 49, .06)); }
.pipe-s {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px 14px 28px; background: #FFFFFF; color: var(--ink); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  box-shadow: inset 0 3px 0 var(--c); transition: background .15s;
}
.pipe-s:first-child { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 10px 0 0 10px; }
.pipe-s:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); border-radius: 0 10px 10px 0; }
.pipe-s:hover { background: #FBF9F6; color: var(--ink); }
.pipe-s[aria-current="true"] { background: #141110; color: #FFFFFF; }
.pipe-k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.pipe-s b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.pipe-s b small { font-size: 12px; margin-left: 2px; }
.pipe-a { font-size: 11.5px; color: var(--taupe); white-space: nowrap; }
.pipe-s[aria-current="true"] .pipe-k, .pipe-s[aria-current="true"] .pipe-a { color: #CFC5B8; }

.evrows { display: flex; flex-direction: column; gap: 10px; }
.ev-month { display: flex; align-items: baseline; gap: 10px; margin: 12px 2px 2px; font-size: 15px; font-weight: 800; }
.ev-month:first-child { margin-top: 0; }
.ev-month small { font-size: 12.5px; font-weight: 600; color: var(--taupe); }
.ev-empty { margin: 0; padding: 36px 20px; text-align: center; color: var(--taupe); background: #FFFFFF; border: 1px dashed var(--line-2); border-radius: 12px; }
.evrow {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) 190px 120px 150px; align-items: center; gap: 18px;
  padding: 14px 20px 14px 16px; background: #FFFFFF; border: 1px solid var(--line); border-left: 4px solid var(--st); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(59, 52, 49, .04); transition: box-shadow .15s, transform .15s;
}
.evrow:hover { box-shadow: 0 14px 28px -20px rgba(59, 52, 49, .5); transform: translateY(-1px); }
.evrow.is-cancel { opacity: .6; }
.evr-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 10px; background: var(--tint); text-align: center; }
.evr-date b { font-size: 26px; font-weight: 800; line-height: 1; }
.evr-date > span { font-size: 11px; color: var(--sub); }
.evr-date .dd { margin-top: 3px; font-size: 10px; }
.evr-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.evr-title { font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evr-title:hover { color: var(--magenta); }
.evr-client { font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evr-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.evr-chips span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--sub); white-space: nowrap; }
.evr-stage { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evp { display: flex; gap: 4px; }
.evp i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.evp i.on { background: var(--st); }
.evr-stage .status-select { width: 100%; min-height: 36px; border-radius: 8px; font-size: 13px; }
.evr-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.evr-amt b { font-size: 18px; font-weight: 800; }
.evr-amt span { font-size: 11.5px; color: var(--taupe); }
.evr-act { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.evr-q { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.evr-q .pi { width: 15px; height: 15px; color: var(--magenta); }
.evr-q:hover { border-color: var(--magenta); color: var(--magenta); }
.evr-act .share-tag { padding-left: 4px; }

.bcol header { border-radius: 10px; border: 1px solid var(--line); border-top: 4px solid; background: #FFFFFF; }
.bcard { border-radius: 10px; box-shadow: 0 1px 2px rgba(59, 52, 49, .04); transition: box-shadow .15s, transform .15s; }
.bcard:hover { box-shadow: 0 12px 24px -18px rgba(59, 52, 49, .5); transform: translateY(-1px); }

@media (max-width: 1100px) {
  .ekpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evrow { grid-template-columns: 70px minmax(0, 1fr) 170px 110px; }
  .evr-act { grid-column: 2 / -1; flex-direction: row; align-items: center; gap: 10px; }
}
@media (max-width: 760px) {
  .ekpis { gap: 10px; }
  .ekpi { padding: 14px; gap: 10px; flex-direction: column; }
  .ekpi-ic { width: 36px; height: 36px; border-radius: 10px; }
  .ekpi-ic .pi { width: 18px; height: 18px; }
  .ekpi b { font-size: 24px; }
  .pipe { overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .pipe-s { flex: 0 0 132px; scroll-snap-align: start; }
  .evrow { grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "date main main" "date stage amt" "act act act"; gap: 10px 12px; padding: 14px; }
  .evr-date { grid-area: date; align-self: start; }
  .evr-date b { font-size: 22px; }
  .evr-main { grid-area: main; }
  .evr-stage { grid-area: stage; }
  .evr-amt { grid-area: amt; align-self: end; }
  .evr-act { grid-area: act; grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .evr-title { white-space: normal; }
}

/* ───────── 매출 구조 ───────── */
.rv-bar-top { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(59, 52, 49, .04); }
.rv-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rv-subs { padding-top: 10px; border-top: 1px dashed var(--line); }
.rv-basis { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; color: var(--taupe); }
.rv-basis .pi { width: 14px; height: 14px; margin-top: 2px; }
.rv-basis b { color: var(--ink); }
.rv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; padding: 28px 32px; border-radius: 14px; color: #F2EDE6; background: radial-gradient(90% 120% at 0% 0%, #3A2A2C 0%, #1A1514 55%, #141110 100%); box-shadow: 0 18px 40px -28px rgba(20, 17, 16, .8); }
.rvh-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rvh-k { font-size: 13px; font-weight: 600; color: #CFC5B8; }
.rvh-big { font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #FFFFFF; }
.rvh-big small { font-size: 20px; font-weight: 600; margin-left: 4px; color: #CFC5B8; }
.rvh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rvh-tag { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 600; color: #F2EDE6; }
.rvh-tag small { font-weight: 500; color: #A99F96; }
.rvh-tag.up { background: rgba(179, 50, 95, .3); color: #FFD6E4; }
.rvh-tag.down { background: rgba(169, 159, 150, .22); color: #E2DBD1; }
.rvh-goal { display: flex; flex-direction: column; gap: 6px; max-width: 420px; font-size: 12.5px; color: #CFC5B8; }
.rvh-goal b { color: #FFFFFF; }
.rvh-gbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rvh-gbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #B3325F, #E7A9BE); }
.rvh-mix { display: flex; align-items: center; gap: 20px; }
.rvh-dn { width: 130px; height: 130px; margin: 0; flex: none; }
.rv-hero .donut .track { stroke: rgba(255, 255, 255, .08); }
.rv-hero .dn-c b { color: #FFFFFF; }
.rv-hero .dn-c span { color: #A99F96; }
.rvh-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; font-size: 12.5px; color: #CFC5B8; }
.rvh-leg li { display: flex; align-items: center; gap: 8px; }
.rvh-leg .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rvh-leg b { margin-left: auto; color: #FFFFFF; font-weight: 700; }
.rvh-leg .num:last-child { width: 34px; text-align: right; color: #A99F96; }

.rv-chart .pw-h { margin-bottom: 8px; }
.rv-chart .pw-h h2 small { margin-left: 4px; }
.rv-chart .viz-leg { margin: 0 0 0 auto; }
.ly-key { display: inline-block; width: 16px; border-top: 2px dashed var(--taupe); }
.rv-svg .mb .hit { fill: transparent; }
.rv-svg .mb:hover .hit { fill: var(--tint); }
.rv-svg .mb.dim rect:not(.hit) { opacity: .3; }
.rv-svg .val { font-size: 10.5px; font-weight: 700; fill: var(--ink); }
.rv-svg .mo { font-size: 11px; fill: var(--sub); }
.rv-svg .mb.now .mo { fill: var(--magenta); font-weight: 800; }
.rv-svg .ly { fill: none; stroke: var(--taupe); stroke-width: 1.6; stroke-dasharray: 4 3; }
.rv-svg .lyd { fill: #FFFFFF; stroke: var(--taupe); stroke-width: 1.4; }

.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fx { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #FFFFFF; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; box-shadow: 0 1px 2px rgba(59, 52, 49, .04); min-width: 0; }
.fx header { display: flex; flex-direction: column; gap: 2px; }
.fx header .en { font-size: 10.5px; letter-spacing: .26em; color: var(--taupe); }
.fx header b { font-size: 16px; font-weight: 800; }
.fx-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fx-amt b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.fx-amt b small { font-size: 13px; margin-left: 2px; }
.fx-amt > span { font-size: 13px; font-weight: 700; color: var(--sub); }
.fx-share { height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.fx-share i { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.fx-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-eq > span:not(.x) { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; background: var(--tint); min-width: 0; }
.fx-eq b { font-size: 15px; font-weight: 800; }
.fx-eq i { font-style: normal; font-size: 11px; color: var(--taupe); }
.fx-eq .x { color: var(--taupe); font-size: 14px; }
.fx-tip { margin: auto 0 0; padding: 10px 12px; border-radius: 8px; background: #FBF3F6; font-size: 12.5px; line-height: 1.5; color: var(--sub); }
.fx-tip b { color: var(--magenta); }
.rv-types { padding-top: 14px; }
.pipe-head h2 small { margin-left: 6px; }

@media (max-width: 1100px) {
  .rv-hero { grid-template-columns: minmax(0, 1fr); }
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rv-bar-top { padding: 12px 14px; }
  .rv-ctl .viewtabs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .rv-ctl .viewtabs a { text-align: center; }
  .rv-hero { padding: 22px 18px; gap: 20px; }
  .rvh-big { font-size: 38px; }
  .rvh-big small { font-size: 15px; }
  .rvh-dn { width: 104px; height: 104px; }
  .rv-chart .viz-leg { margin: 0; width: 100%; }
}

/* ───────── 정산 ───────── */
.pay-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--sub); font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pay-tag:hover { border-color: var(--taupe); color: var(--ink); }
.pay-tag.ok { background: #F2F6F0; border-color: #CFE0C6; color: #4F6B42; }
.pay-tag.late { background: #FBEFF3; border-color: var(--magenta); color: var(--magenta-dk); }
.evr-act { flex-wrap: wrap; }
.mbanner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #FBF3F6; border: 1px solid var(--magenta-soft); border-radius: 10px; font-size: 13.5px; }
.mbanner .pi { color: var(--magenta); }
.back { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--sub); text-decoration: none; margin-bottom: -14px; }
.back:hover { color: var(--magenta); }

.mrows, .mg-list { display: flex; flex-direction: column; gap: 10px; }
.mrow, .mg-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 150px 14px; align-items: center; gap: 20px; padding: 14px 20px; background: #FFFFFF; border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 12px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.mrow:hover, .mg-row:hover { color: var(--ink); box-shadow: 0 14px 28px -20px rgba(59, 52, 49, .5); transform: translateY(-1px); }
.mrow.late { border-left-color: var(--magenta); background: #FFFBFC; }
.mr-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-t b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-t > span { font-size: 12.5px; color: var(--sub); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mr-t .chip { font-size: 11px; padding: 2px 8px; }
.mr-bar, .mg-bar { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--taupe); }
.mr-track, .mg-track { display: flex; height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.mr-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #B3325F, #D77A9C); }
.mg-track i { display: block; height: 100%; }
.mg-track.big { height: 14px; margin-top: 14px; }
.mr-due, .mg-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mr-due b, .mg-r b { font-size: 18px; font-weight: 800; }
.mr-due span, .mg-r span { font-size: 11.5px; color: var(--taupe); }
.mrow.late .mr-due span { color: var(--magenta); font-weight: 700; }
.mg-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 110px; border-left-color: var(--line); }
.mg-r.low b { color: var(--magenta); }
.mg-list + .viz-leg { margin-top: 12px; }
.mg-list { padding-top: 12px; }
.xp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 14px; }
.xp-b { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #FBF9F6; color: var(--ink); text-decoration: none; }
.xp-b:hover { border-color: var(--magenta); color: var(--ink); }
.xp-b .pi { width: 22px; height: 22px; color: var(--magenta); margin-bottom: 4px; }
.xp-b b { font-size: 14px; }
.xp-b span { font-size: 12px; color: var(--taupe); }
.xp-b.dark { background: #141110; border-color: #141110; color: #FFFFFF; }
.xp-b.dark span { color: #A99F96; }
.xp-b.dark .pi { color: #E7A9BE; }

.ms-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; background: #141110; color: #F2EDE6; }
.ms-sum > div { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; }
.ms-sum > div + div { border-left: 1px solid rgba(242, 237, 230, .1); }
.ms-sum span { font-size: 12px; color: #A99F96; }
.ms-sum b { font-size: 24px; font-weight: 800; color: #FFFFFF; letter-spacing: -.01em; }
.ms-sum b small { font-size: 13px; margin-left: 2px; color: #CFC5B8; }
.ms-sum .due b { color: #FFB8CF; }
.ms-sum em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #FFB8CF; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ms-card { display: flex; flex-direction: column; gap: 14px; }
.ms-card .pw-h h2 .pi { color: var(--magenta); }
.ms-card .pw-h .pay-tag { margin-left: auto; }
.ms-prog { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--sub); }
.ms-prog .mr-track { height: 12px; }
.ms-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ms-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ms-steps b { font-size: 13px; }
.ms-steps small { font-size: 11.5px; color: var(--taupe); }
.ms-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; }
.ms-steps li.done { background: #F2F6F0; border-color: #CFE0C6; }
.ms-steps li.done .ms-ic { border: 0; background: #6C8F5C; color: #FFFFFF; }
.ms-ic .pi { width: 14px; height: 14px; stroke-width: 2.2; }
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ms-list li { display: grid; grid-template-columns: 64px auto minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ms-k { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--tint); font-size: 11.5px; font-weight: 700; color: var(--sub); }
.ms-k[style]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.eb-n { font-family: var(--f-body); font-weight: 700; letter-spacing: .08em; }
.ms-list b { font-size: 14px; text-align: right; grid-column: 4; }
.ms-list .num:nth-child(2) { color: var(--sub); }
.ms-item { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-memo { grid-column: 3; grid-row: 1; justify-self: start; font-size: 12px; color: var(--taupe); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ms-list li:has(.ms-item) .ms-memo { grid-column: 2 / 4; grid-row: 2; }
.ms-list .iconbtn { width: 30px; height: 30px; font-size: 14px; }
.ms-list .iconbtn.confirm { width: auto; padding: 0 8px; font-size: 11.5px; border-color: var(--magenta); color: var(--magenta-dk); }
.ms-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #FBF9F6; border-radius: 10px; }
.ms-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--sub); min-width: 0; }
.ms-fields label.wide { grid-column: 1 / -1; }
.ms-fields input, .ms-fields select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.ms-form .btn { align-self: flex-start; }
.ms-inv { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.ms-inv .ack-check { padding: 10px 14px; font-size: 13.5px; }
.ms-margin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ms-margin > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; background: var(--tint); }
.ms-margin span { font-size: 11.5px; color: var(--taupe); }
.ms-margin b { font-size: 18px; font-weight: 800; }
.ms-margin .op { font-size: 18px; color: var(--taupe); }
.ms-margin .pf { background: #141110; }
.ms-margin .pf b { color: #FFFFFF; }
.ms-margin .pf span { color: #A99F96; }
.ms-margin .rt { margin-left: auto; background: #F2F6F0; }
.ms-margin .rt b { color: #4F6B42; }
.ms-margin .rt.low { background: #FBEFF3; }
.ms-margin .rt.low b { color: var(--magenta-dk); }
.rv-profit.empty p { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; font-size: 14px; color: var(--sub); }
.rv-profit.empty .btn { margin-left: auto; }
.rv-profit .ms-margin { padding-top: 14px; }

@media (max-width: 1100px) {
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .xp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav a { font-size: 10.5px; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t due" "bar bar"; gap: 10px; padding: 14px; }
  .mrow .mr-t { grid-area: t; }
  .mrow .mr-bar { grid-area: bar; }
  .mrow .mr-due { grid-area: due; }
  .mrow .mr-go { display: none; }
  .mg-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t r" "bar bar"; gap: 10px; padding: 14px; }
  .mg-row .mr-t { grid-area: t; }
  .mg-row .mg-bar { grid-area: bar; }
  .mg-row .mg-r { grid-area: r; }
  .ms-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-sum > div:nth-child(3) { border-left: 0; }
  .ms-sum > div:nth-child(n+3) { border-top: 1px solid rgba(242, 237, 230, .1); }
  .ms-sum b { font-size: 19px; }
  .ms-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ms-fields label:first-child { grid-column: 1 / -1; }
  .ms-steps { grid-template-columns: minmax(0, 1fr); }
  .ms-margin .rt { margin-left: 0; }
  .xp { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── 현장 시트 · 고객사 · 수정 이력 · 인력 · 기물 ───────── */
.with-unit { display: inline-flex; align-items: center; gap: 6px; }
.with-unit span { color: var(--sub); font-size: 13px; white-space: nowrap; }
.op-card { display: flex; flex-direction: column; gap: 14px; }
.op-rows { display: flex; flex-direction: column; gap: 8px; }
.op-rows:empty { display: none; }
.op-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.op-row.warn { border-color: var(--magenta); background: #FBF3F6; }
.op-row input, .op-row select { height: 38px; min-width: 0; }
.op-row input[type="text"], .op-row input[type="tel"] { flex: 1 1 120px; }
.op-row .st-crew, .op-row .gr-inv { flex: 0 1 170px; }
.op-row .st-role, .op-row .cr-role { flex: 0 0 88px; }
.op-row .op-time { display: inline-flex; align-items: center; gap: 4px; }
.op-row .op-time input { width: 104px; }
.op-row .op-pay input { width: 110px; }
.op-row .op-qty input, .op-row .iv-qty { width: 92px; flex: 0 0 auto; }
.op-row .iv-unit { flex: 0 0 64px !important; }
.op-row .ck-text { flex: 1 1 200px; }
.op-row .ck-l { display: inline-flex; align-items: center; }
.op-row .ck-l input { width: 20px; height: 20px; accent-color: var(--magenta); }
.op-row.ck-row:has(.ck-done:checked) .ck-text { text-decoration: line-through; color: var(--taupe); }
.op-row .op-del { margin-left: auto; }
.op-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.op-sum { margin-left: auto; font-size: 13.5px; color: var(--sub); }
.mbanner.warn { border-color: var(--magenta); }
.crew-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.sheet-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.sheet-ed { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sheet-view { position: sticky; top: 84px; min-width: 0; max-height: calc(100vh - 100px); overflow: auto; border-radius: 10px; background: var(--line-2); padding: 16px; }
.sheet-page { background: #FFFFFF; color: var(--ink); padding: 34px 38px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 30px -18px rgba(40, 28, 22, .35); font-size: 13px; }
.sh-title { display: flex; flex-direction: column; gap: 4px; }
.sh-title h2 { font-family: var(--f-title); font-size: 24px; font-weight: 800; line-height: 1.25; }
.sh-title p { margin: 0; color: var(--sub); }
.sh-time { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sh-time li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.sh-time li + li { border-left: 1px solid var(--line); }
.sh-time li span { font-size: 11px; color: var(--taupe); }
.sh-time li b { font-size: 18px; }
.sh-time li.on { background: #FBF3F6; }
.sh-time li.on b { color: var(--magenta); }
.sh-info { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.sh-info div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.sh-info dt { color: var(--taupe); font-size: 12px; }
.sh-info dd { margin: 0; overflow-wrap: anywhere; }
.sh-alert, .sh-memo { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 8px; }
.sh-alert { border: 1.5px solid var(--magenta); background: #FBF3F6; }
.sh-alert b { color: var(--magenta-dk); }
.sh-memo { background: var(--tint, #F2EDE6); }
.sh-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-box h3 { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.sh-box .ct td, .sh-box .ct th { padding: 5px 6px; font-size: 12.5px; }
.sh-box .ck { text-align: center; color: var(--taupe); }
.sh-box .en-line { display: block; font-size: 10.5px; color: var(--taupe); letter-spacing: .04em; }
.sh-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.sh-check ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.sh-check li { break-inside: avoid; padding: 3px 0; display: flex; gap: 6px; }
.sh-check li.done { color: var(--taupe); text-decoration: line-through; }
.sh-note { margin: 0; white-space: pre-wrap; }
.sheet-page .q-foot { margin-top: 4px; }

.diet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dtag { font: inherit; font-size: 12.5px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #FFFFFF; color: var(--sub); cursor: pointer; }
.dtag:hover { border-color: var(--magenta); color: var(--magenta); }

.hist { border-radius: 10px; padding: 0; }
.hist summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.hist summary::-webkit-details-marker { display: none; }
.hist summary::after { content: '›'; margin-left: auto; color: var(--taupe); transition: transform .15s; }
.hist[open] summary::after { transform: rotate(90deg); }
.hist summary .muted { font-size: 12.5px; }
#hist-body { padding: 0 18px 16px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist-list li { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hist-list .h-at { color: var(--taupe); }
.hist-list .h-ch { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hist-list .h-ch b { font-weight: 700; color: var(--sub); }

.cl-resale ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cl-resale li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cl-resale li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-resale li .muted { font-size: 12.5px; }
.cl-resale .pw-h .pi { color: var(--magenta); }
.cl-list { display: flex; flex-direction: column; gap: 8px; }
.cl-row { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.cl-row[open] { border-color: var(--line-2); box-shadow: 0 12px 30px -26px rgba(59, 52, 49, .5); }
.cl-row summary { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, .7fr)) 14px; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.cl-row summary::-webkit-details-marker { display: none; }
.cl-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-name .muted { font-size: 12.5px; }
.cl-k { display: flex; flex-direction: column; gap: 1px; }
.cl-k span { font-size: 11px; color: var(--taupe); }
.cl-k b { font-size: 14.5px; }
.cl-k small { font-size: 11px; font-weight: 500; color: var(--sub); margin-left: 1px; }
.cl-go { color: var(--taupe); transition: transform .15s; }
.cl-row[open] .cl-go { transform: rotate(90deg); }
.cl-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.cl-info { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; font-size: 13px; color: var(--sub); }
.cl-evs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cl-evs li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 80px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.cl-evs li a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-evs li a:hover { color: var(--magenta); }
.cl-evs .r { text-align: right; }

@media (max-width: 1100px) {
  .sheet-layout { grid-template-columns: minmax(0, 1fr); }
  .sheet-view { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .sheet-view { padding: 8px; }
  .sheet-page { padding: 20px 16px; }
  .sh-time { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-time li:nth-child(3) { border-left: 0; }
  .sh-time li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sh-info, .sh-two { grid-template-columns: minmax(0, 1fr); }
  .sh-check ul { columns: 1; }
  .op-row { padding: 10px; }
  .op-row .st-crew, .op-row .gr-inv { flex: 1 1 100%; }
  .op-row .op-time input { width: 96px; }
  .hist-list li { grid-template-columns: minmax(0, 1fr); }
  .cl-row summary { grid-template-columns: repeat(2, minmax(0, 1fr)) 14px; padding: 14px; }
  .cl-row summary .cl-name { grid-column: 1 / -1; }
  .cl-row summary .cl-go { display: none; }
  .cl-body { padding: 4px 14px 16px; }
  .cl-evs li { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-evs li > span:first-child { grid-column: 1 / -1; font-size: 12px; color: var(--taupe); }
}
@media print {
  .sheet-layout { display: block; }
  .sheet-view { position: static; max-height: none; overflow: visible; padding: 0; background: none; }
  .sheet-page { box-shadow: none; padding: 14mm 14mm 10mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sh-box, .sh-alert, .sh-time { break-inside: avoid; }
}
.page-head > div.head-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .st-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
  .st-row .st-crew { grid-column: 1 / -1; }
  .st-row .st-role { width: 100%; }
  .st-row .op-time { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .st-row .op-time input { width: 100%; }
  .st-row .op-pay input { width: 100%; }
  .st-row .op-pay { min-width: 0; }
  .st-row .op-del { justify-self: end; }
  .sheet-ed .savebar { gap: 8px; padding: 10px 12px; }
  .sheet-ed .savebar .note { flex-basis: 100%; font-size: 12px; }
  .sheet-ed .savebar .btn { flex: 1; min-height: 44px; padding: 0 12px; }
}
.ms-invno { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-invno input { height: 40px; min-width: 0; }
.ms-invno #inv-no { flex: 1 1 220px; }
.cal-card { display: flex; flex-direction: column; gap: 12px; }
.cal-how { margin: 0; padding-left: 18px; }
.cal-how li + li { margin-top: 4px; }
.fields .f-period { grid-column: 1 / -1; }
.f-period .time-range input { flex: 1 1 160px; max-width: 220px; }

/* 직원 계정: 한 사람 한 줄 */
.btn-s { min-height: 34px !important; padding: 0 12px !important; font-size: 13px; }
.u-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.u-row { display: grid; grid-template-columns: 36px minmax(0, 1.6fr) 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; }
.u-row + .u-row { border-top: 1px solid var(--line); }
.u-row.editing { display: block; background: var(--tint, #F2EDE6); }
.u-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--magenta-soft); color: var(--magenta-dk); font-weight: 700; font-size: 15px; }
.u-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.u-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.u-name b { font-size: 14.5px; }
.u-title { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--linen, #EAE3D9); color: var(--sub); }
.u-me { font-size: 11px; color: var(--magenta); font-weight: 700; }
.u-mail { font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-role { font-size: 12px; font-weight: 700; color: var(--sub); text-align: center; padding: 3px 0; border: 1px solid var(--line-2); border-radius: 999px; }
.u-role.admin { color: var(--magenta-dk); border-color: var(--magenta-soft); background: #FBF3F6; }
.u-login { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--taupe); min-width: 0; }
.u-login .u-tags:empty { display: none; }
.u-acts { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.u-acts .u-del { color: var(--magenta-dk); }
.u-acts .u-pw { height: 34px; width: 150px; min-width: 0; }
.u-ask { font-size: 13px; }
.u-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .9fr) auto; align-items: end; gap: 10px; }
.u-grid label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u-grid label > span { font-size: 12px; font-weight: 700; color: var(--sub); }
.u-grid input, .u-grid select { height: 40px; width: 100%; min-width: 0; }
#user-add .u-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) auto; }
#user-add .u-grid .btn { min-height: 40px; }
.u-add { border-radius: 10px; padding: 0; }
.u-add summary { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.u-add summary::-webkit-details-marker { display: none; }
.u-add summary b { color: var(--magenta); }
.u-add summary .muted { font-size: 12.5px; }
.u-add form { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px; }
.u-add #u-msg:empty { display: none; }
.u-help { font-size: 12px; }
@media (max-width: 900px) {
  .u-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "av main role" "av login login" "acts acts acts"; row-gap: 8px; }
  .u-av { grid-area: av; align-self: start; }
  .u-main { grid-area: main; }
  .u-role { grid-area: role; padding: 3px 10px; }
  .u-login { grid-area: login; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .u-acts { grid-area: acts; justify-content: flex-start; }
  .u-grid, #user-add .u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-grid .u-acts, #user-add .u-grid .btn { grid-column: 1 / -1; }
}

/* 정산 완료: 끝난 행사는 차분하게 + 완료 도장 */
.evrow.is-done { background: linear-gradient(90deg, #F7F4EF 0%, #FFFFFF 38%); }
.evrow.is-done .evp i.on { background: var(--ink); }
.evrow.is-done .evr-amt b { color: var(--sub); }
.evr-date { position: relative; }
.evr-seal { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 2px #FFFFFF; }
.evr-seal svg { width: 13px; height: 13px; fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pay-tag.done { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pay-tag.done:hover { background: #2A2422; color: #FFFFFF; border-color: #2A2422; }
.pay-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ms-gap { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 8px; background: #FBF3F6; border: 1px solid var(--magenta-soft); font-size: 13px; color: var(--sub); }
.ms-gap .pi { color: var(--magenta); flex: none; }

/* ───────── 쉽게 쓰기: 접기 · 다음 할 일 · 더보기 · 처음 안내 ───────── */
.fold { border: 1px dashed var(--line-2); border-radius: 10px; background: var(--card); }
.fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary b { font-size: 14.5px; }
.fold > summary b::before { content: '+'; display: inline-block; width: 18px; color: var(--magenta); font-weight: 800; }
.fold[open] > summary b::before { content: '−'; }
.fold > summary span { font-size: 12.5px; color: var(--taupe); }
.fold[open] { border-style: solid; }
.me-fold { margin-top: 4px; }
.me-fold > .me-wrap { padding: 0 18px 16px; }
.more-fold .more-body { display: flex; flex-direction: column; gap: 20px; padding: 0 12px 12px; }
.more-fold .more-body > .fs { border: 0; }

.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .mm-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; display: flex; flex-direction: column; padding: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(40, 28, 22, .4); }
.more-menu .mm-list a, .more-menu .mm-list button { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border: 0; border-radius: 6px; background: none; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.more-menu .mm-list a:hover, .more-menu .mm-list button:hover { background: var(--tint, #F2EDE6); }
.more-menu .mm-list small { font-size: 12px; font-weight: 400; color: var(--taupe); }

.next-step { border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; border-left: 4px solid var(--magenta); }
.ns-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ns-flow li { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: var(--tint, #F2EDE6); color: var(--taupe); }
.ns-flow li.past { color: var(--sub); }
.ns-flow li.past::before { content: '✓ '; }
.ns-flow li.on { background: var(--magenta); color: #FFFFFF; font-weight: 700; }
.ns-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ns-text { margin: 0; font-size: 15px; line-height: 1.6; flex: 1 1 320px; }
.ns-text b { color: var(--magenta); margin-right: 6px; }
.ns-text span { color: var(--sub); font-size: 13.5px; }
.share-bar.flash { box-shadow: 0 0 0 3px var(--magenta-soft); transition: box-shadow .3s; }

.guide { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.gd-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gd-head b { font-size: 15px; }
.gd-head .num { font-size: 12.5px; color: var(--taupe); }
.gd-head .linkbtn { margin-left: auto; color: var(--taupe); }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.gd-steps a { display: flex; gap: 10px; align-items: flex-start; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: var(--card); }
.gd-steps a:hover { border-color: var(--magenta); }
.gd-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--magenta); color: #FFFFFF; font-size: 13px; font-weight: 800; }
.gd-n svg { width: 14px; height: 14px; fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gd-steps li.done .gd-n { background: var(--ink); }
.gd-steps li.done .gd-t b { color: var(--sub); }
.gd-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-t b { font-size: 14px; }
.gd-t small { font-size: 12px; color: var(--taupe); line-height: 1.5; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.dash-head .head-actions { gap: 14px; }
@media (max-width: 760px) {
  .next-step { padding: 14px 16px; }
  .ns-row .head-actions { width: 100%; }
  .ns-row .head-actions .btn { flex: 1; }
  .more-menu .mm-list { right: auto; left: 0; }
  .q-toolbar .more-menu { flex: 1 1 auto; }
  .q-toolbar .more-menu > summary { width: 100%; }
}

/* 자동 백업 */
.ab { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ab-head b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ab-head b .pi { color: var(--magenta); }
.ab-head > span { font-size: 12.5px; color: var(--taupe); flex: 1 1 260px; }
.ab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 260px; overflow: auto; }
.ab-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ab-list a { color: var(--magenta); font-weight: 700; text-decoration: none; }
.ab-list a:hover { text-decoration: underline; }

/* ───────── 매입 원가 ───────── */
.pu-rate { font-style: normal; font-weight: 700; }
.pu-rate.ok { color: #2F7A57; }
.pu-rate.mid { color: #A3640F; }
.pu-rate.over { color: var(--magenta); }
.pu-items { gap: 14px; }
.pu-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pu-cats .fchip small { color: var(--taupe); font-weight: 600; margin-left: 2px; }
.pu-catedit summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; }
.pu-catedit summary .muted { font-size: 13px; }
.pu-catedit[open] summary { margin-bottom: 12px; }
.pu-catedit .op-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; margin-bottom: 10px; }
.pu-catedit .op-row { flex-wrap: nowrap; }
.pu-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pu-tools .search { flex: 1 1 240px; max-width: 360px; }
.pu-target { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--sub); }
.pu-target input { width: 70px; height: 38px; }
/* 식자재 줄: PC 에서는 표처럼 칸 맞춤, 휴대폰에서는 줄바꿈 */
.pi-head, .pi-row { display: grid; grid-template-columns: 128px minmax(120px, 1fr) 150px 128px 76px 120px 118px 34px; gap: 8px; align-items: center; }
.pi-head { padding: 0 11px; font-size: 12px; font-weight: 600; color: var(--sub); }
.pi-row { padding: 8px 10px; }
.pi-row .pi-buy { display: flex; gap: 4px; min-width: 0; }
.pi-row .pi-buy input { width: 0; flex: 1 1 auto; }
.pi-row .pi-buy select { flex: 0 0 64px; }
.pi-row .with-unit input { width: 100%; min-width: 0; }
.pi-row .with-unit { min-width: 0; }
.pi-row .pi-per { font-size: 12.5px; color: var(--sub); text-align: right; white-space: nowrap; }
.pi-row .op-del { margin-left: 0; }
.pi-row .op-del.pi-delwide { width: auto; padding: 0 8px; font-size: 12px; grid-column: 1 / -1; justify-self: end; }
.pi-row[hidden] { display: none; }
@media (max-width: 1100px) {
  .pi-head { display: none; }
  .pi-row { display: flex; flex-wrap: wrap; }
  .pi-row .pi-cat { flex: 0 0 120px; }
  .pi-row .pi-name { flex: 1 1 160px; }
  .pi-row .pi-buy { flex: 0 0 150px; }
  .pi-row .pi-pr { flex: 0 0 130px; }
  .pi-row .pi-yl { flex: 0 0 80px; }
  .pi-row .pi-vendor { flex: 1 1 110px; }
  .pi-row .pi-per { flex: 1 1 auto; }
}
/* 계산기: 왼쪽 메뉴 목록 + 오른쪽 계산 */
.pu-calc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.pu-list { padding: 0; overflow: hidden; position: sticky; top: 12px; }
.pu-list-h { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.pu-list-h .search { flex: 1 1 auto; min-width: 0; height: 34px; }
#pu-menus { list-style: none; margin: 0; padding: 6px; max-height: 70vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
#pu-menus button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; border: 0; border-radius: 6px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
#pu-menus button:hover { background: var(--tint); }
#pu-menus button[aria-current="true"] { background: var(--magenta-soft); }
#pu-menus b { font-size: 14px; }
#pu-menus span { font-size: 12.5px; color: var(--sub); }
.pu-ed { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pu-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pu-meta .with-unit input { width: 100%; min-width: 0; }
.pu-rows-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.pu-rows-h .muted { font-size: 12.5px; }
.pm-row .pm-item { flex: 1 1 240px; }
.pm-row .pm-u input { width: 96px; }
.pm-row .pm-unit { min-width: 22px; }
.pm-row .pm-cost { flex: 0 0 96px; text-align: right; font-size: 14px; }
.pu-sum { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 10px; background: var(--tint); }
.pu-sum-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pu-sum-grid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pu-sum-grid span { font-size: 12.5px; color: var(--sub); }
.pu-sum-grid b { font-size: 16px; }
.pu-sum-grid .big b { font-size: 22px; letter-spacing: -.01em; }
.pu-sum .note { margin: 0; }
.pu-bar { position: relative; height: 10px; border-radius: 5px; background: var(--white); margin: 6px 0 16px; }
.pu-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #2F7A57; }
.pu-bar i.mid { background: #C98A2E; }
.pu-bar i.over { background: var(--magenta); }
.pu-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); font-style: normal; }
.pu-bar em span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--sub); white-space: nowrap; }
@media (max-width: 900px) {
  .pu-calc { grid-template-columns: minmax(0, 1fr); }
  .pu-list { position: static; }
  #pu-menus { max-height: 220px; }
  .pu-sum-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pu-meta { grid-template-columns: minmax(0, 1fr); }
  .pu-sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pu-sum-grid .big { grid-column: span 1; }
  .pm-row .pm-item { flex-basis: 100%; }
  .pm-row .pm-cost { flex: 1 1 auto; }
  .pi-row .pi-cat, .pi-row .pi-buy { flex: 1 1 130px; }
}
.dock .a7 .dock-ic { background: linear-gradient(140deg, #B98A6E, #5A3B2C); }
@media (max-width: 760px) {
  .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nav a { font-size: 10px; }
}
@media (max-width: 560px) {
  .pu-ed .savebar { gap: 8px; padding: 10px 12px; }
  .pu-ed .savebar .note { flex-basis: 100%; font-size: 12px; }
  .pu-ed .savebar .btn { flex: 1 1 0; min-height: 42px; padding: 0 10px; }
  .pu-items .savebar .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .pi-row .pi-vendor { flex: 1 1 70px; }
  .pi-row .pi-per { flex: 0 1 auto; font-size: 12px; }
}
/* 휴대폰 홈: 바로가기 8개를 4개씩 두 줄로 (화면 밖으로 잘리지 않게) */
@media (max-width: 760px) {
  .dock { display: grid; grid-template-columns: repeat(4, 64px); justify-content: center; gap: 12px 10px; width: max-content; max-width: calc(100% - 32px); }
  .dock a { min-width: 0; }
  body.on-home .hero { padding-bottom: 250px; }
  .hero .hero-go { bottom: 186px; }
}
/* 「?」 사용 방법 버튼 · 창 */
.help-q { width: 28px; height: 28px; align-self: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); color: var(--sub); font: 700 14px/1 var(--f-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.help-q:hover { border-color: var(--magenta); color: var(--magenta); }
.help-dlg { padding: 0; border: 0; border-radius: 12px; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(20, 17, 16, .5); }
.help-dlg::backdrop { background: rgba(20, 17, 16, .45); }
.hd-in { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.hd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.hd-head h2 { margin: 0; font-size: 17px; }
.hd-body { padding: 16px 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.hd-foot { padding: 12px 20px 16px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.hd-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.hd-steps li { padding-left: 4px; }
.hd-steps li b { display: block; font-size: 14.5px; }
.hd-steps li span { display: block; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.hd-steps .hint { font-size: 12.5px; }
.hd-ex { margin: 8px 0 4px; overflow-x: auto; }
.hd-ex table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.hd-ex th, .hd-ex td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.hd-ex th { color: var(--sub); font-weight: 600; background: var(--card); }
.hd-ex td + td { font-variant-numeric: tabular-nums; }
.hd-body > .note { margin: 0; }
/* 자동 저장 표시 */
.pu-status { font-size: 12.5px; color: var(--sub); }
.pu-status.err { color: var(--magenta); font-weight: 600; }
.pu-tools .pu-status { margin-right: auto; }

/* ───────── 매입 원가 계산기 (리디자인) ───────── */
.pu-calc { display: grid; grid-template-columns: 236px minmax(0, 1fr) 312px; grid-template-areas: "list ed res"; gap: 20px; align-items: start; }
.pu-list { grid-area: list; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; overflow: visible; }
.pl-h { display: flex; align-items: center; gap: 8px; }
.pl-h b { font-size: 15px; }
.pl-h .num { font-size: 12.5px; color: var(--taupe); }
.pl-h .btn { margin-left: auto; }
.pl-q { height: 36px; font-size: 13.5px; }
#pu-menus { list-style: none; margin: 0 -4px; padding: 0; max-height: 64vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
#pu-menus button { display: flex; align-items: center; gap: 10px; flex-direction: row; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
#pu-menus button:hover { background: var(--tint); }
#pu-menus button[aria-current="true"] { background: #2A2321; color: #F7F4EF; }
#pu-menus button[aria-current="true"] .pl-t span { color: #CFC5B8; }
.pl-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.pl-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-t span { font-size: 12px; color: var(--sub); }
.pl-pill { flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--tint); color: var(--sub); font-variant-numeric: tabular-nums; }
.pl-pill.ok { background: #E3F2EA; color: #24704D; }
.pl-pill.mid { background: #FBEFD9; color: #95600F; }
.pl-pill.over { background: #F8DDE7; color: #9A2450; }
.pl-empty { padding: 18px 10px; font-size: 12.5px; color: var(--taupe); text-align: center; }

.pu-ed { grid-area: ed; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 26px 28px 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(59, 52, 49, .04), 0 18px 40px -32px rgba(59, 52, 49, .45); }
.pe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.pe-title { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; min-width: 0; }
.pe-eye { font-size: 11px; letter-spacing: .28em; color: var(--magenta); font-weight: 700; }
.pu-ed .pe-name { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 2px 0 6px; background: none; font: 800 26px/1.25 var(--f-body); letter-spacing: -.02em; color: var(--ink); width: 100%; box-shadow: none; height: auto; }
.pu-ed .pe-name::placeholder { color: #C9C0B6; }
.pu-ed .pe-name:hover { border-bottom-color: var(--line); }
.pu-ed .pe-name:focus { outline: none; border-bottom-color: var(--magenta); }
.pe-tools { display: flex; align-items: center; gap: 6px; }
.pe-tools .pu-status { margin-right: 6px; font-size: 12px; color: var(--taupe); white-space: nowrap; }
.pe-btn { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sub); cursor: pointer; }
.pe-btn:hover { border-color: var(--ink); color: var(--ink); }
.pe-btn.btn-danger { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }

.pe-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pe-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 11px; border: 1px solid var(--line); border-radius: 12px; background: #FBF9F6; cursor: text; transition: border-color .15s, box-shadow .15s; }
.pe-box:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(179, 50, 95, .1); background: #FFFFFF; }
.pe-l { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .02em; }
.pe-in { display: flex; align-items: baseline; gap: 6px; }
.pu-ed .pe-in input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 0; height: auto; background: none; box-shadow: none; font: 700 22px/1.2 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pe-in input::-webkit-inner-spin-button, .pe-use input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pu-ed .pe-in input:focus { outline: none; }
.pe-in input::placeholder { color: #C9C0B6; font-weight: 500; }
.pe-in em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--taupe); }
.pe-box small { font-size: 11.5px; color: var(--taupe); }

.pe-sec { display: flex; flex-direction: column; gap: 12px; }
.pe-sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pe-sec-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.pe-sec-h span { font-size: 12.5px; color: var(--taupe); }
.pe-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border-radius: 12px; background: #FBF3F6; border: 1px dashed #E2B3C4; }
.pe-empty b { font-size: 14px; color: var(--magenta-dk); }
.pe-empty span { font-size: 13px; color: var(--sub); }
.pe-empty .btn { margin-top: 4px; }
.pe-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pe-thead, .pe-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px 110px 34px; gap: 12px; align-items: center; padding: 0 14px; }
.pe-thead { height: 36px; background: #FBF9F6; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--taupe); letter-spacing: .04em; }
.pe-thead span:nth-child(3) { text-align: right; }
.pe-row { padding-block: 10px; border-bottom: 1px solid #EFEAE3; }
.pe-row.gone .pm-price { color: var(--magenta); }
.pe-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pu-ed .pe-item select { width: 100%; height: 38px; padding: 0 30px 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2210%22 height=%226%22%3E%3Cpath d=%22M1 1l4 4 4-4%22 fill=%22none%22 stroke=%22%239A8F86%22 stroke-width=%221.4%22/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font: 600 14.5px var(--f-body); color: var(--ink); cursor: pointer; text-overflow: ellipsis; }
.pu-ed .pe-item select:hover { background-color: var(--tint); }
.pu-ed .pe-item select:focus { outline: none; border-color: var(--magenta); background-color: #FFFFFF; }
.pm-price { padding-left: 10px; font-size: 11.5px; color: var(--taupe); min-height: 1em; }
.pe-use { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; }
.pe-use:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(179, 50, 95, .1); }
.pu-ed .pe-use input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 0; height: auto; background: none; box-shadow: none; font: 600 15px var(--f-body); text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pu-ed .pe-use input:focus { outline: none; }
.pe-use em { font-style: normal; font-size: 12.5px; color: var(--taupe); min-width: 16px; }
.pm-cost { text-align: right; font-size: 15px; white-space: nowrap; }
.pe-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #B9AEA4; font-size: 18px; line-height: 1; cursor: pointer; }
.pe-x:hover { background: #F8DDE7; color: var(--magenta); }
.pe-add { display: block; width: 100%; padding: 12px 12px 12px 24px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--magenta); text-align: left; cursor: pointer; }
.pe-add:hover { background: #FBF3F6; }
.pe-tfoot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; background: #FBF9F6; }
.pe-tfoot span { font-size: 13px; font-weight: 700; color: var(--sub); }
.pe-tfoot b { font-size: 18px; }
.pe-memo { display: flex; align-items: center; gap: 12px; padding: 4px 4px 0; }
.pe-memo span { font-size: 12.5px; font-weight: 700; color: var(--sub); flex: none; }
.pu-ed .pe-memo input { flex: 1; min-width: 0; height: 38px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 0 2px; font-size: 14px; box-shadow: none; }
.pu-ed .pe-memo input:focus { outline: none; border-bottom-color: var(--magenta); }

/* 결과 카드 */
.pu-res { grid-area: res; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; padding: 24px 22px; border-radius: 18px; background: radial-gradient(120% 80% at 100% 0%, #3A2530 0%, #1B1614 55%); color: #F2EDE6; box-shadow: 0 24px 48px -30px rgba(20, 17, 16, .7); }
.pr-top { display: flex; flex-direction: column; gap: 2px; }
.pr-l { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: #A99F96; }
.pr-big { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #FFFFFF; }
.pr-big small { font-size: 16px; font-weight: 600; margin-left: 3px; color: #CFC5B8; }
.pr-sub { font-size: 12.5px; color: #A99F96; }
.pr-gauge { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(242, 237, 230, .1); border-bottom: 1px solid rgba(242, 237, 230, .1); }
.pr-ring { width: 118px; height: 118px; flex: none; }
.pr-track { fill: none; stroke: rgba(242, 237, 230, .1); stroke-width: 11; }
.pr-arc { fill: none; stroke-width: 11; stroke-linecap: round; stroke: #A99F96; transition: stroke-dasharray .35s ease; }
.pr-arc.ok { stroke: #6FCF9D; }
.pr-arc.mid { stroke: #F0B456; }
.pr-arc.over { stroke: #F0739F; }
.pr-tick { stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; }
.pr-pct { fill: #FFFFFF; font: 800 24px var(--f-body); text-anchor: middle; dominant-baseline: middle; }
.pr-pct.none { fill: #6E655E; }
.pr-cap { fill: #A99F96; font: 600 11px var(--f-body); text-anchor: middle; }
.pr-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: #CFC5B8; }
.pr-legend span { display: flex; align-items: center; gap: 8px; }
.pr-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: #6E655E; flex: none; }
.pr-legend .dot.ok { background: #6FCF9D; }
.pr-legend .dot.mid { background: #F0B456; }
.pr-legend .dot.over { background: #F0739F; }
.pr-legend .tick { width: 10px; height: 2.5px; border-radius: 2px; background: #FFFFFF; flex: none; }
.pr-dl { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.pr-dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pr-dl dt { color: #A99F96; }
.pr-dl dd { margin: 0; color: #F2EDE6; font-weight: 600; }
.pr-dl .strong { padding-top: 9px; border-top: 1px dashed rgba(242, 237, 230, .15); }
.pr-dl .strong dt { color: #F2EDE6; font-weight: 700; }
.pr-dl .strong dd { font-size: 16px; font-weight: 800; color: #FFFFFF; }
.pr-dl dd.neg { color: #F0739F; }
.pr-mix { display: flex; flex-direction: column; gap: 10px; }
.pr-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; background: rgba(242, 237, 230, .08); }
.pr-bar i { display: block; height: 100%; min-width: 3px; }
.pr-mix ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-mix li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #CFC5B8; }
.pr-mix li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pr-mix li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-mix li b { color: #F2EDE6; font-weight: 700; }
.pr-tip { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(242, 237, 230, .07); font-size: 13px; line-height: 1.6; color: #CFC5B8; }
.pr-tip b { color: #FFFFFF; font-size: 15px; }
.pr-warn { margin: 0; font-size: 12.5px; color: #F0739F; }
.pu-mbar { display: none; }

/* 중간 폭: 결과 카드를 위에 가로로 */
@media (max-width: 1280px) {
  .pu-calc { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "list res" "list ed"; }
  .pu-res { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 28px; }
  .pr-gauge { border-bottom: 0; padding-bottom: 0; }
}
/* 휴대폰 · 태블릿: 한 줄로 + 아래 고정 요약 */
@media (max-width: 900px) {
  .pu-calc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "ed" "res"; gap: 14px; }
  .pu-list { position: static; }
  #pu-menus { max-height: 210px; }
  .pu-res { display: flex; }
  .pr-gauge { border-bottom: 1px solid rgba(242, 237, 230, .1); padding-bottom: 14px; }
  .pu-ed { padding: 20px 16px 22px; border-radius: 14px; }
  .pu-mbar { display: flex; position: sticky; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 6; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: #1B1614; color: #CFC5B8; font-size: 13px; box-shadow: 0 10px 30px -12px rgba(20, 17, 16, .6); }
  .pu-mbar b { color: #FFFFFF; font-size: 15px; margin-left: 4px; }
  .pu-mbar .pl-pill { font-size: 12.5px; }
}
@media (min-width: 761px) and (max-width: 900px) { .pu-mbar { bottom: 12px; } }
@media (max-width: 560px) {
  .pe-meta { gap: 8px; }
  .pe-box { padding: 10px 10px 9px; }
  .pu-ed .pe-in input { font-size: 18px; }
  .pe-box small { display: none; }
  .pu-ed .pe-name { font-size: 22px; }
  .pe-thead { display: none; }
  .pe-row { grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "item x" "use cost"; gap: 6px 10px; padding: 10px 10px 12px; }
  .pe-item { grid-area: item; }
  .pe-use { grid-area: use; }
  .pm-cost { grid-area: cost; grid-column: 2 / -1; justify-self: end; }
  .pe-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "item x" "use cost"; }
  .pe-x { grid-area: x; justify-self: end; }
  .pe-tools { width: 100%; }
  .pe-tools .pu-status { margin-right: auto; }
}
.pe-item .pm-item, .pe-row .pm-cost, .pe-row .pe-use { flex: none; }
#pu-menus button[aria-current="true"] .pl-t b { color: #FFFFFF; }
#pu-menus .pl-t span { color: var(--sub); }
#pu-menus button[aria-current="true"] .pl-t span { color: #CFC5B8; }
@media (max-width: 560px) {
  .pe-meta { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
  .pe-box { padding: 10px 9px 9px; }
  .pu-ed .pe-in input { font-size: 17px; }
  .pe-in em { font-size: 11.5px; }
}
@media (max-width: 900px) { .pu-res { align-items: stretch; } }

/* ───────── 홈: 새 문의 카드 · 문의 상세 ───────── */
.pw-inq { border-top: 3px solid var(--magenta); }
.pw-inq .pw-h h2 .pi { color: var(--magenta); }
.pw-inq .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--magenta); color: #FFFFFF; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.iq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.iq-list li + li { border-top: 1px solid var(--line); }
.iq-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l1 at" "l2 at"; gap: 4px 16px; padding: 12px 4px; color: var(--ink); text-decoration: none; }
.iq-list a:hover { background: var(--tint); }
.iq-l1 { grid-area: l1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.iq-l1 b { font-size: 15px; }
.iq-l1 .who { font-size: 13px; color: var(--sub); }
.iq-route { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--magenta-soft); color: var(--magenta-dk); }
.iq-l2 { grid-area: l2; display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--sub); }
.iq-at { grid-area: at; align-self: center; display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--ink); }
.iq-at em { font-style: normal; font-size: 11.5px; color: var(--magenta); }
.iqd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.iqd h2 { margin: 0 0 12px; font-size: 16px; }
.iqd-main { display: flex; flex-direction: column; gap: 8px; }
.iqd-body { padding: 16px 18px; margin-bottom: 18px; border-radius: 10px; background: var(--tint); font-size: 15px; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }
.iqd-dl { margin: 0; display: flex; flex-direction: column; }
.iqd-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.iqd-row dt { color: var(--sub); }
.iqd-row dd { margin: 0; overflow-wrap: anywhere; }
.iqd-side { position: sticky; top: 16px; }
.iqd-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.iqd-acts .btn { width: 100%; justify-content: center; min-height: 48px; }
.iqd-acts .note { margin: 0; font-size: 12.5px; }
.pw-tl .tl { overflow: auto; }
@media (max-width: 900px) { .iqd { grid-template-columns: minmax(0, 1fr); } .iqd-side { position: static; } }
@media (max-width: 560px) { .iq-list a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l1" "l2" "at"; } .iq-at { flex-direction: row; gap: 8px; align-items: baseline; } .iqd-row { grid-template-columns: 88px minmax(0, 1fr); } }

/* 새 문의 알림 메일 (설정 → 회사 정보) */
.mail-box { padding-top: 14px; border-top: 1px solid var(--line); }
.mail-st { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--sub); font-size: 11.5px; font-weight: 700; }
.mail-st.on { background: #E3F2EA; color: #24704D; }
.mail-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
.mail-info div { display: flex; flex-direction: column; gap: 2px; }
.mail-info span { font-size: 12px; color: var(--sub); }
.mail-info b { font-size: 14px; overflow-wrap: anywhere; }
.mail-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.mail-log li { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.mail-log li.ok span:first-child { color: #24704D; font-weight: 700; }
.mail-log li.bad span:first-child { color: var(--magenta); font-weight: 700; }
.mail-log em { flex-basis: 100%; padding-left: 18px; font-style: normal; color: var(--magenta); }
.mail-head { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.mail-head div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.mail-head dt { color: var(--sub); }
.mail-head dd { margin: 0; overflow-wrap: anywhere; }
.mail-prev { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; overflow-x: auto; }
.help-dlg:has(.mail-prev) { width: min(700px, calc(100% - 32px)); }

/* 문의: 메뉴 배지 · 첫 화면 아이콘 배지 · 인사말 아래 알림 · 문의 목록 */
.nav a { position: relative; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--magenta); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1; }
.dock-ic { position: relative; }
.dock-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--magenta); color: #FFFFFF; font-size: 11.5px; font-weight: 800; box-shadow: 0 0 0 2px #141110; }
.dock .a8 .dock-ic { background: linear-gradient(140deg, #F08DB0, #B3325F); }
.hero-inq { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; padding: 8px 16px; border-radius: 999px; background: rgba(179, 50, 95, .22); border: 1px solid rgba(240, 141, 176, .45); color: #FFFFFF; font-size: 14px; text-decoration: none; }
.hero-inq:hover { background: rgba(179, 50, 95, .38); color: #FFFFFF; }
.hero-inq b { color: #FFD3E2; }
.hero-inq .dot { width: 8px; height: 8px; border-radius: 50%; background: #F08DB0; box-shadow: 0 0 0 4px rgba(240, 141, 176, .25); animation: inqPulse 1.6s ease-in-out infinite; }
@keyframes inqPulse { 50% { box-shadow: 0 0 0 7px rgba(240, 141, 176, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-inq .dot { animation: none; } }
.inq-page { padding: 6px 22px; }
.iq-st { font-size: 12px; color: var(--sub); }
.filters .fchip b { margin-left: 4px; }
@media (max-width: 760px) {
  .dock { grid-template-columns: repeat(5, 56px); gap: 12px 8px; }
  .nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .nav a { font-size: 9.5px; padding-inline: 0; }
  .nav-badge { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; font-size: 10px; }
}

/* 메뉴 5개로 묶음: 묶인 화면 맨 위 전환 탭 */
.subnav { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(59, 52, 49, .04); margin-bottom: -8px; }
.subnav a { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; }
.subnav a:hover { color: var(--ink); background: var(--tint); }
.subnav a[aria-current="page"] { background: #2A2321; color: #FFFFFF; }
@media (max-width: 760px) {
  .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav a { font-size: 10.5px; }
  .dock { grid-template-columns: repeat(4, 64px); gap: 12px 10px; }
  .subnav { align-self: stretch; }
  .subnav a { flex: 1; text-align: center; padding: 8px 10px; }
}

/* ───────── 업무 HOME 대시보드 (카드 바둑판, 마젠타 톤 유지) ───────── */
.db-head { max-width: 1440px; width: 100%; margin: 0 auto; padding: 28px 32px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; box-sizing: border-box; }
.db-eye { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--magenta); }
.db-head h1 { margin: 6px 0 2px; font-family: var(--f-body); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.db-head p { margin: 0; font-size: 13.5px; color: var(--sub); }
.db-acts { display: flex; align-items: center; gap: 8px; }
.db-acts .btn { min-height: 40px; border-radius: 10px; }
.nq-menu { position: relative; }
.nq-menu summary { list-style: none; cursor: pointer; }
.nq-menu summary::-webkit-details-marker { display: none; }
.nq-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; padding: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(59, 52, 49, .35); display: flex; flex-direction: column; }
.nq-pop a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.nq-pop a:hover { background: var(--tint); }
.nq-pop a span { color: var(--sub); font-size: 12.5px; }

.bento { max-width: 1440px; width: 100%; margin: 0 auto; padding: 20px 32px 8px; box-sizing: border-box; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bento .s3 { grid-column: span 3; } .bento .s4 { grid-column: span 4; } .bento .s5 { grid-column: span 5; } .bento .s7 { grid-column: span 7; } .bento .s8 { grid-column: span 8; } .bento .s12 { grid-column: span 12; }
.bx-wrap { display: flex; min-width: 0; }
.bx-wrap > .pw { flex: 1; min-width: 0; }
.bx { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(59, 52, 49, .04), 0 16px 34px -30px rgba(59, 52, 49, .5); }
.bx-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bx-h h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 6px; }
.bx-h h2 small { font-size: 12px; font-weight: 700; color: var(--taupe); }
.bx-h .pw-more { font-size: 12px; }
.bx-l { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.bx-l small { font-weight: 500; opacity: .75; margin-left: 4px; }
.bx-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bx-big small, .kpi-big small { font-size: 15px; font-weight: 600; margin-left: 2px; opacity: .8; }
.bx-sub { margin: 0; font-size: 12.5px; color: var(--sub); }

/* 분기 매출 (진한 마젠타 카드) */
.bx-kpi { flex-direction: row; gap: 24px; color: #FFFFFF; border: 0; padding: 22px 24px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 28px),
    radial-gradient(120% 140% at 0% 0%, #C24470 0%, #8E2246 45%, #3A1424 100%);
  box-shadow: 0 24px 44px -28px rgba(142, 34, 70, .8); }
.kpi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.kpi-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.kpi-delta { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; }
.kpi-delta.up { background: rgba(111, 207, 157, .22); color: #C9F2DB; }
.kpi-delta.down { background: rgba(255, 255, 255, .14); color: #FFD3E2; }
.kpi-delta em { font-style: normal; font-weight: 500; opacity: .85; }
.kpi-bar { margin-top: auto; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.kpi-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFD3E2, #FFFFFF); }
.kpi-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; opacity: .85; }
.kpi-side { margin: 0; flex: 0 0 130px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
.kpi-side dt { font-size: 11.5px; opacity: .75; }
.kpi-side dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
.kpi-go { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; text-decoration: none; font-size: 14px; }
.kpi-go:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.bx-kpi .kpi-side { margin-top: 26px; }

/* 진행 중인 건 */
.pipe-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pipe-top span { font-size: 12.5px; color: var(--sub); }
.pipe-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.pipe-bar i { display: block; height: 100%; min-width: 4px; }
.pipe-bar i.empty { flex: 1; background: repeating-linear-gradient(45deg, #E2DBD1 0 4px, transparent 4px 8px); }
.pipe-leg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.pipe-leg a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.pipe-leg a:hover { background: var(--tint); }
.pipe-leg span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pipe-leg b { font-size: 13px; }
.pipe-leg small { font-size: 11.5px; color: var(--taupe); }
.pipe-leg em { font-style: normal; font-size: 13px; font-weight: 700; }

/* 이번 주 행사 */
.wk-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sub); }
.wk-leg i { width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.wk-leg i.c { background: var(--magenta); } .wk-leg i.p { background: #E7A9BE; }
.wk-bars { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; min-height: 150px; align-items: end; }
.wk-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; text-decoration: none; color: var(--sub); }
.wk-track { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 110px; }
.wk-bar { width: 72%; max-width: 44px; display: flex; flex-direction: column; border-radius: 8px 8px 4px 4px; overflow: hidden; }
.wk-bar i { display: block; min-height: 0; }
.wk-bar i.c { background: var(--magenta); } .wk-bar i.p { background: #E7A9BE; }
.wk-bar.none { height: 26px; background: repeating-linear-gradient(45deg, #E2DBD1 0 4px, transparent 4px 8px); border-radius: 6px; }
.wk-tip { position: absolute; top: -4px; left: 50%; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: 6px; background: #2A2321; color: #FFFFFF; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wk-d { display: flex; flex-direction: column; align-items: center; font-size: 11px; line-height: 1.3; }
.wk-d b { font-size: 12.5px; color: var(--ink); }
.wk-col.today .wk-d { color: var(--magenta); }
.wk-col.today .wk-d b { color: #FFFFFF; background: var(--magenta); border-radius: 999px; padding: 0 6px; }

/* 진행 중 큰 건 */
.hot { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hot li + li { border-top: 1px solid #EFEAE3; }
.hot a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; color: var(--ink); text-decoration: none; }
.hot a:hover .hot-t b { color: var(--magenta); }
.hot-av { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #FFFFFF; font-size: 13px; font-weight: 800; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.hot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hot-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-t small { font-size: 11.5px; color: var(--sub); display: inline-flex; align-items: center; gap: 4px; }
.hot-a { display: flex; flex-direction: column; align-items: flex-end; }
.hot-a b { font-size: 13.5px; }
.hot-a small { font-size: 11px; color: var(--taupe); }

/* 다음 행사 */
.bx-next { background: linear-gradient(160deg, #FFFFFF 0%, #FBF3F6 100%); border-color: #EBD3DC; }
.nx-dd { padding: 2px 9px; border-radius: 999px; background: var(--magenta); color: #FFFFFF; font-size: 11.5px; font-weight: 800; }
.nx-t { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; }
.nx-s { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--sub); }
.nx-acts { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.nx-acts .btn { width: 100%; justify-content: center; min-height: 40px; border-radius: 10px; }

/* 월별 목표 */
.mq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mq li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mq-m { font-size: 13px; font-weight: 700; }
.mq-m em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--magenta-soft); color: var(--magenta-dk); }
.mq-bar { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.mq-bar i { display: block; height: 100%; border-radius: 999px; background: #CFC5B8; }
.mq li.cur .mq-bar i { background: var(--magenta); }
.mq-v { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.mq-v small { font-weight: 500; color: var(--taupe); }
.bx-quota .gl-form { margin-top: 4px; }

/* 챙겨야 할 일 */
.as-pill { padding: 2px 9px; border-radius: 999px; background: var(--magenta-soft); color: var(--magenta-dk); font-size: 11.5px; font-weight: 800; }
.as-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow: auto; }
.as-list a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #FBF9F6; color: var(--ink); text-decoration: none; font-size: 13px; }
.as-list a:hover { background: var(--tint); }
.as-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #CFC5B8; }
.as-list .lv0 .as-dot { background: var(--magenta); box-shadow: 0 0 0 3px rgba(179, 50, 95, .15); }
.as-list .lv1 .as-dot { background: #E7A9BE; }
.as-list .td-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-list .td-n { font-size: 11.5px; color: var(--sub); }

/* 새 문의 */
.bx-inq { background: #2A2321; color: #F2EDE6; border: 0; }
.bx-inq .bx-h h2 { color: #FFFFFF; }
.bx-inq .pw-more { color: #CFC5B8; }
.iqb-n { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 6px 0 2px; }
.iqb-n b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; color: #FFFFFF; line-height: 1; }
.iqb-n span { font-size: 13px; color: #CFC5B8; }
.iqb-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.iqb-l a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(242, 237, 230, .07); color: #F2EDE6; text-decoration: none; font-size: 12.5px; }
.iqb-l a:hover { background: rgba(242, 237, 230, .14); }
.iqb-l span { color: #F0A3BF; font-size: 11.5px; }
.bx-inq .pw-empty { color: #A99F96; text-align: center; }
.iqb-go { margin-top: auto; width: 100%; justify-content: center; min-height: 40px; border-radius: 10px; }
.bx-inq .btn-line { background: transparent; color: #F2EDE6; border-color: rgba(242, 237, 230, .3); }

/* 아래 넓은 카드들 (업무 현황 · 일정 · 타임라인 · 관리자 알림) 모서리 맞춤 */
.bento .pw { border-radius: 16px; }

@media (max-width: 1200px) {
  .bento .s3, .bento .s4, .bento .s5, .bento .s7 { grid-column: span 6; }
  .bento .s8 { grid-column: span 12; }
  .bento .s4.bx-wrap { grid-column: span 12; }
}
@media (max-width: 760px) {
  .db-head { padding: 20px 16px 0; }
  .db-head h1 { font-size: 22px; }
  .db-acts { width: 100%; }
  .db-acts .btn, .nq-menu { flex: 1; }
  .nq-menu summary { width: 100%; justify-content: center; }
  .nq-pop { left: 0; right: auto; }
  .bento { padding: 16px 16px 8px; gap: 12px; }
  .bento > * { grid-column: 1 / -1 !important; }
  .bx-kpi { flex-direction: column; gap: 14px; }
  .kpi-side { flex-direction: row; justify-content: space-between; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 0 !important; }
  .kpi-big { font-size: 32px; }
}
.pipe-leg .st-dot, .hot-t .st-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.wk-bars { padding-top: 26px; }
@media (max-width: 1200px) { .bento .s4.bx-wrap { grid-column: span 6; } }
@media (max-width: 760px) { .bento .s4.bx-wrap { grid-column: 1 / -1; } }
@media (max-width: 760px) { .kpi-side { flex: none; } .db-acts .linklike { flex: none; } }
@media (max-width: 560px) { .pipe-leg { grid-template-columns: minmax(0, 1fr); } .pipe-leg span { flex-direction: row; align-items: baseline; gap: 6px; } }

/* 문의 정리 메뉴 (⋯) · 삭제 확인 창 */
.iq-list li.iq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.iq-menu { position: relative; }
.iq-dots { width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--sub); font-size: 18px; line-height: 1; cursor: pointer; }
.iq-dots:hover, .iq-dots[aria-expanded="true"] { background: var(--tint); border-color: var(--line); color: var(--ink); }
.iq-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: min(240px, calc(100vw - 32px)); padding: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(59, 52, 49, .4); display: flex; flex-direction: column; }
.iq-pop button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.iq-pop button:hover:not(:disabled) { background: var(--tint); }
.iq-pop button b { font-size: 13.5px; font-weight: 700; }
.iq-pop button small { font-size: 11.5px; color: var(--taupe); }
.iq-pop button.danger { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 11px; }
.iq-pop button.danger b { color: var(--magenta); }
.iq-pop button:disabled { opacity: .55; cursor: not-allowed; }
.page-head .head-actions .iq-menu .iq-dots { width: 42px; height: 42px; border-color: var(--line-2); background: #FFFFFF; }
.iqd-state { margin: -8px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.cf-dlg { width: min(440px, calc(100% - 32px)); }
.cf-dlg .hd-body p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.cf-warn { padding: 10px 12px; border-radius: 8px; background: #FBF3F6; color: var(--magenta-dk); }
.cf-dlg .hd-foot { gap: 8px; }
.cf-dlg .btn-danger { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }

/* 행사 관리 목록 「⋯」 */
.evrow { grid-template-columns: 74px minmax(0, 1fr) 190px 120px 150px 36px; }
.evr-more .iq-pop a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.evr-more .iq-pop a:hover { background: var(--tint); }
.evr-more .iq-pop a b { font-size: 13.5px; font-weight: 700; }
.evr-more .iq-pop a small { font-size: 11.5px; color: var(--taupe); }
@media (max-width: 1100px) {
  .evrow { grid-template-columns: 70px minmax(0, 1fr) 170px 110px 36px; }
  .evr-act { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .evrow { grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "date main more" "date stage amt" "act act act"; }
  .evr-more { grid-area: more; align-self: start; }
}
/* 「⋯」 메뉴가 열린 줄을 다른 줄보다 위로 (아래 줄의 ⋯ 버튼이 메뉴 위로 비치지 않게) */
.evrow, .iq-list li.iq-row { position: relative; }
.evrow:has(.iq-pop:not([hidden])), .iq-list li.iq-row:has(.iq-pop:not([hidden])) { z-index: 40; }
.evrow:has(.iq-pop:not([hidden])) { transform: none; }
@media (min-width: 761px) and (max-width: 1100px) {
  .evrow .evr-more { grid-column: 5; grid-row: 1; justify-self: end; }
  .evrow .evr-act { grid-column: 2 / 5; }
}

/* 견적서 이메일 창 · 설정 기본 문구 */
.qm-dlg { width: min(640px, calc(100% - 32px)); }
.qm-dlg form { margin: 0; }
.qm-f { display: flex; flex-direction: column; gap: 6px; }
.qm-f > span { font-size: 13px; font-weight: 700; color: var(--sub); }
.qm-f input, .qm-f textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 15px; background: #FFFFFF; color: var(--ink); }
.qm-f textarea { line-height: 1.7; resize: vertical; }
.qm-f input:focus, .qm-f textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(179, 50, 95, .1); }
.qm-help { margin: 0; font-size: 12.5px; }
.qm-off { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FBF3F6; color: var(--magenta-dk); font-size: 13.5px; line-height: 1.6; }
.qm-tpl { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.qm-f input, .qm-f textarea { box-sizing: border-box; max-width: 100%; }
.qm-dlg .hd-body { overflow-x: hidden; }
