/* Panna Staff Hub — PHG design system (Plus Jakarta Sans + gold). Mobile first. */
:root {
  --gold: #C5A572; --gold-dark: #A68B5B; --gold-deep: #8C7144; --gold-tint: #F3ECE0;
  --ink: #111827; --ink-2: #374151; --ink-3: #4B5563; --ink-4: #6B7280;
  --gray-200: #E5E7EB; --gray-100: #F3F4F6; --gray-50: #F9FAFB; --white: #FFFFFF;
  --negative: #DC2626; --negative-soft: #FEF2F2; --negative-text: #B91C1C;
  --gold-text: #7F6640; /* gold for small text on gray-50 (5.3:1); --gold stays the accent */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --sh-card: 0 1px 3px 0 rgba(17,24,39,.07), 0 1px 2px -1px rgba(17,24,39,.05);
  --sh-pop: 0 8px 24px -6px rgba(17,24,39,.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--gold-deep);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--gray-50); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--gold-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-md); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r-md); z-index: 10; }
.skip:focus { left: 16px; }

/* ── Header ── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--gray-200);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold); color: var(--white); font-weight: 800; font-size: 18px;
}
.brand-name { font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 480px) { .who-name { display: none; } }
.brand-sub { font-weight: 600; color: var(--ink-4); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

.btn-ghost {
  min-height: 44px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--gray-200); background: var(--white); color: var(--ink-2);
  font: 600 14px var(--font); cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost:disabled { opacity: .5; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--gray-100); } }

/* ── Layout ── */
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; outline: none; }
.center { display: grid; place-items: center; min-height: 60dvh; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.lead { margin: 0 0 20px; color: var(--ink-3); font-size: 16px; max-width: 60ch; }
.muted { color: var(--ink-4); }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--ink-4); }

/* ── Sign-in ── */
.signin { width: 100%; max-width: 420px; padding: 28px 24px; text-align: left; }
.gsi { min-height: 44px; }
.error {
  margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--negative-soft); color: var(--negative-text); font-size: 14px; font-weight: 600;
}

/* ── Hub ── */
.hub-head { margin-bottom: 8px; }
.group { margin-top: 24px; }
.group-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-4); letter-spacing: .02em; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } h1 { font-size: 34px; } }

.app {
  display: flex; align-items: flex-start; gap: 14px; height: 100%;
  min-height: 72px; padding: 16px; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease, border-color 160ms ease;
  animation: rise 280ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.app:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .app:hover { border-color: #E4D5BC; box-shadow: var(--sh-pop); }
}
.app-mark {
  flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-deep); font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.app-body { min-width: 0; }
.app-title { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--ink); }
.app-ext { color: var(--ink-4); font-size: 13px; font-weight: 600; }
.app-desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.hub-note { margin-top: 28px; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .app { animation: fade 160ms ease both; animation-delay: 0ms; transition: box-shadow 160ms ease, border-color 160ms ease; }
  .app:active, .btn-ghost:active { transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Footer ── */
.foot { display: flex; gap: 8px; justify-content: center; padding: 20px 16px 28px; font-size: 13px; color: var(--ink-4); }
.foot a { color: var(--ink-3); }
