/* HIVE SIX 공통 — 잉크(#1F2A33) + 꿀(#E3A82B) */
:root {
  --ink: #1F2A33; --ink2: #44525E; --mute: #66727D; --line: #E2DED5; --bg: #F7F5F0; --card: #FFFFFF;
  --honey: #E3A82B; --honey-d: #8A5A0B; --honey-l: #FBF1DA;
  --ok: #1E7A4C; --ok-l: #E3F4EA; --warn: #8A5A0B; --warn-l: #FDF3DC; --bad: #B3261E; --bad-l: #FBE7E5; --info: #1F5F99; --info-l: #E4EEF8;
  --r: 10px; --sh: 0 1px 2px rgba(31, 42, 51, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--info); }
a:hover { text-decoration-thickness: 2px; }
h1 { font-size: 1.5rem; margin: 0 0 .8rem; line-height: 1.3; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: .8rem 0 .4rem; }
p { margin: .4rem 0 .8rem; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .85rem; } .muted { color: var(--mute); } .mono { font-family: ui-monospace, Consolas, monospace; } .num { font-variant-numeric: tabular-nums; text-align: right; }
.break { word-break: break-all; } .center { text-align: center; } .mt { margin-top: .8rem; } .nowrap { white-space: nowrap; }
.eyebrow { color: var(--honey-d); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin: 0 0 .3rem; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 40px; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink2); }
.btn-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-main:hover { background: #2E3D49; }
.btn-honey { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.btn-danger { color: var(--bad); border-color: #E8B4AF; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink2); }
.btn-sm { min-height: 32px; padding: .2rem .6rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #CFC9BC; border-radius: 8px; padding: .45rem .6rem; background: #fff; min-height: 40px; max-width: 100%; }
textarea { min-height: 80px; width: 100%; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 18px; height: 18px; accent-color: var(--ink); }
.form { display: grid; gap: .7rem; }
.form label { display: grid; gap: .25rem; font-weight: 600; font-size: .92rem; }
.form label.check, label.check { display: flex; gap: .4rem; align-items: center; font-weight: 400; }
.form input:not([type=checkbox]):not([type=radio]), .form select { width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; margin: 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0 .3rem; }
.inline, .inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form label { display: inline-flex; gap: .3rem; align-items: center; }
.err { color: var(--bad); font-size: .85rem; margin-top: -.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; align-items: center; }
.filters input[name=q] { flex: 1 1 200px; }

/* 표·카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin: 0 0 1rem; box-shadow: var(--sh); }
details.card > summary { cursor: pointer; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.grid3, .cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.page-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin: 0 0 .8rem; }
.page-head h1, .page-head h2 { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 1rem; }
.tbl th, .tbl td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #F1EEE6; font-size: .85rem; color: var(--ink2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .3rem 0; }
.rows li { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; border-bottom: 1px dashed var(--line); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.dl dt { color: var(--mute); font-size: .9rem; } .dl dd { margin: 0; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--mute); background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: #EFECE4; color: var(--ink2); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 6px; font-size: .8rem; font-weight: 600; background: #EFECE4; color: var(--ink2); white-space: nowrap; }
.tag.s-active, .tag.s-done, .tag.s-won, .tag.s-completed, .tag.s-answered, .tag.s-closed_ok { background: var(--ok-l); color: var(--ok); }
.tag.s-paused, .tag.s-hold, .tag.s-draft, .tag.s-revising, .tag.s-need_info { background: var(--warn-l); color: var(--warn); }
.tag.s-closed, .tag.s-canceled, .tag.s-lost, .tag.s-removed, .tag.s-revoked, .tag.s-expired { background: #EDEDED; color: #555; }
.tag.s-doing, .tag.s-in_progress, .tag.s-assigned, .tag.s-contacted, .tag.s-consult, .tag.s-proposal { background: var(--info-l); color: var(--info); }
.flash { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1rem; background: var(--ok-l); color: var(--ok); border: 1px solid #BFE3CD; }
.flash.f-error { background: var(--bad-l); color: var(--bad); border-color: #F0C3BE; }
.flash.f-warn { background: var(--warn-l); color: var(--warn); border-color: #F0DDAE; }
.warn-box { padding: .6rem .8rem; border-radius: 8px; background: var(--warn-l); color: var(--warn); }
.key { font-size: 1.3rem; letter-spacing: .08em; background: var(--honey-l); padding: .5rem .8rem; border-radius: 8px; display: inline-block; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .3rem; list-style: none; padding: 0; font-size: 1.05rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.kpi { display: grid; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--sh); }
.kpi span { color: var(--mute); font-size: .85rem; } .kpi b { font-size: 1.6rem; text-align: left; } .kpi small { color: var(--mute); }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 1rem; }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--ink2); border-bottom: 3px solid transparent; font-weight: 600; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--honey); }

/* 공개 화면 */
.site-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; background: #fff; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.logo b { color: var(--honey-d); }
.site-main { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.site-foot { border-top: 1px solid var(--line); padding: 1.2rem; text-align: center; color: var(--mute); font-size: .85rem; }
.hero { padding: 2.5rem 0 1.5rem; max-width: 640px; }
.hero h1 { font-size: 2.1rem; }
.lead { font-size: 1.08rem; color: var(--ink2); }
.narrow { max-width: 460px; margin: 0 auto; }
.doc.narrow { max-width: 760px; }
.auth { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; margin-top: 1rem; }

/* 업무 화면 */
.w-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem; background: #fff; border-bottom: 1px solid var(--line); }
.w-util { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.w-me { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.w-scope select { min-height: 34px; padding: .2rem .5rem; font-size: .9rem; max-width: 220px; }
.w-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.w-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.w-shell { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 56px); }
.w-nav { background: var(--ink); color: #fff; padding: .8rem .5rem 2rem; }
.w-sec { margin: 0 0 1rem; }
.w-sec h2 { font-size: .75rem; color: #9FB0BC; text-transform: uppercase; letter-spacing: .08em; margin: .3rem .6rem .3rem; }
.w-nav a { display: block; padding: .45rem .7rem; border-radius: 7px; color: #E6ECF0; text-decoration: none; font-size: .93rem; }
.w-nav a:hover { background: #2E3D49; }
.w-nav a.on { background: var(--honey); color: var(--ink); font-weight: 700; }
.w-main { padding: 1.2rem 1.4rem 3rem; min-width: 0; max-width: 1200px; }
.o-nav { display: flex; gap: .8rem; flex-wrap: wrap; } .o-nav a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.o-main { margin: 0 auto; max-width: 980px; }
@media (max-width: 860px) {
  .w-burger { display: flex; }
  .w-shell { grid-template-columns: 1fr; }
  .w-nav { display: none; position: fixed; inset: 56px 0 0 0; z-index: 30; overflow-y: auto; }
  .w-nav.open { display: block; }
  .w-main { padding: 1rem; }
  .w-scope { order: 5; width: 100%; } .w-scope select { max-width: 100%; width: 100%; }
  .w-head { flex-wrap: wrap; }
  .tbl { display: block; overflow-x: auto; }
  .hero h1 { font-size: 1.7rem; }
}
@media print {
  .w-head, .w-nav, .no-print, .flash { display: none !important; }
  .w-shell { display: block; } body { background: #fff; } .card { box-shadow: none; break-inside: avoid; }
}
