@font-face{font-family:Outfit;src:url('assets/outfit-regular.ttf')}@font-face{font-family:Outfit;src:url('assets/outfit-bold.ttf');font-weight:700}
:root{color-scheme:dark;--bg:#090a16;--surface:#171a2d;--input:#21243b;--text:#f7f7ff;--muted:#b7b9d0;--dim:#999db9;--line:#383d58;--pink:#ed1768;--blue:#7dbaff;--green:#8fe6c4;--red:#ff87b1;--purple:#b99bff;--shadow:#0006;font-family:Outfit,-apple-system,BlinkMacSystemFont,sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 85%,#142b614d,transparent 55%),radial-gradient(ellipse at 85% 15%,#53164e40,transparent 60%),var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}a{color:var(--blue)}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:hover:not(:disabled){filter:brightness(1.15)}input::placeholder,textarea::placeholder{color:var(--dim)}textarea{resize:none}.phone{position:relative;display:flex;flex-direction:column;height:calc(100dvh - 40px);max-height:1100px;width:550px;max-width:100%;margin:20px auto;border:1px solid #39374f;border-radius:26px;background:#101124;overflow:hidden;box-shadow:0 35px 100px var(--shadow);transition:width .2s}.phone.wide{width:960px}.app-header{height:83px;flex:none;display:grid;grid-template-columns:50px 1fr 50px;align-items:center;padding:10px 16px;background:linear-gradient(120deg,#18213b,#21162f);border-bottom:1px solid #453957}.brand{display:flex;align-items:center;flex-direction:column;justify-content:center}.brand img{width:133px;height:41px;object-fit:contain}.brand>span{font-size:11px;letter-spacing:1.8px;margin-top:2px;color:#c4c0d6}.round-btn{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#d7d6e9;font-size:27px}.round-btn:hover{background:#ffffff0a}.round-btn svg,.send-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.round-btn.small{width:34px;height:34px}.profile-button{padding:0;justify-self:end}.avatar{display:grid;place-items:center;border-radius:50%;width:29px;height:29px;flex:none;font-size:10px;font-weight:700;overflow:hidden;color:#f6e9ff;background:linear-gradient(145deg,#7359ac,#303a68);border:1px solid #bda0e644}.avatar.julian{background:linear-gradient(145deg,#367fbb,#3c345b)}.avatar img{width:100%;height:100%;object-fit:cover}.profile-button .avatar{width:36px;height:36px;font-size:12px;border:2px solid #ac7dbb7d}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;padding:9px 15px;gap:5px;background:#131426;border-bottom:1px solid #292840}.filter-pills{display:flex;gap:6px}.filter-pills button{font-size:12px;padding:7px 11px;border-radius:20px;color:var(--muted);min-height:33px}.filter-pills button.active{color:#ffe7f3;background:linear-gradient(120deg,#5b244c,#342547);box-shadow:inset 0 0 0 1px #9e567d50}.filter-pills span:not(:empty){font-size:10px;margin-left:3px;opacity:.85}.search-row{display:flex;padding:8px 15px;gap:8px;background:#131426}.search-row input{flex:1;min-width:0;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px 12px;outline:none}#context-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 18px;background:#242038;font-size:12px;color:#dfcce9}#context-bar button{font-size:20px}.chat-scroll{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#45405c transparent;background-image:linear-gradient(#11122516,#10112460),url('assets/chat-pattern.svg');background-size:auto,340px 340px;scroll-behavior:auto;overflow-anchor:none}.timeline{padding:20px 15px 26px;display:flex;flex-direction:column;gap:15px;min-height:100%}.day-label{align-self:center;margin:5px 0 8px;font-size:10px;color:#bbb8d0;background:#282539d9;border:1px solid #413853;border-radius:8px;padding:5px 12px;backdrop-filter:blur(8px)}.chat-row{display:flex;gap:7px;align-items:flex-end;max-width:91%;width:fit-content;align-self:flex-start;scroll-margin:18px}.chat-row.outgoing{align-self:flex-end;flex-direction:row-reverse}.chat-row>.avatar{margin-bottom:2px}.bubble{position:relative;min-width:0;max-width:100%;border:1px solid #ac78b64a;border-radius:5px 19px 19px 19px;padding:13px 14px 9px;background:radial-gradient(ellipse at top left,var(--type-start) 0,transparent 90%),linear-gradient(140deg,#252841,var(--area-end));box-shadow:0 4px 16px #06061644;overflow:hidden}.outgoing .bubble{border-radius:19px 5px 19px 19px}.type-decision{--type-start:#801c4dcc;--type-color:#ffa2c0;--type-border:#dc528655}.type-info{--type-start:#194b8bcc;--type-color:#a4d7ff;--type-border:#4b98cb55}.type-task{--type-start:#17674fcc;--type-color:#a7f3cf;--type-border:#4ca88755}.area-communication{--area-end:#432458}.area-management{--area-end:#203d69}.area-general{--area-end:#343057}.chat-row .bubble{border-color:var(--type-border,#514764)}.bubble-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:10px;color:#ece3f5}.sender{font-size:12px;font-weight:700;color:#fff}.sender .department{font-weight:400;font-size:10px;color:#ddd3ec;display:block;margin-top:1px}.kind{color:var(--type-color);display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap;font-weight:700}.bubble h2{font-size:17px;line-height:1.35;letter-spacing:-.2px;font-weight:700;margin:4px 0 9px}.message-text{font-size:14px;line-height:1.5;color:#f0eef8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.body-fold{margin:9px 0;color:#dfd3ec;font-size:12px}.body-fold summary{cursor:pointer;list-style:none;font-size:11px;color:#d9cce5}.body-fold summary::before{content:'＋ ';}.body-fold[open] summary::before{content:'− ';}.body-fold .message-text{font-size:13px;margin-top:7px;line-height:1.55}.bubble-foot{display:flex;justify-content:flex-end;align-items:center;gap:6px;color:#d3c8e2;margin-top:8px;font-size:9px}.checks{color:#b8b4cb;font-size:13px;letter-spacing:-4px;padding-right:4px;line-height:1}.checks.seen{color:#80d5ff}.received-marker{width:5px;height:5px;border-radius:50%;background:#9fdaff;margin-left:1px}.poll{display:flex;flex-direction:column;gap:5px;margin:12px 0 8px}.poll-option{position:relative;display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:1px solid #ffffff20;border-radius:8px;padding:11px 10px;color:#f7f4fc;font-size:13px;background:#ffffff09;min-height:44px}.poll-option:enabled:hover{background:#ffffff1c}.poll-option .radio{width:18px;height:18px;border:1.5px solid #eccee8a6;border-radius:50%;flex:none;display:grid;place-items:center;font-size:11px}.poll-option.chosen{background:#ffb9da22;border-color:#f99fc66e}.poll-option.chosen .radio{background:#ffcee4;color:#672447;border-color:#ffcee4}.poll-option.unselected{opacity:.58}.poll-hint{display:block;color:#e4cadd;font-size:10px;margin:7px 0 2px}.task-actions{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0 6px}.task-actions button,.ack-btn{min-height:40px;padding:9px 12px;background:#ffffff13;border:1px solid #ffffff25;border-radius:8px;font-size:12px}.task-actions .finish{background:#89e7b82b;border-color:#a4f4c94d}.ack-btn{margin-top:11px;min-height:36px;font-size:11px}.inline-status{font-size:11px;margin:11px 0 5px;color:#c1f6d7}.inline-status.pending{color:#e2d3ed}.reply-link{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;border-top:1px solid #ffffff19;margin-top:11px;padding:10px 0 2px;font-size:11px;color:#e0d5ec;text-align:left}.reply-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}.reply-link>span{display:flex;align-items:center;gap:6px}.reply-link .chevron{font-size:16px;color:#cbbfdf}.reply-update .bubble{background:linear-gradient(135deg,#2b2b48,#30233e);border-color:#75628a60}.reply-update .quote,.event-update .quote{display:block;text-align:left;border-left:2px solid #c48ab0;padding:4px 8px;margin:0 0 9px;color:#d8cbe5;font-size:11px;max-width:100%;background:#ffffff04;border-radius:3px}.reply-update .quote strong,.event-update .quote strong{font-size:11px;display:block;white-space:normal;overflow-wrap:anywhere}.reply-update .quote span,.event-update .quote span{display:block;margin-top:3px;font-size:9px;color:#bab0ce}.reply-update .message-text{font-size:13px}.event-update .bubble{background:linear-gradient(130deg,#183e3d,#282b48);border-color:#568e7b50}.event-text{color:#c7f9dc;font-size:13px;line-height:1.5}.file-list{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.file-link{color:#d5eaff;font-size:11px;border:1px solid #ffffff25;border-radius:8px;padding:8px;text-decoration:none;overflow-wrap:anywhere;max-width:100%;display:block;background:#0001}.file-link img{width:180px;max-width:100%;max-height:160px;object-fit:contain;display:block;margin-bottom:5px;border-radius:5px}.quick-composer{flex:none;display:flex;align-items:flex-end;gap:8px;padding:11px 13px max(13px,env(safe-area-inset-bottom));background:#17182b;border-top:1px solid #37314c}.quick-input{flex:1;min-width:0;display:flex;align-items:center;border:1px solid #48405c;border-radius:22px;background:#242439;padding:3px 10px;gap:7px}.quick-input:focus-within{border-color:#b774ae}.quick-type{color:#aa91c3;font-size:16px}.quick-input textarea{font-family:inherit;background:none;color:var(--text);outline:none;border:0;padding:9px 0;flex:1;width:100%;min-width:0;max-height:100px;font-size:14px;line-height:1.5;margin:0}.attach-button,.send-button{height:42px;width:42px;display:grid;place-items:center;border-radius:50%;flex:none}.attach-button{font-size:27px;color:#d0c1e5}.send-button{background:linear-gradient(140deg,#ed1768,#754cbb);color:white;box-shadow:0 3px 12px #bb1b6833}.send-button svg{stroke-width:2.2}.jump-bottom{position:absolute;right:17px;bottom:85px;border:1px solid #685075;background:#30253eea;backdrop-filter:blur(10px);box-shadow:0 5px 15px #0006;border-radius:50%;width:37px;height:37px;font-size:22px;z-index:3}.breakout{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:#101124}.thread-top{display:flex;align-items:center;gap:7px;padding:15px 12px;background:linear-gradient(120deg,#19223c,#2a1937);border-bottom:1px solid #493651;flex:none;min-height:83px}.thread-top>div{flex:1;min-width:0}.thread-top h1{font-size:14px;line-height:1.3;margin:3px 0 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.thread-top>button{font-size:37px;font-weight:400;flex:none}.thread-top #thread-type{font-size:10px;color:#c7abd9}.thread-top #thread-avatar{padding:0 6px}.thread-top .avatar{width:32px;height:32px}.empty{margin:auto;padding:50px 24px;text-align:center;font-size:13px;color:var(--muted);line-height:1.7}.empty strong{display:block;font-size:17px;color:var(--text);margin-bottom:5px}.empty .empty-mark{font-size:30px;margin-bottom:12px;color:#cbb5e6}.quiet{padding:9px;color:var(--muted);font-size:12px;border-radius:8px}.primary{color:white;font-weight:700;background:linear-gradient(120deg,#d81764,#8851b4);padding:12px 18px;border-radius:10px;min-height:43px}.secondary{color:var(--muted);border:1px solid var(--line);padding:11px;border-radius:9px;font-size:12px}.danger{color:#ffb0bf}.icon-btn{font-size:24px;padding:3px 8px;color:var(--muted)}dialog{color:var(--text);width:min(520px,calc(100vw - 24px));max-height:92dvh;overflow:auto;padding:26px;background:linear-gradient(140deg,#20243c,#201a30);border:1px solid #5c4569;border-radius:22px;box-shadow:0 35px 100px #0008}dialog::backdrop{background:#080917ba;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:20px}.modal-head h2{font-size:24px;line-height:1.2;letter-spacing:-.5px;margin:4px 0;font-weight:700}.eyebrow{font-size:9px;letter-spacing:1.5px;color:#b9a9d0}.type-picker{display:flex;gap:5px;padding:5px;background:#111323;border-radius:10px;margin-bottom:20px}.type-picker button{flex:1;padding:11px 5px;font-size:12px;border-radius:7px;color:var(--muted)}.type-picker [data-type=decision].active{background:#6d224c;color:#ffe2ef}.type-picker [data-type=info].active{background:#224f7c;color:#dff3ff}.type-picker [data-type=task].active{background:#245e50;color:#d5ffed}form>label,.form-pair>label,dialog>label,.demo-switch>label{display:block;margin:16px 0;font-size:12px;color:var(--muted)}dialog input:not([type=checkbox]),dialog select,dialog textarea{width:100%;margin-top:7px;padding:12px;border:1px solid #51465f;border-radius:9px;outline:none;background:#141727;color:var(--text);font-size:14px}dialog input:focus,dialog textarea:focus,dialog select:focus{border-color:#b992dd}dialog textarea{resize:vertical}.form-pair{display:flex;gap:14px}.form-pair>label{flex:1;min-width:0}.routing-preview{padding:12px;background:#ffffff08;border-radius:8px;font-size:12px;line-height:1.5;color:var(--muted)}.routing-preview strong{color:var(--text)}fieldset{border:1px solid #4c405f;border-radius:10px;padding:13px;margin:16px 0}fieldset legend{font-size:12px;color:var(--muted)}fieldset label{display:block;margin:7px 0;font-size:12px}fieldset input[type=checkbox]{accent-color:var(--pink);margin-right:6px}.attachments-form{font-size:12px;color:var(--muted);margin-top:17px}.attachments-form summary{cursor:pointer;padding:8px 0}.attachments-form label{display:block;margin:12px 0}.attachments-form small,.profile-settings small{font-size:10px;line-height:1.5;display:block;color:var(--dim);margin-top:7px}.modal-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #46374f;padding-top:18px;margin-top:22px;gap:10px}.modal-foot>span{font-size:11px;color:var(--dim)}.form-error{color:#ffb2bf;font-size:12px;line-height:1.5}.muted{color:var(--muted);font-size:12px;line-height:1.5}.prototype-info{background:#ffffff06;border-radius:10px;padding:14px;color:var(--muted);font-size:11px;line-height:1.6;margin:18px 0}.prototype-info strong{color:var(--text)}.prototype-info p{margin-bottom:0}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.menu-dialog{width:min(340px,calc(100vw - 30px));padding:22px}.menu-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;font-size:20px}.menu-new{width:100%;text-align:left;padding:14px;border-radius:10px;background:linear-gradient(115deg,#992256,#57376f);font-weight:700}.menu-types{display:flex;gap:4px;margin:8px 0 20px}.menu-types button{padding:10px 4px;font-size:11px;flex:1;border-radius:7px;background:#ffffff08}.menu-types [data-create-type=decision]{color:var(--red)}.menu-types [data-create-type=info]{color:var(--blue)}.menu-types [data-create-type=task]{color:var(--green)}nav{display:grid;gap:4px;border-block:1px solid #ffffff13;padding:12px 0}nav button,.menu-link{display:block;width:100%;text-align:left;padding:11px 8px;border-radius:7px;font-size:13px;color:#e7e0f1}nav button.active{background:#ffffff10}.demo-switch{border-top:1px solid #ffffff13;padding-top:6px;margin-top:15px}.demo-switch small{font-size:10px;color:var(--dim)}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 38px);width:max-content;padding:12px 18px;background:#eee8f7;color:#21132e;border:1px solid white;border-radius:12px;box-shadow:0 10px 40px #0006;font-size:12px;opacity:0;pointer-events:none;z-index:100;transition:opacity .15s}#toast.show{opacity:1}[hidden]{display:none!important}@media(min-width:800px){.wide .timeline{padding-inline:35px}.wide .chat-row{max-width:70%}.wide .app-header{padding-inline:28px}.wide .quick-composer{padding-inline:28px}}@media(max-width:600px){.phone,.phone.wide{width:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none}.app-header{height:79px;padding-top:max(8px,env(safe-area-inset-top));padding-inline:13px}.brand img{width:125px;height:39px}.brand>span{font-size:10px}.timeline{padding:15px 10px 22px;gap:14px}.chat-row{max-width:95%;gap:5px}.chat-row>.avatar{width:25px;height:25px;font-size:9px}.bubble{padding:12px 12px 8px}.bubble h2{font-size:16px}.bubble-meta{gap:10px}.sender{font-size:11px}.sender .department{font-size:9px}.kind{font-size:9px}.message-text{font-size:14px}.poll-option{font-size:13px;padding:11px 9px}.chat-toolbar{padding:8px 12px}.filter-pills button{font-size:12px;padding:7px 10px}.quick-input textarea{font-size:16px}.quick-composer{gap:5px;padding-inline:8px}.quick-input{padding-inline:11px}.attach-button{width:35px}.quick-type{display:none}.send-button{width:42px}.form-pair{flex-direction:column;gap:0}.form-pair>label{margin:10px 0}dialog{padding:23px 20px;border-radius:20px;max-height:88dvh}dialog input:not([type=checkbox]),dialog select,dialog textarea{font-size:16px}.menu-dialog{padding:20px}.type-picker button{font-size:11px}.thread-top{padding-block:max(12px,env(safe-area-inset-top)) 12px}.thread-top h1{font-size:14px}#expand{display:none}.bubble-foot{font-size:9px}.reply-link{min-height:36px}.search-row input{font-size:16px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Chat iteration 3: clear sides, symbol badges, stable composer */
.timeline{gap:24px;padding-top:28px}.chat-row{max-width:86%;gap:8px}.chat-row:not(.outgoing){margin-right:14%}.chat-row.outgoing{margin-left:14%}.bubble{overflow:visible;border-radius:19px 19px 19px 4px}.outgoing .bubble{border-radius:19px 19px 4px 19px;box-shadow:inset 0 0 0 1px #ffffff13,0 4px 16px #06061644}.bubble-meta{padding-right:28px;min-height:26px}.kind{position:absolute;right:-9px;top:-14px;width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,var(--type-start),#211a35);border:1.5px solid var(--type-color);color:var(--type-color);font-size:27px;font-weight:700;box-shadow:0 4px 12px #0005;line-height:1}.bubble-foot{font-size:11px;gap:7px}.checks{display:inline-flex;align-items:center;position:relative;color:#c6c3d4;letter-spacing:normal;padding:4px 1px;min-height:26px;line-height:1}.checks svg{width:25px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.checks.seen{color:#5dd5ff}.checks.confirmed,.receipt-confirmed{color:#8ff2bb}.confirmation-dot{font-size:9px;border:1px solid currentColor;border-radius:50%;width:12px;height:12px;display:grid;place-items:center;margin-left:3px}.receipt-confirmed{font-size:15px;padding:4px;min-width:26px;min-height:26px}.message-text a{color:#bce2ff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.new-message-bar{display:flex;gap:6px;padding:12px 10px max(12px,env(safe-area-inset-bottom));background:#17182b;border-top:1px solid #37314c;flex:none}.new-message-bar button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;min-height:46px;border-radius:12px;border:1px solid #ffffff1c}.new-message-bar button span{font-size:21px}.new-message-bar [data-create-type=decision]{background:#5d2141;color:#ffc1db}.new-message-bar [data-create-type=info]{background:#203d63;color:#bbdfff}.new-message-bar [data-create-type=task]{background:#204b40;color:#b3f6d9}#compose{width:540px;max-width:calc(100vw - 24px);height:min(790px,92dvh);max-height:92dvh;padding:0;overflow:hidden}#create-form{height:100%;display:flex;flex-direction:column;min-height:0}.compose-fixed-head{padding:21px 23px 0;flex:none}.compose-fixed-head .modal-head{margin-bottom:14px;align-items:center}.compose-fixed-head .modal-head h2{font-size:22px}.compose-fixed-head .type-picker{margin-bottom:0}.compose-fields{padding:0 23px 12px;overflow-y:auto;min-height:0;flex:1;scrollbar-gutter:stable}.compose-fields>label{display:block;font-size:12px;color:var(--muted);margin:15px 0}.compose-fields textarea{resize:none}.compose-fields .form-pair>label{margin-top:0}.compose-fields textarea[name=body]{height:115px}.compose-fields textarea[name=options]{height:92px}#compose .modal-foot{flex:none;margin:0;padding:13px 23px;background:#211c32}.media-button{display:inline-flex;padding:10px 14px;border-radius:10px;background:#ffffff0b;border:1px solid #746181;color:#f2e8fc;font-size:13px;cursor:pointer;min-height:42px;align-items:center}#file-preview{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.selected-file{max-width:100%;overflow-wrap:anywhere;font-size:11px;padding:6px 8px;border-radius:6px;background:#ffffff0c}#file-preview button{font-size:11px;color:#ffb4ca}.chat-scroll{background-size:auto,300px 300px}
@media(max-width:600px){.chat-row{max-width:87%;gap:6px}.timeline{padding:24px 12px;gap:25px}.kind{width:34px;height:34px;right:-8px;top:-13px;font-size:25px}.new-message-bar{gap:5px;padding-inline:8px}.new-message-bar button{font-size:11px;gap:4px}.new-message-bar button span{font-size:19px}#compose{height:92dvh;max-height:92dvh;max-width:calc(100vw - 16px)}.compose-fixed-head{padding:18px 16px 0}.compose-fields{padding-inline:16px}#compose .modal-foot{padding:12px 16px}.compose-fields .form-pair{flex-direction:row;gap:10px}.compose-fields .form-pair label{margin-block:0 12px}.compose-fields .form-pair select,.compose-fields .form-pair input{font-size:14px;padding:10px 7px}.bubble-foot{font-size:10px}}

/* Expand the selected message into its conversation, reverse on close. */
.breakout{transform-origin:0 0;overflow:hidden}.breakout.transitioning{will-change:transform,opacity,border-radius;pointer-events:none}

/* Explicit person and department labels */
.person-julian{--person-color:#39cbd7;--person-dark:#173c49;--person-edge:#39cbd7}
.person-janine{--person-color:#f277b7;--person-dark:#50223f;--person-edge:#f277b7}
.person-louis{--person-color:#f0cb4d;--person-dark:#443a1b;--person-edge:#f0cb4d}
.person-tim{--person-color:#17171b;--person-dark:#15151b;--person-edge:#93939e}
.person-aleks{--person-color:#f46b76;--person-dark:#4d202e;--person-edge:#f46b76}
.person-sarah{--person-color:#699fff;--person-dark:#213858;--person-edge:#699fff}
.person-flo{--person-color:#ff9a4d;--person-dark:#4b301c;--person-edge:#ff9a4d}
.person-loreen{--person-color:#c5a1ef;--person-dark:#3c2c50;--person-edge:#c5a1ef}
.area-communication{--area-end:#50223f;--area-color:#f277b7;--area-dark:#50223f}
.area-delivery{--area-end:#443a1b;--area-color:#f0cb4d;--area-dark:#443a1b}
.area-design{--area-end:#443a1b;--area-color:#f0cb4d;--area-dark:#443a1b}
.area-fulfillment{--area-end:#15151b;--area-color:#8c8c9b;--area-dark:#15151b}
.area-product{--area-end:#15151b;--area-color:#8c8c9b;--area-dark:#15151b}
.area-management{--area-end:#173c49;--area-color:#39cbd7;--area-dark:#173c49}
.area-sales{--area-end:#173c49;--area-color:#39cbd7;--area-dark:#173c49}
.area-marketing{--area-end:#213858;--area-color:#699fff;--area-dark:#213858}
.area-gympod{--area-end:#4b301c;--area-color:#ff9a4d;--area-dark:#4b301c}
.area-administration{--area-end:#3c2c50;--area-color:#c5a1ef;--area-dark:#3c2c50}
.area-general{--area-end:#15151b;--area-color:#8c8c9b;--area-dark:#15151b}
.avatar[class*=person-]{background:var(--person-dark);border:2px solid var(--person-edge);color:#fff}.person-chip,.area-chip{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:3px 7px;line-height:1.35;font-size:11px;font-weight:700;max-width:100%;overflow-wrap:anywhere}.person-chip{background:var(--person-dark);border:1px solid var(--person-edge);color:#fff}.person-chip i{width:7px;height:7px;flex:none;background:var(--person-color);border:1px solid var(--person-edge);border-radius:50%}.area-chip{background:var(--area-dark);border:1px solid var(--area-color);color:#f8f6ff;font-weight:400;font-size:9px}.area-chip i{width:6px;height:6px;border-radius:2px;background:var(--area-color);flex:none}.sender .department{margin-top:5px}.bubble-meta{padding-right:20px}.topic-tag{font-size:10px;color:#e2dbf0;margin:7px 0;line-height:1.4}.topic-note{padding:10px 12px;background:#ffffff08;border-radius:9px;font-size:11px;line-height:1.6;margin:10px 0}.topic-note small{display:block;color:var(--muted);margin-top:4px}.org-issue{color:#efca8e;line-height:1.6}#organisation{width:620px}.people-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px}.people-legend>button{display:flex;align-items:center;gap:8px;padding:10px;background:#ffffff05;border:1px solid #ffffff13;border-radius:11px;text-align:left}.people-legend small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.people-legend .avatar{width:33px;height:33px}.org-section{margin-top:12px;border:1px solid #ffffff15;border-radius:12px;overflow:hidden}.org-section>summary{cursor:pointer;padding:14px;font-size:14px;font-weight:700;background:#ffffff05}.org-section>summary small{font-size:10px;color:var(--muted);font-weight:400}.org-topic{padding:16px;border-top:1px solid #ffffff13}.org-topic h3{font-size:15px;margin:8px 0}.org-topic p,.org-section li{font-size:12px;line-height:1.65}.org-topic dl{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:7px;font-size:11px}.org-topic dt{color:var(--muted)}.org-topic dd{margin:0}.source-note{display:block;color:var(--dim);font-size:10px}.org-section ul{padding:0 24px 12px 32px}.org-section>.muted{padding:0 15px}.profile-settings>label{padding-block:8px;border-bottom:1px solid #ffffff14}@media(max-width:400px){.people-legend{grid-template-columns:1fr}.org-topic dl{grid-template-columns:95px 1fr}}

/* Message headers show only the department; identity stays at the avatar. */
.area-general{--area-end:#34343c;--area-color:#aaaab4;--area-dark:#393941}

.preview-status{flex:none;padding:5px 14px;background:#262238;color:#c9c2d9;font-size:10px;text-align:center}.preview-status button{margin-left:9px;text-decoration:underline;color:#fff}.connection-state{flex:none;padding:7px 14px;background:#493724;color:#ffe0a2;font-size:11px;text-align:center}#install-steps{font-size:14px;line-height:1.7;color:#ddd6ea}#install-steps li{margin-bottom:9px}

/* Denser, quiet TRINITY wallpaper; corner light stays behind messages. */
.chat-scroll{background-color:#0d0b18;background-image:radial-gradient(ellipse at 105% 0%,rgba(211,28,111,.12) 0%,rgba(140,29,92,.045) 28%,transparent 58%),radial-gradient(ellipse at -5% 100%,rgba(42,89,220,.14) 0%,rgba(40,58,135,.045) 30%,transparent 60%),url('assets/chat-pattern.svg');background-size:100% 100%,100% 100%,360px 360px;background-repeat:no-repeat,no-repeat,repeat;background-position:top right,bottom left,0 0}

/* Reactions remain separate from approvals. */
.message-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}.message-actions .bubble-foot{margin-top:0}.add-reaction{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#c8bcd9}.add-reaction svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.add-reaction:hover{background:#ffffff13}.reaction-rail{position:relative;display:flex;flex-wrap:wrap;gap:5px;margin:7px 4px -24px;z-index:2}.reaction-chip{display:flex;align-items:center;gap:5px;min-height:32px;padding:3px 6px;border:1px solid #706181;background:#292238;border-radius:18px;box-shadow:0 3px 8px #0004}.reaction-chip.mine{border-color:#bd8dc3;background:#3c2947}.reaction-chip .avatar{width:21px;height:21px;font-size:8px;border-width:1px}.reaction-emoji{font-size:19px;line-height:1.2}.chat-row:has(.reaction-rail){margin-bottom:18px}.bubble{-webkit-touch-callout:none}.breakout #thread-scroll,.breakout .thread-top{touch-action:pan-y pinch-zoom}.breakout.swiping{will-change:transform;user-select:none}#reaction-picker{width:340px;max-width:calc(100vw - 28px);padding:16px;border-radius:23px;background:linear-gradient(140deg,#35243d,#1b2038)}.reaction-head{display:flex;align-items:center;justify-content:space-between;padding:0 3px 10px;font-size:14px}.reaction-head button{font-size:25px;width:34px;height:34px}.reaction-options{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.reaction-options button{font-family:system-ui,sans-serif;font-size:27px;min-height:45px;border-radius:12px;padding:5px}.reaction-options button.selected{background:#ac5e993e;box-shadow:inset 0 0 0 1px #c991c6}.reaction-options button:hover{background:#ffffff10}#reaction-people{margin-top:12px;border-top:1px solid #ffffff18;max-height:220px;overflow:auto}#reaction-people>div{display:flex;align-items:center;gap:10px;padding:9px 3px;font-size:13px}#reaction-people>div>span:nth-child(2){flex:1}#reaction-picker::backdrop{background:#08091790;backdrop-filter:blur(3px)}@media(max-width:600px){#reaction-picker{margin:auto auto max(20px,env(safe-area-inset-bottom));}.reaction-options{gap:4px}.reaction-options button{min-height:45px}}

/* Simple recipient selection and a single message field. */
.recipient-picker{padding:10px 12px;margin:16px 0}.recipient-picker>.quiet{padding:5px 0 10px;color:#c8c0ed}.recipient-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.recipient-options .recipient-option{margin:0;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border:1px solid #ffffff23;border-radius:10px;background:#ffffff06;cursor:pointer}.recipient-option:has(input:checked){background:#65518055;border-color:#bd97de}.recipient-option input{width:18px;height:18px;margin:0;flex:none}.recipient-option span{overflow-wrap:anywhere}.recipient-picker small,#options-label small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:9px}.message-recipients{display:block;color:#ded7eb;font-size:10px;line-height:1.5;margin:12px 0 7px}.compose-fields textarea[name=body]{height:140px;min-height:120px}.poll-hint{overflow-wrap:anywhere}

/* Incoming: type to muted navy; outgoing: subtle teal to blue, with type retained on the badge. */
.type-decision{--type-start:#803246;--type-color:#ffacbc;--type-border:#cf657b77}
.type-info{--type-start:#24588d;--type-color:#b0dcff;--type-border:#6bade077}
.type-task{--type-start:#246e52;--type-color:#acf1ce;--type-border:#63b28c77}
.chat-row{--bubble-base:#1e2d40;--bubble-soft:#2b4053}
.chat-row .bubble{background:linear-gradient(to bottom left,var(--type-start,var(--bubble-soft)) 0%,var(--bubble-base) 100%);border-color:var(--type-border,#718aa066)}
.chat-row.outgoing .bubble{background:linear-gradient(135deg,#205047 0%,#233e48 48%,#27344c 100%);border-color:#6b9b9677}
.chat-row .kind{background:linear-gradient(to bottom left,var(--type-start),#242230);border-color:var(--type-color);box-shadow:0 4px 12px #0005}
.cc-picker{margin:12px 0 18px;border:1px solid #51465f;border-radius:10px;padding:11px 12px}.cc-picker summary{cursor:pointer;font-size:13px;color:#ded8ea;min-height:24px}.cc-picker .muted{margin:8px 0 12px}.recipient-option:has(input:disabled){opacity:.4;cursor:default}
.sender{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.cc-badge{display:inline-flex;align-items:center;border:1px solid #a6a2b46b;border-radius:5px;padding:2px 5px;font-size:10px;font-weight:500;color:#d1cddc;background:#ffffff08;line-height:1.4}.message-cc{display:block;color:#c8c4d4;font-size:11px;line-height:1.6;margin:4px 0 9px}.message-cc .cc-badge{margin-right:3px}

.example-label{font-size:9px;font-weight:400;color:#b7b3c5;letter-spacing:.2px}
.login-panel{width:min(420px,calc(100vw - 36px));margin:12vh auto;padding:28px;border:1px solid #51465f;border-radius:22px;background:linear-gradient(135deg,#202e42,#211c32)}.login-panel h1{font-size:24px}.login-panel p{font-size:14px;line-height:1.5;color:var(--muted)}.login-panel label{display:block;margin:22px 0}.login-panel input{display:block;width:100%;margin-top:8px;padding:13px;background:#131b2b;color:var(--text);border:1px solid #61718b;border-radius:8px;font-size:16px}.login-panel button{width:100%}.server-boot #phone{visibility:hidden}
