﻿:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --red: #c1121f;
  --red-dark: #8f0d17;
  --black: #111113;
  --ink: #25262a;
  --muted: #4b4d53;
  --border: #d4d5da;
  --surface: #f5f6f8;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
header {
  position: relative;
  z-index: 1;
  background: white;
  box-shadow: 0 10px 28px #11111314;
}
.header-inner {
  min-height: 78px;
  padding: 8px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand img {
  display: block;
  width: 152px;
  height: 62px;
  object-fit: contain;
}
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); }
header a { color: var(--black); text-decoration: none; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .95rem;
  font-weight: 700;
}
nav a:hover, nav a[aria-current] { color: var(--red-dark); }
button, nav .nav-cta {
  background: var(--red);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 24px #c1121f25;
}
nav .nav-cta[aria-current] { color: white; }
button:hover, nav .nav-cta:hover { background: var(--red-dark); color: white; }
#request-view {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(36px, 6vw, 90px) 7vw;
  color: white;
  background: linear-gradient(100deg, #111113f5 4%, #111113c9 55%, #1111138c),
    #111113 url("/assets/melos-operations.webp") center / cover no-repeat;
}
.section-label {
  margin: 0 0 12px;
  color: #ffb9bf;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.55rem, 6vw, 5rem);
  letter-spacing: -.055em;
  line-height: 1.04;
  margin: 0;
}
.intro { margin: 14px 0 24px; color: var(--muted); }
.request-heading .intro { color: #f2f2f4; margin-bottom: 0; font-size: 1.05rem; }
#requests-view, #inbox-view { width: min(86%, 820px); margin: 56px auto; }
#account-view { width: min(90%, 640px); margin: 48px auto; }
#account-view h1 { font-size: clamp(2rem, 7vw, 4rem); }
.requester-invites { margin: 0 0 20px; }
.requester-invites summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.checkbox-label { display: flex; align-items: center; }
.checkbox-label input { width: 20px; min-height: 20px; margin: 0; }
.account-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
#requests-view h1, #inbox-view h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
form, article, .empty {
  color: var(--ink);
  background: white;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #e8e9ec;
  border-radius: 14px;
  box-shadow: 0 22px 60px #1111131f;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
label { display: grid; gap: 6px; margin-bottom: 14px; font-size: .9rem; font-weight: 700; }
input, select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--ink);
}
textarea { resize: vertical; }
.shift-hours { margin: -4px 0 14px; color: var(--muted); font-size: .9rem; }
button { cursor: pointer; min-height: 44px; }
button:disabled { opacity: .55; cursor: wait; }
button span { margin-left: 9px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
article { margin-bottom: 14px; overflow-wrap: anywhere; }
article h2 { margin: 0 0 8px; font-size: 1.2rem; }
article p { white-space: pre-wrap; }
.status { display: inline-block; background: #f9ebcd; color: #593b0b; border-radius: 999px; padding: 4px 10px; font-size: .85rem; }
.confirmed { color: #174b38; background: #d8efdd; }
main a { color: var(--red-dark); font-weight: 700; }
.error { color: var(--red-dark); }
@media (max-width: 760px) {
  #request-view { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 30px 5vw; }
  #requests-view, #inbox-view { width: 90%; margin: 30px auto; }
}
@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; padding: 6px 5vw 12px; gap: 3px; }
  nav { width: 100%; gap: 6px 11px; flex-wrap: wrap; }
  nav .nav-cta { margin-left: auto; padding-inline: 11px; font-size: .9rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
