:root {
  --crew-ink:#34271d;
  --crew-ink-soft:#685647;
  --crew-muted:#8b7969;
  --crew-bg:#f7f1e8;
  --crew-bg-2:#efe4d6;
  --crew-card:#fffdf9;
  --crew-card-soft:#fbf6ef;
  --crew-line:rgba(88,64,42,.11);
  --crew-line-strong:rgba(88,64,42,.18);
  --crew-accent:#a77b4f;
  --crew-accent-dark:#765538;
  --crew-champagne:#dfc7a8;
  --crew-brown:#2f241b;
  --crew-success:#5f7257;
  --crew-warning:#a06f33;
  --crew-danger:#9a5246;
  --crew-shadow:0 18px 55px rgba(75,52,30,.08);
  --crew-radius:22px;
}
* { box-sizing:border-box; }
html { min-height:100%; font-size:16px; background:var(--crew-bg); -webkit-text-size-adjust:100%; }
body { min-height:100vh; margin:0; color:var(--crew-ink); background:var(--crew-bg); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:inherit; }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.crew-body { padding-bottom:calc(92px + env(safe-area-inset-bottom)); background:radial-gradient(circle at 10% -5%,rgba(223,199,168,.44),transparent 30%),linear-gradient(180deg,#faf6f0 0%,var(--crew-bg) 54%,#f1e7db 100%); }
.crew-shell { width:min(100%,820px); margin:0 auto; }
.crew-topbar { position:sticky; top:0; z-index:30; min-height:74px; padding:12px 18px; display:flex; align-items:center; justify-content:space-between; background:rgba(47,36,27,.96); backdrop-filter:blur(16px); box-shadow:0 8px 28px rgba(47,36,27,.14); }
.crew-logo-link { display:flex; align-items:center; width:154px; min-width:0; text-decoration:none; }
.crew-logo-link img { display:block; width:100%; height:auto; }
.crew-avatar { width:40px; height:40px; display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(255,255,255,.17); border-radius:50%; color:#fff8ef; background:rgba(255,255,255,.08); text-decoration:none; font-size:.72rem; font-weight:850; letter-spacing:.04em; }
.crew-avatar.large { width:58px; height:58px; color:var(--crew-ink); background:var(--crew-card); border:1px solid var(--crew-line); box-shadow:var(--crew-shadow); font-size:.9rem; }
.crew-main { width:100%; padding:22px 16px 34px; }
.crew-eyebrow { display:block; color:var(--crew-accent-dark); text-transform:uppercase; letter-spacing:.14em; font-size:.66rem; line-height:1.2; font-weight:850; }
.crew-hero,.crew-page-head { display:flex; gap:18px; align-items:flex-start; justify-content:space-between; margin:4px 2px 20px; }
.crew-hero h1,.crew-page-head h1 { margin:5px 0 4px; font-size:clamp(2rem,10vw,3.2rem); line-height:1; letter-spacing:-.055em; font-weight:760; }
.crew-hero p,.crew-page-head p { margin:0; color:var(--crew-muted); font-size:.88rem; line-height:1.45; }
.crew-presence { display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; padding:7px 10px; margin-top:5px; border:1px solid var(--crew-line); border-radius:999px; color:var(--crew-muted); background:rgba(255,255,255,.55); font-size:.67rem; font-weight:750; white-space:nowrap; }
.crew-presence i { width:7px; height:7px; border-radius:50%; background:#9d8f83; }
.crew-presence.working { color:var(--crew-success); border-color:rgba(95,114,87,.2); background:rgba(95,114,87,.08); }
.crew-presence.working i { background:var(--crew-success); box-shadow:0 0 0 4px rgba(95,114,87,.1); }
.crew-presence.onbreak { color:var(--crew-warning); border-color:rgba(160,111,51,.2); background:rgba(160,111,51,.08); }
.crew-presence.onbreak i { background:var(--crew-warning); }
.crew-feature-card,.crew-form-card,.crew-info-card,.crew-week-card,.crew-message-detail { overflow:hidden; margin-bottom:14px; border:1px solid var(--crew-line); border-radius:var(--crew-radius); background:rgba(255,253,249,.94); box-shadow:var(--crew-shadow); }
.crew-feature-card { padding:18px; }
.crew-feature-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; color:var(--crew-muted); font-size:.7rem; font-weight:760; }
.crew-feature-top > span:first-child { color:var(--crew-accent-dark); text-transform:uppercase; letter-spacing:.12em; }
.crew-feature-top a { color:var(--crew-accent-dark); text-decoration:none; }
.crew-shift-feature { display:flex; align-items:center; gap:14px; }
.crew-date-tile { width:62px; height:62px; display:grid; place-items:center; align-content:center; flex:0 0 auto; border-radius:18px; color:#fff9f0; background:linear-gradient(145deg,#6d543f,#382a20); box-shadow:0 10px 24px rgba(64,44,29,.16); }
.crew-date-tile strong { font-size:1rem; line-height:1.1; }
.crew-date-tile small { margin-top:3px; color:#dfcbb4; font-size:.65rem; }
.crew-shift-feature h2 { margin:0 0 4px; font-size:1.14rem; letter-spacing:-.025em; }
.crew-shift-feature p,.crew-calm-card p { margin:0; color:var(--crew-muted); font-size:.77rem; line-height:1.5; }
.crew-calm-card h2 { margin:7px 0 6px; font-size:1.08rem; }
.crew-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.crew-stat-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.crew-stat-card { min-height:114px; padding:15px; display:flex; flex-direction:column; border:1px solid var(--crew-line); border-radius:18px; background:rgba(255,253,249,.78); text-decoration:none; box-shadow:0 9px 28px rgba(75,52,30,.045); }
.crew-stat-card span { color:var(--crew-accent-dark); text-transform:uppercase; letter-spacing:.09em; font-size:.6rem; font-weight:850; }
.crew-stat-card strong { margin:auto 0 2px; font-size:1.75rem; line-height:1; letter-spacing:-.045em; }
.crew-stat-card small { color:var(--crew-muted); font-size:.68rem; }
.crew-stat-card.static { pointer-events:none; }
.crew-inline-card { min-height:78px; margin:14px 0; padding:13px 14px; display:flex; align-items:center; gap:12px; border:1px solid var(--crew-line); border-radius:18px; background:rgba(255,253,249,.78); }
.crew-icon-disc { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:14px; color:var(--crew-accent-dark); background:#f1e2d0; }
.crew-inline-card div:nth-child(2) { display:grid; gap:2px; min-width:0; flex:1; }
.crew-inline-card div:nth-child(2) span { color:var(--crew-muted); font-size:.65rem; }
.crew-inline-card div:nth-child(2) strong { font-size:.82rem; }
.crew-inline-card > a { padding:8px; color:var(--crew-accent-dark); text-decoration:none; font-size:1.5rem; }
.crew-quick-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.crew-quick-grid a { min-height:136px; padding:16px; display:flex; flex-direction:column; border:1px solid var(--crew-line); border-radius:18px; background:linear-gradient(145deg,rgba(255,253,249,.94),rgba(246,237,226,.86)); text-decoration:none; }
.crew-quick-grid a > span { color:var(--crew-accent-dark); font-size:1.15rem; }
.crew-quick-grid strong { margin-top:auto; font-size:.84rem; }
.crew-quick-grid small { margin-top:3px; color:var(--crew-muted); font-size:.66rem; line-height:1.4; }
.crew-section { margin-top:24px; }
.crew-section-title { display:flex; align-items:end; justify-content:space-between; margin:0 2px 11px; }
.crew-section-title h2 { margin:4px 0 0; font-size:1.25rem; letter-spacing:-.03em; }
.crew-empty { min-height:280px; padding:34px 25px; display:grid; place-items:center; align-content:center; text-align:center; border:1px dashed var(--crew-line-strong); border-radius:var(--crew-radius); background:rgba(255,255,255,.32); }
.crew-empty.compact { min-height:180px; }
.crew-empty > span { width:48px; height:48px; display:grid; place-items:center; margin-bottom:12px; border-radius:16px; color:var(--crew-accent-dark); background:#ead9c4; font-size:1rem; }
.crew-empty h2 { margin:0; font-size:1rem; }
.crew-empty p { max-width:330px; margin:6px 0 0; color:var(--crew-muted); font-size:.75rem; line-height:1.55; }
.crew-week-stack,.crew-list-stack,.crew-message-list { display:grid; gap:12px; }
.crew-week-card header { padding:14px 15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--crew-line); background:var(--crew-card-soft); }
.crew-week-card header div { display:grid; gap:2px; }
.crew-week-card header span { color:var(--crew-accent-dark); text-transform:uppercase; letter-spacing:.1em; font-size:.6rem; font-weight:850; }
.crew-week-card header strong { font-size:.8rem; }
.crew-week-card header b { font-size:.78rem; color:var(--crew-muted); }
.crew-week-card.is-current { border-color:rgba(167,123,79,.32); box-shadow:0 18px 50px rgba(115,80,46,.11); }
.crew-shift-row { min-height:78px; padding:12px 14px; display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:10px; align-items:center; border-bottom:1px solid var(--crew-line); }
.crew-shift-row:last-child { border-bottom:0; }
.crew-shift-row.is-past { opacity:.58; }
.crew-shift-row.is-today { background:linear-gradient(90deg,rgba(223,199,168,.22),rgba(255,255,255,0)); }
.crew-shift-day { width:42px; height:50px; display:grid; place-items:center; align-content:center; border-radius:13px; background:#f0e3d4; }
.crew-shift-day strong { color:var(--crew-accent-dark); font-size:.6rem; text-transform:uppercase; }
.crew-shift-day span { font-size:.95rem; font-weight:800; }
.crew-shift-time,.crew-shift-meta { display:grid; gap:3px; }
.crew-shift-time strong { font-size:.82rem; }
.crew-shift-time span,.crew-shift-meta span { color:var(--crew-muted); font-size:.66rem; }
.crew-shift-meta { text-align:right; }
.crew-shift-meta strong { font-size:.74rem; }
.crew-form-card > header { padding:17px 18px 0; }
.crew-form-card > header h2 { margin:4px 0 0; font-size:1.18rem; letter-spacing:-.025em; }
.crew-form { padding:17px 18px 19px; }
.crew-field { display:grid; gap:6px; margin-bottom:13px; }
.crew-field label { color:var(--crew-ink-soft); font-size:.71rem; font-weight:760; }
.crew-field input,.crew-field select,.crew-field textarea { width:100%; min-height:48px; padding:11px 12px; color:var(--crew-ink); background:#fffdfa; border:1px solid var(--crew-line-strong); border-radius:13px; outline:none; font-size:.84rem; }
.crew-field textarea { resize:vertical; min-height:92px; }
.crew-field input:focus,.crew-field select:focus,.crew-field textarea:focus { border-color:rgba(167,123,79,.58); box-shadow:0 0 0 4px rgba(167,123,79,.09); }
.crew-field span.field-validation-error,.crew-validation { color:var(--crew-danger); font-size:.68rem; }
.crew-validation ul { margin:0 0 12px; padding-left:18px; }
.crew-two-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.crew-note { padding:12px 13px; margin:10px 0 14px; border:1px solid rgba(167,123,79,.16); border-radius:13px; color:var(--crew-muted); background:rgba(223,199,168,.14); font-size:.7rem; line-height:1.55; }
.crew-note strong { color:var(--crew-ink-soft); }
.crew-primary-btn,.crew-secondary-btn,.crew-small-btn { border:0; border-radius:13px; cursor:pointer; font-weight:800; text-decoration:none; }
.crew-primary-btn { width:100%; min-height:48px; padding:11px 16px; color:#fffaf2; background:linear-gradient(135deg,#8d6845,#5e4430); box-shadow:0 10px 24px rgba(83,57,35,.16); }
.crew-secondary-btn { min-height:44px; padding:10px 15px; color:var(--crew-ink-soft); background:#f2e8dc; border:1px solid var(--crew-line); }
.crew-small-btn { min-height:34px; padding:7px 10px; color:var(--crew-accent-dark); background:#f3e7d8; font-size:.66rem; }
.crew-small-btn.danger { color:var(--crew-danger); background:rgba(154,82,70,.08); }
.crew-leave-card { padding:15px; border:1px solid var(--crew-line); border-radius:18px; background:rgba(255,253,249,.82); }
.crew-leave-main { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.crew-leave-card h3 { margin:7px 0 3px; font-size:.92rem; }
.crew-leave-card p { margin:0; color:var(--crew-muted); font-size:.7rem; line-height:1.5; }
.crew-status { display:inline-flex; padding:4px 7px; border-radius:999px; border:1px solid var(--crew-line); color:var(--crew-muted); background:#f5eee5; text-transform:uppercase; letter-spacing:.08em; font-size:.53rem; font-weight:900; }
.crew-status.approved { color:var(--crew-success); border-color:rgba(95,114,87,.18); background:rgba(95,114,87,.08); }
.crew-status.pending { color:var(--crew-warning); border-color:rgba(160,111,51,.18); background:rgba(160,111,51,.08); }
.crew-status.declined,.crew-status.cancelled { color:var(--crew-danger); border-color:rgba(154,82,70,.14); background:rgba(154,82,70,.06); }
.crew-card-note,.crew-review-note { margin-top:11px !important; padding-top:10px; border-top:1px solid var(--crew-line); }
.crew-review-note strong { display:block; margin-bottom:2px; color:var(--crew-ink-soft); font-size:.62rem; }
.crew-message-card { min-height:112px; display:grid; grid-template-columns:4px minmax(0,1fr) 18px; gap:12px; align-items:center; overflow:hidden; padding:14px 12px 14px 0; border:1px solid var(--crew-line); border-radius:18px; background:rgba(255,253,249,.82); text-decoration:none; }
.crew-message-card.is-unread { background:var(--crew-card); border-color:rgba(167,123,79,.26); box-shadow:0 10px 30px rgba(82,57,34,.07); }
.crew-message-marker { width:4px; height:52px; border-radius:0 4px 4px 0; background:#d8c5ad; }
.crew-message-card.is-unread .crew-message-marker { background:var(--crew-accent); }
.crew-message-copy > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.crew-message-copy > div span,.crew-message-copy time { color:var(--crew-muted); font-size:.6rem; }
.crew-message-copy > div span { color:var(--crew-accent-dark); text-transform:uppercase; letter-spacing:.1em; font-weight:850; }
.crew-message-copy h2 { margin:5px 0 3px; font-size:.9rem; }
.crew-message-copy p { margin:0; color:var(--crew-muted); font-size:.7rem; line-height:1.45; }
.crew-chevron { color:#bca68f; font-size:1.3rem; }
.crew-back-link { display:inline-flex; margin:1px 0 14px; color:var(--crew-accent-dark); text-decoration:none; font-size:.72rem; font-weight:750; }
.crew-message-detail { padding:22px 20px; }
.crew-message-detail h1 { margin:8px 0 18px; font-size:clamp(1.7rem,8vw,2.6rem); line-height:1.08; letter-spacing:-.045em; }
.crew-message-body { white-space:pre-wrap; color:var(--crew-ink-soft); font-size:.91rem; line-height:1.75; }
.crew-message-card.style-celebration,.crew-message-detail.style-celebration { background:linear-gradient(145deg,#fffdf9,#f7ead8); }
.crew-message-card.style-important,.crew-message-detail.style-important { border-color:rgba(154,82,70,.2); }
.crew-alert { margin:12px 0; padding:13px 14px; display:grid; gap:3px; border:1px solid rgba(160,111,51,.2); border-radius:14px; color:var(--crew-warning); background:rgba(160,111,51,.07); }
.crew-alert strong { font-size:.76rem; }
.crew-alert span { color:var(--crew-ink-soft); font-size:.68rem; line-height:1.45; }
.crew-attendance-list { overflow:hidden; border:1px solid var(--crew-line); border-radius:18px; background:rgba(255,253,249,.82); }
.crew-attendance-row { min-height:66px; padding:11px 13px; display:grid; grid-template-columns:10px minmax(0,1fr) auto; gap:10px; align-items:center; border-bottom:1px solid var(--crew-line); }
.crew-attendance-row:last-child { border-bottom:0; }
.crew-event-dot { width:8px; height:8px; border-radius:50%; background:#b4a497; }
.crew-attendance-row.event-clockin .crew-event-dot,.crew-attendance-row.event-breakend .crew-event-dot { background:var(--crew-success); }
.crew-attendance-row.event-breakstart .crew-event-dot { background:var(--crew-warning); }
.crew-attendance-row > div { display:grid; gap:2px; }
.crew-attendance-row strong { font-size:.75rem; }
.crew-attendance-row span,.crew-attendance-row small { color:var(--crew-muted); font-size:.63rem; }
.crew-info-card { display:grid; }
.crew-info-card > div { min-height:62px; padding:12px 15px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--crew-line); }
.crew-info-card > div:last-child { border-bottom:0; }
.crew-info-card span { color:var(--crew-muted); font-size:.68rem; }
.crew-info-card strong { max-width:62%; text-align:right; overflow-wrap:anywhere; font-size:.74rem; }
.crew-signout-form { margin-top:14px; }
.crew-signout-form .crew-secondary-btn { width:100%; }
.crew-bottom-nav { position:fixed; left:50%; bottom:0; z-index:40; width:min(100%,820px); min-height:70px; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); transform:translateX(-50%); display:grid; grid-template-columns:repeat(5,1fr); border-top:1px solid rgba(255,255,255,.09); background:rgba(47,36,27,.97); backdrop-filter:blur(18px); box-shadow:0 -10px 35px rgba(47,36,27,.12); }
.crew-bottom-nav a { min-width:0; min-height:52px; display:grid; place-items:center; align-content:center; gap:2px; border-radius:13px; color:#cdbca9; text-decoration:none; }
.crew-bottom-nav a > span { height:20px; font-size:.95rem; }
.crew-bottom-nav a small { font-size:.56rem; font-weight:760; }
.crew-bottom-nav a.active { color:#fff8ee; background:rgba(255,255,255,.075); }
.crew-toast { position:relative; display:flex; align-items:center; gap:9px; margin:0 0 14px; padding:10px 12px; border:1px solid rgba(95,114,87,.17); border-radius:13px; color:var(--crew-success); background:#f5f5ec; box-shadow:0 8px 24px rgba(70,76,53,.06); font-size:.7rem; transition:.3s ease; }
.crew-toast i { width:7px; height:7px; border-radius:50%; background:var(--crew-success); }
.crew-toast.is-hiding { opacity:0; transform:translateY(-5px); }
.crew-confirm-backdrop[hidden] { display:none; }
.crew-confirm-backdrop { position:fixed; inset:0; z-index:100; padding:20px; display:grid; place-items:center; background:rgba(38,28,20,.48); backdrop-filter:blur(8px); }
.crew-confirm-card { width:min(100%,390px); padding:22px; border-radius:22px; background:#fffaf3; box-shadow:0 30px 80px rgba(46,31,19,.25); }
.crew-confirm-card h2 { margin:7px 0 6px; font-size:1.25rem; }
.crew-confirm-card p { margin:0 0 18px; color:var(--crew-muted); font-size:.78rem; line-height:1.5; }
.crew-confirm-card > div { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.crew-confirm-card .crew-primary-btn { min-height:44px; }
.crew-modal-open { overflow:hidden; }
.crew-auth-body { background:radial-gradient(circle at 5% 0%,rgba(226,205,178,.7),transparent 35%),linear-gradient(180deg,#f9f3eb,#efe3d4); }
.crew-auth-main { min-height:100vh; min-height:100dvh; padding:22px 16px max(22px,env(safe-area-inset-bottom)); display:grid; place-items:center; }
.crew-auth-wrap { width:min(100%,450px); }
.crew-auth-brand { width:180px; margin:0 auto 17px; padding:13px 17px; border-radius:20px; background:linear-gradient(145deg,#6b5140,#34271f); box-shadow:0 16px 38px rgba(60,41,28,.18); }
.crew-auth-brand img { width:100%; height:auto; display:block; }
.crew-auth-card { overflow:hidden; border:1px solid rgba(91,66,43,.1); border-radius:26px; background:rgba(255,252,247,.94); box-shadow:0 28px 80px rgba(91,66,43,.12); }
.crew-auth-copy { padding:24px 22px 18px; text-align:center; background:linear-gradient(180deg,rgba(236,220,200,.6),rgba(255,255,255,0)); }
.crew-auth-copy h1 { margin:7px 0 7px; font-size:2.25rem; line-height:1; letter-spacing:-.055em; }
.crew-auth-copy p { max-width:340px; margin:0 auto; color:var(--crew-muted); font-size:.78rem; line-height:1.55; }
.crew-auth-form { padding:4px 20px 22px; }
.crew-auth-form .crew-field input { min-height:52px; font-size:.9rem; }
.crew-check { padding:5px 2px 15px; display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.crew-check input { width:18px; height:18px; margin-top:1px; accent-color:var(--crew-accent-dark); }
.crew-check span { display:grid; gap:2px; }
.crew-check strong { font-size:.72rem; }
.crew-check small { color:var(--crew-muted); font-size:.62rem; }
.crew-text-link { display:block; margin-top:16px; color:var(--crew-accent-dark); text-align:center; text-decoration:none; font-size:.72rem; font-weight:730; }
.crew-auth-foot { margin:12px 20px 0; color:var(--crew-muted); text-align:center; font-size:.61rem; line-height:1.45; }
@media (max-width:420px) {
  .crew-main { padding-left:13px; padding-right:13px; }
  .crew-two-fields { grid-template-columns:1fr; gap:0; }
  .crew-hero,.crew-page-head { gap:10px; }
  .crew-hero h1,.crew-page-head h1 { font-size:2.1rem; }
  .crew-presence { padding:6px 8px; font-size:.6rem; }
  .crew-shift-row { grid-template-columns:42px minmax(0,1fr); }
  .crew-shift-meta { grid-column:2; grid-row:2; margin-top:-9px; text-align:left; display:flex; gap:7px; }
}
@media (min-width:700px) {
  .crew-main { padding:30px 26px 44px; }
  .crew-topbar { padding-left:26px; padding-right:26px; border-radius:0 0 18px 18px; }
  .crew-stat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .crew-stat-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crew-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crew-feature-card { padding:21px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
