/* Personeelsapp mockups, rebuilt in HTML with demo data (no real names, no restaurant name).
   Tokens copied from the real app (src/index.css there). Drawn at the app's own 390px width
   and scaled to the phone by --s, which main.js measures. */

.app {
  --goud: #d6b86d; --goud-donker: #a3852f; --goud-lijn: #b9973f; --goud-chip: #7d6420;
  --groen: #26332b; --creme: #f6f0e2; --kaart: #fffdf6;
  --inkt: #23241f; --gedempt: #6e6a5d; --gedempt-licht: #8a8574; --gelezen: #55523f; --track: #ebe3cd;
  --succes: #3f8f63; --succes-bg: #e3efe4; --waarschuwing: #b96a30; --waarschuwing-bg: #f6e7d6;
  --lijn: rgba(35, 36, 31, .07); --lijn-veld: rgba(35, 36, 31, .18);

  position: absolute; left: 0; top: 0;
  width: 390px; height: 844px;
  transform: scale(var(--s, .668)); transform-origin: 0 0;
  display: flex; flex-direction: column;
  background: var(--creme); color: var(--inkt);
  font: 400 13px/1.4 "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.app[hidden] { display: none !important; }
.app * { box-sizing: border-box; }

.a-head { background: var(--groen); color: var(--creme); padding: 14px 24px 24px; }
.a-status { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 22px; padding: 0 6px; }
.a-status i { font-style: normal; letter-spacing: 1px; opacity: .9; }
.a-head h4 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.a-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.a-label { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gedempt); margin: 8px 2px 0; }

.a-card { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 20px; padding: 16px 18px; box-shadow: 0 8px 20px -14px rgba(35, 36, 31, .3); }
.a-card.gold { border-color: var(--goud-lijn); }

.a-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.a-pill.ok { background: var(--succes-bg); color: var(--succes); }
.a-pill.bijna { background: var(--waarschuwing-bg); color: var(--waarschuwing); }
.a-pill.grijs { background: var(--track); color: var(--gedempt); }

/* goals */
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g-title { font-size: 15px; font-weight: 700; }
.g-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.g-num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.g-num small { display: block; font-size: 12px; font-weight: 500; color: var(--gedempt); letter-spacing: 0; margin-top: 4px; }
.g-goal { font-size: 13px; font-weight: 700; color: var(--goud-donker); }
.g-bar { height: 8px; border-radius: 99px; background: var(--track); margin-top: 12px; overflow: hidden; }
.g-bar span { display: block; height: 100%; background: var(--goud); border-radius: 99px; }
.g-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--lijn-veld); font-size: 13px; font-weight: 600; color: var(--gedempt); }
.g-lock { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.g-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--succes-bg); color: var(--succes); font-weight: 800; }
.g-lock b { display: block; font-size: 15px; }
.g-lock span { font-size: 12px; color: var(--gedempt); }
.a-card.done { opacity: .75; }

/* tab bar */
.a-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--kaart); border-top: 1px solid rgba(35, 36, 31, .08); padding: 10px 8px 30px; }
.a-tab { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--gedempt-licht); position: relative; }
.a-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-tab.on { color: var(--goud-donker); }
.a-tab.on span { color: var(--inkt); font-weight: 800; }
.a-tab .unread { position: absolute; top: 0; right: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--goud); }

/* segmented + week nav */
.a-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a-seg span { display: grid; place-items: center; height: 42px; border-radius: 11px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--lijn-veld); color: var(--gedempt); }
.a-seg span.on { background: var(--groen); border-color: var(--groen); color: var(--creme); }
.a-week { display: flex; justify-content: space-between; align-items: center; }
.a-week span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--lijn-veld); font-size: 18px; color: var(--gedempt); }
.a-week b { font-size: 15px; font-weight: 700; }

