* { box-sizing: border-box }
button, input, textarea, select { font: inherit; color: inherit }
button, .button, summary, select, input:not([type=hidden]), textarea {
  min-height: 48px;
}
button, .button, summary {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--motion-feedback) var(--ease-change);
}
button:active, .button:active { transform: scale(.98) }
button:disabled { cursor: default; opacity: .65 }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-emphasis); min-height: 56px; width: 100%; font-weight: 600 }
.primary:enabled:hover { background: var(--accent-hover) }
.quiet { border-color: transparent; background: transparent }
.chip { display: inline-flex; align-items:center; white-space:nowrap; border-radius: 6px; background:var(--surface-selected); color:var(--on-surface); padding:4px 8px; font-size:.8125rem; font-weight:600 }
.chip[data-status="진행"], .chip[data-status="완료"] { color:var(--status-active); background:var(--status-active-bg) }
.chip[data-status="미수"], .chip[data-status="AS"] { color:var(--status-due); background:var(--status-due-bg) }
.card, .sheet { background: var(--surface); border: 1px solid var(--border); border-radius:12px; padding:16px }
.list-row, .action-row { display:flex; align-items:center; gap:8px; justify-content:space-between; flex-wrap:wrap }
.step-header { display:flex; justify-content:space-between; align-items:baseline; gap:8px }
.step-header span { color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums }
.sheet { color:var(--on-surface); width:min(calc(100% - 32px), 28rem); max-height:85dvh }
.sheet::backdrop { background:rgb(0 0 0 / .48) }
.notice { border:1px solid var(--control-border); padding:12px; border-radius:8px; background:var(--surface); overflow-wrap:anywhere }
input, select, textarea {
  width:100%; min-width:0; background:var(--surface); color:var(--on-surface); border:1px solid var(--control-border); border-radius:8px; padding:8px 12px; font-size:max(16px,1rem);
}
input::placeholder, textarea::placeholder { color:var(--muted); opacity:1 }
.keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-2) }
.keypad button { font-size:1.25rem; font-variant-numeric:tabular-nums; user-select:none; min-height:48px }
.keypad button:nth-last-child(-n+2) { background:var(--surface-selected); font-size:1rem }
.keypad button:last-child { grid-column:span 2 }
.keypad [data-digit] { touch-action:none }
.keypad [data-pair-end] { background:var(--surface-selected); outline:2px solid var(--focus); outline-offset:-3px }
.action-bar { background:var(--surface); border-top:1px solid var(--border); display:grid; gap:var(--space-2); padding:8px 16px max(8px,env(safe-area-inset-bottom)) }
.sheet { margin:auto auto 0; border-radius:12px 12px 0 0; width:min(100%,36rem); padding-bottom:max(16px,env(safe-area-inset-bottom)); overscroll-behavior:contain }
.sheet[open] { animation:sheet-enter var(--motion-enter) var(--ease-enter) }
.sheet-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px }
.sheet-head h2 { min-width:0 }
.sheet-errors:not(:empty) { margin-top:12px }
[aria-busy=true]::after { content:'처리 중'; font-size:.8125rem }
[hidden] { display:none !important }
@keyframes sheet-enter { from { opacity:.6; transform:translateY(12px) } }
.skeleton { min-height:72px; border-radius:8px; background:var(--surface-selected) }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration:0s !important; animation-duration:0s !important; scroll-behavior:auto !important }
}

