/* phone.css - the My Shifts phone app preview (iPhone and Android frames, staff and manager views).
   Brand values follow the built app: ink #102333, teal #087a91, light by default; dark uses the site's navy and cyan. */
.ph-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ph-stage { display: flex; justify-content: center; }
.ph-side .card + .card { margin-top: 16px; }
.ph-side h2 { margin: 14px 0 8px; }
.ph-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.ph-ctl-l { font-weight: 700; min-width: 70px; }
.ph-try { margin: 0 0 12px; padding-left: 20px; }
.ph-try li { margin: 4px 0; }
@media (max-width: 980px) { .ph-layout { grid-template-columns: minmax(0, 1fr); } }

.ph {
  --ph-bg: #f4f8fc; --ph-card: #ffffff; --ph-ink: #102333; --ph-muted: #4d6378; --ph-line: #dde7f0;
  --ph-accent: #087a91; --ph-on-accent: #ffffff; --ph-soft: #e4f3f6; --ph-tab: #ffffff;
  --ph-ok: #17663a; --ph-ok-bg: #e0f3e8; --ph-warn: #8a4b00; --ph-warn-bg: #fff0d1; --ph-bad: #a31d1d; --ph-bad-bg: #fde4e4;
  width: min(390px, 100%); height: 800px; padding: 11px; background: #0b111a; border-radius: 56px;
  box-shadow: 0 0 0 2px #2a3442, 0 30px 60px rgba(7, 28, 50, .28); font-family: -apple-system, "SF Pro Text", "Roboto", system-ui, sans-serif;
}
.ph.android { border-radius: 40px; font-family: "Roboto", system-ui, sans-serif; }
:root[data-theme="dark"] .ph {
  --ph-bg: #071425; --ph-card: #0e2238; --ph-ink: #f2f7ff; --ph-muted: #b4c6da; --ph-line: #1d3b5c;
  --ph-accent: #7fe3ff; --ph-on-accent: #071c32; --ph-soft: #0f2d47; --ph-tab: #0a1a2d;
  --ph-ok: #b7ecc8; --ph-ok-bg: #123a26; --ph-warn: #f6dd8a; --ph-warn-bg: #3a3110; --ph-bad: #ffb4b4; --ph-bad-bg: #4a1a1a;
}
.ph-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: var(--ph-bg); color: var(--ph-ink); display: flex; flex-direction: column; font-size: 15px; }
.ph.android .ph-screen { border-radius: 30px; }
.ph-status { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-weight: 600; font-size: 14px; position: relative; }
.ph.android .ph-status { height: 34px; padding: 0 20px; font-size: 13px; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 112px; height: 30px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.ph-punch { position: absolute; left: 50%; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: #000; transform: translateX(-50%); }
.ph-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.ph-sig i { display: inline-block; width: 3px; background: currentColor; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 5px; } .ph-sig i:nth-child(2) { height: 8px; } .ph-sig i:nth-child(3) { height: 11px; margin-right: 4px; }

.ph-top { flex: none; padding: 4px 18px 10px; }
.ph-top-row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.ph-venue { flex: 1; font-size: 13px; color: var(--ph-muted); font-weight: 500; }
.ph-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.ph.android .ph-title { font-size: 24px; font-weight: 500; letter-spacing: 0; }
.ph-sub { color: var(--ph-muted); font-size: 13px; margin: 2px 0 0; }
.ph-avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ph-accent); color: var(--ph-on-accent); font-weight: 700; font-size: 12px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.ph-avatar.big { width: 52px; height: 52px; font-size: 16px; }
.ph-back { border: 0; background: none; color: var(--ph-accent); padding: 4px; cursor: pointer; display: inline-flex; }
.ph-body { flex: 1; overflow-y: auto; padding: 4px 16px 20px; overscroll-behavior: contain; }
.ph-ico { width: 22px; height: 22px; flex: none; }
.ph-chev { width: 18px; height: 18px; color: var(--ph-muted); }

.ph-hero { border-radius: 22px; padding: 18px; color: #f2f7ff; background: radial-gradient(120% 140% at 100% 0%, rgba(127, 227, 255, .28), transparent 55%), linear-gradient(160deg, #0c243b 0%, #087a91 140%); margin-bottom: 14px; }
.ph-hero p { margin: 0; }
.ph-hero-k { font-size: 14px; color: #c0d1e5; }
.ph-hero-w { font-size: 22px; font-weight: 800; margin: 2px 0 4px !important; }
.ph-hero-s { font-size: 13px; color: #d9e6f3; }
.ph-hero .ph-btn { margin-top: 12px; }

.ph-card { background: var(--ph-card); border: 1px solid var(--ph-line); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.ph.android .ph-card { border-radius: 14px; border-color: transparent; box-shadow: 0 1px 3px rgba(7, 28, 50, .12); }
.ph-card h3 { font-size: 15px; margin: 0 0 6px; }
.ph-card p { margin: 4px 0; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ph-grow { flex: 1; text-align: left; }
.ph-muted { color: var(--ph-muted); font-size: 13px; }
.ph-center { text-align: center; }
.ph-big { font-size: 26px; font-weight: 800; margin: 2px 0; }
.ph-h { font-size: 13px; text-transform: none; color: var(--ph-muted); margin: 16px 2px 8px; font-weight: 700; }
.ph-list { list-style: none; margin: 0; padding: 0; }
.ph-list > li { margin: 0 0 8px; }
.ph-list > li.ph-card { margin-bottom: 8px; }
.ph-plain { margin: 4px 0 10px; padding-left: 18px; }
.ph-plain li { margin: 3px 0; }
.ph-tag { display: block; color: var(--ph-muted); font-size: 12px; }
.ph-quote { font-size: 13px; background: var(--ph-soft); border-radius: 10px; padding: 8px 10px; }
.ph-note { font-size: 12px; color: var(--ph-warn); background: var(--ph-warn-bg); border-radius: 10px; padding: 8px 10px; margin-top: 8px !important; }
.ph-done { display: flex; align-items: center; gap: 8px; color: var(--ph-ok); font-weight: 600; margin: 6px 2px 0; }

.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--ph-accent); background: var(--ph-accent); color: var(--ph-on-accent); font: 600 15px/1 inherit; cursor: pointer; }
.ph.android .ph-btn { border-radius: 22px; font-weight: 500; }
.ph-btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.ph-btn.wide { width: 100%; margin: 8px 0; }
.ph-btn.ghost { background: transparent; color: var(--ph-accent); }
.ph-btn.danger { background: var(--ph-bad); border-color: var(--ph-bad); color: #fff; }
.ph-btn.ghost.danger { background: transparent; color: var(--ph-bad); }
.ph-btn.on-hero { background: #7fe3ff; border-color: #7fe3ff; color: #071c32; }
.ph-btn:disabled { opacity: .5; cursor: default; }
.ph-link { border: 0; background: none; color: var(--ph-accent); font: inherit; font-weight: 600; cursor: pointer; display: block; margin: 4px auto; padding: 8px; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ph-actions.col { flex-direction: column; align-items: stretch; }

.ph-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--ph-soft); color: var(--ph-ink); }
.ph-chip.ok { background: var(--ph-ok-bg); color: var(--ph-ok); }
.ph-chip.warn { background: var(--ph-warn-bg); color: var(--ph-warn); }
.ph-chip.bad { background: var(--ph-bad-bg); color: var(--ph-bad); }
.ph-chip.neutral { background: var(--ph-soft); color: var(--ph-ink); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.ph-chips button { border: 1px solid var(--ph-line); background: var(--ph-card); color: var(--ph-ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.ph-chips button[aria-pressed="true"] { background: var(--ph-accent); border-color: var(--ph-accent); color: var(--ph-on-accent); }
.ph-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ph-soft); border-radius: 12px; padding: 3px; margin: 2px 0 12px; }
.ph-seg button { border: 0; background: transparent; color: var(--ph-ink); padding: 8px 6px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.ph-seg button[aria-pressed="true"] { background: var(--ph-card); box-shadow: 0 1px 3px rgba(7, 28, 50, .15); color: var(--ph-accent); }

.ph-weeknav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.ph-weeknav button { border: 1px solid var(--ph-line); background: var(--ph-card); color: var(--ph-ink); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ph-weeknav button:disabled { opacity: .4; cursor: default; }
.ph-shift { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--ph-card); color: var(--ph-ink); border: 1px solid var(--ph-line); border-left: 5px solid var(--floor-line); border-radius: 16px; padding: 10px 12px; font: inherit; cursor: pointer; }
.ph-shift.Kitchen { border-left-color: var(--kitchen-line); } .ph-shift.Bar { border-left-color: var(--bar-line); }
.ph-date { display: grid; justify-items: center; min-width: 38px; }
.ph-date b { font-size: 12px; color: var(--ph-muted); font-weight: 600; } .ph-date i { font-style: normal; font-size: 20px; font-weight: 800; }
.ph-sh-main { flex: 1; display: grid; } .ph-sh-main span { color: var(--ph-muted); font-size: 13px; }
.ph-sh-tags { display: grid; gap: 4px; justify-items: end; }
.ph-empty { display: grid; gap: 4px; text-align: center; padding: 22px 14px; border: 1px dashed var(--ph-line); border-radius: 18px; margin-bottom: 10px; color: var(--ph-muted); font-size: 13px; }
.ph-empty b { color: var(--ph-ink); font-size: 15px; }
.ph-avail { list-style: none; margin: 6px 0 0; padding: 0; }
.ph-avail li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--ph-line); font-size: 14px; }
.ph-avail li:last-child { border-bottom: 0; }
.ph-avail b { font-weight: 600; } .ph-avail .av-none { color: var(--ph-bad); } .ph-avail .av-closed { color: var(--ph-muted); font-weight: 400; } .ph-avail .av-any { color: var(--ph-ok); }
.ph-pending { border-color: var(--ph-warn); }
.ph-facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ph-facts b { display: block; font-size: 22px; } .ph-facts span { font-size: 12px; color: var(--ph-muted); }
.ph-notes { list-style: none; padding: 0; margin: 4px 0 8px; }
.ph-notes li { padding: 8px 0; border-bottom: 1px solid var(--ph-line); } .ph-notes li:last-child { border-bottom: 0; }
.ph-notes p { margin: 0 0 2px; font-size: 14px; }
.ph-menu .ph-row span { font-weight: 700; }
.ph-me { display: flex; gap: 12px; align-items: center; }
.ph-settings { list-style: none; padding: 0; margin: 0; } .ph-settings li { padding: 8px 0; }
.ph-switch { width: 50px; height: 30px; border-radius: 99px; border: 0; background: #9aaabb; position: relative; cursor: pointer; flex: none; }
.ph-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.ph-switch[aria-checked="true"] { background: var(--ph-accent); } .ph-switch[aria-checked="true"] i { left: 23px; }
:root[data-theme="dark"] .ph-switch[aria-checked="true"] i { background: #071c32; }
.ph-menu-links { list-style: none; padding: 0; margin: 0; }
.ph-menu-links li + li { border-top: 1px solid var(--ph-line); }
.ph-menu-links a, .ph-menu-links button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 2px; color: var(--ph-ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.ph-signin { flex: 1; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.ph-signin img { width: 180px; height: auto; }
.ph-signin h2 { font-size: 22px; }

.ph-form { display: grid; gap: 10px; }
.ph-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ph-muted); }
.ph-field input, .ph-field select, .ph-field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ph-ink); background: var(--ph-card); border: 1px solid var(--ph-line); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
.ph-field.ph-inline { grid-template-columns: 1fr 1.4fr; align-items: center; }
.ph-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-err { color: var(--ph-bad); font-size: 13px; margin: 0; }
.ph-radios { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.ph-radios legend { font-weight: 700; margin-bottom: 4px; }
.ph-radios label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--ph-line); border-radius: 12px; background: var(--ph-card); }
.ph-radios input { accent-color: var(--ph-accent); }

.ph-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.ph-days button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0; border: 1px solid var(--ph-line); background: var(--ph-card); color: var(--ph-ink); border-radius: 12px; cursor: pointer; font: inherit; }
.ph-days button b { font-size: 11px; color: var(--ph-muted); font-weight: 600; } .ph-days button span { font-weight: 800; }
.ph-days button[aria-pressed="true"] { background: var(--ph-accent); border-color: var(--ph-accent); color: var(--ph-on-accent); }
.ph-days button[aria-pressed="true"] b { color: inherit; }
.ph-gapdot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ph-bad); }
.ph-rost { border-left: 4px solid var(--floor-line); } .ph-rost.Kitchen { border-left-color: var(--kitchen-line); } .ph-rost.Bar { border-left-color: var(--bar-line); }
.ph-gap { border: 2px dashed var(--ph-bad); background: transparent; }
.ph-person { width: 100%; font: inherit; color: var(--ph-ink); cursor: pointer; }

.ph-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ph-tab); border-top: 1px solid var(--ph-line); padding: 6px 4px 22px; }
.ph.android .ph-tabs { padding: 8px 4px 14px; border-top: 0; box-shadow: 0 -1px 0 var(--ph-line); }
.ph-tabs button { border: 0; background: none; color: var(--ph-muted); display: grid; justify-items: center; gap: 2px; padding: 4px 0; font: inherit; cursor: pointer; min-height: 48px; }
.ph-tab-i { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 9px; }
.ph-tab-l { font-size: 10.5px; font-weight: 600; }
.ph-tabs button[aria-current="page"] { color: var(--ph-accent); }
.ph.ios .ph-tabs button[aria-current="page"] .ph-tab-i { background: var(--ph-soft); }
.ph.android .ph-tab-i { width: 56px; border-radius: 16px; }
.ph.android .ph-tabs button[aria-current="page"] .ph-tab-i { background: var(--ph-soft); }
.ph.android .ph-tabs button[aria-current="page"] { color: var(--ph-ink); }
.ph-dot { position: absolute; top: -2px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ph-bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }

.ph-sheet-back { position: absolute; inset: 0; background: rgba(3, 11, 24, .45); z-index: 5; }
.ph-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 82%; overflow-y: auto; background: var(--ph-bg); border-radius: 24px 24px 0 0; padding: 8px 16px 26px; box-shadow: 0 -10px 30px rgba(3, 11, 24, .3); }
.ph-sheet > .ph-row h3 { font-size: 17px; margin: 6px 0; }
.ph-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ph-line); margin: 0 auto 6px; }
.ph button:focus-visible, .ph a:focus-visible, .ph input:focus-visible, .ph select:focus-visible, .ph textarea:focus-visible { outline: 3px solid #b45309; outline-offset: 2px; }
@media (max-width: 440px) { .ph { height: 760px; padding: 6px; border-radius: 40px; } .ph-screen { border-radius: 34px; } }
