:root {
  color-scheme: light;
  --paper: #f5f7f2;
  --white: #fff;
  --ink: #1d2923;
  --muted: #56645d;
  --line: #e3e9e0;
  --nav: #1b2823;
  --nav-highlight: #2b3a31;
  --lime: #d6ee93;
  --moss: #476951;
  --error: #9a302d;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; }
.sidebar :focus-visible { outline-color: var(--lime); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.07rem; font-weight: 720; }
.skip { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workspace { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; background: var(--nav); color: #f7fbf2; padding: 28px 18px 23px; display: flex; flex-direction: column; }
.brand { display: inline-flex; gap: 12px; align-items: center; padding-left: 9px; width: max-content; color: inherit; text-decoration: none; font-size: 1.27rem; font-weight: 750; letter-spacing: -.035em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; padding: 10px; color: var(--nav); background: var(--lime); border-radius: 11px; }
.brand-mark i { width: 7px; height: 7px; background: currentColor; border-radius: 2px; }
.brand-mark i:nth-child(2) { border-radius: 6px 6px 6px 2px; opacity: .68; }
.sidebar nav { margin-top: 48px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border-radius: 9px; text-decoration: none; font-size: .94rem; font-weight: 650; color: #d0ddd0; }
.nav-link + .nav-link { margin-top: 5px; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--nav-highlight); color: var(--lime); }
.icon-grid { display: inline-block; width: 16px; height: 16px; background: radial-gradient(closest-side, currentColor 80%, transparent 90%) 0 0 / 8px 8px; }
.icon-members { display: inline-block; width: 16px; height: 16px; background: radial-gradient(circle at 48% 24%, currentColor 2.4px, transparent 2.9px), radial-gradient(ellipse at 48% 96%, currentColor 4.7px, transparent 5.2px); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid #38483e; padding: 19px 7px 0; margin-top: auto; color: #d0ddd0; font-size: .88rem; }
.surface { min-width: 0; }
.topbar { height: 68px; padding: 0 clamp(20px, 4.4vw, 62px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--white); }
.topbar-page { font-size: .92rem; color: var(--muted); font-weight: 650; }
.top-identity { display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 650; min-width: 0; }
#account-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e0ebdc; color: #304c39; font-size: .87rem; font-weight: 750; display: grid; place-items: center; flex: 0 0 auto; }
.avatar-sm { width: 32px; height: 32px; font-size: .76rem; }
.sign-out { margin-left: .5rem; color: var(--moss); text-underline-offset: 3px; white-space: nowrap; }
.main { max-width: 1270px; margin-inline: auto; padding: 42px clamp(20px, 4.4vw, 62px) 60px; }
.intro { margin-bottom: 26px; }
h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 780; line-height: 1.1; letter-spacing: -.052em; }
.intro p { margin-top: 9px; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 276px); gap: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.composer { padding: 19px; }
.composer h2 { margin-bottom: 14px; }
.compose-body { display: flex; gap: 11px; align-items: flex-start; }
.compose-body textarea, .comment-form textarea, .member-search input { width: 100%; border: 1px solid #dfe7dc; border-radius: 9px; padding: 10px 12px; background: #f7f9f6; color: var(--ink); font: inherit; }
.compose-body textarea, .comment-form textarea { resize: vertical; }
.compose-body textarea { min-height: 95px; }
.compose-body textarea::placeholder, .comment-form textarea::placeholder, .member-search input::placeholder { color: #657069; }
.compose-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-top: 14px; }
.media-actions { display: flex; align-items: center; gap: .45rem; }
.media-button, .quiet-button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 8px; padding: .45rem .65rem; font-size: .9rem; font-weight: 680; }
.media-button { display: flex; gap: 7px; align-items: center; }
.media-button:hover:not(:disabled), .quiet-button:hover:not(:disabled) { background: #f0f5eb; border-color: #cbd8c8; }
.primary, .danger { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 9px; padding: .53rem .9rem; background: var(--nav); color: #f7fbf2; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary:hover:not(:disabled) { background: #365041; }
.primary:disabled { background: #e8ede6; color: #58675d; }
.attachment { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 51px; padding: 8px; background: var(--paper); border-radius: 8px; }
#preview img { display: block; width: 46px; height: 39px; object-fit: cover; border-radius: 5px; }
.file-detail { flex: 1; min-width: 0; display: grid; font-size: .86rem; }
.file-detail strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-detail span { color: var(--muted); }
.feedback, .feed-status { color: var(--muted); font-size: .91rem; margin-top: .65rem; }
.feedback[data-error="true"], .feed-status[data-error="true"] { color: var(--error); }
.details { display: grid; gap: 15px; }
.details .panel { padding: 17px; }
.participation { background: #eaf1e3; border-color: #dbe6d6; }
.participation-mark { height: 40px; width: 40px; display: grid; place-items: center; border-radius: 11px; color: #34533e; background: #d8e8ce; margin-bottom: 11px; }
.participation p { font-size: .94rem; color: var(--muted); margin-top: .35rem; }
.participation-link { display: inline-block; text-decoration: none; margin-top: .76rem; }
.media-guide > div { display: flex; align-items: flex-start; gap: 9px; margin-top: .72rem; }
.media-guide strong, .media-guide small { display: block; }
.media-guide strong { font-size: .88rem; }
.media-guide small { color: var(--muted); font-size: .83rem; }
.icon-comment, .icon-photo, .icon-film { position: relative; display: inline-block; flex: 0 0 auto; }
.icon-comment { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; margin-bottom: 3px; }
.icon-comment::before { content: ''; position: absolute; bottom: -4px; left: 2px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-top: 0; border-right: 0; transform: skewY(-32deg); background: inherit; }
.icon-photo, .icon-film { color: var(--moss); width: 16px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; }
.media-guide .icon-photo, .media-guide .icon-film { margin-top: 4px; }
.icon-photo::before { content: ''; position: absolute; width: 4px; height: 4px; top: 2px; right: 2px; border-radius: 50%; background: currentColor; }
.icon-photo::after { content: ''; position: absolute; width: 7px; height: 5px; bottom: 1px; left: 1px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.icon-film::before { content: ''; position: absolute; left: 5px; top: 3px; border: 3px solid transparent; border-right: 0; border-left: 5px solid currentColor; }
.feed { margin-top: 24px; }
.feed-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 11px; }
.feed-toolbar h2 { font-size: 1.16rem; }
.filters { display: inline-flex; gap: 3px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: #ebefe8; }
.filters button { color: var(--muted); border: 0; border-radius: 6px; padding: .29rem .63rem; background: transparent; font-size: .87rem; white-space: nowrap; }
.filters button[aria-pressed="true"] { color: var(--ink); background: white; font-weight: 690; box-shadow: 0 1px 2px #1b28231a; }
.empty { padding: 33px 20px; text-align: center; border-style: dashed; }
.empty-mark { border-radius: 13px; background: #edf4e8; width: 49px; height: 48px; display: grid; place-content: center; gap: 4px; margin: 0 auto 11px; }
.empty-mark div { width: 19px; height: 2px; border-radius: 5px; background: #65876a; }
.empty-mark div:last-child { width: 12px; }
.empty h3 { font-size: 1rem; }
.empty p { font-size: .91rem; color: var(--muted); margin-top: .25rem; }
.post-list { display: grid; gap: 12px; }
.post { padding: 17px 19px; overflow: hidden; }
.post-header { display: flex; align-items: center; gap: 9px; }
.post-meta { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.post-meta strong { display: block; font-size: .94rem; }
.post-meta time { display: block; color: var(--muted); font-size: .81rem; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 11px; }
.post-media { display: block; width: 100%; max-height: 540px; margin-top: 12px; border-radius: 10px; background: #f1f3ef; object-fit: contain; }
video.post-media { background: #162019; aspect-ratio: 16 / 9; }
.more { display: block; margin: 13px auto 0; }
.post-comments { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; }
.comment-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 36px; border: 0; background: transparent; color: var(--moss); padding: .26rem .36rem; border-radius: 6px; font-size: .91rem; font-weight: 680; }
.comment-toggle:hover, .comment-toggle[aria-expanded="true"] { background: #edf4e8; }
.comments-panel { margin-top: 7px; }
.comments-panel > .quiet-button { margin-top: 8px; }
.comment-sign-in { display: inline-block; margin-bottom: 7px; color: var(--moss); font-weight: 650; text-underline-offset: 3px; }
.comments-list, .members-list { list-style: none; padding: 0; margin: 0; }
.comments-list { display: grid; gap: 10px; }
.comment { display: flex; align-items: flex-start; gap: 8px; }
.comment-bubble { flex: 1; min-width: 0; padding: 8px 10px; background: #f3f6f0; border-radius: 9px; }
.comment-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7rem; font-size: .9rem; overflow-wrap: anywhere; }
.comment-author time { color: var(--muted); font-size: .8rem; }
.comment-body { font-size: .95rem; margin-top: .18rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-delete { background: transparent; border: 0; padding: .3rem; font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; margin-bottom: 10px; }
.comment-form .feedback { grid-column: 1 / -1; margin: 0; }
.members-panel { max-width: 860px; padding: 18px; }
.member-search { display: flex; align-items: stretch; gap: 7px; }
.member-search input { min-width: 0; }
.member { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.members-list { margin-top: 9px; }
.member:last-child { border-bottom: 0; padding-bottom: 0; }
.member-identity { flex: 1; min-width: 0; display: grid; }
.member-identity > span, .member-permission { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.member-permission { text-align: right; }
.member > button { white-space: nowrap; }
.loading { color: var(--muted); }
dialog { width: min(420px, calc(100vw - 32px)); padding: 21px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); }
dialog::backdrop { background: #15201996; }
dialog p { color: var(--muted); margin-top: 7px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 15px; }
.danger { background: var(--error); }
.danger:hover { background: #792421; }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: 178px minmax(0, 1fr); }
  .content-grid { gap: 15px; }
  .main, .topbar { padding-inline: 25px; }
}
@media (max-width: 800px) {
  .workspace { grid-template-columns: 153px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { font-size: 1.1rem; gap: 7px; padding-left: 2px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 13px 15px; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
  .sidebar nav { display: flex; gap: 4px; margin: 0; }
  .nav-link { min-height: 35px; padding: 0 8px; font-size: .85rem; gap: 5px; white-space: nowrap; }
  .nav-link + .nav-link { margin-top: 0; }
  .nav-link > span { display: none; }
  .sidebar-footer, .topbar-page { display: none; }
  .topbar { height: auto; min-height: 45px; padding: 6px 16px; justify-content: flex-end; }
  .main { padding: 23px 14px 38px; }
  .intro { margin-bottom: 17px; }
  .composer, .post, .details .panel { padding: 14px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .comment-form { grid-template-columns: minmax(0, 1fr); justify-items: end; }
  .comment-form .feedback { justify-self: start; }
  .member { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 7px; }
  .member .avatar { width: 36px; height: 36px; }
  .member-permission { grid-column: 2; grid-row: 2; text-align: left; }
  .member > button { grid-column: 3; grid-row: 1 / 3; }
}
