/* Aukuro – community pages: /pasiulymai/, /prisijungti/, /admin/ (uses site.css tokens). */
.svc-main { width: min(920px, 100%); margin: 0 auto; padding: 0 var(--gutter) 90px; }
.svc-head { margin-top: 32px; }
.svc-head .lead { margin-bottom: 14px; }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.svc-user { margin-left: 8px; padding: 6px 12px; font-size: 15px; text-decoration: none; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.svc-user.in::before { content: "● "; color: var(--green); }
.mc-btn { text-decoration: none; display: inline-block; }
.mc-btn.primary { background: linear-gradient(#5f8f3a, #44702a); box-shadow: inset 2px 2px 0 #8cc45a, inset -2px -3px 0 #2c4a1a; }
.mc-btn.primary:hover { background: linear-gradient(#6fa344, #4f8030); }
.mc-btn:disabled { filter: grayscale(1) brightness(.75); cursor: wait; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }

/* filters */
.svc-filters { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.flt { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); flex: 1 1 140px; }
select, .svc-form input, .svc-form textarea, .admin-box textarea {
  font: inherit; font-size: 16px; color: #fff; background: #0b0b10; border: 2px solid #000; padding: 8px;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); width: 100%; }
select:focus, .svc-form input:focus, .svc-form textarea:focus, .admin-box textarea:focus { outline: 2px solid #ffff55; outline-offset: 0; }

/* list */
.sug-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sug { display: flex; gap: 12px; padding: 12px; color: var(--text); text-decoration: none; background: var(--panel); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 0 6px 0 rgba(0,0,0,.25); transition: transform .12s; }
.sug:hover { transform: translateY(-2px); box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 0 8px 0 rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,85,.25); }
.sug-main { flex: 1; min-width: 0; }
.sug-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sug-title { font: 600 19px/1.2 var(--font-head); color: #fff; margin-right: 4px; overflow-wrap: anywhere; }
.sug-body { margin: 6px 0; color: #dfe2ee; font-size: 16px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sug-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.has-reply { color: var(--green); }
.is-hidden { opacity: .6; }
.more { align-self: center; margin-top: 6px; }

.vote { flex: none; width: 56px; align-self: flex-start; display: flex; flex-direction: column; align-items: center; padding: 6px 0; cursor: pointer;
  font: 600 18px var(--font-head); color: #fff; background: #2a2838; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.1), inset -2px -2px 0 rgba(0,0,0,.4); }
.vote .arrow { color: var(--muted); font-size: 14px; line-height: 1; }
.vote:hover .arrow { color: #fff; }
.vote.on { background: linear-gradient(#5f8f3a, #44702a); box-shadow: inset 2px 2px 0 #8cc45a, inset -2px -3px 0 #2c4a1a; }
.vote.on .arrow { color: #fff; }
.vote.pop { animation: vote-pop .3s ease-out; }
@keyframes vote-pop { 50% { transform: scale(1.18); } }

/* chips */
.st, .cat { display: inline-block; padding: 1px 7px 2px; font: 600 13px var(--font-head); color: #10121a; border: 2px solid #000; white-space: nowrap; }
.st-naujas { background: #c9d1d9; } .st-svarstomas { background: #ffc83d; } .st-priimtas { background: #55ff55; }
.st-atmestas { background: #ff7070; } .st-padaryta { background: #55ffff; } .st-hidden { background: #555; color: #eee; }
.cat { background: rgba(255,255,255,.08); color: #e6e6f0; border-color: rgba(0,0,0,.6); }
.cat-klaida { color: #ffb0b0; } .cat-ideja { color: #b8ff9a; } .cat-balansas { color: #ffe08a; } .cat-kita { color: #c9d1ff; }

/* forms */
#new-form h2 { margin-bottom: 10px; }
.svc-form { display: flex; flex-direction: column; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.cats { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cats legend { font-size: 15px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.catpick input { position: absolute; opacity: 0; pointer-events: none; }
.catpick span { display: inline-block; padding: 6px 12px; cursor: pointer; background: #2a2838; border: 2px solid #000; color: #e6e6f0;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.08); }
.catpick input:checked + span { background: #ffff55; color: #1a1a00; }
.catpick input:focus-visible + span { outline: 3px solid #fff; }
.file-btn { position: relative; align-self: flex-start; font-size: 14px; padding: 8px 12px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 92px; height: 92px; border: 2px solid #000; background: #111; display: grid; place-items: center; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.thumb .x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; color: #fff; background: #a33; border: 2px solid #000; cursor: pointer; }
.form-err { color: #ff8a8a; margin: 0; min-height: 1em; }
.login-form { max-width: 420px; }

/* detail */
.sug-detail { margin-top: 32px; }
.back { display: inline-block; margin-bottom: 12px; }
.d-head { display: flex; gap: 14px; align-items: flex-start; }
.d-title { margin: 0 0 8px; font: 600 clamp(24px, 4.4vw, 34px)/1.15 var(--font-head); color: #fff; text-shadow: 3px 3px 0 var(--mc-shadow); overflow-wrap: anywhere; }
.d-body { margin: 16px 0; font-size: 17px; overflow-wrap: anywhere; color: #e8eaf2; }
.d-body { clear: both; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; clear: both; }
.gtile { position: relative; min-width: 0; }
.gimg { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid #000; background: #111; }
.gimg img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transition: transform .2s; }
.gimg:hover img { transform: scale(1.04); }
.gbroken { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--muted); text-align: center; padding: 6px; }
.glink-tile { display: flex; align-items: center; padding: 8px; border: 2px dashed rgba(255,255,255,.2); }
.glink { overflow-wrap: anywhere; font-size: 14px; }
.gdel { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; color: #fff; background: #a33; border: 2px solid #000; cursor: pointer; }
.mc-btn.danger { background: linear-gradient(#b03a3a, #7a2020); box-shadow: inset 2px 2px 0 #e06a6a, inset -2px -3px 0 #4a1010; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reply { margin: 18px 0; padding: 10px 12px; background: rgba(85,255,85,.07); border: 2px solid rgba(85,255,85,.4); }
.reply-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--green); }
.reply p { margin: 0; overflow-wrap: anywhere; }
.admin-box { margin: 18px 0; padding: 12px; background: rgba(255,200,61,.06); border: 2px dashed rgba(255,200,61,.5); }
.admin-box h3 { margin-top: 0; }
.c-title { font: 600 22px var(--font-head); margin: 24px 0 10px; }
.comments { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comments li { padding: 8px 10px; background: rgba(0,0,0,.3); border-left: 4px solid #5a5a7a; }
.comments p { margin: 4px 0 0; overflow-wrap: anywhere; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linkbtn { background: none; border: 0; color: #9fd3ff; cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; padding: 0; }
.cform textarea { min-height: 80px; }
.cform button { align-self: flex-start; }

/* toast */
.svc-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; padding: 10px 16px; max-width: calc(100vw - 32px);
  background: #1e3a14; border: 2px solid #000; color: #fff; box-shadow: 0 8px 0 rgba(0,0,0,.3); animation: snn-in .2s; transition: opacity .4s; }
.svc-toast.bad { background: #4a1f24; }
.svc-toast.out { opacity: 0; }

/* admin */
.budget { margin: 12px 0; }
.budget .lbl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 15px; }
.budget .bar { height: 14px; border: 2px solid #000; background: #222; }
.budget .bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fd14f, #ffc83d, #ff5555); background-size: 300px 100%; }
.mc-btn.on { background: linear-gradient(#5f8f3a, #44702a); } .mc-btn.off { background: linear-gradient(#a33, #722); }
.tbl-wrap { overflow-x: auto; margin-top: 10px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; white-space: nowrap; }
.tbl td:first-child { white-space: normal; min-width: 160px; }
.tbl th { color: #ffff55; font-weight: 600; }
.tbl select { padding: 4px; font-size: 14px; width: auto; }
.modlog { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 520px) {
  .sug { padding: 10px; gap: 10px; }
  .vote { width: 46px; font-size: 16px; }
  .sug-title { font-size: 17px; }
  .d-head { gap: 10px; }
  .svc-user { max-width: 34vw; }
}

/* Pasiūlymai / Klaidos tabs, bug repro block */
.svc-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.svc-tabs a { padding: 8px 14px; font: 600 17px var(--font-head); color: #e6e6f0; text-decoration: none; background: #2a2838; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.08); }
.svc-tabs a.active { background: #ffff55; color: #1a1a00; }
.repro { margin: 12px 0; padding: 8px 12px; background: rgba(255,112,112,.07); border-left: 4px solid #ff7070; }
.repro p { margin: 4px 0 0; overflow-wrap: anywhere; }
.svc-form.dropping { outline: 3px dashed #55ff55; outline-offset: 6px; }
