/* PP SECURE shared corporate-premium design system */
:root {
  --pp-maroon: #8a1a2a;
  --pp-maroon-hover: #731522;
  --pp-deep: #3a0810;
  --pp-gold: #d9a72c;
  --pp-gold-soft: #f4dc8a;
  --pp-cream: #fbf6f2;
  --pp-surface: #ffffff;
  --pp-surface-muted: #f7f2ef;
  --pp-ink: #241a1c;
  --pp-text: #44363a;
  --pp-muted: #77686d;
  --pp-line: #e8dedb;
  --pp-success: #197447;
  --pp-warning: #9a6200;
  --pp-danger: #b42318;
  --pp-info: #245b9b;
  --pp-radius-sm: 12px;
  --pp-radius-md: 16px;
  --pp-radius-lg: 24px;
  --pp-shadow-sm: 0 4px 14px rgba(58, 8, 16, .06);
  --pp-shadow-md: 0 14px 36px rgba(58, 8, 16, .1);
  --pp-shadow-lg: 0 28px 70px rgba(35, 5, 10, .18);
  --pp-focus: 0 0 0 3px rgba(217, 167, 44, .32);
  --pp-content: 1200px;
}

html { color-scheme: light; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none !important;
  box-shadow: var(--pp-focus) !important;
}
button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed !important;
  opacity: .58;
}
input.invalid, select.invalid, textarea.invalid,
[aria-invalid="true"] { border-color: var(--pp-danger) !important; }

.ui-icon {
  width: 20px; height: 20px; flex: 0 0 auto; display: inline-block;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ui-icon--sm { width: 17px; height: 17px; }
.ui-icon--lg { width: 24px; height: 24px; }

.ui-pagehead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  margin-bottom: 24px;
}
.ui-pagehead__copy h1, .ui-pagehead__copy h2 { margin: 0; color: var(--pp-deep); font-weight: 650; letter-spacing: -.02em; }
.ui-pagehead__copy p { margin: 6px 0 0; max-width: 760px; color: var(--pp-muted); line-height: 1.65; }
.ui-pagehead__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ui-card {
  background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: var(--pp-radius-md);
  box-shadow: var(--pp-shadow-sm);
}
.ui-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px;
  border-radius: 999px; background: var(--pp-surface-muted); color: var(--pp-text); font-size: .78rem; font-weight: 500;
}
.ui-badge--success { background: #e7f5ed; color: var(--pp-success); }
.ui-badge--warning { background: #fff3d8; color: var(--pp-warning); }
.ui-badge--danger { background: #fdebea; color: var(--pp-danger); }
.ui-badge--info { background: #eaf1fb; color: var(--pp-info); }

.ui-state {
  min-height: 180px; padding: 32px; display: grid; place-items: center; text-align: center;
  color: var(--pp-muted); background: var(--pp-surface); border: 1px dashed var(--pp-line); border-radius: var(--pp-radius-md);
}
.ui-state strong { display: block; margin-bottom: 4px; color: var(--pp-deep); font-weight: 600; }
.ui-field-help, .ui-field-error { display: block; margin-top: 6px; font-size: .78rem; line-height: 1.45; }
.ui-field-help { color: var(--pp-muted); }
.ui-field-error { color: var(--pp-danger); }

.ui-mobile-note {
  display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--pp-radius-sm);
  background: #fff3d8; border: 1px solid #ecd59d; color: #694500; font-size: .88rem;
}

@media (max-width: 760px) {
  .ui-pagehead { flex-direction: column; gap: 14px; }
  .ui-pagehead__actions { width: 100%; }
  .ui-mobile-note { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== PP SECURE unified product language · 2026 ===== */
:root {
  --pp-maroon-950: #21040a;
  --pp-maroon-900: #35070f;
  --pp-maroon-800: #570d19;
  --pp-maroon-700: #781523;
  --pp-gold-600: #b98518;
  --pp-gold-500: #d7a72d;
  --pp-gold-300: #f0d77d;
  --pp-neutral-950: #21191b;
  --pp-neutral-700: #574a4e;
  --pp-neutral-500: #82767a;
  --pp-neutral-200: #e8e1df;
  --pp-neutral-100: #f4f0ee;
  --pp-neutral-50: #faf8f7;
  --pp-control-height: 46px;
  --pp-ease: cubic-bezier(.2,.75,.25,1);
}

::selection { background: rgba(215, 167, 45, .28); color: var(--pp-maroon-950); }

.ui-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--pp-maroon);
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.ui-kicker::before { content: ""; width: 24px; height: 2px; background: var(--pp-gold); border-radius: 999px; }

.ui-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.ui-toolbar__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ui-divider { height: 1px; border: 0; background: var(--pp-line); margin: 22px 0; }

.ui-callout {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid #ead9a7; border-radius: var(--pp-radius-sm);
  background: #fff9e9; color: #664b08; font-size: .88rem; line-height: 1.6;
}

.ui-skeleton {
  min-height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #eee9e7 20%, #f8f6f5 38%, #eee9e7 56%);
  background-size: 220% 100%; animation: ui-shimmer 1.5s infinite linear;
}
@keyframes ui-shimmer { to { background-position-x: -220%; } }

.ui-empty {
  display: grid; justify-items: center; gap: 8px; min-height: 220px; padding: 36px 24px;
  align-content: center; text-align: center; border: 1px dashed #d8cecb;
  border-radius: var(--pp-radius-md); background: var(--pp-neutral-50); color: var(--pp-muted);
}
.ui-empty strong { color: var(--pp-deep); font-size: 1rem; }

.ui-table-shell {
  overflow: hidden; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-md);
  background: #fff; box-shadow: var(--pp-shadow-sm);
}

@media (hover:hover) {
  button:not(:disabled), a { transition-timing-function: var(--pp-ease); }
}

@media (max-width: 640px) {
  .ui-toolbar, .ui-toolbar__group { align-items: stretch; width: 100%; }
  .ui-toolbar__group > input, .ui-toolbar__group > select { flex: 1 1 150px; min-width: 0; }
}
