/* СПРИНТ — «Сообщество»: shared participant and moderator interface. */
:root {
  --navy:#002c42;
  --navy-deep:#002236;
  --green:#187a30;
  --green-dark:#126627;
  --green-light:#e8f5eb;
  --ink:#252525;
  --muted:#637381;
  --line:#e1e7eb;
  --paper:#f5f5f5;
  --white:#fff;
  --gold:#9b650e;
  --gold-light:#fff5db;
  --brand-green:#24a23f;
  --on-accent:#fff;
  --surface-soft:#eff3f5;
  --surface-hover:#e5ecef;
  --border-strong:#c0d0c5;
  --blue-light:#eaf1fb;
  --blue:#3e6494;
  --purple-light:#f0eafa;
  --purple:#7253a1;
  --red-light:#fbedef;
  --red:#a33f4c;
  --green-border:#d2e5d7;
  --green-surface:#edf6f0;
  --green-muted:#4e7159;
  --gold-border:#d9bc7e;
  --gold-hover:#ffefc2;
  --focus:#24a23f;
  --toast-bg:#002c42;
  --radius:14px;
  color-scheme:light;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  line-height:1.55
}

:root[data-theme="dark"] {
  color-scheme:dark;
  --navy:#e1f0f7;
  --navy-deep:#d0e2eb;
  --green:#80d896;
  --green-dark:#9ce6ad;
  --green-light:#18382a;
  --ink:#edf4f6;
  --muted:#a6b7c3;
  --line:#344650;
  --paper:#0e1821;
  --white:#17242e;
  --on-accent:#0b2a15;
  --surface-soft:#20323e;
  --surface-hover:#2b414d;
  --border-strong:#5a7565;
  --blue-light:#20364e;
  --blue:#a7cbf3;
  --purple-light:#352a49;
  --purple:#d0b4ef;
  --red-light:#482a35;
  --red:#ffacb9;
  --green-border:#375d47;
  --green-surface:#1a3228;
  --green-muted:#bad5c2;
  --gold:#f4ce7b;
  --gold-light:#3d321c;
  --gold-border:#8a703b;
  --gold-hover:#514024;
  --focus:#80d896;
  --toast-bg:#002c42;
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  min-width:280px
}
button,input,textarea,select {
  font-family:inherit
}
button {
  color:inherit;
  border:0;
  cursor:pointer;
  line-height:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button:disabled {
  opacity:.5;
  cursor:default
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px
}
a {
  color:var(--green);
  text-decoration:none
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  overflow-wrap:anywhere
}
h1 {
  font-size:28px;
  line-height:1.25;
  letter-spacing:-.65px;
  font-weight:750
}
h2 {
  font-size:20px;
  line-height:1.4;
  letter-spacing:-.3px;
  font-weight:700
}
h3 {
  font-size:16px;
  line-height:1.5;
  font-weight:650
}
svg {
  flex-shrink:0
}
input,textarea,select {
  width:100%;
  min-width:0;
  min-height:46px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
  color:var(--ink);
  font-size:15px;
  line-height:1.6
}
textarea {
  resize:vertical
}
input::placeholder,textarea::placeholder {
  color:var(--muted);
  opacity:1
}
input:focus,textarea:focus,select:focus {
  border-color:var(--green)
}
label {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  font-size:13px;
  font-weight:650
}
fieldset {
  min-width:0;
  padding:0;
  margin:0;
  border:0
}
small {
  line-height:1.5
}
[hidden] {
  display:none!important
}
.icon {
  width:19px;
  height:19px;
  vertical-align:middle
}
.muted {
  color:var(--muted);
  line-height:1.7
}
.eyebrow {
  display:block;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.8px;
  font-weight:650;
  line-height:1.5
}
.eyebrow.dark {
  color:var(--green-dark)
}
.sr-only {
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--navy);
  font-size:19px;
  font-weight:800;
  letter-spacing:1.5px;
  white-space:nowrap
}
.brand-mark {
  display:inline-grid;
  place-items:center;
  width:33px;
  height:33px;
  flex:none;
  border-radius:10px;
  background:var(--green);
  color:var(--on-accent);
  font-size:27px;
  font-weight:500;
  line-height:1
}
.brand-sub {
  display:block;
  margin-top:2px;
  font-size:11px;
  letter-spacing:.6px;
  font-weight:500;
  color:var(--muted)
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  max-width:100%;
  padding:10px 15px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
  color:var(--ink);
  font-size:14px;
  font-weight:650;
  text-align:center;
  transition:background .15s,border-color .15s
}
.button:hover {
  background:var(--surface-soft);
  border-color:var(--border-strong)
}
.button.primary {
  background:var(--green);
  border-color:var(--green);
  color:var(--on-accent)
}
.button.primary:hover {
  background:var(--green-dark);
  border-color:var(--green-dark)
}
.button.subtle {
  background:var(--surface-soft);
  color:var(--muted);
  border-color:transparent
}
.button.subtle:hover {
  background:var(--surface-hover)
}
.button.compact {
  min-height:44px;
  padding:8px 12px;
  font-size:13px
}
.button.full {
  width:100%
}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  flex:none;
  padding:10px;
  border-radius:10px;
  background:transparent;
  color:var(--muted)
}
.icon-button:hover {
  background:var(--green-surface);
  color:var(--green)
}
.text-button {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 0;
  background:transparent;
  color:var(--green);
  font-size:13px;
  font-weight:600;
  text-align:left
}
.text-button .icon {
  width:16px;
  height:16px
}
.text-button:hover {
  color:var(--green-dark);
  text-decoration:underline
}
.avatar {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:37px;
  height:37px;
  border-radius:50%;
  background:var(--blue-light);
  color:var(--blue);
  font-size:12px;
  line-height:1;
  font-weight:700
}
.tag,.pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  padding:5px 9px;
  border-radius:6px;
  background:var(--surface-soft);
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
  font-weight:650
}
.status-dot {
  width:5px;
  height:5px;
  flex:none;
  border-radius:50%;
  background:currentColor
}
.status-review,.status-new {
  background:var(--blue-light);
  color:var(--blue)
}
.status-progress {
  background:var(--purple-light);
  color:var(--purple)
}
.status-done {
  background:var(--green-light);
  color:var(--green-dark)
}
.status-rejected {
  background:var(--red-light);
  color:var(--red)
}
.new-badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--green);
  font-size:11px;
  font-weight:650;
  line-height:1.4
}
.new-badge::before {
  content:"";
  width:5px;
  height:5px;
  flex:none;
  border-radius:50%;
  background:currentColor
}
.hidden-label {
  font-size:11px;
  color:var(--red)
}
.spinner {
  display:inline-block;
  width:20px;
  height:20px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin .8s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.boot {
  min-height:70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:19px;
  padding:32px;
  text-align:center
}
.boot h1 {
  font-size:24px
}
.boot p {
  color:var(--muted)
}
.boot .spinner {
  color:var(--green)
}
/* Authentication */
.auth-layout {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  padding:32px 20px
}
.auth-form-area {
  width:100%;
  max-width:420px
}
.auth-form-card {
  padding:32px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 12px 40px #18314408
}
.auth-form-card h1 {
  margin:28px 0 9px;
  font-size:27px
}
.auth-form-card>.muted {
  font-size:13px
}
.auth-tabs {
  display:flex;
  gap:5px;
  padding:4px;
  margin:23px 0;
  background:var(--paper);
  border-radius:10px
}
.auth-tabs button {
  flex:1;
  min-height:44px;
  padding:10px;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:600
}
.auth-tabs button.active {
  background:var(--white);
  color:var(--green);
  box-shadow:0 1px 5px #193b2210
}
.form-stack {
  display:grid;
  gap:20px
}
.form-error {
  padding:11px 13px;
  border-radius:9px;
  background:var(--red-light);
  color:var(--red);
  font-size:13px;
  line-height:1.6;
  overflow-wrap:anywhere
}
.fineprint {
  margin-top:20px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}
/* Existing shell DOM becomes a shared top navigation. */
.workspace {
  min-height:100vh
}
.sidebar {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  padding:17px max(24px,calc((100vw - 1360px)/2));
  border-bottom:1px solid var(--line);
  background:var(--white)
}
.sidebar nav {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  min-width:0
}
.nav-item {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:10px 12px;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  text-align:left;
  font-size:13px;
  font-weight:600
}
.nav-item:hover {
  background:var(--green-surface);
  color:var(--green)
}
.nav-item.active {
  background:var(--green-light);
  color:var(--green-dark)
}
.nav-item .icon {
  width:17px;
  height:17px
}
.nav-item b {
  display:inline-grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:6px;
  background:var(--green-border);
  color:var(--green-dark);
  font-size:11px
}
.sidebar-bottom {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:0
}
.user-button {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  max-width:210px;
  padding:4px 6px;
  border-radius:10px;
  background:transparent;
  text-align:left
}
.user-button>span:nth-child(2) {
  min-width:0
}
.user-button strong {
  display:block;
  max-width:134px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:650
}
.user-button small {
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px
}
.user-button>.icon {
  width:14px;
  height:14px;
  color:var(--muted)
}
.user-button:hover,.user-button.active {
  background:var(--paper)
}
.logout-button {
  display:flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:8px;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:12px
}
.logout-button .icon {
  width:17px;
  height:17px
}
.logout-button:hover {
  background:var(--paper)
}
.main-content {
  min-width:0
}
.topbar {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  max-width:1120px;
  min-height:45px;
  margin:0 auto;
  padding:0 30px
}
.breadcrumb {
  display:none
}
.sync {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px
}
.sync .icon-button {
  width:34px;
  height:34px;
  padding:8px
}
.sync .icon {
  width:16px;
  height:16px
}
.live-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--green)
}
.live-dot.offline {
  background:var(--gold)
}
.page-content {
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:13px 30px 60px
}
.page-content.page-feed,.page-content.page-profile {
  max-width:880px
}
.page-content.page-detail,.page-content.page-form {
  max-width:850px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:23px
}
.page-heading h1 {
  margin:0
}
.page-heading p {
  margin-top:6px;
  color:var(--muted);
  font-size:13px
}
.role-label {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap
}
.role-label .icon {
  width:15px;
  height:15px
}
.surface {
  min-width:0;
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white)
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:19px
}
.section-heading h2 {
  font-size:19px
}
.section-heading h2>span,.count-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:24px;
  margin-left:6px;
  padding:3px 6px;
  border-radius:6px;
  background:var(--surface-soft);
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  vertical-align:middle
}
.filters {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:19px
}
.filter {
  min-height:44px;
  padding:10px 13px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:550
}
.filter:hover {
  background:var(--green-surface)
}
.filter.selected {
  border-color:var(--line);
  background:var(--white);
  color:var(--ink);
  font-weight:650
}
.search-field {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:9px;
  width:100%;
  min-width:0;
  max-width:360px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
  padding-left:13px;
  font-weight:400
}
.search-field .icon {
  width:17px;
  height:17px;
  color:var(--muted)
}
.search-field input {
  min-height:44px;
  padding:10px 12px 10px 0;
  border:0;
  background:transparent;
  font-size:14px
}
.search-field:focus-within {
  border-color:var(--green)
}
.search-field input:focus-visible {
  outline-offset:1px
}
.connection-alert,.member-notice {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:21px;
  padding:14px 16px;
  border:1px solid var(--gold-border);
  border-radius:10px;
  background:var(--gold-light);
  color:var(--gold);
  font-size:13px;
  overflow-wrap:anywhere
}
.connection-alert button {
  min-height:44px;
  padding:8px;
  border-radius:7px;
  background:transparent;
  color:inherit;
  font-size:13px;
  font-weight:650
}
.member-notice {
  border-color:var(--line);
  background:var(--surface-soft);
  color:var(--muted)
}
.empty-state {
  grid-column:1/-1;
  padding:40px 24px;
  text-align:center;
  color:var(--muted)
}
.empty-state h3 {
  margin:12px 0 7px;
  color:var(--ink)
}
.empty-state p {
  font-size:13px;
  line-height:1.65
}
.empty-icon {
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:var(--green-surface);
  color:var(--green)
}
/* Social feed */
.social-feed-layout {
  max-width:740px;
  margin:0 auto
}
.feed-composer {
  margin-bottom:20px;
  padding:20px
}
.composer-top {
  display:flex;
  gap:12px;
  align-items:flex-start
}
.composer-top>textarea,.composer-top>label {
  flex:1;
  min-width:0
}
.composer-top textarea {
  min-height:99px;
  padding:5px 0;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:15px;
  line-height:1.7
}
.composer-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid var(--line)
}
.composer-footer small,.composer-footer>span {
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums
}
.feed-composer>.form-error {
  margin-top:13px
}
.post-list {
  display:grid;
  gap:15px
}
.social-post {
  padding:22px
}
.author-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px
}
.author-detail {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0
}
.author-detail>span:last-child {
  min-width:0
}
.author-detail strong {
  display:block;
  font-size:13px;
  font-weight:650;
  overflow-wrap:anywhere
}
.author-detail small,.author-detail time {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px
}
.post-text {
  margin:16px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:15px;
  line-height:1.75
}
.post-actions,.reaction-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px
}
.reaction {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:44px;
  min-height:44px;
  padding:9px 11px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:550
}
.reaction .icon {
  width:17px;
  height:17px
}
.reaction>span {
  font-size:12px
}
.reaction:hover {
  background:var(--surface-soft)
}
.reaction.reacted {
  background:var(--red-light);
  color:var(--red)
}
.reaction[data-action="like"].reacted .icon {
  fill:currentColor
}
.reaction[data-action="dislike"].reacted {
  background:var(--surface-soft);
  color:var(--muted)
}
.post-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:10px;
  border-top:1px solid var(--line);
  padding-top:6px
}
.post-tools .text-button {
  font-size:12px
}
.post-tools .text-button[data-action="visibility"] {
  color:var(--muted)
}
.hidden-post {
  background:var(--surface-soft);
  border-style:dashed
}
.post-discussion {
  padding-top:22px;
  border-top:1px solid var(--line)
}
/* Idea exchange */
.summary-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin-bottom:24px
}
.summary-metric {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  padding:19px 22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white)
}
.summary-metric strong {
  font-size:29px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums
}
.summary-metric>span {
  color:var(--muted);
  font-size:12px
}
.ideas-layout .section-heading {
  align-items:center
}
.ideas-layout .search-field {
  max-width:none;
  flex:1
}
.idea-sort {
  flex-direction:row;
  align-items:center;
  gap:10px;
  flex:none;
  color:var(--muted);
  font-weight:500
}
.idea-sort select {
  width:190px;
  min-height:46px;
  border-color:var(--line);
  font-weight:550;
  cursor:pointer
}
.ideas-layout .section-heading>h2 {
  flex:none
}
.card-list,.idea-card-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:stretch
}
.post-card {
  min-width:0;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white)
}
.idea-card {
  display:flex;
  flex-direction:column
}
.post-card.is-new {
  border-top:3px solid var(--brand-green);
  padding-top:20px
}
.post-card-top {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:14px
}
.card-badges {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:12px
}
.card-badges:empty {
  display:none
}
.category {
  margin-left:auto;
  color:var(--muted);
  font-size:11px
}
.idea-title {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  width:100%;
  min-height:44px;
  padding:0;
  background:transparent;
  color:var(--ink);
  font-size:17px;
  font-weight:700;
  line-height:1.5;
  text-align:left;
  overflow-wrap:anywhere
}
.idea-title:hover {
  color:var(--green)
}
.idea-title .icon {
  width:16px;
  height:16px;
  margin-top:4px;
  color:var(--muted)
}
.idea-effect,.post-excerpt {
  margin:13px 0 20px;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.idea-effect {
  flex:1
}
.idea-effect strong,.idea-effect-label {
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:600
}
.author-mini {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:var(--muted);
  font-size:12px
}
.author-mini>.avatar {
  width:27px;
  height:27px;
  font-size:11px
}
.author-mini>span:last-child {
  min-width:0;
  overflow-wrap:anywhere
}
.author-mini small {
  display:block;
  margin-top:2px;
  font-size:11px
}
.idea-card-actions,.post-card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line)
}
.card-counts {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:12px
}
.card-counts>span {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px
}
.card-counts .icon {
  width:16px;
  height:16px
}
.icon-star {
  color:var(--gold);
  fill:currentColor;
  stroke-width:1.4;
  transform-origin:center
}
.reaction.vote-reaction {
  min-height:44px;
  padding:10px 13px;
  border:1px solid transparent;
  background:var(--gold-light);
  color:var(--gold);
  font-weight:650;
  font-variant-numeric:tabular-nums
}
.reaction.vote-reaction:hover {
  background:var(--gold-hover)
}
.reaction.vote-reaction.reacted {
  border-color:var(--gold-border);
  background:var(--gold-hover);
  color:var(--gold)
}
.reaction.vote-reaction>span {
  font-size:13px
}
.vote-pop .icon-star {
  animation:vote-star-pop .42s ease-out
}
@keyframes vote-star-pop {
  0% {
    transform:scale(.85)
  }
  50% {
    transform:scale(1.4) rotate(-12deg)
  }
  100% {
    transform:scale(1) rotate(0)
  }
}
.back-button {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin:-8px 0 14px;
  padding:8px 0;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:600
}
.back-button:hover {
  color:var(--green)
}
.detail-panel {
  position:static;
  min-width:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white);
  scroll-margin-top:20px
}
.detail-topline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:18px 26px;
  border-bottom:1px solid var(--line)
}
.detail-number {
  color:var(--muted);
  font-size:11px
}
.detail-body {
  padding:27px
}
.detail-title-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px
}
.detail-body>h1,.detail-body>h2 {
  margin:17px 0 21px;
  font-size:28px;
  line-height:1.35;
  letter-spacing:-.65px
}
.post-full-text {
  margin:25px 0 22px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:var(--ink);
  font-size:15px;
  line-height:1.8
}
.expected-effect {
  margin:23px 0;
  padding:19px 20px;
  border-radius:11px;
  background:var(--green-light);
  color:var(--green-dark)
}
.expected-effect h3 {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:7px;
  font-size:13px
}
.expected-effect p {
  font-size:14px;
  line-height:1.7;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.source-link {
  margin:5px 0 17px
}
.moderation-block {
  margin-top:24px;
  padding:18px;
  border:1px solid var(--green-border);
  border-radius:11px;
  background:var(--green-surface)
}
.section-kicker {
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:12px;
  color:var(--green-muted);
  font-size:12px;
  font-weight:650
}
.section-kicker>.icon {
  width:16px;
  height:16px
}
.moderation-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.moderation-actions .button {
  font-size:12px
}
.idea-form-page>.surface {
  padding:27px
}
.compose-fields {
  display:grid;
  gap:20px
}
.compose-meta {
  display:flex;
  justify-content:space-between;
  gap:13px;
  color:var(--muted);
  font-size:12px
}
.source-note {
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 15px;
  border-radius:10px;
  background:var(--green-light);
  color:var(--green-dark);
  font-size:13px
}
.field-help {
  margin-top:1px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  font-weight:400
}
/* Discussion and decisions */
.discussion,.history {
  margin-top:26px
}
.detail-body>.discussion,.detail-body>.history {
  padding-top:24px;
  border-top:1px solid var(--line)
}
.discussion>h3,.history>h3 {
  margin-bottom:19px;
  font-size:16px
}
.discussion>h3>span {
  margin-left:5px;
  color:var(--muted);
  font-size:13px
}
.comments {
  display:grid;
  gap:20px;
  margin-bottom:22px
}
.comment {
  min-width:0;
  font-size:13px
}
.comment-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px
}
.comment-heading>.avatar {
  width:28px;
  height:28px;
  font-size:11px
}
.comment-heading strong {
  font-size:12px;
  font-weight:650;
  overflow-wrap:anywhere
}
.comment-heading time {
  margin-left:auto;
  color:var(--muted);
  font-size:11px
}
.comment p {
  margin:8px 0 0;
  line-height:1.75;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.comment .text-button {
  min-height:36px;
  font-size:12px
}
.comment-reply {
  margin-left:13px;
  padding-left:12px;
  border-left:2px solid var(--green-border)
}
.reply-label {
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:11px
}
.no-comments {
  padding:0 0 20px;
  color:var(--muted);
  font-size:13px
}
.comment-form textarea {
  min-height:86px;
  font-size:14px
}
.comment-form-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px
}
.comment-form-footer small {
  color:var(--muted);
  font-size:11px
}
.replying-to {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:9px;
  padding:3px 5px 3px 12px;
  border-radius:9px;
  background:var(--green-light);
  color:var(--green-dark);
  font-size:12px
}
.history ol {
  display:grid;
  gap:17px;
  margin:0;
  padding:0;
  list-style:none
}
.history li {
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:13px
}
.timeline-dot {
  width:9px;
  height:9px;
  flex:none;
  margin-top:6px;
  border-radius:50%;
  background:var(--border-strong)
}
.history li.latest .timeline-dot {
  background:var(--green)
}
.history strong {
  font-size:13px;
  font-weight:650
}
.history p {
  margin:4px 0;
  color:var(--muted);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.7
}
.history small {
  color:var(--muted);
  font-size:11px
}
/* New semantic components shared by both web surfaces. */
.author-detail strong .self-label {
  display:inline;
  margin:0 0 0 7px;
  font-size:11px;
  font-weight:400;
  color:var(--muted)
}
.legacy-post-title {
  margin:17px 0 -3px;
  font-size:16px;
  line-height:1.5;
  letter-spacing:0
}
.post-tools:empty {
  display:none
}
.post-tools .source-link {
  margin:0
}
.post-discussion>.discussion {
  margin-top:0
}
.idea-title h2 {
  font-size:inherit;
  font-weight:inherit;
  line-height:inherit;
  letter-spacing:0;
  text-align:left
}
.idea-effect {
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.expected-effect h2 {
  margin-bottom:7px;
  font-size:13px;
  letter-spacing:0
}
.history>h2 {
  margin-bottom:19px;
  font-size:16px;
  letter-spacing:0
}
.compose-source {
  display:flex;
  gap:10px;
  align-items:center;
  padding:13px 15px;
  border-radius:10px;
  background:var(--green-light);
  color:var(--green-dark);
  font-size:13px;
  overflow-wrap:anywhere
}
/* Two independent recognition rankings */
.leaderboard-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-bottom:30px
}
.ranking-card {
  padding:24px
}
.ranking-card>.muted {
  margin-top:5px;
  font-size:13px
}
.ranking-card .section-heading {
  margin-bottom:6px
}
.ranking-card h2 .icon {
  margin-right:7px;
  color:var(--green)
}
.ranking-table {
  width:100%;
  border-collapse:collapse;
  margin-top:22px;
  font-size:13px
}
.ranking-table th {
  padding:8px 5px 12px;
  color:var(--muted);
  font-size:11px;
  font-weight:500;
  text-align:right;
  vertical-align:bottom
}
.ranking-table th:first-child,.ranking-table th:nth-child(2) {
  text-align:left
}
.ranking-table td {
  padding:16px 5px;
  border-top:1px solid var(--line);
  vertical-align:middle;
  font-variant-numeric:tabular-nums
}
.ranking-table td:first-child {
  width:23px;
  color:var(--muted);
  font-size:11px
}
.ranking-table td:nth-last-child(-n+2) {
  width:63px;
  text-align:right;
  font-weight:650
}
.ranking-table td:last-child {
  color:var(--green-dark)
}
.ranking-table .author-mini {
  color:var(--ink);
  font-size:13px;
  font-weight:600
}
.ranking-table .avatar {
  width:32px;
  height:32px
}
.rank {
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums
}
.rank-1 {
  color:var(--gold)
}
.realized-grid,.success-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.success-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white)
}
.success-symbol {
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:16px;
  border-radius:13px;
  background:var(--gold-light);
  color:var(--gold);
  font-size:26px;
  line-height:1
}
.success-card h3 {
  margin:12px 0 9px;
  font-size:16px
}
.success-card p {
  margin-bottom:17px;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.success-card .author-mini {
  margin-top:auto
}
.success-card .text-button {
  margin-top:10px;
  font-size:12px
}
.profile-hero {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  margin-bottom:28px;
  padding:27px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white)
}
.avatar-large {
  width:64px;
  height:64px;
  font-size:23px
}
.profile-hero>div:nth-child(2) {
  min-width:0;
  flex:1
}
.profile-hero h2 {
  margin:0 0 8px;
  font-size:25px
}
.profile-hero p {
  color:var(--muted);
  font-size:12px
}
.profile-stats {
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  margin-left:auto
}
.profile-stats>span {
  display:flex;
  flex-direction:column;
  color:var(--muted);
  font-size:11px
}
.profile-stats strong {
  color:var(--ink);
  font-size:27px;
  font-weight:700;
  line-height:1.35;
  font-variant-numeric:tabular-nums
}
.profile-section {
  margin-bottom:30px
}
.award-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.award-card {
  padding:23px;
  border:1px solid var(--gold-border);
  border-radius:var(--radius);
  background:var(--gold-light)
}
.award-symbol {
  display:inline-grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:16px;
  border-radius:13px;
  background:var(--gold-light);
  color:var(--gold);
  font-size:27px
}
.award-card h3 {
  margin-bottom:7px;
  font-size:16px
}
.award-card p {
  margin-bottom:14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.award-card small {
  color:var(--muted);
  font-size:11px
}
.ranking-labels,.ranking-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 62px 68px;
  gap:8px;
  align-items:center
}
.ranking-labels {
  padding-bottom:12px;
  color:var(--muted);
  font-size:11px;
  text-align:right
}
.ranking-labels>span:first-child {
  text-align:left
}
.ranking-row {
  padding:16px 0;
  border-top:1px solid var(--line)
}
.ranking-row:last-child {
  padding-bottom:0
}
.ranking-person {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0
}
.ranking-person>.rank {
  min-width:14px;
  flex:none;
  font-size:11px
}
.ranking-person strong {
  min-width:0;
  overflow-wrap:anywhere;
  font-size:13px;
  font-weight:600
}
.ranking-value {
  text-align:right;
  font-weight:650;
  font-size:14px;
  font-variant-numeric:tabular-nums
}
.ranking-value:last-child {
  color:var(--green-dark)
}
/* Announcements and device management */
.participant-announcement {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:14px;
  margin-bottom:22px;
  padding:19px;
  border:1px solid var(--green-border);
  border-radius:var(--radius);
  background:var(--green-surface)
}
.announcement-icon {
  display:inline-grid;
  place-items:center;
  width:31px;
  height:31px;
  flex:none;
  color:var(--green)
}
.announcement-copy {
  flex:1;
  min-width:0
}
.announcement-copy h2 {
  margin:5px 0;
  font-size:15px
}
.announcement-copy p {
  color:var(--green-muted);
  font-size:13px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.announcement-ack {
  flex:none;
  margin-left:auto;
  color:var(--green);
  border-color:var(--green-border);
  font-size:12px;
  background:var(--white)
}
.announcement-ack.acknowledged {
  background:transparent;
  opacity:1;
  border-color:transparent
}
.device-guide {
  display:flex;
  gap:16px;
  align-items:center;
  padding:20px;
  margin-bottom:26px;
  border:1px solid var(--green-border);
  border-radius:var(--radius);
  background:var(--green-surface)
}
.device-guide-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:none;
  border-radius:12px;
  background:var(--green-border);
  color:var(--green)
}
.device-guide p {
  color:var(--green-muted);
  font-size:13px;
  line-height:1.75
}
.device-section {
  margin-bottom:32px
}
.device-section .section-heading {
  flex-wrap:wrap
}
.device-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.device-card {
  min-width:0;
  padding:23px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white)
}
.device-card-heading {
  display:flex;
  align-items:center;
  gap:11px
}
.device-card-heading>div {
  flex:1;
  min-width:0
}
.device-card-heading h3 {
  font-size:15px
}
.device-card-heading p {
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere
}
.device-details {
  display:grid;
  gap:10px;
  margin:22px 0;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.device-details>div {
  display:flex;
  justify-content:space-between;
  gap:18px
}
.device-details dt {
  color:var(--muted);
  font-size:12px
}
.device-details dd {
  margin:0;
  font-size:12px;
  text-align:right;
  overflow-wrap:anywhere
}
.device-approve-form {
  display:grid;
  gap:13px
}
.device-code {
  font-size:21px;
  letter-spacing:5px;
  font-variant-numeric:tabular-nums
}
.device-code-help {
  color:var(--muted);
  font-size:12px;
  line-height:1.65
}
.device-loading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  padding:50px 20px;
  color:var(--muted);
  font-size:13px
}
.approved-devices {
  display:grid;
  gap:12px
}
.approved-device {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white)
}
.approved-device-info {
  flex:1;
  min-width:0
}
.approved-device h3 {
  font-size:15px
}
.approved-device p {
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere
}
.approved-device small {
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px
}
.approved-device .form-error {
  margin-top:11px
}
.device-empty-approved {
  font-size:13px
}
/* Dialogs and feedback */
.status-dialog {
  width:calc(100% - 36px);
  max-width:570px;
  max-height:calc(100dvh - 36px);
  margin:auto;
  padding:27px;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--white);
  color:var(--ink);
  box-shadow:0 24px 80px #10233533
}
.status-dialog::backdrop {
  background:#11273665
}
.status-dialog h2 {
  margin-bottom:12px;
  font-size:24px
}
.status-dialog form>.muted {
  margin-bottom:23px;
  font-size:13px
}
.status-dialog label {
  margin:20px 0
}
.dialog-heading {
  display:flex;
  justify-content:flex-end;
  margin:-13px -13px -5px 0
}
.dialog-note {
  margin:15px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
  padding-top:20px;
  border-top:1px solid var(--line)
}
.compose-dialog {
  max-width:650px
}
.compose-dialog label {
  margin:0
}
.compose-dialog .compose-meta {
  margin:16px 0
}
.toast {
  position:fixed;
  z-index:100;
  left:50%;
  bottom:23px;
  max-width:min(520px,calc(100% - 32px));
  padding:14px 20px;
  transform:translateX(-50%);
  border:1px solid #375745;
  border-radius:12px;
  background:var(--toast-bg);
  color:var(--on-accent);
  box-shadow:0 8px 28px #142b3728;
  font-size:13px;
  line-height:1.6;
  text-align:center;
  overflow-wrap:anywhere
}
noscript {
  display:block;
  padding:25px;
  text-align:center
}
@media(max-width:1180px) {
  .sidebar {
    gap:15px;
    padding:15px 23px
  }
  .user-button strong {
    max-width:105px
  }
  .user-button>.icon {
    display:none
  }
  .nav-item {
    padding:10px;
    font-size:12px
  }
  .device-nav {
    max-width:160px
  }
}
@media(max-width:980px) {
  .sidebar {
    grid-template-columns:1fr auto;
    gap:12px 20px;
    padding:16px 25px 9px
  }
  .sidebar nav {
    grid-column:1/-1;
    grid-row:2;
    justify-content:flex-start;
    padding-top:8px;
    border-top:1px solid var(--line)
  }
  .nav-item {
    font-size:13px;
    padding:10px 13px
  }
  .device-nav {
    max-width:none
  }
  .sidebar-bottom {
    grid-column:2;
    grid-row:1
  }
  .user-button strong {
    max-width:180px
  }
  .realized-grid,.success-grid,.award-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .profile-stats {
    width:100%;
    margin:3px 0 0;
    padding-top:18px;
    border-top:1px solid var(--line)
  }
}
@media(max-width:760px) {
  .sidebar {
    padding:14px 17px 8px;
    gap:11px 12px
  }
  .brand {
    font-size:17px;
    gap:8px
  }
  .brand-mark {
    width:31px;
    height:31px;
    font-size:25px
  }
  .brand-sub {
    font-size:11px;
    letter-spacing:.1px
  }
  .sidebar nav {
    gap:3px
  }
  .nav-item {
    flex:1;
    gap:6px;
    padding:9px 8px;
    font-size:12px
  }
  .nav-item .icon {
    width:16px;
    height:16px
  }
  .device-nav {
    flex:0 1 auto
  }
  .sidebar-bottom {
    gap:2px
  }
  .user-button {
    padding:3px
  }
  .user-button>span:nth-child(2) {
    display:none
  }
  .user-button .avatar {
    width:34px;
    height:34px
  }
  .logout-button {
    gap:5px;
    padding:8px;
    font-size:11px
  }
  .topbar {
    min-height:43px;
    padding:0 17px
  }
  .sync .icon-button {
    width:44px;
    height:40px
  }
  .page-content {
    padding:13px 18px 42px
  }
  .page-heading {
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    margin-bottom:20px
  }
  .page-heading h1 {
    font-size:25px
  }
  .page-heading .button {
    padding:9px 12px;
    font-size:12px
  }
  .page-heading .role-label {
    display:none
  }
  .section-heading {
    gap:12px;
    flex-wrap:wrap
  }
  .section-heading h2 {
    font-size:18px
  }
  .search-field {
    max-width:none
  }
  .ideas-layout .section-heading>.search-field {
    flex-basis:100%
  }
  .idea-sort {
    width:100%;
    justify-content:space-between
  }
  .card-list,.idea-card-list,.leaderboard-grid,.device-grid {
    grid-template-columns:1fr
  }
  .leaderboard-grid {
    gap:17px
  }
  .social-post {
    padding:20px
  }
  .post-text {
    font-size:15px
  }
  .summary-metrics {
    gap:9px
  }
  .summary-metric {
    padding:16px 13px;
    gap:7px
  }
  .summary-metric strong {
    font-size:27px
  }
  .summary-metric>span {
    font-size:11px;
    line-height:1.5
  }
  .post-card {
    padding:21px
  }
  .post-card.is-new {
    padding-top:19px
  }
  .detail-body {
    padding:23px
  }
  .detail-body>h1,.detail-body>h2 {
    font-size:25px
  }
  .detail-topline {
    padding:17px 23px
  }
  .participant-announcement {
    padding:17px;
    gap:10px
  }
  .announcement-ack {
    margin-left:41px
  }
  .announcement-copy {
    flex-basis:calc(100% - 44px)
  }
  .approved-device {
    flex-wrap:wrap;
    padding:18px
  }
  .approved-device-info {
    flex-basis:calc(100% - 52px)
  }
  .approved-device>.button {
    margin-left:51px
  }
  .status-dialog {
    padding:24px
  }
  .idea-form-page>.surface {
    padding:23px
  }
}
@media(max-width:480px) {
  input,textarea,select,.search-field input,.composer-top textarea,.comment-form textarea {
    font-size:16px
  }
  h1 {
    font-size:24px
  }
  .auth-layout {
    padding:22px 16px
  }
  .auth-form-card {
    padding:27px 23px
  }
  .auth-form-card h1 {
    font-size:25px
  }
  .sidebar {
    padding:13px 14px 7px
  }
  .nav-item {
    padding:8px 5px;
    gap:4px;
    font-size:11px
  }
  .nav-item .icon {
    display:none
  }
  .nav-item b {
    min-width:18px;
    height:18px;
    padding:0 4px;
    font-size:11px
  }
  .device-nav {
    flex-basis:100%;
    justify-content:flex-start
  }
  .topbar {
    padding:0 14px
  }
  .page-content {
    padding:12px 14px 34px
  }
  .page-heading h1 {
    font-size:24px
  }
  .button {
    padding:10px 13px;
    font-size:13px
  }
  .filter {
    padding:10px 9px;
    font-size:12px
  }
  .feed-composer {
    padding:16px
  }
  .composer-top {
    gap:9px
  }
  .composer-top>.avatar {
    width:31px;
    height:31px;
    font-size:11px
  }
  .composer-top textarea {
    min-height:118px;
    padding-top:0
  }
  .composer-footer .button {
    font-size:12px
  }
  .social-post {
    padding:18px 16px
  }
  .post-text {
    margin:14px 0;
    font-size:14px;
    line-height:1.75
  }
  .post-actions {
    gap:4px
  }
  .reaction {
    padding:8px 10px;
    font-size:13px
  }
  .reaction>span {
    font-size:11px
  }
  .post-tools {
    gap:4px 14px
  }
  .summary-metrics {
    gap:7px;
    margin-bottom:21px
  }
  .summary-metric {
    padding:14px 10px;
    border-radius:11px
  }
  .summary-metric strong {
    font-size:25px
  }
  .summary-metric>span {
    font-size:11px
  }
  .post-card {
    padding:19px
  }
  .post-card.is-new {
    padding-top:17px
  }
  .idea-title {
    font-size:16px
  }
  .idea-effect {
    margin:12px 0 18px
  }
  .idea-card-actions {
    gap:7px
  }
  .idea-card-actions .reaction>span {
    font-size:11px
  }
  .detail-body,.idea-form-page>.surface {
    padding:20px 17px
  }
  .detail-topline {
    padding:15px 17px
  }
  .detail-body>h1,.detail-body>h2 {
    font-size:23px
  }
  .post-full-text {
    font-size:14px
  }
  .expected-effect {
    padding:16px
  }
  .moderation-block {
    padding:15px
  }
  .moderation-actions .button {
    width:100%
  }
  .comment-heading time {
    margin-left:36px;
    flex-basis:100%;
    margin-top:-5px
  }
  .comment-form-footer {
    align-items:center;
    gap:7px
  }
  .comment-form-footer .button {
    font-size:12px
  }
  .comment-reply {
    margin-left:9px;
    padding-left:10px
  }
  .ranking-card {
    padding:20px 17px
  }
  .ranking-table {
    font-size:12px
  }
  .ranking-table th,.ranking-table td {
    padding-left:3px;
    padding-right:3px
  }
  .ranking-table td:nth-last-child(-n+2) {
    width:55px
  }
  .ranking-table .author-mini {
    gap:7px;
    font-size:12px
  }
  .ranking-table .avatar {
    width:28px;
    height:28px
  }
  .realized-grid,.success-grid,.award-grid {
    grid-template-columns:1fr
  }
  .success-card {
    padding:21px
  }
  .profile-hero {
    padding:22px;
    gap:15px
  }
  .profile-hero>div:nth-child(2) {
    flex-basis:calc(100% - 70px)
  }
  .profile-hero h2 {
    font-size:22px
  }
  .avatar-large {
    width:54px;
    height:54px;
    font-size:21px
  }
  .profile-stats {
    gap:20px
  }
  .profile-stats strong {
    font-size:25px
  }
  .device-guide {
    padding:17px;
    gap:12px;
    align-items:flex-start
  }
  .device-guide-icon {
    width:34px;
    height:34px
  }
  .device-guide p {
    font-size:12px
  }
  .device-card {
    padding:19px 17px
  }
  .device-card-heading {
    flex-wrap:wrap
  }
  .device-card-heading>.pill {
    margin-left:48px
  }
  .status-dialog {
    width:calc(100% - 24px);
    max-height:calc(100dvh - 24px);
    padding:21px
  }
  .status-dialog h2 {
    font-size:22px
  }
  .dialog-actions {
    gap:8px
  }
  .dialog-actions .button {
    flex:1;
    padding:10px;
    font-size:12px
  }
  .compose-meta {
    flex-wrap:wrap
  }
  .connection-alert {
    align-items:flex-start;
    flex-direction:column;
    gap:6px
  }
  .toast {
    bottom:16px;
    font-size:12px
  }
}
@media(max-width:350px) {
  .brand {
    font-size:16px
  }
  .brand-sub {
    display:none
  }
  .logout-button {
    padding:7px 5px
  }
  .logout-button .icon {
    display:none
  }
  .page-content {
    padding-left:12px;
    padding-right:12px
  }
  .page-heading>.propose-button {
    width:100%
  }
  .ranking-card {
    padding:18px 13px
  }
  .ranking-table .author-mini .avatar {
    display:none
  }
  .ranking-table td:nth-last-child(-n+2) {
    width:51px
  }
  .reaction.vote-reaction>span {
    font-size:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important
  }
  .button {
    transition:none
  }
  .vote-pop .icon-star {
    animation:none
  }
}
@media(max-width:480px) {
  .ranking-labels,.ranking-row {
    grid-template-columns:minmax(0,1fr) 54px 58px;
    gap:5px
  }
  .ranking-person {
    gap:6px
  }
  .ranking-person strong {
    font-size:12px
  }
  .ranking-person>.avatar {
    width:27px;
    height:27px
  }
  .ranking-value {
    font-size:13px
  }
}
@media(max-width:350px) {
  .ranking-person>.avatar {
    display:none
  }
  .ranking-labels,.ranking-row {
    grid-template-columns:minmax(0,1fr) 51px 54px
  }
}

