/* AXOS 앱 — 2026-10-20 스앱담당 · 10-22 오후 사장님 참고 그림(뿌연 물안개 + 유리 카드) "초 깔끔하게 · 첫 화면은 코드 넣는 칸·단추만"
   → 검은 판·검은 단추 전부 걷고 유리판으로 다시 짬
   10-22 저녁 사장님 "글라스모피즘이 제대로 표현 안 됨" → 밝은 회색 바탕 + 검은 글씨 걷고 참고 그림 그대로
   바탕 = 안개 호수 사진(2.5 이미지로 그림) + 옅은 남색 막 · 판 전부 = 뒤를 흐리는 반투명 유리 + 흰 글씨
   흰 알약(검은 글씨) = 고른 것·주 단추만 · 아래 탭 = 떠 있는 유리 알약
   첫 화면·네 자리 = 사진 위 흰 글씨 + 젖빛 유리 칸 (아이폰 잠금 화면 숫자판처럼)
   참고 그림 = D:/작업물/코아/스앱/허브앱-1020/유리-1022/참고/사장님-참고-유리.png
   글꼴 = Pretendard (OFL · 우리 서버에 둠) */
@font-face {
  font-family: "Pretendard";
  src: url("/fonts/PretendardVariable-sub.woff2") format("woff2-variations"), url("/fonts/PretendardVariable-sub.woff2") format("woff2");
  font-weight: 45 930;
  font-display: swap;
}
:root {
  --mist: #6e8196;
  --glass: rgba(255, 255, 255, .08);
  --glass-hi: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .32);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 40px -24px rgba(8, 20, 36, .6);
  --blur: blur(24px) saturate(150%);
  --soft: rgba(255, 255, 255, .2);
  --press: rgba(255, 255, 255, .3);
  --ink: #ffffff;
  --ink2: rgba(255, 255, 255, .95);
  --sub: rgba(255, 255, 255, .9);
  --faint: rgba(255, 255, 255, .66);
  --line: rgba(255, 255, 255, .16);
  --on-white: #142030;
  --on-white-sub: #5b6d81;
  --ok: #8ff0bd;
  --warn: #ffd09a;
  --bad: #ffb0b3;
  --bad-on-white: #d23a40;
  --shade: 0 1px 2px rgba(10, 22, 38, .22), 0 0 14px rgba(10, 22, 38, .2);
  --accent: #142030;
  --accent-ink: #ffffff;
  --top-h: 64px;
  --nav-h: 68px;
  --nav-lift: 12px;
  --r: 28px;
  --r-row: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #304358; } /* 당겨 늘어나는 바닥 = 사진 아래쪽 남색과 같게 */
