/* ===== Mensageiro — visual inspirado nos mensageiros clássicos dos anos 2000 ===== */
:root {
  --font: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --text: #1e2b3a;
  --muted: #6b7a8c;
  --frame: #6f93bf;
  --frame-dark: #46698f;
  --title-a: #e8f3fd;
  --title-b: #bcd6ef;
  --title-active-a: #d9ecff;
  --title-active-b: #95c0ea;
  --panel: #f3f8fd;
  --panel-b: #dfeaf6;
  --line: #c3d4e6;
  --link: #0a5fb4;
  --online: #4cb82b;
  --busy: #d93b2b;
  --away: #f0a22e;
  --offline: #9aa6b4;
  --taskbar-h: 40px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 12px/1.4 var(--font);
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 110%, rgba(140, 220, 120, .55), transparent 55%),
    radial-gradient(ellipse at 85% -10%, rgba(255, 255, 255, .55), transparent 50%),
    linear-gradient(170deg, #3b8fd8 0%, #6db7ef 45%, #a9dbf7 75%, #d6f0d0 100%);
  -webkit-font-smoothing: antialiased;
}
body::before { /* faixas de luz suaves no "papel de parede" */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 120px, rgba(255,255,255,.07) 120px 180px);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
#desktop { position: fixed; inset: 0 0 var(--taskbar-h) 0; }

