*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--primary: #3b82f6;--primary-dark: #2563eb;--primary-light: #eff6ff;--primary-rgb: 59, 130, 246;--secondary: #f59e0b;--success: #10b981;--danger: #f43f5e;--bg: #f8fafc;--surface: #ffffff;--surface2: #f1f5f9;--surface3: #e8f0fe;--surface-rgb: 255, 255, 255;--text: #0f172a;--text-muted: #64748b;--border: #e2e8f0;--input-bg: #ffffff;--radius: 16px;--radius-sm: 10px;--radius-xs: 6px;--shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);--shadow-lg: 0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);--shadow-col: rgba(59,130,246,.14);--nav-h: 62px;--header-h: 58px;--sidebar-w: 260px;--ease: .15s cubic-bezier(.4, 0, .2, 1);--ease-spring: .24s cubic-bezier(.34, 1.56, .64, 1)}[data-theme=dark]{--primary: #60a5fa;--primary-dark: #3b82f6;--primary-light: #1e3a5f;--primary-rgb: 96, 165, 250;--bg: #060d1b;--surface: #0d1526;--surface2: #162035;--surface3: #0a1220;--surface-rgb: 13, 21, 38;--text: #e2e8f0;--text-muted: #94a3b8;--border: #1e2d47;--input-bg: #0d1526;--shadow: 0 1px 3px rgba(0,0,0,.5);--shadow-md: 0 4px 16px rgba(0,0,0,.55);--shadow-lg: 0 20px 48px rgba(0,0,0,.65);--shadow-col: rgba(0,0,0,.35)}[data-theme=dark] .bottom-nav{box-shadow:0 8px 40px #00000080,0 2px 12px #00000059}html{height:100%}body{height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background .2s,color .2s}#root{height:100vh;height:100svh;display:flex;flex-direction:column}.app-shell{flex:1;min-height:0;display:flex;flex-direction:column}.app-header{position:fixed;top:0;left:0;right:0;height:calc(var(--header-h) + env(safe-area-inset-top,0px));z-index:120;background:#0c1a35;display:flex;align-items:flex-end;justify-content:space-between;padding:0 16px 10px;border-bottom:1px solid rgba(255,255,255,.06);box-shadow:0 2px 16px #00000040}.header-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.header-title{font-size:17px;font-weight:800;color:#fff;letter-spacing:-.3px;display:flex;align-items:center;gap:10px}.header-title-icon{width:30px;height:30px;border-radius:9px;background:var(--primary);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;box-shadow:0 2px 8px #3b82f666}.header-back-btn{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;flex-shrink:0;background:#ffffff1a;border:1px solid rgba(255,255,255,.15);color:#fff;cursor:pointer;transition:background var(--ease),transform var(--ease);-webkit-tap-highlight-color:transparent}.header-back-btn:hover{background:#fff3}.header-back-btn:active{transform:scale(.9)}.header-page-title{font-size:17px;font-weight:700;color:#fff;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-burger-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;flex-shrink:0;background:#ffffff1f;border:1px solid rgba(255,255,255,.18);color:#fff;cursor:pointer;transition:background var(--ease),transform var(--ease);-webkit-tap-highlight-color:transparent}.header-burger-btn:hover{background:#ffffff38}.header-burger-btn:active{transform:scale(.9)}.header-icon-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;flex-shrink:0;background:#ffffff1a;border:1px solid rgba(255,255,255,.15);color:#fff;text-decoration:none;transition:background var(--ease),transform var(--ease);-webkit-tap-highlight-color:transparent}.header-icon-btn:hover{background:#ffffff38}.header-icon-btn:active{transform:scale(.9)}.header-avatar-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:transparent;border:none;cursor:pointer;transition:opacity var(--ease);-webkit-tap-highlight-color:transparent}.header-avatar-btn:hover{opacity:.85}.header-avatar-btn:active{transform:scale(.94)}.header-profile-btn{display:flex;align-items:center;gap:8px;background:#ffffff1a;border:1px solid rgba(255,255,255,.18);border-radius:28px;padding:5px 12px 5px 5px;cursor:pointer;color:#fff;font-size:13px;font-weight:600;transition:background var(--ease),transform var(--ease);-webkit-tap-highlight-color:transparent;white-space:nowrap}.header-profile-btn:hover{background:#fff3}.header-profile-btn:active{transform:scale(.96)}.header-profile-btn .chevron{opacity:.6}.main-content{flex:1;min-height:0;overflow-y:auto;padding:calc(var(--header-h) + env(safe-area-inset-top,0px) + 16px) 16px calc(env(safe-area-inset-bottom,0px) + 80px)}.bottom-nav{display:none!important}.bottom-nav-placeholder{position:fixed;bottom:calc(10px + env(safe-area-inset-bottom,0px));left:12px;right:12px;height:var(--nav-h);z-index:120;background:var(--surface);backdrop-filter:blur(28px) saturate(1.8);-webkit-backdrop-filter:blur(28px) saturate(1.8);border:1px solid var(--border);border-radius:20px;display:flex;align-items:center;padding:5px 4px;box-shadow:0 8px 32px #0000001a,0 2px 8px #0000000f;transition:background var(--ease),border-color var(--ease)}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--text-muted);font-size:9px;font-weight:700;letter-spacing:.2px;border:none;background:none;cursor:pointer;transition:color var(--ease),background var(--ease),transform var(--ease);-webkit-tap-highlight-color:transparent;border-radius:14px;height:calc(var(--nav-h) - 10px)}.nav-item:active{transform:scale(.87)}.nav-item.active{color:var(--primary);background:var(--primary-light)}.nav-item.active svg{filter:drop-shadow(0 0 5px rgba(var(--primary-rgb),.4))}.nav-item svg{width:20px;height:20px;transition:filter var(--ease)}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;background:#060d1b9e;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:fadeIn .18s ease}.drawer{position:absolute;top:0;left:0;bottom:0;height:100%;z-index:301;width:min(300px,85vw);background:var(--surface);display:flex;flex-direction:column;overflow:hidden;border-radius:0 20px 20px 0;animation:slideInLeft .24s cubic-bezier(.32,.72,0,1);box-shadow:4px 0 40px #00000038}@keyframes slideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}.drawer-safe-top{flex-shrink:0;height:env(safe-area-inset-top,0px);background:var(--surface)}.drawer-safe-bottom{height:max(env(safe-area-inset-bottom,0px),16px);flex-shrink:0}.drawer-user{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--border);background:var(--surface)}.drawer-body{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.drawer-user-info{flex:1;min-width:0}.drawer-user-name{font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer-user-role{font-size:11px;color:var(--text-muted);text-transform:capitalize;margin-top:2px}.drawer-close-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;flex-shrink:0;background:var(--surface2);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;transition:all var(--ease)}.drawer-close-btn:hover{background:var(--primary-light);color:var(--primary);border-color:transparent}.drawer-nav{padding:10px;flex:1}.drawer-nav-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;text-decoration:none;color:var(--text);font-size:15px;font-weight:600;transition:all var(--ease);-webkit-tap-highlight-color:transparent;margin-bottom:2px}.drawer-nav-item:hover{background:var(--surface2)}.drawer-nav-item.active{background:var(--primary-light);color:var(--primary)}.drawer-nav-icon{font-size:18px;width:26px;text-align:center;flex-shrink:0}.drawer-divider{height:1px;background:var(--border);margin:4px 12px}.drawer-section{padding:10px 14px 4px}.drawer-section-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);margin-bottom:10px}.drawer-signout-btn{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:10px;background:none;border:none;cursor:pointer;font-size:15px;font-weight:600;color:var(--danger);font-family:inherit;text-align:left;transition:background var(--ease)}.drawer-signout-btn:hover{background:#fff1f2}[data-theme=dark] .drawer-signout-btn:hover{background:#4c0519}.sidebar{display:none;width:var(--sidebar-w);flex-shrink:0;position:fixed;top:0;left:0;bottom:0;background:var(--surface);border-right:1px solid var(--border);flex-direction:column;z-index:120;overflow-y:auto;overflow-x:hidden;transition:background var(--ease),border-color var(--ease)}.sidebar-logo{display:flex;align-items:center;gap:11px;padding:22px 18px 18px;border-bottom:1px solid var(--border);font-size:16px;font-weight:800;color:var(--text);letter-spacing:-.3px;flex-shrink:0}.sidebar-logo-icon{width:34px;height:34px;border-radius:10px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;box-shadow:0 3px 10px rgba(var(--primary-rgb),.35)}.sidebar-nav{flex:1;padding:10px 8px;display:flex;flex-direction:column;gap:1px}.sidebar-section-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);padding:8px 12px 4px}.sidebar-nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;text-decoration:none;color:var(--text-muted);font-size:13.5px;font-weight:600;cursor:pointer;border:none;background:none;transition:all var(--ease);-webkit-tap-highlight-color:transparent}.sidebar-nav-item:hover{background:var(--surface2);color:var(--text)}.sidebar-nav-item.active{background:var(--primary-light);color:var(--primary);border-left:3px solid var(--primary);padding-left:9px}.sidebar-nav-item svg{width:17px;height:17px;flex-shrink:0}.sidebar-divider{height:1px;background:var(--border);margin:6px 10px}.sidebar-footer{padding:10px 8px 16px;border-top:1px solid var(--border);flex-shrink:0}.sidebar-user{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background var(--ease)}.sidebar-user:hover{background:var(--surface2)}.sidebar-user-info{flex:1;min-width:0}.sidebar-user-name{font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-role{font-size:11px;color:var(--text-muted);text-transform:capitalize;margin-top:1px}@media (min-width: 768px){.sidebar{display:flex}.app-header,.bottom-nav{display:none}.main-content{margin-left:var(--sidebar-w);padding:36px 44px}.fab{bottom:36px;right:36px}}.avatar{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#fff;flex-shrink:0;border:none;cursor:pointer;transition:transform var(--ease),opacity var(--ease)}.avatar:hover{opacity:.88}.avatar-sm{width:28px;height:28px;font-size:11px}.avatar-md{width:42px;height:42px;font-size:16px}.avatar-lg{width:56px;height:56px;font-size:20px;border-radius:16px}.avatar-xl{width:72px;height:72px;font-size:26px;border-radius:20px}.card{background:var(--surface);border-radius:var(--radius);padding:18px;border:1px solid var(--border);box-shadow:var(--shadow);transition:background var(--ease),border-color var(--ease)}.card+.card{margin-top:12px}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.card-title{font-size:15px;font-weight:700;letter-spacing:-.2px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.page-title{font-size:22px;font-weight:800;letter-spacing:-.4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;letter-spacing:-.01em;cursor:pointer;border:none;white-space:nowrap;text-decoration:none;font-family:inherit;transition:all var(--ease);-webkit-tap-highlight-color:transparent}.btn:active{transform:scale(.97)}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(var(--primary-rgb),.3)}.btn-primary:hover{background:var(--primary-dark);box-shadow:0 4px 14px rgba(var(--primary-rgb),.4)}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-ghost:hover{background:var(--surface2);color:var(--text)}.btn-danger{background:var(--danger);color:#fff;box-shadow:0 2px 8px #f43f5e47}.btn-danger:hover{filter:brightness(1.08)}.btn-outline{background:transparent;color:var(--primary);border:1.5px solid var(--primary)}.btn-outline:hover{background:var(--primary-light)}.btn-sm{padding:7px 13px;font-size:13px;border-radius:8px}.btn-xs{padding:4px 10px;font-size:12px;border-radius:var(--radius-xs)}.btn-icon{padding:0;width:36px;height:36px;border-radius:9px;background:var(--surface2);color:var(--text-muted);border:1px solid var(--border)}.btn-icon:hover{background:var(--primary-light);color:var(--primary);border-color:transparent}.fab{position:fixed;bottom:calc(24px + env(safe-area-inset-bottom,0px));right:calc(20px + env(safe-area-inset-right,0px));width:52px;height:52px;border-radius:16px;background:var(--primary);color:#fff;border:none;font-size:26px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(var(--primary-rgb),.42);z-index:50;cursor:pointer;transition:all var(--ease);-webkit-tap-highlight-color:transparent}.fab:hover{background:var(--primary-dark);transform:translateY(-2px);box-shadow:0 10px 28px rgba(var(--primary-rgb),.5)}.fab:active{transform:scale(.94)}.form-group{display:flex;flex-direction:column;gap:6px}.form-group+.form-group{margin-top:14px}.form-label{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted)}.form-control{width:100%;padding:11px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:15px;font-family:inherit;background:var(--input-bg);color:var(--text);outline:none;transition:border-color var(--ease),box-shadow var(--ease),background var(--ease);-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.1)}.form-control::placeholder{color:var(--text-muted);opacity:.45}select.form-control{cursor:pointer;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}textarea.form-control{resize:vertical;min-height:84px;line-height:1.55}.badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}.badge-high{background:#ffe4e8;color:#be123c}.badge-medium{background:#fef3c7;color:#b45309}.badge-low{background:#dcfce7;color:#16a34a}.badge-pending{background:var(--surface2);color:var(--text-muted)}.badge-in-progress{background:#dbeafe;color:#1d4ed8}.badge-done{background:#dcfce7;color:#16a34a}.badge-admin{background:#dbeafe;color:#1d4ed8}.badge-member{background:var(--surface2);color:#475569}.badge-guest{background:#f0fdf4;color:#16a34a}[data-theme=dark] .badge-high{background:#4c0519;color:#fda4af}[data-theme=dark] .badge-medium{background:#3d1f00;color:#fcd34d}[data-theme=dark] .badge-low{background:#052e16;color:#86efac}[data-theme=dark] .badge-pending{background:#1e293b;color:#94a3b8}[data-theme=dark] .badge-in-progress{background:#1e3a5f;color:#93c5fd}[data-theme=dark] .badge-done{background:#052e16;color:#86efac}[data-theme=dark] .badge-admin{background:#1e3a5f;color:#93c5fd}[data-theme=dark] .badge-member{background:#1e293b;color:#94a3b8}[data-theme=dark] .badge-guest{background:#052e16;color:#86efac}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#060d1b99;display:flex;align-items:flex-end;justify-content:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fadeIn .15s ease}.modal{background:var(--surface);border-radius:22px 22px 0 0;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;overflow-x:hidden;padding:0 20px;padding-bottom:max(32px,env(safe-area-inset-bottom));animation:slideUp .24s cubic-bezier(.32,.72,0,1);transition:background var(--ease);border:1px solid var(--border);border-bottom:none}@media (min-width: 768px){.modal-overlay{align-items:center}.modal{border-radius:var(--radius);max-height:88vh;width:500px;max-width:500px;padding:28px;border-bottom:1px solid var(--border);box-shadow:var(--shadow-lg);animation:popIn .2s cubic-bezier(.34,1.56,.64,1)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}.modal-handle{width:36px;height:4px;background:var(--border);border-radius:2px;margin:14px auto 20px}.modal-title{font-size:18px;font-weight:800;margin-bottom:20px;letter-spacing:-.3px}.modal-actions{display:flex;gap:10px;margin-top:22px}.modal-actions .btn{flex:1;padding:13px;font-size:15px}@media (min-width: 768px){.modal-handle{display:none}}.list-item{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}.list-item:last-child{border-bottom:none}.list-item-content{flex:1;min-width:0}.list-item-title{font-weight:600;font-size:15px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-item-sub{font-size:13px;color:var(--text-muted)}.tabs{display:flex;background:var(--surface2);border-radius:var(--radius-sm);padding:4px;margin-bottom:16px;gap:2px;border:1px solid var(--border);transition:background var(--ease)}.tab{flex:1;padding:8px 6px;text-align:center;font-size:12px;font-weight:700;cursor:pointer;border-radius:7px;color:var(--text-muted);border:none;background:none;font-family:inherit;transition:all var(--ease);white-space:nowrap}.tab.active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow)}.custom-checkbox{width:22px;height:22px;border-radius:7px;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all var(--ease);cursor:pointer}.custom-checkbox.checked{background:var(--success);border-color:var(--success)}.custom-checkbox.checked:after{content:"✓";color:#fff;font-size:13px;font-weight:800}.toggle-wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}.toggle{width:46px;height:26px;border-radius:13px;background:var(--border);position:relative;cursor:pointer;border:none;flex-shrink:0;transition:background var(--ease)}.toggle.on{background:var(--primary)}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform var(--ease)}.toggle.on:after{transform:translate(20px)}.toggle:disabled{opacity:.5;cursor:not-allowed}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--border);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:16px}.cal-day-header{background:var(--surface2);color:var(--text-muted);text-align:center;padding:9px 2px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}.cal-cell{background:var(--surface);min-height:54px;padding:6px 3px;cursor:pointer;transition:background var(--ease);display:flex;flex-direction:column;align-items:center;gap:2px}.cal-cell:hover,.cal-cell.other-month{background:var(--surface2)}.cal-cell.other-month .cal-num{color:var(--border)}.cal-cell.today .cal-num{background:var(--primary);color:#fff;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-weight:800}.cal-cell.selected{background:var(--primary-light);outline:2px solid var(--primary);outline-offset:-1px}.cal-num{font-size:12px;font-weight:600;line-height:1}.cal-dots{display:flex;gap:2px;flex-wrap:wrap;justify-content:center;margin-top:1px}.cal-dot{width:5px;height:5px;border-radius:50%}.cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cal-nav-title{font-size:16px;font-weight:800;letter-spacing:-.3px}@media (min-width: 768px){.cal-cell{min-height:72px}}.ann-card{padding:16px;background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow);margin-bottom:10px;transition:background var(--ease),border-color var(--ease)}.ann-card.pinned{border-left:3px solid var(--secondary)}.ann-meta{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;color:var(--text-muted)}.task-item{background:var(--surface);border-radius:var(--radius);padding:14px 16px;border:1px solid var(--border);box-shadow:var(--shadow);margin-bottom:10px;transition:background var(--ease),border-color var(--ease)}.task-item.done{opacity:.48}.task-header{display:flex;align-items:flex-start;gap:12px}.task-title{font-weight:600;font-size:15px;flex:1;word-break:break-word}.task-title.done{text-decoration:line-through;color:var(--text-muted)}.task-meta{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.shop-category{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);padding:14px 0 6px}.shop-item{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--border)}.shop-item:last-child{border-bottom:none}.shop-item.checked .shop-name{text-decoration:line-through;color:var(--text-muted)}.shop-name{flex:1;min-width:0;font-size:15px;overflow-wrap:break-word}.shop-qty{font-size:13px;color:var(--text-muted);white-space:nowrap}.member-card{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}.member-card:last-child{border-bottom:none}.member-info{flex:1;min-width:0}.member-name{font-weight:700;font-size:15px}.member-email{font-size:13px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:18px}.stat-card{background:var(--surface);border-radius:var(--radius);padding:18px 16px;border:1px solid var(--border);box-shadow:var(--shadow);text-align:center;cursor:pointer;transition:all var(--ease)}.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:rgba(var(--primary-rgb),.2)}.stat-card:active{transform:scale(.98)}.stat-num{font-size:34px;font-weight:900;line-height:1;letter-spacing:-1px}.stat-label{font-size:10px;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-top:6px}@media (min-width: 768px){.stats-grid{grid-template-columns:repeat(4,1fr)}}.empty-state{text-align:center;padding:52px 24px;color:var(--text-muted)}.empty-state-icon{font-size:52px;margin-bottom:14px}.empty-state-text{font-size:15px;font-weight:500}.login-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));background:linear-gradient(150deg,#0c1a35,#1e40af 55%,#2563eb)}@media (max-height: 680px){.login-wrap{justify-content:flex-start;padding-top:max(32px,env(safe-area-inset-top))}}.login-card{background:var(--surface);border-radius:24px;padding:28px 24px;width:100%;max-width:420px;flex-shrink:0;box-shadow:0 32px 80px #00000047,0 8px 24px #00000024;border:1px solid rgba(255,255,255,.06);transition:background var(--ease)}@media (min-width: 420px){.login-card{padding:36px 32px}}.login-logo{text-align:center;margin-bottom:28px}.login-logo-icon{width:68px;height:68px;border-radius:22px;background:var(--primary);margin:0 auto 16px;display:flex;align-items:center;justify-content:center;font-size:34px;box-shadow:0 8px 28px rgba(var(--primary-rgb),.45)}.login-logo h1{font-size:26px;font-weight:900;color:var(--text);letter-spacing:-.5px}.login-logo p{color:var(--text-muted);font-size:14px;margin-top:4px}.login-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:var(--text-muted);font-size:13px}.login-divider:before,.login-divider:after{content:"";flex:1;height:1px;background:var(--border)}.btn-guest{width:100%;background:var(--surface2);color:var(--text);border:1.5px solid var(--border);font-size:14px}.btn-guest:hover{background:var(--surface3);border-color:var(--text-muted)}.login-hint{text-align:center;font-size:12px;color:var(--text-muted);margin-top:18px;padding:10px 12px;background:var(--surface2);border-radius:var(--radius-sm);border:1px solid var(--border)}.error-msg{color:var(--danger);font-size:13px;text-align:center;padding:10px 12px;background:#ffe4e8;border-radius:var(--radius-sm);border:1px solid #fecdd3}[data-theme=dark] .error-msg{background:#4c0519;color:#fda4af;border-color:#9f1239}.success-msg{color:#065f46;font-size:13px;padding:10px 14px;background:#d1fae5;border-radius:var(--radius-sm);margin-bottom:14px;border:1px solid #a7f3d0}[data-theme=dark] .success-msg{background:#052e16;color:#86efac;border-color:#064e3b}.theme-selector{display:flex;gap:6px}.theme-btn{flex:1;padding:8px 4px;border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--surface2);color:var(--text);font-size:11px;font-weight:700;cursor:pointer;text-align:center;transition:all var(--ease);font-family:inherit}.theme-btn.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary)}.theme-btn:hover:not(.active){border-color:var(--text-muted)}.profile-section{padding:14px 0;border-bottom:1px solid var(--border)}.profile-section:last-child{border-bottom:none}.profile-section-title{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);margin-bottom:12px}.quick-action-btn{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;margin-bottom:6px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;transition:all var(--ease);text-align:left;font-family:inherit;-webkit-tap-highlight-color:transparent}.quick-action-btn:hover{background:var(--primary-light);border-color:var(--primary);color:var(--primary)}.quick-action-btn:last-child{margin-bottom:0}.quick-action-btn .qa-icon{font-size:18px;width:24px;text-align:center;flex-shrink:0}.notif-prompt-banner{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--primary-light);border:1.5px solid rgba(var(--primary-rgb),.22);border-radius:var(--radius);margin-bottom:16px}.notif-prompt-banner-text{flex:1;min-width:0}.notif-prompt-banner-title{font-weight:700;font-size:14px;margin-bottom:2px;color:var(--primary)}.notif-prompt-banner-sub{font-size:12px;color:var(--text-muted)}[data-theme=dark] .notif-prompt-banner{background:#60a5fa14;border-color:#60a5fa2e}.notif-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0}.notif-label{font-weight:600;font-size:14px}.notif-sub{font-size:12px;color:var(--text-muted);margin-top:2px;line-height:1.4}.notif-denied{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;background:#fefce8;border:1px solid #fde68a;border-radius:var(--radius-sm)}[data-theme=dark] .notif-denied{background:#1c1200;border-color:#78350f}.notif-denied-icon{font-size:18px;flex-shrink:0;margin-top:1px}.notif-denied strong{display:block;font-size:13px;font-weight:700;margin-bottom:3px}.notif-denied p{font-size:12px;color:var(--text-muted);line-height:1.5}.notif-test-btn{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;font-weight:600;color:var(--text-muted);background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-xs);padding:6px 12px;cursor:pointer;font-family:inherit;transition:all var(--ease)}.notif-test-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.drop-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:32px 16px;text-align:center;cursor:pointer;transition:all var(--ease);color:var(--text-muted)}.drop-zone:hover,.drop-zone.drag-over{border-color:var(--primary);background:var(--primary-light);color:var(--primary)}.drop-zone-icon{font-size:32px;margin-bottom:10px}.drop-zone-text{font-size:14px;font-weight:600}.drop-zone-sub{font-size:12px;margin-top:4px}.import-preview{max-height:240px;overflow-y:auto;border-radius:var(--radius-sm);border:1px solid var(--border)}.import-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--border);font-size:13px}.import-row:last-child{border-bottom:none}.import-row-title{font-weight:600;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.import-row-date{color:var(--text-muted);white-space:nowrap;font-size:12px}.import-source-btn{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;background:var(--surface2);border:1.5px solid var(--border);border-radius:var(--radius-sm);margin-bottom:8px;cursor:pointer;text-align:left;transition:all var(--ease);color:var(--text);font-family:inherit;-webkit-tap-highlight-color:transparent}.import-source-btn:last-child{margin-bottom:0}.import-source-btn:hover{border-color:var(--primary);background:var(--primary-light)}.import-source-btn .src-icon{font-size:24px;flex-shrink:0}.import-source-btn .src-label{font-weight:700;font-size:14px}.import-source-btn .src-hint{font-size:12px;color:var(--text-muted);margin-top:2px}.ann-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;margin-bottom:4px}.reaction-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:20px;font-size:13px;background:var(--surface2);border:1.5px solid var(--border);cursor:pointer;color:var(--text);font-family:inherit;transition:all var(--ease);-webkit-tap-highlight-color:transparent}.reaction-btn:hover{border-color:var(--primary);background:var(--primary-light)}.reaction-btn.mine{background:var(--primary-light);border-color:var(--primary);color:var(--primary)}.reaction-btn span{font-size:12px;font-weight:700}.reaction-picker-wrap{position:relative;display:inline-flex}.reaction-add-btn{width:30px;height:28px;border-radius:20px;background:var(--surface2);border:1.5px solid var(--border);color:var(--text-muted);font-size:15px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--ease);font-family:inherit}.reaction-add-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.reaction-picker{display:none;position:absolute;bottom:calc(100% + 6px);left:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:6px;gap:2px;flex-wrap:wrap;width:196px;z-index:60}.reaction-picker button{font-size:20px;padding:4px 6px;border:none;background:none;cursor:pointer;border-radius:6px;transition:background var(--ease);-webkit-tap-highlight-color:transparent}.reaction-picker button:hover{background:var(--surface2)}.reaction-picker-wrap:hover .reaction-picker,.reaction-picker-wrap:focus-within .reaction-picker{display:flex}.ann-image{width:100%;max-height:320px;object-fit:cover;border-radius:var(--radius-sm);cursor:zoom-in;border:1px solid var(--border)}.ann-image-preview{width:100%;max-height:200px;object-fit:cover;border-radius:var(--radius-sm);border:1px solid var(--border);display:block}.ann-image-remove{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#0000008c;color:#fff;border:none;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}.image-upload-label{display:flex;align-items:center;gap:8px;padding:11px 14px;border:1.5px dashed var(--border);border-radius:var(--radius-sm);cursor:pointer;font-size:14px;color:var(--text-muted);transition:all var(--ease)}.image-upload-label:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.autocomplete-list{position:absolute;top:100%;left:0;right:0;z-index:50;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);overflow:hidden;margin-top:2px}.autocomplete-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 14px;background:none;border:none;text-align:left;cursor:pointer;font-size:14px;font-family:inherit;color:var(--text);transition:background var(--ease)}.autocomplete-item:hover{background:var(--surface2)}.autocomplete-cat{font-size:11px;color:var(--text-muted);white-space:nowrap;margin-left:8px}.color-picker{display:flex;gap:8px;flex-wrap:wrap}.color-swatch{width:34px;height:34px;border-radius:50%;border:2.5px solid transparent;cursor:pointer;transition:all var(--ease);flex-shrink:0}.color-swatch:hover{transform:scale(1.12)}.color-swatch.selected{border-color:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 4px currentColor}.pref-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.pref-row:last-child{border-bottom:none}.pref-row-text{flex:1}.pref-row-label{font-size:14px;font-weight:600;margin-bottom:2px}.pref-row-desc{font-size:12px;color:var(--text-muted)}.flex{display:flex}.items-center{align-items:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.text-muted{color:var(--text-muted)}.text-sm{font-size:13px}.text-xs{font-size:11px}.font-bold{font-weight:700}.font-medium{font-weight:600}.w-full{width:100%}.text-center{text-align:center}.ml-auto{margin-left:auto}.section-title{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);margin-bottom:10px}.push-banner{background:var(--primary-light);border:1.5px solid var(--primary);border-radius:var(--radius-sm);padding:12px 14px;display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:13px}.info-tip{padding:10px 13px;background:var(--primary-light);border:1px solid rgba(var(--primary-rgb),.15);border-radius:var(--radius-sm);font-size:13px;color:var(--primary);line-height:1.5;margin-bottom:14px}[data-theme=dark] .info-tip{color:#93c5fd;border-color:#60a5fa26}.today-feed-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);cursor:pointer;transition:background var(--ease);border-radius:6px;margin:0 -4px;padding:11px 4px}.today-feed-item:last-child{border-bottom:none}.today-feed-item:hover{background:var(--surface2)}.today-feed-icon{width:36px;height:36px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:16px}.today-feed-content{flex:1;min-width:0}.today-feed-title{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.today-feed-sub{font-size:12px;color:var(--text-muted);margin-top:2px}.today-feed-time{font-weight:700;color:var(--primary)}.today-feed-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.today-overdue-banner{display:flex;align-items:center;gap:8px;padding:9px 12px;margin-bottom:8px;background:#fff1f2;border:1px solid #fda4af;border-radius:var(--radius-sm);font-size:13px;font-weight:600;color:#be123c}[data-theme=dark] .today-overdue-banner{background:#4c0519;border-color:#9f1239;color:#fda4af}.chore-today{border-color:var(--primary)!important}.chore-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}.chore-item:last-child{border-bottom:none}.chore-item.done{opacity:.5}.chore-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.chore-info{flex:1;min-width:0}.chore-title{font-size:14px;font-weight:600}.chore-title.done{text-decoration:line-through;color:var(--text-muted)}.chore-assignee{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--text-muted);margin-top:3px}.meal-grid{display:grid;grid-template-columns:1fr;gap:10px}@media (min-width: 480px){.meal-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 900px){.meal-grid{grid-template-columns:repeat(4,1fr)}}@media (min-width: 1200px){.meal-grid{grid-template-columns:repeat(7,1fr)}}.meal-day-card{background:var(--surface);border-radius:var(--radius-sm);border:1px solid var(--border);padding:10px;transition:background var(--ease)}.meal-day-card.today{border-color:var(--primary)}.meal-day-header{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);margin-bottom:8px}.meal-day-card.today .meal-day-header{color:var(--primary)}.meal-slot{margin-bottom:8px}.meal-slot:last-child{margin-bottom:0}.meal-slot-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.meal-entry{background:var(--surface2);border-radius:8px;padding:7px 9px}.meal-entry-title{font-size:13px;font-weight:600}.meal-entry-desc{font-size:11px;color:var(--text-muted);margin-top:2px}.meal-add-btn{width:100%;padding:6px;border:1.5px dashed var(--border);border-radius:8px;background:none;color:var(--text-muted);font-size:12px;cursor:pointer;transition:all var(--ease);font-family:inherit}.meal-add-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.budget-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.budget-card{border-radius:var(--radius-sm);padding:14px 12px;text-align:center;border:1px solid var(--border)}.budget-card.income{background:#f0fdf4;border-color:#86efac}.budget-card.expense{background:#fff1f2;border-color:#fda4af}.budget-card.balance-pos{background:var(--primary-light);border-color:rgba(var(--primary-rgb),.2)}.budget-card.balance-neg{background:#fff1f2;border-color:#fda4af}[data-theme=dark] .budget-card.income{background:#052e16;border-color:#166534}[data-theme=dark] .budget-card.expense{background:#4c0519;border-color:#9f1239}[data-theme=dark] .budget-card.balance-pos{background:#60a5fa14;border-color:#60a5fa33}[data-theme=dark] .budget-card.balance-neg{background:#4c0519;border-color:#9f1239}.budget-card-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);margin-bottom:6px}.budget-card-amount{font-size:20px;font-weight:800;letter-spacing:-.5px}.budget-card.income .budget-card-amount{color:#16a34a}.budget-card.expense .budget-card-amount{color:#be123c}.budget-card.balance-pos .budget-card-amount{color:var(--primary)}.budget-card.balance-neg .budget-card-amount{color:#be123c}.budget-cat-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}.budget-cat-row:last-child{margin-bottom:0}.budget-cat-name{font-size:13px;font-weight:600;width:90px;flex-shrink:0}.budget-cat-bar-wrap{flex:1;height:6px;background:var(--surface2);border-radius:3px;overflow:hidden}.budget-cat-bar{height:100%;background:var(--primary);border-radius:3px;transition:width .4s ease}.budget-cat-amt{font-size:13px;font-weight:700;width:60px;text-align:right;flex-shrink:0}.budget-entry-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--border)}.budget-entry-row:last-child{border-bottom:none}.budget-entry-type{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex-shrink:0}.budget-entry-type.income{background:#dcfce7;color:#16a34a}.budget-entry-type.expense{background:#ffe4e8;color:#be123c}[data-theme=dark] .budget-entry-type.income{background:#052e16;color:#86efac}[data-theme=dark] .budget-entry-type.expense{background:#4c0519;color:#fda4af}.budget-entry-info{flex:1;min-width:0}.budget-entry-desc{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.budget-entry-meta{font-size:12px;color:var(--text-muted)}.budget-entry-amount{font-size:14px;font-weight:700;white-space:nowrap;flex-shrink:0}.budget-entry-amount.income{color:#16a34a}.budget-entry-amount.expense{color:#be123c}.search-input{font-size:16px;padding:13px 42px 13px 16px}.search-clear-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-muted);font-size:20px;cursor:pointer;padding:4px;line-height:1}.search-section{margin-bottom:20px}.search-section-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);padding-bottom:8px;border-bottom:1px solid var(--border);margin-bottom:4px}.search-result-item{border-bottom:1px solid var(--border)}.search-result-item:last-child{border-bottom:none}.search-result-btn{width:100%;text-align:left;background:none;border:none;padding:11px 4px;cursor:pointer;font-family:inherit;transition:background var(--ease);border-radius:var(--radius-xs)}.search-result-btn:hover{background:var(--surface2)}.search-result-main{font-size:14px;font-weight:600;color:var(--text)}.search-result-sub{font-size:12px;color:var(--text-muted);margin-top:2px;text-transform:capitalize}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.heating-connection{margin-bottom:16px}.heating-connection h2,.heating-room h2{font-size:18px;margin:0 0 8px}.heating-detail{font-size:13px;line-height:1.6;color:var(--text-muted)}.heating-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.heating-room-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.heating-mode{font-size:12px;color:var(--text-muted)}.heating-temperature{font-size:38px;font-weight:800;margin:12px 0}.heating-controls{border:0;padding:0;margin:18px 0 0;min-width:0}.heating-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.heating-fields .form-control{margin-top:6px}.heating-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.heating-home-picker{max-width:380px;margin-top:16px}.heating-home-picker button{margin-top:8px}.heating-refresh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}
