*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--color-bg: #f2f1ec;--color-surface: #ffffff;--color-surface-2: #e8e7e2;--color-border: #dddbd4;--color-primary: #2d5a27;--color-primary-hover: #245220;--color-text: #1c1c1c;--color-text-muted: #6b6b6b;--color-success: #2d5a27;--color-warning: #c8790a;--color-danger: #c0392b;--color-info: #2563eb;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 10px;--sidebar-width: 280px;--topbar-height: 56px;font-family:Inter,system-ui,-apple-system,sans-serif}html,body,#app{height:100%;background:var(--color-bg);color:var(--color-text);overflow:hidden;-webkit-font-smoothing:antialiased}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-text-muted)}a{color:inherit;text-decoration:none}button{cursor:pointer;border:none;background:none;font-family:inherit;font-size:inherit;color:inherit}input,textarea,select{font-family:inherit;font-size:14px;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:8px 12px;outline:none;transition:border-color .15s;width:100%}input:focus,textarea:focus,select:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #2d5a2714}input::placeholder,textarea::placeholder{color:#aaa}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:var(--radius-sm);font-weight:500;font-size:14px;transition:all .15s;white-space:nowrap;letter-spacing:.01em}.btn-primary{background:var(--color-primary);color:#fff;border:1px solid var(--color-primary)}.btn-primary:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.btn-ghost{background:transparent;color:var(--color-text-muted);border:1px solid var(--color-border)}.btn-ghost:hover{background:var(--color-bg);color:var(--color-text);border-color:#bbb}.btn-danger{background:transparent;color:var(--color-danger);border:1px solid transparent}.btn-danger:hover{background:#c0392b0f}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--color-primary);color:#fff;font-size:11px;font-weight:600}.avatar{width:36px;height:36px;border-radius:50%;background:var(--color-primary);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;flex-shrink:0;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:28px 32px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;box-shadow:0 12px 40px #0000001f}.modal-title{font-size:18px;font-weight:600;margin-bottom:20px}.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.form-group label{font-size:13px;color:var(--color-text-muted);font-weight:500}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.priority-urgent{color:var(--color-danger)}.priority-high{color:var(--color-warning)}.priority-medium{color:var(--color-info)}.priority-low,.status-todo{color:var(--color-text-muted)}.status-in_progress{color:var(--color-info)}.status-review{color:var(--color-warning)}.status-done{color:var(--color-success)}:root{--color-primary-dark: #1b3a2d;--color-primary-dark-alt: #2d6b4a;--mobile-tabbar-height: 70px;--mobile-pad-top: max(env(safe-area-inset-top, 0px), 42px);--mobile-pad-bottom: max(env(safe-area-inset-bottom, 0px), 18px)}.mobile-tabbar{display:none}.mobile-only{display:none!important}@media(max-width:768px){.mobile-only{display:revert!important}.mobile-only.inline-flex{display:inline-flex!important}.desktop-only{display:none!important}.app-shell{flex-direction:column!important}.app-shell>.sidebar{display:none!important}.app-shell>.main-content{flex:1;min-height:0;padding-bottom:calc(var(--mobile-tabbar-height) + var(--mobile-pad-bottom))}.mobile-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;justify-content:space-around;align-items:stretch;background:#fff;border-top:1px solid #eeeeee;box-shadow:0 -1px 4px #0000000d;padding:8px 0 var(--mobile-pad-bottom) 0;z-index:900;height:calc(var(--mobile-tabbar-height) + var(--mobile-pad-bottom))}.mobile-tabbar .tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:transparent;border:none;color:#9ca3af;font-size:10px;font-weight:500;letter-spacing:0;text-transform:none;padding:4px 8px;position:relative;cursor:pointer;min-width:0}.mobile-tabbar .tab.active{background:transparent;color:var(--color-primary-dark);font-weight:700}.mobile-tabbar .tab .badge{position:absolute;top:2px;right:calc(50% - 20px);min-width:16px;height:16px;padding:0 5px;border-radius:8px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff}.chat-layout{display:block!important;height:100%}.chat-layout .rooms-sidebar{width:100%!important;border-right:none!important;height:100%}.chat-layout .rooms-header{background:var(--color-primary-dark)!important;color:#fff;border-bottom:none!important;padding:calc(var(--mobile-pad-top) + 10px) 16px 12px 16px!important}.chat-layout .rooms-header .rooms-title{color:#fff!important;font-size:22px!important;font-weight:700!important;line-height:1.2}.chat-layout .rooms-header .icon-btn{color:#fff;border:none;background:transparent;width:32px;height:32px;padding:0}.chat-layout .rooms-search{background:var(--color-primary-dark);padding:0 16px 12px}.chat-layout .rooms-search input{background:#f0f0f0;border:none!important;color:#111;border-radius:10px;height:36px;font-size:14px;padding:0 12px}.chat-layout .rooms-search input::placeholder{color:#9a9a9a}.chat-layout .rooms-list{padding:0;background:#fff}.chat-layout .room-item{padding:12px 16px;border-radius:0;border-bottom:1px solid #f0f0f0;display:flex;gap:12px;align-items:center}.chat-layout .room-item.active{background:#1b3a2d0f}.chat-layout .room-avatar .avatar{width:48px;height:48px;font-size:17px;background:var(--color-primary-dark-alt)}.chat-layout .room-info{flex:1;min-width:0}.chat-layout .room-name-row{align-items:baseline}.chat-layout .room-name{font-size:17px!important;font-weight:600!important;color:#111!important}.chat-layout .room-time{font-size:12px!important;color:#9ca3af!important}.chat-layout .room-bottom-row{margin-top:4px}.chat-layout .room-preview{font-size:14px!important;color:#6b7280!important}.chat-layout .room-item .unread-badge{background:var(--color-primary-dark-alt);color:#fff;min-width:20px;height:20px;border-radius:10px;padding:0 6px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.chat-layout .chat-area{position:fixed;top:0;right:0;bottom:0;left:0;bottom:calc(var(--mobile-tabbar-height) + var(--mobile-pad-bottom));background:#f5f5f1;z-index:800;display:flex;flex-direction:column}.chat-layout .chat-empty{display:none!important}.chat-layout.has-active-room .rooms-sidebar{display:none}.chat-layout .chat-header{background:var(--color-primary-dark)!important;color:#fff;padding:var(--mobile-pad-top) 12px 10px 12px!important;gap:10px!important;border-bottom:none!important}.chat-layout .chat-header .chat-header-name{color:#fff;font-size:16px;font-weight:600}.chat-layout .chat-header .chat-header-meta{color:#ffffffb3;font-size:12px}.chat-layout .chat-header .icon-btn{color:#fff;border-color:transparent}.chat-layout .chat-header .avatar{width:36px!important;height:36px!important;font-size:14px;border:2px solid #fff}.chat-layout .chat-header .back-btn{width:32px;height:32px;padding:0;border:none;background:transparent}.chat-layout .messages-area{padding:12px;background:#f5f5f1}.chat-layout .message{max-width:85%}.chat-layout .message-input-area{padding:8px 10px}.tasks-view{padding:0!important;overflow-y:auto!important;background:#f5f5f3}.tasks-view .tasks-header{position:sticky;top:0;z-index:10;background:var(--color-primary-dark);color:#fff;padding:calc(var(--mobile-pad-top) + 8px) 16px 14px 16px;flex-direction:column;align-items:stretch;gap:10px}.tasks-view .tasks-header h2{font-size:22px;font-weight:700;color:#fff}.tasks-view .tasks-filters{display:flex;gap:10px;align-items:stretch}.tasks-view .tasks-header select{background:#ffffff1f;border:none;color:#fff;height:36px;border-radius:8px;padding:0 10px;font-size:13px}.tasks-view .tasks-header .btn-primary{background:#fff;color:var(--color-primary-dark);border-color:#fff;border-radius:18px;padding:0 14px;font-size:13px}.tasks-view .tasks-header .btn-primary svg{stroke:var(--color-primary-dark)}.tasks-view .mobile-stats{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px 0}.tasks-view .stat-card{background:#fff;border-radius:10px;padding:12px;box-shadow:0 1px 3px #0000000d;cursor:pointer;border-left:3px solid transparent;transition:transform .1s}.tasks-view .stat-card:active{transform:scale(.98)}.tasks-view .stat-card.stat-todo{border-left-color:#9ca3af}.tasks-view .stat-card.stat-progress{border-left-color:#3b82f6}.tasks-view .stat-card.stat-review{border-left-color:#f59e0b}.tasks-view .stat-card.stat-done{border-left-color:#10b981;background:#e8f5e9}.tasks-view .stat-value{font-size:24px;font-weight:700;color:#111;line-height:1}.tasks-view .stat-label{font-size:12px;color:#6b7280;margin-top:4px}.tasks-view .mobile-sort-row{display:flex!important;justify-content:space-between;align-items:center;padding:12px 16px 8px;font-size:13px;color:#6b7280}.tasks-view .mobile-sort-row .sort-reset{background:transparent;border:1px solid #d1d5db;color:#6b7280;border-radius:6px;padding:4px 10px;font-size:12px}.tasks-view .mobile-flat-list{display:flex!important;flex-direction:column;gap:8px;padding:0 16px 16px}.tasks-view .mobile-flat-list .task-card{background:#fff;border-radius:10px;padding:12px;box-shadow:0 1px 3px #0000000d;cursor:pointer}.tasks-view .mobile-empty{text-align:center;color:#9ca3af;padding:40px 16px}.tasks-view .tasks-columns{display:none!important}.calendar-view{padding:0!important;background:#f5f5f3}.calendar-view .calendar-header{background:var(--color-primary-dark);color:#fff;padding:calc(var(--mobile-pad-top) + 4px) 16px 12px 16px;border-bottom:none!important;justify-content:center}.calendar-view .calendar-header .calendar-h-title{color:#fff;font-size:17px;font-weight:700;margin:0}.calendar-view .calendar-month-nav{display:flex!important;align-items:center;justify-content:space-between;height:48px;padding:0 16px;background:#fff;border-bottom:1px solid #f0f0ee}.calendar-view .month-nav-btn{background:transparent;border:none;color:#444;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.calendar-view .month-nav-label{font-size:17px;font-weight:700;color:#111}.calendar-view .calendar-grid{border:none!important;border-radius:0!important;background:#fff!important;margin:0 8px 8px;gap:0!important;padding:0}.calendar-view .day-label{background:#fff;font-size:11px;padding:8px 2px;color:#6b7280;border-bottom:1px solid #f0f0ee}.calendar-view .calendar-day{background:#fff;padding:6px 2px 4px;min-height:54px;min-width:0;font-size:11px;overflow:hidden;border-right:1px solid #f5f5f3;border-bottom:1px solid #f5f5f3;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}.calendar-view .calendar-day .day-number{font-size:14px;font-weight:500;color:#111;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:50%}.calendar-view .calendar-day.other-month .day-number{color:silver}.calendar-view .calendar-day.today .day-number{background:var(--color-primary-dark);color:#fff}.calendar-view .calendar-day.selected:not(.today) .day-number{background:var(--color-primary-dark-alt);color:#fff}.calendar-view .calendar-day .day-dots{display:flex;gap:3px;margin-top:2px;justify-content:center;flex-wrap:nowrap}.calendar-view .calendar-day .day-dot{width:5px;height:5px;border-radius:50%;background:var(--color-primary-dark-alt);display:inline-block}.calendar-view .calendar-day .day-dot.done{background:#10b981}.calendar-view .calendar-day .day-dot.overdue,.calendar-view .calendar-day .day-dot.priority-urgent{background:#ef4444}.calendar-view .calendar-day .day-dot.priority-high{background:#f59e0b}.calendar-view .calendar-day .day-dot.priority-medium{background:var(--color-primary-dark-alt)}.calendar-view .calendar-day .day-dot.priority-low{background:#9ca3af}.calendar-view .mobile-day-panel{display:flex!important;flex-direction:column;background:#fff;margin:8px;border-radius:10px;box-shadow:0 1px 3px #0000000d;overflow:hidden;max-height:40vh}.calendar-view .mobile-day-panel-header{padding:12px 16px;font-size:14px;font-weight:600;color:#111;text-transform:capitalize;border-bottom:1px solid #f0f0ee;display:flex;justify-content:space-between;align-items:center}.calendar-view .mobile-day-panel-count{background:var(--color-primary-dark);color:#fff;min-width:22px;height:22px;border-radius:11px;padding:0 7px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.calendar-view .mobile-day-panel-body{overflow-y:auto;display:flex;flex-direction:column}.calendar-view .mobile-day-event{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #f5f5f3;cursor:pointer}.calendar-view .mobile-day-event:last-child{border-bottom:none}.calendar-view .mobile-day-event-dot{width:8px;height:8px;border-radius:50%;background:var(--color-primary-dark-alt);flex-shrink:0}.calendar-view .mobile-day-event-dot.done{background:#10b981}.calendar-view .mobile-day-event-dot.overdue,.calendar-view .mobile-day-event-dot.priority-urgent{background:#ef4444}.calendar-view .mobile-day-event-dot.priority-high{background:#f59e0b}.calendar-view .mobile-day-event-body{flex:1;min-width:0}.calendar-view .mobile-day-event-title{font-size:14px;font-weight:500;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-view .mobile-day-event-time{font-size:12px;color:#6b7280;margin-top:2px}.calendar-view .mobile-day-panel-empty{padding:24px 16px;text-align:center;color:#9ca3af;font-size:13px}.email-view{display:block!important}.email-view .email-sidebar{width:100%!important;border-right:none!important}.email-view .email-sidebar-header{background:var(--color-primary-dark);color:#fff;padding:calc(var(--mobile-pad-top) + 8px) 16px 12px 16px}.email-view .email-detail{position:fixed;top:0;right:0;bottom:0;left:0;bottom:calc(var(--mobile-tabbar-height) + var(--mobile-pad-bottom));background:var(--color-bg);z-index:800}.email-view .email-empty{display:none}.settings-view .settings-header{padding:calc(var(--mobile-pad-top) + 4px) 16px 12px 16px!important}.toast-container{left:8px;right:8px;bottom:calc(var(--mobile-tabbar-height) + var(--mobile-pad-bottom) + 8px)!important}.toast{min-width:0!important;max-width:none!important}.modal{border-radius:var(--radius-md);padding:20px}.settings-modal{width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;border-radius:0!important;flex-direction:column!important}.settings-modal .settings-sidebar{width:100%!important;flex-direction:row!important;overflow-x:auto;padding:0!important;padding-top:calc(var(--mobile-pad-top) + 4px)!important;flex-shrink:0}.settings-modal .settings-logo{display:none}.settings-modal .settings-tab{flex-shrink:0;border-radius:0!important}.settings-modal .settings-content{padding:16px!important}.modal-overlay:has(.settings-modal){padding:0!important;align-items:stretch}}