/* Brand accents keep the portal's green and navy in both themes. */
.brand-mark { background:var(--brand-green); color:#fff }
.toast { color:#fff }
.vote-count-closed { display:inline-flex; align-items:center; gap:7px; padding:9px 12px; border-radius:9px; color:var(--gold); background:var(--gold-light); font-size:13px; font-weight:650; cursor:default }
.vote-count-closed .icon { width:18px; height:18px }
.attachment-picker { display:inline-flex; flex-direction:row; align-items:center; position:relative; cursor:pointer; min-height:44px; gap:7px; color:var(--green); font-size:13px; font-weight:600 }
.attachment-picker input[type=file] { position:absolute; width:1px; height:1px; min-height:0; padding:0; opacity:0; overflow:hidden }
.attachment-picker:focus-within { outline:3px solid var(--focus); outline-offset:3px; border-radius:6px }
.attachment-dropzone { padding:14px; border:1px dashed var(--line); border-radius:11px; background:var(--surface-soft); transition:border-color .15s,background-color .15s }
.attachment-drop-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px }
.attachment-drop-hint { flex:1 1 180px; font-size:13px; line-height:1.5; color:var(--muted) }
.attachment-dropzone.is-dragover { border-color:var(--green); background:var(--green-surface); outline:2px solid var(--green-border); outline-offset:2px }
.attachment-dropzone.is-drop-blocked { border-color:var(--red); outline-color:var(--red); background:var(--red-light) }
.attachment-dropzone.is-dragover .attachment-drop-hint { color:var(--ink) }
.attachment-picker:has(input:disabled) { cursor:not-allowed; opacity:.6 }
.attachment-grid { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 }
.attachment-item { position:relative; width:112px; min-width:0; margin:0 }
.attachment-thumb { display:block; width:112px; height:86px; padding:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:var(--surface-soft); cursor:zoom-in }
.attachment-thumb img,img.attachment-thumb { width:112px; height:86px; object-fit:cover }
.attachment-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; color:var(--muted); font-size:11px }
.feed-composer .attachment-dropzone { margin-top:14px }
.social-post-media .attachment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; margin:16px 0; border-radius:12px; overflow:hidden }
.social-post-media .attachment-item { width:auto; min-width:0; min-height:0; overflow:hidden }
.social-post-media .attachment-thumb { width:100%; height:100%; border:0; border-radius:0 }
.social-post-media .attachment-thumb:focus-visible { outline:3px solid var(--focus); outline-offset:-3px }
.social-post-media .attachment-thumb img { display:block; width:100%; height:100%; object-fit:cover }
.social-post-media.media-count-1 .attachment-grid { grid-template-columns:minmax(0,1fr) }
.social-post-media.media-count-1 .attachment-thumb,.social-post-media.media-count-1 img { height:auto }
.social-post-media.media-count-2 .attachment-grid { aspect-ratio:16/10; grid-template-rows:minmax(0,1fr) }
.social-post-media.media-count-3 .attachment-grid,.social-post-media.media-count-4 .attachment-grid { aspect-ratio:4/3; grid-template-rows:repeat(2,minmax(0,1fr)) }
.social-post-media.media-count-3 .attachment-item:first-child { grid-row:1/3 }
.social-post-media .attachment-name { display:none }
.attachment-remove { position:absolute; right:-7px; top:-7px; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--white); border:1px solid var(--line); box-shadow:0 2px 7px #0002 }
.attachment-remove .icon { width:16px; height:16px }
.attachment-error,.ai-error { color:var(--red); font-size:13px; margin:8px 0 }
.attachment-progress,.settings-note { color:var(--muted); font-size:13px; line-height:1.7 }
.attachment-lightbox,.contribution-dialog { max-width:min(760px,calc(100vw - 28px)); width:100%; max-height:calc(100dvh - 36px); overflow:auto; padding:24px; background:var(--white); color:var(--ink); border:1px solid var(--line); border-radius:16px }
.attachment-lightbox::backdrop,.contribution-dialog::backdrop { background:#08121bd9 }
.lightbox-image { display:block; max-width:100%; max-height:75dvh; margin:10px auto 0; object-fit:contain; border-radius:6px }
.ai-tools,.similar-actions,.contribution-review-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0 }
.ai-panel,.publish-gate { margin:16px 0; padding:20px; background:var(--green-surface); border:1px solid var(--green-border); border-radius:12px }
.ai-panel h3,.publish-gate h3 { margin-bottom:10px }
.ai-preview { display:grid; gap:12px; padding:14px; margin:12px 0; background:var(--white); border:1px solid var(--line); border-radius:9px; overflow-wrap:anywhere; white-space:pre-wrap }
.ai-preview p { margin-bottom:8px }
.ai-warning { color:var(--muted); font-size:13px; line-height:1.7; margin:10px 0 }
.similar-list { display:grid; gap:10px; margin-top:12px }
.similar-card { padding:15px; border:1px solid var(--line); border-radius:10px; background:var(--white) }
.similar-card p { margin:8px 0; color:var(--muted); font-size:13px }
.contributions-section { border-top:1px solid var(--line); padding-top:24px; margin-top:24px }
.contributions-section h2 { margin-bottom:16px }
.contribution-card { padding:17px; margin-top:12px; background:var(--surface-soft); border:1px solid var(--line); border-radius:11px; overflow-wrap:anywhere }
.contribution-card p { white-space:pre-wrap; margin-top:10px }
.contribution-status { display:inline-flex; font-size:11px; border-radius:6px; padding:4px 8px; background:var(--blue-light); color:var(--blue) }
.contribution-status.accepted { background:var(--green-light); color:var(--green) }
.contribution-status.rejected { background:var(--red-light); color:var(--red) }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0 }
.settings-card { padding:22px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius) }
.settings-card h2,.settings-card h3 { margin-bottom:12px }
.settings-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:12px }
.settings-card select { width:100% }
.settings-note { margin:10px 0 }
:target { scroll-margin-top:25px }
@media(max-width:600px) {
  .settings-grid { grid-template-columns:1fr }
  .ai-panel,.publish-gate,.settings-card { padding:16px }
  .ai-tools .button,.similar-actions .button { flex:1 1 auto }
  .attachment-lightbox,.contribution-dialog { padding:18px }
}

