/* Employees' web app (templates/web/): the native apps' look on a desk screen. Neutral palette from the apps
   (Theme.swift: Palette); the company colours come in as --primary/--secondary (+ on-, -ink, -tint) from web/_base.html. */
:root {
  --text: #14171C; --text-2: #374151; --text-3: #4B5563; --muted: #6B7280; --disabled: #9CA3AF;
  --border: #D5D9DE; --divider: #E4E7EB; --background: #F4F5F7; --white: #FFFFFF; --danger: #B42318;
  --radius: 20px; --shadow: 0 8px 24px -12px rgba(20, 23, 28, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
a { color: inherit; }
img, video, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header in the secondary colour: logo chip and the four tabs */
.top { background: var(--secondary); color: var(--on-secondary); }
.top__bar { max-width: 960px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 10px; border-radius: 10px; background: var(--white); text-decoration: none; flex: none; }
.logo img { height: 30px; max-width: 90px; object-fit: contain; display: block; }
.logo__mark { width: 15px; height: 15px; border-radius: 4px; background: var(--primary); }
.logo__name { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--primary-ink); white-space: nowrap; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--on-secondary); opacity: .78; text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.tabs a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .16); }
.tabs svg { width: 18px; height: 18px; flex: none; }

.hero { max-width: 960px; margin: 0 auto; padding: 10px 20px 28px; }
.hero--overlap { padding-bottom: 92px; }
.hero__hello { font-size: 15px; opacity: .8; }
.hero__name { font-size: 30px; font-weight: 700; letter-spacing: -.4px; }

main { max-width: 960px; margin: 0 auto; padding: 24px 20px 48px; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 16px; }
.section { margin-top: 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section__title { font-size: 19px; font-weight: 700; }
.section__sub { font-size: 14px; color: var(--text-3); }
.link { font-weight: 600; font-size: 15px; color: var(--text); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); padding: 16px; }
.card--raised { box-shadow: var(--shadow); }
.overlap { margin-top: -96px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--primary-tint); color: var(--primary-ink); white-space: nowrap; }
.pill--neutral { background: var(--background); color: var(--text-3); }
.kind-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--secondary-tint); color: var(--secondary-ink); display: grid; place-items: center; flex: none; }
.kind-icon svg { width: 24px; height: 24px; }
.row { display: flex; align-items: center; gap: 14px; }
.row__main { flex: 1; min-width: 0; }
.title { font-size: 18px; font-weight: 700; }
.meta { font-size: 14px; color: var(--text-3); }

/* Calendar rows (ActivityRow) */
.cal-row { display: flex; align-items: stretch; gap: 14px; padding: 14px 16px; background: var(--white); border-radius: 16px; text-decoration: none; color: var(--text); }
.cal-row:hover { box-shadow: var(--shadow); }
.cal-row__date { width: 44px; flex: none; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.cal-row__wd { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cal-row__day { font-size: 22px; font-weight: 700; line-height: 1.1; }
.cal-row__sep { width: 1px; background: var(--divider); flex: none; }
.cal-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.cal-row__title { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row__meta { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row__end { display: grid; place-items: center; flex: none; color: var(--muted); }
.check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary-ink); }
.check svg, .chev { width: 16px; height: 16px; }

/* Chips (filters), black when selected like the apps */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--white); color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip[aria-current="true"] { background: var(--text); color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--primary); color: var(--on-primary); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn--block { width: 100%; }
.btn--ghost { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn[disabled], .btn--disabled { background: var(--divider); color: var(--disabled); cursor: default; filter: none; }
.btn svg { width: 18px; height: 18px; }
.btn-text { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: underline; cursor: pointer; }
.btn-text--danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Movement break strip and Mediathek */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 216px; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.tile:hover, .media-card:hover { box-shadow: var(--shadow); }
.tile__text { padding: 0 4px 4px; min-width: 0; }
.tile__title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--secondary-tint); color: var(--secondary-ink); aspect-ratio: 16 / 9; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover svg { width: 26px; height: 26px; }
.cover__play { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 23, 28, .6); color: var(--white); display: grid; place-items: center; }
.cover__play svg { width: 14px; height: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.media-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.media-card__text { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 3px; }
.media-card__title { font-size: 16px; font-weight: 700; }
.media-card__summary { font-size: 14px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-card__meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.media-detail { max-width: 760px; }
.media-detail video, .media-detail .media-image { width: 100%; border-radius: 16px; background: #000; display: block; }
.media-detail .media-image { background: none; }
.prose { font-size: 16px; line-height: 1.6; color: var(--text-2); white-space: pre-line; }

/* Slot picker */
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.day { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 10px 12px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--border); text-decoration: none; color: var(--text); }
.day[aria-current="true"] { border-color: var(--primary); background: var(--primary-tint); }
.day__wd { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day__date { font-size: 17px; font-weight: 700; }
.day__free { font-size: 12px; color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-weight: 600; text-decoration: none; }
.time[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.time--taken { color: var(--disabled); text-decoration: line-through; border-style: dashed; background: transparent; }

/* Forms */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth__head { background: var(--secondary); color: var(--on-secondary); }
.auth__head-inner { max-width: 480px; margin: 0 auto; padding: 28px 24px 84px; display: flex; flex-direction: column; gap: 22px; }
.auth__title { font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
.auth__sub { font-size: 15px; opacity: .85; }
.auth__body { max-width: 480px; width: 100%; margin: -60px auto 0; padding: 0 16px 40px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.field input, .field select { height: 52px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--white); color: var(--text); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--text); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error, .form-error { font-size: 14px; color: var(--danger); }
.field--invalid input, .field--invalid select { border-color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.auth__foot { text-align: center; font-size: 15px; color: var(--text-3); margin-top: 18px; }

/* Messages, lists */
.flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--white); border-left: 4px solid var(--primary); font-weight: 600; }
.flash--error { border-left-color: var(--danger); color: var(--danger); }
.empty { padding: 32px 16px; text-align: center; color: var(--text-3); background: var(--white); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.list { background: var(--white); border-radius: 16px; overflow: hidden; }
.list > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); font-weight: 500; }
.list > *:last-child { border-bottom: 0; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 18px; flex: none; }
.segmented { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--white); gap: 4px; margin-bottom: 16px; }
.segmented a { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--text-3); }
.segmented a[aria-current="true"] { background: var(--text); color: var(--white); }
.qr { width: 260px; max-width: 100%; margin: 8px auto; padding: 12px; background: var(--white); border-radius: 16px; border: 1px solid var(--divider); }
.qr svg { display: block; width: 100%; height: auto; }
.center { text-align: center; }
.footer { max-width: 960px; margin: 0 auto; padding: 0 20px 32px; font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* Phone width: the tabs move to a bar at the bottom, like the apps */
@media (max-width: 720px) {
  .tabs { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--divider); }
  .tabs a { flex-direction: column; gap: 2px; height: auto; padding: 6px 10px; font-size: 12px; color: var(--muted); opacity: 1; border-radius: 10px; }
  .tabs a:hover { background: none; }
  .tabs a[aria-current="page"] { background: none; color: var(--primary-ink); }
  .tabs svg { width: 22px; height: 22px; }
  body.has-tabs { padding-bottom: 76px; }
  main { padding: 20px 16px 40px; }
  .top__bar, .hero, .footer { padding-left: 16px; padding-right: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}
