/* AI 오피스 — components/bundle.css
   웹 소스(frontend/src/styles: base.css·app.css·features.css)의 컴포넌트 규칙을 그대로 옮기고,
   토큰은 tokens.json(→ tokens.css)에서만 선언합니다. "보강" 표시는 디자인 시스템에서 바꾼 값입니다. */

:root {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- base.css ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
[tabindex='-1']:focus:not(:focus-visible),
h1[tabindex='-1']:focus,
h2[tabindex='-1']:focus {
  outline: none;
}
::selection {
  background: var(--accent-soft);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- app.css ---------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-skip-link);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  max-width: var(--content-width);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.app-header-inner.wide {
  max-width: var(--wide-width);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-slate); /* 보강: 두 번 정의되던 배경을 하나로 */
  color: var(--on-brand-slate);
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) {
  background: var(--bg-soft);
  color: var(--ink);
}
.icon-btn:disabled {
  opacity: var(--opacity-disabled-icon);
  cursor: not-allowed;
}
.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--control-h-sm);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.auth-chip:hover {
  border-color: var(--border-strong);
}
.auth-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.app-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-header);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.app-nav ul {
  display: grid;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.app-nav a[aria-current='page'] {
  color: var(--accent);
}
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) calc(var(--tabbar-h) + var(--space-7));
}
.app-main.wide {
  max-width: var(--wide-width);
}
.app-footer {
  display: none;
  padding: var(--space-5) var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .app-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
  }
  .app-nav {
    position: static;
    height: auto;
    padding: 0;
    background: none;
    border: 0;
  }
  .app-nav ul {
    display: flex;
    gap: var(--space-1);
  }
  .app-nav a {
    flex-direction: row;
    gap: 6px;
    height: auto;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
  }
  .app-nav a:hover {
    background: var(--bg-soft);
    color: var(--ink);
  }
  .app-nav a[aria-current='page'] {
    background: var(--accent-soft);
    color: var(--accent-strong);
  }
  .app-nav svg {
    width: 18px;
    height: 18px;
  }
  .app-main {
    padding: var(--space-6) var(--space-5) var(--space-7);
  }
  .app-footer {
    display: block;
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.narrow {
  max-width: var(--narrow-width);
  margin-inline: auto;
  width: 100%;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}
.hint svg {
  flex: none;
  margin-top: 3px;
}
.prewrap {
  white-space: pre-wrap;
}
.align-start {
  align-self: flex-start;
}
.code {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fine-print {
  color: var(--muted);
  font-size: 0.8125rem;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 0.8125rem;
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px; /* 보강: WCAG 2.2 최소 타깃 24px */
  color: var(--muted);
}
.legal-links a:hover {
  color: var(--ink);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
}
.page-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.page-header-desc {
  color: var(--muted);
  max-width: 40em;
}
.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.section-head h2,
.card h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: -4px;
  padding: 4px 8px 4px 2px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover {
  color: var(--ink);
  background: var(--bg-soft);
}
.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) {
  .card {
    padding: var(--space-4);
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-press);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}
.btn-block {
  width: 100%;
}
.btn-large {
  min-height: var(--control-h-lg);
  padding: 14px 24px;
  font-size: 1rem;
}
.btn-small {
  min-height: var(--control-h-sm);
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-strong);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-control); /* 보강 */
  color: var(--ink);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn-danger {
  background: var(--bad);
  color: var(--on-bad); /* 보강 */
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(0.94);
}
.btn-danger-outline {
  background: transparent;
  border-color: var(--bad-border);
  color: var(--bad);
}
.btn-danger-outline:hover:not(:disabled) {
  background: var(--bad-soft);
}
.btn-ok {
  background: var(--ok);
  color: var(--on-ok); /* 보강 */
}
.btn-ok:hover:not(:disabled) {
  filter: brightness(0.94);
}
.btn-warn {
  background: var(--warn-soft);
  border-color: var(--warn-border);
  color: var(--warn);
}
.btn-warn:hover:not(:disabled) {
  filter: brightness(0.97);
}
.danger-zone > .btn-danger-outline {
  align-self: flex-start;
}
.login-buttons {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  max-width: 360px;
}
.btn-kakao {
  background: var(--kakao);
  color: var(--kakao-ink);
}
.btn-kakao:hover:not(:disabled) {
  background: var(--kakao-hover);
}
.btn-google {
  background: var(--google-surface);
  border-color: var(--google-border);
  color: var(--google-ink);
}
.btn-google:hover:not(:disabled) {
  background: var(--google-hover);
}
.btn-demo {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px dashed var(--accent);
}
.btn-demo:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-error {
  color: var(--bad);
  font-size: 0.875rem;
  font-weight: 600;
}
.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); /* 보강: 14px → 12px 통일 */
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0;
}
.notice-icon {
  flex: none;
  margin-top: 2px;
}
.notice-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
}
.notice-title {
  font-weight: 800;
}
.notice-error {
  background: var(--bad-soft);
  border-color: var(--bad-border);
}
.notice-error .notice-icon,
.notice-error .notice-title {
  color: var(--bad);
}
.notice-ok {
  background: var(--ok-soft);
  border-color: var(--ok-border);
}
.notice-ok .notice-icon {
  color: var(--ok);
}
.notice-info {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.notice-info .notice-icon {
  color: var(--accent);
}
.notice-warn {
  background: var(--warn-soft);
  border-color: var(--warn-border);
}
.notice-warn .notice-icon,
.notice-warn .notice-title {
  color: var(--warn);
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  color: var(--muted);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin var(--duration-spin) linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-info,
.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok-border);
}
.badge-bad {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: var(--bad-border);
}
.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn-border);
}
.badge-neutral,
.badge-muted {
  background: var(--neutral-soft);
  color: var(--muted);
  border-color: var(--border);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
}
.empty-title {
  color: var(--ink);
  font-weight: 800;
}
.empty-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-label {
  font-weight: 700;
  font-size: 0.9375rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 12px;
  border: 1.5px solid var(--border-control); /* 보강 */
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}
[aria-invalid='true'] {
  border-color: var(--bad) !important;
}
.field-hint {
  color: var(--muted);
  font-size: 0.8125rem;
}
.field-error {
  color: var(--bad);
  font-size: 0.8125rem;
  font-weight: 700;
}
.login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md); /* 보강: 14px → 12px 통일 */
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.login-gate-title {
  font-weight: 800;
}
.login-gate .login-buttons {
  margin-top: var(--space-2);
}
.info-list {
  display: grid;
  margin: 0;
}
.info-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-list div:last-child {
  border-bottom: 0;
}
.info-list dt {
  flex: none;
  color: var(--muted);
}
.info-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.info-list .info-block {
  flex-direction: column;
  gap: 4px;
}
.info-list .info-block dd {
  text-align: left;
  font-weight: 500;
}
.dd-note {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.modal {
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, 92vh);
  margin: auto 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal[open] {
  display: flex;
  animation: sheet-in var(--duration-sheet) ease-out;
}
.modal::backdrop {
  background: var(--backdrop);
}
@keyframes sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
.modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: inherit;
  min-height: 0;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.modal-head-text {
  flex: 1;
  min-width: 0;
}
.modal-head h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.modal-danger .modal-head h2 {
  color: var(--bad);
}
.modal-desc {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.modal-head .icon-btn {
  margin: -6px -8px 0 0;
}
.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-2) var(--space-5) var(--space-4);
}
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.modal-footer > .btn {
  flex: 1 1 0;
}
@media (min-width: 640px) {
  .modal {
    width: min(92vw, 520px);
    margin: auto;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-height: min(88dvh, 88vh);
  }
  .modal-sm {
    width: min(92vw, 440px);
  }
  .modal-lg {
    width: min(92vw, 680px);
  }
  .modal-footer > .btn {
    flex: 0 0 auto;
  }
}
.confirm-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.danger-list {
  margin: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--bad-soft);
}
.danger-list li + li {
  margin-top: 4px;
}
.danger-callout {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--bad-border);
  border-radius: var(--radius-md);
  color: var(--bad);
  font-weight: 700;
  font-size: 0.9375rem;
}
.danger-callout svg {
  flex: none;
  margin-top: 3px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md); /* 보강: 14px → 12px 통일 */
  background: var(--bg-soft);
}
.tab {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.tab[aria-selected='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-6) var(--space-5);
}
.login-panel .login-buttons {
  margin-top: var(--space-2);
}
.login-panel-art {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius); /* 보강: 18px → 16px 통일 */
  background: var(--accent-soft);
  color: var(--accent);
}
.danger-zone {
  border-color: var(--bad-border);
}
.danger-zone h2 {
  color: var(--bad);
}

