/* 연구비 찾기 — ARCHE v2 스킨 (2026-10-03)
   공용 토큰·컴포넌트는 arche-ui.css(먼저 로드, 수정 금지). 이 파일은 앱 고유 마크업(app.js가 그리는 카드·달력·대화상자 포함)을
   v2 모양으로 입힌다. 위치 이동 애니메이션은 funding-ui.js의 스프링(arche-motion.js)이 맡고, CSS transition은 색·그림자에만 쓴다. */

:root {
  /* 옛 이름은 app.js 인라인 스타일·다른 규칙이 참조할 수 있어 v2 값으로 다시 묶어 둔다. */
  --navy: var(--b-dd);
  --navy-dark: var(--ink);
  --navy-soft: var(--b-ll);
  --canvas: var(--bg);
  --surface: #fff;
  --muted: var(--ink-2);
  --soft-muted: var(--ink-3);
  --content-width: 2080px;
  --wrap: 1560px;
  --font: Pretendard, "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* 앱 전체 글자 크기 단계(대형 화면). v2 컴포넌트는 px라 영향이 없고, rem 기반 잔여 규칙만 따라 커진다. */
html { font-size: 18px; scroll-behavior: smooth; }
@media (min-width: 1440px) { html { font-size: 19px; } }
@media (min-width: 1920px) { html { font-size: 20px; } }
@media (min-width: 2560px) { html { font-size: 21px; } }
@media (min-width: 3200px) { html { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; overflow-x: clip; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--b-l); outline-offset: 2px; }
button:disabled { cursor: not-allowed; }
.mascot.mk { width: 36px; height: 33px; flex: none; }

/* ---------- top bar (v2) ---------- */
.site-top { gap: 18px; }
.site-top .brand { color: var(--ink); min-height: 44px; }
.brand-t { display: flex; flex-direction: column; font-size: 17px; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.brand-t small { margin-top: 3px; font-size: 12px; font-weight: 650; color: var(--ink-3); letter-spacing: -.01em; }
.site-tabs a svg.duo { width: 22px; height: 22px; }
.head-utility-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.site-top .head-utility-actions { margin-left: auto; }
.tour-replay-button { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tour-replay-button:hover { background: var(--b-l); }
.account-button { height: 40px; max-width: 160px; padding: 0 18px; overflow: hidden; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 15px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.account-button:hover { background: var(--b-l); }
.account-button.is-authenticated { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
/* KO/EN — locale-shell.js가 주입(그쪽 <style>이 뒤에 붙어서 선택자를 한 단계 높인다) */
html body .arche-locale-switch { position: relative; gap: 0; padding: 3px; border: 0; border-radius: 999px; background: var(--soft); box-shadow: none; }
html body .arche-locale-switch .ind { position: absolute; left: 0; top: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(32, 31, 54, .1); pointer-events: none; }
html body .arche-locale-switch button { position: relative; z-index: 1; min-width: 42px; height: 34px; padding: 0 10px; border-radius: 999px; background: transparent; color: var(--ink-3); font: 700 14px/1 var(--font); letter-spacing: 0; }
html body .arche-locale-switch button[aria-pressed="true"] { color: var(--ink); background: transparent; }
html body .arche-locale-switch:not(.has-ind) button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(32, 31, 54, .1); }

/* ---------- page frame ---------- */
.main-content { min-width: 0; }
.content-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* hero */
.page-head { display: flex; flex-direction: column; align-items: center; padding: 48px 0 6px; text-align: center; scroll-margin-top: 84px; }
.hero-mascot { line-height: 0; cursor: pointer; }
.hero-mascot .mascot.hero-arch { width: 96px; height: 88px; margin-bottom: 12px; }
.page-head h1 { font-size: 54px; font-weight: 800; letter-spacing: -.045em; line-height: 1.14; }
.page-description { max-width: 600px; margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.search-box { position: relative; display: flex; align-items: center; gap: 14px; width: min(760px, 100%); height: 72px; margin-top: 30px; padding: 0 16px 0 26px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--b-l), 0 24px 60px -30px rgba(91, 84, 240, .45); text-align: left; cursor: text; transition: box-shadow .2s; }
.search-box:focus-within { box-shadow: inset 0 0 0 2.5px var(--b), 0 26px 64px -28px rgba(91, 84, 240, .55); }
.search-box svg.i { width: 26px; height: 26px; color: var(--b); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 20px; font-weight: 550; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-3); font-weight: 500; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box kbd { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--soft); color: var(--ink-3); font: 700 13px/1 var(--font); }

.primary-nav { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.primary-nav .ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--b); box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); pointer-events: none; }
.nav-item { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(32, 31, 54, .05), 0 8px 20px -12px rgba(32, 31, 54, .25); color: var(--ink-2); font-size: 15px; font-weight: 650; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav-item:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--b-l), 0 8px 20px -12px rgba(32, 31, 54, .25); }
.nav-item svg.duo { width: 22px; height: 22px; margin-left: -2px; }
.nav-item svg.i { width: 18px; height: 18px; margin-left: 2px; }
.nav-item.is-active { color: #fff; background: var(--b); }
.primary-nav.has-ind .nav-item.is-active { background: transparent; box-shadow: none; }
.nav-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 13px; font-weight: 800; line-height: 24px; text-align: center; }
.nav-item.is-active .nav-count { background: rgba(255, 255, 255, .22); color: #fff; }

.head-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.personalize-button { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px 14px 12px 18px; border-radius: 999px; background: var(--b); color: #fff; box-shadow: 0 18px 40px -18px rgba(91, 84, 240, .8); text-align: left; transition: background-color .2s; scroll-margin-top: 84px; }
.personalize-button:hover { background: var(--b-d); }
.personalize-mark { line-height: 0; }
.personalize-mark .mascot.find-arch { width: 46px; height: 42px; }
.personalize-copy strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.personalize-copy small { display: block; font-size: 14px; font-weight: 550; opacity: .85; }
.personalize-go { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex: none; }
.sidebar-foot { display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 6px; border-radius: 999px; background: #fff; box-shadow: var(--sh); text-align: left; }
.profile-avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--b-ll); color: var(--b-dd); font-size: 13px; font-weight: 850; flex: none; }
.sidebar-foot > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.sidebar-foot strong { font-size: 14px; font-weight: 750; }
.sidebar-foot small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
#editProfileButton { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink-2); }
#editProfileButton:hover { background: #ebebf2; }

/* status strip */
.notice-strip { margin-top: 44px; padding: 12px 12px 12px 18px; border-radius: 30px; background: #fff; box-shadow: var(--sh); }
.notice-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.notice-icon.duo { width: 26px; height: 26px; }
.notice-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#agentNoticeText { flex: 1; min-width: 220px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.notice-strip.is-running #agentNoticeText::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 3px solid var(--b-l); border-top-color: var(--b); border-radius: 50%; animation: f-spin .8s linear infinite; }
@keyframes f-spin { to { transform: rotate(360deg); } }
.receipt-open-button { height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.receipt-open-button:hover { background: var(--soft); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-l); flex: none; }
.last-sync { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.last-sync > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.last-sync strong { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.last-sync small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.refresh-button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 700; }
.refresh-button svg.i { width: 18px; height: 18px; }
.refresh-button:hover:not(:disabled) { background: #ebebf2; }
.refresh-button:disabled, #sidebarRefreshButton:disabled { opacity: .5; }
.refresh-button.is-loading svg { animation: f-spin .9s linear infinite; }
.sync-card { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; padding: 10px 12px 2px 4px; border-top: 1.5px solid var(--line); }
.sync-card-head { display: flex; align-items: center; gap: 10px; }
.sync-card-head strong { font-size: 14px; font-weight: 750; }
.sync-card p { flex: 1; min-width: 200px; color: var(--ink-3); font-size: 14px; font-weight: 550; }
#sidebarRefreshButton { height: 40px; padding: 0 14px; border-radius: 999px; color: var(--b-dd); font-size: 14px; font-weight: 750; }
#sidebarRefreshButton:hover:not(:disabled) { background: var(--b-lll); }

/* summary */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.summary-card { display: flex; flex-direction: column; gap: 2px; min-height: 144px; padding: 22px 22px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); text-align: left; transition: box-shadow .25s; }
.summary-card:hover { box-shadow: 0 1px 3px rgba(32, 31, 54, .05), 0 30px 64px -28px rgba(32, 31, 54, .32); }
.summary-card.is-current { box-shadow: inset 0 0 0 2.5px var(--b), var(--sh); }
.summary-key { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.summary-key small { font-size: inherit; }
.summary-key svg.duo { width: 24px; height: 24px; }
.summary-value { margin-top: 8px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.summary-value .roll-view { display: inline-flex; }
.summary-card em { color: var(--ink-3); font-size: 14px; font-style: normal; font-weight: 550; }
.summary-card em b { color: var(--red); font-weight: 800; }

/* promo */
.pro-launch-banner { position: relative; display: flex; align-items: center; gap: 32px; margin-top: 28px; padding: 36px 40px; overflow: hidden; border-radius: 36px; background: var(--b); color: #fff; scroll-margin-top: 84px; }
.pro-launch-message { flex: 1; min-width: 0; }
.pro-launch-message strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.pro-launch-message strong span { display: block; opacity: .72; }
.pro-launch-message p { max-width: 520px; margin-top: 10px; font-size: 16px; opacity: .88; }
.pro-launch-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: none; }
#openProPlan { height: 58px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--b-dd); font-size: 18px; font-weight: 750; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); }
#openProPlan:hover { background: var(--b-lll); }
.pro-launch-action small { padding-left: 6px; font-size: 14px; font-weight: 600; opacity: .82; }
.pro-launch-mascot { line-height: 0; flex: none; }
.pro-launch-mascot .mascot.promo-arch { width: 110px; height: 101px; }

/* ---------- explorer ---------- */
.explorer { margin-top: 56px; }
.explorer-body { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 28px; align-items: start; }

.filter-panel { position: sticky; top: calc(var(--top) + 14px); max-height: calc(100vh - var(--top) - 28px); overflow: auto; overscroll-behavior: contain; padding: 22px 20px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); scrollbar-width: thin; }
.mobile-filter-head, .mobile-apply-button { display: none; }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filter-head strong { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.reset-button { height: 36px; padding: 0 12px; border-radius: 999px; color: var(--ink-3); font-size: 14px; font-weight: 650; }
.reset-button:hover { background: var(--soft); color: var(--ink); }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.filter-group legend { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; padding: 0; color: var(--ink-2); font-size: 15px; font-weight: 750; }
.help-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -8px 0; border-radius: 50%; color: var(--ink-3); }
.help-button svg.i { width: 18px; height: 18px; }
.help-button:hover { background: var(--soft); color: var(--ink); }
/* 라디오·체크 줄을 칩으로 — 입력은 접근성 위해 남기고 보이지 않게 */
.radio-row, .check-row, .field-chips label { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; transition: background-color .18s, color .18s, box-shadow .18s; }
.radio-row:hover, .check-row:hover, .field-chips label:hover { box-shadow: inset 0 0 0 1.5px var(--b-l); color: var(--ink); }
.radio-row input, .check-row input, .field-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.radio-row small, .check-row small { font-size: 12.5px; font-weight: 700; opacity: .65; }
.radio-row:has(input:checked), .check-row:has(input:checked), .field-chips label:has(input:checked) { background: var(--b); color: #fff; box-shadow: none; }
.radio-row:has(input:focus-visible), .check-row:has(input:focus-visible), .field-chips label:has(input:focus-visible) { outline: 3px solid var(--b-l); outline-offset: 2px; }
.field-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.results-panel { min-width: 0; }
.results-head { display: flex; flex-direction: column; }
.results-today { margin-bottom: 4px; color: var(--ink-3); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.results-today time { color: var(--ink-2); }
.results-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#resultsTitle { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.035em; scroll-margin-top: 84px; }
#resultCount { font-variant-numeric: tabular-nums; }
#resultTotalLabel { color: var(--ink-3); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.explorer-toolbar { display: flex; align-items: center; gap: 8px; }
.mobile-filter-trigger { display: none; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 700; }
.mobile-filter-trigger svg.i { width: 19px; height: 19px; }
#mobileFilterCount { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--b); color: #fff; font-size: 13px; font-weight: 800; line-height: 24px; text-align: center; }
.view-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft); }
.view-switch .ind { position: absolute; left: 0; top: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(32, 31, 54, .1); pointer-events: none; will-change: transform, width; }
.view-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 650; white-space: nowrap; }
.view-switch button svg.i { width: 18px; height: 18px; }
.view-switch button.is-active { color: var(--ink); font-weight: 750; }
.view-switch:not(.has-ind) button.is-active { background: #fff; box-shadow: 0 2px 10px rgba(32, 31, 54, .1); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.active-filters:empty, .active-filters[hidden] { display: none; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 14.5px; font-weight: 650; }
.active-filter b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(47, 41, 163, .1); font-size: 14px; font-weight: 700; }
.active-filter:hover { background: var(--b-l); }
.blocked-hidden-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--warn-l); color: #7a3c00; font-size: 15px; font-weight: 600; }
.blocked-hidden-note span { flex: 1; min-width: 180px; }
.blocked-hidden-note button { height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #7a3c00; font-size: 14px; font-weight: 750; }
.results-tools { position: relative; z-index: 6; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.save-hint { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-left: auto; padding: 0 16px 0 10px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 15px; font-weight: 650; pointer-events: none; }
.save-hint .save-hint-icon.duo { width: 24px; height: 24px; }
.save-hint .save-hint-arrow { position: absolute; right: -14px; top: calc(100% - 4px); width: 46px; height: 61px; overflow: visible; transform-origin: 50% 50%; filter: drop-shadow(0 6px 8px rgba(32, 31, 54, .22)); pointer-events: none; }
.save-hint[hidden] { display: none; }
.save-hint:not([hidden]) + .sort-select { margin-left: 0; }
.sort-select { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.sort-select select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 40px 0 18px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 15px; font-weight: 650; cursor: pointer; }
.sort-select svg.i { position: absolute; right: 14px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.sort-select[hidden] { display: none; }

/* announcement card (app.js 템플릿) — card-main/card-side를 풀어 v2 그리드로 */
.announcement-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.announcement-card { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "dd kick save" "dd title title" "dd sum sum" "dd meta more"; gap: 0 20px; padding: 22px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); transition: box-shadow .25s; }
.announcement-card:hover { box-shadow: 0 1px 3px rgba(32, 31, 54, .05), 0 30px 64px -28px rgba(32, 31, 54, .32); }
.card-main, .card-side { display: contents; }
.card-kicker { grid-area: kick; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.card-kicker > span, .dialog-kicker > span { display: inline-flex; align-items: center; gap: 5px; height: 28px; max-width: 100%; padding: 0 11px; overflow: hidden; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.source-badge { background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink) !important; }
.status-badge.open, .status-badge.new { background: var(--ok-l) !important; color: #08795f !important; }
.status-badge.closing { background: var(--red-l) !important; color: #b4232a !important; }
.status-badge.upcoming, .status-badge.pending { background: var(--b-ll) !important; color: var(--b-dd) !important; }
.status-badge.forecast { background: var(--warn-l) !important; color: #a24f00 !important; }
.status-badge.closed { background: var(--soft) !important; color: var(--ink-3) !important; }
.verified-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.verified-badge:not(.is-collected):not(.is-forecast) { background: var(--ok-l); color: #08795f; }
.verified-badge.is-forecast { background: var(--warn-l); color: #a24f00; }
.eligibility-badge.is-eligible { background: var(--ok-l); color: #08795f; }
.eligibility-badge.is-blocked, .eligibility-badge.is-ineligible { background: var(--red-l); color: #b4232a; }
.eligibility-badge.is-review, .eligibility-badge.is-caution { background: var(--warn-l); color: #a24f00; }
.announcement-title { grid-area: title; display: block; min-height: 44px; margin-top: 5px; padding: 5px 0; color: var(--ink); font-size: 19px; font-weight: 780; letter-spacing: -.03em; line-height: 1.4; text-align: left; scroll-margin-top: 84px; }
.announcement-title:hover { color: var(--b-dd); }
.announcement-summary { grid-area: sum; display: -webkit-box; margin-top: 6px; overflow: hidden; color: var(--ink-2); font-size: 15px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.announcement-deadline { grid-area: sum; margin-top: 6px; color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.announcement-deadline strong, .announcement-deadline b { white-space: nowrap; }
.announcement-deadline strong { color: var(--ink); font-weight: 700; }
.announcement-deadline b { font-weight: 750; }
.announcement-deadline b.is-urgent { color: #b4232a; }
.meta-list { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; margin-top: 12px; }
.meta-list > span { display: inline-block; max-width: 340px; height: 28px; padding: 0 11px; overflow: hidden; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 13px; font-weight: 650; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }
.save-button { grid-area: save; align-self: start; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 15px; font-weight: 700; transition: background-color .2s, color .2s; }
.save-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.save-button:hover { background: #ebebf2; color: var(--ink); }
.save-button.is-saved { background: var(--b); color: #fff; }
.save-button.is-saved svg { fill: currentColor; }
.deadline-block { grid-area: dd; display: grid; grid-template-rows: auto auto auto; justify-items: center; align-content: start; width: 84px; text-align: center; }
.deadline-block::before { content: ""; grid-row: 1 / 3; grid-column: 1; width: 76px; min-height: 76px; border-radius: 24px; background: var(--b-ll); }
.deadline-block small { grid-row: 1; grid-column: 1; padding-top: 14px; color: var(--b-dd); font-size: 12px; font-weight: 750; opacity: .8; line-height: 1.2; }
.deadline-block b { grid-row: 2; grid-column: 1; display: flex; align-items: center; justify-content: center; width: 70px; min-height: 40px; padding: 2px 0 10px; color: var(--b-dd); font-size: 20px; font-weight: 850; letter-spacing: -.04em; line-height: 1.1; word-break: keep-all; }
.deadline-block strong { grid-row: 3; grid-column: 1; margin-top: 6px; color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.3; }
.deadline-block b.is-upcoming, .deadline-block b.is-pending, .deadline-block b.is-forecast, .deadline-block b[class=""] { font-size: 13px; letter-spacing: -.02em; }
.announcement-card:has(.deadline-block b.is-urgent) .deadline-block::before { background: var(--b); }
.announcement-card:has(.deadline-block b.is-urgent) .deadline-block small, .announcement-card:has(.deadline-block b.is-urgent) .deadline-block b { color: #fff; }
.announcement-card.is-forecast .deadline-block::before { background: var(--warn-l); }
.announcement-card.is-forecast .deadline-block small, .announcement-card.is-forecast .deadline-block b { color: #a24f00; }
.detail-link { grid-area: more; align-self: end; display: inline-flex; align-items: center; gap: 4px; height: 44px; margin-top: 8px; padding: 0 10px 0 14px; border-radius: 999px; color: var(--b-dd); font-size: 15px; font-weight: 700; white-space: nowrap; }
.detail-link:hover { background: var(--b-lll); }
.detail-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* pagination */
.results-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
#paginationStatus { flex: 1; min-width: 160px; color: var(--ink-3); font-size: 14.5px; font-weight: 650; }
.pagination-controls { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--sh); }
.pagination-controls .ind { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--b); pointer-events: none; }
#paginationPages { display: flex; gap: 4px; }
.pagination-controls button { position: relative; z-index: 1; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 750; }
.pagination-controls button:hover:not(:disabled):not([aria-current="page"]) { background: var(--soft); }
.pagination-controls button[aria-current="page"] { background: var(--b); color: #fff; }
.pagination-controls.has-ind button[aria-current="page"] { background: transparent; }
.pagination-controls button:disabled { opacity: .4; }
.pagination-ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: var(--ink-3); }

/* empty */
.empty-state { display: flex; flex-direction: column; align-items: center; margin-top: 16px; padding: 48px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); text-align: center; }
.empty-mascot { line-height: 0; }
.empty-mascot .mascot.empty-arch { width: 88px; height: 81px; margin-bottom: 12px; }
.empty-glyph { display: none; }
.empty-state strong { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.empty-state p { margin: 6px 0 16px; color: var(--ink-2); }
.empty-state button { height: 48px; padding: 0 22px; border-radius: 999px; background: var(--b); color: #fff; font-size: 16px; font-weight: 700; }

/* calendar */
.calendar-view { margin-top: 16px; }
.calendar-head { display: flex; flex-direction: column; gap: 14px; }
.calendar-nav { display: flex; align-items: center; gap: 10px; }
.calendar-nav > span { flex: 1; min-width: 0; text-align: center; }
.calendar-nav small { display: block; color: var(--b-d); font-size: 14px; font-weight: 700; }
.calendar-nav h3 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.calendar-nav p { color: var(--ink-3); font-size: 14px; }
#prevMonth, #nextMonth { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh); color: var(--ink); font-size: 20px; font-weight: 700; flex: none; }
.calendar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-actions button { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 700; }
.calendar-actions button:hover { background: #ebebf2; }
#openAlertSettings { background: var(--b-ll); color: var(--b-dd); }
#todayButton { margin-left: auto; background: var(--ink); color: #fff; }
.calendar-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.calendar-profile-row { padding: 14px 16px; border-radius: 22px; background: #fff; box-shadow: var(--sh); }
.calendar-profile-row label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.calendar-profile-row input { position: absolute; left: 0; top: 50%; width: 52px; height: 32px; margin: -16px 0 0; opacity: 0; cursor: pointer; }
.calendar-profile-row label > span { position: relative; width: 52px; height: 32px; border-radius: 999px; background: var(--line); flex: none; transition: background-color .2s; }
.calendar-profile-row label > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transform: translateX(var(--knob, 0px)); }
.calendar-profile-row input:checked + span { background: var(--b); }
.calendar-profile-row input:checked + span::after { --knob: 20px; }
.calendar-profile-row input:disabled + span { opacity: .45; }
.calendar-profile-row input:focus-visible + span { outline: 3px solid var(--b-l); outline-offset: 2px; }
.calendar-profile-row b { font-size: 16px; font-weight: 750; }
.calendar-profile-row p { margin: 6px 0 0 62px; color: var(--ink-2); font-size: 14px; }
#calendarProfileSetup { height: 40px; margin: 8px 0 0 62px; padding: 0 16px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 14px; font-weight: 750; }
.calendar-sync-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--b-lll); }
.calendar-sync-note .sync-icon.duo { width: 28px; height: 28px; }
.calendar-sync-note strong { font-size: 16px; font-weight: 800; }
.calendar-sync-note span { flex: 1 1 320px; color: var(--ink-2); font-size: 14.5px; }
.calendar-sync-note button { height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); }
.calendar-sync-note .calendar-sync-now { background: var(--b); color: #fff; box-shadow: none; }
.calendar-sync-now:disabled { opacity: .55; }
.calendar-mobile-hint { display: none; }
.calendar-scroll { margin-top: 16px; padding: 12px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays span { padding: 4px 0; color: var(--ink-3); font-size: 13px; font-weight: 750; text-align: center; }
.calendar-day { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 104px; padding: 8px 6px 6px; border-radius: 18px; transition: background-color .18s; }
.calendar-day:hover { background: var(--b-lll); }
.calendar-day.is-outside { opacity: .45; }
.calendar-date { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); font-size: 15px; font-weight: 700; }
.calendar-day.is-today { background: var(--b-ll); }
.calendar-day.is-today .calendar-date { background: var(--ink); color: #fff; }
.calendar-event { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 26px; padding: 3px 7px; overflow: hidden; border-radius: 10px; background: var(--b-ll); color: var(--b-dd); font-size: 12px; font-weight: 650; text-align: left; white-space: nowrap; }
.calendar-event b { flex: none; font-weight: 800; }
.calendar-event span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.calendar-event.is-posted { background: var(--ok-l); color: #08795f; }
.calendar-event.is-forecast { background: var(--warn-l); color: #a24f00; }
.calendar-event:hover { filter: brightness(.97); }
.calendar-more { margin: 0; padding-left: 4px; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-legend i { display: block; width: 10px; height: 10px; border-radius: 9px; }
.legend-deadline { background: var(--b); }
.legend-new { background: var(--ok); }
.legend-forecast { background: var(--warn); }

/* ---------- store ---------- */
.arche-store { margin-top: 96px; scroll-margin-top: 84px; }
.store-heading { display: flex; flex-direction: column; align-items: center; max-width: 680px; margin: 0 auto; text-align: center; }
.store-heading > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.store-heading h2 { font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.store-heading > span { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.order-health { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 16px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--sh); color: var(--ink-2); font-size: 14px; font-weight: 650; }
.order-health i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.order-health.is-healthy i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-l); }
.order-health.is-failed { background: var(--red-l); color: #b4232a; }
.order-health.is-failed i { background: var(--red); }
.tl-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; align-items: stretch; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border-radius: 32px; background: #fff; box-shadow: var(--sh); }
.tl-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.tl-node { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--b-ll); color: var(--b-dd); font-size: 15px; font-weight: 800; flex: none; }
.tl-head em { display: none; }
.shot-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 196px; margin: 18px 0; overflow: hidden; border-radius: 24px; background: var(--b-lll); text-decoration: none; }
.shot-visual img { width: 64%; height: auto; margin-top: 18px; border-radius: 10px; box-shadow: 0 18px 30px -16px rgba(32, 31, 54, .45); }
.shot-visual span { position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--sh); color: var(--b-dd); font-size: 14px; font-weight: 750; white-space: nowrap; transform: translateX(-50%); }
.card-author { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 16px; border-radius: 24px; background: var(--b-lll); }
.phd-team-icon, .card-author .phd-team-icon { display: block; width: 84px; height: auto; flex: none; border-radius: 0; object-fit: contain; }
.card-author span { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.card-author b { color: var(--ink); font-size: 15px; font-weight: 800; }
/* 영어 대문자 킥커는 문장형 작은 라벨로 */
.service-eyebrow, .pro-eyebrow, .onboarding-kicker, .funding-login-card > div > p:first-of-type, .sources-dialog-head p, .order-form-view header p, .consult-block h3 em { display: inline-block; text-transform: lowercase; }
.service-eyebrow::first-letter, .pro-eyebrow::first-letter, .onboarding-kicker::first-letter, .funding-login-card > div > p:first-of-type::first-letter, .sources-dialog-head p::first-letter, .order-form-view header p::first-letter, .consult-block h3 em::first-letter { text-transform: uppercase; }
.service-eyebrow { color: var(--b-d); font-size: 14px; font-weight: 750; }
.service-card h3 { margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.service-card > p:not(.service-eyebrow) { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.service-card > p b { color: var(--ink); }
.service-card ul { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 26px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.service-card li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--b-ll) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.2 4.7-4.8' fill='none' stroke='%232f29a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.author-note { margin-top: 14px; padding: 16px 18px; border-radius: 22px; background: var(--b-lll); }
.author-note p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.author-note p + p { margin-top: 8px; }
.author-note p:nth-child(2) { color: var(--b-dd); font-weight: 650; }
.author-contact a { color: var(--b-dd); font-weight: 700; text-underline-offset: 3px; }
.service-buy { margin-top: auto; padding-top: 18px; }
.service-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.service-price del { color: var(--ink-3); font-size: 15px; }
.service-price strong { font-size: 30px; font-weight: 850; letter-spacing: -.04em; }
.service-price small { width: 100%; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.service-buy button { width: 100%; min-height: 52px; margin-top: 14px; padding: 10px 20px; border-radius: 999px; background: var(--b); color: #fff; font-size: 16px; font-weight: 750; line-height: 1.35; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); transition: background-color .2s; }
.service-buy button:hover:not(:disabled) { background: var(--b-d); }
.service-buy button:disabled { opacity: .45; }
.service-note { display: block; margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }

/* ---------- footer ---------- */
.arche-footer { margin-top: 80px; padding: 40px 0 calc(40px + var(--safe-b)); border-top: 1.5px solid var(--line); color: var(--ink-3); font-size: 14px; }
.arche-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; color: var(--ink-2); }
.arche-footer-top strong { color: var(--ink); font-weight: 800; }
html body .policy-links, html body .arche-policy-footer { display: flex; flex-wrap: wrap; gap: 0 18px; width: auto; padding: 0; color: var(--ink-2); font: 650 14px/1.4 var(--font); }
html body .policy-links button, html body .policy-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--ink-2); font: inherit; text-decoration: none; }
html body .policy-links button:hover, html body .policy-links a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.footer-contact b { color: var(--ink-2); }
.footer-contact a, .biz-footer a { color: var(--ink-2); text-underline-offset: 3px; }
.biz-footer { margin-top: 14px; line-height: 1.8; }
.biz-footer p { margin: 0; }
.biz-footer strong { color: var(--ink-2); }
.footer-copy { margin-top: 8px !important; }

/* ---------- toast (app.js #toast) ---------- */
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 960; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px 12px 14px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); font-size: 15px; font-weight: 600; line-height: 1.45; opacity: 0; translate: -50% 0; transform: translateY(90px); pointer-events: none; will-change: transform, opacity; }
#toast.is-visible { opacity: 1; transform: none; }
#toast > span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--b); color: #fff; font-size: 14px; font-weight: 800; flex: none; }
#toast p { margin: 0; }

/* ---------- dialogs: v2 시트 ---------- */
dialog { max-width: calc(100vw - 32px); max-height: min(86vh, 860px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: var(--sh-lg); }
dialog::backdrop { background: rgba(32, 31, 54, .32); }
.detail-dialog { width: min(760px, calc(100vw - 32px)); }
.sources-dialog { width: min(640px, calc(100vw - 32px)); padding: 26px; }
.receipt-dialog { width: min(720px, calc(100vw - 32px)); }
.funding-login-dialog { width: min(480px, calc(100vw - 32px)); }
.pro-dialog { width: min(760px, calc(100vw - 32px)); }
.trial-dialog, .alert-dialog { width: min(560px, calc(100vw - 32px)); }
#calendarHelpDialog { width: min(600px, calc(100vw - 32px)); }
.order-dialog { width: min(520px, calc(100vw - 32px)); }
/* 닫기 버튼 공통 */
.dialog-head > button, .sources-dialog-head > button, .funding-login-close, .dialog-x, #closeOrderDialog, html body #archeLegalClose, html body #archeAccountClose { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink-2); font-size: 22px; font-weight: 500; line-height: 1; flex: none; cursor: pointer; }
.dialog-head > button:hover, .sources-dialog-head > button:hover, .funding-login-close:hover, .dialog-x:hover, #closeOrderDialog:hover { background: #ebebf2; }
.dialog-grab { display: none; }
dialog[open]::backdrop { animation: f-fade-in .22s ease both; }
dialog.is-closing { pointer-events: none; }
dialog.is-closing::backdrop { animation: f-fade-out .22s ease both; }
@keyframes f-fade-in { from { opacity: 0; } }
@keyframes f-fade-out { to { opacity: 0; } }
.roll-src { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.roll-view { display: inline-flex; }
.spring-src { visibility: hidden; }
.onboarding-progress, .tour-progress { position: relative; }
.spring-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; background: var(--b); }

/* detail */
.dialog-shell { display: flex; flex-direction: column; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 20px 22px 12px 26px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.dialog-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#dialogSourceType { color: var(--b-d); font-size: 13px; font-weight: 750; }
#dialogSource { font-size: 16px; font-weight: 800; }
.dialog-content { padding: 4px 26px 26px; }
.dialog-kicker { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-kicker .field-tag { background: var(--soft); }
#dialogContent h2 { margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.dialog-summary { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.dialog-original-title { margin-top: 4px; color: var(--ink-3); font-size: 13.5px; }
.forecast-notice { margin-top: 14px; padding: 14px 18px; border-radius: 22px; background: var(--warn-l); color: #7a3c00; font-size: 15px; }
.forecast-notice strong { display: block; font-size: 16px; }
.forecast-notice p { margin: 2px 0; }
.pro-forecast-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding: 14px 16px; border-radius: 22px; background: var(--b-lll); font-size: 14.5px; }
.pro-forecast-lock b { font-size: 15px; }
.pro-forecast-lock span { flex: 1 1 260px; color: var(--ink-2); }
.pro-forecast-lock button { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--b); color: #fff; font-size: 14px; font-weight: 750; }
.decision-panel { margin-top: 14px; padding: 16px 18px; border-radius: 22px; background: var(--b-lll); }
.decision-panel > div { display: flex; flex-direction: column; }
.decision-panel small { color: var(--b-d); font-size: 13px; font-weight: 750; }
.decision-panel strong { font-size: 17px; font-weight: 800; }
.decision-panel p, .decision-panel ul { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.decision-panel ul { padding-left: 18px; }
.decision-panel.is-eligible { background: var(--ok-l); }
.decision-panel.is-eligible small, .decision-panel.is-eligible strong { color: #08795f; }
.decision-panel.is-blocked, .decision-panel.is-ineligible { background: var(--red-l); }
.decision-panel.is-blocked small, .decision-panel.is-blocked strong { color: #b4232a; }
.dialog-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.dialog-meta-grid > div { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; border-radius: 18px; background: var(--soft); }
.dialog-meta-grid small { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.dialog-meta-grid strong { margin-top: 2px; font-size: 15px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.detail-section { margin-top: 18px; }
.detail-section h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.detail-section ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.detail-section li + li { margin-top: 4px; }
.rule-copy { color: var(--ink-2); font-size: 0.87500rem; }
.document-section ul { display: flex; flex-direction: column; gap: 6px; padding: 0; list-style: none; }
.document-section li { padding: 10px 12px; border-radius: 16px; background: var(--soft); }
.document-section a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--ink); text-decoration: none; }
.document-section a strong { min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.document-section a span { color: var(--ink-3); font-size: 13px; font-weight: 650; }
.document-section p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.evidence-box { display: flex; flex-direction: column; margin-top: 18px; padding: 16px 18px; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--line); }
.evidence-box small { color: var(--b-d); font-size: 13px; font-weight: 750; }
.evidence-box strong { margin-top: 2px; font-size: 15px; }
.evidence-box p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.evidence-box > span { margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.source-link-button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 18px; border-radius: 999px; background: var(--b); color: #fff; font-size: 16px; font-weight: 750; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); }
.source-link-button:hover { background: var(--b-d); }
.source-link-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calendar-add-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.calendar-add-actions a, .dialog-save-button, .dialog-ics-button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; }
.calendar-add-actions a:hover, .dialog-save-button:hover, .dialog-ics-button:hover { background: #ebebf2; }
.dialog-ics-button { width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; }
.dialog-save-button { gap: 7px; width: 100%; transition: background-color .2s, color .2s; }
.dialog-save-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.dialog-save-button.is-saved { background: var(--b); color: #fff; }
.dialog-save-button.is-saved:hover { background: var(--b-d); }
.dialog-save-button.is-saved svg { fill: currentColor; }
.dialog-caution { margin-top: 12px; color: var(--ink-3); font-size: 14px; }

/* sources / receipt */
.sources-dialog-head { display: flex; align-items: flex-start; gap: 12px; }
.sources-dialog-head > div { flex: 1; }
.sources-dialog-head p { color: var(--b-d); font-size: 13px; font-weight: 750; }
.sources-dialog-head h2 { margin-top: 2px; font-size: 24px; font-weight: 800; }
.sources-intro { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.source-status-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.source-status-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--soft); }
.source-initial { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; background: #fff; color: var(--b-dd); font-size: 14px; font-weight: 850; flex: none; }
.source-status-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.source-status-item strong { font-size: 15px; font-weight: 700; }
.source-status-item small { color: var(--ink-3); font-size: 13px; font-weight: 550; }
.source-health { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--ok-l); color: #08795f; font-size: 13px; font-weight: 750; white-space: nowrap; flex: none; }
.source-health i, .sources-dialog-foot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.source-health.is-muted { background: #fff; color: var(--ink-3); }
.sources-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.sources-dialog-foot > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.sources-dialog-foot > span[hidden], .sources-intro[hidden] { display: none; }
.sources-dialog-foot button { height: 48px; padding: 0 26px; border-radius: 999px; background: var(--b); color: #fff; font-size: 16px; font-weight: 750; }
.receipt-content { margin-top: 14px; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.receipt-grid > div { display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: 18px; background: var(--soft); }
.receipt-grid small { color: var(--ink-3); font-size: 13px; font-weight: 650; }
.receipt-grid strong { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.receipt-grid code { margin-top: 4px; color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.receipt-wide { grid-column: 1 / -1; }
.receipt-source-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.receipt-source-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--soft); font-size: 14px; }
.receipt-issue-list li { background: var(--warn-l); color: #7a3c00; }
.receipt-summary { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }
.receipt-empty { padding: 18px; border-radius: 22px; background: var(--b-lll); }
.receipt-empty strong { font-size: 16px; }
.receipt-empty p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }

/* login */
.funding-login-card { position: relative; padding: 30px 26px 24px; text-align: center; }
.funding-login-close { position: absolute; right: 16px; top: 16px; }
#fundingLoginView, .funding-account-view { display: flex; flex-direction: column; align-items: center; }
#fundingLoginView[hidden], .funding-account-view[hidden] { display: none; }
.funding-login-mark { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 22px; background: var(--b-ll); color: var(--b-dd); }
.funding-login-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.funding-login-card > div > p:first-of-type { color: var(--b-d); font-size: 13px; font-weight: 750; }
.funding-login-card h2 { margin-top: 4px; font-size: 24px; font-weight: 800; }
.funding-login-card > div > span { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.funding-google-start, .funding-logout-button { width: 100%; height: 52px; margin-top: 14px; border-radius: 999px; background: var(--b); color: #fff; font-size: 16px; font-weight: 750; }
.funding-google-start:disabled { opacity: .45; }
.funding-logout-button { background: var(--soft); color: var(--ink); }
.funding-google-host { display: flex; justify-content: center; margin-top: 12px; }
.funding-login-status { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.funding-login-status.is-error { color: #b4232a; }
.funding-login-card small { display: block; margin-top: 10px; color: var(--ink-3); font-size: 13px; }
html body .legal-consent { gap: 10px; margin: 16px 0 0; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--soft); color: var(--ink-2); font: 500 14px/1.55 var(--font); text-align: left; }
html body .legal-consent label { align-items: flex-start; gap: 10px; cursor: pointer; }
html body .legal-consent input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--b); flex: none; }
html body .legal-consent b { color: var(--ink); }
html body .legal-consent button { min-height: 0; padding: 0; color: var(--b-dd); font-weight: 750; }

/* pro / consult / trial / alert / calendar help */
.pro-dialog-card { position: relative; padding: 30px 30px 26px; }
.dialog-x { position: absolute; right: 18px; top: 18px; }
.pro-eyebrow { color: var(--b-d); font-size: 14px; font-weight: 750; }
.pro-dialog-card h2 { max-width: calc(100% - 56px); margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.pro-lead { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 20px; }
.plan-grid section { display: flex; flex-direction: column; padding: 20px; border-radius: 24px; background: var(--soft); }
.plan-grid section.is-pro { background: var(--b-ll); box-shadow: inset 0 0 0 2px var(--b); }
.plan-grid section > span { color: var(--ink-2); font-size: 15px; font-weight: 800; }
.plan-grid section.is-pro > span { color: var(--b-dd); }
.plan-grid em { color: var(--ink-2); font-size: 14px; font-style: normal; font-weight: 650; }
.plan-grid strong { margin-top: 4px; font-size: 28px; font-weight: 850; letter-spacing: -.04em; }
.plan-grid small { color: var(--ink-3); font-size: 14px; font-weight: 600; text-decoration: line-through; }
.plan-grid ul { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.plan-grid li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 650; }
.plan-grid li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.2 4.7-4.8' fill='none' stroke='%235b54f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pro-benefits li b { display: block; }
.pro-benefits li span { display: block; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.launch-terms { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; }
.launch-terms b { font-size: 18px; font-weight: 800; }
.launch-terms span { color: var(--ink-2); font-size: 15px; }
.trial-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 16px; padding: 0 24px; border-radius: 999px; background: var(--b); color: #fff; font-size: 17px; font-weight: 750; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); }
.trial-button:hover { background: var(--b-d); }
.provider-note { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.pro-dialog details { margin-top: 14px; border-radius: 20px; background: var(--soft); }
.pro-dialog summary { display: flex; align-items: center; min-height: 48px; padding: 0 18px; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.pro-dialog summary::-webkit-details-marker { display: none; }
.pro-dialog summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 20px; font-weight: 500; }
.pro-dialog details[open] summary::after { content: "−"; }
.pro-dialog details p { padding: 0 18px 16px; color: var(--ink-2); font-size: 14.5px; }
.consult-author { display: flex; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 22px; background: var(--b-lll); }
.consult-author .phd-team-icon { align-self: flex-start; }
.consult-author b { display: block; font-size: 15.5px; }
.consult-author span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.consult-author span b { display: inline; color: var(--ink); }
.consult-block h3 { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 18px; font-weight: 800; }
.consult-block h3 em { padding: 0 10px; height: 26px; line-height: 26px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 13px; font-style: normal; font-weight: 750; }
.consult-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.consult-list li { padding: 12px 14px; border-radius: 18px; background: var(--soft); color: var(--ink-2); font-size: 15px; }
.consult-list b { color: var(--ink); }
.consult-clock { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.consult-clock > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--soft); }
.consult-clock dt { flex: none; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; color: var(--b-dd); font-size: 13px; font-weight: 800; line-height: 28px; }
.consult-clock dd { margin: 0; color: var(--ink-2); font-size: 14px; }
.consult-clock dd b { display: block; color: var(--ink); font-size: 15px; }
.consult-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; padding: 18px 20px; border-radius: 24px; background: var(--b-ll); }
.consult-price > div { flex: 1 1 260px; display: flex; flex-direction: column; }
.consult-price strong { font-size: 28px; font-weight: 850; letter-spacing: -.04em; }
.consult-price span { color: var(--ink-2); font-size: 14px; }
.consult-cta { width: auto; margin-top: 0; }
.consult-fine { margin-top: 12px; color: var(--ink-3); font-size: 13.5px; }
.trial-input-row { display: flex; gap: 8px; margin-top: 18px; }
.trial-input-row input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 16px; outline: 0; }
.trial-input-row input:focus { box-shadow: inset 0 0 0 2px var(--b); }
.trial-input-row .trial-button { width: auto; margin-top: 0; }
.trial-signup-status { margin-top: 10px; color: var(--ok); font-size: 15px; font-weight: 700; }
.trial-signup-status:empty { display: none; }
.alert-master { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: 20px; background: var(--soft); cursor: pointer; }
.alert-master input { width: 24px; height: 24px; margin: 0; accent-color: var(--b); flex: none; }
.alert-master span { display: flex; flex-direction: column; }
.alert-master b { font-size: 16px; }
.alert-master small { color: var(--ink-2); font-size: 14px; }
.alert-offsets { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.alert-offsets legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 750; }
.alert-offsets label { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.alert-offsets input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.alert-offsets label:has(input:checked) { background: var(--b); color: #fff; box-shadow: none; }
.alert-offsets label:has(input:focus-visible) { outline: 3px solid var(--b-l); outline-offset: 2px; }
.match-alert-preview { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 20px; background: var(--soft); opacity: .8; }
.match-alert-preview span { flex: 1; display: flex; flex-direction: column; }
.match-alert-preview b { font-size: 15px; }
.match-alert-preview small { color: var(--ink-2); font-size: 14px; }
.match-alert-preview em { height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-style: normal; font-weight: 750; line-height: 28px; flex: none; }
.calendar-help-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.calendar-help-list li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 18px; background: var(--soft); }
.calendar-help-list b { font-size: 15.5px; }
.calendar-help-list span { margin-top: 2px; color: var(--ink-2); font-size: 14.5px; }

/* order */
.order-form-view, .order-done-view { padding: 26px; }
.order-form-view header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.order-form-view header > div { flex: 1; }
.order-form-view header p { color: var(--b-d); font-size: 13px; font-weight: 750; }
.order-form-view header h2 { margin-top: 2px; font-size: 24px; font-weight: 800; }
.order-product { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: 20px; background: var(--b-lll); }
.order-product strong { flex: 1; font-size: 15.5px; font-weight: 750; line-height: 1.4; }
.order-product span { font-size: 18px; font-weight: 850; white-space: nowrap; }
.order-form-view > label:not(.order-consent) { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 15px; font-weight: 750; }
.order-form-view > label:not(.order-consent) input { height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 16px; font-weight: 500; outline: 0; }
.order-form-view > label:not(.order-consent) input:focus { box-shadow: inset 0 0 0 2px var(--b); }
.order-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--soft); color: var(--ink-2); font-size: 14px; line-height: 1.55; cursor: pointer; }
.order-consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--b); flex: none; }
.order-info { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }
.order-wait { margin-top: 8px; padding: 10px 14px; border-radius: 16px; background: var(--b-lll); color: var(--b-dd); font-size: 14px; font-weight: 650; }
.order-error { margin-top: 8px; color: #b4232a; font-size: 14.5px; font-weight: 650; }
.order-error:empty { display: none; }
.order-actions { display: flex; gap: 10px; margin-top: 18px; }
.order-actions button { flex: 1; height: 52px; border-radius: 999px; font-size: 16px; font-weight: 750; }
.order-cancel { background: var(--soft); color: var(--ink); }
.order-submit { background: var(--b); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); }
.order-submit:disabled { opacity: .6; }
.order-done-view { display: flex; flex-direction: column; align-items: center; text-align: center; }
.order-done-view[hidden] { display: none; }
.order-done-view > span { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%; background: var(--b); color: #fff; font-size: 34px; font-weight: 800; }
.order-done-view h2 { font-size: 22px; font-weight: 800; }
.order-done-view p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.order-done-view p strong { color: var(--ink); font-size: 16px; }
.order-done-view button { width: 100%; height: 52px; margin-top: 18px; border-radius: 999px; background: var(--b); color: #fff; font-size: 16px; font-weight: 750; }

/* locale-shell 공용 대화상자 */
html body .arche-legal-dialog, html body .arche-account-dialog { border-radius: 32px; box-shadow: var(--sh-lg); color: var(--ink); }
html body .arche-legal-dialog::backdrop, html body .arche-account-dialog::backdrop { background: rgba(32, 31, 54, .32); backdrop-filter: none; }
html body .arche-legal-dialog h2, html body .arche-account-dialog h2 { color: var(--ink); font: 800 24px/1.25 var(--font); letter-spacing: -.035em; }
html body .arche-account-dialog small { color: var(--b-d); font-size: 13px; font-weight: 750; text-transform: lowercase; display: inline-block; }
html body .arche-account-dialog small::first-letter { text-transform: uppercase; }
html body #archeLegalBody { color: var(--ink-2); font-family: var(--font); }
html body #archeLegalBody h3 { color: var(--ink); }
html body #archeLegalBody a, html body #archeLegalBody b { color: var(--b-dd); }
html body #archeLegalBody .legal-summary, html body #archeLegalBody .legal-source { border: 0; border-radius: 22px; background: var(--b-lll); color: var(--ink-2); }
html body #archeLegalBody .legal-summary strong, html body #archeLegalBody .legal-source strong { color: var(--b-dd); }
html body .arche-account-dialog article > div button { min-height: 52px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-family: var(--font); font-weight: 750; }
html body .arche-account-dialog article > div button.danger { background: var(--red-l); color: #b4232a; }

/* ---------- profile onboarding (3단계 시트) ---------- */
.profile-onboarding { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(32, 31, 54, .32); overflow-y: auto; }
.onboarding-card { display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(92vh, 900px); margin: auto; overflow: auto; overscroll-behavior: contain; border-radius: 32px; background: #fff; box-shadow: var(--sh-lg); }
.onboarding-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 10px 24px; }
.onboarding-head .brand { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.onboarding-head-actions { display: flex; align-items: center; gap: 10px; }
#onboardingStepLabel { color: var(--b-d); font-size: 14px; font-weight: 800; white-space: nowrap; }
#profileCloseButton { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 15px; font-weight: 700; }
.onboarding-progress { height: 10px; margin: 0 24px; overflow: hidden; border-radius: 9px; background: var(--soft); }
.onboarding-progress i { display: block; height: 100%; width: 33.3%; border-radius: 9px; background: var(--b); }
#profileForm { display: flex; flex-direction: column; padding: 8px 24px 22px; }
.onboarding-kicker { margin-top: 16px; color: var(--b-d); font-size: 14px; font-weight: 750; }
.onboarding-step h1 { margin-top: 4px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.onboarding-description { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.profile-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.identity-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-choice-grid > legend { margin-bottom: 10px; }
.profile-field-label { padding: 0; color: var(--ink); font-size: 16px; font-weight: 800; }
.profile-choice-grid label { position: relative; display: flex; cursor: pointer; }
.profile-choice-grid input, .segmented-question input, .career-question input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.profile-choice-grid label > span { display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 78px; padding: 14px 40px 12px 16px; border-radius: 22px; background: var(--soft); transition: background-color .18s, box-shadow .18s; }
.profile-choice-grid label:hover > span { background: #ebebf2; }
.profile-choice-grid b { font-size: 17px; font-weight: 800; }
.profile-choice-grid small { margin-top: 2px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.profile-choice-grid label:has(input:checked) > span { background: var(--b-ll); box-shadow: inset 0 0 0 2.5px var(--b); }
.profile-choice-grid label:has(input:checked) > span::after { content: ""; position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.5 5.4-5.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.profile-choice-grid label:has(input:focus-visible) > span, .segmented-question label:has(input:focus-visible) span, .career-question label:has(input:focus-visible) span { outline: 3px solid var(--b-l); outline-offset: 2px; }
.segmented-question, .career-question { display: block; min-width: 0; margin: 18px 0 0; padding: 0; border: 0; font-size: 0; }
.segmented-question > legend, .career-question > legend { display: block; margin-bottom: 10px; padding: 0; font-size: 16px; }
.segmented-question label, .career-question label { position: relative; display: inline-flex; width: 50%; padding: 4px; background: var(--soft); cursor: pointer; }
.segmented-question label:first-of-type, .career-question label:first-of-type { padding-right: 2px; border-radius: 999px 0 0 999px; }
.segmented-question label:last-of-type, .career-question label:last-of-type { padding-left: 2px; border-radius: 0 999px 999px 0; }
.segmented-question label span, .career-question label span { display: flex; flex: 1; align-items: center; justify-content: center; height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 700; white-space: nowrap; transition: background-color .18s, color .18s, box-shadow .18s; }
.segmented-question label:has(input:checked) span, .career-question label:has(input:checked) span { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(32, 31, 54, .1); }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
.profile-form-grid > .career-question, .profile-form-grid > .insurance-question { grid-column: auto; }
.profile-input { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 750; }
.profile-input small { margin-left: 4px; color: var(--ink-3); font-weight: 600; }
.profile-input input, .input-with-unit { height: 50px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 16px; }
.profile-input > input { padding: 0 18px; outline: 0; }
.input-with-unit { display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.input-with-unit input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; outline: 0; }
.input-with-unit b { color: var(--ink-2); font-weight: 700; }
.profile-input:focus-within > input, .input-with-unit:focus-within { box-shadow: inset 0 0 0 2px var(--b); }
.current-projects-box { margin-top: 20px; padding: 16px; border-radius: 24px; background: var(--b-lll); }
.current-projects-box > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.current-projects-box > div:first-child > span { flex: 1 1 240px; display: flex; flex-direction: column; }
.current-projects-box b { font-size: 16px; font-weight: 800; }
.current-projects-box small { color: var(--ink-2); font-size: 14px; }
#addCurrentProject { height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--b-dd); font-size: 15px; font-weight: 750; box-shadow: inset 0 0 0 1.5px var(--b-l); }
.current-project-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; margin-top: 10px; align-items: center; }
.current-project-row input, .current-project-row select { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; outline: 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.current-project-row button { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 20px; }
.profile-form-error { margin: 14px 0 0; color: #b4232a; font-size: 15px; font-weight: 650; }
.profile-form-error:not(:empty) { display: flex; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--red-l); }
.onboarding-actions { position: sticky; bottom: -22px; display: flex; gap: 10px; margin: 18px -24px -22px; padding: 14px 24px 22px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); }
.onboarding-back, .onboarding-next { height: 54px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 750; }
.onboarding-back { background: var(--soft); color: var(--ink); }
.onboarding-next { flex: 1; margin-left: auto; background: var(--b); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); }
.onboarding-next:disabled { opacity: .55; }
.onboarding-next[hidden], .onboarding-back[hidden] { display: none; }

/* ---------- guided tour (app.js가 위치 계산; 모양만 v2) ---------- */
.guided-tour { position: fixed; inset: 0; z-index: 900; pointer-events: auto; }
.tour-spotlight { position: fixed; z-index: 901; border-radius: 24px; box-shadow: 0 0 0 9999px rgba(32, 31, 54, .26), 0 0 0 3px var(--b), 0 0 0 9px rgba(91, 84, 240, .18); pointer-events: none; transition: opacity 180ms ease; }
.tour-pointer { --tour-flip-x: 1; --tour-flip-y: 1; position: fixed; z-index: 902; width: 112px; height: 149px; pointer-events: none; transition: opacity 180ms ease; filter: drop-shadow(0 8px 10px rgba(32, 31, 54, .25)); }
.tour-pointer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: center; animation: tour-cursor-click 1.4s steps(2, end) infinite; }
.tour-pointer-halo { fill: #fff; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.tour-pointer-side { fill: var(--b-dd); stroke: #05070a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tour-pointer-arrow { fill: var(--b); stroke: #05070a; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.tour-pointer-hatch { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.tour-spotlight.is-repositioning, .tour-pointer.is-repositioning { opacity: 0 !important; transition: none; }
/* app.js rotates the arrow about its tip so it always points at the ring's centre; with no clear lane it hides the arrow. */
.tour-pointer { transform-origin: var(--tour-hotspot-x, 64%) var(--tour-hotspot-y, 8%); rotate: var(--tour-rotate, 0deg); }
.tour-pointer[hidden] { display: none; }
/* Free scrolling while the tour is open drifted the spotlight and pointer off their target; each step scrolls its target into view itself, then re-locks. */
html.tour-scroll-lock, body.tour-scroll-lock { overflow: hidden; }
@keyframes tour-cursor-click { 0%, 42%, 100% { transform: scaleX(var(--tour-flip-x)) scaleY(var(--tour-flip-y)); } 50%, 56% { transform: translate(2px, 3px) scale(.94) scaleX(var(--tour-flip-x)) scaleY(var(--tour-flip-y)); } }
.tour-popover { position: fixed; z-index: 903; display: grid; gap: 10px; max-height: calc(100vh - 40px); padding: 20px 20px 16px; overflow: auto; border-radius: 28px; background: #fff; box-shadow: var(--sh-lg); will-change: transform, opacity; }
.tour-popover > header, .tour-popover > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-popover > header span { color: var(--ink-3); font-size: 14px; font-weight: 700; }
.tour-popover > header button { height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.tour-popover > header button:hover { background: var(--soft); color: var(--ink); }
.tour-progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.tour-progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--b); }
.tour-step-label { margin: 0; color: var(--ink-3); font-size: 13px; font-weight: 750; }
.tour-popover h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; }
.tour-description { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.tour-simulation { min-height: 96px; padding: 14px; border-radius: 20px; background: var(--b-lll); }
.tour-popover > footer { margin-top: 4px; }
.tour-popover > footer button { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 15px; font-weight: 700; }
.tour-popover > footer button:last-child { margin-left: auto; min-width: 120px; padding: 0 22px; background: var(--b); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); }
.tour-popover > footer button:last-child:hover { background: var(--b-d); }
.tour-popover > footer button:disabled { opacity: .42; cursor: not-allowed; }
.tour-profile-demo { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tour-profile-demo span { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--b-ll); color: var(--b-dd); font-size: 14px; font-weight: 700; line-height: 36px; }
.tour-profile-demo strong { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ok-l); color: #08795f; font-size: 13px; line-height: 32px; }
.tour-match-demo { display: grid; gap: 5px; }
.tour-match-demo > span { width: fit-content; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ok-l); color: #08795f; font-size: 12px; font-weight: 800; line-height: 26px; }
.tour-match-demo strong { font-size: 15px; }
.tour-match-demo p, .tour-match-demo small { margin: 0; color: var(--ink-2); font-size: 13px; }
.tour-match-demo i { display: block; height: 8px; overflow: hidden; border-radius: 9px; background: var(--b-l); }
.tour-match-demo i b { display: block; height: 100%; border-radius: inherit; background: var(--b); }
.tour-calendar-demo { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.tour-calendar-demo > span { font-size: 15px; font-weight: 800; }
.tour-calendar-demo ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.tour-calendar-demo li { min-height: 40px; padding: 4px; border-radius: 12px; background: #fff; font-size: 12px; font-weight: 700; }
.tour-calendar-demo li.has-event { background: var(--b-ll); color: var(--b-dd); }
.tour-calendar-demo li em { display: block; font-style: normal; font-size: 12px; }
.tour-calendar-demo strong { grid-column: 1 / -1; color: var(--b-dd); font-size: 13px; }
.tour-access-demo { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.tour-access-demo span { width: fit-content; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 13px; font-weight: 800; line-height: 28px; }
.tour-access-demo span.pro { background: var(--b); color: #fff; }
.tour-access-demo b { font-size: 14px; }

/* first save cue */
.first-save-cue { position: fixed; z-index: 950; width: 52px; height: 69px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(32, 31, 54, .25)); animation: first-save-cue-nudge .9s ease-in-out infinite alternate; }
.first-save-cue svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-97deg); }
@keyframes first-save-cue-nudge { from { transform: translateX(0); } to { transform: translateX(8px); } }

/* ---------- ≤1080 ---------- */
@media (max-width: 1080px) {
  .explorer-body { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .tl-wrap { grid-template-columns: 1fr 1fr; }
  .tl-wrap .is-last { grid-column: 1 / -1; }
  .site-tabs a { padding: 0 12px; }
}

/* ---------- ≤960: 필터는 바텀시트 (app.js syncFilterAccessibility와 같은 경계) ---------- */
@media (max-width: 960px) {
  .explorer-body { grid-template-columns: minmax(0, 1fr); }
  .mobile-filter-trigger { display: inline-flex; }
  .filter-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 820; max-height: calc(100dvh - 40px); padding: 10px 20px calc(16px + var(--safe-b)); border-radius: 30px 30px 0 0; box-shadow: var(--sh-lg); transform: translateY(110%); visibility: hidden; }
  .filter-panel.is-open { transform: none; visibility: visible; }
  .filter-panel.is-closing { transform: none; visibility: visible; }
  .filter-panel::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 9px; background: var(--line); }
  .mobile-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-filter-head strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
  #mobileFilterClose { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink-2); }
  .filter-head strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filter-head { justify-content: flex-end; margin: 4px 0 0; }
  .radio-row, .check-row, .field-chips label { height: 44px; padding: 0 15px; font-size: 15px; }
  .radio-row small, .check-row small { font-size: 13px; }
  .mobile-apply-button { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; margin-top: 20px; border-radius: 999px; background: var(--b); color: #fff; font-size: 17px; font-weight: 750; box-shadow: 0 10px 24px -12px rgba(91, 84, 240, .7); }
  #mobileApplyCount { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 14px; line-height: 28px; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 810; background: rgba(32, 31, 54, .32); }
  .save-hint { display: none; }
}

/* ---------- ≤860: 모바일 (arche-ui .mnav·.top 규칙과 같은 경계) ---------- */
@media (max-width: 860px) {
  .site-top { gap: 10px; }
  .site-top .brand { margin-right: auto; }
  .brand-t small { display: none; }
  html body .arche-locale-switch button { height: 40px; min-width: 46px; }
  .account-button, .tour-replay-button { height: 44px; padding: 0 14px; }
  .tour-replay-button { padding: 0 12px; font-size: 13px; }
  .content-wrap { padding: 0 18px; }
  .page-head { padding: 28px 0 0; }
  .hero-mascot .mascot.hero-arch { width: 76px; height: 70px; }
  .page-head h1 { font-size: 38px; }
  .page-description { font-size: 16px; }
  .search-box { height: 60px; margin-top: 22px; padding: 0 8px 0 18px; gap: 10px; }
  .search-box input { font-size: 17px; }
  .search-box kbd { display: none; }
  .search-box svg.i { width: 22px; height: 22px; }
  .primary-nav { flex-wrap: nowrap; justify-content: flex-start; align-self: stretch; max-width: calc(100% + 36px); margin: 14px -18px 0; padding: 2px 18px 8px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: none; }
  .head-actions { align-self: stretch; margin-top: 18px; }
  .personalize-button { width: 100%; border-radius: 28px; padding: 14px 14px 14px 16px; }
  .personalize-copy { flex: 1; min-width: 0; }
  .personalize-copy strong { font-size: 17px; }
  .notice-strip { margin-top: 28px; padding: 14px; border-radius: 26px; }
  .notice-main { align-items: flex-start; }
  #agentNoticeText { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .last-sync { margin-right: auto; padding: 0; }
  .sync-card { padding: 10px 0 0; }
  .sync-card p { min-width: 0; flex-basis: 100%; order: 3; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { min-height: 120px; padding: 16px; border-radius: 24px; }
  .summary-value { font-size: 34px; }
  .summary-key { font-size: 14px; }
  .summary-card em { font-size: 13px; }
  .pro-launch-banner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 24px; border-radius: 30px; }
  .pro-launch-message strong { font-size: 25px; }
  .pro-launch-action { width: 100%; }
  #openProPlan { width: calc(100% - 80px); height: 54px; font-size: 17px; }
  .pro-launch-mascot { position: absolute; right: 14px; bottom: 16px; }
  .pro-launch-mascot .mascot.promo-arch { width: 70px; height: 64px; }
  .explorer { margin-top: 40px; }
  #resultsTitle { flex-basis: 100%; font-size: 23px; }
  .explorer-toolbar { width: 100%; }
  .view-switch { margin-left: auto; }
  .results-tools { flex-wrap: wrap; }
  .announcement-card { grid-template-columns: 64px minmax(0, 1fr) 44px; grid-template-areas: "dd kick save" "dd title title" "sum sum sum" "meta meta meta" "more more more"; gap: 0 14px; padding: 18px 16px; border-radius: 24px; }
  .deadline-block { width: 64px; }
  .deadline-block::before { width: 62px; min-height: 62px; border-radius: 20px; }
  .deadline-block small { padding-top: 10px; }
  .deadline-block b { width: 58px; min-height: 30px; padding-bottom: 8px; font-size: 17px; }
  .deadline-block b.is-upcoming, .deadline-block b.is-pending, .deadline-block b.is-forecast, .deadline-block b[class=""] { font-size: 12px; }
  .deadline-block strong { font-size: 12px; }
  .announcement-title { font-size: 17px; margin-top: 4px; }
  .sort-select select { font-size: 16px; }
  .announcement-summary, .announcement-deadline { margin-top: 10px; }
  .card-kicker .verified-badge, .card-kicker .eligibility-badge { display: none; }
  .save-button { width: 44px; padding: 0; justify-content: center; }
  .save-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .meta-list > span { max-width: 100%; }
  .detail-link { justify-self: end; }
  .results-pagination { justify-content: center; }
  #paginationStatus { flex-basis: 100%; text-align: center; }
  .pagination-controls { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .calendar-toggles { grid-template-columns: 1fr; }
  #todayButton { margin-left: 0; }
  .calendar-mobile-hint { display: block; margin-top: 12px; color: var(--ink-3); font-size: 14px; }
  .calendar-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding: 8px; border-radius: 24px; }
  .calendar-weekdays, .calendar-grid { min-width: 640px; gap: 2px; }
  .calendar-day { min-height: 84px; padding: 5px 3px; border-radius: 14px; }
  .calendar-date { width: 28px; height: 28px; font-size: 14px; }
  .arche-store { margin-top: 72px; }
  .store-heading h2 { font-size: 29px; }
  .store-heading > span { font-size: 16px; }
  .tl-wrap { display: flex; margin: 26px -18px 0; padding: 4px 18px 18px; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tl-wrap::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 86%; padding: 22px; border-radius: 28px; scroll-snap-align: center; }
  .arche-footer { margin-top: 56px; padding-bottom: 24px; }
  .arche-footer-top { flex-direction: column; align-items: flex-start; }
  /* dialogs → bottom sheets */
  dialog { width: 100% !important; max-width: 100%; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 30px 30px 0 0; }
  .dialog-grab { display: block; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 9px; background: var(--line); }
  html body .arche-legal-dialog, html body .arche-account-dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 30px 30px 0 0; }
  .dialog-content { padding: 4px 20px calc(22px + var(--safe-b)); }
  .dialog-head { padding: 14px 16px 10px 20px; }
  #dialogContent h2 { font-size: 22px; }
  .dialog-meta-grid { grid-template-columns: 1fr 1fr; }
  .sources-dialog { padding: 20px 20px calc(20px + var(--safe-b)); }
  .receipt-grid { grid-template-columns: 1fr; }
  .pro-dialog-card { padding: 24px 20px calc(22px + var(--safe-b)); }
  .pro-dialog-card h2 { font-size: 24px; }
  .plan-grid { grid-template-columns: 1fr; }
  .trial-input-row { flex-direction: column; }
  .trial-input-row .trial-button { width: 100%; }
  .order-form-view, .order-done-view { padding: 22px 20px calc(22px + var(--safe-b)); }
  .funding-login-card { padding: 26px 20px calc(22px + var(--safe-b)); }
  .profile-onboarding { align-items: flex-end; padding: 40px 0 0; }
  .onboarding-card { width: 100%; max-height: calc(100dvh - 40px); border-radius: 30px 30px 0 0; }
  .onboarding-head { padding: 14px 16px 8px 20px; }
  .onboarding-progress { margin: 0 20px; }
  #profileForm { padding: 4px 20px 22px; }
  .onboarding-step h1 { font-size: 23px; }
  .profile-choice-grid, .identity-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[lang="en"] .profile-choice-grid label > span { padding-right: 34px; overflow-wrap: anywhere; }
  html[lang="en"] .profile-choice-grid b { font-size: 16px; }
  .profile-form-grid { grid-template-columns: 1fr; gap: 0; }
  .current-project-row { grid-template-columns: 1fr 1fr 44px; }
  .current-project-row .project-name { grid-column: 1 / -1; }
  .onboarding-actions { margin: 18px -20px -22px; padding: 14px 20px calc(18px + var(--safe-b)); }
  #toast { bottom: calc(94px + var(--safe-b)); width: auto; left: 16px; right: 16px; max-width: none; border-radius: 24px; translate: none; }
}

.site-mnav a span { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* English page names are too long for a phone tab; show one-word labels there. */
html[lang="en"] .site-mnav a > span { display: none; }
html[lang="en"] .site-mnav a::after { content: attr(data-en-short); max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* English deadline labels ("Applications open", "View source notice") need a wider column. */
html[lang="en"] .announcement-card { grid-template-columns: 112px minmax(0, 1fr) auto; }
html[lang="en"] .deadline-block { width: 112px; }
html[lang="en"] .deadline-block::before { width: 108px; }
html[lang="en"] .deadline-block small { padding: 14px 8px 0; }
html[lang="en"] .deadline-block b { width: 100px; font-size: 18px; }
html[lang="en"] .deadline-block b.is-upcoming, html[lang="en"] .deadline-block b.is-pending, html[lang="en"] .deadline-block b.is-forecast, html[lang="en"] .deadline-block b[class=""] { font-size: 13px; line-height: 1.2; }
@media (max-width: 860px) {
  html[lang="en"] .announcement-card { grid-template-columns: 92px minmax(0, 1fr) 44px; }
  html[lang="en"] .deadline-block { width: 92px; }
  html[lang="en"] .deadline-block::before { width: 90px; }
  html[lang="en"] .deadline-block small { padding: 10px 6px 0; }
  html[lang="en"] .deadline-block b { width: 84px; font-size: 16px; }
  html[lang="en"] .deadline-block b.is-upcoming, html[lang="en"] .deadline-block b.is-pending, html[lang="en"] .deadline-block b.is-forecast, html[lang="en"] .deadline-block b[class=""] { font-size: 12px; }
}

/* ---------- 폰 ---------- */
@media (max-width: 680px) {
  .page-head { flex-direction: column; }
  .head-actions { width: 100%; }
  .sidebar-foot { align-self: center; }
}
@media (max-width: 430px) {
  .site-top .brand-t { display: none; }
  /* The English placeholder is longer than the Korean one; give it the full row. */
  html[lang="en"] .search-box { padding-left: 16px; gap: 8px; }
  html[lang="en"] .search-box input { font-size: 16px; }
  #openProPlan { width: calc(100% - 72px); padding: 0 14px; font-size: 16px; white-space: nowrap; }
}

/* ---------- tour: 작은 화면 ---------- */
@media (max-width: 720px) {
  .tour-spotlight { border-radius: 18px; box-shadow: 0 0 0 9999px rgba(32, 31, 54, .12), 0 0 0 3px var(--b), 0 0 0 8px rgba(91, 84, 240, .18); }
  .tour-pointer { width: 94px; height: 125px; }
  .tour-popover { left: 12px !important; right: 12px; top: auto !important; bottom: calc(92px + var(--safe-b)); width: auto !important; max-height: 40dvh !important; gap: 8px; padding: 16px 18px 12px; overflow: auto; border-radius: 28px; }
  .tour-popover h2 { font-size: 18px; }
  .tour-description { font-size: 14.5px; line-height: 1.55; }
  .tour-simulation { min-height: 0; padding: 10px; }
  .tour-pointer { display: none; }
  .tour-popover.is-tight .tour-simulation { display: none; }
  .tour-popover.is-tighter { gap: 6px; padding-top: 10px; }
  .tour-popover.is-tighter .tour-step-label { display: none; }
  .tour-popover.is-tighter .tour-description { font-size: 14px; line-height: 1.5; }
  .tour-popover.is-tighter > footer { margin-top: 0; }
}
@media (max-height: 640px) {
  .tour-pointer { width: 94px; height: 125px; }
  .tour-simulation { display: none; }
}
@media (max-height: 480px) {
  .tour-popover { gap: 3px; padding: 10px 14px; }
  .tour-description { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-pointer svg, .first-save-cue, .refresh-button.is-loading svg, .notice-strip.is-running #agentNoticeText::before { animation: none; }
  .tour-pointer { transition: none; }
}

/* 같은 역할의 "내 맞춤 조건" 칩은 숨기고 "내 연구비 찾기" 버튼이 조건 요약까지 보여준다(요소·핸들러는 유지). */
.head-actions .sidebar-foot { display: none; }

/* Funding discovery leads; preparation resources follow the user's current stage. */
.page-head { padding-top: 30px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); }
.hero-mascot { display: none; }
.head-actions { margin-top: 22px; }
.journey-intro { max-width: 650px; margin: 12px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.search-box { margin-top: 24px; }
.journey-home { margin-top: 24px; }
.journey-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.journey-overview section, .preparation-progress { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.journey-overview small { display: block; color: var(--ink-2); font-weight: 700; }
.journey-overview strong { display: block; margin-top: 8px; font-size: 30px; }
.journey-overview p, .preparation-progress > p { margin: 8px 0 12px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.journey-overview button { display: block; width: 100%; margin-top: 8px; padding: 10px 0; background: none; color: var(--b-dd); text-align: left; font-size: 14px; line-height: 1.6; }
.preparation-progress { margin-top: 14px; }
.preparation-progress h2 { font-size: 18px; }
.preparation-progress h2 span { color: var(--b); }
.preparation-progress ul { list-style: none; padding: 0; margin: 0; }
.preparation-progress li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.preparation-progress li > div { flex: 1; min-width: 0; }
.preparation-progress li strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.preparation-progress li small { display: block; margin-top: 6px; color: var(--ink-3); font-size: 12px; }
.preparation-progress li button { flex-shrink: 0; padding: 10px 12px; border-radius: 12px; background: var(--b-ll); color: var(--b-dd); font-size: 13px; }
.preparation-progress li .remove-preparation { background: transparent; color: var(--ink-3); font-size: 20px; }
.summary-grid[hidden], .journey-home[hidden], .journey-intro[hidden] { display: none; }
.announcement-card { grid-template-areas: "dd kick save" "dd title title" "dd sum sum" "dd meta more" "dd match match" "actions actions actions"; }
.match-context { grid-area: match; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.match-context p { margin: 4px 0; }
.match-context b { margin-right: 8px; }
.match-reason { color: #08795f; }
.match-caution { color: #925400; }
.preparation-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.preparation-actions a { color: var(--ink-2); }
.preparation-actions button, .preparation-keep, .preparation-offer button { padding: 13px 20px; border-radius: 14px; background: var(--b); color: #fff; font-weight: 700; }
.status-badge.unknown, .status-badge.preannouncement { background: var(--warn-l) !important; color: #925400 !important; }
.pro-launch-banner { margin-top: 32px; padding: 24px 32px; border-radius: 24px; }
.pro-launch-message strong { font-size: 22px; }
.pro-launch-mascot { display: none; }
.funding-update-details { margin-top: 18px; }
.funding-update-details > summary, .service-details > summary { padding: 16px 0; color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 700; }
.funding-update-details .notice-strip { margin-top: 0; }
.resource-catalogue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.resource-catalogue article { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.resource-catalogue small { color: var(--b); font-weight: 700; }
.resource-catalogue h3 { font-size: 19px; line-height: 1.4; }
.resource-catalogue p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.resource-catalogue strong { margin-top: auto; font-size: 21px; }
.resource-catalogue button, .resource-catalogue a { display: block; padding: 14px 12px; border-radius: 14px; background: var(--b-ll); color: var(--b-dd); text-align: center; font-weight: 700; font-size: 13px; line-height: 1.6; }
.resource-catalogue button:disabled { opacity: .5; cursor: not-allowed; }
.resource-note { margin: 16px 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.preparation-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); }
.preparation-dialog::backdrop { background: rgba(32, 31, 54, .4); }
.preparation-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; height: 48px; padding-right: 12px; background: #fff; }
.preparation-dialog-head .dialog-x { position: static; width: 44px; height: 44px; }
.preparation-shell { position: relative; padding: 0 34px 34px; }
.preparation-call { margin: 0 30px 12px 0; color: var(--b); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.preparation-shell h2 { font-size: 27px; line-height: 1.4; }
.preparation-shell p { margin-top: 10px; font-size: 14px; line-height: 1.7; }
.preparation-warning { margin: 20px 0; padding: 16px; border-radius: 16px; background: var(--warn-l); font-size: 13px; }
.preparation-warning a { display: inline-block; margin-top: 10px; text-decoration: underline; }
.preparation-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preparation-stages button { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink-2); text-align: left; font-size: 14px; line-height: 1.6; }
.preparation-stages button[aria-pressed="true"] { border-color: var(--b); background: var(--b-ll); color: var(--b-dd); }
.preparation-offer { margin-top: 20px; padding: 22px; border-radius: 20px; background: var(--b-ll); }
.preparation-offer small { color: var(--b); font-size: 12px; }
.preparation-offer h3 { margin-top: 8px; font-size: 21px; }
.preparation-offer strong { display: block; margin: 18px 0 12px; font-size: 24px; }
.preparation-offer button { width: 100%; }
.preparation-offer p:last-child, .preparation-storage { color: var(--ink-3); font-size: 12px; }
.preparation-keep { width: 100%; margin-top: 16px; background: var(--ink); }
.preparation-catalogue { display: block; margin: 18px auto 0; background: none; color: var(--ink-3); text-decoration: underline; font-size: 13px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; }
.resource-stage-picker { max-width: 860px; margin: 28px auto 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resource-stage-picker button { min-height: 76px; font-weight: 700; }
#resourceRecommendation { max-width: 860px; margin: 24px auto; }
#resourceRecommendation[hidden], #orderIntegrationStatus[hidden] { display: none; }
.resource-offer { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.resource-offer h3 { margin: 0; font-size: 27px; line-height: 1.4; }
.resource-book-preview { margin-top: 18px; }
.resource-consultants { display: flex; align-items: center; gap: 16px; }
.resource-catalogue .resource-consultants { flex-direction: column; align-items: flex-start; gap: 12px; }
.resource-offer p { margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.resource-offer .resource-recommendation { margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--b); }
.resource-offer .resource-reason { font-size: 16px; color: var(--ink); }
.resource-deliverable { margin-top: 22px; padding: 20px; border-radius: 16px; background: var(--b-ll); }
.resource-deliverable small { font-size: 12px; font-weight: 700; color: var(--b-dd); }
.resource-deliverable p { margin: 8px 0 12px; color: var(--ink); }
.resource-offer .resource-sample { display: inline-block; padding: 2px 0; border-radius: 0; background: transparent; color: var(--b-dd); text-align: left; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.resource-purchase { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.resource-offer .resource-purchase strong { display: block; margin: 0; font-size: 25px; line-height: 1.4; }
.resource-offer .resource-price-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.resource-offer .resource-primary { flex-shrink: 0; display: block; padding: 14px 20px; border-radius: 14px; background: var(--b); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center; text-decoration: none; }
.resource-offer .resource-primary:disabled { opacity: .5; cursor: not-allowed; }
.resource-catalogue-details > summary { padding: 18px 0; color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 700; }
.resource-catalogue-details .resource-catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.resource-catalogue .resource-offer { gap: 0; }
.resource-catalogue .resource-offer h3 { font-size: 22px; }
.resource-catalogue .resource-deliverable { margin-top: auto; }
.resource-catalogue .resource-purchase { flex-direction: column; align-items: stretch; }
.resource-catalogue .resource-offer > p { margin-bottom: 20px; }
.preparation-shell .resource-offer { margin-top: 20px; padding: 22px; }
.preparation-shell .resource-offer h3 { font-size: 23px; }
.preparation-shell .resource-purchase { flex-direction: column; align-items: stretch; }
#orderIntegrationStatus:not([hidden]) { display: block; height: auto; padding: 16px; border-radius: 14px; background: var(--warn-l); box-shadow: none; font-size: 14px; line-height: 1.7; }
#orderIntegrationStatus a { text-decoration: underline; }
@media (max-width: 680px) {
  .resource-stage-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-stage-picker button { min-height: 86px; padding: 14px; }
  .resource-offer { padding: 22px; }
  .resource-offer h3 { font-size: 23px; }
  .resource-purchase { flex-direction: column; align-items: stretch; gap: 16px; }
  .resource-catalogue-details .resource-catalogue { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) { .resource-catalogue { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .page-head { padding-top: 24px; }
  .page-head h1 { font-size: 31px; }
  .journey-overview { grid-template-columns: 1fr; }
  .announcement-card { grid-template-areas: "dd kick save" "dd title title" "sum sum sum" "meta meta meta" "match match match" "more more more" "actions actions actions"; }
  .preparation-actions { justify-content: space-between; }
  .preparation-progress li { flex-wrap: wrap; }
  .preparation-progress li > div { flex-basis: calc(100% - 44px); }
  .resource-catalogue { grid-template-columns: 1fr; }
  .pro-launch-banner { padding: 24px; }
  .pro-launch-action, #openProPlan { width: 100%; }
  .preparation-shell { padding: 0 20px 28px; }
  .preparation-shell h2 { font-size: 23px; }
  .preparation-stages { grid-template-columns: 1fr; }
}

/* 카톡 알림톡 수요조사 배너: 요약 카드 아래, 목록 위. 영문 화면에서는 숨긴다(카카오는 국내 전용). */
.kakao-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; margin-top: 16px; height: 156px; overflow: hidden; border-radius: var(--r); background: #fee500; box-shadow: var(--sh); color: #191919; }
html[lang="en"] .kakao-banner { display: none; }
.kakao-banner-copy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 28px; }
.kakao-banner-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: #191919; }
.kakao-banner-icon svg { width: 30px; height: 30px; fill: #fee500; }
.kakao-banner h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.kakao-banner p { margin: 4px 0 0; color: rgba(25, 25, 25, .72); font-size: 15px; }
.kakao-banner-button { height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: #191919; color: #fee500; font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s; }
.kakao-banner-button:hover { background: #000; transform: translateY(-1px); }
.kakao-banner-button:disabled { opacity: .55; cursor: default; transform: none; }
.kakao-banner-done { grid-column: 2 / 4; color: rgba(25, 25, 25, .8); font-size: 13.5px; font-weight: 700; }
.kakao-banner.is-done .kakao-banner-button { display: none; }
/* 오른쪽: 실제 알림톡처럼 보이는 미리보기. 카드 윗부분만 보이게 잘라 배너 높이를 지킨다. */
.kakao-preview { position: relative; background: #b2c7da; overflow: hidden; }
.kakao-preview::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 34px; background: linear-gradient(90deg, #fee500, rgba(254, 229, 0, 0)); z-index: 1; }
.kakao-preview-chat { position: absolute; left: 22px; top: 16px; display: flex; gap: 8px; width: 290px; transform: rotate(-2deg); transform-origin: top left; }
.kakao-preview-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 13px; background: #fff; }
.kakao-preview-avatar svg { width: 20px; height: 20px; }
.kakao-preview-body { min-width: 0; flex: 1; }
.kakao-preview-name { display: block; margin: 0 0 4px; color: #3b4652; font-size: 11.5px; font-weight: 700; }
.kakao-preview-card { overflow: hidden; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 10px 24px -14px rgba(25, 40, 60, .5); }
.kakao-preview-head { display: block; padding: 9px 12px; background: #fee500; font-size: 12.5px; font-weight: 800; }
.kakao-preview-content { padding: 10px 12px 12px; font-size: 11.5px; line-height: 1.5; color: #191919; }
.kakao-preview-content > b { display: block; font-size: 12.5px; }
.kakao-preview-content p { margin: 4px 0 6px; color: #191919; font-size: 11.5px; }
.kakao-preview-content ul { margin: 0; padding: 0; list-style: none; }
.kakao-preview-content li::before { content: "· "; }
.kakao-preview-cta { display: block; margin-top: 8px; padding: 7px 0; border-radius: 6px; background: #f2f2f2; text-align: center; }
@media (max-width: 960px) {
  .kakao-banner { grid-template-columns: minmax(0, 1fr) 210px; height: auto; min-height: 150px; }
  .kakao-banner-copy { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 12px 14px; }
  .kakao-banner-button { grid-column: 1 / -1; justify-self: start; }
  .kakao-banner-done { grid-column: 1 / -1; }
  .kakao-preview-chat { left: 16px; width: 250px; }
}
@media (max-width: 620px) {
  .kakao-banner { grid-template-columns: minmax(0, 1fr) 112px; border-radius: var(--r-s); }
  .kakao-banner-copy { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .kakao-banner-icon { display: none; }
  .kakao-banner h2 { font-size: 17px; }
  .kakao-banner p { font-size: 13.5px; }
  .kakao-banner-button { height: 42px; padding: 0 18px; font-size: 14.5px; }
  .kakao-preview-chat { left: 12px; top: 14px; width: 230px; }
  .kakao-preview-avatar, .kakao-preview-name { display: none; }
}

/* 넓은 화면에서 본문이 가운데로 좁게 몰리지 않게: 공용 arche-ui.css의 .wrap(1180px, 랜딩과 공유)을 이 앱에서만 넓힌다. */
.wrap { max-width: 1560px; }
