/* Mango: a calm workspace with clear navigation and accessible controls. */
:root{--ink:#193e35;--green:#235c49;--orange:#f5ba59;--muted:#61766d;--line:#dce6df;--paper:#f3f6f2}
body{font-family:Inter,"Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,.button,input,select,textarea{border-radius:12px}button,.button{transition:background .16s,box-shadow .16s;min-height:40px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bd8a23;outline-offset:3px}
.primary{box-shadow:0 3px 9px #164b3320}.primary:hover{background:#194b3b}.logo{background:linear-gradient(145deg,#ffcf76,#edaa3e);box-shadow:0 3px 8px #c8861920;border-radius:14px}.brand{letter-spacing:-1.2px}
.app-header{background:#193e35;color:#f5f8f4;border:0;height:82px;gap:32px;box-shadow:0 2px 12px #153a2620;position:relative;z-index:10}.app-header .logo{color:#193e35}.app-header nav button{color:#dce9e1;background:transparent;font-size:14px;padding:11px 18px}.app-header nav button:hover{background:#ffffff12}.app-header nav button.active{background:#f6c66d;color:#243c30;box-shadow:0 2px 6px #0001}.header-account button{color:#e4eee8;background:#ffffff08;border-color:#ffffff24}.header-account button:hover{background:#ffffff18}
.chat-layout{grid-template-columns:320px minmax(0,1fr)}.chat-sidebar{padding:26px 16px;background:#fcfdfa}.list-heading{padding:0 6px;margin-bottom:22px}.list-heading h2{font-size:25px;letter-spacing:-.8px}#new-chat{width:42px;height:42px;border-radius:14px;background:#235c49;color:white;border:0;box-shadow:0 4px 10px #235c4920}.chat-sidebar>input{background:#eef3ee;border:1px solid transparent;padding:13px 15px;margin-bottom:20px}.chat-sidebar>input:focus{background:#fff;border-color:#91b39b}
.chat-item{padding:14px 12px;gap:12px;border-radius:15px;margin-bottom:6px;min-height:78px}.chat-item:hover{background:#f0f5ee}.chat-item.selected{background:#e6efdf;box-shadow:inset 3px 0 #39704b}.chat-item .avatar{width:46px;height:46px;border-radius:17px;background:#dae7d4;color:#2d5a3f}.chat-item .preview{margin-top:4px;color:#65746a;font-size:13px}.chat-item.selected .avatar{background:#c7daba}.conversation-header{min-height:85px;padding:18px 30px;background:#ffffffee}.conversation-header h2{font-size:19px;letter-spacing:-.4px}.conversation-header button{font-size:13px;min-height:40px}.conversation-header .small{font-size:12px}
#messages{background:radial-gradient(ellipse at 85% 10%,#f6e8c94d,transparent 50%),radial-gradient(ellipse at 10% 95%,#c9e2d14d,transparent 55%),#edf2ec;padding:28px max(24px,7%);gap:8px}#messages .message{padding:12px 34px 8px 14px;border-radius:18px 18px 18px 5px;box-shadow:0 2px 6px #1c422b09;max-width:min(78%,560px)}#messages .message.mine{background:#d9eacb;border-radius:18px 18px 5px 18px}#messages .body{line-height:1.55}#messages .meta{color:#546c57;font-size:11px}.day-divider{background:#fff9;box-shadow:0 1px 3px #00000008;color:#536b5b}.message-menu>summary{width:30px;line-height:30px}.message-menu .message-actions{padding:7px;box-shadow:0 12px 36px #153a2626}.message-reactions button{min-height:30px}.voice-play{min-height:40px;background:#2e6349}.voice-time{color:#425e4a;font-size:11px}.voice-transcript summary{padding:5px 0}
#composer{background:#edf2ec;padding:14px max(20px,7%) 20px}.compose-row{border:1px solid #d9e4da;border-radius:22px;padding:8px;box-shadow:0 5px 20px #1f422c0b}.compose-row:focus-within{border-color:#8fab93;box-shadow:0 0 0 3px #4c825c10}.compose-row textarea:focus{outline:none}.compose-row .attach,.compose-row #emoji,.compose-row #microphone,.compose-row button[type=submit]{width:44px;height:44px;min-height:44px}.compose-row button[type=submit]{background:#235c49}.compose-row #microphone:hover,.compose-row .attach:hover,.compose-row #emoji:hover{background:#eef4e9}
.tasks-shell{max-width:1500px;margin:auto}.task-filters{padding:16px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:24px}.task-card{border-radius:18px!important;box-shadow:0 4px 16px #1e412a08}.auth-card{padding:36px;border-radius:26px;box-shadow:0 20px 70px #193e3510}.auth-shell>.brand{margin-bottom:28px}.auth-card h1{letter-spacing:-1px}dialog{border:1px solid #e2e9e1;box-shadow:0 30px 100px #16322240;border-radius:24px}dialog::backdrop{background:#142c26a6;backdrop-filter:blur(5px)}#modal-close{min-width:40px;min-height:40px}#toast{border:1px solid #ffffff20;box-shadow:0 8px 28px #102c3033}
#boards-screen .board-hero{background:linear-gradient(115deg,#193e35,#2f614c);box-shadow:0 10px 30px #193e3512}#boards-screen .kanban-grid{background:#eaf0e8;border-color:#dae5d7}#boards-screen .kanban-card{border-radius:16px;padding:18px;box-shadow:0 3px 12px #193e3508}.kanban-column>button{min-height:42px}
@media(min-width:1500px){.chat-layout{grid-template-columns:360px minmax(0,1fr)}#messages,#composer{padding-left:max(32px,12%);padding-right:max(32px,12%)}}
@media(max-width:1000px) and (min-width:701px){.app-header{gap:18px;padding:18px 22px}.app-header nav button{padding:10px 12px}.chat-layout{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:700px){.app-header{height:auto;gap:12px;padding:14px 14px 10px}.app-header nav{width:100%;overflow-x:auto}.app-header nav button{min-height:42px}.header-account button{min-height:40px}.chat-layout{grid-template-columns:minmax(0,1fr);height:auto;min-height:calc(100dvh - 136px);grid-template-rows:auto minmax(420px,1fr)}.chat-sidebar{max-height:225px;padding:12px}.chat-sidebar>input{display:block;margin:8px 0;padding:9px 12px}.chat-sidebar>.list-heading{margin:0}.list-heading h2{font-size:21px}.chat-item{min-width:180px;min-height:66px;margin:0 6px 0 0;padding:9px}.chat-item .avatar{width:36px;height:36px;border-radius:12px}.conversation{min-height:65dvh}.conversation-header{padding:12px;min-height:74px;gap:8px;flex-wrap:wrap}.conversation-header h2{font-size:17px}.conversation-header button{padding:8px 12px}#messages{padding:18px 12px;max-height:65dvh;min-height:260px}#messages .message{max-width:94%}#composer{padding:10px 10px max(12px,env(safe-area-inset-bottom))}.compose-row{padding:5px;gap:1px}.compose-row .attach,.compose-row #emoji,.compose-row #microphone,.compose-row button[type=submit]{width:40px;height:44px}.compose-row textarea{min-width:0;font-size:16px}.tasks-heading{gap:12px}.task-filters{padding:12px}.auth-card{padding:26px}.image-album img{height:135px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Compact board and a keyboard-accessible task drawer. */
.app-header nav button.nav-icon{position:relative;min-width:48px;width:48px;height:46px;padding:11px;flex-shrink:0}.nav-icon svg{display:block;width:24px;height:24px}.nav-count{position:absolute;right:0;top:0;min-width:17px;height:17px;padding:0 3px;border-radius:9px;background:#e9b85a;color:#193e35;font-size:10px;line-height:17px;font-weight:750;border:1px solid #193e35}
.call-actions{display:flex;gap:6px}.call-actions button{min-width:42px;font-size:20px}.call-frame{width:100%;height:75dvh;border:0;border-radius:16px;background:#102b25}dialog.call-dialog{width:min(1100px,96vw);max-height:96dvh;padding:18px}
#boards-screen .board-hero{padding:18px 24px;align-items:center;border-radius:18px;margin-bottom:16px}
#boards-screen .board-hero h1{font-size:25px;margin:8px 0;letter-spacing:-.6px}
#boards-screen .board-eyebrow{display:none}#boards-screen .board-summary{margin:0;font-size:12px}
#boards-screen .board-tools{margin:0;gap:6px}#boards-screen .board-tools button{padding:8px 12px}
#boards-screen .task-filters{margin-bottom:10px}
.board-quick-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.filter-chip{border-radius:24px;background:white;font-size:13px;padding:8px 14px}.filter-chip[aria-pressed=true]{background:#235c49;color:white;border-color:#235c49}
.filter-summary{color:#61766d;font-size:12px;margin-left:auto}.filter-reset{border:0;background:transparent;font-size:12px;text-decoration:underline}
#boards-screen .kanban-card .due{display:inline-block;border-radius:7px;padding:4px 7px;background:#edf3e8;color:#456048;margin:8px 0;font-size:11px}
#boards-screen .kanban-card .due.overdue{background:#fbe9e4;color:#993624}
#boards-screen .kanban-people{flex-wrap:wrap;gap:6px}.kanban-people .small{margin-right:auto}
dialog.task-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(540px,92vw);height:100dvh;max-height:100dvh;border-radius:22px 0 0 22px;padding:24px;overflow-y:auto}
dialog.task-drawer::backdrop{background:#142c2640;backdrop-filter:none}
dialog.task-drawer label.member{flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}dialog.task-drawer label.member input{width:auto;min-width:18px;min-height:18px}
dialog.task-drawer .modal-head{position:sticky;top:-24px;background:#fff;padding:16px 0;z-index:2;border-bottom:1px solid var(--line)}
@media(max-width:700px){#boards-screen .board-hero{padding:16px}#boards-screen .board-hero h1{font-size:23px}#boards-screen .board-tools{margin-top:12px;display:flex;flex-wrap:wrap}.filter-summary{width:100%;margin:0}.board-quick-filters{gap:6px}.filter-chip{font-size:12px;padding:8px 12px}dialog.task-drawer{width:100vw;max-width:100vw;border-radius:0;padding:20px}dialog.task-drawer .modal-head{top:-20px}#boards-screen .kanban-column{flex-basis:calc(100vw - 68px);min-width:calc(100vw - 68px)}}

/* Shared Mango identity: match the adaptive Android icon. */
img.brand-mark{display:block;width:40px;height:40px;flex:none;background:transparent;box-shadow:none;border-radius:12px;object-fit:contain}
