/* Kedu R8F4A native Groups polish — scoped to /groups/ only. No private call styles. */
body.kedu-r8f4-native {
  --r8-ink:#15382c; --r8-green:#068f61; --r8-teal:#11a880;
  --r8-line:rgba(18,92,65,.11); --r8-warm:#ffb85c;
  background:linear-gradient(145deg,#eaf8f1 0%,#f7fbf9 43%,#eaf6f5 100%);
  color:var(--r8-ink); -webkit-font-smoothing:antialiased;
}
body.kedu-r8f4-native button { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
body.kedu-r8f4-native :is(button,a,input,textarea,select):focus-visible {
  outline:3px solid #ffba59; outline-offset:3px;
}
body.kedu-r8f4-native .rail {border-right:1px solid #cfe8db; background:linear-gradient(165deg,#fff 20%,#f0f9f4 100%);}
body.kedu-r8f4-native .rail nav a.selected {background:#def8ec;color:#006b4d;border-radius:16px;}
body.kedu-r8f4-native .top {background:linear-gradient(111deg,#073d30,#087454 63%,#079e77);color:#fff;border:0;box-shadow:0 9px 28px rgba(0,79,55,.13);position:relative;z-index:3;}
body.kedu-r8f4-native .top .eyebrow {color:#b7f6df;letter-spacing:2.1px;}
body.kedu-r8f4-native .top h1 {font-size:clamp(22px,2.5vw,31px);letter-spacing:-.95px;font-weight:850;}
body.kedu-r8f4-native .top-actions > :is(button,a) {border:1px solid #ffffff42;background:#ffffff18;color:#fff;border-radius:14px;backdrop-filter:blur(10px);}
body.kedu-r8f4-native .top-actions > :is(button,a):hover {background:#ffffff32;}
body.kedu-r8f4-native #keduR8Theme {font-size:20px;}
body.kedu-r8f4-native .workspace {gap:16px;padding:17px;height:calc(100dvh - 100px);}
body.kedu-r8f4-native :is(.sidebar,.thread){border:1px solid #d2e9dd;border-radius:25px;box-shadow:0 17px 48px rgba(8,66,43,.08);background:#fff;}
body.kedu-r8f4-native .sidebar-head {padding:21px 20px 11px;gap:10px;}
body.kedu-r8f4-native .sidebar-head h2{font-size:22px;font-weight:850;letter-spacing:-.7px;}
body.kedu-r8f4-native .new-btn{background:linear-gradient(145deg,#10b889,#00865b);color:white;border-radius:17px;box-shadow:0 6px 18px #009b6040;transition:transform .2s,box-shadow .2s;}
body.kedu-r8f4-native .new-btn:active{transform:scale(.94);}
body.kedu-r8f4-native .kedu-r8-search-shell {display:flex;align-items:center;gap:9px;margin:2px 16px 12px;padding:0 14px;min-height:47px;background:#f2f9f5;border:1px solid #dceee4;border-radius:16px;transition:box-shadow .2s;}
body.kedu-r8f4-native .kedu-r8-search-shell:focus-within {box-shadow:0 0 0 3px #a8ecd2;border-color:#00a576;}
body.kedu-r8f4-native .kedu-r8-search-shell svg {width:18px;height:18px;flex-shrink:0;color:#168663;}
body.kedu-r8f4-native .kedu-r8-search-shell input {width:100%;background:transparent;border:0;outline:0;font-size:14px;min-width:0;min-height:43px;color:#164b39;}
body.kedu-r8f4-native .kedu-r8-search-shell input::placeholder{color:#658b7c;}
body.kedu-r8f4-native .kedu-r8-search-shell button {border:0;background:transparent;color:#217f63;font-size:21px;padding:6px;}
body.kedu-r8f4-native .kedu-r8-list-caption {font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#6a8d7c;margin:2px 23px 0;display:flex;align-items:center;justify-content:space-between;}
body.kedu-r8f4-native .tabline {padding:6px 14px 11px;gap:5px;}
body.kedu-r8f4-native .tabline button {border-radius:12px;font-weight:800;transition:background .15s;white-space:nowrap;}
body.kedu-r8f4-native .tabline .active{background:#d9f5e6;color:#006d4d;}
body.kedu-r8f4-native .space-list{padding:10px 11px;scrollbar-width:thin;}
body.kedu-r8f4-native .space-row{position:relative;min-height:73px;gap:13px;margin:3px 0 5px;border:1px solid transparent;border-radius:20px;padding:12px 10px;transition:background .16s,transform .16s,border-color .16s;}
body.kedu-r8f4-native .space-row:hover{transform:translateY(-1px);background:#effaf4;}
body.kedu-r8f4-native .space-row.active{background:linear-gradient(100deg,#dcf9e9,#edf9f3);border-color:#bbebd3;box-shadow:0 3px 12px #087c4212;}
body.kedu-r8f4-native .space-icon{width:52px;height:52px;border-radius:19px;background:linear-gradient(135deg,#047f6e,#27c48f);box-shadow:0 6px 16px #009a6d23;}
body.kedu-r8f4-native .space-meta strong{font-size:14px;font-weight:810;color:#173a2d;}
body.kedu-r8f4-native .space-meta small{font-size:11px;color:#668577;}
body.kedu-r8f4-native .space-row .badge{background:#008b63;color:white;font-size:11px;min-width:23px;text-align:center;padding:4px 7px;}
body.kedu-r8f4-native .join-link{border:1px solid #c9e8d9;background:#eafaef;border-radius:15px;}
body.kedu-r8f4-native .thread-head{background:linear-gradient(120deg,#ffffff,#f7fcf9);min-height:79px;border-color:#e4f0e8;}
body.kedu-r8f4-native .thread-head .heading h2{font-weight:830;letter-spacing:-.4px;}
body.kedu-r8f4-native .thread-head .heading p{font-size:11px;}
body.kedu-r8f4-native .header-action{min-height:42px;border-radius:13px;background:#e9f8f0;border-color:#d9ebdf;color:#075e42;}
body.kedu-r8f4-native #spaceAvatar{border:2px solid #c3f0da;overflow:hidden;box-shadow:0 4px 14px #0d805328;}
body.kedu-r8f4-native .timeline{background:radial-gradient(ellipse at top left,#eef9f3 0%,#f8fbf9 58%,#f0f7f2 100%);padding:22px;}
body.kedu-r8f4-native .bubble{border-radius:20px 20px 20px 6px;border:1px solid #e2efe7;padding:13px 15px;box-shadow:0 3px 16px rgba(20,69,43,.045);}
body.kedu-r8f4-native .mine .bubble{background:#d7f8e3;border-color:#baeed1;border-radius:20px 20px 6px 20px;}
body.kedu-r8f4-native .bubble .stamp{opacity:.75;}
body.kedu-r8f4-native .composer{padding:11px 15px 7px;gap:10px;align-items:end;background:#fff;}
body.kedu-r8f4-native .composer textarea{min-height:49px;max-height:145px;border-radius:18px;background:#f4f9f6;border:1px solid #cee6d8;padding:13px 15px;line-height:1.35;}
body.kedu-r8f4-native .send{background:linear-gradient(135deg,#0ca979,#047652);box-shadow:0 5px 16px #00986529;border-radius:17px;}
body.kedu-r8f4-native .kedu-r8-compose-meta{display:flex;justify-content:flex-end;align-items:center;gap:7px;padding:0 22px 9px;font-size:10px;color:#708a7d;background:#fff;}
body.kedu-r8f4-native .kedu-r8-compose-meta strong{font-variant-numeric:tabular-nums;color:#348262;}
body.kedu-r8f4-native .status{position:fixed;z-index:200;top:14px;right:14px;max-width:min(94vw,370px);border-radius:16px;box-shadow:0 16px 42px #103e2835;}
body.kedu-r8f4-native dialog{border-radius:26px;border:1px solid #d8eadf;box-shadow:0 30px 80px #072a1b4a;}
body.kedu-r8f4-native dialog::backdrop{background:#062619ab;backdrop-filter:blur(5px);}
body.kedu-r8f4-native dialog .modal-form header{padding-bottom:8px;}
body.kedu-r8f4-native dialog .modal-form header h2{letter-spacing:-.55px;}
body.kedu-r8f4-native .kedu-r8-hidden-item{display:none!important;}
body.kedu-r8f4-native .kedu-r8-surface-note{background:#e8f8ef;color:#217352;padding:10px 13px;border-radius:15px;font-size:12px;line-height:1.45;}
body.kedu-r8f4-native.kedu-r8-dark{--dark:#e7fff0;--muted:#b0c7b9;--border:#31544b;background:#0b211d;color:#e9fff4;}
body.kedu-r8f4-native.kedu-r8-dark :is(.stage,.workspace){background:#0b211d;}
body.kedu-r8f4-native.kedu-r8-dark :is(.sidebar,.thread,.thread-head,.composer,.input-hint,.top-actions button,.space-row,dialog){background:#15312a;color:#e8fff3;border-color:#2e5347;}
body.kedu-r8f4-native.kedu-r8-dark :is(.sidebar-head h2,.space-meta strong,.thread-head h2){color:#ecfff2;}
body.kedu-r8f4-native.kedu-r8-dark :is(.timeline,.kedu-r8-search-shell,.composer textarea){background:#102923;color:#effff5;}
body.kedu-r8f4-native.kedu-r8-dark :is(.bubble,.space-row.active,.tabline .active,.kedu-r8-compose-meta){background:#1b4034;color:#edfff5;border-color:#326a51;}
body.kedu-r8f4-native.kedu-r8-dark .mine .bubble{background:#146147;}
body.kedu-r8f4-native.kedu-r8-dark .space-meta small{color:#b1cabc;}
body.kedu-r8f4-native.kedu-r8-dark .kedu-r8-search-shell input{color:#f3fff6;}
body.kedu-r8f4-native.kedu-r8-dark dialog :is(input,textarea,select){background:#173c30;color:#f4fff8;border-color:#4c725e;}
@media(max-width:1100px){body.kedu-r8f4-native .workspace{padding:10px;gap:10px;}}
@media(max-width:800px){
 body.kedu-r8f4-native .layout{height:var(--kedu-vvh,100dvh);}
 body.kedu-r8f4-native .top{min-height:61px;flex-basis:61px;padding:7px 15px;}
 body.kedu-r8f4-native .top h1{font-size:21px;}
 body.kedu-r8f4-native .top .eyebrow{font-size:9px;letter-spacing:1.2px;}
 body.kedu-r8f4-native .workspace{padding:0;height:calc(var(--kedu-vvh,100dvh) - 61px);}
 body.kedu-r8f4-native :is(.sidebar,.thread){border:0;border-radius:0;box-shadow:none;}
 body.kedu-r8f4-native .sidebar-head{padding:18px 17px 9px;}
 body.kedu-r8f4-native .space-row{min-height:76px;padding:11px 12px;}
 body.kedu-r8f4-native .space-icon{width:53px;height:53px;}
 body.kedu-r8f4-native .thread-head{min-height:66px;padding:9px 10px;gap:7px;}
 body.kedu-r8f4-native .thread-head .heading h2{font-size:16px;}
 body.kedu-r8f4-native .header-action{min-width:43px;font-size:11px;min-height:40px;padding:8px 6px;}
 body.kedu-r8f4-native .timeline{padding:15px 11px 5px;}
 body.kedu-r8f4-native .composer{padding:10px 9px 6px;gap:8px;}
 body.kedu-r8f4-native .composer textarea{font-size:16px;}
 body.kedu-r8f4-native .send{min-width:70px;}
 body.kedu-r8f4-native .input-hint{display:none;}
 body.kedu-r8f4-native .kedu-r8-compose-meta{padding:0 14px max(8px,env(safe-area-inset-bottom));}
 body.kedu-r8f4-native dialog{max-width:100vw;max-height:min(88dvh,840px);border-radius:24px 24px 0 0;margin:auto 0 0;width:100%;}
 body.kedu-r8f4-native dialog .modal-form{padding:21px 21px max(24px,env(safe-area-inset-bottom));}
 body.kedu-r8f4-native dialog[open]{animation:kedu-r8-rise .24s cubic-bezier(.2,.75,.3,1);}
 body.kedu-r8f4-native #messageMenu{border-radius:25px 25px 0 0;}
}
@keyframes kedu-r8-rise{from{transform:translateY(20px);opacity:.86}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){body.kedu-r8f4-native *,body.kedu-r8f4-native *::before,body.kedu-r8f4-native *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}}
