* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #0f0f11; --bg2: #17171a; --bg3: #2c2c31; --bg4: #3e3e45;
  --text: #e8e8ea; --muted: #9b9ba3; --accent: #cdcdd4; --green: #a3a3ad;
  --red: #c3c3cb; --border: #2c2c31;
}
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); display: flex;
  flex-direction: column; overflow: hidden;
}
button { font-family: inherit; }

/* ---- login ---- */
#loginView {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 340px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 0; padding: 24px;
}
.login-card h1 { font-size: 22px; margin-bottom: 16px; text-align: center; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; padding: 8px; background: var(--bg3); color: var(--muted);
  border: none; border-radius: 0; cursor: pointer;
}
.tab.active { background: var(--accent); color: #11111b; font-weight: 600; }
#authForm { display: flex; flex-direction: column; gap: 10px; }
#authForm input, #msgInput {
  padding: 10px 12px; border: 1px solid var(--bg4); border-radius: 0;
  background: var(--bg3); color: var(--text); outline: none; font-size: 14px;
}
#authForm input:focus, #msgInput:focus { border-color: var(--accent); }
.remember {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--muted); font-size: 13px;
}
.remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
#authForm button, .header button, .composer button {
  padding: 10px 14px; border: none; border-radius: 0; font-weight: 600;
  cursor: pointer; font-size: 14px;
}
#authBtn, .primary { background: var(--accent); color: #11111b; }
  #authBtn:hover, .primary:hover { background: #dcdce2; }
.secondary { background: var(--bg3); color: var(--text); }
.secondary:hover { background: var(--bg4); }
.error { color: var(--red); margin-top: 10px; font-size: 13px; min-height: 16px; }

/* ---- chat ---- */
#chatView { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.header {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--bg2); border-bottom: 1px solid var(--border);
}
.header-info { display: flex; flex-direction: column; }
#chatTitle { font-weight: 600; font-size: 16px; }
#chatSubtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.badge {
  font-size: 12px; padding: 3px 10px; border-radius: 0;
}
.badge.ok { background: rgba(200,200,210,.15); color: var(--green); }
  .badge.off { background: rgba(200,200,210,.12); color: var(--muted); }

.body { flex: 1; min-height: 0; display: flex; overflow: hidden; }
#sidebar {
  width: 230px; flex: none; background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 10px; overflow-y: auto;
}
.room {
  padding: 8px 12px; border-radius: 0; background: var(--bg3); color: var(--muted);
  border: none; text-align: left; cursor: pointer; font-weight: 600; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.room:hover { background: var(--bg4); color: var(--text); }
.room.active { background: var(--accent); color: #11111b; }
.room-title { font-weight: 600; }
.room .last-preview { font-weight: 400; font-size: 12px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room.active .last-preview { opacity: .8; }

.search-box { margin-bottom: 10px; }
.search-box input, .edit-wrap textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--bg4); border-radius: 0;
  background: var(--bg3); color: var(--text); outline: none; font-size: 13px;
}
.search-box input:focus, .edit-wrap textarea:focus { border-color: var(--accent); }
.users-head { font-size: 12px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.users-head.hide-empty.empty { display: none; }
#usersList { list-style: none; }
#usersList li {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  border-radius: 0; cursor: pointer; font-size: 14px;
}
#usersList li:hover { background: var(--bg3); }
#usersList li.active { background: var(--bg3); outline: 1px solid var(--accent); }
#usersList li .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
#usersList li .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none;
}
#usersList li.online .dot { background: var(--green); }
#usersList li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#usersList li .me-badge { color: var(--muted); font-size: 11px; }
#usersList li .preview {
  color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding-left: 16px;
}
#usersList li .preview.deleted, .room .last-preview.deleted { font-style: italic; }
#usersList li .preview .mine-tag { color: var(--muted); }
.badge-count {
  background: var(--red); color: #11111b; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 0; padding: 0 5px; flex: none;
}
.search-empty { color: var(--muted); font-size: 13px; padding: 8px 10px; }

