:root{color-scheme:light;--ink:#080809;--paper:#f0f2f5;--line:#dce0e5;--accent:#0866ff;--soft:#e7f3ff;--muted:#606770;font:16px/1.5 system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink)}
a{color:var(--accent);text-underline-offset:.2em}
h1,h2,p{margin-top:0}
h1,h2{line-height:1.12}
h1{font-size:clamp(2rem,5vw,4rem);letter-spacing:-.055em}
h2{font-size:1.3rem}
.bar{background:#fff;border-bottom:1px solid var(--line)}
.bar-inner,.shell{max-width:1120px;margin:auto;padding:16px clamp(14px,4vw,34px)}
.bar-inner{display:flex;align-items:center;gap:16px;justify-content:space-between}
.bar nav,.tabs,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brand{font-size:clamp(1.05rem,3.5vw,1.55rem);text-decoration:none;letter-spacing:-.06em;color:var(--ink)}
.brand strong{color:var(--accent)}
.welcome,.layout{display:grid;gap:18px;align-items:start}
.welcome{grid-template-columns:1.4fr 1fr;margin-top:clamp(12px,6vw,80px)}
.layout{grid-template-columns:minmax(0,2fr) minmax(220px,1fr)}
.intro,.cover{background:#124382;background:linear-gradient(120deg,#123467,#1263cc);color:white;padding:clamp(24px,6vw,64px);border-radius:18px}
.intro h1{max-width:12ch}
.intro p,.cover p{max-width:46ch;color:#e7f3ff}
.cover h1{margin-bottom:12px}
.cover p:last-child,.card p:last-child{margin-bottom:0}
.card,.notice{background:white;border:1px solid var(--line);border-radius:15px;padding:clamp(14px,3vw,24px);margin-bottom:14px}
.notice{border-color:#bdd8ff}
.banner{margin-top:14px;background:var(--soft)}
.auth{max-width:540px;margin-inline:auto;width:100%}
.tabs{margin:16px 0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 12px}
.tabs a{padding:8px 10px}
.auth form,.composer,.post form:not(.actions){display:grid;gap:10px}
label{display:grid;gap:4px;font-weight:600}
small{display:block;color:var(--muted);font-weight:400}
input,select,textarea,button,.button{font:inherit}
input:not([type=checkbox]),select,textarea{width:100%;min-height:44px;border:1px solid #c9ccd1;background:#fff;border-radius:9px;padding:8px 12px;color:var(--ink)}
textarea{resize:vertical}
button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;width:fit-content;border:1px solid transparent;border-radius:9px;background:var(--accent);color:white;padding:7px 14px;font-weight:650;text-decoration:none;cursor:pointer}
.secondary{background:#e4e6eb;color:var(--ink)}
.pair,.search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.check{display:flex;align-items:flex-start;gap:9px;font-weight:400}
.check input{margin-top:5px}
.post-head{display:flex;align-items:center;gap:10px}
.avatar{display:block;width:38px;height:38px;border-radius:50%;background:var(--soft);border:6px solid #f0f2f5}
.post-body,.comment{overflow-wrap:anywhere}
.post-body{margin:14px 0}
.post-photo{display:block;max-width:100%;max-height:640px;margin:0 auto 12px;border-radius:10px}
.post details{margin-top:12px}
summary{cursor:pointer;color:var(--accent)}
.comment{background:var(--paper);padding:10px 12px;margin-block:8px;border-radius:10px}
.comment p{margin-bottom:0}
@media(max-width:690px){.welcome,.layout{grid-template-columns:1fr}.bar-inner{flex-wrap:wrap}.about{display:none}}


.group-page .bar{position:sticky;top:0;z-index:2;box-shadow:0 2px 12px #1523370a}
.group-page .bar-inner{max-width:1200px;min-height:62px;padding-block:9px}
.group-page .bar nav a{font-size:.9rem;font-weight:650;text-decoration:none}
.group-page .shell{max-width:1200px;padding-top:22px}
.group-hero{margin-bottom:20px;border:1px solid var(--line);border-radius:22px;background:white;overflow:hidden;box-shadow:0 10px 28px #1523370c}
.group-cover{position:relative;isolation:isolate;height:clamp(195px,29vw,322px);overflow:hidden;background:radial-gradient(ellipse at 82% 15%,#418aff 0%,transparent 42%),linear-gradient(120deg,#123467,#164e9c 60%,#0866ff)}
.group-cover::before,.group-cover::after{content:"";position:absolute;z-index:-1;width:62%;aspect-ratio:1;border:1px solid #e7f3ff69;border-radius:43% 57% 62% 38%;transform:rotate(-26deg);right:-8%;top:-74%;box-shadow:0 0 0 22px #e7f3ff1a,0 0 0 54px #e7f3ff11,0 0 0 87px #e7f3ff10}
.group-cover::after{right:-28%;top:18%;transform:rotate(29deg)}
.group-cover>img{width:100%;height:100%;object-fit:cover;display:block}
.cover-lettering{position:absolute;inset:0;display:grid;align-content:center;justify-items:start;gap:9px;padding:clamp(18px,5vw,62px);color:#fff}
.cover-lettering span{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#e7f3ff}
.cover-lettering strong{font:600 clamp(2.25rem,6vw,5.2rem)/.92 Georgia,serif;letter-spacing:-.055em}
.cover-edit{position:absolute;right:16px;bottom:15px;background:white;box-shadow:0 3px 14px #15233745}
.group-identity{display:flex;gap:16px;align-items:center;padding:18px clamp(16px,3vw,34px)}
.group-emblem,.initial-avatar{display:grid;place-items:center;flex:none;border-radius:50%;background:var(--soft);color:var(--accent);font-weight:750}
.group-emblem{width:62px;height:62px;font-size:29px}
.initial-avatar{width:43px;height:43px;font-size:1.15rem}
.group-kicker,.group-meta{margin:0;color:var(--muted);font-size:.84rem}
.group-identity h1{margin:4px 0;font-size:clamp(1.5rem,4vw,2.65rem);letter-spacing:-.035em}
.group-invite{margin-left:auto;white-space:nowrap}
.group-hero .tabs{margin:0 clamp(12px,3vw,34px);padding:0;gap:6px;border:0;border-top:1px solid var(--line);border-radius:0;flex-wrap:nowrap;overflow-x:auto}
.group-hero .tabs a{white-space:nowrap;text-decoration:none;color:var(--muted);font-weight:650;padding:12px 14px 10px;border-bottom:3px solid transparent}
.group-hero .tabs a:hover{background:var(--soft)}
.group-hero .tabs a[aria-current=page]{border-color:var(--accent);color:var(--accent)}
.group-page .layout{grid-template-columns:minmax(0,1.85fr) minmax(270px,1fr);gap:17px}
.group-page .card{box-shadow:0 2px 8px #15233707}
.group-sidebar{position:sticky;top:80px}
.about-access{padding:12px 0;border-top:1px solid var(--line)}
.sidebar-link{display:flex;justify-content:space-between;text-decoration:none;background:#e4e6eb;color:var(--ink);border-radius:9px;padding:10px 12px;font-weight:650}
.photos-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:12px;overflow:hidden;border-radius:10px}
.photos-grid img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.quick-compose{padding:12px 16px 7px}
.compose-line{display:flex;align-items:center;gap:11px}
.compose-prompt{width:100%;justify-content:flex-start;background:#f0f2f5;color:#606770;text-align:left;border-radius:32px;font-weight:550}
.compose-prompt:hover{background:#e4e6eb}
.compose-shortcuts{display:flex;flex-wrap:wrap;gap:4px}
.quick-compose .compose-shortcuts{border-top:1px solid var(--line);margin-top:11px;padding-top:5px}
.compose-shortcuts button{flex:1;background:transparent;color:var(--ink);gap:6px;white-space:nowrap;padding-inline:9px;font-size:.9rem}
.compose-shortcuts button span{color:var(--accent);font-size:1.2rem}
.compose-shortcuts button:hover,.compose-shortcuts button[aria-expanded=true]{background:var(--soft);color:var(--accent)}
.editor-dialog{border:1px solid var(--line);border-radius:19px;padding:0;max-height:calc(100dvh - 24px);width:min(560px,calc(100% - 22px));color:var(--ink);box-shadow:0 20px 90px #1523375c}
.editor-dialog::backdrop{background:#1523379c;backdrop-filter:blur(3px)}
.editor-dialog>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:12px 18px;position:sticky;top:0;background:white;z-index:1}
.editor-dialog h2{margin:0}
.icon-button{height:35px;min-height:35px;width:35px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:1.3rem;padding:0}
.dialog-form{display:grid;gap:13px;padding:14px 18px 18px}
.dialog-form textarea{font-size:1.15rem;border-color:transparent;padding:8px 2px}
.dialog-form textarea:focus{border-color:var(--accent);padding-inline:8px}
.cover-remove{padding-top:0}
.editor-tools{border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.editor-tools strong{font-size:.9rem}
.editor-preview{max-width:100%;max-height:245px;object-fit:contain;margin:8px auto;border-radius:10px;display:block}
.image-clear{margin-top:8px}
.emoji-picker{display:flex;flex-wrap:wrap;gap:5px}
.emoji-picker button{background:var(--soft);font-size:1.2rem;padding:2px 10px}
.publish-button{width:100%}
.post-link{display:block;padding:12px;background:var(--soft);border-radius:10px;margin:12px 0;overflow-wrap:anywhere;text-decoration:none}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px){.group-page .layout{grid-template-columns:1fr}.group-sidebar{position:static}.group-sidebar .about{display:block}.group-identity{flex-wrap:wrap}.group-invite{margin-left:0}.group-emblem{width:48px;height:48px}.group-page .shell{padding-top:12px}}
@media(max-width:390px){.compose-shortcuts button{padding-inline:5px;font-size:.79rem}.cover-edit{right:9px;bottom:9px}}

.post-insights{border-top:1px solid var(--line);padding-top:10px}
.post-insights summary{display:flex;justify-content:space-between;gap:8px;list-style:none}
.post-insights summary span{color:var(--muted);text-align:right}
.post-insights p{margin:8px 0;color:var(--muted);font-size:.88rem}
.post-toolbar{display:flex;align-items:center;gap:9px;padding-block:5px;border-bottom:1px solid var(--line);margin-bottom:10px}
.post-toolbar .actions{gap:0;flex-wrap:nowrap}
.post .post-toolbar form:not(.actions){display:block}
.post-tool{min-height:38px;min-width:36px;padding:4px 8px;gap:6px;background:none;color:var(--muted);font-size:1.08rem;line-height:1}
.post-tool:hover,.reaction-options summary:hover{background:#e4e6eb}
.post-tool[aria-pressed=true]{color:var(--accent);background:var(--soft)}
.post-tool span{font-size:.78rem}
.bubble-icon{display:block;width:16px;height:14px;border:1.5px solid currentColor;border-radius:50%;position:relative}
.bubble-icon::after{content:"";width:4px;height:4px;border-right:1.5px solid currentColor;position:absolute;bottom:-3px;left:3px;transform:rotate(28deg);background:white}
.post .reaction-options{position:relative;margin:0}
.reaction-options summary{display:grid;place-items:center;min-width:27px;min-height:36px;list-style:none;color:var(--muted);border-radius:8px}
.reaction-options>div{position:absolute;z-index:1;left:0;display:flex;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 16px #15233725}
.reaction-options>div button{font-size:.87rem}
.post-comments summary,.post-edit summary{font-size:.87rem;font-weight:650}
.comment-compose{display:flex;gap:8px;align-items:flex-start;margin-top:12px}
.comment-compose .initial-avatar{width:33px;height:33px;font-size:.91rem}
.post form.comment-input{display:block;min-width:0;flex:1}
.comment-input-line{background:var(--paper);border-radius:19px;display:flex;flex-wrap:wrap;align-items:center;padding:0 4px 0 8px}
.comment-input-line input:not([type=checkbox]){min-width:120px;flex:1;width:auto;min-height:39px;border:0;background:transparent;font-size:.92rem;padding:4px 7px}
.comment-tools{display:flex;gap:1px;margin-left:auto}
.comment-tools .post-tool{min-width:29px;min-height:32px;padding:3px;font-size:1rem}
.comment-tools .tool-gif{font-size:.66rem}
.comment-picker,.comment-attachment{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding-top:6px;overflow-wrap:anywhere}
.comment-attachment span{font-size:.85rem;color:var(--muted)}
.comment-image{display:block;max-width:min(100%,290px);max-height:320px;object-fit:contain;border-radius:10px;margin:6px 0}
.post-feedback{font-size:.88rem;color:var(--muted);margin:8px 0 0}
[aria-busy=true] .post-tool{cursor:progress}
