/* 맑은벽 관제(가상) · 외벽청소로봇 운영 대시보드 시연 · 청사진 바탕 위의 관제 */
:root {
  --bg: #1B4A96;
  --bg-deep: #163E80;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --text: #0F1E33;
  --muted: #5A6B82;
  --muted-blue: #C9DAF2;
  --line: #C7D2E0;
  --primary: #FF6A1A;
  --primary-dark: #D9530F;
  --primary-ink: #1A1206;
  --accent: #0C2E63;
  --accent-soft: #E6EDF7;
  --ok: #1B8A5A;
  --ok-soft: #E3F3EB;
  --warn: #B26A00;
  --warn-soft: #FBF0DC;
  --danger: #D42A20;
  --danger-soft: #FDE7E5;
  --done: #D6E4F7;
  --hatch: rgba(255, 190, 92, .92);
  --body: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fa {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 24px 24px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
:where(.fa) button, :where(.fa) input, :where(.fa) select { font: inherit; color: inherit; }
:where(.fa) button { cursor: pointer; }
.fa :focus-visible { outline: 3px solid #FFC59E; outline-offset: 2px; }
.fa [hidden] { display: none !important; }
.fa-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
/* 한글이 섞인 수치는 본문 서체의 고정폭 숫자로 씁니다(B612 Mono 는 한글이 없어 띄어 보입니다) */
.fa-robot__rx, .fa-robot__pos, .fa-robot__prog .mono, .fa-robot__dev dd, .fa-elev__dimtext, .fa-bot__tag, .fa-plan__meta,
.fa-elev__vdim span, .fa-wind__src .mono, .fa-wind__mark .mono, .fa-brush button, .fa-table .mono, .fa-a4 .mono, .fa-tag.mono,
.fa-reflect .mono, .fa-quote .mono, .fa-proj__prog .mono, .fa-facts .mono { font-family: var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.fa-muted { color: var(--muted); }
.fa-small { font-size: 12.5px; margin: 8px 0 0; }

/* 안내 띠 · 틀 */
.fa-band { height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 10px; background: var(--accent); color: var(--muted-blue); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.fa-shell { display: block; }
.fa-main { min-width: 0; padding: 0 12px 16px; }

.fa-side { background: var(--accent); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.fa-brand { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; color: #fff; text-decoration: none; }
.fa-brand__mark { width: 28px; height: 28px; flex: none; }
.fa-brand__name { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.fa-nav { display: flex; gap: 2px; overflow-x: auto; padding: 0 8px 8px; scrollbar-width: none; }
.fa-nav::-webkit-scrollbar { display: none; }
.fa-nav__item { display: flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 6px 10px; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 13.5px; font-weight: 600; border-radius: var(--r); white-space: nowrap; }
.fa-nav__item svg { flex: none; opacity: .85; }
.fa-nav__item.is-on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -3px 0 var(--primary); }
.fa-nav__item.is-group { color: #fff; }
.fa-nav__item.is-off { opacity: .45; cursor: default; }
.fa-nav__item small { display: none; }
.fa-side__report { display: none; }

/* 머리말 */
.fa-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0 6px; }
.fa-top__title { min-width: 0; }
.fa-top__crumb { margin: 0; font-size: 12px; color: var(--muted-blue); }
.fa-top__h1 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.fa-top__tools { display: flex; align-items: center; gap: 8px; width: 100%; }
.fa-role { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.fa-role__label { font-size: 12px; color: var(--muted-blue); flex: none; }
.fa-role__select { flex: 1; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); background: var(--surface); color: var(--accent) !important; font-weight: 700; font-size: 13px; }
.fa-icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 36px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); background: transparent; color: #fff; flex: none; }
.fa-bell__n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--bg); }
.fa-bell-wrap { position: relative; }
.fa-pop { position: absolute; right: -48px; top: calc(100% + 8px); z-index: 40; width: min(340px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(6, 20, 45, .35); padding: 10px; }
.fa-pop__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fa-mocknote { margin: 0 0 8px; padding: 4px 10px; border-left: 3px solid var(--primary); background: rgba(12, 46, 99, .45); color: var(--muted-blue); font-size: 12.5px; }

/* 버튼 */
.fa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--accent); font-size: 13.5px; font-weight: 700; text-decoration: none; position: relative; }
.fa-btn:hover:not(:disabled) { border-color: var(--accent); }
.fa-btn:disabled { opacity: .42; cursor: not-allowed; }
.fa-btn--primary { background: var(--primary); border-color: var(--primary-dark); color: var(--primary-ink); }
.fa-btn--primary:hover:not(:disabled) { border-color: var(--primary-ink); }
.fa-btn--dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.fa-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.fa-btn--ghost span { display: none; }
.fa-btn--sm { min-height: 30px; padding: 3px 8px; font-size: 12.5px; }
.fa-btn--block { width: 100%; min-height: 44px; font-size: 15px; }
.fa-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.fa-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.fa-tag--warn { border-color: #E9C98E; background: var(--warn-soft); color: var(--warn); }
.fa-select { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text) !important; font-size: 13.5px; max-width: 100%; }
.fa-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.fa-seg button { min-height: 34px; padding: 4px 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--accent); font-weight: 700; font-size: 13px; }
.fa-seg button:last-child { border-right: 0; }
.fa-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.fa-seg--sm button { min-height: 30px; padding: 2px 10px; }

/* 패널 */
.fa-panel { background: var(--surface); color: var(--text); border: 1px solid #9DB4D6; border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.fa-panel__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 6px; }
.fa-panel__head h2 { margin: 0; font-size: 14.5px; letter-spacing: -.01em; color: var(--accent); }
.fa-panel__more { margin-left: auto; }
.fa-panel__lead { margin: -2px 0 10px; font-size: 13px; }
.fa-note { font-size: 12.5px; margin: 10px 0 0; }
.fa-empty-li { list-style: none; padding: 10px 0; color: var(--muted); font-size: 13px; }

/* 시연 조작 줄 */
.fa-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; padding: 5px 8px; border: 1px dashed rgba(255, 255, 255, .55); border-radius: var(--r); background: rgba(12, 46, 99, .35); }
.fa-demo__label { font-size: 11.5px; font-weight: 800; color: var(--primary); letter-spacing: .02em; padding-right: 4px; }
.fa-chip { min-height: 30px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--r); background: transparent; color: #fff; font-size: 12.5px; font-weight: 700; }
.fa-chip[aria-pressed="true"] { background: #fff; color: var(--accent); }
.fa-demo .fa-seg { background: transparent; border-color: rgba(255, 255, 255, .55); }
.fa-demo .fa-seg button { color: #fff; border-color: rgba(255, 255, 255, .55); }
.fa-demo .fa-seg button[aria-pressed="true"] { background: #fff; color: var(--accent); }
.fa-demo__clock { margin-left: auto; font-size: 12px; color: var(--muted-blue); }
.fa-demo__clock b { color: #fff; font-size: 13px; letter-spacing: -.08em; }

/* 관제 배치 */
.fa-con { display: flex; flex-direction: column; gap: 10px; }
.fa-con__col { display: contents; }
.fa-con__elev { order: 1; }
.fa-ctrl { order: 2; }
.fa-con__robots { order: 3; }
.fa-cam { order: 4; }
.fa-wind { order: 5; }
.fa-cmds { order: 6; }
.fa-alertbox { order: 7; }

/* 입면도(청사진) */
.fa-plan { border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r); padding: 10px; background: rgba(12, 46, 99, .28); color: #fff; min-width: 0; }
.fa-plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fa-plan__head h2 { margin: 0; font-size: 14.5px; }
.fa-plan__meta { font-size: 11px; color: var(--muted-blue); }
.fa-elev { position: relative; --lab: 20px; }
.fa-elev__top { padding: 0 var(--lab); }
.fa-elev__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 9.5px; color: var(--muted-blue); text-align: center; margin-bottom: 2px; }
.fa-elev__body { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--lab); }
.fa-elev__floors { display: grid; grid-template-rows: repeat(18, minmax(0, 1fr)); font-size: 9.5px; color: var(--muted-blue); text-align: right; padding-right: 4px; }
.fa-elev__floors span { display: flex; align-items: center; justify-content: flex-end; }
.fa-elev__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(18, minmax(0, 1fr)); aspect-ratio: 48 / 46; border: 2px solid #fff; border-bottom-width: 0; background: rgba(27, 74, 150, .4); }
.fa-cell { display: block; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-right: 1px solid rgba(255, 255, 255, .3); border-bottom: 1px solid rgba(255, 255, 255, .3); background: transparent; appearance: none; -webkit-appearance: none; position: relative; }
.fa-cell:nth-child(12n) { border-right: 0; }
.fa-cell[data-st="done"], .fa-sw[data-st="done"] { background: var(--done); }
.fa-cell[data-st="doing"], .fa-sw[data-st="doing"] { background: var(--primary); }
.fa-cell[data-st="todo"], .fa-sw[data-st="todo"] { background: transparent; }
.fa-cell[data-st="manual"], .fa-sw[data-st="manual"] { background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px); }
.fa-cell[data-st="excluded"], .fa-sw[data-st="excluded"] { background-color: rgba(8, 28, 62, .75); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 5px); }
.fa-elev__vdim { position: relative; margin-left: 6px; border-left: 1px solid rgba(255, 255, 255, .7); }
.fa-elev__vdim::before, .fa-elev__vdim::after { content: ""; position: absolute; left: -5px; width: 9px; border-top: 1px solid rgba(255, 255, 255, .7); }
.fa-elev__vdim::before { top: 0; }
.fa-elev__vdim::after { bottom: 0; }
.fa-elev__vdim span { position: absolute; top: 50%; left: 2px; transform: translateY(-50%) rotate(90deg); transform-origin: 0 50%; white-space: nowrap; font-size: 10px; color: var(--muted-blue); margin-left: 6px; }
.fa-elev__ground { position: relative; margin: 0 var(--lab); height: 16px; border-top: 3px solid #fff; }
.fa-elev__ground::before { content: ""; position: absolute; left: -14px; right: -14px; top: -3px; border-top: 1px solid rgba(255, 255, 255, .5); }
.fa-elev__door { position: absolute; left: 33.333%; width: 33.333%; top: 1px; text-align: center; font-size: 10px; color: var(--muted-blue); }
.fa-elev__dim { position: relative; margin: 2px var(--lab) 0; height: 26px; display: flex; align-items: center; justify-content: center; }
.fa-elev__dimline { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(255, 255, 255, .75); }
.fa-elev__dimline::before, .fa-elev__dimline::after { content: ""; position: absolute; top: -6px; height: 11px; border-left: 1px solid rgba(255, 255, 255, .75); }
.fa-elev__dimline::before { left: 0; }
.fa-elev__dimline::after { right: 0; }
.fa-elev__dimtext { position: relative; padding: 1px 8px; background: var(--bg-deep); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* 낙하물 통제 구역(6·7열) */
.fa-danger-band { position: absolute; left: 41.667%; width: 16.667%; top: 0; bottom: 5.556%; border: 2px dashed #FF9A90; pointer-events: none; z-index: 1; }
.fa-danger-band span { position: absolute; left: 50%; top: -1px; transform: translate(-50%, -100%); padding: 0 4px; background: #FF9A90; color: var(--primary-ink); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.fa-elev--console .fa-danger-band span { display: none; }

/* 로봇 표식 */
.fa-bot { position: absolute; left: var(--x); top: var(--y); width: 7%; aspect-ratio: 1; transform: translate(-50%, -50%); transition: top .2s linear, left .9s ease; z-index: 3; pointer-events: none; }
.fa-bot__body { display: block; width: 100%; height: 100%; background: var(--primary); border: 2px solid var(--primary-ink); box-shadow: 0 0 0 2px #fff; }
.fa-bot__tag { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 1px 5px; background: #fff; color: var(--accent); border: 1px solid var(--accent); font-size: 10.5px; font-weight: 700; }
.fa-bot.is-left .fa-bot__tag { left: auto; right: calc(100% + 6px); }
.fa-bot[data-st="idle"] .fa-bot__body, .fa-bot[data-st="move"] .fa-bot__body { background: #FFC9A8; }
.fa-bot[data-st="stop"] .fa-bot__body { background: var(--danger); border-color: #fff; box-shadow: 0 0 0 2px var(--danger), 0 0 0 5px rgba(255, 255, 255, .85); }
.fa-bot[data-st="stop"] .fa-bot__tag { background: var(--danger); color: #fff; border-color: var(--danger); }
.fa-bot[data-st="error"] .fa-bot__body { background: #FFD84D; border-color: var(--danger); }
.fa-bot[data-st="error"] .fa-bot__tag { border-color: var(--danger); color: var(--danger); }
.fa-bot:not([data-link="ok"]) .fa-bot__body { border-style: dashed; opacity: .6; }
.fa-bot:not([data-link="ok"]) .fa-bot__tag { background: #E9EEF5; color: var(--muted); border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .fa-bot { transition: none; } }

/* 범례 */
.fa-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted-blue); }
.fa-legend li { display: inline-flex; align-items: center; gap: 5px; }
.fa-legend__note { color: #fff; opacity: .7; }
.fa-sw { display: inline-block; width: 18px; height: 13px; border: 1px solid rgba(255, 255, 255, .8); flex: none; }

/* 로봇 카드 */
.fa-con__robots { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.fa-con__devnote { grid-column: 1 / -1; margin: -4px 0 0; font-size: 11.5px; color: var(--muted-blue); }
.fa-robot { background: var(--surface); color: var(--text); border: 1px solid #9DB4D6; border-top: 4px solid var(--ok); border-radius: var(--r); padding: 8px 12px 10px; min-width: 0; }
.fa-robot:not([data-link="ok"]) .fa-robot__prog { display: none; }
.fa-robot.is-sel { box-shadow: 0 0 0 2px var(--primary); }
.fa-robot__head { display: flex; align-items: center; gap: 8px; }
.fa-robot__name { font-size: 16px; color: var(--accent); }
.fa-link-pill { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid #A9D7BF; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; border-radius: var(--r); }
.fa-link-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fa-robot__rx { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.fa-robot__state { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 2px; }
.fa-state { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.fa-robot__sub { font-size: 12px; color: var(--muted); }
.fa-robot__pos { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.fa-robot__prog { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; font-size: 12px; color: var(--muted); }
.fa-robot__prog .mono { text-align: right; color: var(--text); font-weight: 700; }
.fa-bar { grid-column: 1 / -1; display: block; height: 6px; background: var(--accent-soft); border: 1px solid var(--line); }
.fa-bar b { display: block; height: 100%; background: var(--accent); }
.fa-robot__dev { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 6px 0 0; }
.fa-robot__stale { order: -1; }
.fa-robot__dev div { display: flex; flex-direction: column; padding: 3px 5px; background: var(--surface-2); border: 1px solid #E0E7F0; min-width: 0; }
.fa-robot__dev dt { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-robot__dev dd { margin: 0; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--accent); }
.fa-robot__stale { margin: 0; padding: 3px 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 700; border-left: 3px solid var(--danger); }
.fa-robot[data-st="clean"] .fa-state { color: var(--primary-dark); }
.fa-robot[data-st="stop"] { border-top-color: var(--danger); }
.fa-robot[data-st="stop"] .fa-state { color: var(--danger); }
.fa-robot[data-st="error"] { border-top-color: var(--danger); }
.fa-robot[data-st="error"] .fa-state { color: var(--danger); }
.fa-robot[data-link="delay"] { border-top-color: var(--warn); }
.fa-robot[data-link="delay"] .fa-link-pill { border-color: #E9C98E; background: var(--warn-soft); color: var(--warn); }
.fa-robot[data-link="offline"] { border-top-color: var(--danger); border-top-style: dashed; }
.fa-robot[data-link="offline"] .fa-link-pill { border-color: #F2B3AE; background: var(--danger-soft); color: var(--danger); }
.fa-robot:not([data-link="ok"]) .fa-robot__state, .fa-robot:not([data-link="ok"]) .fa-robot__prog, .fa-robot:not([data-link="ok"]) .fa-robot__dev { opacity: .45; }
.fa-robot:not([data-link="ok"]) .fa-robot__rx { color: var(--danger); font-weight: 700; }

/* 카메라 · 풍속 */
.fa-cam__screen { position: relative; aspect-ratio: 16 / 7; background: #24344A; border: 1px solid var(--accent); overflow: hidden; }
.fa-cam__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fa-cam__osd { position: absolute; left: 8px; bottom: 6px; padding: 0 5px; background: rgba(12, 46, 99, .75); color: #fff; font-size: 10.5px; }
.fa-cam__lost { position: absolute; inset: auto 8px 50% 8px; transform: translateY(50%); text-align: center; padding: 4px 8px; background: var(--danger); color: #fff; font-size: 12.5px; font-weight: 800; }
.fa-wind__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.fa-wind__val { display: flex; align-items: baseline; gap: 4px; }
.fa-wind__val b { font-size: 32px; line-height: 1; color: var(--accent); letter-spacing: -.06em; }
.fa-wind__unit { font-size: 13px; color: var(--muted); font-weight: 700; }
.fa-wind__state { margin-left: auto; padding: 0 8px; font-size: 12.5px; font-weight: 800; border: 1px solid #A9D7BF; color: var(--ok); background: var(--ok-soft); }
.fa-wind[data-level="caution"] .fa-wind__state { color: var(--warn); border-color: #E9C98E; background: var(--warn-soft); }
.fa-wind[data-level="stop"] .fa-wind__state { color: #fff; border-color: var(--danger); background: var(--danger); }
.fa-wind[data-level="stop"] .fa-wind__val b { color: var(--danger); }
.fa-wind__bar { position: relative; height: 10px; margin: 0 0 16px; background: var(--accent-soft); border: 1px solid var(--line); }
.fa-wind__bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.fa-wind[data-level="caution"] .fa-wind__bar i { background: var(--warn); }
.fa-wind[data-level="stop"] .fa-wind__bar i { background: var(--danger); }
.fa-wind__mark { position: absolute; top: -4px; bottom: -4px; border-left: 2px solid var(--warn); }
.fa-wind__mark.is-stop { border-left-color: var(--danger); }
.fa-wind__mark span { position: absolute; top: calc(100% + 1px); left: -3px; transform: translateX(-100%); font-size: 10px; color: var(--warn); white-space: nowrap; font-weight: 700; }
.fa-wind__mark.is-stop span { color: var(--danger); left: 1px; transform: none; }
.fa-wind__src { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.fa-wind__advice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; padding: 4px 8px; background: var(--danger-soft); color: var(--danger); font-weight: 800; font-size: 12.5px; }
.fa-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; font-weight: 600; }
.fa-switch input { width: 16px; height: 16px; accent-color: var(--accent); }

/* 제어 패널 */
.fa-ctrl { border-color: var(--accent); }
.fa-ctrl__owner { margin-left: auto; font-size: 12px; color: var(--muted); }
.fa-ctrl__owner b { color: var(--accent); }
.fa-ctrl__body { display: flex; gap: 10px; align-items: stretch; }
.fa-ctrl__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fa-p { font-style: normal; margin: 0 -.1em; }
.fa-ctrl__btns { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; min-width: 0; }
.fa-ctrl__pre { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); padding: 0 4px; background: var(--warn); color: #fff; font-size: 10px; white-space: nowrap; }
.fa-brush { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fa-brush > span { padding: 0 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.fa-brush button { min-height: 36px; padding: 0 9px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--accent); font-weight: 700; font-size: 12.5px; }
.fa-brush button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.fa-brush button:disabled { opacity: .42; cursor: not-allowed; }
.fa-estop { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 6px 12px; border: 3px solid #7A0F0A; border-radius: var(--r); background: var(--danger); color: #fff; box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(6, 20, 45, .4); }
.fa-estop__label { font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.fa-estop__sub { font-size: 11.5px; font-weight: 700; opacity: .92; }
.fa-estop:active { transform: translateY(1px); }
.fa-ctrl__lock { display: flex; gap: 6px; margin: 0; padding: 5px 8px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; border-left: 3px solid var(--accent); }
.fa-ctrl__lock::before { content: "잠김"; flex: none; padding: 0 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; height: 18px; line-height: 18px; }
.fa-ctrl__lock[data-kind="warn"] { background: var(--warn-soft); color: var(--warn); border-left-color: var(--warn); }
.fa-ctrl__lock[data-kind="warn"]::before { content: "주의"; background: var(--warn); }
.fa-release { margin-top: 8px; padding: 6px 8px; border: 2px solid var(--danger); background: var(--danger-soft); }
.fa-release__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fa-release__row strong { color: var(--danger); font-size: 14px; flex: none; }
.fa-release__row .fa-select { flex: 1; min-width: 120px; }
.fa-release__note { margin: 4px 0 0; font-size: 12px; color: var(--text); line-height: 1.45; }
.fa-ctrl__foot { margin: auto 0 0; font-size: 11.5px; color: var(--muted); }

/* 명령 기록 */
.fa-cmdlist, .fa-alerts { margin: 0; padding: 0; list-style: none; }
.fa-cmd { padding: 7px 0; border-top: 1px solid var(--line); }
.fa-cmd:first-child { border-top: 0; padding-top: 0; }
.fa-cmd__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fa-cmd__t { font-size: 11.5px; color: var(--muted); }
.fa-cmd__r { font-size: 12.5px; color: var(--accent); }
.fa-cmd__name { font-size: 13.5px; }
.fa-cmd[data-level="danger"] .fa-cmd__name { color: var(--danger); }
.fa-cmd__by { margin-left: auto; font-size: 12px; color: var(--muted); }
.fa-cmd__note { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.fa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 4px 0 0; padding: 0; list-style: none; }
.fa-steps li { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 24px; padding: 2px 6px; background: #F0F3F7; border: 1px dashed #B9C6D6; color: var(--muted); font-size: 11.5px; font-weight: 600; min-width: 0; }
.fa-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-steps li b { font-size: 11.5px; white-space: nowrap; }
.fa-steps li.is-on { background: var(--accent-soft); border: 1px solid #9DB4D6; color: var(--accent); }
.fa-steps li.is-ok { background: var(--ok-soft); border-color: #A9D7BF; color: var(--ok); }
.fa-steps li.is-stop { background: var(--danger); border-color: var(--danger); color: #fff; }
.fa-steps li.is-bad { background: var(--danger-soft); border-color: #F2B3AE; color: var(--danger); }
.fa-steps li.is-wide { grid-column: span 2; }
.fa-steps li.is-bad.is-wide:first-child { grid-column: 1 / -1; }

/* 알림 */
.fa-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 6px 0 6px 8px; border-top: 1px solid var(--line); border-left: 3px solid var(--accent); margin-top: -1px; }
.fa-alert:first-child { border-top: 0; }
.fa-alert[data-level="warn"] { border-left-color: var(--warn); }
.fa-alert[data-level="danger"] { border-left-color: var(--danger); }
.fa-alert[data-level="ok"] { border-left-color: var(--ok); }
.fa-alert[data-unread] { background: #FFF8F2; }
.fa-alert__t { font-size: 11.5px; color: var(--muted); padding-top: 1px; }
.fa-alert__body { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; }
.fa-alert__body b { font-size: 13px; }
.fa-alert[data-level="danger"] .fa-alert__body b { color: var(--danger); }
.fa-alert[data-level="warn"] .fa-alert__body b { color: var(--warn); }
.fa-alert__body span { color: var(--muted); }
.fa-alert__closed { font-style: normal; color: var(--ok); font-weight: 700; font-size: 12px; }
.fa-alerts--pop { max-height: 360px; overflow-y: auto; }

/* 작업구역 */
.fa-zones__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fa-faces { display: flex; flex-wrap: wrap; gap: 4px; }
.fa-face { min-height: 34px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); background: transparent; color: #fff; font-weight: 700; font-size: 13px; }
.fa-face small { font-weight: 600; font-size: 11px; color: var(--muted-blue); }
.fa-face[aria-selected="true"] { background: #fff; color: var(--accent); }
.fa-face[aria-selected="true"] small { color: var(--ok); }
.fa-views { max-width: 100%; }
.fa-views button { padding: 4px 10px; }
.fa-zones__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fa-zones__side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.fa-zones__empty h2 { margin: 0 0 6px; color: var(--accent); }
.fa-elev--zones .fa-cell { cursor: pointer; }
.fa-elev--zones .fa-cell:hover { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -2px; z-index: 2; }
.fa-cell.is-sel { outline: 3px solid #fff; outline-offset: -2px; box-shadow: inset 0 0 0 4px var(--primary); z-index: 2; }
.fa-elev--zones:not([data-view="danger"]) .fa-danger-band { display: none; }

/* 보기 전환: 색과 무늬·글자를 함께 씁니다 */
.fa-elev[data-view="method"] .fa-cell[data-m="robot"], .fa-sw[data-m="robot"] { background: var(--done); }
.fa-elev[data-view="method"] .fa-cell[data-m="manual"], .fa-sw[data-m="manual"] { background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px); }
.fa-elev[data-view="method"] .fa-cell[data-m="manual"][data-d="high"], .fa-sw[data-m="manual"][data-d="high"] { background: repeating-linear-gradient(135deg, #FF9A3C 0 3px, rgba(255, 154, 60, .25) 3px 5px); }
.fa-elev[data-view="method"] .fa-cell[data-m="excluded"], .fa-sw[data-m="excluded"] { background-color: rgba(8, 28, 62, .75); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 5px); }
.fa-elev[data-view="soil"] .fa-cell, .fa-elev[data-view="ob"] .fa-cell, .fa-elev[data-view="danger"] .fa-cell { background: transparent; }
.fa-elev[data-view="soil"] .fa-cell[data-soil="1"], .fa-sw[data-soil="1"] { background: radial-gradient(circle, rgba(255, 214, 160, .95) 1px, transparent 1.5px) 0 0 / 8px 8px; }
.fa-elev[data-view="soil"] .fa-cell[data-soil="2"], .fa-sw[data-soil="2"] { background: radial-gradient(circle, rgba(255, 214, 160, .95) 1.3px, transparent 1.8px) 0 0 / 5px 5px; }
.fa-elev[data-view="soil"] .fa-cell[data-soil="3"], .fa-sw[data-soil="3"] { background: radial-gradient(circle, rgba(255, 190, 120, 1) 1.6px, transparent 2px) 0 0 / 4px 4px, rgba(255, 150, 70, .35); }
.fa-elev[data-view="ob"] .fa-cell[data-ob], .fa-sw[data-ob] { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px #FFD199; }
.fa-elev[data-view="ob"] .fa-cell[data-ob]::after, .fa-sw[data-ob]::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 1; }
.fa-sw[data-ob] { position: relative; }
.fa-elev[data-view="ob"] .fa-cell[data-ob="sign"]::after, .fa-sw[data-ob="sign"]::after { content: "간"; }
.fa-elev[data-view="ob"] .fa-cell[data-ob="vent"]::after, .fa-sw[data-ob="vent"]::after { content: "환"; }
.fa-elev[data-view="ob"] .fa-cell[data-ob="window"]::after, .fa-sw[data-ob="window"]::after { content: "창"; }
.fa-elev[data-view="danger"] .fa-cell[data-danger], .fa-sw[data-danger] { background: repeating-linear-gradient(45deg, rgba(255, 130, 118, .85) 0 2px, transparent 2px 6px); }

/* 칸 상세 · 합계 */
.fa-kv { margin: 0; display: grid; gap: 0; }
.fa-kv div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #E4EAF2; }
.fa-kv dt { font-size: 12.5px; color: var(--muted); }
.fa-kv dd { margin: 0; font-size: 13.5px; font-weight: 600; min-width: 0; }
.fa-kv .fa-select { width: 100%; }
.fa-soil { display: inline-block; padding: 0 7px; border: 1px solid var(--line); font-size: 12.5px; }
.fa-soil[data-soil="3"] { border-color: #E9C98E; background: var(--warn-soft); color: var(--warn); }
.fa-danger-tag { display: inline-block; padding: 0 7px; border: 1px solid #F2B3AE; background: var(--danger-soft); color: var(--danger); font-size: 12.5px; font-weight: 700; }
.fa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fa-table th, .fa-table td { padding: 6px 8px; border-bottom: 1px solid #E4EAF2; text-align: left; vertical-align: top; }
.fa-table thead th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fa-table--num td.mono { text-align: right; white-space: nowrap; }
.fa-table--num thead th:not(:first-child) { text-align: right; }
.fa-table tr.is-sub th { padding-left: 22px; font-weight: 500; color: var(--muted); }
.fa-table tr.is-total th, .fa-table tr.is-total td { font-weight: 800; border-top: 2px solid var(--accent); }
.fa-table tr.is-done th, .fa-table tr.is-done td { color: var(--ok); font-weight: 700; }
.fa-table-wrap { min-width: 0; }
.fa-reflect { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--accent); background: var(--accent-soft); }
.fa-reflect__label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--accent); }
.fa-reflect__row { display: flex; justify-content: space-between; margin: 0; font-size: 13px; }
.fa-reflect__row.is-total { margin: 2px 0 6px; padding-top: 3px; border-top: 1px solid #9DB4D6; font-weight: 800; }

/* 프로젝트 */
.fa-proj { display: grid; gap: 10px; }
.fa-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; margin: 0 0 10px; }
.fa-facts div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.fa-facts dt { font-size: 12.5px; color: var(--muted); }
.fa-facts dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.fa-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.fa-stage { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.fa-stage__n { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; font-size: 11px; flex: none; }
.fa-stage.is-done { color: var(--accent); background: var(--accent-soft); border-color: #9DB4D6; }
.fa-stage.is-done .fa-stage__n { background: var(--accent); color: #fff; border-color: var(--accent); }
.fa-stage.is-now { color: var(--primary-ink); background: var(--primary); border-color: var(--primary-dark); }
.fa-proj__prog { margin: 8px 0 0; font-size: 13px; }
.fa-proj__prog b { font-size: 18px; color: var(--accent); margin-right: 6px; }
.fa-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid rgba(255, 255, 255, .5); }
.fa-tabs::-webkit-scrollbar { display: none; }
.fa-tab { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid rgba(255, 255, 255, .4); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.fa-tab.is-on { background: #fff; color: var(--accent); border-color: #fff; }

.fa-sched { overflow-x: auto; }
.fa-sched__row { display: grid; grid-template-columns: 88px repeat(5, minmax(96px, 1fr)); gap: 6px; min-width: 620px; margin-bottom: 6px; }
.fa-sched__row--head span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fa-sched__day.is-today { color: var(--primary-dark); }
.fa-sched__day em { font-style: normal; padding: 0 4px; background: var(--primary); color: var(--primary-ink); font-size: 10.5px; margin-left: 2px; }
.fa-sched__who { align-self: center; font-weight: 800; color: var(--accent); font-size: 13px; }
.fa-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 6px 8px; border: 1px solid #9DB4D6; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); text-align: left; }
.fa-slot b { font-size: 13px; }
.fa-slot small { font-size: 11px; color: var(--muted); }
.fa-slot:hover:not(:disabled):not(.is-static) { border-color: var(--accent); background: #D9E4F3; }
.fa-slot.is-past { background: var(--surface-2); border-style: dashed; color: var(--muted); cursor: default; }
.fa-slot.is-danger { box-shadow: inset 3px 0 0 var(--danger); }
.fa-slot.is-static { background: var(--warn-soft); border-color: #E9C98E; color: var(--warn); }
.fa-slot.is-static.is-empty { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.fa-sched__warn p { margin: 6px 0 0; padding: 5px 8px; font-size: 13px; font-weight: 600; }
.fa-warnline { background: var(--danger-soft); color: var(--danger); border-left: 3px solid var(--danger); }
.fa-infoline { background: var(--warn-soft); color: var(--warn); border-left: 3px solid var(--warn); }
.fa-okline { background: var(--ok-soft); color: var(--ok); border-left: 3px solid var(--ok); }

.fa-check { margin: 0; padding: 0; list-style: none; }
.fa-check__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid #E4EAF2; align-items: center; }
.fa-check__box { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.fa-check__box input { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.fa-check__act { grid-column: 1 / -1; order: 3; font-size: 13px; color: var(--muted); padding-left: 26px; }
.fa-check__who { font-size: 12.5px; color: var(--muted); }
.fa-check__at { display: none; }
.fa-check__row.is-off .fa-check__risk { color: var(--danger); }
.fa-grade { display: inline-block; min-width: 22px; text-align: center; border: 1px solid var(--line); font-weight: 800; }
.fa-grade[data-g="상"] { border-color: #F2B3AE; background: var(--danger-soft); color: var(--danger); }
.fa-grade[data-g="중"] { border-color: #E9C98E; background: var(--warn-soft); color: var(--warn); }

.fa-est { display: grid; gap: 10px; }
.fa-quote__paper { border: 1px solid var(--line); padding: 14px; background: #FDFDFB; }
.fa-quote__title { margin: 0 0 8px; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: .6em; color: var(--accent); }
.fa-quote__to { margin: 0; font-weight: 800; border-bottom: 1px solid var(--text); display: inline-block; padding-right: 20px; }
.fa-quote__meta { margin: 6px 0 8px; font-size: 12.5px; color: var(--muted); }
.fa-quote__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fa-quote__table th, .fa-quote__table td { padding: 5px 6px; border: 1px solid var(--line); }
.fa-quote__table th { text-align: left; background: var(--surface-2); width: 40%; }
.fa-quote__table td { text-align: right; }
.fa-quote__table tr.is-total th, .fa-quote__table tr.is-total td { font-weight: 800; border: 2px solid var(--accent); }
.fa-quote__foot { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }

.fa-log__head { align-items: flex-start; }
.fa-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; margin-left: auto; }
.fa-field { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.fa-kind { display: inline-block; padding: 0 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fa-kind[data-kind="경고"] { color: var(--danger); border-color: #F2B3AE; background: var(--danger-soft); }
.fa-kind[data-kind="통신"] { color: var(--warn); border-color: #E9C98E; background: var(--warn-soft); }
.fa-kind[data-kind="명령"] { color: var(--accent); border-color: #9DB4D6; background: var(--accent-soft); }
.fa-kind[data-kind="안전"] { color: var(--ok); border-color: #A9D7BF; background: var(--ok-soft); }
.fa-log tr[data-level="danger"] td:nth-child(4) { color: var(--danger); font-weight: 700; }
.fa-log td:not(:nth-child(4)):not(:nth-child(8)) { white-space: nowrap; }
.fa-facts .mono { white-space: nowrap; }
.fa-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.fa-photo { border: 1px solid var(--line); }
.fa-photo__img { display: block; width: 100%; height: auto; }
.fa-photo__cap { display: block; padding: 4px 6px; font-size: 12px; font-weight: 600; }

/* 카드형 표(좁은 화면) */
@media (max-width: 759px) {
  .fa-table--cards thead { display: none; }
  .fa-table--cards, .fa-table--cards tbody, .fa-table--cards tfoot, .fa-table--cards tr, .fa-table--cards th, .fa-table--cards td { display: block; width: 100%; }
  .fa-table--cards tr { border: 1px solid var(--line); margin-bottom: 6px; padding: 4px 8px; }
  .fa-table--cards td, .fa-table--cards tbody th { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border: 0; text-align: right !important; }
  .fa-table--cards td::before, .fa-table--cards tbody th::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex: none; font-family: var(--body); }
  .fa-table--cards tfoot tr { display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--line); margin: 0; }
  .fa-table--cards tfoot th, .fa-table--cards tfoot td { width: auto; border: 0; padding: 3px 0; }
  .fa-table--cards tfoot td::before { content: none; }
  .fa-filters { margin-left: 0; width: 100%; }
}

/* 보고서 */
.fa-report { display: grid; gap: 10px; }
.fa-report__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fa-report__side { display: grid; gap: 10px; align-content: start; }
.fa-issues { margin: 0; padding: 0; list-style: none; }
.fa-issue { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid #E4EAF2; font-size: 12.5px; }
.fa-issue:first-child { border-top: 0; }
.fa-issue b { color: var(--accent); }
.fa-issue span { color: var(--muted); }
.fa-issue.is-new b::after { content: "최신"; margin-left: 6px; padding: 0 4px; border: 1px solid var(--primary-dark); color: var(--primary-dark); font-family: var(--body); font-size: 10.5px; }
.fa-a4 { background: #fff; color: var(--text); border: 1px solid #9DB4D6; padding: 16px; font-size: 12.5px; min-width: 0; box-shadow: 0 10px 30px rgba(6, 20, 45, .3); }
.fa-a4__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.fa-a4__kicker { margin: 0; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.fa-a4__title { margin: 0; font-size: 21px; color: var(--accent); letter-spacing: -.02em; }
.fa-a4__sign { border-collapse: collapse; font-size: 11px; text-align: center; }
.fa-a4__sign th, .fa-a4__sign td { border: 1px solid var(--text); padding: 2px 8px; min-width: 52px; }
.fa-a4__sign td { height: 30px; vertical-align: bottom; }
.fa-a4__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; margin: 8px 0; }
.fa-a4__facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.fa-a4__facts dt { color: var(--muted); }
.fa-a4__facts dd { margin: 0; font-weight: 700; }
.fa-a4__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; margin: 6px 0 4px; }
.fa-a4__fig { margin: 0; }
.fa-a4__fig .fa-elev { --lab: 0px; max-width: 220px; margin: 0 auto; }
.fa-elev--mini .fa-elev__body { grid-template-columns: minmax(0, 1fr); }
.fa-a4 .fa-elev__grid { border-color: var(--text); background: #fff; }
.fa-a4 .fa-cell { border-color: rgba(15, 30, 51, .22); }
.fa-a4 .fa-cell[data-st="done"], .fa-a4 .fa-sw[data-st="done"] { background: #9DBBE3; }
.fa-a4 .fa-cell[data-st="todo"], .fa-a4 .fa-sw[data-st="todo"] { background: #fff; }
.fa-a4 .fa-cell[data-st="manual"], .fa-a4 .fa-sw[data-st="manual"] { background: repeating-linear-gradient(135deg, #B26A00 0 1.5px, #fff 1.5px 4px); }
.fa-a4 .fa-cell[data-st="excluded"], .fa-a4 .fa-sw[data-st="excluded"] { background-color: #fff; background-image: repeating-linear-gradient(45deg, #5A6B82 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, #5A6B82 0 1px, transparent 1px 4px); }
.fa-a4 .fa-danger-band { display: none; }
.fa-a4 .fa-elev__ground { border-top-color: var(--text); margin: 0; }
.fa-a4 .fa-elev__ground::before { border-top-color: var(--line); }
.fa-a4 .fa-elev__door { color: var(--muted); }
.fa-a4 .fa-sw { border-color: var(--text); width: 14px; height: 10px; }
.fa-a4__fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin-top: 4px; font-size: 11px; }
.fa-a4__fig figcaption span { display: inline-flex; align-items: center; gap: 4px; }
.fa-a4__table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.fa-a4__table caption { text-align: left; font-weight: 800; color: var(--accent); padding-bottom: 3px; font-size: 12px; }
.fa-a4__table th, .fa-a4__table td { border: 1px solid #9AA9BE; padding: 3px 6px; text-align: left; vertical-align: top; }
.fa-a4__table thead th { background: #EEF2F8; font-weight: 700; }
.fa-a4__table--num td.mono { text-align: right; }
.fa-a4__table tr.is-total th, .fa-a4__table tr.is-total td { font-weight: 800; border-top: 2px solid var(--text); }
.fa-a4__kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 8px 0 0; }
.fa-a4__kpi div { border: 1px solid #9AA9BE; padding: 4px 6px; }
.fa-a4__kpi dt { font-size: 11px; color: var(--muted); }
.fa-a4__kpi dd { margin: 0; font-weight: 800; font-size: 12.5px; color: var(--accent); }
.fa-a4__sec { margin-top: 10px; }
.fa-a4__sec h3 { margin: 0 0 4px; font-size: 13px; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.fa-a4__hist td:first-child, .fa-a4__hist td:nth-child(3) { white-space: nowrap; }
.fa-a4 .fa-elev__ground::before { display: none; }
.fa-a4__list { margin: 0; padding-left: 18px; }
.fa-a4__list li { margin: 1px 0; }
.fa-a4__foot { margin: 10px 0 0; padding-top: 6px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }

/* 공고 대응표 · 알림 띠 */
.fa-fab { position: fixed; right: 12px; bottom: 84px; z-index: 35; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid var(--accent); border-radius: var(--r); background: #fff; color: var(--accent); font-weight: 800; font-size: 13.5px; box-shadow: 0 6px 18px rgba(6, 20, 45, .35); }
body:not(.fa--console) .fa-fab { bottom: 16px; }
.fa-toast { position: fixed; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 24px); padding: 9px 14px; background: var(--accent); color: #fff; border: 1px solid #fff; border-radius: var(--r); font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(6, 20, 45, .4); }
body:not(.fa--console) .fa-toast { bottom: 72px; }
.fa-sheet { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--accent); border-radius: var(--r); color: var(--text); }
.fa-sheet::backdrop { background: rgba(6, 20, 45, .55); }
.fa-sheet__body { padding: 16px; }
.fa-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.fa-sheet__head .fa-icon-btn { color: var(--accent); border-color: var(--line); }
.fa-eyebrow { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.fa-sheet__title { margin: 0; font-size: 19px; color: var(--accent); }
.fa-map-list { margin: 0; padding: 0; list-style: none; }
.fa-map-list__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 7px 0; border-top: 1px solid #E4EAF2; font-size: 13px; }
.fa-map-list__need { font-weight: 700; }
.fa-map-list__show { color: var(--accent); font-weight: 600; }
.fa-sheet__foot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.demo-notice { padding: 14px 0 90px; font-size: 11.5px; color: var(--muted-blue); text-align: center; }
body:not(.fa--console) .demo-notice { padding-bottom: 76px; }

@media (max-width: 520px) {
  .fa-band { font-size: 11px; }
  .fa-robot__dev div { padding: 3px 4px; }
  .fa-robot__dev dd { font-size: 12px; }
}

@media (min-width: 521px) {
  .fa-btn--ghost span { display: inline; }
  .fa-top__tools { width: auto; }
  .fa-role { flex: none; }
  .fa-role__select { width: 240px; }
  .fa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-stages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fa-a4__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-a4__row { grid-template-columns: 220px minmax(0, 1fr); }
  .fa-check__row { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) 70px 54px; }
  .fa-check__act { grid-column: auto; order: 0; padding-left: 0; }
  .fa-check__at { display: block; font-size: 12px; color: var(--muted); text-align: right; }
}

@media (min-width: 1000px) {
  .fa-shell { display: grid; grid-template-columns: 184px minmax(0, 1fr); min-height: calc(100vh - 28px); }
  .fa-side { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 28px); border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .18); padding-bottom: 16px; }
  .fa-brand { padding: 14px 14px 12px; }
  .fa-nav { flex-direction: column; overflow: visible; padding: 0 8px; gap: 1px; }
  .fa-nav__item { white-space: normal; min-height: 38px; }
  .fa-nav__item.is-on { box-shadow: inset 3px 0 0 var(--primary); }
  .fa-nav__item.is-child { padding-left: 22px; font-size: 13px; min-height: 32px; }
  .fa-nav__item small { display: block; font-size: 10px; font-weight: 600; color: var(--muted-blue); line-height: 1.2; }
  .fa-nav__item > span { display: flex; flex-direction: column; }
  .fa-side__report { display: flex; align-items: center; gap: 8px; margin: 14px 10px 0; padding: 10px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }
  .fa-side__report svg { color: var(--primary); flex: none; }
  .fa-main { padding: 0 20px 16px; }
  .fa-top { padding: 8px 0 6px; }
  .fa-ctrl .fa-btn { padding: 6px 10px; min-height: 36px; }
  .fa-brush button { min-height: 34px; }
  .fa-top__h1 { font-size: 20px; }

  .fa-con { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); grid-template-areas: "a b" "a c"; gap: 10px 12px; align-items: start; }
  .fa-con__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .fa-con__col > * { order: 0; }
  .fa-con__col--a { grid-area: a; }
  .fa-con__col--b { grid-area: b; }
  .fa-con__col--c { grid-area: c; }
  .fa--console .fa-top__crumb { display: none; }
  .fa-estop { position: static; flex-direction: column; gap: 2px; width: 104px; min-height: 0; flex: none; box-shadow: 0 0 0 2px #fff; }
  .fa-estop__sub { text-align: center; }
  .demo-notice { padding-bottom: 24px; }
  body:not(.fa--console) .demo-notice { padding-bottom: 24px; }
  .fa-fab, body:not(.fa--console) .fa-fab { bottom: 16px; right: 16px; }
  .fa-toast, body:not(.fa--console) .fa-toast { bottom: 24px; }

  .fa-zones__grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .fa-zones__plan { max-width: 600px; }
  .fa-est { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .fa-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fa-report__grid { grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); align-items: start; }
  .fa-a4 { padding: 26px 30px; }
  .fa-map-list__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
}

@media (min-width: 1200px) {
  .fa-con { grid-template-columns: minmax(0, 360px) minmax(0, 1fr) minmax(0, 1.06fr); grid-template-areas: "a b c"; }
  .fa-ctrl__body { flex-direction: column-reverse; gap: 8px; }
  .fa-estop { width: 100%; flex-direction: row; gap: 10px; min-height: 50px; }
  .fa-ctrl__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-ctrl__btns .fa-brush { grid-column: 1 / -1; }
  .fa-brush button { flex: 1; }
  .fa-ctrl__head { flex-wrap: nowrap; }
  .fa-ctrl__owner { white-space: nowrap; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.fa { background: #fff !important; color: var(--text); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fa-band, .fa-side, .fa-top, .fa-mocknote, .fa-tabs, .fa-report__side, .fa-fab, .fa-toast, .demo-notice, .fa-sheet { display: none !important; }
  .fa-shell { display: block; }
  .fa-main { padding: 0; }
  .fa-report__grid { display: block; }
  .fa-a4 { box-shadow: none; border: 0; padding: 0; font-size: 11px; }
  .fa-a4__row { grid-template-columns: 200px minmax(0, 1fr); }
  .fa-a4__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