#main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
#messages {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; display: flex;
  flex-direction: column; gap: 6px;
}
.msg {
  position: relative; max-width: 72%; align-self: flex-start; background: var(--bg3);
  padding: 8px 12px; border-radius: 0; font-size: 14px;
  overflow-wrap: anywhere; word-break: break-word;
}
.msg.mine { align-self: flex-start; background: var(--bg4); }
.msg .head { color: var(--muted); font-size: 11px; margin-bottom: 3px; display: flex; gap: 8px; align-items: baseline; padding-right: 18px; }
.msg .who { font-weight: 600; color: var(--accent); }
.msg.mine .who { color: var(--green); }
.msg .text { white-space: pre-wrap; }
.msg .text ol, .msg .text ul { margin: 4px 0 4px 20px; }
.msg .text li { margin: 2px 0; }
.msg .text .cb-list { list-style: none; margin-left: 0; }
.msg .text .cb-list li { display: flex; align-items: flex-start; gap: 6px; }
.cb-box {
  flex: none; width: 15px; height: 15px; margin-top: 2px; border: 1px solid var(--muted);
  border-radius: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
}
.msg .text li.cb.on .cb-box { background: var(--accent); border-color: var(--accent); color: #11111b; }

/* ---- опросы ---- */
.poll {
  display: flex; flex-direction: column; gap: 6px; margin-top: 6px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 0;
  padding: 10px 12px; max-width: 380px;
}
.poll .poll-q { font-weight: 600; font-size: 14px; color: var(--text); }
.poll-opts { display: flex; flex-direction: column; gap: 5px; }
.poll-opt {
  position: relative; display: block; width: 100%; text-align: left;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 0;
  padding: 7px 10px; cursor: pointer; overflow: hidden;
}
.poll-opt:hover { background: var(--bg4); border-color: var(--muted); }
.poll-opt.mine { border-color: var(--accent); background: rgba(205,205,214,.12); }
.poll-bar {
  position: absolute; inset: 0 auto 0 0; background: rgba(205,205,214,.16);
  border-radius: 0;
}
.poll-label {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 13px;
}
.poll-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.poll-foot { font-size: 11px; color: var(--muted); }

/* ---- форма создания опроса ---- */
.poll-form {
  flex: none; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 16px; background: var(--bg2); border-top: 1px solid var(--border);
}
.poll-form .poll-q { width: 100%; }
.poll-opt-row { display: flex; gap: 6px; }
.poll-opt-input {
  flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 0; background: var(--bg3); color: var(--text); outline: none;
}
.poll-del {
  border: none; background: var(--bg3); color: var(--muted); width: 30px;
  border-radius: 0; cursor: pointer;
}
.poll-del:hover { background: var(--bg4); color: var(--red); }
.poll-add, .poll-btn {
  align-self: flex-start; border: 1px solid var(--border); background: var(--bg3);
  color: var(--text); padding: 6px 12px; border-radius: 0; cursor: pointer;
}
.poll-add:hover, .poll-btn:hover { background: var(--bg4); }
.poll-opt-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.poll-actions { display: flex; gap: 8px; }
.poll-actions .primary { margin-left: auto; }
.msg.deleted .text { color: var(--muted); font-style: italic; }
.msg .edited-mark { font-style: italic; opacity: .8; }
.msg .file {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  background: var(--border); color: var(--text); padding: 6px 10px;
  border-radius: 0; text-decoration: none; font-size: 13px; max-width: 100%;
  overflow-wrap: anywhere;
}
.msg .file:hover { background: var(--bg2); }
.msg .file-icon { font-size: 16px; }
.msg .file-img {
  display: flex; flex-direction: column; gap: 4px; margin-top: 6px;
  max-width: 100%; text-decoration: none; color: var(--muted);
}
.msg .file-thumb {
  display: block; max-width: 100%; max-height: 260px; border-radius: 0;
  cursor: zoom-in; background: var(--bg2); object-fit: contain;
}
.msg .file-info { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-info { padding: 4px 18px 0; color: var(--muted); font-size: 13px; }
.attach-preview {
  display: inline-flex; align-items: center; gap: 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 0; padding: 6px 10px;
  max-width: 100%;
}
.attach-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 0;
  flex: none; background: var(--bg2);
}
.attach-icon { font-size: 22px; flex: none; }
.attach-meta {
  font-size: 12px; color: var(--text); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
.attach-clear {
  flex: none; width: 24px; height: 24px; border: none; border-radius: 0;
  background: var(--bg3); color: var(--muted); cursor: pointer; font-size: 13px;
  line-height: 24px; padding: 0;
}
.attach-clear:hover { background: var(--bg4); color: var(--red); }
.attach-clear:disabled { opacity: .5; cursor: default; }
.msg .reply-quote {
  display: block; background: rgba(205,205,214,.12); border-left: 3px solid var(--accent);
  padding: 4px 8px; border-radius: 0; font-size: 12px; color: var(--muted);
  margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; max-width: 100%; transition: background .15s;
}
.msg .reply-quote:hover { background: rgba(205,205,214,.22); }
.msg .reply-quote strong { color: var(--accent); font-weight: 600; }
.msg .forward-banner {
  font-size: 11px; color: var(--muted); margin-bottom: 3px; font-style: italic;
}
.msg.flash { animation: msgflash 1.4s ease; }
@keyframes msgflash {
  0% { background: rgba(200,200,210,.4); }
  100% { background: inherit; }
}

.react-wrap { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; position: relative; }
.react-quick {
  display: none; position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 999;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 0;
  padding: 4px 6px; box-shadow: 0 4px 14px rgba(0,0,0,.5); gap: 2px;
  flex-wrap: wrap; max-width: 260px;
}
.msg.quick-on .react-quick { display: flex; }
.msg:hover .react-quick { display: flex; }
.react-pick {
  border: none; background: none; font-size: 16px; cursor: pointer; padding: 2px;
  border-radius: 50%; line-height: 1; transition: transform .1s;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.react-pick:hover { transform: scale(1.25); background: var(--bg3); }
.react-quick .react-all { display: none; }
.react-quick.expanded { width: 236px; flex-wrap: wrap; padding: 6px; }
.react-quick.expanded .react-all { display: flex; flex-wrap: wrap; gap: 2px; }
.react-quick.expanded .react-all .react-pick { font-size: 15px; }
.react-chips { display: flex; gap: 4px; flex-wrap: wrap; }

.bot-done {
  margin-top: 6px; border: 1px solid var(--border); background: var(--bg3);
  color: var(--green); font-size: 12px; font-weight: 600; cursor: pointer;
  border-radius: 0; padding: 4px 10px; align-self: flex-start;
}
.bot-done:hover { background: var(--bg4); border-color: var(--green); }
.react-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 0;
  font-size: 12px; cursor: pointer; color: var(--text);
}
.react-chip:hover { background: var(--bg4); }
.react-chip.mine { background: rgba(205,205,214,.18); border-color: var(--accent); }

/* ---- ответ в композере ---- */
.reply-info {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 0; color: var(--muted); font-size: 13px;
}
.reply-quote {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(205,205,214,.12); border-left: 3px solid var(--accent);
  padding: 4px 8px; border-radius: 0;
}
.reply-quote strong { color: var(--accent); }

/* ---- модалка пересылки ---- */
.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
}
.modal-card {
  width: 340px; max-width: 92vw; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  max-height: 70vh;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px;
}
.modal-close {
  border: none; background: var(--bg3); color: var(--muted); width: 26px; height: 26px;
  border-radius: 0; cursor: pointer; font-size: 13px;
}
.modal-close:hover { background: var(--bg4); color: var(--red); }
.forward-item {
  text-align: left; padding: 9px 10px; background: var(--bg3); color: var(--text);
  border: none; border-radius: 0; cursor: pointer; font-weight: 600;
}
.forward-item:hover { background: var(--bg4); }
.forward-users { font-size: 12px; color: var(--muted); text-transform: uppercase; }
#forwardUsers { list-style: none; overflow-y: auto; min-height: 0; flex: 1; }
#forwardUsers li {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 0; cursor: pointer; font-size: 14px;
}
#forwardUsers li:hover { background: var(--bg3); }
#forwardUsers li .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none;
}
#forwardUsers li.online .dot { background: var(--green); }
#forwardUsers li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- лайтбокс ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  padding: 20px;
}
.lightbox-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 94%; max-height: 94%;
}
.lightbox-card .modal-close {
  position: absolute; top: -36px; right: 0; width: 30px; height: 30px;
  background: var(--bg3); color: var(--text); font-size: 14px;
}
.lightbox-card .modal-close:hover { background: var(--bg4); color: var(--text); }
.lightbox-card img {
  max-width: 94vw; max-height: 86vh; border-radius: 0; cursor: default;
  box-shadow: 0 10px 44px rgba(0,0,0,.7); background: var(--bg2);
}
.lightbox-name { color: var(--muted); font-size: 12px; }