/* roster */
.r-mine { display: grid; gap: 8px; margin-top: 10px; }
.r-mine div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.r-mine b { width: 72px; font-size: 13px; }
.r-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--goud-lijn); color: var(--goud-chip); font-size: 12px; font-weight: 600; }
.r-hint { margin-top: 10px; font-size: 12px; color: var(--gedempt); }
.r-day-head { display: flex; justify-content: space-between; align-items: baseline; }
.r-day-head b { font-size: 15px; color: var(--goud-donker); }
.r-day-head span { font-size: 11px; font-weight: 700; color: var(--gedempt); }
.r-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.r-row em { width: 68px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--gedempt); }
.r-name { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--track); color: var(--gedempt); font-size: 12px; font-weight: 600; }
.r-name.me { background: rgba(214, 184, 109, .25); border: 1px solid var(--goud-lijn); color: var(--inkt); }
.r-name small { font-size: 12px; font-weight: 700; margin-left: 4px; color: var(--inkt); }

/* availability */
.v-bar { display: flex; justify-content: space-between; align-items: center; background: var(--kaart); border: 1px solid var(--goud-lijn); border-radius: 14px; padding: 10px 10px 10px 14px; font-size: 13px; font-weight: 700; }
.v-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 12px; background: var(--goud); color: var(--inkt); font-size: 13px; font-weight: 800; box-shadow: 0 10px 22px -12px rgba(163, 133, 47, .7); }
.v-intro { font-size: 12px; color: var(--gedempt); line-height: 1.45; padding: 0 2px; }
.v-day { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-day > b { font-size: 15px; }
.v-opts { display: flex; gap: 6px; }
.v-o { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 700; }
.v-o.dash-ok { border: 1.5px dashed var(--succes); color: var(--succes); }
.v-o.dash-no { border: 1.5px dashed var(--gedempt-licht); color: var(--gedempt); }
.v-o.ok { background: var(--succes); color: #fff; }
.v-o.no { background: var(--waarschuwing); color: #fff; }
.v-o.vast { height: 30px; border-radius: 999px; background: var(--succes-bg); color: var(--succes); }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(214, 184, 109, .25); border: 1px solid var(--goud-lijn); color: var(--inkt); }
.v-chip.off { background: none; border: 1px dashed var(--lijn-veld); color: var(--gedempt); }

/* home */
.a-head.home { padding-bottom: 22px; }
.a-head.home h4 { line-height: 1.15; }
.h-date { display: block; margin-top: 2px; font-size: 13px; color: rgba(246, 240, 226, .6); }
.h-nudge, .h-woord { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 20px; padding: 14px 16px; }
.h-nudge { background: rgba(214, 184, 109, .2); border: 1px solid var(--goud); }
.h-nudge span, .h-woord span { display: grid; gap: 1px; }
.h-nudge b { font-size: 14px; font-weight: 800; }
.h-nudge small { font-size: 12px; color: var(--gedempt); }
.h-nudge i, .h-woord i { font-style: normal; font-size: 18px; font-weight: 800; color: var(--goud-donker); }
.h-sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.h-sec h5 { margin: 0; font-size: 17px; font-weight: 800; }
.h-sec span { font-size: 13px; font-weight: 700; color: var(--goud-donker); }
.h-woord { background: var(--groen); padding: 16px 20px; box-shadow: 0 8px 20px -14px rgba(35, 36, 31, .3); }
.h-woord b { font-size: 15px; font-weight: 800; color: var(--creme); }
.h-woord small { font-size: 13px; color: rgba(246, 240, 226, .65); }
.h-woord i { color: var(--goud); }
.h-week { display: grid; gap: 6px; background: var(--kaart); border: 1px solid rgba(214, 184, 109, .6); border-radius: 18px; padding: 12px 16px; }
.h-week div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.h-week b.today { color: var(--goud-donker); }
.h-week .r-chip { height: auto; padding: 5px 10px; border-color: var(--lijn); color: var(--gedempt); background: var(--kaart); }
.h-news { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 20px; overflow: hidden; }
.h-msg { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.h-msg + .h-msg { border-top: 1px solid var(--lijn); }
.h-msg .dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--goud); }
.h-msg span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.h-msg b { font-size: 14px; font-weight: 800; }
.h-msg small { font-size: 13px; color: var(--gedempt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-msg em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--goud-donker); }
.h-msg.read .dot { background: transparent; }
.h-msg.read b { font-weight: 600; color: var(--gelezen); }
.h-msg.read small { color: var(--gedempt-licht); }
.h-msg.read em { font-weight: 400; color: var(--gedempt-licht); }

/* spotlight from the explanation list: dim the rest, lift the spot */
.app .spot { transition: box-shadow 200ms ease, opacity 200ms ease; }
.app.has-spot .spot { opacity: .45; }
.app.has-spot .spot.is-lit { opacity: 1; box-shadow: 0 0 0 3px #E8490F; border-radius: 16px; }

/* ---------- playable version on the homepage (app-demo.js) ---------- */
.app.live [role="button"] { cursor: pointer; }
.app.live .tap { transition: transform 160ms var(--ease-out); }
.app.live .tap:active, .app.live .is-pressed { transform: scale(.97); }
.app.live .a-tab.tap:active, .app.live .a-tab.is-pressed { transform: scale(.9); }
.app.live :focus-visible { outline: 3px solid #E8490F; outline-offset: 2px; border-radius: 12px; }

.a-views { position: relative; flex: 1; overflow: hidden; }
.a-view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--creme); }
.app.live .a-tabs { position: relative; z-index: 3; }
.pane { display: flex; flex-direction: column; gap: 12px; }

.h-sec .tap-link { font-size: 13px; font-weight: 700; color: var(--goud-donker); }
.h-nudge { transition: background-color 240ms ease, border-color 240ms ease, transform 160ms var(--ease-out); }
.h-nudge.done { background: var(--succes-bg); border-color: rgba(63, 143, 99, .45); }
.h-nudge.done i { color: var(--succes); }
.h-week > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.v-bar { min-height: 58px; }
.v-bar.done { border-color: rgba(63, 143, 99, .45); background: var(--succes-bg); color: var(--succes); }
.v-bar.idle { color: var(--gedempt); }
.v-o.vast.no { background: var(--waarschuwing-bg); color: var(--waarschuwing); }
.v-o[role="button"] { transition: transform 160ms var(--ease-out); }

.r-mine > div { margin: -4px -6px; padding: 4px 6px; border-radius: 10px; }
.r-chip.given { border-color: transparent; background: var(--waarschuwing-bg); color: var(--waarschuwing); }
.is-given .r-chip:not(.given) { opacity: .5; }
.a-empty b { font-size: 15px; }
.a-empty p { margin: 6px 0 14px; font-size: 13px; color: var(--gedempt); line-height: 1.45; }

.a-back { display: inline-flex; margin: -8px 0 6px -2px; font-size: 15px; font-weight: 700; color: var(--goud); }
.m-meta { font-size: 12px; font-weight: 600; color: var(--gedempt); }
.m-body p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.m-read { align-self: flex-start; }

.g-bar span { transform-origin: 0 50%; }

.a-scrim { position: absolute; inset: 0; z-index: 10; background: rgba(20, 22, 18, .38); }
.a-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  padding: 10px 22px 38px; border-radius: 26px 26px 0 0;
  background: var(--kaart); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .25);
}
.a-sheet .grab { width: 40px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: var(--track); }
.a-sheet h6 { margin: 0; font-size: 20px; font-weight: 800; }
.a-sheet .s-sub { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--goud-donker); }
.a-sheet p { margin: 12px 0 18px; font-size: 14px; line-height: 1.45; color: var(--gedempt); }
.a-sheet .v-btn { display: flex; justify-content: center; height: 50px; font-size: 15px; }
.a-sheet .s-no { display: grid; place-items: center; height: 46px; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--gedempt); }

.a-toast {
  position: absolute; left: 0; right: 0; top: 60px; z-index: 12;
  width: max-content; max-width: 330px; margin: 0 auto; padding: 10px 16px;
  border-radius: 999px; background: var(--inkt); color: var(--creme);
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none;
}

/* the "finger" that shows the way once */
.tap-dot {
  position: absolute; left: 0; top: 0; z-index: 20;
  width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: rgba(35, 36, 31, .24);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none;
}
.tap-dot i { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .95); opacity: 0; }
