/* VICOSYS look for the two dashboards (admin.html, super.html).
 * Linked after each page's own <style>, so equal-specificity rules here win;
 * colour tokens live in theme.css. Mirrors vicosys.com.hk: pill buttons on the
 * green gradient, 20px cards, near-black rail, 700-weight headings. */

html { font-size: 17px; }
/* Form controls don't inherit the page font by default. */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 { letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; font-weight: 700; }

.card { border-radius: 20px; border-color: transparent; padding: 24px;
  box-shadow: 0 1px 2px rgba(13, 12, 12, 0.04), 0 12px 32px -14px rgba(13, 12, 12, 0.14); }
html.dark .card { border-color: var(--border); box-shadow: none; }
.tile { border-radius: 16px; background: var(--surface-2); border-color: transparent; box-shadow: none; }

/* Primary buttons: the VICOSYS pill. Ink text — white on this green fails contrast.
   Ghost/danger/menu buttons opt out of the gradient in each page's own rules. */
button { border-radius: 999px; font-weight: 700; padding: 9px 20px;
  background-image: var(--brand-gradient); transition: transform 0.2s ease, filter 0.2s ease, background 0.15s, color 0.15s; }
button:hover { filter: brightness(1.05); }
button:active { transform: scale(0.98); }
nav button { border-radius: 999px; }

input, textarea, select { border-radius: 12px; padding: 10px 12px; }

/* Left rail: VICOSYS black in light mode, a raised surface in dark. */
.form-menu { background: var(--brand-black); border-color: var(--brand-black); border-radius: 20px; }
html.dark .form-menu { background: var(--surface); border-color: var(--border); }
.form-menu button { border-radius: 10px; }

/* Footer at the end of the signed-in view. */
.app-foot { margin-top: 40px; padding: 22px 0 8px; border-top: 1px solid var(--border-strong);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  color: var(--text-3); font-size: 15px; }
.app-foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.app-foot a { color: var(--text); font-weight: 600; text-decoration: none; }
.app-foot a:hover { color: var(--accent-text); }

/* Phones: the 18px header menu would take two rows. */
@media (max-width: 760px) {
  nav button { font-size: 15px; padding: 7px 11px; }
  .app-foot { font-size: 14px; }
}
