/* PLASK base: bundled fonts and design tokens (values from _docs/design/*.dc.html). */
@font-face { font-family: 'Pretendard'; src: url(../fonts/Pretendard-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url(../fonts/Pretendard-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url(../fonts/Pretendard-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url(../fonts/Pretendard-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(../fonts/IBMPlexMono-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(../fonts/IBMPlexMono-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #0B0F14;
  --reagent: #D8F550;
  --plask-blue: #2B6CFF;
  --glass-mint: #4FD1C5;
  --link: #1D47C2;
  --work-blue: #2560F0;
  --bg: #F4F5F7;
  --bg-pc: #F6F7F9;
  --card: #FFFFFF;
  --line: #E6E8EE;
  --line-soft: #F0F2F5;
  --text: #101828;
  --text-2: #344054;
  --text-3: #475467;
  --muted: #667085;
  --faint: #98A2B3;
  --hover: #F2F4F7;
  --sel: #EEF3FF;
  --ok: #12A150;
  --ok-text: #0B6B47;
  --warn-bg: #FFF1DB;
  --warn-text: #8F4F00;
  --family-bg: #E3F7F4;
  --family-text: #0B6158;
  --danger: #D92D20; /* real warnings only: failure, expiry, unverified */
  /* ---- 토큰 (2026-10-11 UX 정비): 글자 5단계 · 반경 3단계 · 간격 4단계 · 역할 색 ---- */
  --fs-0: 12px; --fs-1: 13px; --fs-2: 13.5px; --fs-3: 14.5px; --fs-4: 16px; --fs-5: 20px;
  --r-1: 8px; --r-2: 12px; --r-3: 16px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 20px;
  --bg-soft: #F9FAFB;
  --field-line: #D0D5DD;
  --muted-bg: #F2F4F7;
  --ok-bg: #E6F6EC; --ok-fg: #0B6B47;
  --warn-fg: #8F4F00;
  --danger-bg: #FEF3F2; --danger-fg: #B42318; --danger-line: #F3B8B4;
  --work-bg: #EEF3FF; --work-fg: #1D47C2;
  --personal-bg: #E3F7F4; --personal-fg: #0B6158;
  --draft-bg: #F7F3FF; --draft-fg: #5B2DA8; --draft-line: #8A63CF;
  --font: 'Pretendard', 'Apple SD Gothic Neo', system-ui, sans-serif;
  /* IBM Plex Mono has no Hangul glyphs: Korean labels fall back like the design does */
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font-family: inherit; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i.s { width: 16px; height: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--work-blue); outline-offset: 2px; }


/* 최신화 진행 카드 (2026-10-11) */
#refresh-card .rc{position:fixed;right:20px;bottom:20px;z-index:60;width:min(380px,calc(100vw - 32px));box-sizing:border-box;background:#FFFFFF;border:1px solid #E6E8EE;border-radius:14px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:14px 16px;font-size:13px;color:#101828}
@media (max-width:1023px){#refresh-card .rc{right:16px;bottom:96px}} /* 휴대폰 틀(1024 미만)과 같은 기준 (UX v2 P20) */
#refresh-card .rc-head{display:flex;align-items:center;gap:8px}
#refresh-card .rc-head b{font-size:14px;flex:1;min-width:0}
#refresh-card .rc-time{font-family:'IBM Plex Mono',monospace;font-size:12px;color:#667085}
#refresh-card .rc-x{width:28px;height:28px;border:0;background:none;border-radius:7px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#667085}
#refresh-card .rc-x:hover{background:#F2F4F7}
#refresh-card .rc-steps{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
#refresh-card .rc-steps li{display:flex;gap:10px;align-items:flex-start}
#refresh-card .rc-steps li > div{display:flex;flex-direction:column;gap:2px;min-width:0}
#refresh-card .rc-l{font-weight:600;display:flex;gap:6px;align-items:baseline}
#refresh-card .rc-w{font-size:11.5px;font-weight:500;color:#98A2B3}
#refresh-card .rc-run .rc-w{color:#2560F0}
#refresh-card .rc-err .rc-w{color:#B42318}
#refresh-card .rc-wait .rc-l{color:#98A2B3}
#refresh-card .rc-n{font-size:12.5px;line-height:1.5;color:#475467;word-break:keep-all}
#refresh-card .rc-err .rc-n{color:#B42318}
#refresh-card .rc-dot{width:18px;height:18px;border-radius:50%;box-sizing:border-box;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;margin-top:1px}
#refresh-card .rc-spin{width:16px;height:16px;border-radius:50%;border:2px solid #C7D7FE;border-top-color:#2560F0;flex-shrink:0;margin:2px 1px 0;animation:rc-spin .8s linear infinite;box-sizing:border-box}
@keyframes rc-spin{to{transform:rotate(360deg)}}
#refresh-card .rc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
@media (prefers-reduced-motion:reduce){#refresh-card .rc-spin{animation-duration:2.4s}}
#refresh-card .rc-res{margin-top:12px;padding:10px 12px;border-radius:10px;background:#F6FEF9;border:1px solid #D1FADF;color:#0B6B47;font-size:13px;line-height:1.5;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#refresh-card .rc-link{display:inline-block;margin-top:10px;font-size:12.5px;color:#1D47C2}
#refresh-card .rc-foot{margin-top:10px;font-size:11.5px;color:#98A2B3}
#refresh-card .rc-mini{margin-top:6px;font-size:12.5px;color:#475467;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#refresh-card .rc-more{height:28px;padding:0 10px;border:0;background:none;border-radius:7px;font:600 12.5px inherit;color:#1D47C2;cursor:pointer}
#refresh-card .rc-more:hover{background:#EEF3FF}
@media (max-width:1023px){#refresh-card .rc{bottom:96px}}
body.refreshing [data-act="refresh"] svg{animation:rc-spin 1s linear infinite}

/* 영역 색 고르기 (2026-10-11) */
.adot{cursor:pointer;transition:transform .12s}
.adot:hover,.adot:focus-visible{transform:scale(1.6);outline:none}
#area-color-pop{position:fixed;z-index:60;width:212px;box-sizing:border-box;padding:12px;border-radius:12px;background:#FFFFFF;border:1px solid #E6E8EE;box-shadow:0 12px 32px rgba(16,24,40,.18);font-size:13px;color:#101828}
#area-color-pop .acp-h{font-weight:700;margin-bottom:8px}
#area-color-pop .acp-g{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
#area-color-pop .acp-g button{width:30px;height:30px;border-radius:8px;border:2px solid #FFFFFF;box-shadow:0 0 0 1px #E6E8EE;cursor:pointer}
#area-color-pop .acp-g button[aria-pressed="true"]{box-shadow:0 0 0 2px #101828}
#area-color-pop .acp-f{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:12.5px;color:#475467}
#area-color-pop .acp-f input{width:28px;height:24px;padding:0;border:0;background:none;vertical-align:middle;cursor:pointer}
#area-color-pop .acp-auto{height:28px;padding:0 8px;border-radius:7px;border:1px solid #D0D5DD;background:#FFFFFF;font:inherit;font-size:12.5px;cursor:pointer}
