:root {
  --paper: #fbf8f3;
  --paper-deep: #f3eadf;
  --card: #fffdf9;
  --ink: #28251f;
  --muted: #7f766c;
  --line: #eaded0;
  --copper: #d98561;
  --copper-dark: #aa603e;
  --olive: #666a3e;
  --olive-dark: #525630;
  --gold: #d5a055;
  --green: #6f8549;
  --red: #c84c49;
  --blue: #6e8790;
  --shadow: 0 10px 30px rgba(76, 58, 37, .08);
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e9e1d6; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0, rgba(217, 133, 97, .09), transparent 26%),
    #eee8df;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, legend { font-family: var(--font-ui) !important; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.app-frame {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 88% 2%, rgba(218, 174, 124, .12), transparent 25%),
    var(--paper);
  overflow: clip;
}

.app-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(77px + env(safe-area-inset-top));
  padding: calc(12px + env(safe-area-inset-top)) 17px 12px;
  border-bottom: 1px solid rgba(225, 210, 192, .7);
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: flex;
  flex: 0 0 auto;
  width: 180px;
  min-width: 0;
  height: 60px;
  align-items: center;
  justify-content: flex-start;
}
.mobile-brand .brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.header-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.header-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}
.header-icon svg { width: 21px; height: 21px; }
.header-icon > span {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--paper);
  border-radius: 12px;
  color: white;
  background: var(--red);
  font-size: 8px;
  font-weight: 800;
}
.role-trigger {
  display: grid;
  grid-template-columns: 34px auto 13px;
  align-items: center;
  gap: 7px;
  padding: 4px 4px 4px 5px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.role-trigger > span:nth-child(2) { min-width: 48px; }
.role-trigger strong, .role-trigger small { display: block; }
.role-trigger strong { font-size: 12px; line-height: 1.2; }
.role-trigger small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.1; }
.role-trigger > svg { width: 13px; height: 13px; color: #867b6d; transform: rotate(90deg); }
.mini-avatar, .role-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #e4b270, #b66b43);
  font-family: Georgia, serif;
  font-weight: 700;
}
.mini-avatar { width: 34px; height: 34px; font-size: 16px; }