/* ---------- janelas ---------- */
.win {
  position: absolute; display: flex; flex-direction: column;
  min-width: 260px; min-height: 200px;
  background: linear-gradient(var(--title-a), var(--title-b) 34px, var(--panel) 34px);
  border: 1px solid var(--frame); border-radius: 8px 8px 4px 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 10px 30px rgba(10, 40, 80, .35);
  overflow: hidden; resize: both;
}
.win.active { border-color: var(--frame-dark); background: linear-gradient(var(--title-active-a), var(--title-active-b) 34px, var(--panel) 34px); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 14px 40px rgba(10, 40, 80, .45); }
.win.min { display: none; }
.win.dlg { resize: none; }
.win.dlg .mn, .win.dlg .mx { display: none; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none; }
.win-title {
  height: 34px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 4px 0 10px;
  cursor: default; user-select: none; touch-action: none;
}
.win-title .ico { width: 18px; height: 18px; flex: none; }
.win-title .t { flex: 1; min-width: 0; font-size: 12.5px; color: #1b3556; text-shadow: 0 1px 0 rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btns { display: flex; gap: 2px; }
.win-btns button {
  width: 28px; height: 20px; border: 1px solid rgba(60, 95, 140, .55); border-radius: 3px; padding: 0;
  background: linear-gradient(#fdfeff, #d6e6f6); display: grid; place-items: center; cursor: pointer;
}
.win-btns button:hover { background: linear-gradient(#ffffff, #bfdcfa); }
.win-btns button.close { width: 40px; background: linear-gradient(#f5b5a6, #d9442b); border-color: #9c2f1d; }
.win-btns button.close:hover { background: linear-gradient(#ffc7b9, #ef5a3d); }
.win-btns svg { width: 10px; height: 10px; }
.win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border-top: 1px solid rgba(255,255,255,.8); }
.win.shake { animation: shake .5s linear 2; }
@keyframes shake {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-12px,4px); } 20% { transform: translate(10px,-6px); }
  30% { transform: translate(-10px,-3px); } 40% { transform: translate(12px,5px); } 50% { transform: translate(-6px,6px); }
  60% { transform: translate(8px,-5px); } 70% { transform: translate(-9px,2px); } 80% { transform: translate(6px,-4px); } 90% { transform: translate(-4px,3px); }
}

/* ---------- botões genéricos ---------- */
.btn {
  height: 26px; padding: 0 14px; border-radius: 3px; border: 1px solid #7f9db9; cursor: pointer;
  background: linear-gradient(#ffffff, #e9f0f8 50%, #d7e4f2 51%, #e8f0f8); color: #1b3556;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.btn:hover { border-color: #3c7fb1; background: linear-gradient(#f2f9ff, #dceefd 50%, #bfe0fb 51%, #d6ecfd); }
.btn:active { background: linear-gradient(#c8e2f8, #e3f0fb); }
.btn.primary { font-weight: 600; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.field label { color: #2f4865; }
.input, .field input, .field select, .field textarea {
  height: 26px; padding: 3px 7px; border: 1px solid #a5b9d1; border-radius: 2px; background: #fff; outline: none;
}
.field textarea { height: auto; }
.input:focus, .field input:focus, .field select:focus { border-color: #3d8ee0; box-shadow: 0 0 0 2px rgba(61,142,224,.18); }
.err { color: #b3261e; min-height: 16px; margin: 4px 0; }
.hint { color: var(--muted); font-size: 11px; }

/* ---------- foto de exibição ---------- */
.dp {
  position: relative; flex: none; border-radius: 7px; padding: 4px;
  background: linear-gradient(#ffffff, #dfe7ef); border: 1px solid #9eb2c6;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.dp img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.dp::after { content: ""; position: absolute; inset: 1px; border-radius: 6px; border: 3px solid var(--st, var(--offline)); opacity: .9; pointer-events: none; }
.dp.s-online { --st: var(--online); } .dp.s-busy, .dp.s-phone { --st: var(--busy); }
.dp.s-away, .dp.s-brb, .dp.s-lunch { --st: var(--away); } .dp.s-offline, .dp.s-invisible { --st: var(--offline); }
.dp-64 { width: 72px; height: 72px; } .dp-96 { width: 104px; height: 104px; } .dp-40 { width: 46px; height: 46px; padding: 3px; }

/* ---------- login ---------- */
.login-body { padding: 18px 26px 22px; align-items: center; overflow: auto; background: linear-gradient(#f7fbff, #e3eef9); }
.login-body h1 { font-size: 22px; font-weight: 300; color: #23517f; margin: 6px 0 14px; letter-spacing: .3px; }
.login-body form { width: 100%; max-width: 260px; }
.login-body .row { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; }
.login-body .center { text-align: center; margin-top: 12px; }

/* ---------- lista de contatos ---------- */
.cl-head {
  padding: 12px 12px 10px; display: flex; gap: 10px; align-items: flex-start;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(160deg, #cfe6fb 0%, #e9f4fe 55%, #d8eecf 100%);
  border-bottom: 1px solid var(--line);
}
.cl-me { flex: 1; min-width: 0; }
.cl-name { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 3px; cursor: pointer; border: 1px solid transparent; max-width: 100%; }
.cl-name:hover { border-color: #9cc0e4; background: rgba(255,255,255,.6); }
.cl-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-name span { color: var(--muted); white-space: nowrap; }
.cl-psm {
  display: block; width: 100%; margin-top: 3px; padding: 2px 4px; border: 1px solid transparent; border-radius: 3px;
  background: transparent; color: #4b5d71; font-style: italic; outline: none; text-overflow: ellipsis;
}
.cl-psm:hover { border-color: #9cc0e4; background: rgba(255,255,255,.6); }
.cl-psm:focus { border-color: #3d8ee0; background: #fff; font-style: normal; }
.cl-tools { display: flex; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(#f9fcff, #e7f0f9); }
.cl-tools .input { flex: 1; min-width: 0; height: 24px; border-radius: 12px; padding-left: 26px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5' fill='none' stroke='%237a8ea6' stroke-width='1.6'/%3E%3Cpath d='M10 10l4 4' stroke='%237a8ea6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 8px 50%/12px no-repeat; }
.iconbtn {
  height: 24px; min-width: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 3px; background: transparent;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #1b3556; white-space: nowrap;
}
.iconbtn:hover { border-color: #9cc0e4; background: linear-gradient(#fdfeff, #dcecfb); }
.iconbtn svg { width: 16px; height: 16px; flex: none; }
.cl-list { flex: 1; overflow-y: auto; padding: 4px 0 10px; background: #fff; }
.cl-group > summary {
  list-style: none; cursor: pointer; padding: 4px 10px; font-weight: 600; color: #2f4865; user-select: none;
  display: flex; align-items: center; gap: 5px;
}
.cl-group > summary::-webkit-details-marker { display: none; }
.cl-group > summary::before { content: ""; border: 4px solid transparent; border-left: 5px solid #50698a; margin-right: 1px; transform-origin: 2px 50%; transition: transform .12s; }
.cl-group[open] > summary::before { transform: rotate(90deg); }
.cl-group > summary span { color: var(--muted); font-weight: 400; }
.contact {
  display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 22px; cursor: default; border: 1px solid transparent;
  white-space: nowrap; overflow: hidden; user-select: none;
}
.contact:hover { background: #eef6fe; border-color: #cfe3f8; }
.contact.sel { background: linear-gradient(#e2f0fd, #cde5fb); border-color: #8fbbe6; }
.contact .st { width: 16px; height: 16px; flex: none; }
.contact .nm { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.contact .pm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.contact.off .nm { color: #7d8896; }
.contact.unread .nm { font-weight: 700; }
.badge { flex: none; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: linear-gradient(#ff9b48, #e8620e); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.cl-empty { color: var(--muted); padding: 6px 22px; font-style: italic; }
.cl-foot { padding: 6px 10px; border-top: 1px solid var(--line); background: linear-gradient(#f0f6fc, #dde9f5); display: flex; gap: 4px; justify-content: space-between; }

/* menus suspensos */
.menu {
  position: fixed; z-index: 100000; min-width: 190px; padding: 3px; background: #fbfdff; border: 1px solid #8ea6c0; border-radius: 3px;
  box-shadow: 2px 4px 12px rgba(0,0,0,.25);
}
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 18px 4px 8px; border: 1px solid transparent; border-radius: 2px; background: none; text-align: left; cursor: pointer; }
.menu button:hover { background: linear-gradient(#eaf4fe, #d3e8fc); border-color: #a8cdf1; }
.menu hr { border: 0; border-top: 1px solid #d6e1ec; margin: 3px 2px; }
.menu .st, .menu svg, .menu img { width: 16px; height: 16px; flex: none; }

/* ---------- janela de conversa ---------- */
.chat-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 6px; background: linear-gradient(#f7fbff, #e6f0fa); border-bottom: 1px solid var(--line); }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who b { font-size: 14px; }
.chat-head .who .s { color: var(--muted); }
.chat-head .who .pm { color: #4b5d71; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-tools { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px 8px; border-bottom: 1px solid var(--line); background: linear-gradient(#fbfdff, #e8f1fa); }
.chat-main { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 8px; }
.chat-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.chat-right { width: 118px; flex: none; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 8px; }
.chat-right.members { width: 160px; justify-content: flex-start; align-items: stretch; overflow: auto; background: #fff; border: 1px solid #b9cbe0; border-radius: 3px; padding: 4px 0; }
.chat-right.members .ttl { padding: 2px 8px 4px; color: var(--muted); font-weight: 600; }
.chat-right.members .contact { padding-left: 6px; }
.msgs {
  flex: 1; min-height: 60px; overflow-y: auto; background: #fff; border: 1px solid #b9cbe0; border-radius: 3px;
  padding: 6px 10px 10px; font-size: 13px; user-select: text; overflow-wrap: anywhere;
}
.msg { margin-top: 6px; }
.msg .h { color: #6d6d6d; font-size: 12px; }
.msg .h time { color: #9aa3ad; }
.msg .b { padding-left: 12px; white-space: pre-wrap; }
.msg .b + .b { margin-top: 1px; }
.msg .b.pending { opacity: .55; }
.msg .emo { font-size: 1.25em; line-height: 1; vertical-align: -2px; font-style: normal; font-weight: normal; }
.sys { margin: 8px 0 2px; color: #5a6a7c; font-size: 12px; display: flex; gap: 6px; align-items: flex-start; }
.sys svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.sys.nudge { color: #b5520f; font-weight: 600; }
.day { text-align: center; color: #8a96a4; font-size: 11px; margin: 12px 0 2px; border-top: 1px solid #edf1f5; line-height: 0; }
.day span { background: #fff; padding: 0 8px; }
.filecard { display: inline-flex; gap: 8px; align-items: center; margin: 3px 0 0 12px; padding: 6px 10px; border: 1px solid #c9d8ea; border-radius: 4px; background: linear-gradient(#fbfdff, #edf4fb); max-width: 100%; }
.filecard svg { width: 24px; height: 24px; flex: none; }
.filecard .fn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; display: block; }
.filecard small { color: var(--muted); }
.thumb { display: block; margin: 4px 0 0 12px; max-width: min(260px, 90%); max-height: 200px; border-radius: 3px; border: 1px solid #c9d8ea; cursor: zoom-in; }
.loadmore { text-align: center; margin: 2px 0 6px; }
.fmt { display: flex; gap: 2px; align-items: center; }
.compose { display: flex; gap: 6px; height: 74px; flex: none; }
.compose textarea {
  flex: 1; resize: none; border: 1px solid #b9cbe0; border-radius: 3px; padding: 6px 8px; font-size: 13px; outline: none; background: #fff;
}
.compose textarea:focus { border-color: #6aa6e0; }
.compose .btn { height: auto; width: 70px; padding: 0; }
.statusbar { flex: none; height: 22px; padding: 2px 10px; color: var(--muted); border-top: 1px solid var(--line); background: linear-gradient(#f0f6fc, #e0ebf6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar.typing { color: #2f5f8f; }
.drop-hint { position: absolute; inset: 34px 0 0; background: rgba(61, 142, 224, .16); border: 3px dashed #3d8ee0; display: none; place-items: center; font-size: 16px; color: #1b4f86; font-weight: 600; z-index: 5; pointer-events: none; }
.win.dragover .drop-hint { display: grid; }

/* emoticons */
.emopick { position: fixed; z-index: 100000; width: 330px; display: flex; flex-direction: column; background: #fff; border: 1px solid #8ea6c0; border-radius: 4px; box-shadow: 2px 4px 12px rgba(0,0,0,.25); overflow: hidden; }
.emo-tabs { display: flex; gap: 1px; padding: 4px 4px 0; background: linear-gradient(#f3f8fd, #e2edf8); border-bottom: 1px solid var(--line); }
.emo-tabs button { flex: 1; height: 30px; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; background: none; font-size: 17px; cursor: pointer; padding: 0; opacity: .65; }
.emo-tabs button:hover { opacity: 1; }
.emo-tabs button.on { opacity: 1; background: #fff; border-color: var(--line); margin-bottom: -1px; }
.emo-title { padding: 5px 8px 2px; font-size: 11px; color: var(--muted); }
.emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; padding: 2px 6px 6px; max-height: 236px; overflow-y: auto; }
.emo-grid button { height: 36px; border: 1px solid transparent; border-radius: 4px; background: none; font-size: 21px; cursor: pointer; padding: 0; line-height: 1; }
.emo-grid button:hover { border-color: #a8cdf1; background: #e8f3fe; transform: scale(1.15); }
.emo-foot { padding: 5px 8px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); background: #f7fafd; }

/* ---------- diálogos ---------- */
.dlg-body { padding: 14px 16px; overflow: auto; flex: 1; }
.dlg-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; gap: 6px; justify-content: flex-end; background: linear-gradient(#f3f8fd, #e2edf8); flex: none; }
.pick-list { border: 1px solid #b9cbe0; background: #fff; border-radius: 2px; max-height: 220px; overflow: auto; }
.pick-list label { display: flex; align-items: center; gap: 6px; padding: 4px 8px; cursor: pointer; }
.pick-list label:hover { background: #eef6fe; }
.font-preview { border: 1px solid #b9cbe0; background: #fff; padding: 10px; min-height: 44px; font-size: 13px; margin-top: 6px; }
.row2 { display: flex; gap: 10px; align-items: flex-end; }
.row2 > * { flex: 1; min-width: 0; }
.field input, .field select { width: 100%; }
.field input[type=color] { width: 56px; }
.av-edit { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.av-edit .acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.av-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.av-presets button { width: 44px; height: 44px; padding: 2px; border: 1px solid #b9cbe0; border-radius: 4px; background: #fff; cursor: pointer; }
.av-presets button:hover { border-color: #3d8ee0; }
.av-presets img { width: 100%; height: 100%; border-radius: 2px; }
fieldset { border: 1px solid #c3d4e6; border-radius: 3px; margin: 0 0 12px; padding: 8px 10px; }
legend { color: #2f4865; padding: 0 4px; }
.check { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
table.adm { width: 100%; border-collapse: collapse; background: #fff; }
table.adm th, table.adm td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #e3eaf2; white-space: nowrap; }
table.adm th { background: #eaf2fa; color: #2f4865; font-weight: 600; position: sticky; top: 0; }
table.adm td.acts { display: flex; gap: 4px; }
table.adm .btn { height: 22px; padding: 0 8px; }
.pill { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 10.5px; background: #e2ebf4; color: #3a5372; }
.pill.on { background: #dff3d6; color: #2c6b1a; } .pill.off { background: #fde3df; color: #9c2f1d; }

/* ---------- notificações (toast) ---------- */
#toasts { position: fixed; right: 10px; bottom: calc(var(--taskbar-h) + 8px); display: flex; flex-direction: column-reverse; gap: 8px; z-index: 100001; pointer-events: none; }
.toast {
  pointer-events: auto; width: 230px; min-height: 100px; border: 1px solid #6f93bf; border-radius: 6px; overflow: hidden; cursor: pointer;
  background: linear-gradient(#ffffff, #e5f0fb); box-shadow: 0 6px 18px rgba(10,40,80,.35);
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast.out { animation: toastOut .3s forwards; }
.toast .tt { height: 22px; padding: 0 8px; display: flex; align-items: center; gap: 6px; background: linear-gradient(var(--title-active-a), var(--title-active-b)); color: #1b3556; font-size: 11px; }
.toast .tt svg { width: 14px; height: 14px; }
.toast .tb { display: flex; gap: 8px; padding: 8px 10px; align-items: center; }
.toast .tb .txt { min-width: 0; font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.toast .tb b { color: #173b63; }
@keyframes toastIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(30px); opacity: 0; } }

/* ---------- barra de tarefas ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); display: flex; align-items: center; gap: 6px; padding: 0 8px;
  background: linear-gradient(rgba(30, 60, 100, .78), rgba(10, 25, 50, .9)); border-top: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 99999;
}
#taskbar-items { flex: 1; display: flex; gap: 4px; overflow-x: auto; min-width: 0; scrollbar-width: none; }
#taskbar-clock { color: #e8f2ff; font-size: 11.5px; text-align: center; line-height: 1.25; padding: 0 6px; white-space: nowrap; }
.tb-item {
  height: 30px; max-width: 180px; min-width: 120px; padding: 0 10px; display: flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid rgba(255,255,255,.25); border-radius: 3px; color: #fff; cursor: pointer;
  background: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.04)); text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.tb-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-item svg { width: 16px; height: 16px; flex: none; }
.tb-item:hover { background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.1)); }
.tb-item.active { background: linear-gradient(rgba(140,200,255,.45), rgba(90,150,230,.25)); border-color: rgba(200,230,255,.6); }
.tb-item.flash { animation: flash 1s steps(1) infinite; }
@keyframes flash { 0%,100% { background: linear-gradient(#ffb560, #e8780f); border-color: #ffd29c; } 50% { background: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.04)); } }

/* visualizador de imagem */
.lightbox { position: fixed; inset: 0; z-index: 100002; background: rgba(0,0,0,.75); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 90vh; box-shadow: 0 10px 40px rgba(0,0,0,.6); }

/* ---------- celular ---------- */
@media (max-width: 720px) {
  :root { --taskbar-h: 0px; }
  #taskbar { display: none; }
  .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none; border: 0; }
  .win .win-btns .mx { display: none; }
  .win .win-btns .mn { display: none; }
  .win .back { display: grid !important; }
  .chat-right { display: none; }
  .compose { height: 58px; }
  #toasts { right: 50%; transform: translateX(50%); bottom: auto; top: 8px; flex-direction: column; }
  .contact { padding-top: 7px; padding-bottom: 7px; }
  .cl-group > summary { padding: 7px 10px; }
  .dlg.win { height: auto !important; max-height: 100%; }
}
.win .back { display: none; }

/* ---------- assinatura Uptime ---------- */
.credit { display: flex; align-items: center; justify-content: center; gap: 5px; color: #8a97a6; font-size: 10.5px; letter-spacing: .2px; user-select: none; }
.credit img { width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 0 4px rgba(90, 200, 120, .45); }
.brand { font-family: "Segoe UI", Tahoma, sans-serif; font-weight: 800; letter-spacing: .6px; font-size: 10.5px; }
.brand b { color: #24384f; font-weight: 800; }
.brand i { font-style: normal; color: #4fae1f; }
.login-credit { margin-top: 26px; opacity: .85; }
.cl-credit { flex: none; height: 20px; border-top: 1px solid #d3dfeb; background: #eef4fa; cursor: pointer; opacity: .8; transition: opacity .15s; }
.cl-credit:hover { opacity: 1; color: #5b6b7d; }
.opt-credit { margin-top: 4px; }
.about { text-align: center; }
.about img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 16px rgba(90, 200, 120, .55), 0 0 30px rgba(60, 150, 230, .35); }
.brand.big { font-size: 22px; margin: 8px 0 2px; letter-spacing: 1.5px; }
.about p { margin: 8px 0 0; }

/* ---------- botão Uptime na barra ---------- */
#start {
  height: 30px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 5px; margin-right: 4px; cursor: pointer;
  border: 1px solid rgba(160, 230, 120, .35); border-radius: 15px;
  background: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.02)), radial-gradient(ellipse at 20% 50%, rgba(80, 170, 240, .45), rgba(20, 30, 70, .2) 70%);
  box-shadow: 0 0 10px rgba(130, 220, 90, .25), inset 0 1px 0 rgba(255,255,255,.25);
  transition: box-shadow .2s, border-color .2s;
}
#start:hover { border-color: rgba(170, 240, 120, .75); box-shadow: 0 0 16px rgba(140, 230, 90, .5), inset 0 1px 0 rgba(255,255,255,.3); }
#start img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 6px rgba(120, 220, 255, .6); }
#start .brand { font-size: 12px; letter-spacing: 1px; }
#start .brand b { color: #fff; }
#start .brand i { color: #a6e35a; }
.menu.start-menu { min-width: 230px; }

/* ---------- marca-d'água ---------- */
#ghost {
  position: fixed; right: 7vw; top: 12vh; width: min(28vw, 330px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; user-select: none;
  opacity: .22; filter: saturate(.9);
}
#ghost img { width: 100%; height: auto; }
#ghost { top: 50%; right: 9vw; transform: translateY(calc(-50% - var(--taskbar-h) / 2)); width: min(32vw, 380px); }
body.wp-plain #ghost, body.wp-custom #ghost { display: none; }
#wallpaper { position: fixed; inset: 0; background: center / cover no-repeat; display: none; pointer-events: none; }
body.wp-custom #wallpaper { display: block; }
body.wp-custom::before { display: none; }
.wp-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.wp-pick button { border: 2px solid transparent; border-radius: 5px; padding: 0; background: none; cursor: pointer; text-align: center; color: inherit; font-size: 11px; }
.wp-pick button span { display: block; height: 58px; border-radius: 3px; margin-bottom: 3px; background: center / cover no-repeat; border: 1px solid rgba(0,0,0,.15); }
.wp-pick button.on { border-color: #3d8ee0; }
html[data-theme=dark] .wp-pick button.on { border-color: #a6e35a; }
@media (max-width: 720px) { #ghost { display: none; } }

/* a faixa de crédito na lista só aparece no celular (no PC o crédito fica na barra) */
.cl-credit { display: none; }
@media (max-width: 720px) { .cl-credit { display: flex; } }

/* ================= TEMA ESCURO ================= */
html[data-theme=dark] {
  color-scheme: dark;
  --text: #e3e9f5; --muted: #94a1bd; --frame: #2f3c6b; --frame-dark: #4a63a8;
  --title-a: #232b50; --title-b: #1a2142; --title-active-a: #2b3768; --title-active-b: #1e2753;
  --panel: #171d38; --panel-b: #121730; --line: #2a3460; --link: #79bdff;
  --online: #8fd94f; --away: #f2b13d; --busy: #ff5f4a; --offline: #6a7590;
}
html[data-theme=dark] body {
  background:
    radial-gradient(ellipse at 78% 70%, rgba(110, 200, 60, .16), transparent 45%),
    radial-gradient(ellipse at 22% 25%, rgba(50, 130, 230, .22), transparent 55%),
    linear-gradient(160deg, #0d1124 0%, #141a3a 55%, #0b0f20 100%);
}
html[data-theme=dark] body::before { background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 120px, rgba(255,255,255,.018) 120px 180px); }
html[data-theme=dark] #ghost { opacity: .18; }
html[data-theme=dark] .win { box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 12px 34px rgba(0,0,0,.55); }
html[data-theme=dark] .win.active { box-shadow: 0 0 0 1px rgba(120,170,255,.12) inset, 0 0 0 1px rgba(120, 210, 90, .12), 0 16px 44px rgba(0,0,0,.65); }
html[data-theme=dark] .win-title .t { color: #dfe7fb; text-shadow: none; }
html[data-theme=dark] .win-body { border-top-color: rgba(255,255,255,.04); }
html[data-theme=dark] .win-btns button { background: linear-gradient(#35407a, #252d5a); border-color: #47549a; }
html[data-theme=dark] .win-btns button:hover { background: linear-gradient(#45529a, #303b74); }
html[data-theme=dark] .win-btns button.close { background: linear-gradient(#e0644c, #b8321e); border-color: #7d1f12; }
html[data-theme=dark] .win-btns svg path, html[data-theme=dark] .win-btns svg rect { stroke: #dfe7fb; }
html[data-theme=dark] .win-btns .close svg path { stroke: #fff; }
html[data-theme=dark] .btn { color: #e3e9f5; border-color: #3d4b85; background: linear-gradient(#2e3a6c, #222b55 50%, #1c2449 51%, #222b55); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
html[data-theme=dark] .btn:hover { border-color: #6d8de0; background: linear-gradient(#384885, #2a3668 50%, #243063 51%, #2b3870); }
html[data-theme=dark] .btn.primary { border-color: #5f9a34; background: linear-gradient(#5c9a2f, #4b8424 50%, #3f761c 51%, #4a8526); color: #fff; }
html[data-theme=dark] .btn.primary:hover { border-color: #9be15d; background: linear-gradient(#6aad38, #57962b 50%, #4b8822 51%, #56962d); }
html[data-theme=dark] .input, html[data-theme=dark] .field input, html[data-theme=dark] .field select, html[data-theme=dark] .field textarea,
html[data-theme=dark] .compose textarea { background-color: #0f1430; border-color: #313d6e; color: #e3e9f5; }
html[data-theme=dark] .input:focus, html[data-theme=dark] .field input:focus, html[data-theme=dark] .compose textarea:focus { border-color: #6aa6ff; box-shadow: 0 0 0 2px rgba(106,166,255,.18); }
html[data-theme=dark] .field label, html[data-theme=dark] legend { color: #b7c3dd; }
html[data-theme=dark] .err { color: #ff8a7a; }
html[data-theme=dark] .dp { background: linear-gradient(#2b3566, #1a2148); border-color: #3a4780; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
html[data-theme=dark] .login-body { background: linear-gradient(#1c2347, #141a36); }
html[data-theme=dark] .login-body h1 { color: #cfe0ff; }
html[data-theme=dark] .cl-head { background: radial-gradient(ellipse at 100% 0%, rgba(120, 210, 80, .14), transparent 60%), linear-gradient(160deg, #1f2a58 0%, #1a2147 60%, #1b2a3e 100%); }
html[data-theme=dark] .cl-name:hover, html[data-theme=dark] .cl-psm:hover { border-color: #3d4b85; background: rgba(255,255,255,.05); }
html[data-theme=dark] .cl-psm { color: #aab6cf; }
html[data-theme=dark] .cl-psm:focus { background: #0f1430; }
html[data-theme=dark] .cl-tools, html[data-theme=dark] .chat-tools { background: linear-gradient(#1b2246, #161c3b); }
html[data-theme=dark] .cl-list, html[data-theme=dark] .msgs, html[data-theme=dark] .chat-right.members, html[data-theme=dark] .pick-list,
html[data-theme=dark] .font-preview, html[data-theme=dark] table.adm { background: #10152e; border-color: #2a3460; }
html[data-theme=dark] .cl-group > summary { color: #c7d3ee; }
html[data-theme=dark] .cl-group > summary::before { border-left-color: #8fa3cf; }
html[data-theme=dark] .contact:hover, html[data-theme=dark] .pick-list label:hover { background: #1b2350; border-color: #2c3870; }
html[data-theme=dark] .contact.sel { background: linear-gradient(#26336e, #1f2a5c); border-color: #4a63a8; }
html[data-theme=dark] .contact.off .nm { color: #7d89a6; }
html[data-theme=dark] .cl-foot, html[data-theme=dark] .statusbar, html[data-theme=dark] .dlg-foot { background: linear-gradient(#1b2246, #141a36); }
html[data-theme=dark] .iconbtn { color: #dbe4f8; }
html[data-theme=dark] .iconbtn:hover { border-color: #3d4b85; background: linear-gradient(#26306a, #1d2553); }
html[data-theme=dark] .chat-head { background: linear-gradient(#1f2752, #182043); }
html[data-theme=dark] .chat-head .who .pm { color: #aab6cf; }
html[data-theme=dark] .msg .h { color: #94a1bd; }
html[data-theme=dark] .msg .h time { color: #6c7894; }
html[data-theme=dark] .msg .b[style*="color: rgb(0, 0, 0)"] { color: #e8eefc !important; } /* fonte preta padrão fica legível */
html[data-theme=dark] .compose textarea[style*="color: rgb(0, 0, 0)"] { color: #e8eefc !important; }
html[data-theme=dark] .sys { color: #9aa8c6; }
html[data-theme=dark] .sys.nudge { color: #ffb066; }
html[data-theme=dark] .day { border-top-color: #222b52; color: #7884a2; }
html[data-theme=dark] .day span { background: #10152e; }
html[data-theme=dark] .filecard { background: linear-gradient(#1d2550, #171e42); border-color: #33407a; }
html[data-theme=dark] .thumb { border-color: #33407a; }
html[data-theme=dark] .statusbar.typing { color: #9fd0ff; }
html[data-theme=dark] .menu, html[data-theme=dark] .emopick { background: #161c3b; border-color: #34417a; box-shadow: 2px 6px 18px rgba(0,0,0,.55); }
html[data-theme=dark] .menu button:hover { background: linear-gradient(#26336e, #1f2a5c); border-color: #4a63a8; }
html[data-theme=dark] .menu hr { border-top-color: #2a3460; }
html[data-theme=dark] fieldset { border-color: #2a3460; }
html[data-theme=dark] .av-presets button { background: #10152e; border-color: #2a3460; }
html[data-theme=dark] table.adm th { background: #1b2350; color: #c7d3ee; }
html[data-theme=dark] table.adm th, html[data-theme=dark] table.adm td { border-bottom-color: #222b52; }
html[data-theme=dark] .pill { background: #26306a; color: #c7d3ee; }
html[data-theme=dark] .pill.on { background: #233f1e; color: #a6e35a; }
html[data-theme=dark] .pill.off { background: #4a1f1a; color: #ff9b8a; }
html[data-theme=dark] .toast { background: linear-gradient(#1f2752, #161c3b); border-color: #3a4780; box-shadow: 0 8px 22px rgba(0,0,0,.6); }
html[data-theme=dark] .toast .tt { color: #dfe7fb; }
html[data-theme=dark] .toast .tb b { color: #a6e35a; }
html[data-theme=dark] .cl-credit { background: #121730; border-top-color: #222b52; }
html[data-theme=dark] .brand b { color: #fff; }
html[data-theme=dark] .brand i { color: #a6e35a; }
html[data-theme=dark] .credit { color: #7884a2; }
html[data-theme=dark] #taskbar { background: linear-gradient(rgba(18, 23, 50, .85), rgba(6, 9, 22, .95)); border-top-color: rgba(120, 160, 255, .2); }
html[data-theme=dark] .badge { background: linear-gradient(#a6e35a, #6cb82b); color: #10210a; }

/* ---------- participantes / backdrop ---------- */
.dlg-backdrop { display: none; }
.members-link { color: inherit; text-decoration: underline dotted; }
.member-list { display: flex; flex-direction: column; gap: 2px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-row .mi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-row .mi b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .mi span { color: var(--muted); display: flex; align-items: center; gap: 4px; font-size: 11.5px; }
.member-row .mi .st { width: 13px; height: 13px; }
.member-row .btn { height: 28px; padding: 0 10px; }

/* ================= CELULAR ================= */
@media (max-width: 720px) {
  /* iOS dá zoom em campos com fonte menor que 16px */
  input, select, textarea, .input, .field input, .field select, .compose textarea, .cl-psm { font-size: 16px !important; }
  body { font-size: 14px; }

  /* janelas ocupam a tela, respeitando entalhe e barra do iPhone */
  .win { padding-top: env(safe-area-inset-top); background: var(--title-active-b); }
  .win-title { height: 46px; padding: 0 6px; }
  .win-title .t { font-size: 15px; font-weight: 600; }
  .win-btns button.close { width: 38px; height: 30px; }
  .win .back { min-width: 38px; height: 34px; }
  .win .back svg { width: 16px; height: 16px; }
  .win-body { padding-bottom: env(safe-area-inset-bottom); }

  /* diálogos viram cartão centralizado com fundo escurecido */
  .dlg-backdrop { display: block; position: absolute; inset: 0; background: rgba(5, 10, 25, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  .win.dlg {
    left: 12px !important; right: 12px; top: 50% !important; width: auto !important; height: auto !important;
    max-height: calc(100% - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    transform: translateY(-50%); border-radius: 14px; border: 1px solid var(--frame); padding-top: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }
  .win.dlg .back { display: none !important; }
  .win.dlg .win-title { height: 44px; padding-left: 14px; }
  .win.dlg .win-body { padding-bottom: 0; }
  .dlg-body { padding: 14px; }
  .dlg-foot { padding: 10px 12px; gap: 8px; }
  .dlg-foot .btn { height: 38px; flex: 1; font-size: 15px; }
  .row2 { flex-wrap: wrap; }
  .row2 > * { flex: 1 1 140px; }
  .pick-list label { padding: 9px 10px; }
  .pick-list input { width: 18px; height: 18px; }
  .check { padding: 4px 0; }
  .check input { width: 18px; height: 18px; flex: none; }
  .av-presets button { width: 48px; height: 48px; }
  table.adm td.acts { flex-wrap: wrap; }

  /* lista de contatos */
  .cl-head { padding: 12px; }
  .cl-name b { font-size: 16px; }
  .cl-tools .input { height: 36px; border-radius: 18px; }
  .iconbtn { height: 36px; min-width: 36px; }
  .iconbtn svg { width: 20px; height: 20px; }
  .contact { padding: 10px 12px 10px 18px; gap: 10px; }
  .contact .st { width: 18px; height: 18px; }
  .cl-group > summary { padding: 10px 12px; }
  .badge { min-width: 22px; height: 20px; font-size: 12px; border-radius: 10px; }
  .cl-foot { padding: 6px 8px; }
  .cl-credit { height: 26px; }

  /* conversa */
  .chat-head { padding: 8px 12px; }
  .chat-head .who b { font-size: 16px; }
  .chat-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 6px; }
  .chat-tools::-webkit-scrollbar { display: none; }
  .chat-tools .iconbtn { flex: none; }
  .chat-main { padding: 6px; gap: 0; }
  .chat-left { gap: 4px; }
  .msgs { font-size: 15px; padding: 6px 10px 12px; }
  .msg .h { font-size: 13px; }
  .fmt .iconbtn { height: 34px; }
  .compose { height: auto; min-height: 50px; gap: 6px; }
  .compose textarea { height: 50px; max-height: 120px; padding: 12px 10px; }
  .compose .btn { width: 74px; font-size: 15px; }
  .statusbar { height: 26px; padding: 4px 12px; font-size: 12px; }
  .thumb { max-width: 80%; }
  .filecard .fn { max-width: 52vw; }

  /* menus e emoticons maiores para o dedo */
  .menu { min-width: 220px; }
  .menu button { padding: 10px 14px 10px 10px; font-size: 15px; }

  /* avisos no topo, largura da tela */
  #toasts { top: calc(8px + env(safe-area-inset-top)); right: 8px; left: 8px; transform: none; align-items: stretch; }
  .toast { width: auto; min-height: 0; border-radius: 12px; }

  /* login */
  .login-body { padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); justify-content: center; }
  .login-body form { max-width: 340px; }
  .login-body .btn.primary { height: 42px; min-width: 160px !important; font-size: 16px; }
}

.pick-list .st { width: 16px; height: 16px; flex: none; }
.pick-list input { flex: none; }
@media (max-width: 720px) { .win.noclose .back { display: none !important; } .win.noclose .win-title { padding-left: 14px; } }
.app-dl { display: block; text-align: center; margin-top: 18px; font-size: 12px; color: var(--link); text-decoration: none; }
.app-dl:hover { text-decoration: underline; }

/* ---------- app do Windows: cada janela do Windows mostra uma tela ---------- */
html.split { --taskbar-h: 0px; }
html.split #taskbar, html.split #ghost, html.split #wallpaper { display: none !important; }
html.split body::before { display: none; }
html.split body { background: var(--panel); }
html.split .win:not(.dlg) {
  left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important;
  border: 0; border-radius: 0; resize: none; box-shadow: none; animation: none;
}
html.split .win:not(.dlg) > .win-title { display: none; }
html.split .win:not(.dlg) > .win-body { border-top: 0; }
html.split .dlg-backdrop { display: block; position: absolute; inset: 0; background: rgba(5, 10, 25, .35); }
html.split #toasts { display: none; }
html.mode-list .cl-credit { display: flex; }

/* fotos direto na conversa */
.photo { position: relative; display: inline-block; margin: 4px 0 0 12px; max-width: min(320px, 90%); }
.photo .thumb { margin: 0; max-width: 100%; max-height: 260px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.15); display: block; }
.photo-dl { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 20, 40, .65); color: #fff; text-decoration: none; font-size: 14px; opacity: 0; transition: opacity .15s; }
.photo:hover .photo-dl { opacity: 1; }
@media (hover: none) { .photo-dl { opacity: .85; } }
.lightbox { flex-direction: column; gap: 10px; }
.lb-bar { display: flex; gap: 8px; align-items: center; color: #fff; max-width: 94vw; }
.lb-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .85; }
.lightbox img { max-height: 82vh; border-radius: 4px; }
.msg .b.big-emo { font-size: 30px; line-height: 1.25; }
.msg .b.big-emo .emo { font-size: 1em; vertical-align: 0; }
html[data-theme=dark] .emopick { background: #161c3b; border-color: #34417a; }
html[data-theme=dark] .emo-tabs { background: linear-gradient(#1b2246, #141a36); }
html[data-theme=dark] .emo-tabs button.on { background: #161c3b; border-color: #2a3460; }
html[data-theme=dark] .emo-grid button:hover { background: #1f2a5c; border-color: #4a63a8; }
html[data-theme=dark] .emo-foot { background: #121730; }
@media (max-width: 720px) {
  .emopick { width: min(360px, calc(100vw - 16px)); }
  .emo-grid { grid-template-columns: repeat(7, 1fr); max-height: 40vh; }
  .emo-grid button { height: 44px; font-size: 26px; }
  .emo-tabs button { height: 38px; font-size: 20px; }
}

/* ---------- recursos desligados pelo administrador ---------- */
html.no-files .t-file, html.no-files .t-clip { display: none !important; }
html.no-nudge .t-nudge, html.no-nudge .t-nudge2 { display: none !important; }
html.no-groups .newgroup, html.no-groups .dm-invite { display: none !important; }
html.no-wallpaper [data-wp="custom"] { display: none !important; }
.filecard.expired { opacity: .6; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.03) 6px 12px); }
.sys.retention { justify-content: center; color: var(--muted); font-size: 11px; margin: 2px 0 8px; }

/* ---------- painel de administração ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 12px; }
.tabs button { padding: 7px 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; background: none; cursor: pointer; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--panel); border-color: var(--line); color: var(--text); font-weight: 600; margin-bottom: -1px; }
.switch-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row .sw { flex: none; width: 36px; height: 20px; border-radius: 10px; background: #b9c6d6; position: relative; transition: background .15s; margin-top: 1px; }
.switch-row .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch-row input:checked + .sw { background: #4cb82b; }
.switch-row input:checked + .sw::after { transform: translateX(16px); }
.switch-row input:focus-visible + .sw { outline: 2px solid #3d8ee0; outline-offset: 2px; }
.switch-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.field.inline select { width: auto; min-width: 170px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--panel); }
.stats b { display: block; font-size: 17px; }
.stats span { color: var(--muted); font-size: 11px; }
.warn-box { margin: 8px 0; padding: 7px 10px; border-radius: 4px; background: #fff4e0; border: 1px solid #f0c27a; color: #7a4d00; }
html[data-theme=dark] .warn-box { background: #3a2b10; border-color: #8a6420; color: #ffd28a; }
.arch-list { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-list a { padding: 3px 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 12px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .field.inline { flex-direction: column; align-items: stretch; } .field.inline select { width: 100%; } .tabs { overflow-x: auto; } .tabs button { white-space: nowrap; } }
html.no-files.no-nudge.no-groups .dm-chat .chat-tools { display: none; }
.sys.upload { align-items: center; flex-wrap: wrap; }
.sys.upload progress { width: 140px; height: 8px; accent-color: #4cb82b; }
.sys.upload .ucancel { font-size: 11px; }
.login-body h1.brand-title { display: flex; align-items: center; gap: 8px; font-weight: 400; letter-spacing: .5px; }
.login-body h1.brand-title img { width: 30px; height: 30px; }
