/* Hang — app chrome on top of the Organic design system.
   Everything here is either a browser-level reset the app relies on, a
   scrollbar treatment, or the print rules that turn the plan overlay into
   three A4 landscape sheets. Colours and metrics come from the tokens. */

html, body { height: 100%; }
body { margin: 0; overflow: hidden; }

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-700); }

input[type=color] {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--color-divider);
  background: none;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
}
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: none; border-radius: 999px; }
input[type=range] { accent-color: var(--color-accent); }

/* Top-level panels sit at half the system's container radius. */
.wp-app .card { border-radius: calc(var(--radius-md) / 2); }

.wp-scroll::-webkit-scrollbar { width: 10px; }
.wp-scroll::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: 999px;
  border: 3px solid var(--color-bg);
}

/* The reserve strip scrolls by wheel and chevron, never by a native bar. */
.wp-tray {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}
.wp-tray::-webkit-scrollbar { display: none; }

.wp-chev:hover { background: var(--color-accent-100) !important; }

@page { size: A4 landscape; margin: 11mm; }

@media print {
  body { background: #fff; overflow: visible; }
  .wp-app { display: none !important; }
  .plan-backdrop {
    position: static !important;
    display: block !important;
    background: #fff !important;
    padding: 0 !important;
  }
  .plan-sheet {
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    height: 184mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: page;
    page-break-after: always;
  }
  .plan-sheet:last-of-type { break-after: auto; page-break-after: auto; }
  .noprint { display: none !important; }
}