.app-main {
  min-height: calc(100dvh - 78px);
  padding: 0 17px calc(104px + env(safe-area-inset-bottom));
}
.app-view { padding-top: 22px; animation: viewIn .24s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { margin: 0 0 4px; color: var(--copper-dark); font-size: 9px; font-weight: 800; letter-spacing: 1.35px; }
.welcome-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.welcome-row h1, .page-title h1 { margin: 0; font-size: clamp(27px, 8vw, 34px); line-height: 1.1; letter-spacing: -1.05px; }
.intro, .page-title > p:last-child, .page-title div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.live-status, .connection-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 16px;
  padding: 6px 9px;
  border-radius: 16px;
  color: #65763f;
  background: #e7ecd9;
  font-size: 9px;
  font-weight: 800;
}
.live-status i { width: 6px; height: 6px; border-radius: 50%; background: #78914e; box-shadow: 0 0 0 3px rgba(120,145,78,.13); }

.work-shortcuts { margin-top: 23px; }
.work-shortcuts-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 1px 11px; }
.work-shortcuts-heading h2 { margin: 0; font-size: 21px; line-height: 1.1; letter-spacing: -.45px; }
.work-shortcuts-heading > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.work-shortcuts-grid { display: grid; gap: 10px; }
.work-shortcut {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  color: white;
  text-align: left;
  box-shadow: 0 10px 22px rgba(61,49,36,.12);
  cursor: pointer;
}
.work-shortcut::after { content: ""; position: absolute; width: 118px; height: 118px; right: -45px; top: -58px; border-radius: 50%; background: rgba(255,255,255,.08); }
.work-shortcut.mep { border-color: #5d6338; background: linear-gradient(140deg, #74794a, #555a33); }
.work-shortcut.clean { border-color: #ad684b; background: linear-gradient(140deg, #ca7a58, #9f5d42); }
.work-shortcut.tasks { border-color: #496455; background: linear-gradient(140deg,#5f7867,#3d594a); }
.work-shortcut.labels { border-color: #884565; background: radial-gradient(circle at 92% 0,rgba(233,188,205,.22),transparent 45%),linear-gradient(140deg,#9f4b71,#663c52); }
.work-shortcut-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.13); }
.work-shortcut-icon svg { width: 24px; height: 24px; }
.work-shortcut-copy { position: relative; z-index: 1; min-width: 0; }
.work-shortcut-copy small, .work-shortcut-copy strong, .work-shortcut-copy em { display: block; }
.work-shortcut-copy small { color: rgba(255,255,255,.68); font-size: 7px; font-weight: 800; letter-spacing: 1.05px; }
.work-shortcut-copy strong { margin-top: 2px; font-size: 16px; line-height: 1.2; }
.work-shortcut-copy em { margin-top: 7px; overflow: hidden; color: rgba(255,255,255,.72); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.work-shortcut-copy b { color: #ffe0b9; }
.work-shortcut-arrow { position: relative; z-index: 1; width: 18px; height: 18px; color: rgba(255,255,255,.75); }

.ai-briefing {
  position: relative;
  margin-top: 21px;
  padding: 18px 17px 15px;
  overflow: hidden;
  border: 1px solid #5b6034;
  border-radius: 19px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(231, 173, 107, .23), transparent 38%),
    linear-gradient(145deg, #6d7040, #555a33);
  box-shadow: 0 12px 25px rgba(74, 77, 43, .18);
}
.ai-briefing::after { content: "✦"; position: absolute; right: 14px; top: 6px; color: rgba(255,255,255,.07); font-size: 92px; line-height: 1; }
.briefing-title { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.briefing-title > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #f0b56f; background: rgba(255,255,255,.1); }
.briefing-title svg { width: 21px; height: 21px; }
.briefing-title small, .briefing-title strong { display: block; }
.briefing-title small { color: #e6c7a7; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.briefing-title strong { margin-top: 2px; font-size: 16px; }
.ai-briefing > p { position: relative; z-index: 1; margin: 15px 0; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.55; }
.ai-briefing > button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0; border: 0; border-top: 1px solid rgba(255,255,255,.17); color: #f2c18f; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.ai-briefing > button svg { width: 17px; height: 17px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 28px 1px 13px; }
.section-heading.compact { margin-top: 27px; }
.section-heading h2 { margin: 0; font-size: 21px; line-height: 1.1; letter-spacing: -.45px; }
.section-heading > button { padding: 6px 0; border: 0; color: var(--copper-dark); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.section-heading > span { color: var(--muted); font-size: 10px; }

.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.focus-card {
  position: relative;
  min-height: 145px;
  padding: 15px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 4px 14px rgba(85,63,39,.04);
  cursor: pointer;
}
.focus-card:first-child { grid-column: span 2; min-height: 126px; }
.focus-card-header { display: flex; align-items: center; justify-content: space-between; }
.focus-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; }
.focus-icon svg { width: 19px; height: 19px; }
.focus-icon.copper { color: #a75f3d; background: #f5dfd3; }
.focus-icon.olive { color: #64753f; background: #e5ead8; }
.focus-icon.gold { color: #987029; background: #f5e8ce; }
.focus-icon.blue { color: #58747e; background: #dce8ea; }
.focus-card-header > svg,.focus-card-header > span:last-child>svg { width: 17px; height: 17px; color: #a79d91; }
.focus-card-header > span:last-child { display: flex; align-items: center; gap: 6px; }
.focus-card small, .focus-card strong, .focus-card p { display: block; }
.focus-card > small { margin-top: 13px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .65px; }
.focus-card > strong { margin-top: 2px; font-size: 23px; letter-spacing: -.5px; }
.focus-card > p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.focus-card:first-child > strong { font-size: 27px; }

.timeline-card { margin: 0; padding: 5px 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.6); list-style: none; }
.timeline-card li { position: relative; display: grid; grid-template-columns: 42px 11px 1fr; align-items: start; gap: 9px; min-height: 72px; padding: 15px 0; border-bottom: 1px solid #eee4d8; }
.timeline-card li:last-child { border-bottom: 0; }
.timeline-card li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: -11px; left: 57px; width: 1px; background: #e6dacd; }
.timeline-card time { color: #625a51; font-size: 11px; font-weight: 700; }
.timeline-dot { position: relative; z-index: 2; width: 9px; height: 9px; margin-top: 3px; border: 2px solid var(--card); border-radius: 50%; box-shadow: 0 0 0 1px currentColor; background: currentColor; }
.timeline-dot.copper { color: var(--copper); }.timeline-dot.olive { color: var(--olive); }.timeline-dot.gold { color: var(--gold); }.timeline-dot.muted { color: #aaa095; }
.timeline-card strong, .timeline-card small { display: block; }
.timeline-card strong { font-size: 12px; }
.timeline-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.page-title { margin-bottom: 22px; }
.page-title.with-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.connection-ok { margin-top: 7px; }

.task-summary { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 83px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.63); }
.task-summary > div { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid #eee3d6; }
.task-summary > div:last-child { border: 0; }
.task-summary strong { color: #4f3f31; font-size: 23px; line-height: 1; }
.task-summary span { margin-top: 7px; color: var(--muted); font-size: 9px; text-align: center; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 15px; padding: 4px; border-radius: 13px; background: #eee7de; }
.segmented button { min-height: 36px; border: 0; border-radius: 10px; color: #756c62; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.segmented button.is-active { color: var(--copper-dark); background: #fffdfa; box-shadow: 0 2px 7px rgba(71,53,36,.08); }
.task-list { display: grid; gap: 10px; }
.task-card { display: grid; grid-template-columns: 35px 1fr 16px; align-items: start; gap: 11px; padding: 15px 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.68); transition: opacity .2s ease, transform .2s ease; }
.task-card.is-done { opacity: .57; }
.task-card.is-done h2 { text-decoration: line-through; }
.task-check { display: grid; place-items: center; width: 33px; height: 33px; padding: 0; border: 1.5px solid #cdbba8; border-radius: 11px; background: #fffaf5; cursor: pointer; }
.task-check svg { width: 18px; height: 18px; color: transparent; stroke-width: 2.5; }
.task-card.is-done .task-check { border-color: var(--green); color: white; background: var(--green); }
.task-card.is-done .task-check svg { color: white; }
.task-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 8px; }
.priority { padding: 3px 6px; border-radius: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.priority.high { color: #ae3f3c; background: #f7dddd; }.priority.medium { color: #9b6429; background: #f6e7d0; }.priority.low { color: #5c7140; background: #e7ecd9; }
.task-card h2 { margin: 0; font-size: 13px; line-height: 1.32; }
.task-card p { margin: 4px 0 0; color: #6f665d; font-size: 10px; }
.task-card div > small { display: block; margin-top: 7px; color: #a06040; font-size: 9px; font-weight: 700; }
.task-chevron { align-self: center; width: 15px; height: 15px; color: #aaa095; }
.empty-state { margin: 40px 0; color: var(--muted); text-align: center; }

.occupancy-card { padding: 19px 16px 17px; border: 1px solid #5f623a; border-radius: 19px; color: white; background: linear-gradient(145deg, #717447, #575b34); box-shadow: 0 12px 25px rgba(74,77,43,.14); }
.occupancy-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.occupancy-top small { color: #e5caaa; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.occupancy-top strong { display: block; margin-top: 3px; font-size: 32px; line-height: 1; }
.occupancy-top strong em { font-size: 13px; font-style: normal; font-weight: 500; }
.occupancy-top > span { margin-top: 4px; color: #ddecbe; font-size: 12px; font-weight: 800; text-align: right; }
.occupancy-top > span small { display: block; margin-top: 3px; color: rgba(255,255,255,.65); font-size: 8px; letter-spacing: 0; }
.occupancy-bar { height: 8px; margin-top: 20px; overflow: hidden; border-radius: 7px; background: rgba(255,255,255,.15); }
.occupancy-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #dfaa63, #efc495); }
.occupancy-legend { display: flex; justify-content: space-between; gap: 5px; margin-top: 13px; color: rgba(255,255,255,.7); font-size: 9px; }
.occupancy-legend b { color: white; font-size: 11px; }
.restaurant-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 11px; }
.restaurant-stats article { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.64); }
.stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; }
.stat-icon svg { width: 18px; height: 18px; }.stat-icon.olive { color: #61733e; background: #e4ead7; }.stat-icon.copper { color: #a75f3d; background: #f5dfd3; }
.restaurant-stats small, .restaurant-stats strong, .restaurant-stats p { display: block; }
.restaurant-stats small { color: var(--muted); font-size: 8px; }
.restaurant-stats strong { margin-top: 1px; font-size: 17px; }
.restaurant-stats p { margin: 1px 0 0; color: #a05d3e; font-size: 8px; }
.reservation-list { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.64); overflow: hidden; }
.reservation-list article { display: grid; grid-template-columns: 38px 31px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 68px; padding: 10px 12px; border-bottom: 1px solid #eee4d8; }
.reservation-list article:last-child { border: 0; }
.reservation-list time { font-size: 10px; font-weight: 800; }
.party-size { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: #935638; background: #f3e0d4; font-size: 10px; font-weight: 800; }
.reservation-list strong, .reservation-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reservation-list strong { font-size: 11px; }.reservation-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.reservation-status { padding: 4px 6px; border-radius: 8px; font-size: 7px; font-weight: 800; white-space: nowrap; }
.reservation-status.confirmed { color: #5f7440; background: #e5ebd8; }.reservation-status.note { color: #a7403d; background: #f7dddd; }.reservation-status.pending { color: #936029; background: #f5e5ce; }
.primary-link { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin-top: 13px; padding: 0 15px; border: 1px solid #dfc7b4; border-radius: 14px; color: var(--copper-dark); background: #fff8f1; font-size: 11px; font-weight: 800; }
.primary-link svg { width: 17px; height: 17px; }

.communication-summary { display: grid; grid-template-columns: 38px 1fr; gap: 12px; margin-bottom: 15px; padding: 16px; border: 1px solid #e1c7b1; border-radius: 18px; background: linear-gradient(135deg, #fff7ef, #f6e8da); }
.communication-summary > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--copper); }
.communication-summary svg { width: 20px; height: 20px; }
.communication-summary small { color: var(--copper-dark); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.communication-summary strong { display: block; margin-top: 2px; font-size: 13px; }
.communication-summary p { margin: 4px 0 0; color: #6f655b; font-size: 10px; line-height: 1.45; }
.channel-list { display: grid; gap: 10px; }
.channel-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 14px; align-items: center; gap: 11px; min-height: 92px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.68); }
.channel-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; font-size: 18px; font-weight: 900; }
.channel-logo svg { width: 20px; height: 20px; }.channel-logo.sleak { background: linear-gradient(135deg, #815de1, #4b7ee0); }.channel-logo.bonnie { background: linear-gradient(135deg, #d58b59, #b85741); }.channel-logo.whatsapp { background: #55a86b; }.channel-logo.email { background: #6d7042; }
.channel-card > div > div { display: flex; align-items: center; gap: 7px; }
.channel-card strong { font-size: 13px; }
.channel-card em { padding: 2px 5px; border-radius: 7px; color: #5f7540; background: #e5ebd8; font-size: 7px; font-style: normal; font-weight: 800; }
.channel-card em.setup { color: #94612a; background: #f6e6cd; }
.channel-card p { margin: 5px 0 0; color: #746b62; font-size: 9px; line-height: 1.35; }
.channel-card small { display: block; margin-top: 5px; color: var(--copper-dark); font-size: 8px; font-weight: 700; }
.channel-card > b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; color: white; background: var(--copper); font-size: 9px; }
.channel-card > svg { width: 14px; height: 14px; color: #aaa095; }

.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more-grid > a { display: grid; grid-template-columns: 37px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.66); }
.more-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; }
.more-icon svg { width: 19px; height: 19px; }.more-icon.copper { color: #a75f3d; background: #f5dfd3; }.more-icon.pink { color: #944767; background: #f4dfe8; }.more-icon.blue { color: #58747e; background: #dce8ea; }.more-icon.olive { color: #61733e; background: #e4ead7; }.more-icon.gold { color: #9b702a; background: #f5e8ce; }.more-icon.green { color: #52734b; background: #deeadc; }.more-icon.sand { color: #90684a; background: #eee2d4; }.more-icon.brown { color: #6b5948; background: #e6ddd4; }.more-icon.grey { color: #6e6a64; background: #e8e5e1; }
.more-grid strong { align-self: end; font-size: 11px; }.more-grid small { align-self: start; color: var(--muted); font-size: 8px; }
.more-grid > a.labels-featured { grid-column: 1 / -1; min-height: 84px; border-color: rgba(167,77,120,.28); background: radial-gradient(circle at 94% 0,rgba(167,77,120,.12),transparent 45%),linear-gradient(135deg,#fff9fb,#f7ebe6); }
.more-grid > a.labels-featured strong em { margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: #a74d78; color: #fff; font-size: 7px; font-style: normal; letter-spacing: .5px; }
.app-settings { margin-top: 26px; }
.app-settings h2 { margin: 0 0 10px 2px; font-size: 18px; }
.app-settings > button, .app-settings > a { display: grid; grid-template-columns: 38px 1fr 16px; align-items: center; gap: 11px; width: 100%; min-height: 65px; padding: 10px 12px; border: 1px solid var(--line); border-bottom: 0; background: rgba(255,255,255,.66); text-align: left; cursor: pointer; }
.app-settings > :nth-child(2) { border-radius: 16px 16px 0 0; }.app-settings > :last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.app-settings > * > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--copper-dark); background: #f4e2d7; }
.app-settings > * > span svg { width: 19px; height: 19px; }
.app-settings strong, .app-settings small { display: block; }.app-settings strong { font-size: 11px; }.app-settings small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.app-settings > * > svg { width: 15px; height: 15px; color: #aaa095; }
.app-settings > button.is-installed { cursor: default; opacity: .72; }
.app-settings > button.is-installed > span { color: #5c7040; background: #e5ead8; }
.prototype-note { margin: 20px 12px 0; color: #948a80; font-size: 9px; line-height: 1.5; text-align: center; }

.work-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.work-title-row { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.work-title-row h1 { margin: 0; font-size: clamp(27px, 8vw, 34px); line-height: 1.1; letter-spacing: -1px; }
.work-title-row p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.back-button { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; margin-top: 15px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--copper-dark); background: #fffaf5; cursor: pointer; }
.back-button svg { width: 18px; height: 18px; transform: rotate(180deg); }
.work-page-header .connection-ok { margin-top: 7px; }

.work-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 18px 17px 15px; overflow: hidden; border-radius: 19px; color: white; box-shadow: 0 12px 25px rgba(74,77,43,.14); }
.work-hero::after { content: "✦"; position: absolute; right: 21%; top: -22px; color: rgba(255,255,255,.07); font-size: 112px; line-height: 1; }
.mep-hero { border: 1px solid #5e6338; background: linear-gradient(145deg, #727649, #555a33); }
.clean-hero { border: 1px solid #b87050; background: linear-gradient(145deg, #ca7a58, #9f5d42); }
.labels-app-hero { border: 1px solid #7b445f; background: radial-gradient(circle at 88% 0,rgba(231,187,205,.22),transparent 42%),linear-gradient(145deg,#9d4a70,#563c49 74%); }
.labels-app-hero .work-progress-track i { background: linear-gradient(90deg,#e2b466,#f0c1d2); }
.work-hero > div { position: relative; z-index: 1; }
.work-hero p { margin: 0 0 4px; color: #edcfad; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; }
.work-hero > div:first-child > strong { display: block; font-size: 21px; line-height: 1.2; }
.work-hero > div:first-child > small { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-size: 9px; }
.work-progress-copy { text-align: right; }
.work-progress-copy strong, .work-progress-copy small { display: block; }
.work-progress-copy strong { font-size: 24px; line-height: 1; }
.work-progress-copy small { margin-top: 4px; color: rgba(255,255,255,.7); font-size: 8px; }
.work-progress-track { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.16); }
.work-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e1a963, #f2c99c); transition: width .3s ease; }
.clean-hero .work-progress-track i { background: linear-gradient(90deg, #f3c795, #fff1d9); }

.work-page-grid { display: grid; gap: 14px; }
.work-main-panel, .work-side-panel > * { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.64); }
.work-main-panel { padding: 12px; }
.work-side-panel { display: grid; align-content: start; gap: 11px; }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.work-toolbar > span { flex: 0 0 auto; color: var(--copper-dark); font-size: 9px; font-weight: 800; }
.work-toolbar h2 { margin: 0; font-size: 17px; }
.work-segmented { width: min(100%, 390px); margin: 0; }
.work-segmented button { min-height: 34px; }
.work-list { display: grid; gap: 9px; }
.work-item { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 116px; padding: 13px 12px; border: 1px solid #e8dbcc; border-radius: 15px; background: #fffdf9; transition: opacity .2s ease, background .2s ease; }
.work-item.is-done { opacity: .58; background: #f1eee8; }
.work-item.is-done h2 { text-decoration: line-through; }
.work-check { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 1.5px solid #cbb8a5; border-radius: 12px; color: transparent; background: #fffaf5; cursor: pointer; }
.work-check svg { width: 19px; height: 19px; stroke-width: 2.6; }
.work-item.is-done .work-check { border-color: var(--green); color: white; background: var(--green); }
.work-item-copy { min-width: 0; }
.work-item-copy > div { display: flex; align-items: center; gap: 7px; }
.work-item-copy > div > small { color: #93897f; font-size: 8px; }
.work-tag { padding: 3px 6px; border-radius: 8px; font-size: 7px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
.work-tag.automatic { color: #985730; background: #f5e0d1; }
.work-tag.standard { color: #5e713f; background: #e5ead8; }
.work-tag.daily { color: #58717a; background: #dfeaed; }
.work-tag.weekly { color: #996326; background: #f5e6ce; }
.work-item h2 { margin: 6px 0 0; font-size: 13px; line-height: 1.3; }
.work-item p { margin: 3px 0 0; color: #6f675e; font-size: 9px; line-height: 1.4; }
.work-item em { display: block; margin-top: 5px; color: var(--copper-dark); font-size: 8px; font-style: normal; font-weight: 700; }
.work-quantity { min-width: 48px; padding-left: 9px; border-left: 1px solid #ede2d6; text-align: center; }
.work-quantity strong, .work-quantity small { display: block; }
.work-quantity strong { font-size: 19px; line-height: 1; }
.work-quantity small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.work-owner { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: white; background: #667047; font-size: 11px; font-weight: 800; }
.work-owner.service { background: #c18449; }
.work-owner.manager { background: #687b83; }

.sync-card { display: grid; grid-template-columns: 39px 1fr; gap: 11px; padding: 15px; background: linear-gradient(135deg, #fff6ed, #f4e6d8) !important; }
.sync-card > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: white; background: var(--copper); }
.sync-card > span svg { width: 20px; height: 20px; }
.sync-card small { color: var(--copper-dark); font-size: 7px; font-weight: 800; letter-spacing: .9px; }
.sync-card strong { display: block; margin-top: 2px; font-size: 12px; }
.sync-card p { margin: 5px 0 0; color: #71675e; font-size: 9px; line-height: 1.45; }
.quick-template-card, .week-card, .add-work-form { padding: 15px; }
.side-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.side-heading h2 { margin: 0; font-size: 15px; }
.side-heading > strong { color: var(--green); font-size: 20px; }
.template-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.template-buttons button { min-height: 31px; padding: 0 9px; border: 1px solid #ddc5b0; border-radius: 10px; color: var(--copper-dark); background: #fff9f3; font-size: 9px; font-weight: 700; cursor: pointer; }
.add-work-form { display: grid; gap: 9px; }
.add-work-form label { font-size: 11px; font-weight: 800; }
.add-work-form > div { display: grid; grid-template-columns: 1fr 38px; gap: 7px; }
.add-work-form input, .add-work-form select { width: 100%; min-width: 0; height: 40px; border: 1px solid #ddcdbd; border-radius: 11px; padding: 0 11px; color: var(--ink); background: #fffdf9; outline: none; font-size: 10px; }
.add-work-form input:focus, .add-work-form select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217,133,97,.1); }
.add-work-form button { min-height: 38px; border: 0; border-radius: 11px; color: white; background: var(--copper); font-weight: 800; cursor: pointer; }
.add-work-form > div > button { font-size: 19px; }

.clean-day-picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 82px); grid-template-columns: none; gap: 7px; margin-bottom: 12px; padding: 1px 0 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 18px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.clean-day-picker button { position: relative; display: flex; min-width: 74px; min-height: 88px; flex-direction: column; align-items: center; justify-content: center; padding: 7px 4px 23px; border: 1px solid var(--line); border-radius: 14px; color: #81776d; background: rgba(255,255,255,.6); cursor: pointer; scroll-snap-align: center; }
.clean-day-picker button span { font-size: 9px; font-weight: 800; }
.clean-day-picker button strong { margin-top: 3px; font-size: 19px; }
.clean-day-picker button small { min-height: 14px; margin-top: 2px; color: #8b8177; font-size: 8px; font-weight: 750; }
.clean-day-picker button i { position: absolute; bottom: 6px; padding: 2px 6px; border-radius: 7px; color: white; background: var(--copper); font-size: 8px; line-height: 1.3; font-style: normal; font-weight: 800; }
.clean-day-picker button.is-active { border-color: var(--copper); color: var(--copper-dark); background: #fff5ed; box-shadow: 0 3px 11px rgba(138,85,52,.08); }
.week-progress { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: #ede5db; }
.week-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .22s ease; }
.clean-week-days { display: grid; gap: 5px; margin-top: 12px; }
.clean-week-days > p { margin: 5px 0; color: var(--muted); font-size: 9px; }
.clean-week-days button { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 1px solid #e7dbce; border-radius: 10px; color: #6e655c; background: #fffdf9; text-align: left; cursor: pointer; }
.clean-week-days button.is-active { border-color: #d99a7d; color: var(--copper-dark); background: #fff4ec; }
.clean-week-days button span,.clean-week-days button b,.clean-week-days button small { display: block; }
.clean-week-days button b { color: var(--ink); font-size: 11px; text-transform: capitalize; }
.clean-week-days button small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.clean-week-days button em { color: var(--green); font-size: 11px; font-style: normal; font-weight: 850; }
.week-card ul { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.week-card li { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #766d64; font-size: 9px; }
.week-card li b { color: var(--ink); }
.clean-add-form > div { grid-template-columns: minmax(0, 1fr) auto; }
.clean-add-form > div > button { padding: 0 11px; font-size: 9px; }
.safety-note { display: grid; grid-template-columns: 27px 1fr; gap: 9px; padding: 13px; color: white; border-color: #60643a !important; background: #64683d !important; }
.safety-note > svg { width: 22px; height: 22px; color: #e9b171; }
.safety-note strong { font-size: 11px; }
.safety-note p { margin: 4px 0 0; color: rgba(255,255,255,.75); font-size: 8px; line-height: 1.45; }
.clean-loading-copy { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.clean-loading-list { display: grid; gap: 9px; }
.clean-skeleton-card { grid-template-columns: 48px minmax(0,1fr) 90px; min-height: 130px; pointer-events: none; }
.clean-skeleton-check { width: 48px; height: 48px; border-radius: 12px; }
.clean-skeleton-copy { display: grid; align-content: center; gap: 9px; }
.clean-skeleton-copy i { display: block; width: 72%; height: 12px; border-radius: 8px; }
.clean-skeleton-copy i:first-child { width: 28%; height: 9px; }
.clean-skeleton-copy i:last-child { width: 54%; height: 9px; }
.clean-skeleton-action { width: 90px; height: 46px; border-radius: 11px; }
.clean-skeleton-check,.clean-skeleton-copy i,.clean-skeleton-action,.clean-week-loading i { background: linear-gradient(100deg,#eee5da 25%,#faf6f0 42%,#eee5da 60%); background-size: 220% 100%; animation: clean-skeleton-shimmer 1.2s ease-in-out infinite; }
.clean-week-loading { display: grid; gap: 5px; }
.clean-week-loading i { display: block; height: 48px; border-radius: 10px; }
.clean-day-loading { display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 9px; }
.clean-day-loading > i { width: 18px; height: 18px; border: 2px solid #ded4c8; border-top-color: var(--green); border-radius: 50%; animation: clean-day-spin .7s linear infinite; }
.operation-status-message.is-error { display: grid; justify-items: center; gap: 6px; color: #984239; }
.operation-status-message.is-error strong,.operation-status-message.is-error span { display: block; }
.operation-status-message.is-error button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; color: white; background: var(--green); font-size: 10px; font-weight: 800; }
@keyframes clean-day-spin { to { transform: rotate(360deg); } }
@keyframes clean-skeleton-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Etiketten in de werkapp */
.label-beta-status { border-color: #dfc3cf; color: #8d4564; background: #fff3f7; }
.label-app-toolbar > div { display: grid; }
.label-app-toolbar > div .eyebrow { margin-bottom: 3px; }
.label-app-toolbar > button { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #d9c7b5; border-radius: 10px; background: #fff9f3; color: #7d5a43; font-size: 10px; font-weight: 800; cursor: pointer; }
.label-app-toolbar > button svg { width: 16px; height: 16px; }
.app-label-list { display: grid; gap: 9px; }
.app-label-row { display: grid; width: 100%; min-height: 96px; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e7d9cb; border-radius: 15px; background: #fffdf9; text-align: left; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.app-label-row:hover { border-color: #cdaebc; background: #fff8fb; }
.app-label-row.is-selected { border-color: #a85a7b; background: linear-gradient(135deg,#fff8fb,#f4ebe4); box-shadow: inset 3px 0 #a74d78; transform: translateX(2px); }
.app-label-row > span:first-child { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#c28f4c,#a94f75); color: #fff; font: 600 18px/1 Georgia,serif; }
.app-label-copy { min-width: 0; }
.app-label-copy > div { display: flex; align-items: center; gap: 7px; }
.app-label-copy small { color: #8b7e72; font-size: 10px; }
.app-label-copy strong { display: block; margin-top: 5px; color: #3f3731; font-size: 14px; }
.app-label-copy p { margin: 4px 0 0; color: #756b61; font-size: 11px; line-height: 1.4; }
.app-label-row > b { display: inline-flex; min-height: 26px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 9px; white-space: nowrap; }
.app-label-row > b.ready { color: #5f7441; background: #e5ebda; }
.app-label-row > b.review { color: #974363; background: #f4dde6; }
.app-label-row > b.done { color: #677064; background: #e7e9e4; }
.app-label-preview-card { padding: 16px; }
.app-label-preview-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-label-preview-card > header small,.app-label-preview-card > header strong { display: block; }
.app-label-preview-card > header small { color: #994767; font-size: 9px; font-weight: 850; letter-spacing: .9px; }
.app-label-preview-card > header strong { margin-top: 4px; font: 500 20px/1.15 Georgia,serif; }
.app-label-preview-card > header > span { padding: 5px 8px; border-radius: 999px; background: #e5ebd9; color: #607442; font-size: 9px; font-weight: 850; }
.app-label-preview-card > header > span.review { background: #f4dce6; color: #944262; }
.app-label-preview-card > header > span.done { background: #e5e7e2; color: #657064; }
.app-mini-label { position: relative; display: grid; min-height: 236px; align-content: start; margin-top: 14px; padding: 18px; border: 1px solid #cfc6b8; background: #fffef8; box-shadow: 0 12px 27px rgba(61,52,39,.13); }
.app-mini-label::after { position: absolute; inset: 4px; border: 1px dashed rgba(48,57,48,.16); pointer-events: none; content: ""; }
.app-mini-label > small { padding-bottom: 8px; border-bottom: 2px solid #35453a; color: #5d695d; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.app-mini-label > strong { margin-top: 16px; color: #2d392f; font: 700 26px/1.08 Georgia,serif; }
.app-mini-label > div { display: grid; gap: 4px; margin-top: 17px; padding: 10px; border: 2px solid #7b8958; background: #eff4e7; }
.app-mini-label > div span { color: #66705e; font-size: 8px; font-weight: 900; letter-spacing: .7px; }
.app-mini-label > div b { font-size: 12px; }
.app-mini-label > p { margin: 13px 0 0; padding: 9px 10px; border-left: 3px solid #a74d78; background: #f6e4ec; color: #83405d; font-size: 10px; font-weight: 850; }
.app-mini-label > p b { color: #33282d; }
.app-mini-label > footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 14px; color: #687166; font-size: 9px; font-weight: 800; }
.app-mini-label > footer strong { color: #2d392f; font-size: 14px; }
.label-studio-link { display: grid; min-height: 66px; grid-template-columns: 38px minmax(0,1fr) 16px; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border: 1px solid #dec6d0; border-radius: 14px; background: #fff6fa; }
.label-studio-link > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #a74d78; color: #fff; }
.label-studio-link > span svg { width: 19px; height: 19px; }
.label-studio-link strong,.label-studio-link small { display: block; }
.label-studio-link strong { color: #66354b; font-size: 11px; }
.label-studio-link small { margin-top: 3px; color: #846d78; font-size: 9px; line-height: 1.35; }
.label-studio-link > svg { width: 15px; height: 15px; color: #a74d78; }
.label-app-note { border-color: #65445a !important; background: linear-gradient(145deg,#71455b,#3d3c38) !important; }
.label-app-note p { font-size: 9.5px; }

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  min-height: calc(72px + env(safe-area-inset-bottom));
  margin: auto;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(224, 209, 191, .88);
  background: rgba(255,253,249,.94);
  box-shadow: 0 -8px 25px rgba(75,58,39,.06);
  backdrop-filter: blur(20px);
}
.bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 4px 1px; border: 0; border-radius: 12px; color: #8d8378; background: transparent; cursor: pointer; }
.bottom-nav .beta-nav { display: none; }
.tablet-work-nav { display: none !important; }
.bottom-nav svg { width: 21px; height: 21px; stroke-width: 1.8; }
.bottom-nav span:last-child { font-size: 8px; font-weight: 700; }
.bottom-nav button.is-active { color: var(--copper-dark); }
.bottom-nav button.is-active::before { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 5px 5px; background: var(--copper); }
.nav-badge, .nav-dot { position: absolute; z-index: 2; top: 0; left: calc(50% + 6px); display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #fffdf9; border-radius: 9px; color: white; background: var(--red); font-size: 7px !important; }
.nav-dot { top: 4px; min-width: 9px; width: 9px; height: 9px; padding: 0; background: var(--copper); }
.nav-badge.work-nav-badge.mep { background: var(--olive); }
.nav-badge.work-nav-badge.clean { background: var(--copper-dark); }
.nav-badge.work-nav-badge.labels { left: calc(50% + 2px); min-width: 31px; padding: 0 5px; background: #a74d78; font-size: 6px !important; letter-spacing: .25px; }
#appMoreMenu.is-active { color: #8a3f60; background: #f7e6ee; }
body.worker-session-active #appMoreMenu { display:none!important; }
.welcome-row .live-status { color:#8a3f60; background:#f7e6ee; }
.welcome-row .live-status i { background:#a74d78; box-shadow:0 0 0 3px rgba(167,77,120,.13); }

@media (min-width: 480px) {
  .work-shortcuts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sheet-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(35,30,25,.43); backdrop-filter: blur(2px); animation: fadeIn .18s ease; }
.bottom-sheet { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; width: min(100%, 520px); max-height: 88dvh; margin: auto; padding: 8px 17px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fffdf9; box-shadow: 0 -20px 50px rgba(36,29,22,.2); animation: sheetIn .28s cubic-bezier(.2,.9,.3,1); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet-handle { width: 40px; height: 4px; margin: 0 auto 17px; border-radius: 3px; background: #d9cec2; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sheet-header h2 { margin: 0; font-size: 23px; }
.sheet-header > button { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 0; border-radius: 50%; color: #756c63; background: #f0e9e1; cursor: pointer; }
.sheet-header > button svg { width: 18px; height: 18px; }
.bottom-sheet > p { margin: 8px 0 17px; color: var(--muted); font-size: 11px; }
.install-sheet { overflow-y: auto; }
.desktop-install-action { margin: 0 0 16px; }
.desktop-install-action > a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 11px; min-height: 62px; padding: 9px 12px; border-radius: 15px; color: white; background: linear-gradient(135deg, #697047, #4f5634); box-shadow: 0 10px 24px rgba(70,76,42,.18); text-decoration: none; }
.desktop-install-action > a > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #f5c285; background: rgba(255,255,255,.12); }
.desktop-install-action svg { width: 19px; height: 19px; }
.desktop-install-action div strong, .desktop-install-action div small { display: block; }
.desktop-install-action div strong { font-size: 12px; }
.desktop-install-action div small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 8px; }
.desktop-install-action > p { margin: 7px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.install-app-preview { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 13px; margin: 4px 0 16px; padding: 12px; border: 1px solid #e4d5c5; border-radius: 17px; background: linear-gradient(135deg, #fffaf4, #f4eadf); }
.install-app-preview img { display: block; width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 18px rgba(73,72,42,.18); }
.install-app-preview small, .install-app-preview strong, .install-app-preview span { display: block; }
.install-app-preview small { color: var(--copper-dark); font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.install-app-preview strong { margin-top: 2px; font-size: 16px; }
.install-app-preview span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.install-steps { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 61px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.install-steps li > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: white; background: var(--olive); font-size: 11px; font-weight: 850; }
.install-steps strong { display: block; font-size: 11px; }
.install-steps p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.install-link-label { display: block; margin: 0 0 6px 2px; font-size: 9px; font-weight: 800; }
.install-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.install-link-row input { width: 100%; min-width: 0; height: 43px; padding: 0 11px; border: 1px solid #ddcdbd; border-radius: 11px; color: #625a51; background: #fffdf9; outline: none; font-size: 9px; }
.install-link-row input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217,133,97,.1); }
.install-link-row button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 0 12px; border: 0; border-radius: 11px; color: white; background: var(--copper-dark); font-size: 9px; font-weight: 800; cursor: pointer; }
.install-link-row button svg { width: 16px; height: 16px; }
.install-note { margin: 11px 1px 14px !important; padding: 10px 11px; border-radius: 11px; color: #76694f !important; background: #f4ead3; font-size: 8px !important; line-height: 1.45; }
.install-done-button { width: 100%; min-height: 44px; border: 0; border-radius: 12px; color: white; background: var(--olive); font-size: 11px; font-weight: 800; cursor: pointer; }
.role-options { display: grid; gap: 8px; }
.role-options button { display: grid; grid-template-columns: 45px 1fr 25px; align-items: center; gap: 11px; min-height: 67px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; }
.role-options button.is-selected { border-color: rgba(217,133,97,.85); background: #fff7f1; box-shadow: 0 0 0 2px rgba(217,133,97,.08); }
.role-avatar { width: 45px; height: 45px; font-size: 17px; }.role-avatar.manager { background: linear-gradient(135deg, #7e8657, #535a35); }.role-avatar.kitchen { background: linear-gradient(135deg, #7b8790, #53636b); }.role-avatar.service { background: linear-gradient(135deg, #d5a055, #ae7338); }
.role-options strong, .role-options small { display: block; }.role-options strong { font-size: 13px; }.role-options small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.role-options i { display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--copper); }
.role-options i svg { width: 14px; height: 14px; stroke-width: 2.5; }.role-options button.is-selected i { display: grid; }

.toast { position: fixed; z-index: 120; right: 17px; bottom: calc(87px + env(safe-area-inset-bottom)); left: 17px; max-width: 430px; margin: auto; padding: 12px 15px; border-radius: 13px; color: white; background: #343129; box-shadow: 0 12px 30px rgba(35,29,22,.25); font-size: 11px; font-weight: 650; text-align: center; animation: toastIn .22s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

button:focus-visible, a:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

@media (min-width: 600px) and (max-width: 699px) {
  .app-frame { max-width: 520px; box-shadow: 0 0 50px rgba(64,49,33,.12); }
  .bottom-nav { max-width: 520px; }
  .app-main { padding-right: 22px; padding-left: 22px; }
  .app-header { padding-right: 22px; padding-left: 22px; }
}

@media (min-width: 700px) {
  body { font-size: 16px; }
  .app-frame { max-width: none; min-height: 100dvh; box-shadow: none; }
  .app-header { min-height: calc(141px + env(safe-area-inset-top)); padding-right: 28px; padding-left: 28px; }
  .mobile-brand {
    width: min(44vw, 360px);
    height: 120px;
  }
  .header-tools { gap: 10px; }
  .header-icon { width: 46px; height: 46px; }
  .role-trigger { grid-template-columns: 40px auto 15px; gap: 9px; padding: 4px 6px; }
  .mini-avatar { width: 40px; height: 40px; font-size: 18px; }
  .role-trigger strong { font-size: 13px; }
  .role-trigger small { font-size: 10px; }

  .app-main { min-height: calc(100dvh - 141px); margin-left: 92px; padding: 29px 28px 45px; }
  .app-view { width: min(100%, 1180px); margin: 0 auto; padding-top: 0; }
  .welcome-row h1, .page-title h1 { font-size: 36px; }
  .intro, .page-title > p:last-child, .page-title div > p:last-child { font-size: 14px; }
  .eyebrow { font-size: 10px; }
  .page-title { margin-bottom: 25px; }

  .bottom-nav {
    top: calc(141px + env(safe-area-inset-top));
    right: auto;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 64px);
    align-content: start;
    width: 92px;
    max-width: none;
    min-height: 0;
    padding: 18px 10px max(18px, env(safe-area-inset-bottom));
    border-top: 0;
    border-right: 1px solid rgba(224,209,191,.88);
    background: rgba(255,253,249,.96);
    box-shadow: 8px 0 25px rgba(75,58,39,.045);
  }
  .tablet-work-nav { display: flex !important; }
  .bottom-nav .beta-nav { display: flex; }
  .bottom-nav button { gap: 7px; border-radius: 14px; }
  .bottom-nav svg { width: 24px; height: 24px; }
  .bottom-nav span:last-child { font-size: 9px; }
  .bottom-nav button.is-active { background: #f9eee4; }
  .bottom-nav button.is-active::before { top: 50%; left: -10px; width: 4px; height: 30px; border-radius: 0 5px 5px 0; transform: translateY(-50%); }
  .nav-badge { top: 7px; left: calc(50% + 7px); }
  .nav-dot { top: 10px; left: calc(50% + 8px); }

  .work-shortcuts { margin-top: 27px; }
  .work-shortcuts-grid { gap: 14px; }
  .work-shortcut { min-height: 108px; grid-template-columns: 50px minmax(0, 1fr) 20px; gap: 15px; padding: 17px; border-radius: 20px; }
  .work-shortcut-icon { width: 50px; height: 50px; }
  .work-shortcut-icon svg { width: 27px; height: 27px; }
  .work-shortcut-copy small { font-size: 8px; }
  .work-shortcut-copy strong { font-size: 19px; }
  .work-shortcut-copy em { font-size: 10px; }

  .app-label-row { min-height: 106px; padding: 14px; }
  .app-label-copy strong { font-size: 15px; }
  .app-label-copy p { font-size: 11px; }
  .app-label-preview-card { padding: 18px; }

  .today-tablet-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr); align-items: start; gap: 22px; margin-top: 24px; }
  .today-primary .ai-briefing { margin-top: 0; }
  .today-secondary .section-heading { margin-top: 0; }
  .today-secondary .timeline-card { min-height: 386px; }
  .ai-briefing { min-height: 214px; padding: 21px 20px 17px; }
  .ai-briefing > p { font-size: 14px; }
  .briefing-title strong { font-size: 18px; }
  .section-heading { margin-top: 25px; }
  .section-heading h2 { font-size: 23px; }
  .focus-card { min-height: 151px; padding: 16px; }
  .focus-card:first-child { min-height: 132px; }
  .timeline-card { padding-right: 17px; padding-left: 17px; }
  .timeline-card li { min-height: 83px; grid-template-columns: 45px 11px 1fr; padding: 18px 0; }
  .timeline-card li:not(:last-child)::after { left: 60px; }
  .timeline-card strong { font-size: 13px; }
  .timeline-card small { font-size: 11px; line-height: 1.4; }

  #taken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px 20px; }
  #taken > .page-title, #taken > .task-list, #taken > .empty-state { grid-column: 1 / -1; }
  #taken > .page-title { margin-bottom: 3px; }
  .task-summary { min-height: 84px; margin-bottom: 0; }
  .segmented { min-height: 84px; margin-bottom: 0; padding: 7px; }
  .segmented button { min-height: 46px; font-size: 11px; }
  .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .task-card { min-height: 140px; padding: 17px 14px; }
  .task-card h2 { font-size: 14px; }
  .task-card p { font-size: 11px; }
  .task-card div > small { font-size: 10px; }

  .restaurant-tablet-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(335px, 1.1fr); align-items: start; gap: 22px; }
  .restaurant-reservations .section-heading { margin-top: 0; }
  .occupancy-card { min-height: 188px; padding: 22px 20px 19px; }
  .occupancy-top strong { margin-top: 7px; font-size: 38px; }
  .occupancy-bar { margin-top: 27px; }
  .restaurant-stats article { min-height: 83px; }
  .reservation-list article { min-height: 78px; padding: 12px 14px; }
  .reservation-list strong { font-size: 12px; }
  .reservation-list small { font-size: 9px; }
  .primary-link { min-height: 56px; font-size: 12px; }

  .communication-summary { grid-template-columns: 46px 1fr; min-height: 104px; padding: 18px; }
  .communication-summary > span { width: 44px; height: 44px; }
  .communication-summary strong { font-size: 15px; }
  .communication-summary p { font-size: 11px; }
  .channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .channel-card { min-height: 112px; padding: 16px 14px; }
  .channel-card strong { font-size: 14px; }
  .channel-card p { font-size: 10px; }
  .channel-card small { font-size: 9px; }

  .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .more-grid > a { min-height: 92px; padding: 15px 12px; }
  .more-grid strong { font-size: 12px; }
  .more-grid small { font-size: 9px; }
  .app-settings { margin-top: 29px; }
  .app-settings h2 { font-size: 20px; }
  .app-settings > button, .app-settings > a { min-height: 72px; }
  .app-settings strong { font-size: 12px; }
  .app-settings small { font-size: 9px; }

  .work-page-header { margin-bottom: 24px; }
  .work-title-row { gap: 14px; }
  .work-title-row h1 { font-size: 36px; }
  .work-title-row p:last-child { font-size: 13px; }
  .back-button { width: 42px; height: 42px; margin-top: 18px; }
  .work-hero { min-height: 126px; margin-bottom: 17px; padding: 22px 21px 18px; }
  .work-hero > div:first-child > strong { font-size: 26px; }
  .work-hero > div:first-child > small { font-size: 10px; }
  .work-progress-copy strong { font-size: 28px; }
  .work-page-grid { grid-template-columns: minmax(0, 1fr) minmax(235px, .62fr); align-items: start; gap: 18px; }
  .work-main-panel { padding: 14px; }
  .work-side-panel { position: static; }
  .work-toolbar { min-height: 47px; }
  .work-toolbar h2 { font-size: 19px; }
  .work-toolbar > span { font-size: 10px; }
  .work-segmented { min-height: 47px; padding: 4px; }
  .work-segmented button { min-height: 39px; font-size: 9px; }
  .work-item { grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 126px; padding: 14px; }
  .work-check { width: 42px; height: 42px; }
  .work-item h2 { font-size: 14px; }
  .work-item p { font-size: 10px; }
  .work-item em { font-size: 9px; }
  .work-item-copy > div > small { font-size: 9px; }
  .work-tag { font-size: 8px; }
  .work-quantity { min-width: 54px; }
  .work-quantity strong { font-size: 21px; }
  .sync-card, .quick-template-card, .week-card, .add-work-form { padding: 16px; }
  .sync-card strong { font-size: 13px; }
  .sync-card p { font-size: 10px; }
  .side-heading h2 { font-size: 16px; }
  .template-buttons button { min-height: 34px; font-size: 9px; }
  .add-work-form label { font-size: 12px; }
  .add-work-form input, .add-work-form select { height: 43px; font-size: 10px; }
  .clean-day-picker { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(7, minmax(62px, 1fr)); gap: 8px; margin-bottom: 15px; overflow: visible; }
  .clean-day-picker button { min-width: 62px; min-height: 88px; }
  .clean-day-picker button span { font-size: 9px; }
  .clean-day-picker button strong { font-size: 19px; }
  .clean-day-picker button small { font-size: 8px; }
  .week-card li { font-size: 10px; }
  .safety-note p { font-size: 9px; }

  .bottom-sheet { top: 50%; bottom: auto; width: min(570px, calc(100% - 60px)); max-height: 80dvh; padding: 25px 24px; border-radius: 25px; transform: translateY(-50%); animation: tabletModalIn .25s ease both; }
  .install-sheet { width: min(640px, calc(100% - 60px)); }
  .sheet-handle { display: none; }
  .sheet-header h2 { font-size: 26px; }
  .bottom-sheet > p { margin-bottom: 20px; font-size: 12px; }
  .desktop-install-action > a { min-height: 68px; grid-template-columns: 46px minmax(0, 1fr) 22px; padding: 10px 14px; }
  .desktop-install-action > a > span { width: 46px; height: 46px; }
  .desktop-install-action div strong { font-size: 14px; }
  .desktop-install-action div small, .desktop-install-action > p { font-size: 10px; }
  .install-app-preview { grid-template-columns: 72px minmax(0, 1fr); padding: 14px; }
  .install-app-preview img { width: 72px; height: 72px; border-radius: 17px; }
  .install-app-preview strong { font-size: 18px; }
  .install-app-preview span { font-size: 10px; }
  .install-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .install-steps li { min-height: 126px; grid-template-columns: 1fr; align-content: start; padding: 13px; }
  .install-steps li > span { width: 34px; height: 34px; }
  .install-steps strong { margin-top: 3px; font-size: 12px; }
  .install-steps p { font-size: 9px; }
  .install-link-label { font-size: 10px; }
  .install-link-row input, .install-link-row button { height: 46px; font-size: 10px; }
  .install-note { font-size: 9px !important; }
  .role-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .role-options button { min-height: 82px; }
  .role-options strong { font-size: 14px; }
  .role-options small { font-size: 10px; }
  .toast { right: 28px; bottom: 28px; left: 120px; max-width: 480px; font-size: 12px; }
  @keyframes tabletModalIn { from { opacity: 0; transform: translateY(-44%) scale(.98); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
}

@media (min-width: 900px) {
  .work-shortcuts-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width: 1000px) {
  .app-main { margin-left: 220px; padding: 34px 38px 48px; }
  .bottom-nav { width: 220px; padding: 22px 18px; }
  .bottom-nav button { flex-direction: row; justify-content: flex-start; gap: 15px; padding: 0 18px; }
  .bottom-nav span:last-child { font-size: 12px; }
  .bottom-nav button.is-active::before { left: -18px; }
  .nav-badge { top: 11px; left: 42px; }
  .nav-dot { top: 15px; left: 43px; }
  .today-tablet-grid { grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 27px; }
  .work-page-grid { grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; }
  .work-item { min-height: 121px; }
  .toast { left: 248px; }
}

@media (min-width: 700px) and (max-width: 760px) {
  .mobile-brand {
    width: 180px;
    height: 60px;
  }
}

@media (min-width: 1200px) {
  #meer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(315px, .75fr); align-items: start; column-gap: 28px; }
  #meer > .page-title, #meer > .prototype-note { grid-column: 1 / -1; }
  #meer > .app-settings { margin-top: 0; }
  #meer > .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-page-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 25px; }
}

@media (max-width: 430px) {
  .mobile-brand { width: 152px; height: 51px; }
  .role-trigger > span:nth-child(2) { display: none; }
  .role-trigger { grid-template-columns: 34px 12px; }
  .welcome-row h1, .page-title h1 { font-size: 26px; }
  .reservation-list article { grid-template-columns: 34px 28px minmax(0, 1fr); }
  .reservation-status { display: none; }
  .focus-card { padding-right: 11px; padding-left: 11px; }
  .clean-skeleton-card:nth-child(3) { display: none; }
}

@media (max-width: 360px) {
  .work-page-header { flex-wrap: wrap; }
  .work-page-header .connection-ok { margin: -5px 0 0 59px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