.empty-hint { color: var(--muted); text-align: center; font-size: 13px; margin-top: 30px; }

.menu-btn {
  position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; line-height: 18px;
  border: none; background: none; color: var(--muted); font-size: 16px; cursor: pointer;
  border-radius: 0;
  visibility: visible;
}
.msg:hover .menu-btn, .menu-btn:focus, .menu-drop.open ~ .menu-btn { visibility: visible; }
.msg:hover .react-quick { display: flex; }
.menu-drop {
  position: absolute; top: 28px; right: 6px; z-index: 20; min-width: 150px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 0;
  padding: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.35); display: none;
}
.menu-drop.open { display: block; }
.menu-drop button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; background: none;
  border: none; color: var(--text); cursor: pointer; font-size: 13px; border-radius: 0;
}
.menu-drop button:hover { background: var(--bg3); }
.menu-drop button.danger { color: var(--red); }
.menu-drop button.danger:hover { background: rgba(217,217,226,.1); }
.menu-drop .disabled { color: var(--muted); cursor: default; }
.menu-drop .disabled:hover { background: none; }

.edit-wrap { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.edit-wrap textarea { resize: vertical; min-height: 58px; }
.edit-actions { display: flex; gap: 8px; }
.edit-actions button { padding: 6px 12px; border: none; border-radius: 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.edit-actions .save { background: var(--accent); color: #11111b; }
  .edit-actions .save:hover { background: #dcdce2; }
.edit-actions .cancel { background: var(--bg3); color: var(--text); }

.composer { flex: none; display: flex; gap: 8px; padding: 10px 16px; background: var(--bg2); border-top: 1px solid var(--border); }

/* ---- панель эмодзи в композере ---- */
.emoji-panel {
  position: absolute; bottom: 78px; right: 16px; z-index: 120;
  width: 348px; max-width: calc(100vw - 48px);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 0;
  padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  max-height: 264px; overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,.55);
}
.emoji-panel button {
  border: none; background: none; font-size: 20px; padding: 3px;
  border-radius: 0; cursor: pointer; line-height: 1.2;
}
.emoji-panel button:hover { background: var(--bg4); transform: scale(1.2); }
#msgInput { flex: 1; resize: none; font-family: inherit; line-height: 1.45; min-height: 42px; max-height: 150px; border-radius: 0; }
.attach { background: var(--bg3); color: var(--accent); font-size: 18px; font-weight: 700; }
.attach:hover { background: var(--bg4); }
.attach-info { padding: 4px 18px 0; color: var(--muted); font-size: 13px; }

/* ---- панель быстрых иконок в чате с ботом ---- */
.bot-quickbar {
  position: absolute; z-index: 110; right: 14px; top: 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 0;
  padding: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.bq-title {
  font-size: 11px; color: var(--muted); text-align: center;
  padding: 2px 0 0; letter-spacing: .3px;
}
.bot-quickbar button {
  width: 58px; height: 52px; border: none; border-radius: 0; background: var(--bg3);
  font-size: 18px; cursor: pointer; line-height: 1.1; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.bot-quickbar button:hover { background: var(--bg4); transform: scale(1.05); }
.bot-quickbar button .bq-label {
  font-size: 9px; color: var(--muted); font-weight: 400;
}

/* ---- форма быстрого шаблона в чате ---- */
.bot-form {
  align-self: flex-start; background: var(--bg3); border: 1px solid var(--accent);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;
  max-width: 72%; overflow-wrap: anywhere; word-break: break-word;
  position: relative;
}
.bot-form-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.bot-form-label { font-size: 12px; color: var(--muted); }
.bot-form input, .bot-form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--bg4); border-radius: 0;
  background: var(--bg3); color: var(--text); outline: none; font-size: 14px;
  font-family: inherit; line-height: 1.4;
}
.bot-form input:focus, .bot-form textarea:focus { border-color: var(--accent); }
.bot-form textarea { min-height: 48px; resize: vertical; }
.bot-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.bot-form-actions button {
  padding: 6px 14px; border: none; border-radius: 0; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.bot-form-cancel { background: var(--bg3); color: var(--muted); }
.bot-form-cancel:hover { background: var(--bg4); }

/* ---- места на карте (встроенная панель) ---- */
.places-panel {
  width: 340px; flex: none; background: var(--bg2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 12px; gap: 10px; overflow-y: auto;
}
.places-panel.fullscreen {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1000;
  border-left: none; padding: 14px; gap: 12px;
}
.places-panel.fullscreen .places-map { flex: 1; height: auto; min-height: 0; }
.places-panel.fullscreen .places-list { max-height: none; max-height: 30%; min-height: 80px; }
.places-panel-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; }
.places-panel-btns { display: flex; gap: 6px; }
.places-panel-head .modal-close { padding: 0; width: 28px; height: 28px; border: none; background: var(--bg3); color: var(--muted); cursor: pointer; border-radius: 0; font-size: 13px; }
.places-panel-head .modal-close:hover { background: var(--bg4); color: var(--text); }
.places-panel-head .modal-close.act { background: var(--accent); color: #11111b; }
.places-hint { font-size: 12px; color: var(--muted); }
.places-map { height: 280px; flex: none; border-radius: 0; border: 1px solid var(--border); background: var(--bg3); z-index: 0; }
.places-map .leaflet-container { height: 100%; }
.place-pin { cursor: pointer; }
.places-form { display: flex; gap: 6px; flex-wrap: wrap; }
.places-form input { flex: 1; min-width: 90px; }
.places-form .primary { align-self: flex-start; }
.places-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 220px; min-height: 40px; }
.place-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--bg3); border-radius: 0; font-size: 13px;
}
.place-item .p-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.place-item .p-coords { color: var(--muted); font-size: 12px; }
.place-item .p-del {
  border: none; background: var(--bg3); color: var(--red); cursor: pointer; font-size: 14px;
  border-radius: 0; width: 24px; height: 24px;
}
.place-item .p-del:hover { background: var(--bg4); }
.places-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--bg3); border: 1px solid var(--bg4); color: var(--text);
  padding: 10px 16px; border-radius: 0; font-size: 14px; z-index: 100;
}
@media (max-width: 640px) {
  #sidebar { width: 180px; }
  .msg { max-width: 88%; }
}