:root {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --border: #dfe2e8;
  --text: #1c2130;
  --muted: #687085;
  --accent: #2f6fed;
  --accent-text: #ffffff;
  --hover: #eef1f7;
  --select: #e3ebfd;
  --talk: #1fb85b;
  --danger: #d93a3a;
  --warn-bg: #fff4d6;
  --warn-text: #6b4e00;
  --err-bg: #fde3e3;
  --err-text: #8a1c1c;
  --info-bg: #e3edff;
  --info-text: #1f3f86;
  --shadow: 0 6px 24px rgba(16, 24, 40, .14);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151b;
    --panel: #1b1f27;
    --panel-2: #222731;
    --border: #2e3442;
    --text: #e6e8ee;
    --muted: #8d95a8;
    --accent: #4d86ff;
    --hover: #262c38;
    --select: #233457;
    --warn-bg: #3a3014;
    --warn-text: #f3d888;
    --err-bg: #3d1d1f;
    --err-text: #ffb4b4;
    --info-bg: #1c2a48;
    --info-text: #b8ccff;
    --shadow: 0 8px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151b;
  --panel: #1b1f27;
  --panel-2: #222731;
  --border: #2e3442;
  --text: #e6e8ee;
  --muted: #8d95a8;
  --accent: #4d86ff;
  --hover: #262c38;
  --select: #233457;
  --warn-bg: #3a3014;
  --warn-text: #f3d888;
  --err-bg: #3d1d1f;
  --err-text: #ffb4b4;
  --info-bg: #1c2a48;
  --info-text: #b8ccff;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; word-break: break-all; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

button {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px; cursor: pointer;
}
button:hover { background: var(--hover); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--danger); }
button.big { width: 100%; padding: 11px; font-size: 15px; font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="checkbox"] { width: auto; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
label { display: block; margin: 10px 0; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0; }
.row.wrap { flex-wrap: wrap; justify-content: flex-start; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.alert { border-radius: 8px; padding: 9px 12px; margin: 10px 0; font-size: 13px; }
.alert.error { background: var(--err-bg); color: var(--err-text); white-space: pre-line; }
.alert.warn { background: var(--warn-bg); color: var(--warn-text); }
.alert.info { background: var(--info-bg); color: var(--info-text); }
.alert.slim { margin: 0; border-radius: 0; text-align: center; }

/* ---------- Login ---------- */
#login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 400px; padding: 24px; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.brand p { margin: 2px 0 0; }
.brand #login-settings { margin-left: auto; align-self: flex-start; }
details { margin: 8px 0 14px; }
summary { cursor: pointer; color: var(--muted); }

/* ---------- App layout ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.server-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.server-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.connected { background: var(--talk); }
.status-dot.connecting { background: #e8a33d; }
.toolbar { display: flex; gap: 4px; flex: none; }
.tool {
  width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center;
  background: transparent; border-color: transparent;
}
.tool:hover { background: var(--hover); }
.tool.small { width: 30px; height: 30px; }
.tool.active { background: var(--err-bg); color: var(--danger); }
.tool.on { background: var(--select); color: var(--accent); }
.tool svg { width: 20px; height: 20px; }

.mobile-tabs { display: none; }
.layout { flex: 1; display: grid; grid-template-columns: minmax(260px, 38%) 1fr; min-height: 0; }
.pane { min-height: 0; display: flex; flex-direction: column; }
.tree-pane { border-right: 1px solid var(--border); background: var(--panel); }
.tree-head { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); }
.tree { flex: 1; overflow: auto; padding: 6px 4px 20px; user-select: none; }

.node { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; cursor: pointer; min-height: 28px; }
.node:hover { background: var(--hover); }
.node.selected { background: var(--select); }
.node .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .extra { margin-left: auto; display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 11px; flex: none; }
.node .ico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.node .tag { font-size: 10px; padding: 0 5px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.node .away { color: var(--muted); font-style: italic; font-weight: 400; }

/* channels: square tinted icon, bold name */
.node.channel { font-weight: 600; min-height: 30px; margin-top: 2px; }
.node.channel > .ico {
  width: 22px; height: 22px; padding: 4px; border-radius: 6px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.node.channel.empty > .name { color: color-mix(in srgb, var(--text) 78%, var(--muted)); }
.node.channel.full > .ico, .node.channel.locked > .ico { color: #c97c0e; background: color-mix(in srgb, #d38b1f 16%, transparent); }
.node.channel.current { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.node.channel.current > .ico { color: var(--accent-text); background: var(--accent); }
.node.channel.current.selected, .node.channel.selected { background: var(--select); }
.node.channel .count {
  font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.node.channel.spacer { cursor: default; justify-content: center; color: var(--muted); font-weight: 400; margin-top: 6px; }
.node.channel.spacer:hover { background: none; }

/* clients: round avatar, normal weight, grouped under their channel */
.clients { margin: 1px 0 4px 10px; padding-left: 8px; border-left: 2px solid color-mix(in srgb, var(--accent) 22%, var(--border)); }
.node.client { font-size: 13.5px; font-weight: 400; min-height: 26px; padding-top: 2px; padding-bottom: 2px; }
.node.client .name { color: var(--text); }
.node.client.me .name { font-weight: 700; }
.node.client.me { background: color-mix(in srgb, var(--talk) 8%, transparent); }
.node.client.selected { background: var(--select); }
.node.client.query { opacity: .6; }
.node.client .tag { background: transparent; }
.talk-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); flex: none; transition: background .08s, border-color .08s, box-shadow .08s; }
.talk-dot.avatar {
  width: 20px; height: 20px; border: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1; color: #fff;
  background: hsl(var(--hue, 220) 45% 52%);
}
.talk-dot.talking { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--talk); }
/* audio state replaces the letter */
.talk-dot.avatar { position: relative; }
.talk-dot.avatar.state .ico { width: 13px; height: 13px; color: #fff; }
.talk-dot.avatar.state .ico svg { display: block; width: 100%; height: 100%; stroke-width: 2.6; }
.talk-dot.avatar.mic-off { background: #e07a1f; }
.talk-dot.avatar.sound-off { background: var(--danger); }
.talk-dot.avatar.hw-off { background: color-mix(in srgb, var(--muted) 75%, var(--panel)); }
.talk-dot .badge-mic {
  position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; padding: 1.5px; border-radius: 50%;
  background: #e07a1f; color: #fff; box-shadow: 0 0 0 1.5px var(--panel); display: grid; place-items: center;
}
.talk-dot .badge-mic.hw { background: color-mix(in srgb, var(--muted) 75%, var(--panel)); }
.talk-dot .badge-mic svg { width: 100%; height: 100%; stroke-width: 3; }
.children { margin-left: 14px; }

.chat-pane { background: var(--bg); }
.chat-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 6px 8px 0; background: var(--panel); border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.chat-tabs button { border: none; border-radius: 8px 8px 0 0; background: transparent; padding: 7px 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.chat-tabs button.active { background: var(--bg); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }
.chat-tabs .close { opacity: .6; padding: 0 2px; }
.badge { background: var(--danger); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 14px; overflow-wrap: anywhere; }
.msg { margin: 4px 0; }
.msg .time { color: var(--muted); font-size: 11px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.msg .from { font-weight: 600; margin-right: 6px; }
.msg.me .from { color: var(--accent); }
.msg.sys { color: var(--muted); font-size: 13px; }
.msg.sys.join { color: var(--talk); }
.msg.sys.leave, .msg.sys.kick { color: var(--danger); }
.msg.err { color: var(--danger); }
.msg.welcome { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.chat-input { display: flex; gap: 6px; padding: 8px; background: var(--panel); border-top: 1px solid var(--border); }

.statusbar { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: var(--panel); border-top: 1px solid var(--border); min-height: 40px; }
.meter-wrap { width: 160px; flex: none; }
.meter { position: relative; height: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.meter > div:first-child { height: 100%; width: 0; background: color-mix(in srgb, var(--muted) 60%, transparent); transition: width .05s linear, background .1s; }
.meter > div:last-child { position: absolute; top: -1px; bottom: -1px; width: 2px; background: var(--danger); left: 0; }
#tx-state { flex: 1; }
.ptt { margin-left: auto; background: var(--accent); color: #fff; border: none; font-weight: 600; padding: 10px 18px; touch-action: none; -webkit-user-select: none; user-select: none; }
.ptt.down { background: var(--talk); }

/* ---------- Modal / menus ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(10, 12, 18, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px 18px; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 0 18px 8px; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; }
.modal-head, .modal-foot { flex: none; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px 16px; }
.modal-foot:empty { display: none; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.ctx-menu { position: fixed; z-index: 60; min-width: 200px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; }
.ctx-menu .title { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-menu button { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 7px 10px; border-radius: 6px; }
.ctx-menu button:hover { background: var(--hover); }
.ctx-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.ctx-menu .slider { padding: 4px 10px 8px; font-size: 12px; color: var(--muted); }

.toasts { position: fixed; right: 16px; bottom: 56px; display: flex; flex-direction: column; gap: 8px; z-index: 70; max-width: min(360px, calc(100% - 32px)); }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 13px; animation: slide .2s ease-out; }
.toast.error { border-left-color: var(--danger); }
.toast.poke { border-left-color: #e8a33d; }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }

.poke-text { font-size: 16px; margin: 6px 0 4px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .pane { display: none; }
  .pane.active { display: flex; }
  .tree-pane { border-right: none; }
  .mobile-tabs { display: flex; background: var(--panel); border-bottom: 1px solid var(--border); }
  .mobile-tabs button { flex: 1; border: none; border-radius: 0; background: transparent; padding: 9px; }
  .mobile-tabs button.active { box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
  .toolbar .tool { width: 32px; height: 32px; }
  #net-stats { display: none; }
  .meter-wrap { width: 90px; }
  .statusbar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .ptt { flex: 1; padding: 14px; }
}

/* identity on the login page */
.identity-row { margin-top: 10px; }
.identity-row p { margin: 0 0 6px; }
.id-import textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; }
.id-import .file-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }

/* identity selection on the login page */
.id-select-row { display: flex; align-items: flex-end; gap: 8px; }
.id-select-row label { flex: 1; margin: 0; }
.id-select-row > button { flex: none; white-space: nowrap; }
#row-identity[hidden] + button { flex: 1; }

/* identity manager */
.id-manager { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.id-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); }
.id-card.active { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.id-head { display: flex; gap: 10px; align-items: center; }
.id-head .talk-dot.avatar { width: 32px; height: 32px; font-size: 14px; }
.id-meta { min-width: 0; flex: 1; }
.id-meta input { padding: 3px 6px; }
.id-name { font-size: 14px; }
.id-uid { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--muted); background: transparent; border: none; padding: 0; }
.id-badge { margin-left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 9px; background: var(--accent); color: var(--accent-text); vertical-align: 2px; }
.id-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.id-actions button { font-size: 12px; padding: 4px 10px; }

/* confirmation layer (above other dialogs) */
.backdrop.confirm-layer { z-index: 70; background: rgba(10, 12, 18, .55); }
.card.confirm { width: 100%; max-width: 420px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; animation: pop .14s ease-out; }
.confirm-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.confirm-icon svg { width: 22px; height: 22px; }
.card.confirm.danger .confirm-icon { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.confirm-body { flex: 1; min-width: 0; }
.confirm-body h2 { margin: 2px 0 6px; font-size: 17px; overflow-wrap: anywhere; }
.confirm-body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.confirm-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.confirm-body .link { display: block; margin: -6px 0 14px; border: none; background: none; color: var(--accent); padding: 0; font-weight: 500; }
.confirm-body .link:hover { text-decoration: underline; background: none; }
button.danger-solid { background: var(--danger); color: #fff; border-color: transparent; font-weight: 600; }
button.danger-solid:hover { filter: brightness(1.08); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card.confirm { animation: none; } }

/* notification sounds dialog */
.sound-list { display: flex; flex-direction: column; }
.sound-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); }
.sound-row:last-child { border-bottom: none; }
.sound-row label.check { margin: 0; }
.sound-src { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound-btns { display: flex; gap: 4px; }
button.small { font-size: 12px; padding: 3px 8px; }

/* identity sync */
.sync-card { border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.sync-card.on { border-style: solid; }
.sync-card p { margin: 4px 0 0; }
.sync-error { color: var(--danger); }
.sync-form label { margin: 8px 0; }

.help-link { text-align: center; margin: 14px 0 0; font-size: 14px; }
.help-link a, .settings a { text-decoration: none; }
a.tool { display: inline-grid; place-items: center; color: inherit; }

/* help overlay */
.help-layer { position: fixed; inset: 0; z-index: 65; background: rgba(10, 12, 18, .5); display: grid; place-items: center; padding: 16px; }
.help-frame { position: relative; width: 100%; max-width: 1160px; height: calc(100vh - 32px); height: calc(100dvh - 32px); overflow: hidden; padding: 0; animation: pop .14s ease-out; }
.help-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.help-close { position: absolute; top: 10px; right: 12px; z-index: 1; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); }
.help-close:hover { background: var(--hover); }
@media (max-width: 640px) {
  .help-layer { padding: 0; }
  .help-frame { height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
}

/* key bindings */
.key-list { display: flex; flex-direction: column; }
.key-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); }
.key-row:last-child { border-bottom: none; }
.key-row kbd { font-size: 12px; white-space: nowrap; }
.key-row kbd.none { color: var(--muted); }
.key-btns { display: flex; gap: 4px; }
button.recording { background: var(--accent); color: var(--accent-text); border-color: transparent; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { button.recording { animation: none; } }

/* microphone check */
.mic-check { margin: 10px 0 4px; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; line-height: 1.45; }
.mic-check.ok { background: color-mix(in srgb, var(--talk) 10%, var(--panel)); border-color: color-mix(in srgb, var(--talk) 35%, var(--border)); }
.mic-check.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.mic-check.warn .muted { color: inherit; opacity: .8; }
.meter > #s-meter.on, .meter > #mic-meter.on { background: var(--talk); }

/* mini window (picture-in-picture / popup) */
body.mini-body { height: 100%; overflow: hidden; }
.mini { height: 100vh; display: flex; flex-direction: column; background: var(--panel); }
.mini-head { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 10px; border-bottom: 1px solid var(--border); }
.mini-head .tool { width: 32px; height: 32px; }
.mini-head .tool svg { width: 18px; height: 18px; }
.mini-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mini-title strong, .mini-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list { flex: 1; overflow-y: auto; padding: 6px; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; min-height: 28px; }
.mini-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row.me .name { font-weight: 700; }
.mini-row.talking { background: color-mix(in srgb, var(--talk) 10%, transparent); }
.mini-empty { padding: 8px; }
.mini-foot { border-top: 1px solid var(--border); padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.mini-msg { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-foot .ptt { width: 100%; margin-top: 2px; }
@media (pointer: coarse) and (max-width: 900px) { #btn-mini { display: none; } }
