:root {
  --canvas: #f7f6f3;
  --paper: #fff;
  --ink: #262a27;
  --muted: #68716b;
  --line: #eaeaea;
  --green: #346538;
  --green-bg: #edf3ec;
  --amber: #886018;
  --amber-bg: #fbf3db;
  --red: #9f2f2d;
  --red-bg: #fdebec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
.button,
summary {
  cursor: pointer;
}
button,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: background 0.15s;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #527660;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #527660;
  outline-offset: 2px;
}
.primary {
  background: var(--ink);
  color: white;
}
.secondary {
  background: white;
  border-color: #cfd4ce;
}
.danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: #e5c8c8;
}
.text-button {
  background: transparent;
  font-size: 14px;
  color: var(--muted);
  padding: 10px;
}
.full {
  width: 100%;
}
.stack > * + *,
.punch-panel button + button {
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 14px;
  background: white;
  z-index: 5;
}
.skip-link:focus {
  top: 10px;
}
.topbar {
  height: 88px;
  max-width: 1280px;
  padding: 0 56px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 750;
  white-space: nowrap;
}
.brand-square {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 31px;
  height: 31px;
  border-radius: 5px;
  font-size: 21px;
}
.prototype {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 3px;
}
.account {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}
.account form {
  margin: 0;
}
.account .muted {
  margin-left: 5px;
}
.navigation {
  max-width: 1168px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #dfe2dc;
  padding: 0 0;
}
.navigation a {
  min-height: 57px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 550;
  border-bottom: 2px solid transparent;
}
.navigation a[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.shell {
  max-width: 1280px;
  padding: 52px 56px 0;
  margin: auto;
}
.employee-layout .shell {
  max-width: 744px;
}
.employee-layout .navigation {
  max-width: 632px;
  gap: 32px;
}
.demo-banner {
  text-align: center;
  background: var(--amber-bg);
  color: #72541c;
  padding: 7px 16px;
  font-size: 13px;
}
.eyebrow,
.small-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 15px;
}
.muted {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.38;
  letter-spacing: -1.6px;
  margin-bottom: 14px;
  font-weight: 720;
}
h2 {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.55px;
  margin-bottom: 20px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.lede {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 30px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 30px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading .lede {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-heading h2,
.section-heading h3,
.section-heading .eyebrow {
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field {
  margin-bottom: 21px;
  min-width: 0;
}
.field label,
.link-box label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  background: #fff;
  border: 1px solid #cdd2cc;
  border-radius: 5px;
  color: var(--ink);
  padding: 11px 13px;
}
textarea {
  resize: vertical;
}
input[type="datetime-local"] {
  min-height: 50px;
}
input[readonly] {
  background: #fcfcfa;
}
.field-help {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 8px 0 0;
}
.after-form {
  margin-top: 20px;
}
.field-error {
  font-size: 14px;
  color: var(--red);
  margin-top: 7px;
}
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notice {
  padding: 17px 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.success {
  background: var(--green-bg);
  color: var(--green);
}
.error {
  background: var(--red-bg);
  color: var(--red);
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.green {
  color: var(--green);
  background: var(--green-bg);
}
.amber {
  color: var(--amber);
  background: var(--amber-bg);
}
.neutral {
  color: var(--muted);
  background: #f0f1ed;
}
.empty {
  padding: 42px 16px;
  text-align: center;
  color: var(--muted);
}
.empty h2,
.empty h3 {
  color: var(--ink);
  margin-bottom: 9px;
}
.empty p {
  font-size: 14px;
  margin-bottom: 0;
}
.section {
  margin-top: 40px;
}
.footer {
  border-top: 1px solid #dfe2dc;
  margin-top: 64px;
  padding: 25px 0 30px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.narrow {
  max-width: 620px;
  margin: auto;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin: 35px auto 75px;
  max-width: 980px;
}
.employee-layout:has(.auth-grid) .shell {
  max-width: 1280px;
}
.auth-intro h1 {
  font-size: 46px;
  line-height: 1.35;
  letter-spacing: -2px;
}
.auth-intro .lede {
  font-size: 19px;
}
.intro-rule {
  width: 52px;
  height: 1px;
  background: #aeb5ac;
  margin: 30px 0;
}
.auth-intro > .muted {
  font-size: 14px;
}
.auth-panel {
  padding: 36px;
}
.auth-panel h2 {
  font-size: 26px;
  margin-bottom: 28px;
}
.employee-header {
  margin-bottom: 30px;
}
.employee-header h1 {
  font-size: 35px;
}
.punch-panel {
  padding: 32px;
}
.punch-time {
  font-size: 52px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 34px 0;
}
.punch-time small {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 12px;
}
.punch-title {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 28px 0 8px;
}
.punch-panel .dominant {
  min-height: 62px;
  font-size: 18px;
  margin-top: 9px;
}
.result-box {
  padding: 17px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.result-box.error {
  padding: 15px;
  margin-top: 18px;
}
.result-box.saved {
  color: var(--green);
  font-size: 15px;
}
.location-note {
  padding: 28px 4px;
}
.location-note p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin: 8px 0;
}
.arrow-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}
.arrow-link > span {
  font-size: 23px;
}
.metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.metric {
  padding: 27px 30px;
  border-left: 1px solid var(--line);
}
.metric:first-child {
  border: 0;
}
.metric > span {
  font-size: 14px;
}
.metric p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
}
.metric strong {
  font-size: 52px;
  line-height: 1.25;
  letter-spacing: -1.7px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.metric small {
  color: var(--muted);
  font-size: 15px;
}
.primary-metric {
  background: #edf0e9;
}
.metric .metric-note {
  font-size: 12px;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dashboard-aside {
  display: grid;
  gap: 20px;
}
.next-arrival h2 {
  margin-bottom: 6px;
}
.arrival-time {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 5px;
}
.review-card {
  background: var(--amber-bg);
}
.review-card > p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0;
}
.review-card strong {
  font-size: 38px;
  font-weight: 600;
}
.review-card > span:last-child {
  font-size: 13px;
}
.refresh-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.refresh-meta time {
  display: block;
  margin-top: 3px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row p {
  margin: 5px 0 0;
  font-size: 13px;
}
.panel.list-row {
  padding: 23px 26px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.staff-row {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.staff-row p {
  font-size: 13px;
  margin: 3px 0 14px;
}
.staff-actions {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px;
}
.staff-actions button {
  font-size: 13px;
}
.staff-actions details {
  flex: 1;
}
.staff-actions summary {
  font-size: 13px;
}
details summary {
  min-height: 48px;
  padding: 12px 6px;
  color: var(--muted);
}
details p {
  margin-top: 10px;
}
.billing-note {
  font-size: 13px;
  padding: 24px 8px;
  color: var(--muted);
}
.billing-note p:first-child {
  color: var(--ink);
  margin-bottom: 6px;
}
.link-box {
  margin-bottom: 26px;
}
.link-box h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.link-box p {
  font-size: 14px;
}
.record-list {
  display: grid;
  gap: 14px;
}
.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.record h2 {
  font-size: 19px;
  margin: 5px 0;
}
.record p {
  font-size: 14px;
  margin-bottom: 8px;
}
.record .small-label {
  font-size: 13px;
}
.review-item {
  margin-bottom: 16px;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--canvas);
  padding: 20px;
  gap: 20px;
  font-size: 13px;
}
.comparison dt {
  color: var(--muted);
  margin-bottom: 8px;
}
.comparison dd {
  margin: 0;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin: 25px 0 0;
}
legend {
  font-size: 16px;
  font-weight: 600;
  padding: 0 12px 0 0;
}
.break-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.break-row .field {
  margin: 0;
}
.export-filter {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.export-filter .field {
  margin: 0;
  flex: 1;
  min-width: 110px;
}
.export-filter .field:nth-last-of-type(1) {
  flex: 1.5;
}
.qr-page {
  text-align: center;
}
.qr-image {
  background: white;
  padding: 26px;
  border: 1px solid var(--line);
  max-width: 360px;
  margin: 30px auto;
}
.qr-image img {
  width: 100%;
  height: auto;
}
.qr-page .no-print {
  margin-top: 26px;
}
@media (min-width: 900px) {
  .panel {
    animation: appear 0.25s ease both;
  }
  @keyframes appear {
    from {
      opacity: 0.65;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 30px;
  }
  .shell {
    padding: 40px 30px 0;
  }
  .navigation {
    margin: 0 30px;
  }
  .metric {
    padding: 24px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .auth-grid {
    gap: 35px;
  }
  .auth-intro h1 {
    font-size: 38px;
  }
  .employee-layout .navigation {
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 76px;
    padding: 0 20px;
    gap: 10px;
  }
  .wordmark {
    font-size: 19px;
    gap: 8px;
  }
  .brand-square {
    width: 28px;
    height: 28px;
  }
  .account {
    gap: 4px;
    font-size: 12px;
  }
  .account > span .muted {
    display: none;
  }
  .text-button {
    padding: 10px 7px;
    font-size: 12px;
  }
  .prototype {
    font-size: 10px;
  }
  .navigation,
  .employee-layout .navigation {
    margin: 0 20px;
    gap: 24px;
  }
  .owner-layout .navigation {
    gap: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .owner-layout .navigation a {
    font-size: 13px;
    padding: 0 4px;
    min-height: 52px;
  }
  .shell {
    padding: 34px 20px 0;
  }
  .page-heading {
    display: block;
    margin-bottom: 26px;
  }
  .page-heading > .actions,
  .page-heading > .button {
    margin-top: 20px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1.1px;
  }
  .lede {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .panel {
    padding: 24px;
  }
  .employee-header h1 {
    font-size: 32px;
  }
  .employee-header {
    margin-bottom: 25px;
  }
  .punch-panel {
    padding: 25px;
  }
  .punch-title {
    font-size: 25px;
  }
  .punch-time {
    font-size: 48px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 22px;
  }
  .metric {
    padding: 21px 24px;
    min-height: 128px;
  }
  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric strong {
    font-size: 42px;
  }
  .metric > span {
    font-size: 13px;
  }
  .dashboard-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dashboard-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .dashboard-aside .panel {
    padding: 20px;
  }
  .dashboard-aside h2 {
    font-size: 17px;
  }
  .arrival-time {
    font-size: 24px;
  }
  .refresh-meta {
    text-align: left;
    margin-top: 20px;
  }
  .refresh-meta time {
    display: inline;
    margin-left: 8px;
  }
  .list-row {
    gap: 12px;
  }
  .list-row strong {
    font-size: 15px;
  }
  .list-row p {
    font-size: 12px;
  }
  .auth-grid {
    display: block;
    margin: 8px 0 35px;
  }
  .auth-intro h1 {
    font-size: 35px;
  }
  .auth-intro .lede {
    font-size: 16px;
    margin-bottom: 27px;
  }
  .auth-intro > .muted,
  .intro-rule {
    display: none;
  }
  .auth-panel {
    padding: 26px;
  }
  .auth-panel > .eyebrow {
    display: none;
  }
  .auth-panel h2 {
    font-size: 23px;
  }
  .footer {
    margin-top: 44px;
    display: block;
    font-size: 11px;
  }
  .footer span {
    display: block;
    margin-top: 4px;
  }
  .record {
    display: block;
  }
  .record > .button {
    margin-top: 12px;
  }
  .record h2 {
    font-size: 18px;
  }
  .comparison {
    grid-template-columns: 1fr;
    padding: 17px;
  }
  .panel.list-row {
    flex-wrap: wrap;
    padding: 22px;
  }
  .break-row {
    grid-template-columns: 1fr;
  }
  .break-row + .break-row {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .export-filter {
    gap: 14px;
  }
  .export-filter .field {
    flex-basis: 40%;
  }
  .export-filter .field:last-of-type {
    flex-basis: 100%;
  }
  .export-filter button {
    flex: 1;
  }
  .section {
    margin-top: 32px;
  }
  .qr-image {
    padding: 20px;
  }
  .demo-banner {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .topbar,
  .navigation,
  .footer,
  .demo-banner,
  .no-print {
    display: none;
  }
  .shell {
    padding: 0;
  }
  .qr-page {
    padding: 40px;
  }
  body {
    background: white;
  }
}

/* 정책 문서 페이지. docs/policy/*.md 를 그대로 렌더하므로 표가 많다. */
.policy h2 {
  margin-top: 32px;
  font-size: 18px;
}
.policy h3 {
  margin-top: 24px;
  font-size: 15px;
}
.policy p,
.policy li {
  line-height: 1.7;
}
.policy blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid #dfe2dc;
  color: var(--muted);
}
.policy code {
  background: #f2f4ef;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
/* 390px 화면에서 페이지 전체가 가로로 밀리지 않도록 표만 따로 스크롤한다. */
.policy table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.policy th,
.policy td {
  border: 1px solid #dfe2dc;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.policy th {
  background: #f2f4ef;
  font-weight: 600;
  white-space: nowrap;
}
