:root{--coral: #D9442E;--yellow: #FFC93C;--mint: #2BA58B;--purple: #6C4AB6;--bg: #FFF8EC;--surface: #FFFFFF;--surface-2: #FFF1D6;--text: #2A2140;--muted: #5E5670;--line: #2A2140;--line-soft: #E9DCC2;--shadow-c: #2A2140;--shadow-x: 5px;--primary: var(--coral);--primary-ink: #FFFFFF;--primary-soft: #FDE3DD;--accent: var(--yellow);--accent-ink: #2A2140;--danger: #A62219;--danger-soft: #FBE3E0;--ok: #1B6F5D;--ok-soft: #D9F2EB;--warn: #6E5100;--warn-soft: #FFF0C2;--info: #553A96;--info-soft: #ECE5FA;--radius: 22px;--font-display: "Lalezar", "Cairo", system-ui, sans-serif;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #1A1530;--surface: #251E3D;--surface-2: #30284F;--text: #F5F0FF;--muted: #BDB4D4;--line: #5A4D8A;--line-soft: #3A3160;--shadow-c: #0B0818;--primary-soft: #4A2620;--danger: #FF9A8F;--danger-soft: #45201C;--ok: #7FDCC4;--ok-soft: #173A33;--warn: #FFD873;--warn-soft: #3E3317;--info: #CDB9FF;--info-soft: #33295A;color-scheme:dark}}[dir=rtl]{--shadow-x: -5px}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font-family:Cairo,system-ui,-apple-system,Segoe UI,sans-serif;font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}h1{font-family:var(--font-display);font-weight:400;font-size:2rem;line-height:1.15;margin:0}h2{font-size:1.15rem;font-weight:700;margin:0}h3{font-size:1rem;font-weight:700;margin:0}p{margin:0}a{color:var(--purple)}.crayons{display:inline-flex;align-items:flex-end;flex-shrink:0}.crayons>span{display:block}.wordmark{display:inline-flex;flex-direction:column;align-items:center;line-height:1.05}.wordmark-ar{font-family:var(--font-display);font-size:3rem}.wordmark-fr{font-family:var(--font-display);font-size:1.5rem;color:var(--coral)}.brand{display:flex;align-items:center;gap:10px}.brand .wordmark-fr{font-size:1.6rem;color:var(--text)}.shell{min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;padding-top:max(12px,env(safe-area-inset-top));background:var(--bg)}.topnav{display:none;gap:6px}.topnav a{text-decoration:none;color:var(--text);padding:6px 14px;border-radius:999px;font-weight:700;border:2px solid transparent}.topnav a.active{background:var(--accent);color:var(--accent-ink);border-color:var(--line)}.content{flex:1;width:100%;max-width:720px;margin:0 auto;padding:8px 16px calc(104px + env(safe-area-inset-bottom))}.bottomnav{position:fixed;inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:10;display:flex;gap:4px;padding:7px;background:#2a2140;border-radius:22px;box-shadow:0 6px 20px #2a214040}.bottomnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;color:#fff;text-decoration:none;font-size:.72rem;font-weight:600;padding:5px 0;border-radius:16px;min-height:48px;justify-content:center}.bottomnav a.active{background:var(--yellow);color:#2a2140;font-weight:700}@media (min-width: 820px){.topnav{display:flex}.bottomnav{display:none}.content{padding-bottom:40px;padding-top:20px}}.card{background:var(--surface);border:2.5px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-x) 5px 0 var(--shadow-c)}.stack{display:flex;flex-direction:column;gap:16px}.stack-sm{display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;gap:8px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.grow{flex:1;min-width:140px}.center{text-align:center}.muted{color:var(--muted)}.small{font-size:.85rem}.empty{text-align:center;color:var(--muted);padding:32px 0}.label{font-size:.85rem;color:var(--muted);font-weight:700;margin-block-end:4px}ul.plain{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.center-screen{min-height:100dvh;display:grid;place-items:center;color:var(--muted)}.flip{display:inline-block}label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.95rem}label.checkbox{flex-direction:row;align-items:center;gap:10px;font-weight:600}input,select,textarea{font:inherit;color:inherit;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:11px 14px;width:100%;font-weight:400;min-height:48px}input[type=checkbox]{width:22px;height:22px;min-height:0;accent-color:var(--coral)}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--yellow);outline-offset:1px}textarea{resize:vertical}.btn{font:inherit;font-weight:700;cursor:pointer;border-radius:16px;border:2px solid var(--line);padding:9px 18px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;white-space:nowrap;background:var(--surface);color:var(--text);box-shadow:0 3px 0 var(--shadow-c);transition:transform .06s,box-shadow .06s}.btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--shadow-c)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.btn-primary{background:var(--primary);color:var(--primary-ink)}.btn-ghost{background:var(--surface);color:var(--text)}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.btn-small{padding:4px 12px;min-height:36px;font-size:.85rem;border-radius:12px}.btn.danger{color:var(--danger)}.icon-btn{margin-inline-start:auto;background:none;border:none;color:var(--muted);cursor:pointer;font-size:1rem;padding:8px;border-radius:10px;min-width:40px;min-height:40px}.icon-btn:hover{background:var(--surface-2)}.alert{padding:10px 14px;border-radius:14px;background:var(--warn-soft);color:var(--warn);font-weight:600}.alert-error{background:var(--danger-soft);color:var(--danger)}.alert-ok{background:var(--ok-soft);color:var(--ok)}.chip{display:inline-block;padding:1px 11px;border-radius:999px;font-size:.8rem;font-weight:700;background:var(--surface-2);color:var(--text)}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-block-start:8px}.chip.type-SICK{background:var(--danger-soft);color:var(--danger)}.chip.type-VACATION{background:var(--ok-soft);color:var(--ok)}.chip.type-OTHER{background:var(--info-soft);color:var(--info)}.segmented{display:flex;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:4px;gap:4px;overflow-x:auto}.segmented button{flex:1;font:inherit;font-weight:700;border:none;background:none;color:var(--muted);padding:7px 10px;border-radius:11px;cursor:pointer;white-space:nowrap;min-height:40px}.segmented button.active{background:var(--yellow);color:#2a2140}.lang-switch{display:inline-flex;gap:8px;justify-content:center}.lang-switch button{font:inherit;font-weight:700;border:2px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:5px 18px;cursor:pointer;min-height:42px}.lang-switch button.active{background:var(--yellow);color:#2a2140}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;position:relative;overflow:hidden}.auth-screen:before,.auth-screen:after{content:"";position:absolute;z-index:0;pointer-events:none}.auth-screen:before{width:110px;height:110px;border-radius:32px;background:var(--yellow);top:4%;inset-inline-end:-28px;transform:rotate(14deg)}.auth-screen:after{width:90px;height:90px;border-radius:50%;background:var(--mint);top:22%;inset-inline-start:-34px}.auth-wrap{position:relative;z-index:1;width:100%;max-width:400px;display:flex;flex-direction:column;gap:22px}.auth-brand{display:flex;flex-direction:column;align-items:center;gap:10px}.auth-card{display:flex;flex-direction:column;gap:14px;padding:22px 20px}.auth-card h1{font-size:1.6rem}.auth-card .btn-primary{font-family:var(--font-display);font-weight:400;font-size:1.4rem;min-height:54px}.post{display:flex;flex-direction:column;gap:12px;padding:14px}.post-head{display:flex;align-items:center;gap:10px}.avatar{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex-shrink:0;font-weight:700;font-size:.9rem;background:var(--coral);color:#fff}.avatar.c1{background:var(--mint);color:#10221d}.avatar.c2{background:var(--purple);color:#fff}.avatar.c3{background:var(--yellow);color:#2a2140}.post-author{font-weight:700;line-height:1.2}.post-body{white-space:pre-wrap;overflow-wrap:anywhere}.media-grid{display:grid;gap:5px;border-radius:16px;overflow:hidden}.media-grid.n1{grid-template-columns:1fr}.media-grid.n2,.media-grid.n3,.media-grid.n4{grid-template-columns:1fr 1fr}.media-grid img,.media-grid video{width:100%;height:100%;max-height:520px;object-fit:cover;display:block;background:#000;aspect-ratio:1;cursor:zoom-in}.media-grid.n1 img,.media-grid.n1 video{aspect-ratio:auto;object-fit:contain;background:var(--surface-2)}.media-grid.n3>:first-child{grid-column:1 / -1;aspect-ratio:16 / 9}.media-grid video{cursor:default}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0f0a1eeb;display:grid;place-items:center;padding:16px;cursor:zoom-out}.lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px}.new-post textarea{min-height:84px}.file-btn{flex-direction:row;font-weight:700;cursor:pointer}.preview-row{display:flex;gap:8px;overflow-x:auto;padding-block-end:4px}.preview{position:relative;flex-shrink:0}.preview img,.preview video{width:80px;height:80px;object-fit:cover;border-radius:14px;border:2px solid var(--line);display:block}.preview-remove{position:absolute;top:4px;inset-inline-end:4px;width:24px;height:24px;border-radius:50%;border:none;background:#000000a6;color:#fff;cursor:pointer;font-size:.7rem}.filter-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px}.filter-chips button,.chip-toggle{font:inherit;font-weight:700;font-size:.9rem;white-space:nowrap;cursor:pointer;border:2px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:5px 16px;min-height:40px}.filter-chips button.active{background:var(--yellow);color:#2a2140}.chip-toggle.active{background:var(--mint);color:#10221d}.chip-toggle:disabled{opacity:.45;cursor:not-allowed;border-style:dashed}.chip-tag{background:var(--ok-soft);color:var(--ok)}.tag-picker{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.tag-picker legend{font-weight:600;font-size:.95rem;padding:0;margin-block-end:6px}.tag-picker .chips{margin:0}.menu-grid{display:grid;gap:16px}@media (min-width: 620px){.menu-grid{grid-template-columns:1fr 1fr}}.menu-day header{margin-block-end:10px}.menu-day.is-today{background:var(--warn-soft)}.menu-day.is-today h3:after{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--coral);margin-inline-start:8px;vertical-align:middle}.meals{margin:0;display:flex;flex-direction:column;gap:8px}.meals dt{font-size:.8rem;color:var(--muted);font-weight:700}.meals dd{margin:0;unicode-bidi:plaintext;text-align:left}[dir=rtl] .meals dd{text-align:right}.absence{display:flex;flex-direction:column;gap:8px}.status{font-size:.8rem;font-weight:700;padding:2px 11px;border-radius:999px}.status-PENDING{background:var(--warn-soft);color:var(--warn)}.status-CONFIRMED{background:var(--ok-soft);color:var(--ok)}.status-REJECTED{background:var(--danger-soft);color:var(--danger)}.note{background:var(--surface-2);border-radius:14px;padding:8px 12px;white-space:pre-wrap}.note.reply{border-inline-start:4px solid var(--purple)}.today-box{background:var(--yellow);color:#2a2140}.today-box .chip{background:#fff;color:#2a2140}.invite-link input{font-size:.85rem}.table-card{padding:0;overflow:hidden}.user-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:12px 16px;border-block-end:2px solid var(--line-soft)}.user-row:last-child{border-block-end:none}.user-row.inactive{opacity:.5}
