/* Shared presentation. Brand colors, permissions and authentication stay in their existing modules. */
:root {
  --radius: 12px;
  --shadow: 0 8px 24px rgba(38, 49, 68, .05);
  --shadow-soft: 0 2px 8px rgba(38, 49, 68, .035);
}
body { background: var(--bg); line-height: 1.5; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; background: var(--deep); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sidebar { padding: 12px clamp(20px, 3vw, 48px); gap: 22px; background: var(--surface); backdrop-filter: none; }
.brand strong { font-size: .94rem; }
.logo-mark { border-radius: 10px; box-shadow: none; }
.side-nav { min-width: 0; overflow-x: auto; }
.nav-item { border-radius: 8px; white-space: nowrap; min-height: 38px; }
.nav-item.active { background: var(--accent-soft); color: var(--green); box-shadow: inset 0 -2px var(--accent); }
.sidebar > .header-user { margin-left: auto; flex-shrink: 0; }
.topbar-name { max-width: 130px; }
.topbar-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-content, .home-page .main-content { width: 100%; max-width: 1360px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 56px) 64px; min-width: 0; }
.topbar { margin-bottom: 24px; flex-wrap: wrap; }
.topbar .search-box { border-radius: 10px; background: var(--surface); min-height: 44px; }
.hero { border-radius: 16px; box-shadow: none; background: var(--surface); border: 1px solid var(--line); min-height: 0; padding: 28px 32px; }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.035em; line-height: 1.12; }
.hero p { max-width: 65ch; }
.hero-ornament { opacity: .3; }
.home-page .hero { min-height: 0; padding: 28px 0 32px; background: transparent; border: 0; }
.home-page .hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.eyebrow { letter-spacing: .1em; font-size: .7rem; font-weight: 750; }
.section-heading { gap: 16px; flex-wrap: wrap; }
.section-heading h2 { letter-spacing: -.025em; }
.primary-button, .secondary-button, .ghost-button, .google-button { border-radius: 9px; box-shadow: none; min-height: 40px; }
.primary-button { color: var(--deep); }
.primary-button:hover { background: var(--accent); box-shadow: 0 3px 10px rgba(109, 133, 0, .16); }
button:disabled { cursor: not-allowed; opacity: .6; }
:where(.app-card, .content-card, .team-card, .admin-panel, .create-panel, .guidance-card, .booking-panel, .my-reservations, .room-quick-card) { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.app-card, .apps-page .app-card { background: var(--surface); border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.app-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.app-card h3, .content-card h3 { letter-spacing: -.02em; }
.featured-story { border-radius: 16px; box-shadow: none; }
.home-page :is(.featured-story, .home-upcoming, .home-panel, .recognition-banner, .team-moments) { border-radius: 16px; box-shadow: var(--shadow-soft); }
.home-page :is(.hero, .editorial-home) :is(.primary-button, .secondary-button) { border-radius: 9px; }
.home-page .featured-story { display: flex; flex-direction: column; }
.home-page .featured-image { flex: 1; }
.home-upcoming, .home-panel { min-width: 0; }
.recognition-banner, .team-moments { border-radius: 16px; box-shadow: none; }
:where(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-radius: 8px; }
:where(.app-form, .content-form, .booking-form, .oauth-form) :where(input:not([type=checkbox]):not([type=radio]), select, textarea) { background: var(--surface); border: 1px solid var(--line-strong); min-height: 42px; }
textarea { line-height: 1.5; }
.filters, .filter-row, .tabs { gap: 8px; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: 14px; box-shadow: none; }
.rooms-topbar, .create-app-topbar { padding: 0; }
.rooms-topbar h1, .create-app-topbar h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.rooms-toolbar { border-radius: 12px; box-shadow: none; }
.create-hero { border-radius: 16px; background: var(--surface); box-shadow: none; border: 1px solid var(--line); }
.create-hero h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.025em; line-height: 1.25; }
.create-hero-panel { border-radius: 12px; }
.check-card, .test-grid article { border-radius: 10px; box-shadow: none; }
.final-cta { border-radius: 16px; box-shadow: none; }
.login-body { background: var(--bg); }
.login-panel { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-copy h1 { letter-spacing: -.035em; }
.google-button { min-height: 48px; }
@media (max-width: 1600px) {
  .sidebar { flex-wrap: wrap; gap: 10px 20px; }
  .side-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
}
@media (max-width: 760px) {
  .sidebar { padding: 10px 16px; }
  .sidebar > .header-user { grid-template-columns: 30px auto; gap: 8px; }
  .sidebar > .header-user .ghost-button { display: inline-flex; min-height: 36px; grid-column: auto; }
  .sidebar > .header-user .topbar-name { display: none; }
  .nav-item { min-height: 40px; padding: 8px 10px; }
  .main-content, .home-page .main-content { padding: 20px 16px 40px; }
  .topbar { margin-bottom: 18px; gap: 12px; }
  .topbar .search-box { width: 100%; }
  .hero { padding: 22px; grid-template-columns: minmax(0, 1fr); }
  .hero-actions { flex-wrap: wrap; }
  .home-page .hero { padding: 12px 0 24px; }
  .create-hero, .create-grid { grid-template-columns: minmax(0, 1fr); }
  .create-hero { padding: 22px; }
  .section-heading > *, .rooms-toolbar > * { min-width: 0; }
  .login-shell { padding: 20px; }
  .login-panel { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