/* ---------- features.css (발췌) ---------- */
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  background: radial-gradient(circle at 20% 10%, var(--accent-soft), transparent 45%), radial-gradient( circle at 80% 90%, color-mix(in srgb, var(--agent-amber) 14%, transparent), transparent 40% ), var(--bg);
}
.login-top {
  position: fixed;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.login-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-6) var(--space-5);
}
.login-card h1 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
}
.login-crew {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) 0;
  border-bottom: 6px solid var(--pixel-desk);
}
.login-card .legal-links {
  justify-content: center;
  margin: 0;
}
.login-card .login-buttons {
  margin-top: var(--space-2);
}
.login-card .notice {
  text-align: left;
  width: 100%;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--warn-border);
  background: var(--warn-soft);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pixel-avatar {
  display: block;
  image-rendering: pixelated;
  flex: none;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--control-h-sm);
  padding: 6px 14px;
  border: 1px solid var(--border-control); /* 보강 */
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover {
  background: var(--bg-soft);
}
.chip[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md); /* 보강: 14px → 12px 통일 */
  background: var(--bg-soft);
}
.segment {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.segment.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.doc-grid {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .doc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.doc-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.doc-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.doc-type {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}
.doc-type-doc {
  background: var(--doc-doc-soft);
  color: var(--doc-doc);
}
.doc-type-sheet {
  background: var(--doc-sheet-soft);
  color: var(--doc-sheet); /* 보강 */
}
.doc-type-slides {
  background: var(--doc-slides-soft);
  color: var(--doc-slides); /* 보강 */
}
.doc-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.doc-card-title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-card-meta {
  color: var(--muted);
  font-size: 0.8125rem;
}
.doc-editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.doc-editor .tabs {
  max-width: 320px;
}
.doc-panel {
  min-height: 50vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc-textarea textarea {
  display: block;
  width: 100%;
  min-height: 55vh;
  padding: var(--space-4);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.65;
  resize: vertical;
}
.doc-textarea textarea:focus-visible {
  outline-offset: -3px;
}
.doc-preview {
  padding: var(--space-4) var(--space-5);
}
.ai-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: var(--z-ai-bar);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
}
.ai-bar-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ai-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.ai-chips .chip {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}
.ai-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.875rem;
}
.ai-progress .spinner {
  width: 16px;
  height: 16px;
}
.ai-form {
  display: flex;
  gap: var(--space-2);
}
.ai-input {
  flex: 1;
  min-width: 0;
}
.ai-input input {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 14px;
  border: 1.5px solid var(--border-control); /* 보강 */
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ai-input input:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}
@media (max-width: 480px) {
  .ai-submit-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .ai-form .btn {
    padding-inline: 14px;
  }
}
@media (min-width: 768px) {
  .ai-bar {
    bottom: 0;
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  }
}
.agent-row {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 2px 2px var(--space-2);
  list-style: none;
  overflow-x: auto;
}
.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 116px;
  height: 100%;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.agent-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.agent-card-art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius); /* 보강: 18px → 16px 통일 */
  background: var(--bg-soft);
  color: var(--muted);
}
.agent-card-name {
  font-weight: 800;
}
.lead-star {
  margin-left: 2px;
  color: var(--line-amber); /* 보강: 2.15:1 → 5.02:1 */
}
.agent-card-role {
  color: var(--muted);
  font-size: 0.8125rem;
}
.agent-card-add {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
.mission-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.mission-list li + li {
  border-top: 1px solid var(--border);
}
.mission-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
}
.mission-item:hover {
  background: var(--surface-2);
}
.mission-item-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.mission-goal {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse var(--duration-pulse) ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.agent-form-preview {
  display: grid;
  place-items: center;
  align-self: start;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: repeating-conic-gradient(var(--pixel-floor) 0 25%, var(--pixel-floor-alt) 0 50%) 0 0 / 24px 24px;
}
.swatches,
.hair-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}
.swatch input,
.hair-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.swatch:has(input:checked) {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink);
}
.swatch:has(input:focus-visible),
.hair-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.hair-option {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  cursor: pointer;
}
.hair-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.task-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  font-weight: 800;
  color: var(--muted);
}
.live-chip {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 800;
}
.live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.live-live .live-dot {
  background: var(--ok);
}
.live-live {
  color: var(--ok);
}
.live-reconnecting .live-dot,
.live-connecting .live-dot {
  background: var(--warn);
  animation: pulse var(--duration-pulse) ease-in-out infinite;
}
.office-tag {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.office-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: var(--tag-size);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.office-tag-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.tag-dot.idle {
  background: var(--tag-dot-idle);
}
.tag-dot.active {
  background: var(--tag-dot-active);
}
.office-bubble {
  position: absolute;
  z-index: 2;
  max-width: 140px;
  width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--bubble-line);
  border-radius: 8px;
  background: var(--bubble-surface);
  color: var(--bubble-line);
  font-size: var(--bubble-size);
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-bubble);
}
.office-bubble::after {
  content: '';
  position: absolute;
  left: calc(var(--tail, 50%) - 4px);
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--bubble-line);
  border-bottom: 1px solid var(--bubble-line);
  background: var(--bubble-surface);
  transform: rotate(45deg);
}
.office-bubble.below::after {
  top: -5px;
  bottom: auto;
  transform: rotate(225deg);
}
.office-bubble-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.team-status {
  container-type: inline-size; /* 보강: 팀 카드 4열(@container)의 기준 */
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.team-status-title {
  margin: 0;
  font-size: 1rem;
}
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
@container (min-width: 560px) {
  .team-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: var(--space-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.team-card:hover {
  border-color: color-mix(in srgb, var(--group) 55%, var(--border));
}
.team-card.is-busy {
  border-color: var(--group);
  box-shadow: inset 0 0 0 1px var(--group);
}
.team-card.is-flash {
  border-color: var(--group);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--group) 45%, transparent);
}
.team-card.is-empty {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--surface-2); /* 보강: 반투명(글자 2.65:1) 대신 점선·들어간 면 */
}
.team-card.is-empty .team-card-dot {
  opacity: var(--opacity-empty);
}
.team-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 800;
  font-size: 0.9375rem;
}
.team-card-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--group);
}
.team-card-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-card-count {
  flex: none;
  color: var(--muted);
  font-size: 0.8125rem;
}
.team-card-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 0.8125rem;
}
.team-num-label {
  color: var(--muted);
}
.team-num-value {
  font-variant-numeric: tabular-nums;
}
.team-card-empty {
  color: var(--muted);
  font-size: 0.8125rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chips .chip {
  gap: 5px;
  padding: 4px 10px;
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip-count {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  opacity: 0.8;
}
.mcard-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.mcard:hover {
  border-color: var(--border-strong);
}
.mcard:has(.mcard-link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.mcard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8125rem;
}
.mcard-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: 700;
}
.mcard-time {
  margin-left: auto;
  color: var(--muted);
}
.mcard-goal {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.4;
}
.mcard-goal a {
  display: -webkit-box;
  min-height: 24px; /* 보강: WCAG 2.2 최소 타깃 24px */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.mcard-goal a:hover {
  text-decoration: underline;
}
.mcard-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.mcard-link:focus-visible {
  outline: none;
}
.mcard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.8125rem;
}
.mcard-progress {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mcard-result {
  position: relative;
  min-height: 24px; /* 보강: WCAG 2.2 최소 타깃 24px */
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}
.mcard-result:hover {
  text-decoration: underline;
}
.mcard-running {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.run-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.run-task {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.run-task.run-running {
  background: var(--accent-soft);
}
.run-task .pixel-avatar,
.run-task .task-num {
  flex: none;
}
.run-task-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.run-task-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
}
.mcard-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 132px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.9375rem;
  pointer-events: auto;
  animation: sheet-in var(--duration-sheet) ease-out;
}
.toast-text {
  flex: 1;
  min-width: 0;
}
.toast-error {
  background: var(--bad);
  border-color: var(--bad);
  color: var(--on-bad); /* 보강: 다크 2.23:1 → 8.15:1 */
}
.toast-action {
  flex: none;
  min-height: var(--control-h-sm);
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}
.toast-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 768px) {
  .toast-host {
    bottom: calc(124px + env(safe-area-inset-bottom)); /* 보강: AI 바(약 113px)와 겹치지 않게 */
  }
}
/* ====================================================================
   보강 · 2026 제안 컴포넌트 (소스에 없음 — README "AI 오피스 사이트와 다른 점" 참고)
   ==================================================================== */

/* ---------- AiLabel: AI 생성물 표시 ---------- */
.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.ai-label svg {
  flex: none;
}
.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.8125rem;
}
.ai-note svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- AiStreaming: 에이전트가 쓰는 중 ---------- */
.ai-stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ai-stream-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-strong);
  font-size: 0.875rem;
  font-weight: 700;
}
.ai-stream-head .btn {
  margin-left: auto;
}
.ai-stream-head .spinner {
  width: 16px;
  height: 16px;
}
.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.ai-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
}
.ai-steps li[data-state='done'] {
  color: var(--ink);
}
.ai-steps li[data-state='done'] svg {
  color: var(--ok);
}
.ai-steps li[data-state='active'] {
  color: var(--accent-strong);
  font-weight: 700;
}
.ai-stream-text {
  white-space: pre-wrap;
}
.ai-caret {
  display: inline-block;
  width: 0.5em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: caret var(--duration-caret) steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.skeleton {
  display: block;
  height: 12px;
  border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--surface-2) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer var(--duration-shimmer) linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-caret,
  .skeleton {
    animation: none;
  }
}

