:root {
  --ink: #243027;
  --muted: #6d746d;
  --paper: #f6f3ed;
  --card: #ffffff;
  --green: #0c514d;
  --green-dark: #083d3a;
  --sage: #e4e9de;
  --red: #bd554b;
  --red-soft: #fae9e6;
  --amber: #d99a36;
  --amber-soft: #fff5dc;
  --blue: #3f78a3;
  --blue-soft: #eaf4fb;
  --purple: #735a91;
  --purple-soft: #f2edf7;
  --green-soft: #e7f3e4;
  --kitchen: #76509a;
  --kitchen-soft: #f1eaf8;
  --bar: #3678b6;
  --bar-soft: #e8f2fb;
  --restaurant: #24877e;
  --restaurant-soft: #e6f5f2;
  --resort: #876849;
  --resort-soft: #f4eee7;
  --rooms: #b15883;
  --rooms-soft: #faeaf2;
  --spa: #358f9a;
  --spa-soft: #e7f5f6;
  --line: #dedbd3;
  --shadow: 0 8px 28px rgba(36, 48, 39, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: #e9e6df; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pin-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: #e9e6df; }
.pin-screen[hidden] { display: none; }
.pin-card { width: min(100%, 360px); padding: 30px 24px; border-radius: 22px; background: white; box-shadow: var(--shadow); text-align: center; overflow: hidden; }
.pin-logo { display: block; width: 88px; height: 88px; margin: 0 auto 18px; border: 1px solid #ece8df; border-radius: 22px; object-fit: cover; box-shadow: 0 6px 18px rgba(12,81,77,.12); }
.pin-card h1 { margin-bottom: 8px; }
.pin-card > p:not(.eyebrow) { margin-bottom: 20px; color: var(--muted); line-height: 1.45; }
.pin-card form { display: grid; gap: 11px; width: 100%; box-sizing: border-box; }
#pin-input { min-height: 56px; width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 14px; background: #fbfaf7; color: var(--ink); font-size: 28px; font-weight: 900; letter-spacing: .28em; text-align: center; }
.pin-card .primary-button { width: 100%; box-sizing: border-box; }
#pin-input:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 4px rgba(83,98,73,.13); }
.pin-error { min-height: 20px; color: var(--red); font-size: 13px; font-weight: 800; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; background: var(--paper); padding-bottom: 90px; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 14px; background: rgba(246,243,237,.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(222,219,211,.7); }
.topbar-brand { display: grid; grid-template-columns: 110px auto; align-items: center; gap: 12px; min-width: 0; }
.topbar-brand img { display: block; width: 110px; height: 48px; border-radius: 8px; object-fit: cover; object-position: center 48%; }
.topbar-brand h1 { padding-left: 12px; border-left: 1px solid var(--line); }
.sync-status { position: sticky; top: 83px; z-index: 4; display: grid; gap: 5px; padding: 10px 18px; border-bottom: 1px solid #e2be75; background: #fff5dc; color: #76500d; font-size: 13px; }
.sync-status.is-offline { border-color: #9dc3df; background: var(--blue-soft); color: #285d83; }
.sync-status.has-conflict { border-color: #e4aaa4; background: var(--red-soft); color: #883d37; }
.sync-status div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sync-status small { flex: 1 1 220px; font-weight: 650; line-height: 1.35; }
.sync-action { min-height: 34px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 9px; background: currentColor; color: white; font-size: 12px; font-weight: 850; }
.sync-action.secondary { background: transparent; color: inherit; }
.eyebrow { margin: 0 0 4px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; letter-spacing: -.04em; }
h2 { margin-bottom: 4px; font-size: 21px; letter-spacing: -.025em; }
.person { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-weight: 750; }
.person span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; }
main { padding: 18px 18px 28px; }
.screen { display: none; }
.screen.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: .35; transform: translateY(4px); } }
.add-job-button { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 13px; align-items: center; width: 100%; min-height: 88px; padding: 15px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #0c514d, #16706a); color: white; text-align: left; box-shadow: 0 10px 24px rgba(12,81,77,.22); }
.add-job-button:hover { background: linear-gradient(135deg, #083f3c, #0f625d); }
.add-job-button:focus-visible { outline: 3px solid rgba(242,153,100,.55); outline-offset: 3px; }
.add-job-button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: white; color: var(--green); font-size: 31px; }
.add-job-button strong { align-self: end; font-size: 20px; }
.add-job-button small { align-self: start; color: rgba(255,255,255,.8); font-size: 13px; }
@media (max-width: 430px) {
  .topbar-brand { grid-template-columns: 86px auto; gap: 8px; }
  .topbar-brand img { width: 86px; height: 42px; }
  .topbar-brand h1 { padding-left: 9px; font-size: 27px; }
  .person { padding-right: 8px; }
  .person #person-name { display: none; }
  .sync-status { top: 77px; padding-inline: 14px; }
}
.priority-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.priority-key span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-radius: 10px; font-size: 11px; font-weight: 850; }
.priority-key b { width: 10px; height: 10px; border-radius: 50%; }
.priority-key-red { background: var(--red-soft); color: #983e37; }
.priority-key-red b { background: var(--red); }
.priority-key-amber { background: var(--amber-soft); color: #80530e; }
.priority-key-amber b { background: var(--amber); }
.priority-key-green { background: var(--green-soft); color: #3d6f37; }
.priority-key-green b { background: #5f9157; }
.shift-card { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-radius: 14px; background: var(--sage); color: var(--green-dark); font-size: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #6f8b61; }
.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.status-key { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; border-radius: 10px; font-size: 12px; font-weight: 850; }
.status-key b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: white; font-size: 11px; }
.urgent-key { background: var(--red-soft); color: #983e37; }
.urgent-key b { background: var(--red); }
.claimed-key { background: var(--amber-soft); color: #8a5c12; }
.claimed-key b { background: var(--amber); }
.done-key { background: var(--green-soft); color: #3d6f37; }
.done-key b { background: #5f9157; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 23px 2px 10px; }
.section-heading h2 { margin: 0; }
.space-top { margin-top: 30px; }
.count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--green); color: white; font-size: 13px; font-weight: 800; }
.muted-count { background: #858b84; }
.task-list, .note-list { display: grid; gap: 10px; }
.task-card, .note-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 3px 14px rgba(36,48,39,.04); }
.task-card.urgent { border: 2px solid #e8a8a2; border-left: 7px solid var(--red); background: #fff8f7; }
.task-card.unsure { border: 2px solid #9fc8e4; border-left: 7px solid var(--blue); background: var(--blue-soft); }
.task-card.recurring:not(.urgent) { border: 2px solid #efd28f; border-left: 7px solid var(--amber); background: #fffcf4; }
.task-card.area-kitchen:not(.urgent) { border-color: #b99bd2; border-left: 9px solid var(--kitchen); background: #eadcf5; }
.task-card.area-bar:not(.urgent) { border-color: #8ebce0; border-left: 9px solid var(--bar); background: #dcecf8; }
.task-card.area-restaurant:not(.urgent) { border-color: #88c9c1; border-left: 9px solid var(--restaurant); background: #d9efeb; }
.task-card.area-resort:not(.urgent) { border-color: #c9ad91; border-left: 9px solid var(--resort); background: #eee3d7; }
.task-card.area-rooms:not(.urgent) { border-color: #d99ab8; border-left: 9px solid var(--rooms); background: #f5dce8; }
.task-card.area-spa:not(.urgent) { border-color: #88cbd2; border-left: 9px solid var(--spa); background: #d9eff1; }
.task-card.normal { border: 2px solid #add0a8; border-left: 9px solid #5f9157; background: #f2faef; }
.task-card.soon { border: 2px solid #efcf8d; border-left: 9px solid var(--amber); background: #fff9e9; }
.task-card.urgent { border: 2px solid #e8a8a2; border-left: 9px solid var(--red); background: #fff3f1; }
.task-card.claimed:not(.urgent) { outline: 2px solid #d8d6cf; outline-offset: -2px; }
.task-top { display: flex; justify-content: space-between; gap: 12px; }
.task-card h3, .note-card h3 { margin: 0 0 6px; font-size: 17px; }
.task-meta, .note-meta { color: var(--muted); font-size: 12px; }
.translation-box { margin-top: 9px; }
.translate-button { min-height: 36px; padding: 6px 11px; border: 1px solid #c8c8c3; border-radius: 10px; background: white; color: var(--ink); font-size: 12px; font-weight: 850; }
.translate-button:disabled { opacity: .65; }
.khmer-text { margin-top: 7px; padding: 10px 12px; border-radius: 10px; background: #fff; color: #263b48; font-size: 16px; font-weight: 750; line-height: 1.55; }
.note-content { flex: 1; min-width: 0; }
.badge { align-self: flex-start; white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.badge.monthly { background: #fff3d9; color: #936619; }
.unsure-badge { background: #d9ecf8; color: #2e658e; }
.soon-badge { background: #ffe8b7; color: #80530e; }
.normal-badge { background: #dcefd8; color: #3d6f37; }
.translation-review-banner { margin: 12px 0 14px; padding: 13px 15px; border: 2px solid #d79c28; border-radius: 15px; background: #fff6dc; color: #624512; }
.translation-review-banner div { display: grid; gap: 3px; }
.translation-review-banner small { color: #765d2c; }
.task-card.needs-khmer-check { border: 2px dashed #d79c28 !important; border-left: 9px solid #d79c28 !important; background: #fffaf0 !important; }
.khmer-review-box { margin-top: 10px; padding: 11px; border-radius: 12px; background: #fff0c9; }
.khmer-review-box span { color: #76520c; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.khmer-review-box p { margin: 7px 0 9px; font-size: 16px; font-weight: 700; line-height: 1.55; }
.khmer-review-box button { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: #855f13; color: white; font-weight: 800; }
.approved-khmer { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(45,60,49,.16); font-size: 16px; font-weight: 750; line-height: 1.6; }
.translation-original { display: grid; gap: 5px; padding: 13px; border-radius: 12px; background: #f1f3ee; }
.translation-original small { color: var(--muted); font-weight: 800; letter-spacing: .05em; }
.translation-original strong { font-size: 17px; line-height: 1.4; }
.approve-translation { background: #347447; }
.brian-task { margin-top: 13px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.7); color: #2e658e; font-size: 12px; }
.brian-task .decision-actions { margin-top: 8px; }
.brian-task select { min-height: 44px; margin-top: 6px; background: white; }
.brian-assign-label { display: block; margin-top: 10px; color: #2e658e; font-weight: 800; }
.task-actions { display: flex; gap: 8px; margin-top: 13px; }
.task-actions button { flex: 1; min-height: 43px; border-radius: 11px; font-weight: 800; }
.claim { border: 1px solid #b9bbb7; background: white; color: var(--ink); }
.done { border: 1px solid #4c514d; background: #4c514d; color: white; }
.priority-change-button { border: 1px solid var(--blue); background: var(--blue-soft); color: #2e658e; }
.claimed-label { flex: 1; padding: 11px 8px; border: 1px solid #d5d5d0; border-radius: 11px; background: #f3f2ee; text-align: center; color: var(--ink); font-size: 13px; font-weight: 850; }
.claimed-block { flex: 1.6; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.handover-button { min-width: 105px; border: 1px solid #b9bbb7; background: white; color: var(--ink); }
.handover-history { margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.45; }
.handover-job-name { padding: 13px; border-left: 6px solid var(--red); border-radius: 10px; background: var(--red-soft); font-weight: 850; line-height: 1.4; }
.required-help { margin: -3px 2px 2px; color: #9a453e; font-size: 12px; font-weight: 750; line-height: 1.4; }
.field-error { border: 2px solid var(--red) !important; background: var(--red-soft) !important; }
.intro-card { padding: 20px; margin-bottom: 12px; border-radius: 18px; background: var(--sage); }
.intro-card p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.issue-intro { background: #f4e7e3; }
.stock-intro { background: #e5ebdf; }
.bills-intro { background: #f8eadf; }
.issue-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 4px; margin: 0 0 12px; padding: 10px; border-radius: 13px; background: white; border: 1px solid var(--line); }
.issue-flow span { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.issue-flow b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--blue); color: white; font-size: 11px; }
.issue-flow i { color: #aeb3ae; font-size: 18px; font-style: normal; }
.entry-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.entry-card label { font-size: 13px; font-weight: 800; }
textarea, input[type="text"] { width: 100%; min-height: 52px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; color: var(--ink); outline: none; }
select { width: 100%; min-height: 52px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
textarea:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(83,98,73,.12); }
.input-translate-button { min-height: 46px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue-soft); color: #2f668f; font-weight: 850; }
.input-translate-button:disabled { opacity: .65; }
.input-translation-preview { display: grid; gap: 4px; padding: 12px; border: 1px solid #a8cce5; border-radius: 11px; background: var(--blue-soft); color: #263b48; line-height: 1.5; }
.input-translation-preview strong { color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.input-translation-preview span { font-size: 15px; font-weight: 700; }
.photo-upload { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border: 1px dashed var(--blue); border-radius: 12px; background: var(--blue-soft); color: #2f668f; cursor: pointer; }
.photo-picker-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.photo-picker-row .photo-upload { min-width: 0; }
.photo-picker-button { width: 100%; font: inherit; text-align: left; }
.photo-upload > span { grid-row: 1 / 3; font-size: 27px; }
.photo-upload strong { font-size: 13px; }
.photo-upload small { color: var(--muted); font-size: 11px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 600px) {
  .photo-picker-row { grid-template-columns: 1fr 1fr; }
}
.photo-name { margin-top: -5px; color: var(--muted); font-size: 11px; }
.bill-list { display: grid; gap: 11px; }
.bills-lock-card { display: grid; grid-template-columns: 42px 1fr; gap: 10px 12px; align-items: center; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #f3f2ee; }
.bills-lock-card > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: white; font-size: 20px; }
.bills-lock-card > div { display: grid; gap: 3px; }
.bills-lock-card small { color: var(--muted); line-height: 1.35; }
.bills-lock-card form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bills-lock-card input { min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: .22em; }
.bills-lock-card .pin-error { grid-column: 1 / -1; }
.neutral-button { min-height: 48px; padding: 0 16px; border: 1px solid #4c514d; border-radius: 11px; background: #4c514d; color: white; font-weight: 850; }
#bills-private-area[hidden] { display: none; }
.bill-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.bill-card img, .job-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #eceae5; }
.bill-body { padding: 14px; }
.bill-body h3 { margin: 0 0 5px; font-size: 17px; }
.bill-amount { color: var(--red); font-size: 20px; font-weight: 900; }
.bill-meta { margin-top: 5px; color: var(--muted); font-size: 11px; }
.paid-button { width: 100%; min-height: 47px; margin-top: 12px; border: 0; border-radius: 11px; background: var(--green); color: white; font-weight: 850; }
.bill-card.paid { border-color: #add0a8; background: var(--green-soft); }
.bill-card.paid .bill-amount { color: #4f8248; }
.paid-heading { margin-top: 32px; }
.job-photo { margin-top: 12px; border-radius: 11px; max-height: 220px; }
.primary-button { min-height: 52px; border: 0; border-radius: 12px; background: var(--green); color: white; font-weight: 850; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; place-items: center; min-height: 45px; border: 1px solid var(--line); border-radius: 11px; }
.choice input:checked + span { border-color: var(--green); background: var(--sage); color: var(--green-dark); font-weight: 800; }
.urgent-choice input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.soon-choice input:checked + span { border-color: var(--amber); background: var(--amber-soft); color: #80530e; }
.normal-choice input:checked + span { border-color: #5f9157; background: var(--green-soft); color: #3d6f37; }
.priority-choice-row { grid-template-columns: repeat(3, 1fr); }
.priority-choice-row .choice span { padding: 7px 4px; text-align: center; font-size: 12px; }
.urgent-assignee { display: grid; gap: 7px; padding: 12px; border: 2px solid #e8a8a2; border-radius: 12px; background: var(--red-soft); }
.urgent-assignee[hidden] { display: none; }
.urgent-assignee small { color: #983e37; font-weight: 700; }
.unsure-choice { grid-column: 1 / -1; }
.unsure-choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 850; }
.repeat-row { grid-template-columns: repeat(3, 1fr); }
.repeat-row .choice span { padding: 8px 5px; text-align: center; font-size: 12px; line-height: 1.25; }
.note-card { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.note-card.handover-note { border-left: 7px solid var(--blue); background: var(--blue-soft); }
.note-card.stock-note { border-left: 7px solid var(--purple); background: var(--purple-soft); }
.note-card.issue-note { border-left: 7px solid var(--amber); background: var(--amber-soft); }
.note-card.issue-note.urgent-note { border: 2px solid #e8a8a2; border-left: 7px solid var(--red); background: var(--red-soft); }
.note-card.issue-note.unsure-note { border: 2px solid #a8cce5; border-left: 7px solid var(--blue); background: var(--blue-soft); }
.issue-card { display: block; }
.issue-card .task-actions { margin-top: 12px; }
.brian-alert { margin-top: 14px; padding: 13px 15px; border: 2px solid #9fc8e4; border-radius: 14px; background: var(--blue-soft); color: #2e658e; font-size: 14px; font-weight: 850; }
.decision-label { margin: 12px 0 7px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.priority-decisions { grid-template-columns: repeat(3, 1fr); }
.decision-actions button { min-height: 44px; border-radius: 11px; font-weight: 850; }
.decide-normal { border: 1px solid var(--amber); background: var(--amber-soft); color: #80530e; }
.priority-decisions .decide-normal { border-color: #5f9157; background: var(--green-soft); color: #3d6f37; }
.decide-soon { border: 1px solid var(--amber); background: var(--amber-soft); color: #80530e; }
.decide-urgent { border: 1px solid var(--red); background: var(--red-soft); color: #983e37; }
.issue-claim { border: 1px solid var(--amber); background: white; color: #80530e; }
.issue-fixed { border: 0; background: #5f9157; color: white; }
.note-card.completed-note { border: 2px solid #add0a8; border-left: 7px solid #5f9157; background: var(--green-soft); }
.complete-tick { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #5f9157; color: white; font-size: 18px; font-weight: 900; }
.note-card p { margin: 0 0 6px; line-height: 1.4; }
.remove-note { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--green-soft); color: #4e8147; font-size: 20px; font-weight: 900; }
.remove-note:hover { background: #5f9157; color: white; }
.empty { padding: 25px 12px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-card { display: grid; gap: 4px; min-height: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.menu-card > span { font-size: 27px; color: var(--green); }
.menu-card strong { font-size: 17px; }
.menu-card small { color: var(--muted); line-height: 1.35; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 760px); transform: translateX(-50%); padding: 8px 8px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.nav-button { display: grid; gap: 3px; place-items: center; min-height: 56px; border: 0; border-radius: 12px; background: transparent; color: #7b807b; font-size: 10px; font-weight: 750; }
.nav-button span { font-size: 20px; line-height: 1; }
.nav-button.active { background: var(--sage); color: var(--green-dark); }
dialog { width: min(calc(100% - 28px), 600px); max-height: 85vh; padding: 20px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 22px 70px rgba(24,32,26,.28); }
dialog::backdrop { background: rgba(25,31,26,.55); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 25px; }
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.staff-option { min-height: 78px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); font-weight: 850; }
.staff-option:hover { background: var(--sage); }
.modal-note { margin: 16px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.recurring-form { display: grid; gap: 9px; padding: 16px; border: 2px solid #efd28f; border-radius: 16px; background: var(--amber-soft); }
.department-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; }
.department-key span, .area-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.dept-kitchen, .area-pill.area-kitchen { background: var(--kitchen-soft); color: var(--kitchen); border: 1px solid #c9b4dd; }
.dept-bar, .area-pill.area-bar { background: var(--bar-soft); color: var(--bar); border: 1px solid #aacde9; }
.dept-restaurant, .area-pill.area-restaurant { background: var(--restaurant-soft); color: var(--restaurant); border: 1px solid #a8d7d1; }
.dept-resort, .area-pill.area-resort { background: var(--resort-soft); color: var(--resort); border: 1px solid #d7c3ae; }
.dept-rooms, .area-pill.area-rooms { background: var(--rooms-soft); color: var(--rooms); border: 1px solid #e5b7ce; }
.dept-spa, .area-pill.area-spa { background: var(--spa-soft); color: var(--spa); border: 1px solid #a8d9de; }
.recurring-list-card { display: block; border-left-width: 7px; }
.recurring-list-card.area-kitchen { border-left-color: var(--kitchen); background: #eadcf5; }
.recurring-list-card.area-bar { border-left-color: var(--bar); background: #dcecf8; }
.recurring-list-card.area-restaurant { border-left-color: var(--restaurant); background: #d9efeb; }
.recurring-list-card.area-resort { border-left-color: var(--resort); background: #eee3d7; }
.recurring-list-card.area-rooms { border-left-color: var(--rooms); background: #f5dce8; }
.recurring-list-card.area-spa { border-left-color: var(--spa); background: #d9eff1; }
.recurring-card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.recurring-form label { color: #6e5323; font-size: 12px; font-weight: 850; }
.form-title { margin: 0 0 2px; color: #6e4a0f; font-size: 17px; font-weight: 900; }
.frequency-row { margin-bottom: 2px; }
.frequency-row .choice input:checked + span { border-color: var(--amber); background: #f5d990; color: #754c0c; }
.recurring-heading { margin-top: 22px; }
.settings-block { padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.settings-block h3 { margin: 0 0 5px; }
.settings-block p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.language-button { min-height: 45px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font-weight: 800; }
.language-button.active { border-color: var(--green); background: var(--sage); color: var(--green-dark); }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 30; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; font-weight: 750; opacity: 0; pointer-events: none; transition: .2s; }
.toast.success { background: #4f8248; }
.toast.warning { background: #a66c13; }
.toast.danger { background: var(--red); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 650px) {
  .app-shell { box-shadow: 0 0 55px rgba(36,48,39,.12); }
  main { padding: 24px 28px 36px; }
  .topbar { padding: 22px 28px 16px; }
}
@media (max-width: 430px) {
  .task-actions { flex-direction: column; }
  .claimed-block { grid-template-columns: 1fr; }
  .handover-button { min-height: 43px; }
  .repeat-row { grid-template-columns: 1fr; }
}
