/* 바탕 — 글꼴 · 창 · 화면 틀 (뼈대). 색은 tokens.css 이름만. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hr-cream);
  color: var(--hr-ink);
  font-family: var(--hr-font);
  font-size: var(--hr-fs);
  line-height: var(--hr-lh);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--hr-fs-xl); line-height: 1.3; }
h2 { font-size: var(--hr-fs-lg); line-height: 1.4; }
p { margin: 0; }
a { color: var(--hr-burgundy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hr-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.hr-app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.hr-app.is-wide { max-width: none; }
.hr-main { flex: 1; padding: 20px var(--hr-gutter) 32px; display: flex; flex-direction: column; gap: 16px; }
.hr-main.has-tabs { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.hr-view { animation: hr-fade var(--hr-t-fade) ease-out; display: flex; flex-direction: column; gap: 16px; }
@keyframes hr-fade { from { opacity: 0; } to { opacity: 1; } }
.hr-head { display: flex; align-items: center; gap: 12px; padding: 12px var(--hr-gutter); border-bottom: 1px solid var(--hr-hair); background: var(--hr-paper); }
.hr-head h1 { font-size: var(--hr-fs-lg); }
.hr-muted { color: var(--hr-muted); }
.hr-small { font-size: var(--hr-fs-sm); line-height: 22px; }
.hr-center { text-align: center; }
.hr-stack { display: flex; flex-direction: column; gap: 12px; }
.hr-row-line { display: flex; align-items: center; gap: 8px; }
.hr-grow { flex: 1; }
.hr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* First paint for the authenticated desk mirrors its actual panels. */
.hr-main:has(.rd-loading){padding:0}
.hr-view:has(.rd-loading){animation:none}
.rd-loading{min-height:100dvh;background:var(--rd-bg);display:grid;grid-template-columns:198px 1fr}
.rd-loading>i{background:var(--rd-nav);border-right:1px solid var(--rd-line)}
.rd-loading>div{padding:clamp(16px,3.1vw,56px);padding-top:clamp(76px,8vw,108px);display:grid;grid-template-columns:2.35fr 1fr;align-content:start;gap:20px}
.rd-loading :is(b,em,span){display:block;border-radius:14px;border:1px solid var(--rd-line);background:var(--rd-panel);min-height:180px}
.rd-loading b{grid-column:1/-1;min-height:clamp(195px,20vw,315px);background:linear-gradient(114deg,var(--rd-panel),var(--rd-hero),var(--rd-glass))}
@media(max-width:850px){.rd-loading{grid-template-columns:1fr}.rd-loading>i{display:none}}
@media(max-width:640px){.rd-loading>div{grid-template-columns:1fr;gap:12px;padding:70px 12px 0}}
@media(prefers-reduced-motion:no-preference){.rd-loading[data-motion=live] b{background-size:180% 100%;animation:rd-prime 1.6s ease-in-out infinite alternate}@keyframes rd-prime{to{background-position:100% 0}}}