/* ---------- PixelPanel: 씬과 맞닿은 계단 모서리 패널 ---------- */
.pixel-panel {
  --step: 4px;
  --pixel-corners: polygon(
    0 calc(var(--step) * 2), var(--step) calc(var(--step) * 2), var(--step) var(--step),
    calc(var(--step) * 2) var(--step), calc(var(--step) * 2) 0,
    calc(100% - var(--step) * 2) 0, calc(100% - var(--step) * 2) var(--step),
    calc(100% - var(--step)) var(--step), calc(100% - var(--step)) calc(var(--step) * 2),
    100% calc(var(--step) * 2), 100% calc(100% - var(--step) * 2),
    calc(100% - var(--step)) calc(100% - var(--step) * 2), calc(100% - var(--step)) calc(100% - var(--step)),
    calc(100% - var(--step) * 2) calc(100% - var(--step)), calc(100% - var(--step) * 2) 100%,
    calc(var(--step) * 2) 100%, calc(var(--step) * 2) calc(100% - var(--step)),
    var(--step) calc(100% - var(--step)), var(--step) calc(100% - var(--step) * 2),
    0 calc(100% - var(--step) * 2)
  );
  padding: 2px;
  background: var(--pixel-monitor);
  clip-path: var(--pixel-corners);
}
.pixel-panel-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--pixel-pod-floor);
  color: var(--pixel-monitor);
  clip-path: var(--pixel-corners);
}
.pixel-num {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pixel-label {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* ---------- 보강: 밝은 스와치(밝은 피부·회색 머리)의 경계 ---------- */
.swatch-outline {
  box-shadow: inset 0 0 0 1.5px var(--border-control);
}
.swatch-outline:has(input:checked) {
  box-shadow:
    inset 0 0 0 1.5px var(--border-control),
    0 0 0 3px var(--surface),
    0 0 0 5px var(--ink);
}

/* ---------- 보강: 고정 하단 바 뒤로 포커스가 숨지 않게 (WCAG 2.2 2.4.11) ---------- */
@media (max-width: 767px) {
  html {
    scroll-padding-bottom: calc(var(--tabbar-h) + var(--space-4));
  }
  html:has(.ai-bar) {
    scroll-padding-bottom: calc(var(--tabbar-h) + 120px);
  }
}
@media (min-width: 768px) {
  html:has(.ai-bar) {
    scroll-padding-bottom: 120px;
  }
}

