:root {
  --pc-bg: #ffffff;
  --pc-surface: #f8fafc;
  --pc-text: #0f172a;
  --pc-muted: #475569;
  --pc-primary: #6366f1;
  --pc-primary-ink: #ffffff;
  --pc-border: #e5e7eb;
  --pc-radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--pc-bg); color: var(--pc-text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
img { max-width: 100%; height: auto; }

.pc-container { max-width: 960px; margin: 0 auto; padding: 16px; }

.pc-header { background: #1e293b; border-bottom: 1px solid #334155; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.pc-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.pc-brand { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 1.125rem; transition: opacity 0.2s ease; display: block; }
.pc-brand:hover { opacity: 0.9; }
.pc-brand-logo { width: auto; display: block; }
.pc-nav { display: flex; align-items: center; gap: 8px; }
.pc-nav a { padding: 8px 16px; color: #cbd5e1; text-decoration: none; border-radius: 6px; transition: all 0.2s ease; font-weight: 500; }
.pc-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.pc-user { color: #ffffff; font-weight: 600; padding: 8px 16px; border-right: 1px solid #475569; margin-right: 8px; }

.pc-footer { border-top: 1px solid var(--pc-border); margin-top: 40px; }
.pc-footer__inner { padding: 16px 0; color: var(--pc-muted); font-size: 14px; }

.pc-messages { list-style: none; padding: 0; margin: 16px 0; }
.pc-message { padding: 12px 16px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: var(--pc-surface); }
.pc-message--error { border-color: #ef4444; background: #fee2e2; }
.pc-message--success { border-color: #22c55e; background: #dcfce7; }

.pc-btn { display: inline-block; padding: 10px 14px; border-radius: var(--pc-radius); border: 1px solid var(--pc-border); background: var(--pc-surface); color: var(--pc-text); cursor: pointer; text-decoration: none; }
.pc-btn:hover { filter: brightness(0.98); }
.pc-btn--primary { background: var(--pc-primary); border-color: var(--pc-primary); color: var(--pc-primary-ink); }

.pc-input { padding: 10px 12px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); width: 100%; max-width: 420px; }
.pc-search { display: flex; gap: 8px; margin: 12px 0 24px; }

.pc-list { padding-left: 18px; }
.pc-ordered { padding-left: 22px; }

.pc-card { border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 16px; margin-bottom: 16px; background: var(--pc-bg); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

/* a11y */
:focus { outline: 2px solid var(--pc-primary); outline-offset: 2px; }
.pc-skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pc-skip:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: var(--pc-primary); color: var(--pc-primary-ink); }

@media print {
  .pc-header, .pc-footer, .pc-nav, .pc-search { display: none !important; }
  .pc-container { max-width: none; }
}
