/* assets/css/news.css — страницы /news и /news_admin. Каркас — как у главной (index.html): тёмные панели, золото. */
:root {
  --gold: #e1b76c; --gold-bright: #ffd88a; --gold-dim: #a8874a;
  --panel-bg-1: #1c1f26; --panel-bg-2: #16181d; --panel-border: #2a2e37; --panel-inner: #252220;
  --txt: #e1e4ea; --txt-dim: #8b7a58; --txt-mid: #b8aa8c;
  --danger: #e74c3c; --warning: #f39c12; --success: #2ecc71; --info: #3498db;
  --radius: 8px; --gap: 8px;
  --serif: 'Forum', 'Philosopher', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  font-family: 'Segoe UI', 'Inter', 'Roboto', system-ui, Tahoma, sans-serif; color: var(--txt);
  background: radial-gradient(ellipse at 50% 0%, #1a1008 0%, #0a0503 50%, #000 100%);
  min-height: 100dvh; display: flex; justify-content: center; align-items: center;
}
.app-container {
  width: 100%; height: 100dvh; padding: 10px; display: flex; flex-direction: column; gap: var(--gap); position: relative;
  background: linear-gradient(145deg, rgba(40,25,15,.98), rgba(25,15,8,.99));
  box-shadow: 0 0 30px rgba(225,183,108,.2), inset 0 1px 0 rgba(225,183,108,.1); overflow: hidden;
}
.app-container::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 15% 10%, rgba(225,183,108,.06) 0%, transparent 40%), radial-gradient(circle at 90% 90%, rgba(168,85,85,.05) 0%, transparent 40%);
}
@media (min-width: 768px) {
  .app-container { width: 560px; height: min(860px, 100dvh - 24px); border-radius: 12px; border: 2px solid #4a3325; padding: 12px; }
  .app-container.wide { width: min(1180px, 100vw - 24px); }
}
.app-header, .panel, .app-footer {
  position: relative; z-index: 1; flex-shrink: 0; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, #23262f 0%, var(--panel-bg-1) 30%, var(--panel-bg-2) 100%);
  border: 1px solid; border-color: #3a3f4b #2a2e37 #101217 #2a2e37;
  box-shadow: 0 2px 0 rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07), inset 0 -2px 6px rgba(0,0,0,.35);
}
.app-header::after, .panel::after, .app-footer::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(225,183,108,.35), transparent);
}
.app-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.hd-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-size: 19px; border: 2.5px solid transparent;
  background: radial-gradient(circle at 30% 30%, rgba(255,220,150,.15), rgba(0,0,0,.6) 70%) padding-box,
              linear-gradient(145deg, #ffe3a3 0%, #b88a35 30%, #6b4a12 55%, #d9ae62 80%, #7a5a14 100%) border-box;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.7), 0 0 16px rgba(225,183,108,.22); text-decoration: none;
}
.hd-info { flex: 1; min-width: 0; }
.hd-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .05em;
  text-shadow: 0 0 8px rgba(255,200,120,.4), 0 2px 2px rgba(0,0,0,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-sub { font-family: var(--serif); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-mid); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; border-radius: 8px; cursor: pointer;
  font-family: var(--serif); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--gold-bright); border: 1px solid var(--gold); position: relative; overflow: hidden; transition: all .2s;
  background: linear-gradient(180deg, rgba(225,183,108,.25), rgba(201,163,94,.12));
  box-shadow: 0 2px 0 rgba(90,64,20,.9), 0 4px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,220,150,.25);
}
.btn::before { content: ''; position: absolute; left: 1px; right: 1px; top: 1px; height: 45%; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.12), transparent); pointer-events: none; }
.btn:hover { background: linear-gradient(180deg, rgba(225,183,108,.4), rgba(201,163,94,.22)); box-shadow: 0 2px 0 rgba(90,64,20,.9), 0 0 18px rgba(225,183,108,.4); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.ghost { color: var(--txt-mid); border-color: #4a3e2c; background: rgba(0,0,0,.25); box-shadow: 0 2px 0 rgba(0,0,0,.6); }
.btn.green { color: #7bedb0; border-color: rgba(46,204,113,.7); background: linear-gradient(180deg, rgba(46,204,113,.28), rgba(39,174,96,.14)); box-shadow: 0 2px 0 rgba(10,70,35,.9), 0 4px 10px rgba(0,0,0,.5); }
.btn.red { color: #ff8a8a; border-color: rgba(231,76,60,.7); background: linear-gradient(180deg, rgba(139,0,0,.4), rgba(192,57,43,.22)); box-shadow: 0 2px 0 rgba(80,10,6,.9), 0 4px 10px rgba(0,0,0,.5); }
.btn.sm { padding: 6px 10px; font-size: 11px; }

.app-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--gap);
  padding: 0 4px 6px; margin: 0 -4px -6px; scrollbar-width: thin; scrollbar-color: #4a3325 transparent; }
.app-footer { display: flex; }
.footer-tab { flex: 1; min-width: 0; padding: 11px 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--txt-mid);
  text-transform: uppercase; letter-spacing: .5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.footer-tab + .footer-tab { box-shadow: -1px 0 0 rgba(0,0,0,.5), inset 1px 0 0 rgba(255,255,255,.04); }
.footer-tab:hover { color: #f0ede8; background: rgba(225,183,108,.05); }
.footer-tab.on { color: var(--gold-bright); background: rgba(225,183,108,.08); box-shadow: inset 0 2px 0 var(--gold); }
@media (max-width: 420px) { .footer-tab { font-size: 9.5px; padding: 10px 2px; letter-spacing: 0; } .hd-title { font-size: 14px; } }

/* ── фильтр по темам ── */
.tags { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
.tags::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 5px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .03em; cursor: pointer; white-space: nowrap;
  color: var(--txt-mid); border: 1px solid #3a3226; background: rgba(0,0,0,.3); transition: all .2s; }
.chip:hover { color: #f0ede8; border-color: var(--gold-dim); }
.chip.on { color: #1a1208; background: linear-gradient(180deg, #ffd88a, #c99a4a); border-color: #ffe3a3; box-shadow: 0 0 10px rgba(225,183,108,.35); }

/* ── метка темы ── */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: #6a5a3a; box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.tag.t-update { background: linear-gradient(180deg, #3a7a4a, #24502f); }
.tag.t-event { background: linear-gradient(180deg, #8a5ab0, #5a3478); }
.tag.t-fix { background: linear-gradient(180deg, #3a6a9a, #24456a); }
.tag.t-important { background: linear-gradient(180deg, #c0392b, #7a1810); }
.tag.t-story { background: linear-gradient(180deg, #a07a3a, #6a4a18); }
.pin { color: var(--gold-bright); font-size: 11px; filter: drop-shadow(0 0 4px rgba(255,200,120,.6)); }

/* ── карточка новости ── */
.card { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(0,0,0,.55), 0 10px 22px rgba(0,0,0,.55), 0 0 0 1px rgba(225,183,108,.25); }
.card-img { height: 150px; background: #140d06 center/cover no-repeat; position: relative; border-bottom: 1px solid var(--panel-inner); }
.card-img::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 2px 10px rgba(0,0,0,.75), inset 0 -30px 30px -10px rgba(22,24,29,.9); }
.card-img .tag { position: absolute; left: 10px; top: 10px; z-index: 1; }
.card-body { padding: 11px 13px 12px; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card-title { font-family: var(--serif); font-size: 17px; line-height: 1.2; color: var(--gold-bright); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.9); margin-bottom: 6px; }
.card-text { font-size: 12.5px; line-height: 1.6; color: var(--txt-mid); }
.meta { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--txt-dim); }
.meta i { margin-right: 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--panel-inner); }
.card-foot .meta .liked { color: #ff7a7a; }
.more { align-self: center; margin: 4px 0 8px; }
.empty { padding: 36px 16px; text-align: center; color: var(--txt-dim); font-size: 13px; line-height: 1.7; }
.empty i { font-size: 30px; color: #4a3e2c; display: block; margin-bottom: 10px; }

/* ── новость целиком ── */
.art-img { height: 210px; background: #140d06 center/cover no-repeat; position: relative; }
.art-img::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 2px 10px rgba(0,0,0,.75), inset 0 -50px 40px -10px rgba(22,24,29,.95); }
.art-head { padding: 14px 16px 10px; }
.art-title { font-family: var(--serif); font-size: 23px; line-height: 1.15; color: var(--gold-bright); text-shadow: 0 0 12px rgba(255,200,120,.3), 0 2px 3px rgba(0,0,0,.9); margin: 8px 0; }
.ornament { width: 70px; height: 12px; margin: 4px auto 0; position: relative; }
.ornament::before, .ornament::after { content: ''; position: absolute; top: 50%; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::before { left: 0; } .ornament::after { right: 0; transform: rotate(180deg); }
.ornament b { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #ff9b8a 0%, var(--danger) 45%, #7a1810 100%); box-shadow: 0 0 10px rgba(231,76,60,.7); }
.prose { padding: 4px 16px 16px; font-size: 14px; line-height: 1.75; color: #d8d2c4; overflow-wrap: break-word; }
.prose p { margin: 0 0 12px; }
.prose h3 { font-family: var(--serif); font-size: 18px; color: var(--gold-bright); margin: 18px 0 8px; letter-spacing: .02em; }
.prose h4 { font-family: var(--serif); font-size: 15px; color: var(--gold); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.prose b { color: #f5e6c4; } .prose i { color: #e8d8b8; }
.prose a { color: var(--gold-bright); text-decoration: underline; text-decoration-color: rgba(225,183,108,.4); }
.prose ul { margin: 0 0 12px; padding-left: 4px; list-style: none; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 5px; }
.prose li::before { content: '◆'; position: absolute; left: 2px; top: 1px; font-size: 9px; color: var(--danger); text-shadow: 0 0 6px rgba(231,76,60,.6); }
.prose blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; background: rgba(225,183,108,.06); color: #e8dcc0; font-style: italic; }
.prose hr { border: 0; height: 1px; margin: 16px 0; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.prose figure { margin: 4px 0 14px; }
.prose figure img { width: 100%; border-radius: 6px; border: 1px solid #3a3226; box-shadow: 0 4px 14px rgba(0,0,0,.5); display: block; }
.prose figcaption { text-align: center; font-size: 11px; color: var(--txt-dim); margin-top: 5px; font-style: italic; }
.art-actions { display: flex; align-items: center; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid var(--panel-inner); }
.like { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 13px;
  color: var(--txt-mid); border: 1px solid #4a3e2c; background: rgba(0,0,0,.3); transition: all .2s; }
.like:hover { border-color: #c0392b; color: #ffb0b0; }
.like.on { color: #fff; border-color: #ff7a7a; background: linear-gradient(180deg, rgba(231,76,60,.45), rgba(139,0,0,.35)); box-shadow: 0 0 14px rgba(231,76,60,.35); }
.like.pop i { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.45); } }
.back { color: var(--txt-mid); font-size: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer; }
.back:hover { color: var(--gold-bright); }

/* ── комментарии ── */
.c-head { padding: 11px 14px; font-family: var(--serif); font-size: 14px; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--panel-inner); }
.c-list { padding: 4px 0; }
.cm { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(37,34,32,.6); }
.cm:last-child { border-bottom: 0; }
.cm-ava { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; color: #1a1208;
  background: linear-gradient(145deg, #e8c98a, #8a6a2a); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 3px rgba(0,0,0,.6); }
.cm.adm .cm-ava { background: linear-gradient(145deg, #ff9b8a, #7a1810); color: #fff; }
.cm-body { flex: 1; min-width: 0; }
.cm-top { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.cm-nick { font-weight: 800; color: #e8d8b8; }
.cm.adm .cm-nick { color: #ff9b8a; }
.cm-lvl { color: var(--txt-dim); font-size: 10.5px; }
.cm-time { margin-left: auto; color: #6a5a40; font-size: 10.5px; white-space: nowrap; }
.cm-text { font-size: 13px; line-height: 1.55; color: #cfc8b8; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-del { background: none; border: 0; color: #6a5a40; cursor: pointer; font-size: 11px; margin-left: 6px; }
.cm-del:hover { color: var(--danger); }
.c-form { padding: 10px 14px 12px; border-top: 1px solid var(--panel-inner); }
.c-form textarea, .fld input, .fld select, .fld textarea {
  width: 100%; resize: vertical; min-height: 60px; padding: 9px 11px; border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.5;
  color: #f0e6d2; background: rgba(0,0,0,.4); border: 1px solid #3a3226; outline: none; box-shadow: inset 0 2px 5px rgba(0,0,0,.5);
}
.c-form textarea:focus, .fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold-dim); box-shadow: inset 0 2px 5px rgba(0,0,0,.5), 0 0 0 2px rgba(225,183,108,.15); }
.c-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.c-count { font-size: 11px; color: var(--txt-dim); }
.c-login { padding: 14px; text-align: center; font-size: 12.5px; color: var(--txt-mid); border-top: 1px solid var(--panel-inner); }
.c-login a { color: var(--gold-bright); }

/* ── загрузка и тосты ── */
.loading { padding: 40px; text-align: center; color: var(--txt-dim); }
.spin { width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid rgba(225,183,108,.15); border-top-color: var(--gold); animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.skel { height: 120px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { padding: 11px 14px; border-radius: 8px; font-size: 13px; color: #f0e6d2; background: rgba(30,20,12,.97); border: 1px solid var(--gold-dim);
  box-shadow: 0 10px 30px rgba(0,0,0,.7); display: flex; gap: 10px; align-items: center; animation: tin .25s ease; }
.toast.bad { border-color: #c0392b; } .toast.bad i { color: #ff7a7a; } .toast i { color: var(--gold-bright); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ── редактор ── */
.ed { display: grid; grid-template-columns: 1fr; gap: var(--gap); flex: 1; min-height: 0; }
@media (min-width: 900px) { .ed { grid-template-columns: 340px 1fr; } .ed > .panel { min-height: 0; overflow: auto; } }
.ed-list .row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--panel-inner); cursor: pointer; }
.ed-list .row:hover { background: rgba(225,183,108,.05); }
.ed-list .row.on { background: rgba(225,183,108,.11); box-shadow: inset 3px 0 0 var(--gold); }
.ed-list .r-title { font-size: 13px; font-weight: 700; color: #e8d8b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-list .r-meta { font-size: 10.5px; color: var(--txt-dim); margin-top: 2px; }
.draft { color: #f39c12; font-weight: 800; }
.ed-form { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fld label { display: block; font-size: 11px; font-weight: 700; color: var(--txt-mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.fld input, .fld select { min-height: 0; }
.fld textarea.body { min-height: 320px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tb button { min-width: 32px; height: 30px; padding: 0 8px; border-radius: 5px; cursor: pointer; color: var(--txt-mid); border: 1px solid #3a3226; background: rgba(0,0,0,.35); font-weight: 700; font-size: 12px; }
.tb button:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.cover { height: 130px; border-radius: 6px; border: 1px dashed #4a3e2c; background: rgba(0,0,0,.3) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--txt-dim); font-size: 12px; margin-top: 6px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt-mid); cursor: pointer; }
.ed-btns { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.seg { display: inline-flex; border: 1px solid #3a3226; border-radius: 6px; overflow: hidden; }
.seg button { padding: 6px 12px; background: rgba(0,0,0,.3); color: var(--txt-mid); border: 0; cursor: pointer; font-weight: 700; font-size: 12px; }
.seg button.on { background: rgba(225,183,108,.2); color: var(--gold-bright); }
.preview-box { border: 1px solid #3a3226; border-radius: 6px; background: rgba(0,0,0,.25); min-height: 320px; }
.help { font-size: 11px; color: var(--txt-dim); line-height: 1.6; }
.help code { color: var(--gold); background: rgba(0,0,0,.35); padding: 0 4px; border-radius: 3px; }
.fld input[type=checkbox], .chk input { width: auto; min-height: 0; box-shadow: none; accent-color: #e1b76c; }
/* круглая красная «закрыть» — как в почте и других окнах игры */
.close-btn { flex: none; width: 32px; height: 32px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff0ea; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 55%, #8b1a1a 100%); border: 1.5px solid; border-color: #f08a7e #b33325 #5e1010 #b33325;
  box-shadow: 0 2px 0 #4a0e0e, 0 3px 6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .1s, box-shadow .1s, filter .15s; }
.close-btn:hover { filter: brightness(1.12); }
.close-btn:active { transform: translateY(2px); box-shadow: 0 0 0 #4a0e0e, inset 0 1px 4px rgba(0,0,0,.45); }
.hd-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hd-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .hd-right .btn span.t { display: none; } .hd-right .btn { padding: 8px 10px; } }
/* ★ широкая кнопка «ещё записи» / «ко всем новостям» — в стиле панелей, с золотыми линиями по бокам */
.wide-btn { position: relative; z-index: 1; flex-shrink: 0; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; cursor: pointer; text-decoration: none;
  border-radius: var(--radius); border: 1px solid; border-color: #4a3e2c #3a3226 #15100a #3a3226;
  background: linear-gradient(180deg, rgba(225,183,108,.12), rgba(225,183,108,.04) 45%, rgba(0,0,0,.25));
  box-shadow: 0 2px 0 rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,220,150,.12); transition: all .2s; font: inherit; }
.wide-btn:hover { border-color: var(--gold-dim); box-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 18px rgba(225,183,108,.25), inset 0 1px 0 rgba(255,220,150,.2); }
.wide-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.wide-btn:disabled { opacity: .5; }
.wb-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.wb-line:last-child { transform: scaleX(-1); }
.wb-text { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(255,200,120,.35), 0 1px 2px rgba(0,0,0,.9); white-space: nowrap; }
.wb-text small { font-family: 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 0; text-transform: none; color: var(--txt-dim); text-shadow: none; }
.hd-icon.back-on { font-size: 17px; }
.c-edit { margin-top: 5px; }
.c-edit textarea { width: 100%; min-height: 60px; resize: vertical; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.5; color: #f0e6d2;
  background: rgba(0,0,0,.4); border: 1px solid var(--gold-dim); outline: none; box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.c-edit .c-row { margin-top: 6px; }
.cm-del { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; vertical-align: middle; }
/* ★ окно обсуждения: снизу выезжает лист (на телефоне), по центру — на компьютере */
.sheet-ov { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0); backdrop-filter: blur(0); transition: background .22s, backdrop-filter .22s; }
.sheet-ov.show { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 560px; max-height: 86dvh; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #23262f 0%, var(--panel-bg-1) 20%, var(--panel-bg-2) 100%); border: 1px solid #4a3325; border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,220,150,.12); transform: translateY(100%); transition: transform .22s ease; }
.sheet-ov.show .sheet { transform: none; }
@media (min-width: 768px) { .sheet-ov { align-items: center; } .sheet { border-radius: 12px; border-bottom: 1px solid #4a3325; max-height: 80dvh; transform: translateY(30px); opacity: 0; transition: transform .22s, opacity .22s; } .sheet-ov.show .sheet { opacity: 1; } }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--panel-inner);
  font-family: var(--serif); font-size: 15px; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .08em; }
.sheet-head b { font-weight: 400; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; }
.sheet-body .c-form { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(22,24,29,.92), var(--panel-bg-2)); }
.sheet-ov[hidden] { display: none; }
