/* 만지작 농가 PWA — 안드로이드 앱(mzzClient) 디자인과 동일하게
 *  헤더 남색 #2F4C6A · 목록 배경 진청록 #154051 · 흰 카드 · 회색 타일 #EEEEEE · 선택 청록 #00B8AC */
:root {
	--navy: #2F4C6A;          /* 헤더, 하단 큰 버튼 */
	--teal-dark: #154051;     /* 목록 배경, 채널 칩, 카드 아이콘 버튼 */
	--tile: #EEEEEE;
	--form-bg: #F1F5F8;
	--select: #00B8AC;        /* 선택된 항목 */
	--pill: #969696;
	--ink: #333333;
	--ink-2: #555555;
	--muted: #8B8B8B;
	--line: #DADFE3;
	--hi: #FF0000;            /* 상한 초과 */
	--lo: #0090FF;            /* 하한 미만 */
	--danger: #D93025;
	--r: 14px;
	--safe-t: env(safe-area-inset-top, 0px);
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-l: env(safe-area-inset-left, 0px);
	--safe-r: env(safe-area-inset-right, 0px);
	color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--teal-dark); color: var(--ink);
	font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	letter-spacing: -0.01em; overscroll-behavior-y: none;
}
body.bg-form { background: var(--form-bg); }
body.bg-graph { background: #000; overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.muted { color: var(--muted); }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.f { fill: currentColor; stroke: none; }

/* ── 버튼 ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px;
	background: #fff; color: var(--ink); font-weight: 700; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-teal { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-gray { background: #A9A9A9; border-color: #A9A9A9; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 56px; font-size: 19px; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ───────────── 헤더 (앱 공통) ───────────── */
.top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 2px; min-height: calc(60px + var(--safe-t));
	padding: var(--safe-t) calc(6px + var(--safe-r)) 0 calc(10px + var(--safe-l));
	background: var(--navy); color: #fff;
}
.top-title { flex: 1; min-width: 0; margin: 0 0 0 8px; font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-btn { width: 48px; height: 48px; border: 0; border-radius: 10px; background: none; color: #fff; display: grid; place-content: center; flex: none; }
.top-btn:active { background: rgba(255,255,255,.14); }
.top-btn svg.i { width: 30px; height: 30px; }
.top-user, .top-ico { display: grid; place-items: center; flex: none; color: #fff; }
.top-user svg.i { width: 42px; height: 42px; }
.top-ico svg.i { width: 32px; height: 32px; }
.top-btn .dot { position: absolute; }
.bell-off { opacity: .55; }

.main { padding: 10px calc(10px + var(--safe-r)) calc(24px + var(--safe-b)) calc(10px + var(--safe-l)); max-width: 980px; margin: 0 auto; }

/* ───────────── 로그인 ───────────── */
.scr-login {
	min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start;
	padding: calc(40px + var(--safe-t)) calc(18px + var(--safe-r)) calc(28px + var(--safe-b)) calc(18px + var(--safe-l));
}
.login-wrap { width: 100%; max-width: 420px; }
.login-brand { text-align: center; color: #fff; margin-bottom: 22px; }
.login-brand img { border-radius: 22px; background: #fff; }
.login-brand h1 { margin: 12px 0 0; font-size: 30px; }
.login-brand p { margin: 0; opacity: .8; }
.login-card { background: #fff; border-radius: var(--r); padding: 22px 18px; display: grid; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { font-weight: 700; color: var(--ink-2); font-size: 16px; }
.fld input, .inp {
	width: 100%; min-height: 54px; padding: 0 14px; border: 1.5px solid #B9C2C9; border-radius: 8px;
	background: #fff; font-size: 19px; outline: none;
}
.fld input:focus, .inp:focus { border-color: var(--navy); }
.pw-box { position: relative; display: block; }
.pw-box input { padding-right: 72px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-size: 15px; }
.login-err { margin: -4px 0 0; color: var(--danger); font-weight: 700; font-size: 16px; }
.install-guide { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); background: rgba(255,255,255,.1); color: #fff; }
.install-guide h2 { margin: 0 0 8px; font-size: 17px; }
.install-guide ol { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 4px; }
.install-guide p { margin: 0; font-size: 14px; opacity: .85; }
.ico-share { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.2); font-weight: 800; }

/* ───────────── 메뉴 ───────────── */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.drawer-box {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(330px, 70vw); min-width: 270px; background: #fff; overflow-y: auto;
	padding: 0 0 calc(16px + var(--safe-b)) 0; display: flex; flex-direction: column;
	animation: drawerIn .2s ease-out; box-shadow: 4px 0 18px rgba(0,0,0,.25);
}
@keyframes drawerIn { from { transform: translateX(-100%); } }
.drawer-head { position: relative; padding: calc(28px + var(--safe-t)) 20px 22px calc(22px + var(--safe-l)); background: #00897B; color: #fff; }
.drawer-avatar { width: 76px; height: 84px; display: block; margin-bottom: 10px; }
.drawer-head b { display: block; font-size: 21px; font-weight: 800; }
.drawer-hi { display: block; font-size: 15px; opacity: .9; margin-top: 2px; }
.drawer-logout { position: absolute; right: 14px; top: calc(24px + var(--safe-t)); display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.75); color: #00796B; font-size: 15px; font-weight: 800; }
.drawer-logout svg.i { width: 20px; height: 20px; }
.drawer-item { display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 0 18px 0 calc(22px + var(--safe-l)); border: 0; background: none; text-align: left; text-decoration: none; font-size: 18px; font-weight: 500; color: #222; width: 100%; }
.drawer-item svg.i { width: 30px; height: 30px; flex: none; color: #111; }
.drawer-item span { flex: 1; }
.drawer-item:active { background: #F0F4F7; }
.drawer-item.on { background: #E3F0FB; color: #1E6FC4; font-weight: 700; border-radius: 0 8px 8px 0; }
.drawer-item.on svg.i { color: #1E6FC4; }
.new { flex: none; padding: 3px 12px; border-radius: 6px; background: #9B1BEA; color: #fff; font-size: 14px; font-style: normal; font-weight: 600; }
.drawer-sep { height: 1px; background: #DDD; margin: 8px 0; }

/* ───────────── 공지 / 알림 안내 ───────────── */
.notice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin-bottom: 10px; background: #fff; border-radius: 10px; text-decoration: none; overflow: hidden; }
.notice-tag { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--teal-dark); color: #fff; font-size: 13px; font-weight: 800; }
.notice-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.notice-date { flex: none; color: var(--muted); font-size: 13px; }
.fade { animation: fadeUp .35s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.push-card { display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--r); background: #fff; border-left: 6px solid var(--select); }
.push-card b { font-size: 17px; color: var(--teal-dark); }
.push-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.push-card .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────────── 내가 만든 차트 ───────────── */
.list-tools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 2px 8px; color: rgba(255,255,255,.75); font-size: 14px; }
.list-tools .upd { margin-right: auto; }
.link-btn { min-height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: none; color: #fff; font-size: 14px; font-weight: 700; }
.charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card { min-width: 0; }
.card { background: #fff; border-radius: var(--r); padding: 10px 10px 12px; }
.card-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px 4px; min-height: 44px; }
.card-head .ci { display: grid; place-items: center; flex: none; color: var(--teal-dark); }
.card-head .ci svg.i { width: 26px; height: 26px; }
.card-title { flex: 1; min-width: 0; margin: 0 0 0 2px; font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--teal-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-btn { width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--teal-dark); color: #fff; display: grid; place-content: center; flex: none; }
.sq-btn:active { background: #0D2C38; }
.sq-btn svg { width: 22px; height: 22px; }
.sq-btn[disabled] { opacity: .3; pointer-events: none; }

.feeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 330px) { .feeds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .feeds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feeds { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.feed { position: relative; border-radius: 7px; overflow: hidden; background: var(--tile); min-width: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.feed-che { display: block; padding: 4px 4px; background: var(--teal-dark); color: #fff; font-size: 15px; font-weight: 500; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-che.other { background: #3A3F73; color: #fff; }
.feed-che.other svg.i { width: 13px; height: 13px; margin-right: 4px; vertical-align: -1px; opacity: .85; }
.feed-nm { display: block; margin-top: 6px; padding: 0 4px; color: var(--ink-2); font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-val { display: block; padding: 0 2px; font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.feed-val.hi { color: var(--hi); }
.feed-val.lo { color: var(--lo); }
.feed-time { display: block; padding: 0 8px 6px; color: var(--muted); font-size: 13px; font-style: italic; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time.stale { color: #B0B0B0; }
/* 항목 순서 편집 */
.card.feed-sorting .feed { outline: 2px dashed var(--select); outline-offset: -2px; }
.feed-move { display: none; position: absolute; inset: auto 0 0 0; justify-content: space-between; padding: 4px; }
.card.feed-sorting .feed-move { display: flex; }
.feed-move button { width: 40px; height: 34px; border: 0; border-radius: 7px; background: var(--teal-dark); color: #fff; display: grid; place-content: center; }
.feed-move button[disabled] { opacity: .25; }
.feed-move svg { width: 20px; height: 20px; }
.card.feed-sorting .feed-time { visibility: hidden; }
.order-bar { display: flex; gap: 6px; margin-top: 10px; }
.order-bar .btn { flex: 1; min-height: 50px; border-radius: 9px; }
.hint-line { margin: 8px 2px 0; font-size: 13px; color: var(--muted); text-align: center; }

/* 차트 순서 바꾸기 */
.card.sorting .feeds, .card.sorting .hint-line { display: none; }
.card.sorting .card-head { margin-bottom: 2px; }
.sort-bar { position: sticky; bottom: calc(10px + var(--safe-b)); z-index: 10; display: flex; gap: 8px; padding: 10px; margin-top: 12px; background: #fff; border-radius: var(--r); box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.sort-bar .btn { flex: 1; }

/* 떠 있는 차트 추가 버튼 */
.fab {
	position: fixed; right: calc(16px + var(--safe-r)); bottom: calc(18px + var(--safe-b)); z-index: 30;
	display: inline-flex; align-items: center; gap: 6px; height: 58px; padding: 0 24px 0 18px; border-radius: 29px;
	background: var(--select); color: #fff; font-size: 19px; font-weight: 800; text-decoration: none;
	box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.fab:active { transform: scale(.97); }
.fab svg.i { width: 26px; height: 26px; }
.main { padding-bottom: calc(96px + var(--safe-b)); }

/* 추가 카드 (점선) */
.add-card {
	display: grid; justify-items: center; gap: 14px; padding: 36px 16px; margin-top: 12px;
	border: 3px dashed #C9C9C9; border-radius: 22px; color: #D0D0D0; text-decoration: none; text-align: center;
}
.add-card:active { background: rgba(255,255,255,.05); }
.add-card svg { width: 80px; height: 80px; }
.add-card b { font-size: 18px; font-weight: 800; color: #D6D6D6; word-break: keep-all; }

.empty-dark { text-align: center; padding: 30px 20px 10px; color: rgba(255,255,255,.8); }
.skel { height: 200px; border-radius: var(--r); background: rgba(255,255,255,.12); animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
.soon { text-align: center; padding: 64px 20px; background: #fff; border-radius: var(--r); }
.soon b { display: block; font-size: 20px; margin-bottom: 8px; }

/* ───────────── 차트 만들기 / 수정 ───────────── */
.form-main { padding: 14px calc(14px + var(--safe-r)) calc(110px + var(--safe-b)) calc(14px + var(--safe-l)); max-width: 980px; margin: 0 auto; }
.float-fld { position: relative; margin: 6px 6px 16px; }
.float-fld input { width: 100%; min-height: 62px; padding: 10px 14px 0; border: 1.5px solid #9AA3AA; border-radius: 6px; background: transparent; font-size: 21px; text-align: center; outline: none; }
.float-fld input:focus { border-color: var(--navy); }
.float-fld label { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); padding: 0 8px; background: var(--form-bg); color: #A7AEB4; font-size: 15px; white-space: nowrap; }
.pill { display: block; width: fit-content; min-width: 200px; margin: 0 auto 14px; padding: 10px 26px; border-radius: 14px; background: var(--pill); color: #fff; font-size: 20px; font-weight: 800; text-align: center; }
.node-card { background: #fff; border-radius: var(--r); padding: 14px 14px 16px; margin-bottom: 14px; }
.node-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px 2px; font-size: 21px; font-weight: 800; color: #444; }
.node-title svg { width: 32px; height: 32px; flex: none; }
.node-title small { font-size: 14px; color: var(--muted); font-weight: 600; }
.feed-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .feed-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feed-picks { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pick { min-height: 60px; padding: 4px 6px; border: 0; border-radius: 7px; background: var(--tile); color: var(--ink); font-size: 17px; line-height: 1.2; word-break: keep-all; }
.pick.on { background: var(--select); color: #fff; font-weight: 700; }
.pick:active { filter: brightness(.95); }
.node-empty { padding: 26px 12px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--r); margin-bottom: 14px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; justify-content: center; gap: 8px; padding: 12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l)); background: #fff; border-top: 1px solid var(--line); }
.bottom-bar .btn { min-width: 220px; min-height: 58px; border-radius: 14px; font-size: 20px; }
.sel-count { position: absolute; left: calc(16px + var(--safe-l)); top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); }
@media (max-width: 420px) { .sel-count { display: none; } }

/* ───────────── 그래프 ───────────── */
.graph-scr { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; }
.graph-top {
	display: flex; align-items: center; gap: 2px; min-height: calc(56px + var(--safe-t));
	padding: var(--safe-t) calc(6px + var(--safe-r)) 0 calc(6px + var(--safe-l)); background: var(--navy); color: #fff; flex: none;
}
.graph-title { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: #fff; font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; gap: 4px; }
.graph-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graph-title svg { width: 18px; height: 18px; flex: none; opacity: .8; }
@media (max-width: 480px) { .graph-title { font-size: 17px; justify-content: flex-start; } .term-btn { padding: 0 6px 0 8px; font-size: 14px; } .graph-top .top-btn { width: 42px; } }
.term-btn { height: 40px; padding: 0 10px 0 12px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 8px; background: none; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 4px; flex: none; }
.term-btn svg { width: 16px; height: 16px; }
.graph-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(118px, 19%) 1fr; }
.legend { background: #000; color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: var(--safe-b); padding-left: var(--safe-l); }
.lg-time { padding: 5px 8px; font-size: 12px; color: #9AA; border-bottom: 1px solid #333; font-variant-numeric: tabular-nums; min-height: 26px; white-space: nowrap; overflow: hidden; }
.lg-item { width: 100%; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 10px; border: 0; border-bottom: 1px solid #3A3A3A; background: #000; color: inherit; text-align: center; }
.lg-item.off { background: #7B7B7B; }
.lg-name { flex: 1; min-width: 0; display: grid; font-weight: 700; line-height: 1.2; }
.lg-name small { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-name span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-val { flex: none; min-width: 40px; font-size: 18px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.plot-wrap { position: relative; background: #fff; min-width: 0; min-height: 0; touch-action: pan-y; }
.plot { position: absolute; inset: 0 2px 0 0; }
.plot-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 20px; }
.rotate-hint { display: none; }
@media (orientation: portrait) {
	.graph-body { grid-template-columns: 1fr; grid-template-rows: minmax(240px, 1fr) auto; }
	.plot-wrap { order: 1; }
	.legend { order: 2; max-height: 30vh; display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
	.lg-time { grid-column: 1 / -1; }
	.lg-item { border-right: 1px solid #3A3A3A; padding: 5px 6px 5px 10px; }
	.lg-name span { font-size: 14px; }
	.lg-val { font-size: 17px; min-width: 40px; }
	.rotate-hint { display: block; position: absolute; right: 12px; top: 8px; z-index: 2; font-size: 12px; color: #999; background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 10px; }
}
.u-legend { display: none; }
.u-cursor-x { border-right: 3px solid #FF0000 !important; }
.cursor-tag { position: absolute; top: 0; padding: 4px 10px; background: rgba(40,40,40,.85); color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; z-index: 5; }
.uplot { font-family: inherit; }

/* 팝오버 (기간 선택, 차트 선택) */
.pop { position: fixed; z-index: 60; min-width: 190px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.35); padding: 6px 0; }
.pop button { display: block; width: 100%; min-height: 50px; padding: 0 22px; border: 0; background: none; text-align: left; font-size: 18px; font-weight: 700; color: #222; }
.pop button.on { color: var(--select); }
.pop button:active { background: var(--form-bg); }
.pop-dim { position: fixed; inset: 0; z-index: 59; }

/* ───────────── 그래프 항목 설정 ───────────── */
.gs-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) { .gs-list { grid-template-columns: 1fr 1fr; } }
.gs-item { display: grid; grid-template-columns: minmax(110px, 1.2fr) 78px 1fr 1fr; gap: 8px; align-items: end; background: #fff; border-radius: var(--r); padding: 10px; }
.gs-chip { grid-row: 1 / span 2; align-self: stretch; display: grid; place-content: center; text-align: center; padding: 8px 6px; border-radius: 12px; background: #000; font-weight: 700; line-height: 1.25; }
.gs-chip span { font-size: 18px; }
.gs-chip small { font-size: 14px; }
.gs-lbl { font-size: 14px; color: var(--ink-2); text-align: center; align-self: end; }
.gs-lbl.span2 { grid-column: span 2; }
.gs-color { height: 54px; border: 0; border-radius: 2px; }
.gs-num { position: relative; }
.gs-num input { width: 100%; height: 54px; padding: 12px 8px 0; border: 1.5px solid #A5ADB3; border-radius: 6px; text-align: right; font-size: 20px; outline: none; background: #fff; }
.gs-num input:focus { border-color: var(--navy); }
.gs-num label { position: absolute; left: 8px; top: -9px; padding: 0 4px; background: #fff; font-size: 13px; color: #A7AEB4; }
.gs-num input.bad { border-color: var(--danger); }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.palette button { height: 52px; border-radius: 8px; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.palette button.on { border-color: var(--navy); }

/* ───────────── 시트 (기간·간격 설정, 알림) ───────────── */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sheet-box { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 18px calc(18px + var(--safe-r)) calc(18px + var(--safe-b)) calc(18px + var(--safe-l)); animation: up .18s ease-out; }
@media (orientation: landscape) and (min-width: 600px) { .sheet { align-items: center; } .sheet-box { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-box h2 { margin: 0 0 14px; font-size: 20px; color: var(--navy); }
.sheet-row { display: grid; gap: 6px; margin-bottom: 14px; }
.sheet-row > span { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.sheet-row .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.sheet-row select, .sheet-row input { width: 100%; min-height: 50px; padding: 0 12px; border: 1.5px solid #B9C2C9; border-radius: 8px; background: #fff; font-size: 18px; }
.sheet-row .unit { display: flex; align-items: center; gap: 6px; }
.sheet-row .unit input { text-align: right; }
.sheet-note { margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.term-grid button { min-height: 46px; border: 1.5px solid #B9C2C9; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 700; }
.term-grid button.on { background: var(--select); border-color: var(--select); color: #fff; }
.sheet-btns { display: flex; gap: 8px; margin-top: 6px; }
.sheet-btns .btn { flex: 1; }

/* ───────────── 모달 / 토스트 ───────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-box { position: relative; width: 100%; max-width: 380px; padding: 24px 22px 14px; background: #fff; border-radius: 6px; animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.modal-box h2 { margin: 0 0 10px; font-size: 21px; }
.modal-box p { margin: 0 0 18px; color: var(--ink-2); white-space: pre-line; font-size: 17px; }
.modal-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-content: center; background: #FDE8E6; color: var(--danger); }
.modal-box.has-ico { text-align: center; border-radius: 16px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 4px; }
.modal-btns .mb { min-height: 46px; padding: 0 16px; border: 0; background: none; color: #00897B; font-size: 17px; font-weight: 700; border-radius: 6px; }
.modal-btns .mb.danger { color: var(--danger); }
.modal-btns .mb:active { background: var(--form-bg); }
.modal-box.has-ico .modal-btns { flex-direction: column; align-items: stretch; }
.modal-box.has-ico .modal-btns .mb { border: 1px solid var(--line); }
.modal-box.has-ico .modal-btns .mb.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); z-index: 90; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 24px; background: rgba(40,40,40,.92); color: #fff; font-size: 15px; font-weight: 600; animation: pop .16s ease-out; text-align: center; }
.toast.err { background: var(--danger); }
.loading { position: fixed; inset: 0; z-index: 85; display: grid; place-content: center; background: rgba(0,0,0,.15); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.4); border-top-color: var(--select); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── 기간설정 창 (안드로이드 "차트 설정") ───────────── */
.dlg { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; }
.dlg-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.dlg-box { position: relative; width: 100%; max-width: 560px; background: #EEEEEE; box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: pop .16s ease-out; overflow: hidden; }
.dlg-head { display: flex; align-items: center; justify-content: center; position: relative; min-height: 64px; background: var(--navy); color: #fff; }
.dlg-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.dlg-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: none; color: #fff; display: grid; place-content: center; }
.dlg-x svg.i { width: 32px; height: 32px; }
.dlg-body { padding: 18px 16px; }
.dlg-card { background: #fff; border-radius: 14px; padding: 14px 14px 18px; text-align: center; }
.dlg-card > b { display: block; margin-bottom: 12px; font-size: 19px; font-weight: 600; }
.date-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.date-fld { position: relative; display: block; }
.date-fld input { width: 100%; min-height: 56px; padding: 0 12px; border: 1.5px solid #9AA3AA; border-radius: 6px; background: #fff; font-size: 18px; color: #222; -webkit-appearance: none; appearance: none; text-align: left; }
.date-fld span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #A7AEB4; font-size: 18px; pointer-events: none; background: #fff; padding: 0 4px; line-height: 1; }
.date-fld.has span, .date-fld input:focus + span { top: 0; font-size: 12px; }
.date-fld input::-webkit-datetime-edit { color: transparent; }
.date-fld.has input::-webkit-datetime-edit, .date-fld input:focus::-webkit-datetime-edit { color: #222; }
.dlg-btns { display: grid; grid-template-columns: 1fr 1fr; }
.dlg-btns button { min-height: 64px; border: 0; font-size: 19px; font-weight: 800; color: #fff; }
.dlg-ok { background: var(--navy); }
.dlg-cancel { background: #A9A9A9; }

/* ───────────── 다이어그램 (안드로이드 PageActivity2) ───────────── */
.dia-scr { display: flex; flex-direction: column; height: calc(100vh - 60px - var(--safe-t)); height: calc(100dvh - 60px - var(--safe-t)); }
.dia-nodes { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px calc(8px + var(--safe-r)) 8px calc(8px + var(--safe-l)); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.dia-nodes::-webkit-scrollbar { display: none; }
.dia-chip { flex: none; display: flex; align-items: stretch; border-radius: 8px; overflow: hidden; background: #fff; }
.dia-chip.on { background: var(--select); color: #fff; }
.dia-chip.off { opacity: .55; }
.dia-name { min-height: 44px; padding: 0 6px 0 14px; border: 0; background: none; color: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; }
.dia-name small { font-weight: 500; font-size: 12px; opacity: .8; }
.dia-eye { width: 40px; border: 0; border-left: 1px solid rgba(0,0,0,.1); background: none; color: inherit; display: grid; place-content: center; }
.dia-eye svg.i { width: 20px; height: 20px; }
.dia-board { position: relative; flex: 1; min-height: 200px; margin: 0 calc(8px + var(--safe-r)) calc(8px + var(--safe-b)) calc(8px + var(--safe-l)); border-radius: 6px; overflow: hidden; background: #2F7DC0 url(/Apple/img/diagram.jpg) center / 100% 100% no-repeat; }
.dia-pts { position: absolute; inset: 0; }
.dia-pt { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.4); z-index: 2; }
.dia-pt::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }   /* 손가락으로 누르기 쉽게 */
.dia-pt.on { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #FF3B30; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,59,48,.4), 0 1px 5px rgba(0,0,0,.5); z-index: 3; }
.dia-pt.on .dia-lbl { font-size: 13px; }
.dia-lbl { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap; color: #fff; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 4px rgba(0,0,0,.6); pointer-events: none; }
.hdg { position: absolute; left: 8px; top: 8px; z-index: 4; width: clamp(150px, 42%, 260px); pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.hdg svg { display: block; width: 100%; height: auto; overflow: visible; }
.hdg circle { fill: #fff; }
.hdg text { fill: #fff; font-size: 22px; font-weight: 800; font-family: inherit; }
.hc { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .25; animation: hcMove 1.1s infinite; }
.hc1 { animation-delay: .25s; }
.hc2 { animation-delay: .5s; }
@keyframes hcMove { 0%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hc { animation: none; opacity: 1; } }
.dv-name small { font-size: 13px; font-weight: 600; opacity: .9; }
.dia-ax { position: absolute; z-index: 1; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }
.dia-ax { right: 8px; top: 6px; font-size: 11px; }
.dia-val { position: absolute; left: 8px; bottom: 8px; z-index: 5; min-width: 230px; padding: 10px 14px 12px; border-radius: 10px; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.dv-name { display: block; font-size: 22px; font-weight: 800; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.dv-grid { display: grid; grid-template-columns: repeat(4, auto); column-gap: 16px; }
.dv-grid span { font-size: 13px; color: rgba(255,255,255,.8); }
.dv-grid b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.dia-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; font-weight: 700; padding: 20px; background: rgba(0,0,0,.25); z-index: 6; }
@media (orientation: landscape) {
	.dia-scr { flex-direction: row; }
	.dia-nodes { flex-direction: column; overflow-x: hidden; overflow-y: auto; width: min(26%, 220px); padding: 8px 6px calc(8px + var(--safe-b)) calc(8px + var(--safe-l)); }
	.dia-chip { width: 100%; }
	.dia-name { flex: 1; text-align: left; white-space: normal; padding: 6px 4px 6px 12px; }
	.dia-board { margin: 8px calc(8px + var(--safe-r)) calc(8px + var(--safe-b)) 0; }
}

/* ───────────── 데이터 공유 ───────────── */
.sec-title { margin: 14px 4px 2px; color: #fff; font-size: 19px; font-weight: 800; }
.sec-title:first-child { margin-top: 4px; }
.sec-desc { margin: 0 4px 10px; color: rgba(255,255,255,.7); font-size: 14px; }
.sh-cnt { flex: none; padding: 4px 10px; border-radius: 12px; background: #E6EEF0; color: var(--teal-dark); font-size: 14px; font-weight: 700; }
.sh-ches { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 2px; }
.sh-che { display: inline-flex; align-items: center; gap: 2px; min-height: 42px; padding: 0 4px 0 12px; border-radius: 8px; background: var(--teal-dark); color: #fff; font-size: 16px; font-weight: 600; }
.sh-che:not(:has(button)) { padding-right: 12px; }
.sh-che.stop { background: #8FA3AC; }
.sh-che small { font-size: 12px; opacity: .85; }
.sh-che button { width: 36px; height: 36px; border: 0; border-radius: 6px; background: none; color: #fff; display: grid; place-content: center; }
.sh-che button:active { background: rgba(255,255,255,.15); }
.sh-che button svg.i { width: 16px; height: 16px; }
.sh-che.on { background: var(--select); }
.sa-search { display: flex; gap: 8px; margin-bottom: 12px; }
.sa-search .inp { flex: 1; min-width: 0; font-size: 17px; }
.sa-search .btn { width: 58px; padding: 0; min-height: 54px; }
.sa-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.sa-picked:empty { display: none; }
.sa-picked > b { width: 100%; font-size: 14px; color: var(--ink-2); }
.sa-node { display: grid; align-content: center; gap: 2px; }
.sa-node b { font-weight: inherit; }
.sa-node small { font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
/* 검색 결과는 한 줄에 한 명 — 긴 농가 이름도 잘리지 않게 */
.feed-picks.sa-found { grid-template-columns: 1fr; }
.sa-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 16px; text-align: left; }
.sa-person b { flex: 1; min-width: 0; font-size: 17px; word-break: keep-all; overflow-wrap: anywhere; }
.sa-person small { flex: none; font-size: 13px; opacity: .75; text-align: right; }

/* ───────────── HD/VPD 계산기 (앱 content_hd_vpd) ───────────── */
.hv { max-width: 620px; padding-bottom: calc(40px + var(--safe-b)); }
.hv-title { margin: 4px 0 14px; text-align: center; color: var(--navy); font-size: 23px; font-weight: 800; }
.hv-card { padding: 8px 16px 10px; }
.hv-row { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(0, 150px) 40px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #EEF1F4; }
.hv-lbl { font-size: 18px; font-weight: 700; color: #000; word-break: keep-all; }
.hv-inp { display: flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.hv-inp:focus-within { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(47,76,106,.15); }
.hv-inp input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 12px; background: none; font-size: 20px; text-align: right; color: #000; font-variant-numeric: tabular-nums; outline: none; }
.hv-inp input::placeholder { color: #B5BDC4; font-size: 16px; }
.hv-pm { flex: none; width: 40px; height: 100%; border: 0; border-right: 1px solid var(--line); background: #F4F6F8; color: var(--navy); font-size: 19px; font-weight: 800; }
.hv-pm:active { background: #E2E8ED; }
.hv-unit { font-size: 18px; color: #000; }
.hv-ck { display: flex; align-items: center; gap: 10px; min-height: 54px; font-size: 18px; font-weight: 700; color: #000; cursor: pointer; }
.hv-ck input { width: 24px; height: 24px; accent-color: var(--navy); }
.hv-leaf { margin-top: -2px; }
.hv-leaf .hv-row:last-child { border-bottom: 0; }
.hv-go { display: block; width: 100%; min-height: 60px; margin: 4px 0 18px; border: 3px solid #FFE688; border-radius: 15px; background: var(--navy); color: #FFE688; font-size: 21px; font-weight: 800; }
.hv-go:active { filter: brightness(1.15); }
.hv-go.done { border-color: var(--navy); color: #fff; }
.hv-go:disabled { opacity: .7; }
.hv-res { scroll-margin-top: 70px; }
.hv-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px 12px 0 0; overflow: hidden; }
.hv-tabs button { min-height: 52px; border: 0; background: #C0C0C0; color: #fff; font-size: 21px; font-weight: 800; }
.hv-tabs button.on { background: var(--navy); }
.hv-unitline { padding: 8px 4px 6px; text-align: right; font-size: 16px; color: #000; }
.hv-box { background: #fff; border: 1px solid var(--navy); border-radius: 10px; padding: 2px 14px; margin-bottom: 12px; }
.hv-item { display: grid; grid-template-columns: 74px 1fr; grid-template-areas: "k v" "d d"; align-items: baseline; gap: 2px 8px; padding: 12px 0; border-bottom: 1px solid #EEF1F4; }
.hv-item:last-child { border-bottom: 0; }
.hv-k { grid-area: k; font-size: 19px; color: #000; }
.hv-v { grid-area: v; text-align: right; font-size: 24px; font-weight: 800; color: #F39A3C; font-variant-numeric: tabular-nums; }
.hv-v small { margin-left: 4px; font-size: 14px; font-weight: 600; color: #777; }
.hv-d { grid-area: d; font-size: 16px; color: #333; }
.hv-item.off .hv-k, .hv-item.off .hv-d, .hv-item.off .hv-v { color: #CDCDCD; }
@media (min-width: 560px) {
	.hv-item { grid-template-columns: 80px 1fr 110px; grid-template-areas: "k d v"; }
	.hv-d { font-size: 17px; }
}

/* ───────────── 내노드 설정 (노드 + 항목 한 화면) ───────────── */
.nd { max-width: 720px; }
.nd-help { margin: -6px 4px 14px; text-align: center; font-size: 15px; color: var(--ink-2); word-break: keep-all; }
.nd-search { display: flex; align-items: center; gap: 8px; height: 52px; margin-bottom: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #7A8790; }
.nd-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 17px; outline: none; }
.nd-none { padding: 40px 10px; text-align: center; color: var(--ink-2); font-size: 17px; }
.nd-card { background: #fff; border-radius: var(--r); margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow: hidden; }
.nd-card.open { box-shadow: 0 0 0 2px var(--navy); }
.nd-head { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 10px 6px 10px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nd-head:active { background: #F4F7F9; }
.nd-no { flex: none; min-width: 64px; padding: 6px 8px; border-radius: 8px; background: #E9EEF2; color: var(--navy); font-size: 15px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.nd-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nd-name { font-size: 19px; font-weight: 800; color: #111; overflow-wrap: anywhere; }
.nd-name.chg::after, .nd-feed.chg .nd-fname span::after { content: ' •'; color: #F39A3C; }
.nd-sum { font-size: 14px; color: #6B7780; }
.nd-sum.err { color: #D9534F; }
.nd-on { color: var(--select); }
.nd-bad { color: #D9534F; }
.nd-pen { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: #7A8790; display: grid; place-content: center; }
.nd-pen:active { background: #E9EEF2; }
.nd-pen svg.i { width: 22px; height: 22px; }
.nd-caret { flex: none; width: 26px; height: 26px; color: var(--navy); transition: transform .18s; }
.nd-card.open .nd-caret { transform: rotate(180deg); }
.nd-body { border-top: 1px solid #E6EBEF; background: #F7F9FB; padding: 6px 10px 12px; }
.nd-empty { margin: 12px 6px; }
.nd-feed { background: #fff; border: 1px solid #E3E8EC; border-radius: 12px; margin-top: 8px; padding: 6px 8px 6px 4px; }
.nd-feed.on { border-color: rgba(0,184,172,.55); }
.nd-feed.bad { border-color: #E57373; background: #FFF6F6; }
.nd-frow { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.nd-fname { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 8px; border: 0; border-radius: 8px; background: none; text-align: left; color: #111; font-size: 17px; font-weight: 700; }
.nd-fname span { overflow-wrap: anywhere; }
.nd-fname svg.i { flex: none; width: 16px; height: 16px; color: #9AA5AD; }
.nd-fname:active { background: #EEF2F5; }
.nd-dec { flex: none; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.sw { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 6px; border: 0; border-radius: 22px; background: #E3E7EA; color: #6B7780; font-size: 14px; font-weight: 800; }
.sw i { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #B9C2C9; transition: background .15s; }
.sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw em { font-style: normal; min-width: 52px; text-align: left; }
.sw.on { background: rgba(0,184,172,.14); color: #00897F; }
.sw.on i { background: var(--select); }
.sw.on i::after { transform: translateX(16px); }
.nd-range { display: flex; align-items: flex-end; gap: 6px; padding: 2px 4px 6px 8px; }
.nd-range label { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nd-range label span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nd-range input { width: 100%; height: 48px; padding: 0 10px; border: 1.5px solid #B9C2C9; border-radius: 8px; background: #fff; font-size: 19px; text-align: right; font-variant-numeric: tabular-nums; }
.nd-range input:focus { outline: none; border-color: var(--navy); }
.nd-tilde { padding-bottom: 12px; color: #7A8790; font-weight: 700; }
.nd-pm { flex: none; width: 44px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #F4F6F8; color: var(--navy); font-size: 18px; font-weight: 800; }
.nd-prob { margin: 0 8px 4px; color: #D9534F; font-size: 14px; font-weight: 700; }
.nd-allbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.nd-allbtns .btn { min-height: 40px; font-size: 14px; }
body.nd-dirty .form-main.nd { padding-bottom: calc(110px + var(--safe-b)); }
.nd-bar .btn { min-width: 0; flex: 1; max-width: 300px; }
.nd-bar #ndUndo { flex: 0 0 auto; min-width: 110px; }

/* ───────────── 온도요구도 (앱 chill_* 색상) ───────────── */
body.bg-chill { background: #F5F4EF; }
.ch { --c-bg: #F5F4EF; --c-tint: #F0EEE6; --c-line: #E2E0D6; --c-line2: #C9C6B8; --c-t1: #1F1E1B; --c-t2: #615F57; --c-t3: #8B897F; --c-acc: #2F6FB0; --c-acc-t: #E5EFF8; --c-acc-x: #1E4E80; --c-warn: #B9791A; --c-warn-t: #FBF0DD; --c-warn-x: #7A4F0F; --c-dan: #B03A2F; --c-dan-t: #F9E8E6; --c-ok: #2E7D4F; --c-ok-t: #E4F2EA; --c-gdd: #C98500; color: var(--c-t1); }
.ch-sel { display: flex; gap: 8px; padding: 12px calc(12px + var(--safe-r)) 0 calc(12px + var(--safe-l)); max-width: 820px; margin: 0 auto; }
.ch-pick { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 6px 10px; border: 1px solid var(--c-line2); border-radius: 12px; background: #fff; }
.ch-pick span { font-size: 12px; font-weight: 700; color: var(--c-t3); }
.ch-pick select { width: 100%; min-height: 32px; border: 0; background: transparent; font-size: 17px; font-weight: 700; color: var(--c-t1); -webkit-appearance: none; appearance: none; padding-right: 18px; background-image: linear-gradient(45deg, transparent 50%, #8B897F 50%), linear-gradient(135deg, #8B897F 50%, transparent 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; }
.ch-help { flex: none; width: 56px; border: 1px solid var(--c-line2); border-radius: 12px; background: #fff; color: var(--c-acc); font-size: 24px; font-weight: 800; }
.ch-help.wide { flex: 1; width: auto; min-height: 52px; font-size: 18px; }
.ch-tabs { position: sticky; top: calc(60px + var(--safe-t)); z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: 10px auto 0; padding: 0 calc(12px + var(--safe-r)) 0 calc(12px + var(--safe-l)); background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.ch-tabs button { min-height: 50px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--c-t3); font-size: 17px; font-weight: 800; }
.ch-tabs button.on { color: var(--c-acc-x); border-bottom-color: var(--c-acc); }
.ch-main { max-width: 820px; margin: 0 auto; padding: 12px calc(12px + var(--safe-r)) calc(40px + var(--safe-b)) calc(12px + var(--safe-l)); }
.ch-load { padding: 40px 10px; text-align: center; color: var(--c-t3); font-size: 16px; }
.ch-load.sm { padding: 24px 0; }
.ch-load .btn { margin-left: 8px; }
.ch .muted { color: var(--c-t3); }
.ch-card { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 16px; margin-bottom: 12px; animation: chUp .45s ease-out both; }
@keyframes chUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ch-head h2 { margin: 0; font-size: 21px; font-weight: 800; }
.ch-line { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
.ch-line em { font-style: normal; color: var(--c-acc); }
.ch-explain { display: flex; gap: 10px; padding: 14px; margin-bottom: 12px; border-radius: 14px; background: var(--c-tint); font-size: 16px; line-height: 1.55; color: var(--c-t2); animation: chUp .45s .08s ease-out both; }
.ch-explain p { margin: 0; }
.ch-explain b { color: var(--c-t1); }
.ch-alert { padding: 14px; margin-bottom: 12px; border-radius: 14px; background: var(--c-warn-t); border: 1px solid #EBD3A8; color: var(--c-warn-x); font-size: 15.5px; line-height: 1.5; }
.ch-alert p { margin: 0 0 10px; }
.ch-alert .btn { background: #fff; border-color: #E2C48D; color: var(--c-warn-x); }
.ch-link { display: block; width: 100%; margin: 0 0 12px; padding: 12px 4px; border: 0; background: none; text-align: right; color: var(--c-acc); font-size: 16px; font-weight: 700; }
.ch-h { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.ch-h small { font-size: 14px; font-weight: 600; color: var(--c-t3); }
.ch-asof { margin: 0 0 10px; font-size: 13px; color: var(--c-t3); }
.ch-models { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm { min-width: 0; padding: 12px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; }
.cm.featured { border: 2px solid var(--c-acc); background: #F7FAFD; }
.cm-top { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.cm-top b { flex: 1; min-width: 0; font-size: 15px; color: var(--c-t2); word-break: keep-all; }
.cm-top em { flex: none; padding: 2px 7px; border-radius: 8px; background: var(--c-acc); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.cm-i { flex: none; width: 30px; height: 30px; border: 1.5px solid var(--c-line2); border-radius: 50%; background: #fff; color: var(--c-t3); font: italic 800 15px Georgia, serif; }
.cm-val { margin: 6px 0 8px; }
.cm-val b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cm-val small { margin-left: 4px; font-size: 13px; color: var(--c-t3); }
.cm-pct { margin-top: 6px; text-align: right; font-size: 15px; font-weight: 800; color: var(--c-acc-x); font-variant-numeric: tabular-nums; }
.ch-bar { height: 10px; border-radius: 6px; background: var(--c-tint); overflow: hidden; }
.ch-bar i { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--c-acc); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.ch-bar.gdd i { background: var(--c-gdd); }
.ch-warn { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--c-warn-t); color: var(--c-warn-x); font-size: 15px; line-height: 1.5; }
.ch-desc { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--c-t2); }
.ch-gval { margin-bottom: 8px; }
.ch-gval b { font-size: 30px; font-weight: 800; color: var(--c-t3); font-variant-numeric: tabular-nums; }
.ch-gdd.on .ch-gval b { color: var(--c-t1); }
.ch-gval small { margin-left: 6px; font-size: 14px; color: var(--c-t3); }
.ch-bloom { margin-top: 12px; }
.ch-sel-val { min-height: 22px; margin-bottom: 6px; font-size: 14px; color: var(--c-t3); }
.ch-sel-val b { color: var(--c-t1); margin-right: 4px; }
.ch-sel-val span { margin-left: 6px; font-weight: 700; white-space: nowrap; }
.ch-chart { width: 100%; }
.ch-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 8px; font-size: 15px; color: var(--c-t2); }
.ch-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.ch-axis { margin: 8px 0 0; font-size: 13px; color: var(--c-t3); }
.ch-notice { padding: 14px; border-radius: 12px; background: var(--c-acc-t); color: var(--c-acc-x); }
.ch-notice p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.ch-temp { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; }
.ch-meta { margin: 4px 4px 12px; font-size: 13px; color: var(--c-t3); }
.ch-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-foot .btn { min-height: 52px; font-size: 16px; }
/* 처음 사용 안내 */
.ch-guide h2 { margin: 6px 0 2px; font-size: 22px; font-weight: 800; text-align: center; }
.ch-sub { margin: 0 0 14px; text-align: center; color: var(--c-t2); font-size: 16px; }
.ch-step { display: flex; gap: 12px; padding: 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--c-line); background: #fff; }
.ch-step .no { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: var(--c-tint); color: var(--c-t3); font-weight: 800; }
.ch-step.todo { border: 2px solid var(--c-acc); }
.ch-step.todo .no { background: var(--c-acc); color: #fff; }
.ch-step.done { background: var(--c-ok-t); border-color: #BFDDCB; }
.ch-step.done .no { background: var(--c-ok); color: #fff; }
.ch-step b { font-size: 17px; }
.ch-step p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--c-t2); }
.ch-step .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ch-now { margin: 6px 4px 12px; font-size: 14px; color: var(--c-t3); }
.ch-manual { width: 100%; min-height: 52px; }
/* 동 / 시즌 목록 */
.ch-tabhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ch-tabhead h2 { margin: 0; font-size: 19px; font-weight: 800; }
.ch-row { display: flex; align-items: center; gap: 10px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; }
.ch-row.col { flex-direction: column; align-items: stretch; }
.ch-row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ch-row-main b { font-size: 18px; font-weight: 800; }
.ch-row-main span { font-size: 15px; color: var(--c-t2); overflow-wrap: anywhere; }
.ch-row-main span.warn { color: var(--c-dan); }
.ch-row-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-row.col .ch-row-acts .btn { flex: 1; }
.ch .btn.danger, .sheet-box .btn.danger { color: var(--c-dan, #B03A2F); border-color: #E7B9B4; }
.bd { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 8px; font-size: 13px; font-style: normal; vertical-align: 2px; }
.bd.a { background: #E4F2EA; color: #2E7D4F; }
.bd.p { background: #E5EFF8; color: #1E4E80; }
.bd.c { background: #F0EEE6; color: #8B897F; }
.ch-empty { padding: 30px 14px; border: 1.5px dashed var(--c-line2); border-radius: 14px; text-align: center; color: var(--c-t3); font-size: 16px; line-height: 1.5; }
/* 시트 안 */
.ch-info { font-size: 16px; line-height: 1.6; color: #333; margin-bottom: 14px; }
.ch-info .neg { color: #B03A2F; }
.ch-err { min-height: 0; margin: 0 0 10px; color: #B03A2F; font-size: 15px; font-weight: 700; }
.ch-err:empty { display: none; }
.ch-tgt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ch-tgt label { display: grid; gap: 4px; min-width: 0; }
.ch-tgt label.wide { grid-column: 1 / -1; }
.ch-tgt span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ch-tgt input { width: 100%; min-height: 50px; padding: 0 12px; border: 1.5px solid #B9C2C9; border-radius: 8px; font-size: 18px; text-align: right; }
.ch-tgt input::placeholder { font-size: 14px; color: #A6ADB3; }
.ch-nodebar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ch-nodebar b { flex: 1; font-size: 14px; color: var(--ink-2); }
.ch-nodes { display: grid; gap: 6px; }
.ch-node { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border: 1px solid #DADFE3; border-radius: 10px; font-size: 17px; }
.ch-node input { width: 22px; height: 22px; accent-color: #2F6FB0; }
.ch-node i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ch-node i.on { background: #2E7D4F; } .ch-node i.off { background: #B03A2F; }
.ch-node small { color: #B03A2F; }
.sheet-row input[type=date] { -webkit-appearance: none; appearance: none; }
/* 결측 보완 (전체 화면) */
body.ms-open { overflow: hidden; }
.ms { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; background: #F5F4EF; color: #1F1E1B; }
.ms-head { display: flex; align-items: center; min-height: 64px; padding: var(--safe-t) calc(6px + var(--safe-r)) 0 calc(16px + var(--safe-l)); min-height: calc(60px + var(--safe-t)); background: var(--navy); color: #fff; }
.ms-head h2 { flex: 1; margin: 0; font-size: 20px; }
.ms-x { width: 52px; height: 52px; border: 0; background: none; color: #fff; display: grid; place-content: center; }
.ms-x svg.i { width: 30px; height: 30px; }
.ms-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px calc(14px + var(--safe-r)) 20px calc(14px + var(--safe-l)); max-width: 820px; width: 100%; margin: 0 auto; }
.ms-block { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.ms-help { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #615F57; }
.ms-sum { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #7A4F0F; }
.ms-sum:empty { display: none; }
.ms-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin: 0 -2px 6px; scroll-snap-type: x proximity; }
.ms-day { flex: none; display: grid; gap: 2px; min-width: 96px; padding: 8px 12px; border: 1.5px solid #E2E0D6; border-radius: 12px; background: #fff; text-align: center; scroll-snap-align: start; }
.ms-day b { font-size: 16px; }
.ms-day span em { display: block; font-size: 13px; font-style: normal; font-weight: 700; }
.ms-day .mi { color: #B03A2F; } .ms-day .ma { color: #1E4E80; } .ms-day .ok { color: #2E7D4F; }
.ms-day.on { border-color: #2F6FB0; background: #E5EFF8; }
.ms-dayhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 8px; }
.ms-dayhead b { font-size: 19px; }
.ms-lg { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #8B897F; }
.ms-lg i { width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.ms-lg i.s { background: #fff; border: 1px solid #C9C6B8; } .ms-lg i.m { background: #F9E8E6; border: 1px solid #E7B9B4; } .ms-lg i.h { background: #E5EFF8; border: 1px solid #A9C6E3; }
.ms-note { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #E4F2EA; color: #2E7D4F; font-size: 14px; line-height: 1.5; }
.ms-empty { margin: 10px 0; color: #8B897F; font-size: 15px; }
.ms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (min-width: 600px) { .ms-grid { grid-template-columns: repeat(6, 1fr); } }
.ms-cell { display: grid; gap: 0; padding: 4px 4px 2px; border: 1px solid #E2E0D6; border-radius: 10px; background: #fff; text-align: center; }
.ms-cell span { font-size: 13px; color: #8B897F; }
.ms-cell input { width: 100%; min-width: 0; height: 36px; border: 0; background: transparent; text-align: center; font-size: 18px; font-weight: 700; color: #1F1E1B; font-variant-numeric: tabular-nums; }
.ms-cell input:disabled { color: #615F57; font-weight: 500; -webkit-text-fill-color: #615F57; opacity: 1; }
.ms-cell.missing { background: #F9E8E6; border-color: #E7B9B4; }
.ms-cell.manual { background: #E5EFF8; border-color: #A9C6E3; }
.ms-cell.edited { background: #FBF0DD; border: 2px solid #B9791A; }
.ms-cell:focus-within { outline: 2px solid #2F6FB0; outline-offset: 1px; }
.ms-tools { display: grid; gap: 10px; margin-top: 14px; }
.ms-tool { padding: 12px; border: 1px solid #E2E0D6; border-radius: 12px; background: #fff; }
.ms-tool b { display: block; margin-bottom: 8px; font-size: 15px; }
.ms-tool.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ms-tool.row b { margin: 0; }
.ms-mm { display: flex; align-items: center; gap: 6px; }
.ms-mm input { flex: 1; min-width: 0; height: 44px; padding: 0 8px; border: 1.5px solid #C9C6B8; border-radius: 8px; font-size: 17px; text-align: right; }
.ms-mm .btn { flex: none; }
.ms .ch-err { margin-top: 10px; }
.ms-bar { display: flex; gap: 8px; padding: 10px calc(14px + var(--safe-r)) calc(10px + var(--safe-b)) calc(14px + var(--safe-l)); background: #fff; border-top: 1px solid #E2E0D6; }
.ms-bar .btn { min-height: 54px; font-size: 17px; }
.ms-bar .btn:first-child { flex: 0 0 100px; }
.ms-bar .btn-navy { flex: 1; }
.ms-bar .btn:disabled { opacity: .5; }
/* 온도요구도 보정 */
.ch-pick:first-child { flex: 1.5; }
.ch-pick select { text-overflow: ellipsis; }
.ms-body { overflow-x: hidden; }
.ms-days { position: relative; }
.sheet-row .two > * { min-width: 0; width: 100%; }
.sheet-row input[type=date] { display: block; min-width: 0; font-size: 16px; padding: 0 8px; }
.cm-val small { display: block; margin: 2px 0 0; }
.cm-top b { font-size: 14.5px; }
.ms-tools { grid-template-columns: minmax(0, 1fr); }
.ms-mm input { width: 0; }

/* ── 온도요구도: 앱(fragment_chill / chill_tab_dashboard) 모양 맞춤 ── */
.ch-sel { background: #fff; max-width: none; padding: 12px calc(16px + var(--safe-r)) 10px calc(16px + var(--safe-l)); border-bottom: 1px solid var(--c-line); }
.ch-pick { display: flex; align-items: center; height: 58px; padding: 0 12px; border: 1px solid var(--c-line2); border-radius: 8px; }
.ch-pick select { min-height: 56px; font-size: 19px; font-weight: 500; background-position: right 8px center, right 2px center; padding-right: 22px; }
.ch-help { width: 58px; height: 58px; border: 1.5px solid var(--c-acc); border-radius: 8px; background: var(--c-acc-t); color: var(--c-acc-x); font-size: 26px; font-weight: 500; }
.ch-help.wide { height: 58px; font-size: 19px; font-weight: 700; }
.ch-tabwrap { position: sticky; top: calc(60px + var(--safe-t)); z-index: 5; background: var(--c-bg); padding: 12px calc(16px + var(--safe-r)) 4px calc(16px + var(--safe-l)); }
.ch-tabs { position: static; max-width: 820px; margin: 0 auto; padding: 4px; gap: 0; border: 0; border-radius: 12px; background: #374c67; }
.ch-tabs button { min-height: 56px; border: 0; border-radius: 9px; color: #fff; font-size: 19px; font-weight: 800; transition: background .15s, color .15s; }
.ch-tabs button.on { background: #fff; color: var(--c-acc-x); border: 0; }
.ch-main { padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r)); }
.ch-card { border-radius: 16px; padding: 18px; }
.ch-head h2 { display: none; }
.ch-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px; border: 1px solid #CBDDF0; border-radius: 999px; background: var(--c-acc-t); color: var(--c-acc-x); font-size: 16px; font-weight: 800; }
.ch-pill i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c-acc); }
.ch-line { margin: 12px 0 0; font-size: 25px; font-weight: 800; line-height: 1.35; word-break: keep-all; }
.ch-tgtbtn { display: inline-block; margin-top: 14px; padding: 13px 22px; border: 1px solid var(--c-warn); border-radius: 999px; background: var(--c-warn-t); color: var(--c-warn-x); font-size: 18px; font-weight: 800; }
.ch-tgtbtn:active { filter: brightness(.97); }
.ch-explain { background: #fff; color: var(--c-t1); font-size: 17px; line-height: 1.65; animation-delay: .08s; }
.ch-explain b { color: var(--c-t1); }
.ch-alert { background: var(--c-dan-t); border: 0; border-radius: 10px; color: var(--c-dan); font-size: 16px; }
.ch-alert .ch-btn { margin-top: 8px; }
.ch-sec { margin: 26px 2px 12px; font-size: 21px; font-weight: 800; color: var(--c-t1); word-break: keep-all; }
.ch-body > .ch-sec:first-of-type { margin-top: 18px; }
.ch-models { margin-bottom: 4px; }
.cm { padding: 14px; border: 1px solid var(--c-line); border-radius: 10px; }
.cm.featured { border: 1.5px solid var(--c-acc); background: #fff; }
.cm-top b { font-size: 17px; color: var(--c-t1); font-weight: 800; }
.cm-top em { padding: 3px 8px; border-radius: 6px; background: var(--c-acc-t); color: var(--c-acc-x); font-size: 12px; }
.cm-i { width: 28px; height: 28px; border: 1.5px solid #8B897F; color: #8B897F; font: 700 14px/1 -apple-system, sans-serif; font-style: normal; }
.cm-val { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin: 10px 0 10px; }
.cm-val b { font-size: 26px; }
.cm-val small { display: inline; margin: 0; font-size: 14px; }
.ch-bar { height: 8px; border-radius: 4px; }
.cm-pct { text-align: left; margin-top: 8px; font-size: 15px; font-weight: 700; }
.ch-warn { margin-top: 6px; border-radius: 10px; font-size: 16px; }
.ch-desc { font-size: 16px; }
.ch-gval b { font-size: 26px; }
.ch-gval small { font-size: 15px; }
.ch-chartcard { padding: 10px 6px 6px; }
.ch-sel-val { margin: 6px 2px 0; font-size: 15px; color: var(--c-t2); }
.ch-legend { margin-top: 8px; font-size: 16px; }
.ch-axis { margin-top: 4px; font-size: 14px; }
.ch-notice { padding: 18px; border: 1px solid var(--c-line2); border-radius: 16px; background: #fff; color: var(--c-t1); }
.ch-notice b { font-size: 18px; }
.ch-notice p { color: var(--c-t2); font-size: 16px; }
.ch-temp { border-radius: 6px; background: var(--c-acc-t); color: var(--c-acc-x); font-size: 15px; }
.ch-meta { margin: 14px 2px 12px; font-size: 15px; }
/* 앱 ChillBtn */
.ch-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 22px; border: 1px solid var(--c-line2, #C9C6B8); border-radius: 8px; background: #fff; color: var(--c-t1, #1F1E1B); font-size: 19px; font-weight: 600; }
.ch-btn.sm { min-height: 52px; padding: 0 18px; font-size: 17px; }
.ch-btn.primary { background: var(--c-acc, #2F6FB0); border-color: var(--c-acc, #2F6FB0); color: #fff; font-weight: 800; }
.ch-btn.danger { border-color: #E8B9B4; color: var(--c-dan, #B03A2F); }
.ch-btn.wide { display: flex; width: 100%; }
.ch-btn:active { filter: brightness(.96); }
.ch-helpbtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 10px; border: 1.5px solid var(--c-acc); border-radius: 8px; background: var(--c-acc-t); color: var(--c-acc-x); font-size: 19px; font-weight: 800; }
/* 처음 사용 안내 */
.ch-gintro { margin-bottom: 12px; }
.ch-gq { color: var(--c-acc); font-size: 17px; font-weight: 800; }
.ch-guide .ch-gintro h2 { margin: 2px 0 0; text-align: left; font-size: 23px; line-height: 1.35; word-break: keep-all; }
.ch-now { margin: 8px 0 0; font-size: 15px; }
.ch-step { border-radius: 10px; padding: 16px; }
.ch-step .no { width: 42px; height: 42px; background: #8B897F; color: #fff; font-size: 19px; }
.ch-step.todo { background: var(--c-acc-t); border: 1.5px solid var(--c-acc); }
.ch-step.done { border-color: #C6E3D2; }
.ch-step b { font-size: 20px; }
.ch-step p { font-size: 17px; }
.ch-step .acts { flex-direction: column; }
.ch-step .acts .ch-btn { width: 100%; }
/* 동 / 시즌 목록 (앱 item_chill_*_row) */
.ch-tabhead h2 { font-size: 21px; }
.ch-row { border-radius: 10px; padding: 16px; flex-direction: column; align-items: stretch; }
.ch-row-main b { font-size: 22px; }
.ch-row-main span { font-size: 17px; }
.ch-row-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 10px; }
.bd { font-size: 14px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }

/* ───────────── 알림설정 (앱 activity_notification_settings) ───────────── */
.as { max-width: 720px; padding-top: 16px; }
.nd-card { scroll-margin-top: calc(70px + var(--safe-t)); }
.as-push { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F0D9A8; }
.as-push p { flex: 1; margin: 0; font-size: 15px; line-height: 1.5; color: #6B4A10; word-break: keep-all; }
.as-push .btn { flex: none; }
.as-card { background: #fff; border-radius: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
.as-h { position: relative; margin: 0; padding: 18px 18px 16px 30px; border-bottom: 1px solid #E8ECEF; font-size: 20px; font-weight: 800; }
.as-h::before { content: ''; position: absolute; left: 16px; top: 18px; bottom: 16px; width: 4px; border-radius: 2px; }
.as-h.navy { color: var(--navy); } .as-h.navy::before { background: var(--navy); }
.as-h.teal { color: #00897B; } .as-h.teal::before { background: #00897B; }
.as-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.as-row > div { flex: 1; min-width: 0; }
.as-row b { font-size: 18px; color: #111; }
.as-row p { margin: 4px 0 0; font-size: 14px; color: #8A949B; word-break: keep-all; }
.as-time { border-top: 1px solid #E8ECEF; margin: 0 18px; padding-bottom: 18px; }
.as-time .as-row { padding: 16px 0 12px; }
.as-tv { flex: none; font-size: 22px; font-weight: 800; color: var(--navy); }
.as-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.as-seg button { min-height: 50px; border: 1.5px solid var(--navy); border-radius: 10px; background: #F4F6F9; color: var(--navy); font-size: 16px; font-weight: 600; }
.as-seg button.on { background: var(--navy); color: #fff; font-weight: 800; }
/* 토글 (앱 SwitchCompat) */
.tg { flex: none; position: relative; width: 56px; height: 36px; border: 0; background: none; padding: 0; }
.tg i { position: absolute; left: 6px; right: 6px; top: 10px; height: 16px; border-radius: 8px; background: #C3C9CE; transition: background .15s; }
.tg i::after { content: ''; position: absolute; left: -4px; top: -5px; width: 26px; height: 26px; border-radius: 50%; background: #F1F1F1; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .15s, background .15s; }
.tg.on i { background: rgba(0,184,172,.45); }
.tg.on i::after { background: var(--select); transform: translateX(26px); }
.tg:disabled { opacity: .6; }
/* 항목별 알람 표 */
.as-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 14px 12px; border-bottom: 1px solid #E8ECEF; scrollbar-width: none; }
.as-tabs::-webkit-scrollbar { display: none; }
.as-tabs button { flex: none; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; color: var(--navy); font-size: 17px; font-weight: 600; white-space: nowrap; }
.as-tabs button.on { background: var(--navy); color: #fff; font-weight: 800; }
.as-thead, .as-fr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 54px; gap: 8px; align-items: center; padding: 0 14px; }
.as-thead { min-height: 50px; background: #F7F8FA; border-bottom: 1px solid #E8ECEF; font-size: 16px; font-weight: 700; color: #555; text-align: center; }
.as-thead .mx { color: #E53935; } .as-thead .mn { color: #1E66C9; }
.as-fr { min-height: 72px; margin: 0 14px; padding: 6px 0; border-bottom: 1px solid #E8ECEF; }
.as-fr:last-child { border-bottom: 0; }
.as-fn { text-align: center; font-size: 16px; color: #222; word-break: keep-all; overflow-wrap: anywhere; }
.as-in { position: relative; display: block; }
.as-in small { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); padding: 0 4px; background: #fff; color: #B5BCC2; font-size: 12px; line-height: 1; }
.as-in input { width: 100%; height: 46px; padding: 0 6px; border: 1.5px solid #B9C0C6; border-radius: 6px; background: #fff; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.as-in.mx input { color: #E53935; } .as-in.mn input { color: #1E66C9; }
.as-in input:focus { outline: none; border-color: var(--navy); }
.as-ck { display: grid; place-items: center; height: 48px; cursor: pointer; }
.as-ck input { position: absolute; opacity: 0; pointer-events: none; }
.as-ck i { width: 28px; height: 28px; border: 2.5px solid var(--navy); border-radius: 4px; background: #fff; display: grid; place-content: center; }
.as-ck input:checked + i { background: var(--navy); }
.as-ck input:checked + i::after { content: ''; width: 7px; height: 13px; margin-top: -3px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.as-ck input:focus-visible + i { outline: 2px solid var(--select); outline-offset: 2px; }
.as-empty { margin: 0; padding: 26px 14px; text-align: center; color: #8A949B; }
.as-fcard { margin-bottom: 20px; }
/* (v=21) 떠 있는 버튼은 동그란 + 만 — 글자가 있으면 아래 값을 가림 */
#fab { width: 60px; height: 60px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
#fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#fab svg.i { width: 30px; height: 30px; }
.fab { transition: transform .2s ease, opacity .2s ease; }
.fab.fab-off { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ── 차트 추가/수정: 탭 · 검색 · 접기 · 농가별 묶기 (v=22) ── */
.mk-picked { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--select); }
.mk-picked > b { display: block; margin-bottom: 8px; font-size: 15px; color: #00897F; }
.mk-picked > div { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; }
.mk-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 2px 0 10px; border-radius: 18px; background: rgba(0,184,172,.12); color: #1F2A30; font-size: 14px; }
.mk-chip i { margin-right: 4px; padding: 1px 6px; border-radius: 8px; background: #fff; color: #00695F; font-size: 12px; font-style: normal; font-weight: 700; }
.mk-chip button { width: 32px; height: 32px; border: 0; background: none; color: #5B6770; display: grid; place-content: center; }
.mk-chip button svg.i { width: 14px; height: 14px; }
.mk-tabs { position: sticky; top: calc(60px + var(--safe-t)); z-index: 6; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 10px; border-radius: 12px; background: var(--navy); }
.mk-tabs button { min-height: 50px; border: 0; border-radius: 9px; background: none; color: #fff; font-size: 17px; font-weight: 800; }
.mk-tabs button small { font-size: 13px; font-weight: 600; opacity: .75; }
.mk-tabs button em { display: inline-block; min-width: 22px; margin-left: 4px; padding: 1px 6px; border-radius: 11px; background: var(--select); color: #fff; font-size: 13px; font-style: normal; }
.mk-tabs button.on { background: #fff; color: var(--navy); }
.mk-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.mk-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #7A8790; }
.mk-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; outline: none; }
.mk-tools .btn { flex: none; min-height: 48px; }
.mk-node { padding: 0; overflow: hidden; }
.mk-nh { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 62px; padding: 8px 12px; border: 0; background: #fff; text-align: left; color: var(--navy); }
.mk-nh > svg.i:first-child { flex: none; width: 22px; height: 22px; }
.mk-nn { flex: 1; min-width: 0; display: grid; }
.mk-nn b { font-size: 17px; color: #1F2A30; overflow-wrap: anywhere; }
.mk-nn small { font-size: 13px; color: #8A949B; }
.mk-badge { flex: none; padding: 3px 9px; border-radius: 10px; background: var(--select); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.mk-caret { flex: none; width: 22px; height: 22px; transition: transform .15s; }
.mk-node.open .mk-caret { transform: rotate(180deg); }
.mk-node .feed-picks { padding: 0 12px 14px; }
.mk-farm { margin-bottom: 16px; }
.mk-farm h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #E6EEF0; color: var(--teal-dark); font-size: 17px; font-weight: 800; }
.mk-farm h3 svg.i { flex: none; width: 22px; height: 22px; }
.mk-farm h3 span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mk-farm h3 small { flex: none; font-size: 13px; font-weight: 600; color: #5B6770; }
.mk-farm .node-card { margin-left: 8px; }
.mk-picked { padding: 10px 12px; }
.mk-picked > b { margin-bottom: 6px; }
.mk-picked > div { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: none; }
.mk-picked > div::-webkit-scrollbar { display: none; }
.mk-chip { flex: none; white-space: nowrap; }

/* ── 끌어서 순서 바꾸기 (v=25) ── */
.card.feed-sorting .feed-move { display: none; }
.card.feed-sorting .feed, .card.sorting { touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.card.feed-sorting .feed::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 22px; height: 8px; transform: translateX(-50%);
	background: radial-gradient(circle, #8A99A0 1.6px, transparent 1.8px) 0 0 / 7.3px 4px; opacity: .9; }
.card.sorting::after { content: '⠿'; position: absolute; left: 50%; top: 2px; transform: translateX(-50%); color: #9AA5AD; font-size: 14px; line-height: 1; }
.card.sorting { position: relative; }
.drag-ph { opacity: .25; }
.drag-ghost { position: fixed; z-index: 90; margin: 0; pointer-events: none; opacity: .95; transform: scale(1.06); box-shadow: 0 12px 28px rgba(0,0,0,.35); border-radius: 8px; cursor: grabbing; }
.drag-ghost.card { border-radius: var(--r); }
.drag-hint { margin: 10px 2px 0; text-align: center; font-size: 14px; font-weight: 700; color: #00897F; }
.drag-hint.dark { margin: 0 0 10px; color: #CFE3E8; }

/* 제목 줄 길게 눌러 바로 끌기: 끄는 동안 차트를 제목만 남기고 접음 */
.card-head { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.charts.compact .card .feeds, .charts.compact .card .hint-line, .charts.compact .card > p { display: none; }
.charts.compact .card .sq-btn { visibility: hidden; }
.charts.compact .card { padding-bottom: 8px; }
.drag-ghost.ghost-compact .feeds, .drag-ghost.ghost-compact .hint-line, .drag-ghost.ghost-compact > p { display: none; }
.drag-ghost.ghost-compact .sq-btn { visibility: hidden; }
.drag-ghost.ghost-compact { height: auto !important; padding-bottom: 8px; }

/* ── 항목 줄바꿈 (v=27) ── */
.feed.brk { grid-column-start: 1; }
.brk-btn { position: absolute; left: 4px; bottom: 4px; z-index: 2; height: 28px; padding: 0 8px; border: 1.5px solid #9AA5AD; border-radius: 14px; background: #fff; color: #5B6770; font-size: 12.5px; font-weight: 800; }
.brk-btn.on { border-color: var(--select); background: var(--select); color: #fff; }
.card.feed-sorting .feed.brk { box-shadow: -4px 0 0 var(--select); }
.brk-tools { display: flex; gap: 6px; margin-top: 8px; }
.brk-tools .btn { flex: 1; min-height: 42px; font-size: 14px; }
.drag-hint b { color: #00695F; }

/* ───────────── Open API (js/openapi.js) — 2026-11 ─────────────
   농가 모니터링 웹 · 안드로이드 앱과 같은 색: 짙은 녹색 + 연두. 헤더 · 메뉴 · 확인창 · 시트는 앱 공통 그대로 */
.oa { --oa-ink: #0E3B2C; --oa-ink-2: #155240; --oa-ink-3: #0A2A20; --oa-lime: #9BE15D; --oa-green: #1E6B4A; --oa-soft: #EEF6F0; --oa-line: #CFE3D6; }
.oa-state { margin: 40px 0 18px; text-align: center; color: var(--ink-2); }
.oa-banner { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #F1D9A6; border-radius: 10px; background: #FFF8E8; color: #5B4A1E; font-size: 15px; font-weight: 600; }
.oa code, .oa-keybox code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.oa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 12px; background: #9BE15D; color: #0E3B2C; font-size: 17px; font-weight: 800; white-space: nowrap; }
.oa-btn:active { background: #B4EC82; }
.oa-btn[disabled] { opacity: .45; pointer-events: none; }
.oa-btn svg.i { width: 19px; height: 19px; }
.btn.oa-btn-dark { background: #0E3B2C; border-color: #0E3B2C; color: #fff; }
.oa-copy { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.07); color: #E3F1E8; font-size: 14px; font-weight: 700; white-space: nowrap; }
.oa-copy:active { background: rgba(255,255,255,.18); }
.oa-copy svg.i { width: 16px; height: 16px; }

.oa-hero { margin: 0 0 14px; padding: 18px 16px; border-radius: 16px; background: linear-gradient(120deg, var(--oa-ink) 0%, var(--oa-ink-2) 100%); color: #fff; }
.oa-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--oa-lime); }
.oa-eyebrow i { margin-left: 6px; padding: 1px 7px; border: 1px solid rgba(155,225,93,.5); border-radius: 999px; font-style: normal; letter-spacing: 0; }
.oa-url { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oa-url code { flex: 1; min-width: 0; color: #fff; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.oa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.oa-chips li { padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.1); color: #CFE3D6; font-size: 13.5px; }
.oa-chips b { color: #fff; }
.oa-hero-b { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.oa-slots { display: flex; flex-direction: column; gap: 2px; }
.oa-slots span { font-size: 13px; font-weight: 600; color: #B9D4C4; }
.oa-slots strong { font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.oa-pips { display: flex; gap: 4px; margin-top: 5px; }
.oa-pips i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.oa-pips i.on { background: var(--oa-lime); }

.oa-panel { padding: 16px 14px 18px; }
.oa-h { position: relative; margin: 0; padding-left: 12px; font-size: 19px; font-weight: 800; color: var(--ink); }
.oa-h::before { content: ""; position: absolute; left: 0; top: .22em; bottom: .22em; width: 4px; border-radius: 2px; background: var(--oa-lime); }
.oa-desc { margin: 4px 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.oa-keys { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.oa-key { position: relative; padding: 14px 14px 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.oa-key::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--oa-green); }
.oa-key.is-wait::before { background: #D49A2A; }
.oa-key.is-off::before { background: #C4571F; }
.oa-key.is-dead::before { background: #9AA5AA; }
.oa-key-top { display: flex; align-items: center; gap: 10px; }
.oa-kic { flex: none; display: grid; place-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--oa-soft); color: var(--oa-green); }
.oa-kic svg.i { width: 21px; height: 21px; }
.oa-key.is-wait .oa-kic { background: #FFF6E3; color: #8A5A00; }
.oa-key.is-off .oa-kic { background: #FFF3ED; color: #A43A10; }
.oa-nm { flex: 1; min-width: 0; }
.oa-nm strong { display: block; font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-nm code, .oa-dead code { font-size: 13px; color: var(--muted); }
.oa-st { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.oa-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.oa-st.is-ok { color: var(--oa-green); background: var(--oa-soft); }
.oa-st.is-wait { color: #8A5A00; background: #FFF6E3; }
.oa-st.is-off { color: #A43A10; background: #FFF3ED; }
.oa-st.is-dead { color: var(--ink-2); background: #F1F4F5; }
.oa-meta { margin: 12px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); }
.oa-meta > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; }
.oa-meta dt { font-size: 14.5px; color: var(--muted); }
.oa-meta dd { margin: 0; font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.oa-meta dd i { font-style: normal; font-weight: 500; color: var(--muted); }
.oa-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.oa-note.warn { color: #A43A10; font-weight: 600; }
.oa-rm { display: block; min-height: 42px; margin: 10px 0 0 auto; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.oa-rm:active { border-color: #F1C9B8; background: #FFF4EE; color: #B23C0B; }
.oa-add { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; margin: 10px 0 0; padding: 0 16px; border: 1.5px dashed #B7D6C2; border-radius: 14px; background: var(--oa-soft); color: var(--oa-green); font-size: 16.5px; font-weight: 800; text-align: left; }
.oa-add:active { border-color: var(--oa-green); background: #DDEDE2; }
.oa-add svg.i { width: 19px; height: 19px; }
.oa-add em { margin-left: auto; font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.oa-empty { display: flex; flex-direction: column; align-items: center; padding: 14px 6px 12px; text-align: center; }
.oa-empty-ic { display: grid; place-content: center; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 50%; background: var(--oa-ink); color: var(--oa-lime); }
.oa-empty-ic svg.i { width: 27px; height: 27px; }
.oa-empty strong { font-size: 17px; font-weight: 800; }
.oa-empty p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.oa-foot { margin: 12px 2px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.oa-dead { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.oa-dead summary { min-height: 32px; font-weight: 700; color: var(--muted); }
.oa-dead ul { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.oa-dead li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 9px; background: #F6F8F9; }
.oa-dead li span { margin-left: auto; font-size: 13px; color: var(--muted); }

.oa-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: oa; }
.oa-steps li { counter-increment: oa; position: relative; padding: 0 0 14px 40px; }
.oa-steps li:last-child { padding-bottom: 0; }
.oa-steps li::before { content: counter(oa); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--oa-ink); color: var(--oa-lime); font-size: 13.5px; font-weight: 800; }
.oa-steps li::after { content: ""; position: absolute; left: 12.5px; top: 27px; bottom: 0; width: 2px; background: var(--oa-line); }
.oa-steps li:last-child::after { display: none; }
.oa-steps b { display: block; font-size: 16.5px; line-height: 27px; }
.oa-steps span { display: block; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.oa-panel code { padding: 1px 5px; border-radius: 5px; background: var(--oa-soft); color: var(--oa-ink); font-size: 13.5px; overflow-wrap: anywhere; }
.oa-code { border-radius: 14px; background: var(--oa-ink-3); overflow: hidden; }
.oa-code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.09); color: #A9C7B6; font-size: 13.5px; font-weight: 700; }
.oa-code pre { margin: 0; padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; color: #E3F1E8; font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.oa-code pre .c { color: var(--oa-lime); opacity: .85; }
.oa-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin-top: 14px; border: 1px solid var(--oa-line); border-radius: 10px; background: var(--oa-soft); color: var(--oa-green); font-size: 16px; font-weight: 800; text-decoration: none; }
.oa-link:active { border-color: var(--oa-green); background: #DDEDE2; }
.oa-link svg.i { width: 17px; height: 17px; }
.oa-more { margin: 10px 2px 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* 발급 창 (시트 안) */
.oa-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; background: #FFF4EE; color: #B23C0B; font-size: 15px; font-weight: 700; }
.oa-done { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #1E6B4A; }
.oa-keybox { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: #0E3B2C; }
.oa-keybox code { color: #9BE15D; font-size: 15.5px; line-height: 1.55; word-break: break-all; -webkit-user-select: all; user-select: all; }
.oa-keybox .oa-btn { min-height: 46px; font-size: 16px; }
.oa-warn { margin: 12px 0 14px; padding: 12px 13px; border-radius: 10px; background: #FFF6DD; color: #6B4B00; font-size: 14px; line-height: 1.6; }

/* ───────────── 이름 표시 (js/names.js) — 2026-11 ─────────────
   내가 만든 차트 목록 · 그래프: 농가 이름 / 노드 이름 [숨김 | 공유만 | 모두] */
.nm-btn { display: inline-flex; align-items: center; gap: 5px; }
.nm-btn svg.i { width: 16px; height: 16px; }
.nm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #E9EEF2; }
.nm-seg button { min-height: 46px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: 16px; font-weight: 700; }
.nm-seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.feed-che .feed-node, .feed-che .feed-farm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-che .feed-farm { font-size: 12px; font-weight: 400; opacity: .88; line-height: 1.25; }
.feed-che .feed-farm:first-child { font-size: 14px; font-weight: 500; opacity: 1; line-height: inherit; }   /* 노드 이름을 숨기고 농가 이름만 보일 때 */
.feed-che.bare { padding: 0; height: 6px; }                                                             /* 둘 다 숨김 → 색 띠만 (내 노드 청록 · 공유 남보라) */

/* 그래프 확대 · 축소 (두 손가락) — 확대했을 때만 보이는 [전체 보기] */
.zoom-reset { position: absolute; left: 10px; top: 8px; z-index: 5; min-height: 34px; padding: 0 12px; border: 1px solid rgba(47,76,106,.35); border-radius: 17px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.zoom-reset:active { background: #E3F0FB; }
.ms-backfill { display: block; width: 100%; margin: 0 0 12px; }