.settings-card label.settings-row { align-items:stretch }

/* МОСТ: one workspace, the same capabilities on every screen. */
:root {
  --green:#007d91;--green-dark:#006478;--green-light:#e5f2f4;--green-border:#c4e2e6;
  --green-surface:#f0f7f8;--green-muted:#49727b;--brand-green:#007d91;--focus:#007d91;
  --paper:#f3f6f8;--ink:#173340;--muted:#677d88;--line:#e0e8ec;--border-strong:#b9cbd2;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:root[data-theme="dark"] {
  --green:#76ceda;--green-dark:#9adee7;--green-light:#173b45;--green-border:#2e5963;
  --green-surface:#183039;--green-muted:#a8c6cd;--focus:#76ceda;--paper:#101c24;--ink:#e7f0f4;
  --muted:#a1b5bf;--line:#30454f;--border-strong:#587480;--on-accent:#082e35;
}
button,input,textarea,select{font-size:14px}
button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.workspace{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}
.sidebar{display:flex;flex-direction:column;align-items:stretch;gap:22px;position:sticky;top:0;height:100dvh;padding:29px 18px 18px;background:#002c42;color:#fff;border:0;overflow:auto;z-index:5}
.brand{color:var(--navy);letter-spacing:.1em;font-size:25px;font-weight:750}
.sidebar .brand{padding:0 10px;color:white;gap:12px}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:#002c42;border-radius:50%;font-size:0;flex-shrink:0}
.brand-mark img{display:block;width:34px;height:34px}
.sidebar .brand-mark{background:transparent}
.sidebar-profile{display:flex;align-items:flex-start;gap:11px;margin:0 7px;padding:19px 0 22px;border-bottom:1px solid #ffffff24;min-width:0}
.sidebar-profile>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.sidebar-profile .person-link{color:#fff;font-size:14px;font-weight:650;line-height:1.4;text-align:left}
.sidebar-profile small{font-size:11px;line-height:1.5;color:#b3ccd7;overflow-wrap:anywhere}
.sidebar-profile .profile-role{color:#99c0ce;margin-top:3px}
.sidebar-profile .avatar{background:#155168;color:#e5f4f8;width:40px;height:40px;flex-shrink:0}
.sidebar-awards{display:flex;align-items:center;gap:5px;color:#b5d6e2;font-size:11px;margin-top:5px}
.sidebar-awards .icon{width:14px;height:14px}
.sidebar nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;width:100%;grid-column:auto;grid-row:auto;border:0;padding:0;flex-wrap:nowrap}
.sidebar .nav-item{display:flex;flex:none;justify-content:flex-start;min-height:45px;padding:11px 13px;font-size:13px;font-weight:500;color:#c1d4dc;border-radius:9px;gap:11px;text-align:left}
.sidebar .nav-item .icon{width:19px;height:19px;flex-shrink:0}
.sidebar .nav-item.active{color:#fff;background:#ffffff17}
.sidebar .nav-item:hover{color:#fff;background:#ffffff0e}
.sidebar .nav-item b{margin-left:auto;border-radius:20px;background:#91d9e2;color:#003b49;font-size:10px;min-width:20px;height:20px}
.sidebar-bottom{display:flex;justify-content:flex-start;margin-top:auto;grid-column:auto;grid-row:auto}
.sidebar .logout-button{color:#a5c1ce;font-size:12px;padding:10px 13px;gap:10px}
.main-content{min-width:0;margin:0;padding:0}
.topbar{height:67px;min-height:67px;padding:0 38px;border-bottom:1px solid var(--line);background:var(--white)}
.breadcrumb{font-size:12px}.breadcrumb>span{margin:0 12px}.sync{font-size:11px;gap:7px}
.page-content{max-width:1180px;margin:0 auto;padding:31px 38px 60px;width:100%}
.page-heading{margin-bottom:24px;align-items:center;gap:16px;flex-wrap:wrap}
.page-heading h1{font-size:27px;letter-spacing:-.6px;font-weight:680;line-height:1.2}
.heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.button{min-height:42px;padding:10px 15px;border-radius:9px;font-weight:600;font-size:12px}
.surface{border:1px solid var(--line);box-shadow:0 2px 7px #002c4203;border-radius:12px}
.social-feed-layout{max-width:none;margin:0;display:block}
.feed-composer{padding:17px 20px;margin-bottom:22px}
.composer-top{gap:12px;align-items:center}
.composer-top textarea{min-height:40px;padding:8px 0;border:0;resize:vertical;font-size:14px;background:transparent;line-height:1.6}
.composer-top textarea:focus{box-shadow:none}.composer-top textarea:focus-visible{outline:0;box-shadow:none}
.composer-top .avatar{width:36px;height:36px;flex-shrink:0}
.composer-expanded{display:block}.collapsed .composer-expanded{display:none}
.composer-expand{color:var(--green);flex-shrink:0}.expanded .composer-expand{display:none}
.feed-composer .attachment-dropzone{margin-top:12px;padding:12px;border-style:dashed;background:var(--paper)}
.feed-composer .attachment-drop-hint{display:none}.feed-composer .attachment-drop-actions{justify-content:flex-start}
.feed-composer .attachment-picker{min-height:34px;padding:5px 10px;font-size:11px}
.feed-composer .settings-note{font-size:10px}.composer-footer{margin-top:12px}
.filters{gap:5px;margin-bottom:20px;flex-wrap:wrap}
.filter{min-height:38px;padding:8px 13px;border-radius:8px;font-size:12px}
.social-post{padding:21px 23px}.social-post-list{gap:16px}
.author-row{gap:10px;align-items:center}.author-detail{min-width:0}.author-detail>span{min-width:0}.author-detail time,.author-detail small{font-size:11px}
.person-link{display:inline;padding:0;background:none;color:inherit;text-align:inherit;font:inherit;line-height:inherit;overflow-wrap:anywhere}
.person-link:hover{text-decoration:underline;text-underline-offset:3px}
.avatar{padding:0;border-radius:50%;overflow:hidden;display:inline-grid;place-items:center;min-width:0;flex-shrink:0;background:var(--green-light);color:var(--green-dark)}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar-large{width:84px;height:84px}
.follow-button{margin-left:auto;font-size:11px;white-space:normal;min-height:40px;max-width:125px;line-height:1.4}
.post-text{font-size:15px;line-height:1.65;margin:16px 0 18px}
.post-actions{gap:10px;display:flex;align-items:center;flex-wrap:wrap;padding-top:13px}
.action-spacer{flex:1}.reaction{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:40px;border-radius:8px;font-size:12px;padding:7px 9px}
.reaction.reacted{color:var(--green-dark);background:var(--green-light)}
.post-tools{padding-top:9px;margin-top:10px;gap:10px;flex-wrap:wrap}.post-tools .text-button{font-size:11px}
.summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}
.summary-metric{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:16px 18px;min-height:75px;border:1px solid var(--line);background:var(--white);border-radius:10px;text-align:left;position:static}
.summary-metric strong{font-size:27px;font-weight:650;line-height:1.1}.summary-metric span{font-size:11px;color:var(--muted);line-height:1.4}.summary-metric .icon{width:14px;height:14px;color:var(--muted)}
.summary-metric.selected{border-color:var(--green);background:var(--green-surface)}
.ideas-layout>.section-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.ideas-layout .search-field{flex:1;min-width:230px;max-width:none}.search-field{min-height:44px;background:var(--white);border-radius:9px;padding:0 13px}.search-field input{font-size:12px;min-width:0}
.idea-sort{font-size:11px;display:flex;align-items:center;gap:8px}.idea-sort select{font-size:12px;max-width:180px;min-height:42px}
.idea-personal-filters{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:12px;margin:-4px 0 18px}.idea-personal-filters label{display:flex;align-items:center;gap:7px;min-height:38px;cursor:pointer}.idea-personal-filters input,.checkbox-line input,.notification-preferences input{width:16px;height:16px;accent-color:var(--green)}
.result-count{margin-left:auto;color:var(--muted);font-size:11px}
.idea-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.idea-card{padding:20px;min-width:0;box-shadow:none;border-radius:11px}
.post-card-top{display:flex;align-items:center;gap:7px;margin-bottom:13px}.pill{font-size:10px;padding:4px 8px}.new-badge{font-size:9px}.idea-number{margin-left:auto;font-size:10px;color:var(--muted)}
.idea-title h2{font-size:16px;line-height:1.45;letter-spacing:-.1px}.idea-effect{font-size:12px;line-height:1.65;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;min-height:38px;margin:10px 0 16px}
.author-mini .avatar{width:28px;height:28px}.author-mini .person-link{font-size:11px}.author-mini small{font-size:10px}.idea-card-actions{gap:4px;padding-top:12px;margin-top:14px;display:flex;align-items:center;flex-wrap:wrap}.idea-card-actions .reaction{font-size:11px}.idea-card-actions .reaction>span{font-size:10px}
.reply-quote{display:block;text-align:left;width:100%;padding:9px 12px;background:var(--green-surface);border-left:2px solid var(--green-border);margin-top:11px;border-radius:0 6px 6px 0;line-height:1.55}
.reply-quote>span{font-size:11px;color:var(--green-dark)}.reply-quote blockquote,.replying-to blockquote{margin:3px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.comment-reply{margin-left:12px;padding-left:12px}.comment-heading strong{min-width:0}.comment-heading time{white-space:normal}.comment-form .attachment-dropzone{padding:10px;font-size:11px}.comment-form .attachment-drop-hint{display:none}.comment-form .settings-note{font-size:10px}.comment-form .attachment-picker{font-size:11px;min-height:34px}
.official-response{background:var(--green-surface);border-color:var(--green-border);padding:20px;margin:25px 0}.official-response h2{font-size:16px}.official-response .author-detail{margin-top:18px}.official-response .section-heading{flex-wrap:wrap}.official-response p{font-size:14px}
.profile-hero{padding:25px;gap:19px;flex-wrap:wrap;background:var(--white);border-radius:12px;margin-bottom:20px}.profile-identity{min-width:0;flex:1}.profile-identity h2{font-size:23px;line-height:1.4;overflow-wrap:anywhere}.profile-identity p{margin:3px 0;font-size:13px;overflow-wrap:anywhere}.profile-identity small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.profile-stats{display:flex;gap:22px;justify-content:flex-start;padding:0;margin:0;width:auto;flex-wrap:wrap}.profile-stats span{font-size:11px}.profile-stats strong{font-size:24px}
.profile-awards{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:19px}.award-chip{font-size:11px;padding:6px 10px;background:var(--gold-light);border-radius:7px;color:var(--gold)}
.profile-tabs{margin-bottom:22px}.profile-editor{padding:24px;margin-bottom:18px}.profile-editor h2,.admin-create h2{font-size:18px;margin:0 0 5px}.profile-editor>.muted{font-size:12px;margin:0 0 20px}.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-fields>label{min-width:0}.profile-fields input{width:100%;min-width:0}.profile-photo-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}.profile-photo-control .avatar-large{width:60px;height:60px}.notification-preferences{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--line);border-radius:9px;min-width:0}.notification-preferences legend{font-size:12px;padding:0 6px}.notification-preferences label,.checkbox-line{display:flex;align-items:center;gap:8px;min-height:32px;font-size:12px}.notification-preferences label{flex-direction:row}
.people-list{display:grid;gap:10px}.person-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px}.person-row .author-detail{min-width:0}.person-row .button{flex-shrink:0}
.notifications-page{max-width:820px}.notifications-page>.section-heading{margin-bottom:18px}.notification-row{display:flex;align-items:center;gap:17px;padding:18px 20px;margin-bottom:10px;position:relative}.notification-row.is-unread{border-color:var(--green-border);background:var(--green-surface)}.notification-open{display:flex;flex-direction:column;gap:5px;text-align:left;flex:1;min-width:0;background:transparent;padding:4px}.notification-open strong{font-size:12px}.notification-open>span{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.notification-open .icon{width:13px;height:13px}.notification-row .author-detail{max-width:190px}.notification-row .author-detail strong{font-size:12px}.unread-dot{display:inline-block;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--green);margin-left:auto}.sidebar .unread-dot{background:#8cd5df}
.announcement-page{padding:27px;max-width:760px}.announcement-page h2{font-size:22px;margin:17px 0}.announcement-page p{font-size:14px}.admin-create{padding:24px;margin-bottom:28px}.admin-create .form-stack{margin-top:22px}.admin-user-list{display:grid;gap:12px}.admin-user{padding:20px}.admin-role-controls{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin-top:14px}.admin-user .author-detail>span{min-width:0}.danger{color:var(--red)}
.attachment-lightbox{max-width:min(960px,calc(100vw - 28px));padding:18px}.gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;touch-action:pan-y}.gallery-stage .lightbox-image{max-height:75dvh;margin:0 auto}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#002c42bb;color:white;z-index:1}.gallery-arrow.prev{left:8px}.gallery-arrow.next{right:8px}.gallery-arrow.prev .icon{transform:rotate(180deg)}.gallery-position{font-size:12px;color:var(--muted);margin-left:auto}
.monthly-dialog{max-width:760px;padding:24px}.month-picker{display:flex;align-items:flex-end;gap:14px;margin:20px 0}.month-picker label{display:flex;flex-direction:column;gap:5px;flex:1;font-size:12px}.month-picker input{min-width:0;width:100%}.month-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.month-counts>div{display:flex;flex-direction:column;padding:15px;border-radius:9px;background:var(--surface-soft)}.month-counts strong{font-size:25px}.month-counts span{font-size:10px;color:var(--muted)}.monthly-ideas{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:15px 0}
.auth-form-card .brand{margin-bottom:18px}.auth-intro{font-size:13px;color:var(--muted);margin-bottom:30px}.auth-form-card h1{font-size:25px;margin-bottom:22px}.auth-form-card{max-width:410px}.auth-form-area{padding:40px 20px}.auth-layout{background:var(--paper)}
@media(min-width:1550px){.page-content{padding-top:39px}}
@media(max-width:1100px){.workspace{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:25px 13px 15px}.page-content{padding:26px}.topbar{padding:0 26px}.summary-metric{grid-template-columns:auto 1fr;padding:14px 12px;gap:9px}.summary-metric>.icon{display:none}.summary-metric strong{font-size:23px}.idea-card-list{grid-template-columns:1fr}.profile-stats{width:100%;padding-top:15px;border-top:1px solid var(--line);margin-top:0}}
@media(max-width:760px){
.workspace{display:block}.sidebar{height:auto;position:static;padding:16px 16px 10px;gap:13px;overflow:visible}.sidebar .brand{font-size:22px;padding:0;gap:9px}.brand-mark{width:32px;height:32px}.brand-mark img{width:30px;height:30px}.sidebar-profile{display:none}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:3px;padding:10px 0 0;border-top:1px solid #ffffff24}.sidebar .nav-item{flex:0 0 auto;gap:6px;font-size:11px;min-height:42px;padding:8px 10px;max-width:none}.sidebar .nav-item .icon{width:16px;height:16px}.sidebar .nav-item b{min-width:17px;height:17px;font-size:9px;margin-left:1px}.sidebar-bottom{position:absolute;right:14px;top:11px;margin:0}.sidebar .logout-button{min-height:40px;padding:7px}.sidebar .logout-button span{display:none}.topbar{height:47px;min-height:47px;padding:0 18px}.sync span[data-sync]{display:none}.sync .icon-button{min-height:36px;width:36px}.breadcrumb{font-size:10px}.breadcrumb>span{margin:0 8px}.page-content{padding:24px 17px 40px}.page-heading{margin-bottom:20px;gap:13px}.page-heading h1{font-size:24px}.heading-actions{gap:7px}.heading-actions .button{min-height:40px;font-size:11px;padding:9px 11px}.summary-metrics{gap:8px;margin-bottom:20px}.summary-metric{padding:12px 9px;gap:6px;display:flex;flex-direction:column;align-items:flex-start;min-height:76px}.summary-metric strong{font-size:25px}.summary-metric span{font-size:9px}.ideas-layout .section-heading{align-items:stretch}.ideas-layout .search-field{flex-basis:100%;min-width:0;min-height:44px}.idea-sort{width:100%;justify-content:space-between}.idea-sort select{max-width:190px;flex:1}.idea-personal-filters{gap:9px;font-size:11px}.idea-personal-filters label{min-height:40px}.result-count{font-size:10px}.filter{min-height:40px;font-size:11px;padding:9px 10px}.filters{gap:4px;margin-bottom:17px}.social-post{padding:18px 16px}.feed-composer{padding:13px 15px}.composer-top>.avatar{display:grid}.composer-top{gap:9px}.composer-top textarea{font-size:14px}.post-actions{gap:5px}.reaction{min-height:42px;min-width:40px;padding:8px}.post-tools{gap:12px}.post-tools .text-button{min-height:40px}.idea-card{padding:18px}.idea-title h2{font-size:16px}.idea-card-actions .reaction{min-height:42px}.idea-card-actions .reaction>span{display:none}.profile-hero{padding:20px;gap:14px}.avatar-large{width:64px;height:64px}.profile-identity h2{font-size:20px}.profile-stats{gap:23px}.profile-stats strong{font-size:23px}.profile-hero>.button{min-height:42px;max-width:100%;font-size:11px}.profile-editor{padding:18px}.profile-fields{grid-template-columns:1fr;gap:15px}.profile-photo-control{gap:10px}.profile-photo-control .settings-note{width:100%}.profile-photo-control .attachment-picker{font-size:11px}.notification-preferences{padding:14px}.notification-preferences label{font-size:11px;min-height:40px;line-height:1.5}.notification-preferences input{flex-shrink:0}.person-row{padding:14px;gap:10px}.person-row .button{font-size:10px;padding:8px 10px;max-width:115px;white-space:normal}.notification-row{flex-wrap:wrap;gap:10px;padding:16px}.notification-row .author-detail{max-width:calc(100% - 25px)}.notification-open{flex-basis:100%;padding:0 0 0 47px}.notification-row .unread-dot{position:absolute;right:18px;top:25px}.admin-create{padding:18px}.admin-role-controls{align-items:flex-start;gap:10px}.admin-role-controls .checkbox-line{min-height:40px}.admin-user{padding:17px}.official-response{padding:17px}.official-response>.section-heading{gap:8px}.official-response .text-button{min-height:40px}.comment-heading{flex-wrap:wrap}.comment-heading time{margin-left:43px;width:100%;margin-top:-4px}.comment-reply{margin-left:5px;padding-left:9px}.month-picker{align-items:stretch;flex-direction:column}.month-counts{gap:6px}.month-counts>div{padding:12px 8px}.month-counts span{font-size:9px}.monthly-dialog{padding:18px}.gallery-arrow.prev{left:3px}.gallery-arrow.next{right:3px}.attachment-lightbox .dialog-heading strong{max-width:65%;overflow-wrap:anywhere}.settings-grid{grid-template-columns:1fr}.auth-form-card{padding:0}.auth-form-area{min-height:100dvh;padding:35px 24px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mobile-menu-button{display:none}
.sidebar-profile small[title]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:3em}
.sidebar-profile .person-link{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.idea-personal-filters label{display:inline-flex;flex-direction:row;align-items:center;gap:8px}
.idea-personal-filters input,.checkbox-line input,.notification-preferences input{min-height:16px;height:16px;min-width:16px;width:16px;padding:0;flex-shrink:0}
@media(max-width:760px){
.sidebar{min-height:66px;padding:13px 16px;position:relative;gap:0}
.sidebar nav{display:none;margin-top:13px}
.sidebar.menu-open nav{display:flex}
.mobile-menu-button{position:absolute;display:flex;align-items:center;justify-content:center;gap:7px;right:59px;top:13px;min-height:40px;padding:8px 11px;border-radius:8px;background:#ffffff14;color:#ecf7fb;font-size:12px}
.mobile-menu-button .icon{width:16px;height:16px}.mobile-menu-button b{background:#90d9e2;border-radius:20px;min-width:18px;height:18px;display:grid;place-items:center;color:#003b49;font-size:9px}
.collapsed .composer-top textarea{white-space:nowrap;overflow:hidden;resize:none;height:40px;max-height:40px;line-height:24px;min-height:40px}
.author-mini .avatar{width:40px;height:40px}
.author-mini .person-link,.comment-heading .person-link,.author-detail .person-link{display:inline-flex;align-items:center;min-height:40px;margin:-5px 0;padding:5px 1px;line-height:1.5}
.sidebar .person-link{min-height:0;margin:0;padding:0}
.idea-personal-filters label{min-height:40px}.idea-personal-filters input{min-height:16px;height:16px}
}
@media(max-width:399px){.collapsed .composer-top textarea{font-size:12px;letter-spacing:-.25px}.composer-top>.avatar{width:30px;height:30px}.composer-expand{padding:5px;min-width:32px;width:32px}}
.quote-jump{display:block;padding:0;background:transparent;color:inherit;width:100%;text-align:left;min-height:36px}
.official-history{margin-top:18px;border-top:1px solid var(--green-border);padding-top:14px}
.official-history summary{font-size:12px;color:var(--green-dark);cursor:pointer;min-height:36px}
.official-history article{padding:13px 0;border-top:1px solid var(--green-border)}
.official-history article p{font-size:12px;white-space:pre-wrap}.official-history small{font-size:10px;color:var(--muted)}

@media(max-width:760px){.sidebar .logout-button{min-width:40px;width:40px;min-height:40px}.sidebar .logout-button .icon{display:block;width:18px;height:18px}}

/* Общие элементы МОСТ: одинаковая ширина ленты и профиля, один редактор вложений. */
html { scrollbar-gutter:stable; scrollbar-width:auto }
.page-content { --content-card-padding:24px }
.page-feed .social-post,.page-profile .social-post { padding:var(--content-card-padding) }
.page-feed .post-list,.page-profile .post-list { gap:16px }
.page-feed .author-detail strong,.page-profile .author-detail strong { font-size:14px }
.page-feed .author-detail time,.page-profile .author-detail time { font-size:12px }
.page-profile .profile-hero { padding:var(--content-card-padding) }
.profile-hero .profile-identity h2 { font-size:22px; margin:0 0 6px }
.profile-hero .profile-identity p { font-size:14px; line-height:1.55 }

.text-editor { position:relative; min-width:0; width:100%; border:1px solid var(--line); border-radius:10px; background:var(--white); transition:background-color .15s,border-color .15s }
.text-editor:focus-within { border-color:var(--green); box-shadow:0 0 0 2px var(--green-light) }
.text-editor textarea { display:block; width:100%; min-height:116px; margin:0; padding:12px 52px 14px 14px; border:0; border-radius:10px; background:transparent; font-size:15px; line-height:1.6; resize:vertical }
.text-editor textarea:focus,.text-editor textarea:focus-visible { outline:0; box-shadow:none; border:0 }
.text-editor.is-dragover { border-color:var(--green); background:var(--green-surface); box-shadow:0 0 0 3px var(--green-border) }
.text-editor.is-drop-blocked { border-color:var(--red); background:var(--red-light); box-shadow:0 0 0 2px var(--red-light) }
.editor-attach { position:absolute; right:5px; bottom:5px; display:inline-flex; align-items:center; justify-content:center; width:40px; min-width:40px; height:40px; min-height:40px; margin:0; padding:8px; border-radius:8px; background:transparent; color:var(--green-dark); cursor:pointer; line-height:1 }
.editor-attach:hover { background:var(--green-light) }
.editor-attach .icon { width:21px; height:21px }
.editor-attach:focus-within { outline:3px solid var(--focus); outline-offset:1px }
.editor-input { position:absolute; width:1px!important; height:1px!important; min-height:0!important; padding:0!important; opacity:0; overflow:hidden; clip-path:inset(50%) }
.editor-attach:has(input:disabled) { cursor:default; opacity:.45 }
.editor-previews:empty,.editor-feedback:empty { display:none }
.editor-previews { margin-top:12px }
.editor-feedback { margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.5 }
.editor-feedback .settings-note,.editor-feedback .attachment-error,.editor-feedback .attachment-progress { margin:5px 0; font-size:12px }
.composer-top>.text-editor { flex:1; min-width:0 }
.composer-top .text-editor textarea { padding:10px 50px 10px 12px; min-height:100px; font-size:15px; line-height:24px }
.collapsed .composer-top .text-editor textarea { min-height:44px; height:44px; max-height:44px; white-space:nowrap; overflow:hidden; resize:none }
.collapsed .composer-top .editor-attach { top:2px; bottom:2px; right:2px }
.comment-form .text-editor { grid-column:1/-1 }
.comment-form .editor-previews,.comment-form .editor-feedback { grid-column:1/-1 }

.profile-avatar-edit { position:relative; flex-shrink:0; display:inline-flex; align-items:flex-start; justify-content:center; width:72px; height:96px; padding:0; border:0; background:transparent; color:var(--green-dark); cursor:pointer; overflow:visible; line-height:1 }
.profile-avatar-edit>.avatar { position:relative; width:72px; height:72px; font-size:24px; overflow:visible }
.profile-avatar-edit>.avatar>img { border-radius:50% }
.profile-avatar-edit>img { width:100%; height:100%; object-fit:cover }
.profile-avatar-hint { position:absolute; bottom:0; left:50%; transform:translateX(-50%); min-width:100px; min-height:18px; padding:0; color:var(--green-dark); font-size:11px; line-height:1.5; text-align:center; white-space:nowrap; opacity:0; transition:opacity .15s }
.profile-avatar-hint .icon { width:15px; height:15px }
.profile-avatar-edit:hover .profile-avatar-hint,.profile-avatar-edit:focus-within .profile-avatar-hint,.profile-avatar-edit:focus-visible .profile-avatar-hint { opacity:1 }
.profile-avatar-edit:focus-within { outline:none }

.sidebar-theme { padding:16px 10px 0; border-top:1px solid #ffffff24; color:#c1d4dc }
.sidebar-theme label { display:flex; flex-direction:column; gap:7px; font-size:12px; margin:0 }
.sidebar-theme select { width:100%; min-width:0; min-height:40px; padding:8px 10px; border:1px solid #ffffff38; border-radius:8px; background:#00374e; color:white; font-size:13px; color-scheme:dark }
.sidebar-theme select:focus-visible { outline:3px solid #91d9e2; outline-offset:3px }

.attachment-lightbox .gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin:0 0 12px; padding:0 }
.gallery-heading .gallery-position { margin:0; font-size:13px; font-variant-numeric:tabular-nums }
.gallery-heading .icon-button { display:grid; place-items:center; width:44px; min-width:44px; height:44px; padding:10px; margin:0 }
.attachment-lightbox .gallery-stage .lightbox-image { max-height:calc(100dvh - 148px); object-fit:contain }

@media(max-width:760px) {
  html { scrollbar-gutter:auto }
  .page-content { --content-card-padding:18px }
  .sidebar-theme { display:none; padding:13px 0 0; margin-top:13px }
  .sidebar.menu-open .sidebar-theme { display:block }
  .sidebar-theme label { flex-direction:row; align-items:center; gap:12px }
  .sidebar-theme select { width:auto; flex:1; max-width:240px; min-height:44px; font-size:16px }
  .profile-avatar-hint { opacity:1 }
  .profile-hero .profile-identity h2 { font-size:20px }
  .profile-hero>.profile-identity { flex:1; width:auto; min-width:140px }
  .text-editor textarea,.composer-top .text-editor textarea { font-size:16px }
  .collapsed .composer-top .text-editor textarea { letter-spacing:normal }
  .feed-composer .composer-top>.avatar { display:none }
  .feed-composer { padding:12px }
  .attachment-lightbox { padding:12px }
}
@media(hover:none) { .profile-avatar-hint { opacity:1 } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
.composer-editor { flex:1; min-width:0 }
.expanded .composer-top { align-items:flex-start }
.expanded .composer-top>.avatar { margin-top:8px }
.profile-avatar-hint,.profile-avatar-overlay { pointer-events:none }
.profile-avatar-overlay { position:absolute; right:2px; bottom:2px; display:grid; place-items:center; width:25px; height:25px; border:2px solid var(--white); border-radius:50%; background:var(--green-dark); color:var(--white) }
.profile-avatar-overlay .icon { width:14px; height:14px }
.profile-avatar-edit:hover .profile-avatar-overlay,.profile-avatar-edit:focus-within .profile-avatar-overlay { opacity:0 }
.sidebar-theme>label { margin-bottom:8px }
@media(max-width:760px) {
  .sidebar.menu-open .sidebar-theme { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px }
  .sidebar-theme>label { margin:0 }
  .sidebar-theme select { width:100%; max-width:none }
  .profile-avatar-overlay { display:none }
}
@media(hover:none) { .profile-avatar-overlay { display:none } }