html, body { margin: 0; padding: 0; color: var(--ink); }
body {
  font-family: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100dvh; word-break: keep-all; letter-spacing: -0.01em; background: transparent;
}
/* 안개 호수 바탕 — 화면에 붙어 있고 글만 위로 흐른다 (해는 왼쪽 밖으로 빼고 · 남색 막은 사진이 밝은 위쪽일수록 진하게 = 어디서나 흰 글씨 읽히게 · 사진 없으면 같은 색 그러데이션) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 44, 64, .64) 0%, rgba(28, 44, 64, .66) 30%, rgba(28, 44, 64, .54) 50%, rgba(26, 41, 60, .4) 70%, rgba(22, 36, 54, .2) 100%),
    url("/img/mist-lake.webp") 76% center / cover no-repeat,
    linear-gradient(180deg, #a3b3c3 0%, #8495a8 50%, #66798e 100%);
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
p { margin: 0; }

/* ── 위 머리 — 위로 갈수록 흐려지는 유리 띠 ── */
.top {
  position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) max(16px, calc(50% - 304px)) 0; display: flex; align-items: center; gap: 10px;
}
.top::before {
  content: ""; position: absolute; inset: 0 0 -20px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(44, 62, 84, .52) 0%, rgba(44, 62, 84, .32) 62%, rgba(44, 62, 84, 0) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent); mask-image: linear-gradient(180deg, #000 58%, transparent);
}
.top .title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 0; border: 0; background: none; text-align: left; border-radius: 999px; }
.top .title .mark { width: 40px; height: 40px; border-radius: 50%; font-size: 17px; }
.top .title b { text-shadow: var(--shade); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top .title .caret { color: var(--sub); flex: none; display: inline-flex; margin-left: -4px; }
.top .title .caret svg { width: 20px; height: 20px; stroke-width: 2.4; }
.top .title:active b { opacity: .6; }
.top.big h1 { text-shadow: var(--shade); flex: 1; min-width: 0; margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 둥근 유리 동그라미 단추 */
.round {
  width: 48px; height: 48px; border-radius: 50%; padding: 0; flex: none; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass-hi); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.round svg { width: 22px; height: 22px; }
.round.sm { width: 40px; height: 40px; box-shadow: none; }
.round.sm svg { width: 18px; height: 18px; }
.round:active { background: var(--press); }
.round.me { font-size: 17px; font-weight: 700; color: var(--ink2); }
.round.co .mark { width: 36px; height: 36px; border-radius: 50%; font-size: 15px; }
.card .round, .row-card .round { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .42); box-shadow: none; }

/* 회사 표지(둥근 네모 · 회사 색) · 사람(동그라미) */
.mark { width: 32px; height: 32px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.mark.md { width: 48px; height: 48px; border-radius: 16px; font-size: 20px; }
.mark.big { width: 76px; height: 76px; border-radius: 26px; font-size: 32px; }
.mark img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 700; font-size: 16px; }
.avatar.lg { width: 60px; height: 60px; font-size: 24px; }
.ico { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.ico svg { width: 20px; height: 20px; }
.chev { color: var(--faint); flex: none; display: inline-flex; }

/* ── 본문 ── */
main { padding: 4px 16px calc(var(--nav-h) + var(--nav-lift) + var(--safe-b) + 28px); max-width: 640px; margin: 0 auto; }
main.plain { padding-top: calc(var(--safe-t) + 12px); padding-bottom: calc(var(--safe-b) + 32px); }
h1 { text-shadow: var(--shade); font-size: 30px; line-height: 1.2; margin: 4px 4px 10px; font-weight: 700; letter-spacing: -0.035em; }
h2 { text-shadow: var(--shade); font-size: 18px; line-height: 1.3; margin: 28px 4px 12px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink2); }
.lead { text-shadow: var(--shade); color: var(--sub); margin: 0 4px 20px; font-size: 16px; }
.date { font-size: 15px; color: var(--sub); font-weight: 500; }
.small { font-size: 14px; color: var(--sub); }
.tiny { font-size: 13px; color: var(--sub); margin-top: 10px; }
.foot { margin-top: 28px; text-align: center; font-size: 13px; }
.foot a { color: var(--sub); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 28px 4px 12px; }
.sec-head h2 { margin: 0; }
.sec-head .meta { text-shadow: var(--shade); font-size: 15px; color: var(--sub); white-space: nowrap; }
.dim { color: var(--sub); font-weight: 500; }

/* 홈 ① 큰 인사 — 굵은 줄 + 옅은 줄 (참고 「Discover / what soothes you」) */
.greet { padding: 8px 4px 20px; }
.greet h1 { margin: 6px 0 0; font-size: clamp(28px, 9vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.04em; }

/* 홈 ② 회사 고르는 칸 — 유리 홈 안에서 고른 것만 흰 알약 (참고 「All · Earbuds · Speakers」) */
.chips-row {
  display: flex; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; margin: 0 0 14px; padding: 4px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); scrollbar-width: none;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--glass-shadow);
}
.chips-row::-webkit-scrollbar { display: none; }
.chips-row .chip { flex: none; min-height: 42px; padding: 0 18px; background: transparent; border: 0; box-shadow: none; font-size: 15px; color: var(--ink2); }
.chips-row .chip.on { background: #fff; color: var(--on-white); box-shadow: 0 6px 16px -10px rgba(38, 58, 84, .5); }
.chips-row .chip svg { width: 18px; height: 18px; margin-left: -4px; }

/* 카드 = 반투명 흰 유리 + 흰 테두리 (둥글게 28) */
.card { border-radius: var(--r); padding: 22px 20px; margin-bottom: 12px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.card.hi { background: var(--glass-hi); }
.card .grow, .item .grow, .state .grow, .where .grow { flex: 1; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 16px; min-height: 26px; }
.card-head b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.card-head .meta { font-size: 15px; font-weight: 600; color: var(--sub); white-space: nowrap; text-decoration: none; }
.card-head .cnt { margin-left: 8px; font-size: 16px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
a.meta:active { color: var(--ink); }
.card-foot { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 50px; margin-top: 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 15px; font-weight: 650; color: #fff; text-decoration: none; }
.card-foot:active { background: rgba(255, 255, 255, .3); }
.row-title { font-size: 16px; font-weight: 650; }
.row-sub { font-size: 14px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub.wrap { white-space: normal; overflow: visible; }

/* 홈 ③ 회사 화면 카드 — 조금 더 흰 유리 + 흰 알약 단추 */
.co-line { display: flex; align-items: center; gap: 14px; }
.co-line .grow { flex: 1; min-width: 0; }
.co-line b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-line .sub { display: block; font-size: 14px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-card { padding: 20px 20px 20px; }
.btn.go { margin-top: 20px; }
/* 홈 ③-2 회사 카드 (10-22 「코드 치고 들어가면 화면에 카드」 · 어썸 기준) — 큰 유리판 안 두 줄 칸, 판 안이라 흐림 없이 옅은 흰 막만 */
.work-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.work-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: 118px; padding: 14px 14px 15px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: none; }
.work-tile:active { background: rgba(255, 255, 255, .28); }
.work-tile .w-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; margin-bottom: 10px; }
.work-tile .w-ico { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .34); }
.work-tile .w-ico svg { width: 21px; height: 21px; }
.work-tile .w-go { display: inline-flex; color: rgba(255, 255, 255, .8); }
.work-tile .w-go svg { width: 18px; height: 18px; }
.work-tile b { display: block; max-width: 100%; font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-tile .sub { display: block; max-width: 100%; font-size: 13.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-none { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .12); font-size: 15px; color: var(--sub); }

/* 홈 ④ 숫자 칸 */
.stat-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 12px; }
.stat-tile { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 100px; padding: 18px 14px 14px 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); text-decoration: none; color: inherit; }
.stat-tile:active { background: var(--press); }
.stat-tile .v { display: block; font-size: clamp(20px, 6.6vw, 26px); font-weight: 700; line-height: 1.15; letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat-tile .k { display: block; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tiles.one .stat-tile { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; min-height: 0; padding: 20px; }

/* 홈 ⑤ 줄 카드 (참고 「Personalized Spatial Audio」 칸 + 오른쪽 둥근 「↗」) */
.row-card { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 14px 14px 16px; margin-bottom: 12px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); text-decoration: none; color: inherit; }
.row-card:active { background: var(--press); }
.row-card .grow { flex: 1; min-width: 0; }
.row-card b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-card .sub { display: block; font-size: 14px; color: var(--sub); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-ico { width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .34); color: #fff; }
.r-ico svg { width: 22px; height: 22px; }

/* 사진 격자 (둥근 네모) */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.photos a, .photos button, .photos .skel { display: block; aspect-ratio: 1; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skel { background: linear-gradient(90deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, .1) 100%) !important; background-size: 200% 100% !important; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 0; }
.e-ico { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .34); color: #fff; margin-bottom: 12px; }
.e-ico svg { width: 26px; height: 26px; }
.empty-in b { display: block; font-size: 16px; font-weight: 700; }
.empty-in .sub { display: block; font-size: 14px; color: var(--sub); margin-top: 2px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--sub); padding: 36px 16px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.empty p { font-size: 15px; }

/* 줄 목록 = 줄마다 유리 판 */
.list { display: flex; flex-direction: column; gap: 8px; }
.list .item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 18px 14px 14px; border-radius: var(--r-row); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); text-align: left; text-decoration: none; color: inherit; }
.list .item.tap:active { background: var(--press); }
.list .item b { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item .sub { display: block; font-size: 14px; color: var(--sub); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item.col { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.list .item .item-line .sub, .list .item .sub.wrap { white-space: normal; overflow: visible; }
.item-line { display: flex; align-items: center; gap: 14px; }
.list .item.col .chips { flex-wrap: nowrap; gap: 6px; }
.list .item.col .chips .chip { flex: 1 1 0; min-width: 0; padding: 0; justify-content: center; }
.list .item.danger { color: #ffdcdd; }
.list .item.danger .ico { color: var(--bad); }

/* 알약 · 표 */
.pill { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line); color: var(--ink2); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.pill.now { background: #fff; border-color: #fff; color: var(--on-white); box-shadow: 0 6px 16px -10px rgba(38, 58, 84, .5); }
.badge { font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; flex: none; white-space: nowrap; }
.badge.ok { background: rgba(73, 224, 149, .34); color: #fff; }
.badge.warn { background: rgba(255, 216, 168, .94); color: #6a3b06; } /* 파란 바탕 위 주황 막 = 흙색이 됨 → 옅은 호박색 알약 + 진한 글씨 */

/* 단추 = 흰 알약 (참고 「Add to Bag」) · 보조 = 유리 */
.btn {
  min-height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: var(--on-white);
  font-weight: 650; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none;
  box-shadow: 0 12px 28px -16px rgba(8, 20, 36, .7);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.block { width: 100%; }
.btn.white { background: #fff; color: var(--on-white); }
.btn.ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .42); color: #fff; box-shadow: none; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn.line { background: transparent; border: 1px solid rgba(255, 255, 255, .46); color: #fff; box-shadow: none; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
.btn.huge { min-height: 64px; font-size: 18px; font-weight: 700; }
.btn.danger { background: #fff; color: var(--bad-on-white); }
.btn:disabled { background: rgba(255, 255, 255, .14); color: var(--faint); border-color: rgba(255, 255, 255, .28); box-shadow: none; cursor: default; }
.btn:not(:disabled):active { transform: scale(.98); background: rgba(255, 255, 255, .78); }
.btn.ghost:not(:disabled):active, .btn.line:not(:disabled):active { background: rgba(255, 255, 255, .3); }
.btns { display: flex; gap: 10px; }
.btns > * { flex: 1 1 0; min-width: 0; }

/* 고르는 알약 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid var(--glass-line); color: var(--ink2); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.chip.on { background: #fff; border-color: #fff; color: var(--on-white); font-weight: 700; box-shadow: 0 6px 16px -10px rgba(38, 58, 84, .5); }
.chip:not(.on):active { background: var(--press); }

/* 입력 = 옅은 유리 칸 */
.input { width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid var(--glass-line); border-radius: 18px; background: rgba(255, 255, 255, .14); font-size: 16px; color: #fff; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: -1px; background: rgba(255, 255, 255, .22); }
.input.sm { min-height: 40px; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
textarea.input { min-height: 110px; resize: vertical; display: block; }

.msg { font-size: 15px; margin: 10px 0 0; min-height: 22px; }
.msg:empty { min-height: 0; margin: 0; }
.msg.bad { color: var(--bad); font-weight: 600; }
.msg.ok { color: var(--ok); }

/* ── 아래 탭 = 떠 있는 유리 알약 · 고른 칸만 흰 알약에 이름까지 ── */
.nav {
  position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + var(--nav-lift)); z-index: 20;
  width: min(calc(100% - 32px), 440px); height: var(--nav-h); margin: 0 auto; padding: 7px;
  display: flex; align-items: center; gap: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 18px 40px -18px rgba(8, 20, 36, .6);
}
.nav a { flex: 1 1 0; min-width: 0; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; text-decoration: none; color: var(--sub); }
.nav a span { display: none; }
.nav a.on { flex: 1.7 1 0; background: #fff; color: var(--on-white); box-shadow: 0 8px 18px -12px rgba(30, 48, 72, .55); }
.nav a.on span { display: inline; font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav a:not(.on):active { color: var(--ink); }
.nav svg { width: 23px; height: 23px; flex: none; }

/* ── 출퇴근 ── */
.att-date { font-size: 15px; color: var(--sub); font-weight: 500; margin-bottom: 8px; }
.att .times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.att .times .v { font-size: clamp(36px, 11vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.att .times .k { font-size: 14px; color: var(--sub); margin-top: 4px; }
.where { display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); margin-bottom: 16px; }
.state { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: #49e095; box-shadow: 0 0 0 4px rgba(73, 224, 149, .24); }
.dot.warn { background: #ffb15c; box-shadow: 0 0 0 4px rgba(255, 177, 92, .24); }
.dot.bad { background: #ff7c82; box-shadow: 0 0 0 4px rgba(255, 124, 130, .24); }
.done { text-align: center; font-weight: 700; font-size: 17px; padding: 18px 0 6px; color: var(--ok); }
.team .card-head { margin-bottom: 8px; }
.big-num { font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big-num span { font-size: 22px; font-weight: 600; color: var(--sub); letter-spacing: -0.02em; }
.big-k { font-size: 14px; color: var(--sub); margin: 4px 0 12px; }
.people .person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.people .person .grow { flex: 1; min-width: 0; }
.people .person b { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people .person .sub { display: block; font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; gap: 8px; align-items: center; }
.row .input { flex: 1; min-width: 0; }
@media (max-width: 374px) { .item.col .row { flex-wrap: wrap; } .item.col .row .input { flex: 1 1 100%; } .item.col .row .btn { flex: 1 1 0; } }

/* ── 사진 ── */
.upload .lead { margin: 0 0 14px; }
.viewer { position: fixed; inset: 0; z-index: 50; background: #0d1218; color: #fff; display: flex; flex-direction: column; }
.viewer .vtop { display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 6px) 8px 6px; }
.viewer .vtop .grow { flex: 1; min-width: 0; font-size: 14px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer .icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.viewer .icon-btn:active { background: rgba(255, 255, 255, .24); }
.viewer .vimg { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer .vimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vmemo { padding: 12px 16px calc(var(--safe-b) + 16px); font-size: 15px; min-height: 48px; }

/* ── 설정 ── */
.profile { display: flex; align-items: center; gap: 14px; }
.profile .grow { flex: 1; min-width: 0; }
.profile .avatar { background: #fff; border-color: #fff; color: var(--on-white); }
.profile .row-title { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 작은 머리 (둥근 뒤로 + 가운데 제목) ── */
.sub-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; margin: 0 0 18px; }
.sub-head b { text-align: center; font-size: 18px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 6px 0 24px; text-align: center; }
.center-head h1 { margin: 0; font-size: 26px; font-weight: 700; }
.lead.center { margin: 0 0 16px; }

/* ── 첫 화면 · 네 자리 = 물안개 사진 위 흰 글씨 + 젖빛 유리 (참고 첫 장 「Clear sound. Pure calm.」) ── */
body.hero { color: #fff; }
body.hero::before { display: none; }
.hero-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #8494a6; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: url("/img/mist-hero.webp") center 30% / cover no-repeat, linear-gradient(180deg, #c9d3dc 0%, #9fb0c1 45%, #6f8094 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 34, 48, 0) 34%, rgba(22, 34, 48, .3) 60%, rgba(22, 34, 48, .6) 100%); }
.hero-bg.dim::before { filter: blur(18px); transform: scale(1.12); }
.hero-bg.dim::after { background: linear-gradient(180deg, rgba(22, 34, 48, .3) 0%, rgba(22, 34, 48, .5) 100%); }
main.hero { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; padding: calc(var(--safe-t) + 12px) 24px calc(var(--safe-b) + 18px); display: flex; flex-direction: column; color: #fff; }
.hero-top { height: 48px; display: flex; align-items: center; flex: none; }
.hero-body { margin-top: auto; padding-top: 40px; }
.hero-title { font-size: clamp(34px, 10.6vw, 44px); line-height: 1.14; font-weight: 700; letter-spacing: -0.045em; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(18, 30, 44, .2); }
.hero-title .dim { color: rgba(255, 255, 255, .64); font-weight: 500; }
.hero-cap { font-size: 15px; color: rgba(255, 255, 255, .8); margin: 0 0 24px; }
.hero .round, .hero .glass {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .42); color: #fff; box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.hero .round:active { background: rgba(255, 255, 255, .3); }
.code-input { text-align: center; font-size: 28px; letter-spacing: .14em; font-weight: 650; font-variant-numeric: tabular-nums; min-height: 72px; border-radius: 999px; }
.hero .code-input { color: #fff; }
.hero .code-input::placeholder { color: rgba(255, 255, 255, .5); }
/* 10-23 첫 화면 = 회사 영어 3글자 | 내 번호 4자리 한 줄 (320 폭에서도 한 줄) */
.enter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.enter-row .code-input { min-width: 0; padding: 14px 10px; letter-spacing: .18em; text-indent: .18em; }
.pin-input { -webkit-text-security: disc; }
.hero .code-input:focus { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -1px; background: rgba(255, 255, 255, .24); }
.hero .btn { margin-top: 12px; border-color: #fff; box-shadow: 0 14px 30px -16px rgba(10, 20, 32, .6); }
.hero .btn:disabled { background: rgba(255, 255, 255, .7); color: var(--on-white-sub); }
.hero .msg.bad { color: #ffe3e3; font-weight: 600; text-align: center; text-shadow: 0 1px 10px rgba(10, 20, 32, .35); }
.hero-foot { display: block; width: max-content; margin: 22px auto 0; font-size: 13px; color: rgba(255, 255, 255, .62); text-decoration: none; }
/* 네 자리 화면 */
.hero .center-head { margin: 8px 0 26px; }
.hero .center-head h1 { color: #fff; font-size: 28px; }
.hero .mark.big { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 16px 34px -16px rgba(10, 20, 32, .6); }
.hero .lead { color: rgba(255, 255, 255, .84); }
.hero .lead b { color: #fff; }
.hero .list .item { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .38); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.hero .list .item.tap:active { background: rgba(255, 255, 255, .28); }
.hero .avatar { background: rgba(255, 255, 255, .24); color: #fff; }
.hero .chev { color: rgba(255, 255, 255, .6); }
.hero .msg { text-align: center; }
.dots { display: flex; justify-content: center; gap: 18px; margin: 22px 0 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; display: block; border: 1.5px solid rgba(255, 255, 255, .8); }
.dots i.on { background: #fff; border-color: #fff; }
.pad { --k: min(76px, 21vw); display: grid; grid-template-columns: repeat(3, var(--k)); justify-content: center; gap: 16px clamp(16px, 7vw, 28px); margin: 26px auto 0; }
.pad button { width: var(--k); height: var(--k); border-radius: 50%; padding: 0; font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.pad button:active { background: rgba(255, 255, 255, .42); }
.pad .blank { display: block; }
.pad .soft { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; justify-content: center; }
.pad .soft svg { width: 26px; height: 26px; }

/* ── 아래에서 올라오는 확인 = 젖빛 유리 판 ── */
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(14, 26, 40, .42); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 640px; border-radius: 32px 32px 0 0; padding: 26px 20px calc(var(--safe-b) + 18px); color: var(--ink);
  background: rgba(78, 96, 118, .62); border-top: 1px solid rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 -18px 40px -20px rgba(8, 20, 36, .5);
}
.sheet h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; }
.sheet p { margin: 0 0 20px; color: var(--sub); font-size: 15px; }
.sheet .btns { gap: 10px; }
.sheet .btn.ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--nav-lift) + var(--safe-b) + 12px); z-index: 70; max-width: 440px; margin: 0 auto;
  border-radius: 20px; padding: 15px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
  background: rgba(60, 78, 100, .66); border: 1px solid rgba(255, 255, 255, .36);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 16px 36px -16px rgba(8, 20, 36, .55);
}

.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40dvh; gap: 14px; color: var(--sub); }
#app > .loading { min-height: 80dvh; }
.spin { width: 28px; height: 28px; border-radius: 14px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 작은 도움 */
.mt { margin-top: 12px; }
.center { text-align: center; }

/* 유리 흐림을 못 쓰는 폰 = 조금 더 진한 남색 판으로 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .toast, .sheet { background: rgba(64, 82, 104, .95); }
  .card, .row-card, .stat-tile, .list .item, .chips-row, .empty { background: rgba(70, 88, 110, .5); }
  .hero .round, .hero .glass, .hero .list .item, .pad button { background: rgba(40, 56, 74, .42); }
}
@media (prefers-reduced-motion: reduce) { .spin, .skel { animation: none; } }

/* ── 채팅 화면 (10-26 사장님 "하단 메뉴 · 채팅 누르면 메타챗") — 본사 메신저 부품을 머리와 아래 탭 사이에 꽉 채움 · 스크롤은 부품 안에서만 ── */
main.chat { padding: 4px 16px calc(var(--nav-h) + var(--nav-lift) + var(--safe-b) + 12px); height: calc(100dvh - var(--top-h) - var(--safe-t)); display: flex; flex-direction: column; }
.chat-wrap { position: relative; flex: 1; min-height: 0; border-radius: var(--r); overflow: hidden; background: #f2f3f6; box-shadow: 0 18px 40px -24px rgba(8, 20, 36, .6); }
.chat-wrap > .loading { position: absolute; inset: 0; min-height: 0; display: grid; place-items: center; color: #334155; }
.chat-root { position: absolute; inset: 0; }
.chat-fail { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; color: #1c2c40; padding: 24px; line-height: 1.6; }
.chat-fail .btn { justify-self: center; }
.chat-fail small { display: block; color: #64748b; font-size: 12px; word-break: break-all; }
.chat-state { flex: none; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; line-height: 1.5; }
.chat-state[hidden] { display: none; }

/* ── 홈 카드 묶음 (10-27 사장님 "시작 화면이 들어가면 카드처럼 · 메뉴들이나 프로젝트별로") — 묶음 제목 + 2열 카드 · 밖 사이트·허브 탭 카드는 a 꼴 · 준비 중은 흐리게 · 한 글자 색 네모 ── */
a.work-tile { text-decoration: none; }
.co-card .card-head.group { margin: 0; }
.co-card .card-head.group.mt { margin-top: 20px; }
.co-card .card-head.group b { font-size: 17px; }
.work-tiles.tight { margin-top: 12px; }
.work-tile .w-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 18px; }
.work-tile.soon { opacity: .6; cursor: default; }
.work-tile.soon:active { background: rgba(255, 255, 255, .12); }
.work-tile .soon-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); white-space: nowrap; }
