/* ProtoTycoon design system — minimalist dark, bold white typography, one restrained accent. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("/css/office.css");

:root {
  --bg: #000;
  --bg-1: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #19191c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.42);
  --accent: #ff4d2e;
  --ok: #3ddc97;
  --warn: #f5c451;
  --err: #ff5d5d;
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.22); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.dot { display: inline-block; width: 0.34em; height: 0.34em; border-radius: 50%; background: var(--accent); margin-left: 0.08em; vertical-align: baseline; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.18s, border-color 0.18s, transform 0.18s var(--ease), opacity 0.18s; }
.btn:hover { background: rgba(255, 255, 255, 0.07); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { background: #e9e9e9; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { border-color: transparent; color: var(--text-2); }
.btn.danger { border-color: rgba(255, 93, 93, 0.5); color: var(--err); }
.btn.danger:hover { background: rgba(255, 93, 93, 0.12); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.icon { width: 40px; padding: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; height: 42px; padding: 0 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.18s; }
textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--line-2); outline: none; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 32px; }
select option { background: #111; }
input[type="color"] { width: 42px; height: 42px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
input[type="range"] { accent-color: #fff; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; }
.field-hint { font-size: 12px; color: var(--text-3); }
.form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background 0.2s; flex: none; padding: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform 0.2s var(--ease), background 0.2s; }
.switch input:checked { background: #fff; }
.switch input:checked::after { transform: translateX(16px); background: #000; }

/* surfaces */
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; background: rgba(255, 255, 255, 0.08); color: var(--text-2); white-space: nowrap; }
.tag.ok { background: rgba(61, 220, 151, 0.14); color: var(--ok); }
.tag.warn { background: rgba(245, 196, 81, 0.14); color: var(--warn); }
.tag.err { background: rgba(255, 93, 93, 0.14); color: var(--err); }
.tag.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bar { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #fff; border-radius: 4px; transition: width 0.7s var(--ease); }
.bar.accent > i { background: var(--accent); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: rgba(255, 255, 255, 0.02); }
.empty { padding: 44px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: #000; font-weight: 900; flex: none; }
.brand-logo { display: block; width: auto; border-radius: 6px; }
.wordmark { font-weight: 900; font-size: 17px; letter-spacing: -0.04em; }

/* toast & modal */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; pointer-events: none; }
.toast { background: #fff; color: #000; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); animation: rise 0.3s var(--ease); max-width: min(520px, 90vw); }
.toast.err { background: var(--err); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; transition: opacity 0.18s; padding: 20px; }
.modal-back.in { opacity: 1; }
.modal { width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 18px; transform: translateY(10px) scale(0.985); transition: transform 0.22s var(--ease); }
.modal.wide { width: min(860px, 100%); }
.modal-back.in .modal { transform: none; }
.modal-title { font-size: 20px; padding: 24px 26px 0; }
.modal-body { padding: 18px 26px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 26px 22px; }

/* markdown */
.md { font-size: 15px; line-height: 1.72; color: rgba(255, 255, 255, 0.9); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md blockquote, .md .table-wrap { margin: 0 0 14px; }
.md h1, .md h2, .md h3, .md h4 { margin: 24px 0 10px; color: #fff; }
.md h1 { font-size: 22px; } .md h2 { font-size: 19px; } .md h3 { font-size: 16.5px; } .md h4 { font-size: 15px; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--text-3); }
.md strong { color: #fff; font-weight: 700; }
.md a { text-decoration: underline; text-underline-offset: 3px; }
.md code { font-family: var(--mono); font-size: 0.88em; background: rgba(255, 255, 255, 0.09); padding: 2px 6px; border-radius: 6px; }
.md pre { background: #0d0d0f; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.md pre code { display: block; padding: 14px 16px; background: none; overflow-x: auto; font-size: 13px; line-height: 1.6; white-space: pre; }
.pre-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 8px 7px 16px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.copy-code { background: none; border: 0; color: var(--text-2); font-size: 12px; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.copy-code:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.md pre i { font-style: normal; }
.md pre .k { color: #ff8f7a; } .md pre .s { color: #9ddfb8; } .md pre .n { color: #f5c451; } .md pre .c { color: rgba(255, 255, 255, 0.36); }
.md blockquote { border-left: 2px solid var(--line-2); padding: 2px 0 2px 16px; color: var(--text-2); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.md .table-wrap { overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 14px; width: 100%; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.md th { font-size: 12px; color: var(--text-2); }

/* ───────── landing ───────── */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px clamp(20px, 5vw, 64px); background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.nav a.link { color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav a.link:hover { color: #fff; }
.hero { position: relative; min-height: calc(100vh - 77px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 40px clamp(20px, 5vw, 64px) 80px; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 900; letter-spacing: -0.055em; line-height: 0.98; }
.hero .lead { margin: 28px 0 36px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 520px; }
.hero-stage { position: relative; height: min(64vh, 620px); min-height: 380px; }
.hero-stage canvas { width: 100%; height: 100%; display: block; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 22px; }
.section { padding: clamp(70px, 10vw, 140px) clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 900; letter-spacing: -0.05em; max-width: 900px; }
.section .sub { color: var(--text-2); font-size: 17px; max-width: 620px; margin-top: 18px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 60px; }
.feature { background: var(--bg); padding: 34px 30px 38px; transition: background 0.3s; }
.feature:hover { background: var(--bg-1); }
.feature .no { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.feature h3 { font-size: 22px; margin: 44px 0 10px; }
.feature p { color: var(--text-2); font-size: 14.5px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.price { border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-1); }
.price.hot { border-color: #fff; }
.price .amount { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; margin: 14px 0 2px; }
.price ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; color: var(--text-2); font-size: 14px; flex: 1; }
.price li::before { content: "—"; color: var(--text-3); margin-right: 10px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.site-foot { padding: 40px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ───────── auth ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(380px, 520px); }
.auth-art { position: relative; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; overflow: hidden; }
.auth-art h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 900; letter-spacing: -0.05em; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 64px); }
.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line); }
.tabs button { height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.tabs button.on { background: #fff; color: #000; }

/* ───────── console (admin / super) ───────── */
.console { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side button.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; transition: background 0.15s, color 0.15s; }
.side button.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side button.nav-item.on { background: rgba(255, 255, 255, 0.09); color: #fff; }
.side .nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 18px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side .side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 8px; }
.main { padding: 44px clamp(22px, 4vw, 56px) 90px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.045em; }
.page-head p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.kpi { background: var(--bg); padding: 22px 24px; }
.kpi .label { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.kpi .value { font-size: 34px; font-weight: 900; letter-spacing: -0.04em; margin-top: 6px; line-height: 1.1; }
.kpi .note { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kcol { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 220px; transition: border-color 0.2s, background 0.2s; }
.kcol.over { border-color: #fff; background: var(--bg-2); }
.kcol-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-2); padding: 2px 4px 12px; }
.kcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: grab; transition: transform 0.2s var(--ease), border-color 0.2s; }
.kcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kcard.drag { opacity: 0.4; }
.kcard .title { font-weight: 700; font-size: 14px; line-height: 1.35; margin: 8px 0 12px; }
.kcard .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.leader { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 2fr) 110px; gap: 16px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: 0; }
.leader .rank { font-size: 22px; font-weight: 900; color: var(--text-3); letter-spacing: -0.04em; }
.leader:first-child .rank { color: #fff; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-item:last-child { border-bottom: 0; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.chart .col { flex: 1; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .col i { width: 100%; background: #fff; border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.9; transition: height 0.6s var(--ease); }
.chart .col span { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-1); }
.plan.cur { border-color: #fff; }
.plan .p { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; margin: 8px 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice .opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; background: var(--bg-1); transition: border-color 0.2s; }
.choice .opt.on { border-color: #fff; }
.choice .opt h4 { font-size: 16px; margin-bottom: 6px; }
.log-msg { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log-msg .who { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-3); margin-bottom: 4px; flex-wrap: wrap; }
.log-msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); max-height: 140px; overflow: auto; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.editor-stage { position: relative; height: 620px; background: #050506; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.editor-stage canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.palette { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 24px); padding: 5px; background: rgba(12, 12, 14, 0.88); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(10px); }
.palette button { height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.palette button:hover { color: #fff; }
.palette button.on { background: #fff; color: #000; }
.editor-side { display: grid; gap: 14px; align-content: start; max-height: 620px; overflow: auto; }
.agent-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.agent-row.on { border-color: #fff; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tpl { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-1); cursor: pointer; transition: border-color 0.2s, transform 0.25s var(--ease); }
.tpl:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tpl.on { border-color: #fff; }
.tpl canvas { display: block; width: 100%; height: 150px; background: #050506; }
.tpl .info { padding: 14px 16px 16px; }
.tpl .info b { font-size: 15px; }
.tpl .info p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* ───────── space (the game view) ───────── */
.space { position: fixed; inset: 0; overflow: hidden; background: #000; }
.space canvas#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; pointer-events: none; z-index: 5; transition: right 0.5s var(--ease); }
.hud > * { pointer-events: auto; }
.pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: rgba(10, 10, 11, 0.78); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; }
.pill select { height: 30px; width: auto; border: 0; background-color: transparent; font-weight: 700; padding-left: 0; }
.mission-pill { flex-direction: column; align-items: stretch; height: auto; padding: 11px 16px 12px; gap: 7px; min-width: 300px; max-width: 440px; cursor: pointer; }
.mission-pill .top { display: flex; align-items: center; gap: 10px; }
.mission-pill .name { font-weight: 800; font-size: 14.5px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.mission-pill .pct { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.gauge { min-width: 190px; flex-direction: column; align-items: stretch; height: auto; padding: 11px 16px 12px; gap: 7px; transition: box-shadow 0.5s, border-color 0.5s; }
.gauge .top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); }
.gauge .top b { font-family: var(--mono); color: #fff; font-size: 12.5px; letter-spacing: 0; }
.gauge.pulse { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 34px color-mix(in srgb, var(--accent) 26%, transparent); }
.gauge.low .bar > i { background: var(--accent); }
.hud-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: rgba(10, 10, 11, 0.78); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); cursor: pointer; color: var(--text-2); transition: 0.18s; }
.hud-btn:hover { color: #fff; border-color: var(--line-2); }
.hud-btn.on { background: #fff; color: #000; border-color: #fff; }
.hud-btn svg { width: 18px; height: 18px; }
.hint { position: absolute; left: 22px; bottom: 20px; font-size: 12px; color: var(--text-3); z-index: 4; display: flex; gap: 14px; align-items: center; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--text-2); }
.tip { position: absolute; z-index: 4; transform: translate(-50%, -100%); pointer-events: none; padding: 9px 14px; background: #fff; color: #000; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity 0.25s, margin 0.3s var(--ease); margin-top: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.tip.show { opacity: 1; margin-top: 0; }
.tip small { display: block; font-weight: 500; color: rgba(0, 0, 0, 0.55); font-size: 11.5px; }
.tip kbd { border-color: rgba(0, 0, 0, 0.3); color: #000; margin-right: 4px; }
.calls { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; transition: left 0.5s var(--ease); }
.call { position: relative; width: 112px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); animation: rise 0.35s var(--ease); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.call video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 4px #000; z-index: 1; }
.popover { position: absolute; top: 78px; left: 50%; transform: translateX(-50%); width: min(480px, calc(100vw - 40px)); z-index: 6; background: rgba(12, 12, 14, 0.96); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; backdrop-filter: blur(16px); animation: rise 0.3s var(--ease); max-height: 70vh; overflow: auto; }
.popover h2 { font-size: 24px; margin-bottom: 10px; }
.crit { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.crit b { font-family: var(--mono); color: var(--text-3); font-weight: 500; }

/* chat panel */
.chat { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 10; background: rgba(8, 8, 9, 0.97); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s var(--ease); backdrop-filter: blur(20px); }
.chat.open { transform: none; }
.space.chat-open .hud { right: min(480px, 100vw); }
.space.chat-open .calls { left: calc(50% - min(240px, 50vw)); }
.chat-head { padding: 26px 28px 18px; }
.chat-head .over { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.chat-head h2 { font-size: 32px; font-weight: 900; letter-spacing: -0.045em; margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.chat-head h2 .orb { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 18px currentColor; background: currentColor; }
.chat-head .role { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.chat-close { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; }
.chat-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.relay { display: flex; gap: 6px; padding: 0 28px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.relay button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 30px; border: 1px solid var(--line); background: none; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.18s; }
.relay button:hover { color: #fff; border-color: var(--line-2); }
.relay button.on { background: #fff; color: #000; border-color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 26px 28px 10px; scroll-behavior: smooth; }
.msg { margin-bottom: 26px; animation: rise 0.35s var(--ease); }
.msg.user { display: flex; flex-direction: column; align-items: flex-end; }
.msg.user .bubble { max-width: 86%; background: var(--bg-3); border-radius: 18px 18px 4px 18px; padding: 11px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.user .by { font-size: 11px; color: var(--text-3); margin: 0 6px 4px; }
.msg.user.blocked .bubble { opacity: 0.5; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.msg .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.msg .foot { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); opacity: 0.75; transition: opacity 0.2s; }
.msg:hover .foot { opacity: 1; }
.msg .foot .cost { font-family: var(--mono); margin-right: 8px; }
.msg .foot button { background: none; border: 0; color: var(--text-3); font-size: 12px; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.msg .foot button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lock { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 12px; font-size: 13.5px; color: var(--text-2); margin: -14px 0 26px; animation: rise 0.35s var(--ease); }
.lock b { color: var(--accent); font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; padding-top: 2px; }
.cursor::after { content: ""; display: inline-block; width: 7px; height: 16px; margin-left: 2px; background: #fff; vertical-align: -2px; border-radius: 1px; animation: blink 1s steps(2) infinite; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; gap: 5px; padding: 6px 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: think 1.2s infinite var(--ease); }
.thinking i:nth-child(2) { animation-delay: 0.15s; } .thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
.composer { padding: 14px 20px 20px; }
.composer .box { display: flex; align-items: flex-end; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 16px; transition: border-color 0.2s, box-shadow 0.4s; }
.composer .box:focus-within { border-color: var(--line-2); }
.composer .box.glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 40px rgba(255, 255, 255, 0.07); }
.composer textarea { flex: 1; min-height: 26px; max-height: 180px; height: 26px; padding: 6px 0; border: 0; background: none; resize: none; outline: none !important; font-size: 15px; }
.composer .send { width: 36px; height: 36px; border-radius: 12px; border: 0; background: #fff; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; transition: opacity 0.2s, transform 0.2s var(--ease); }
.composer .send:disabled { opacity: 0.25; }
.composer .send:not(:disabled):hover { transform: translateY(-1px); }
.composer .note { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); padding: 8px 8px 0; }
.composer .note button { background: none; border: 0; color: var(--text-2); font-size: 11.5px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.drawer { position: absolute; inset: 0; background: rgba(8, 8, 9, 0.99); z-index: 2; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.45s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; padding: 26px 28px 14px; }
.drawer-head h3 { font-size: 24px; font-weight: 900; }
.drawer-body { flex: 1; overflow: auto; padding: 0 28px 28px; }
.art { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.art b { display: block; font-size: 15px; }
.art .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .features, .pricing, .plan-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .editor, .modes, .choice { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
}
@media (max-width: 760px) {
  .console { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand, .side .side-foot { display: none; }
  .side button.nav-item { width: auto; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hud { flex-wrap: wrap; padding: 12px; }
  .mission-pill { min-width: 0; flex: 1 1 100%; order: 3; }
  .nav .link { display: none; }
  .leader { grid-template-columns: 28px 1fr 80px; } .leader .mid { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
@media print {
  body { background: #fff; color: #000; }
  body > :not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; padding: 0; font-size: 12pt; }
  .print-sheet .md, .print-sheet .md strong, .print-sheet .md h1, .print-sheet .md h2, .print-sheet .md h3, .print-sheet .md h4 { color: #000; }
  .print-sheet .md pre { background: #f5f5f5; border-color: #ddd; } .print-sheet .md pre code { white-space: pre-wrap; color: #000; }
  .print-sheet .md pre i { color: #000; } .print-sheet .pre-head { display: none; }
  .print-sheet .md code { background: #eee; } .print-sheet .md th, .print-sheet .md td { border-color: #ccc; }
  .print-sheet .md blockquote { color: #333; border-color: #999; }
  .print-sheet h1.doc-title { font-size: 22pt; margin-bottom: 4pt; } .print-sheet .doc-meta { color: #666; font-size: 9pt; margin-bottom: 18pt; padding-bottom: 8pt; border-bottom: 1px solid #ccc; }
}
.print-sheet { display: none; }

.modal-body p { white-space: pre-line; }

/* ───────── space conveniences: dock, people, notices, blackboard, meeting ───────── */
.dock { position: absolute; left: 22px; top: 82px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.dock-btn { position: relative; width: 56px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: rgba(10, 10, 11, 0.78); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); color: var(--text-2); cursor: pointer; transition: 0.18s; }
.dock-btn:hover { color: #fff; border-color: var(--line-2); }
.dock-btn.on { background: #fff; color: #000; border-color: #fff; }
.dock-btn svg { width: 18px; height: 18px; display: block; }
.dock-btn small { font-size: 10.5px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.dock-btn .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 18px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; }
.side-panel { position: absolute; left: 90px; top: 82px; z-index: 6; width: min(360px, calc(100vw - 112px)); max-height: calc(100vh - 160px); overflow: auto; display: grid; gap: 14px; padding: 18px; background: rgba(12, 12, 14, 0.96); border: 1px solid var(--line-2); border-radius: 18px; backdrop-filter: blur(16px); animation: rise 0.3s var(--ease); }
.panel-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.panel-title { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-2); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.people { display: grid; }
.person { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.person:last-child { border-bottom: 0; }
.person > div { min-width: 0; }
.person b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #000; font-weight: 800; font-size: 13px; }
.notices { display: grid; gap: 10px; }
.notice { padding: 13px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.notice.pin { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.notice p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.notice .meta { margin-top: 10px; font-size: 12px; color: var(--text-3); gap: 10px; }
.notice-bar { position: absolute; top: 82px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 240px)); height: 36px; padding: 0 14px 0 8px; background: rgba(10, 10, 11, 0.78); border: 1px solid var(--line); border-radius: 36px; backdrop-filter: blur(14px); font-size: 13px; font-weight: 600; cursor: pointer; }
.notice-bar > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-ring { position: absolute; top: 128px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; background: #fff; color: #000; border-radius: 16px; font-size: 14px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6); animation: rise 0.3s var(--ease); }
.meet-ring .chat-close { color: rgba(0, 0, 0, 0.5); }
.meet-ring .btn.primary { background: #000; color: #fff; border-color: #000; }
.meet { position: absolute; inset: 82px 22px 64px 90px; z-index: 6; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: rgba(6, 6, 7, 0.94); border: 1px solid var(--line-2); border-radius: 20px; backdrop-filter: blur(18px); animation: rise 0.3s var(--ease); }
.meet-head { display: flex; align-items: center; gap: 12px; }
.meet-grid { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.meet-grid.n1 { grid-template-columns: 1fr; }
.meet-grid.n2, .meet-grid.n3, .meet-grid.n4 { grid-template-columns: repeat(2, 1fr); }
.meet-tile { position: relative; min-height: 0; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; }
.meet-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.meet-tile .big { font-size: 54px; font-weight: 900; color: var(--text-3); }
.meet-tile .name { position: absolute; left: 12px; bottom: 10px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px #000; }
.meet-tile .name small { font-weight: 500; color: var(--text-2); }
.meet-bar { display: flex; justify-content: center; align-items: center; gap: 10px; }
.meet.mini { inset: auto 22px 64px auto; width: 300px; height: 230px; padding: 10px; gap: 8px; }
.meet.mini .meet-grid { grid-template-columns: repeat(2, 1fr); }
.meet.mini .meet-tile .big { font-size: 24px; }
.meet.mini .meet-bar .hud-btn { width: 36px; height: 36px; }
.space.chat-open .meet:not(.mini) { right: calc(min(480px, 100vw) + 22px); }
.wb-back { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.wb { width: min(1180px, 100%); display: grid; gap: 12px; padding: 18px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 18px; }
.wb-head { display: flex; align-items: baseline; gap: 12px; font-size: 17px; }
.wb-head .dim { font-size: 12.5px; }
.wb-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wb-tools .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; }
.chalk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.chalk.on { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px #fff; }
.wb-stage { position: relative; border-radius: 12px; overflow: hidden; border: 6px solid #3a2a1c; line-height: 0; }
.wb-stage canvas { width: 100%; max-height: calc(100vh - 210px); aspect-ratio: 16 / 9; display: block; cursor: crosshair; touch-action: none; background: #13261e; }
.wb-text { position: absolute; width: 240px; height: 34px; line-height: 1.4; background: rgba(0, 0, 0, 0.75); border: 1px solid #fff; border-radius: 8px; padding: 0 10px; font-size: 14px; }
@media (max-width: 760px) {
  .dock { top: auto; bottom: 64px; flex-direction: row; left: 12px; }
  .side-panel { left: 12px; top: 76px; width: calc(100vw - 24px); max-height: calc(100vh - 220px); }
  .meet { inset: 76px 12px 130px 12px; }
  .notice-bar { display: none; }
}

.inquiry { display: grid; gap: 16px; max-width: 720px; margin-top: 36px; position: relative; }
.kanban.pipeline { grid-template-columns: repeat(6, minmax(170px, 1fr)); overflow-x: auto; }

/* ───────── career: staff card, ranks, approval documents, promotion ───────── */
:root { --gold: #e8c46a; --paper: #f6f1e6; --ink: #1d1a15; --seal: #d7352a; }
.dock-sep { height: 1px; margin: 4px 8px; background: var(--line-2); }
.dock-btn.gold { border-color: color-mix(in srgb, var(--gold) 32%, transparent); color: var(--gold); }
.dock-btn.gold:hover { border-color: var(--gold); color: #fff; }
.dock-btn.gold.on { background: var(--gold); border-color: var(--gold); color: #17130a; }
.gold { color: var(--gold); }
.portrait { display: block; flex: none; }

.seal { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 2.5px solid var(--seal); border-radius: 50%; color: var(--seal); font-weight: 900; font-size: 15px; line-height: 1.02; letter-spacing: -0.04em; text-align: center; transform: rotate(-9deg); box-shadow: inset 0 0 0 1.5px rgba(215, 53, 42, 0.25); word-break: break-all; padding: 3px; opacity: 0.92; font-family: "Nanum Myeongjo", "Batang", var(--font); }
.seal[data-n="3"], .seal[data-n="4"] { font-size: 12.5px; }
.seal.big { width: 62px; height: 62px; font-size: 20px; border-width: 3px; flex: none; }
.reject-mark { display: inline-block; padding: 3px 9px; border: 2.5px solid var(--seal); border-radius: 5px; color: var(--seal); font-weight: 900; font-size: 15px; letter-spacing: 0.18em; text-indent: 0.18em; transform: rotate(-12deg); }
.thump { animation: thump 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes thump { 0% { transform: rotate(-9deg) scale(2.6); opacity: 0; } 60% { transform: rotate(-9deg) scale(0.92); opacity: 1; } 100% { transform: rotate(-9deg) scale(1); opacity: 0.92; } }

.checkin { position: absolute; right: 22px; top: 82px; z-index: 8; display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 16px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65); animation: rise 0.4s var(--ease); transition: opacity 0.4s, transform 0.4s; }
.checkin.out { opacity: 0; transform: translateY(-8px); }
.checkin .seal { animation: thump 0.6s 0.25s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.checkin b { display: block; font-size: 15px; }
.checkin small { display: block; font-size: 12.5px; color: rgba(29, 26, 21, 0.62); }
.checkin small.gold { color: #9a7417; font-weight: 700; }

.career-back { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.74); backdrop-filter: blur(8px); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.career { width: min(980px, 100%); max-height: min(720px, calc(100vh - 40px)); display: flex; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; animation: rise 0.3s var(--ease); }
.career.docs { flex-direction: column; width: min(820px, 100%); }
.career-side { width: 300px; flex: none; padding: 22px; background: linear-gradient(180deg, #131316, #0b0b0c); border-right: 1px solid var(--line); overflow: auto; display: grid; gap: 18px; align-content: start; }
.career-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.career-tabs { display: flex; align-items: center; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none; }
.career-tabs > button:not(.btn):not(.chat-close):not(.link) { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.career-tabs > button.on { background: #fff !important; color: #000 !important; }
.career-tabs .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 18px; background: var(--accent); color: #fff; font-size: 10.5px; display: inline-grid; place-items: center; }
.career-body { flex: 1; overflow: auto; padding: 20px 22px 24px; display: grid; gap: 16px; align-content: start; }
.career-lead { color: var(--text-2); font-size: 14px; }

.idcard { position: relative; padding: 30px 18px 16px; border-radius: 18px; background: linear-gradient(160deg, #fbf8f1 0%, #ece5d6 100%); color: var(--ink); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 #fff; }
.idcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 74px; border-radius: 18px 18px 0 0; background: linear-gradient(135deg, #17171a, #2a2a30); }
.idcard-hole { position: absolute; top: 9px; left: 50%; width: 38px; height: 7px; margin-left: -19px; border-radius: 7px; background: #000; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25); }
.idcard-brand { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.idcard-brand img { height: 20px; }
.idcard-photo { position: relative; width: 132px; height: 132px; margin: 12px auto 10px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #33333a, #101012); border: 4px solid #fbf8f1; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); overflow: hidden; }
.idcard-name { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; }
.idcard-rank { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 3px 14px; border-radius: 30px; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 13.5px; }
.idcard-rank i { font-style: normal; font-size: 10.5px; color: #17130a; background: var(--gold); border-radius: 10px; padding: 0 7px; }
.idcard-meta { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(29, 26, 21, 0.25); font-size: 12px; color: rgba(29, 26, 21, 0.62); }
.idcard-xp { margin-top: 12px; font-size: 12px; color: rgba(29, 26, 21, 0.7); text-align: left; }
.idcard-xp b { font-size: 15px; color: var(--ink); }
.xpbar { height: 8px; margin-top: 6px; border-radius: 8px; background: rgba(29, 26, 21, 0.12); overflow: hidden; }
.xpbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #c9982f, var(--gold)); transition: width 0.8s var(--ease); }
.idcard-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 700; color: rgba(29, 26, 21, 0.7); }
.idcard-foot svg { width: 14px; height: 14px; color: #d8452f; display: block; }
.gains { display: grid; gap: 2px; }
.gains-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; }
.gain { display: flex; align-items: baseline; gap: 4px; padding: 5px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.gain b { color: #fff; font-family: var(--mono); }
.gain small { color: var(--text-3); font-size: 11.5px; }
.gain.max b { color: var(--gold); }

.ladder { display: grid; gap: 6px; }
.rung { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); opacity: 0.62; }
.rung.done { opacity: 0.9; }
.rung.now { opacity: 1; border-color: var(--gold); background: linear-gradient(90deg, rgba(232, 196, 106, 0.14), rgba(232, 196, 106, 0.02)); box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.2), 0 10px 30px rgba(232, 196, 106, 0.08); }
.rung > div:nth-child(2) { flex: 1; min-width: 0; }
.rung b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.rung small { display: block; font-size: 12.5px; color: var(--text-3); }
.rung-side { text-align: right; flex: none; }
.rung-side b { justify-content: flex-end; font-family: var(--mono); font-size: 13px; color: var(--gold); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-card { padding: 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); opacity: 0.4; filter: grayscale(1); }
.badge-card.on { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.badge-card .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(232, 196, 106, 0.14); color: var(--gold); margin-bottom: 10px; }
.badge-card .ico svg { width: 20px; height: 20px; }
.badge-card b { display: block; font-size: 14px; }
.badge-card small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.board { display: grid; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); border-radius: 10px; }
.board-row.me { background: rgba(232, 196, 106, 0.08); }
.board-row b { display: block; font-size: 14px; }
.board-row small { display: block; font-size: 12px; color: var(--text-3); }
.board-row .no { width: 24px; text-align: center; font-family: var(--mono); font-weight: 800; color: var(--text-3); }
.board-row .no.top { color: var(--gold); }
.seat-now { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 14px; background: rgba(232, 196, 106, 0.06); }
.seat-now b { display: block; font-size: 17px; color: var(--gold); }
.seat-now small { color: var(--text-2); font-size: 13px; }

.doc-list { display: grid; gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); text-align: left; cursor: pointer; transition: 0.18s; }
.doc-row:hover { border-color: var(--line-2); transform: translateY(-1px); }
.doc-row > div:nth-child(2) { min-width: 0; }
.doc-row b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row small { display: block; font-size: 12px; color: var(--text-3); }
.line-mini { display: flex; gap: 4px; }
.line-mini i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.line-mini i.approved { background: var(--seal); border-color: var(--seal); }
.line-mini i.rejected { background: none; border-color: var(--seal); border-radius: 2px; }
.sheet { padding: 30px 34px 34px; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); background-image: linear-gradient(rgba(29, 26, 21, 0.035) 1px, transparent 1px); background-size: 100% 30px; }
.sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sheet h2 { font-size: 30px; font-weight: 900; letter-spacing: 0.3em; padding-top: 18px; font-family: "Nanum Myeongjo", "Batang", var(--font); }
.signs { display: flex; border: 1.5px solid var(--ink); }
.sign { width: 70px; text-align: center; border-left: 1px solid var(--ink); }
.sign:first-child { border-left: 0; }
.sign-head { padding: 3px 0; font-size: 11.5px; font-weight: 800; border-bottom: 1px solid var(--ink); background: rgba(29, 26, 21, 0.06); }
.sign-body { height: 62px; display: grid; place-items: center; }
.sign-foot { padding: 2px 0; font-size: 10.5px; border-top: 1px solid var(--ink); color: rgba(29, 26, 21, 0.7); white-space: nowrap; overflow: hidden; }
.sign.turn .sign-body { background: rgba(215, 53, 42, 0.07); }
.sign-wait { font-size: 11px; font-weight: 700; color: var(--seal); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.sheet dl { display: grid; grid-template-columns: 84px 1fr 84px 1fr; margin: 0 0 20px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 13.5px; }
.sheet dt { padding: 7px 10px; font-weight: 800; background: rgba(29, 26, 21, 0.06); border-bottom: 1px solid rgba(29, 26, 21, 0.2); }
.sheet dd { margin: 0; padding: 7px 10px; border-bottom: 1px solid rgba(29, 26, 21, 0.2); }
.sheet h3 { font-size: 20px; margin-bottom: 12px; }
.sheet-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 30px; min-height: 120px; }
.opinion { margin-top: 16px; padding: 12px 14px; border-left: 3px solid rgba(29, 26, 21, 0.4); background: rgba(29, 26, 21, 0.05); font-size: 13.5px; }
.opinion.no { border-left-color: var(--seal); background: rgba(215, 53, 42, 0.07); }
.opinion b { margin-right: 8px; }
.opinion span { font-size: 11.5px; font-weight: 800; color: var(--seal); }
.opinion p { margin-top: 4px; white-space: pre-line; }
.career .opinion { color: inherit; }
.career-body > .form .opinion { color: var(--text); background: rgba(215, 53, 42, 0.1); }
.decide { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.line-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: 40px; background: var(--bg-2); cursor: pointer; text-align: left; }
.pick.on { border-color: var(--gold); background: rgba(232, 196, 106, 0.1); }
.pick b { display: block; font-size: 13.5px; line-height: 1.2; }
.pick small { display: block; font-size: 11.5px; color: var(--text-3); }
.pick > i { position: absolute; top: -6px; left: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #17130a; font-style: normal; font-weight: 900; font-size: 11.5px; display: grid; place-items: center; }

.promo-back { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(232, 196, 106, 0.2), rgba(0, 0, 0, 0.88) 62%); backdrop-filter: blur(8px); animation: fade 0.3s; overflow: hidden; }
.promo { position: relative; width: min(420px, 100%); padding: 34px 34px 28px; border-radius: 8px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(232, 196, 106, 0.6), 0 0 0 7px var(--paper), 0 0 0 8px rgba(232, 196, 106, 0.7); animation: promo-in 0.7s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes promo-in { from { opacity: 0; transform: translateY(40px) scale(0.9) rotate(-2deg); } }
.promo-over { font-size: 15px; font-weight: 900; letter-spacing: 0.5em; text-indent: 0.5em; color: #9a7417; font-family: "Nanum Myeongjo", "Batang", var(--font); }
.promo-photo { width: 150px; height: 150px; margin: 18px auto 12px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #33333a, #101012); border: 4px solid var(--gold); overflow: hidden; }
.promo h2 { font-size: 30px; font-weight: 900; }
.promo-rank { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 16px; font-size: 16px; color: rgba(29, 26, 21, 0.55); }
.promo-rank i { font-style: normal; }
.promo-rank b { font-size: 26px; color: var(--ink); padding: 0 14px; border-radius: 30px; background: var(--gold); }
.promo p { font-size: 14.5px; }
.promo p.dim { color: rgba(29, 26, 21, 0.58); font-size: 13px; margin-top: 4px; }
.promo-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 18px 0 20px; font-weight: 800; font-size: 14px; }
.promo .btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); width: 100%; justify-content: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear infinite; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }
@media (max-width: 760px) {
  .career { flex-direction: column; overflow: auto; }
  .career-side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding: 20px 16px; } .sheet header { flex-direction: column; } .sheet dl { grid-template-columns: 84px 1fr; }
  .career-tabs { overflow-x: auto; }
}

/* ───────── brand line, business footer, policy pages ───────── */
.powered { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); white-space: nowrap; }
.powered b { color: var(--text-2); font-weight: 700; }
.nav .nav-powered { margin-left: -14px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.side-foot .powered, .roster-foot .powered { margin-top: 4px; }
.space-powered { position: absolute; right: 22px; bottom: 20px; z-index: 3; pointer-events: none; }
.idcard-powered { margin-top: 10px; font-size: 9.5px; letter-spacing: 0.08em; color: rgba(29, 26, 21, 0.45); }
.idcard-powered b { color: rgba(29, 26, 21, 0.7); }
.auth-mark { display: none; margin: 0 auto 28px; width: 100%; max-width: 440px; }
.auth-foot { width: 100%; max-width: 440px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.auth-foot a:hover { color: #fff; }

.bizfoot { border-top: 1px solid var(--line); background: #0a0a0b; color: var(--text-3); font-size: 13px; line-height: 1.8; }
.bizfoot-in { max-width: 1320px; margin: 0 auto; padding: 44px clamp(20px, 5vw, 64px) calc(48px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.bizfoot-brand { display: grid; gap: 8px; justify-items: start; }
.bizfoot-brand .wordmark { color: #fff; font-size: 19px; }
.bizfoot-body { display: grid; gap: 2px; min-width: 0; }
.bizfoot b { color: rgba(255, 255, 255, 0.86); font-weight: 600; }
.bizfoot a:hover b, .bizfoot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bizfoot-links { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 12px; }
.bizfoot-links a { color: #fff; font-size: 15px; font-weight: 700; }
.bizfoot p { display: flex; flex-wrap: wrap; gap: 0 18px; }
.bizfoot small { margin-top: 14px; font-size: 12px; color: var(--text-3); }

.legal { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 64px) 100px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -0.05em; margin-bottom: 10px; }
.legal h2 { font-size: 19px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; }
.legal p { margin: 10px 0; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal table { min-width: 560px; }
.legal td { vertical-align: top; color: var(--text-2); }

/* ───────── mobile (phones) ───────── */
@media (max-width: 1100px) { .auth-mark { display: block; } }
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; } /* iOS zooms the page on smaller form text */
  .nav { gap: 8px; padding: 12px 16px; }
  .nav .nav-powered { display: none; }
  .nav .btn.sm { padding: 0 11px; }
  .hero { min-height: 0; padding: 28px 18px 36px; gap: 8px; }
  .hero h1 { font-size: clamp(36px, 11.2vw, 52px); line-height: 1.04; }
  .hero .lead { margin: 20px 0 26px; font-size: 16px; }
  .hero .row .btn.lg { flex: 1 1 100%; justify-content: center; }
  .hero-stage { height: 300px; min-height: 0; margin: 0 -18px; }
  .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: 0.12em; }
  .section { padding: 60px 18px; }
  .section h2 { font-size: clamp(28px, 8.4vw, 38px); }
  .section .sub { font-size: 15.5px; }
  .features { margin-top: 32px; border-radius: 16px; }
  .feature { padding: 22px 20px 24px; }
  .feature h3 { font-size: 19px; margin: 16px 0 8px; }
  .pricing, .modes { margin-top: 32px; }
  .price { padding: 24px 22px; }
  .price .amount { font-size: 34px; }
  .inquiry { padding: 20px 18px; }
  .inquiry .row { flex-wrap: wrap; }
  .inquiry .btn { flex: 1 1 100%; justify-content: center; }
  .bizfoot-in { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .bizfoot { font-size: 12.5px; }
  .bizfoot-links { gap: 6px 20px; }
  .bizfoot-links a { font-size: 14px; }
  .auth-form { justify-content: flex-start; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); min-height: 100dvh; }
  .auth-form h1 { font-size: 26px; }
  .legal table { font-size: 13px; }

  /* consoles */
  .side { position: sticky; top: 0; z-index: 30; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px 12px; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(14px); scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side button.nav-item { flex: none; height: 36px; padding: 0 12px; white-space: nowrap; }
  .side .side-foot { display: flex; flex: none; flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--line-2); }
  .side .side-foot .dim, .side .side-foot .powered, .side .side-foot .tag { display: none; }
  .side .side-foot .btn { height: 36px; padding: 0 12px !important; white-space: nowrap; font-size: 13px; }
  .main { padding: 24px 16px 80px; }
  .page-head { margin-bottom: 22px; gap: 10px; }
  .page-head h1 { font-size: 28px; }
  .page-head > .spacer { display: none; }
  .kpi { padding: 16px; }
  .kpi .value { font-size: 24px; overflow-wrap: anywhere; }
  .card { padding: 16px; }
  .card:has(> table.t) { overflow-x: auto; }
  table.t { min-width: 600px; }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .kanban.pipeline { grid-template-columns: repeat(6, minmax(230px, 1fr)); }
  .modal-back { padding: 10px; align-items: flex-end; }
  .modal { max-height: 92dvh; border-radius: 18px; }
  .modal-title { padding: 20px 18px 0; }
  .modal-body { padding: 14px 18px; }
  .modal-foot { padding: 12px 18px 18px; flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }

  /* workspace */
  .hud { gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 0; align-items: center; }
  .hud > .spacer { display: none; }
  .hud > .pill:first-child { order: 1; flex: 1 1 calc(100% - 152px); min-width: 0; height: 40px; padding: 0 12px; }
  .hud > .pill:first-child b, .hud > .pill:first-child select { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px !important; }
  .hud .hud-btn { order: 2; width: 40px; height: 40px; border-radius: 12px; }
  .hud .gauge { display: none; }
  .hud .mission-pill { order: 5; flex: 1 1 calc(100% - 110px); min-width: 0; max-width: none; padding: 8px 12px 9px; gap: 5px; }
  .hud .mission-pill .name { font-size: 13px; }
  .hud .office-btn { order: 6; height: 40px; padding: 0 14px; }
  .space-powered { display: none; }
  .dock { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 9; flex-direction: row; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(8, 8, 9, 0.94); border-top: 1px solid var(--line-2); backdrop-filter: blur(16px); }
  .dock-sep { display: none; }
  .dock-btn, .dock-btn.gold { flex: 1 1 0; min-width: 0; width: auto; height: 50px; border: 0; background: none; border-radius: 12px; backdrop-filter: none; }
  .dock-btn.on { background: #fff; }
  .dock-btn.gold.on { background: var(--gold); }
  .dock-btn small { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .dock-btn .badge { top: 2px; right: calc(50% - 24px); }
  .hint { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .hint > span { display: none; }
  .hint input { flex: 1; width: 100% !important; height: 40px !important; border-radius: 12px; }
  .calls { bottom: calc(124px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); overflow-x: auto; }
  .call { width: 84px; height: 64px; flex: none; }
  .tip { font-size: 12px; padding: 7px 11px; }
  .popover { top: calc(116px + env(safe-area-inset-top)); width: calc(100vw - 24px); padding: 18px; max-height: 60dvh; }
  .side-panel { left: 0; right: 0; top: auto; bottom: calc(62px + env(safe-area-inset-bottom)); width: auto; max-height: 62dvh; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding: 16px; z-index: 8; }
  .notice-bar { display: flex; top: calc(116px + env(safe-area-inset-top)); max-width: calc(100vw - 24px); height: 32px; font-size: 12.5px; }
  .meet-ring { top: calc(156px + env(safe-area-inset-top)); width: max-content; max-width: calc(100vw - 24px); padding: 8px 8px 8px 14px; font-size: 13px; }
  .checkin { left: 12px; right: 12px; top: calc(116px + env(safe-area-inset-top)); padding: 12px 14px; gap: 12px; }
  .checkin .seal.big { width: 52px; height: 52px; font-size: 17px; }
  .meet { inset: calc(110px + env(safe-area-inset-top)) 8px calc(70px + env(safe-area-inset-bottom)) 8px; padding: 10px; gap: 10px; }
  .meet-grid, .meet-grid.n2 { grid-template-columns: 1fr; }
  .meet-grid.n3, .meet-grid.n4, .meet-grid.n5, .meet-grid.n6, .meet-grid.n7, .meet-grid.n8, .meet-grid.n9 { grid-template-columns: repeat(2, 1fr); }
  .meet-tile .big { font-size: 34px; }
  .meet.mini { inset: auto 8px calc(70px + env(safe-area-inset-bottom)) auto; width: 190px; height: 170px; }
  .meet.mini .meet-bar .btn { height: 34px; padding: 0 10px; font-size: 12px; }
  .meet.mini .meet-bar { gap: 4px; }
  .meet.mini .meet-bar .hud-btn { width: 32px; height: 32px; }
  .table-wrap { overflow-x: auto; }
  .stack > *, .cols > *, .card { min-width: 0; }
  input[type="file"] { max-width: 100%; min-width: 0; }
  .conn-grid > *, .conn > *, .conn .form > * { min-width: 0; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar, .emps::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .wb-back { padding: 0; }
  .wb { width: 100%; height: 100dvh; align-content: start; border: 0; border-radius: 0; padding: calc(12px + env(safe-area-inset-top)) 10px 10px; }
  .wb-head .dim { display: none; }
  .wb-tools { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .wb-tools > * { flex: none; }
  .wb-tools .spacer { display: none; }
  .wb-stage canvas { max-height: none; }
  .chat-head { padding: calc(16px + env(safe-area-inset-top)) 18px 12px; }
  .chat-head h2 { font-size: 24px; }
  .chat-body { padding: 18px 18px 8px; }

  /* career */
  .career-back { padding: 0; }
  .career, .career.docs { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .career.card { display: block; overflow-y: auto; }
  .career-side { width: auto; padding: calc(52px + env(safe-area-inset-top)) 18px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .idcard { width: 100%; max-width: 320px; margin: 0 auto; }
  .gains { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .gains-title { grid-column: 1 / -1; }
  .career.card .career-tabs { position: sticky; top: 0; z-index: 2; background: var(--bg-1); overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
  .career.card .career-tabs > button { flex: none; }
  .career.card .career-tabs .spacer { display: none; }
  .career.card .career-tabs .chat-close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 3; background: rgba(0, 0, 0, 0.6); color: #fff; width: 36px; height: 36px; border-radius: 50%; }
  .career.card .career-body { overflow: visible; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
  .career.docs .career-tabs { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; overflow-x: auto; }
  .career.docs .career-tabs > * { flex: none; }
  .career.docs .career-tabs > button:not(.btn):not(.chat-close):not(.link) { padding: 0 10px; font-size: 13px; }
  .career.docs .career-body { padding: 14px 12px calc(20px + env(safe-area-inset-bottom)); }
  .rung { padding: 8px 10px 8px 6px; gap: 10px; }
  .rung-side small { display: none; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .doc-row { flex-wrap: wrap; gap: 8px 10px; padding: 12px; }
  .doc-row > div:nth-child(2) { flex: 1 1 60%; }
  .doc-row .spacer { display: none; }
  .sheet { padding: 20px 16px 24px; }
  .sheet header { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .sheet h2 { font-size: 24px; padding-top: 0; }
  .signs { align-self: flex-end; max-width: 100%; }
  .sign { width: 62px; }
  .sheet dl { grid-template-columns: 78px 1fr; }
  .decide .row { flex-wrap: wrap; }
  .decide .row .spacer { display: none; }
  .decide .row .btn { flex: 1 1 auto; justify-content: center; }
  .promo { padding: 26px 22px 22px; }
  .promo-photo { width: 120px; height: 120px; }
  .promo-photo canvas { width: 120px !important; height: 120px !important; }
}

/* ───────── floating AI assistant ───────── */
.assist-fab { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 56px; background: linear-gradient(180deg, #1c1c20, #0f0f11); color: #fff; font: inherit; font-weight: 800; font-size: 14.5px; letter-spacing: -0.02em; cursor: pointer; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform 0.35s var(--ease), opacity 0.25s, box-shadow 0.3s; animation: fab-in 0.6s 0.4s var(--ease) both; }
.assist-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.assist-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.assist-fab.hidden-fab { opacity: 0; transform: scale(0.8) translateY(10px); pointer-events: none; }
.assist-fab-face { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #ffffff, #d9d9de); display: grid; place-items: center; overflow: hidden; flex: none; }
.assist-fab-face img { width: 40px; height: auto; margin-top: 8px; }
.assist-fab-dot { position: absolute; top: 6px; left: 38px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #121214; animation: ping 2s infinite; }
@keyframes fab-in { from { opacity: 0; transform: translateY(18px) scale(0.9); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 77, 46, 0); } }
body:has(.office.has-detail) .assist-fab, html.assist-open body:has(.modal-back) .assist-panel { display: none; }

.assist-panel { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; width: 392px; height: min(640px, calc(100vh - 48px)); display: flex; flex-direction: column; background: #0c0c0e; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(16px) scale(0.97); transform-origin: bottom right; pointer-events: none; visibility: hidden; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s; }
.assist-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s; }
.assist-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 77, 46, 0.16), transparent 55%), linear-gradient(180deg, #17171a, #0c0c0e); }
.assist-avatar { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #ffffff, #d4d4da); }
.assist-avatar img { width: 100%; height: auto; margin-top: 22%; }
.assist-who { flex: 1; min-width: 0; }
.assist-who b { display: flex; align-items: center; gap: 7px; font-size: 16.5px; letter-spacing: -0.03em; }
.assist-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #fff; }
.assist-who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assist-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.assist-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--text-2); cursor: pointer; }
.assist-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.assist-x svg { width: 18px; height: 18px; }
.assist-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 14px; padding: 4px; border-radius: 12px; background: #151518; border: 1px solid var(--line); }
.assist-tabs button { height: 34px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.assist-tabs button.on { background: #fff; color: #000; }
.assist-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.assist-log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; display: grid; align-content: start; gap: 14px; overscroll-behavior: contain; }
.assist-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; }
.assist-msg.bot > .assist-avatar { margin-top: 2px; }
.assist-msg > div { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.assist-msg p { margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.assist-msg.bot p { background: #1a1a1e; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: rgba(255, 255, 255, 0.9); }
.assist-msg.me { justify-content: flex-end; }
.assist-msg.me p { max-width: 82%; background: #fff; color: #000; border-bottom-right-radius: 6px; font-weight: 500; }
.assist-cta { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 28px; background: none; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.assist-cta:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.assist-cta svg { width: 14px; height: 14px; }
.assist-typing { display: inline-flex !important; gap: 4px; padding: 14px 16px !important; }
.assist-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: typing 1.1s infinite; }
.assist-typing i:nth-child(2) { animation-delay: 0.15s; } .assist-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.assist-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.assist-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 32px; background: #121215; color: rgba(255, 255, 255, 0.85); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.18s; }
.assist-chips button:hover { background: #fff; color: #000; border-color: #fff; }
.assist-input { display: flex; align-items: center; gap: 8px; margin: 8px 12px 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 18px; background: #131316; transition: border-color 0.2s; }
.assist-input:focus-within { border-color: rgba(255, 255, 255, 0.4); }
.assist-input textarea { flex: 1; min-width: 0; min-height: 0; resize: none; border: 0; outline: 0; background: none; padding: 8px 0; height: 38px; max-height: 120px; font: inherit; font-size: 14.5px; line-height: 1.5; color: #fff; box-shadow: none; }
.assist-send { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--accent); color: #fff; cursor: pointer; transition: transform 0.15s, opacity 0.2s; }
.assist-send:hover { transform: translateY(-1px); }
.assist-send:disabled { opacity: 0.45; cursor: default; transform: none; }
.assist-send svg { width: 18px; height: 18px; }
.assist-foot { display: flex; justify-content: center; padding: 0 0 10px; }
.assist-form { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 14px; display: grid; gap: 12px; align-content: start; overscroll-behavior: contain; }
.assist-lead { font-size: 13px; color: var(--text-2); }
.assist-lead b { color: #fff; }
.assist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assist-field { display: grid; gap: 5px; min-width: 0; }
.assist-field > span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.assist-field em { font-style: normal; font-weight: 500; color: var(--text-3); margin-left: 5px; }
.assist-field input, .assist-field textarea { width: 100%; }
.assist-field textarea { resize: vertical; min-height: 104px; }
.assist-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.assist-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.assist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.assist-err { color: var(--err); font-size: 13px; min-height: 0; }
.assist-err:empty { display: none; }
.assist-submit { width: 100%; justify-content: center; height: 46px; }
.assist-note { font-size: 11.5px; color: var(--text-3); text-align: center; }
.assist-note a { text-decoration: underline; text-underline-offset: 2px; }
.assist-done { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px 28px; text-align: center; }
.assist-done-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(61, 220, 151, 0.14); color: var(--ok); margin-bottom: 6px; animation: thump-in 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.assist-done-ico svg { width: 30px; height: 30px; }
@keyframes thump-in { from { transform: scale(0.4); opacity: 0; } }
.assist-done b { font-size: 19px; }
.assist-done p { color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
@media (max-width: 760px) {
  .assist-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 56px; width: 56px; padding: 0; justify-content: center; }
  .assist-fab-label { display: none; }
  .assist-fab-face { width: 44px; height: 44px; }
  .assist-fab-face img { width: 44px; }
  .assist-fab-dot { left: auto; right: 4px; top: 4px; }
  .assist-panel { inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; transform-origin: bottom center; transform: translateY(24px); }
  .assist-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .assist-input { margin-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .assist-foot { display: none; }
  .assist-row { grid-template-columns: 1fr; }
  html.assist-open, html.assist-open body { overflow: hidden; }
  .auth-form { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .bizfoot-in { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .assist-fab-dot { animation: none; } }
