:root {
  --rail: 72px;
  --sidebar: 260px;
  --d-bg: #313338;
  --d-side: #2b2d31;
  --d-rail: #1e1f22;
  --d-elev: #2b2d31;
  --d-input: #383a40;
  --d-text: #f2f3f5;
  --d-muted: #949ba4;
  --d-hover: #35373c;
  --d-active: #404249;
  --d-green: #23a559;
  --d-green-h: #1a7f45;
  --d-blurple: #5865f2;
  --d-red: #da373c;
  --d-header: #313338;
  --d-card: #2b2d31;
  --d-radius: 12px;
  --d-radius-lg: 16px;
}

[data-theme="dark"] {
  --bg: var(--d-bg);
  --bg-elevated: var(--d-side);
  --surface: var(--d-card);
  --surface2: var(--d-input);
  --line: #393b40;
  --line-soft: #2e3035;
  --text: var(--d-text);
  --muted: var(--d-muted);
  --accent: var(--d-blurple);
  --accent-2: #7289da;
  --accent-dim: rgba(88, 101, 242, 0.15);
  --own: #2b2d31;
  --ok: var(--d-green);
  --danger: var(--d-red);
  --radius: 8px;
  --radius-sm: 4px;
}

[data-theme="dim"] {
  --bg: #1e2024;
  --bg-elevated: #26282c;
  --surface: #2c2e33;
  --surface2: #35373c;
  --line: #3f4147;
  --line-soft: #35373c;
  --text: #ffffff;
  --muted: #c5c6c7;
  --accent: #5865f2;
  --ok: #23a559;
}

[data-theme="light"] {
  --bg: #f2f4f5;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface2: #e3e5e8;
  --line: #d3d5d8;
  --line-soft: #e3e5e8;
  --text: #191b1d;
  --muted: #606266;
  --accent: #5865f2;
  --ok: #23a559;
  --d-rail: #e7e8ea;
  --d-side: #f2f4f5;
  --d-bg: #ffffff;
  --d-input: #e3e5e8;
  --d-hover: #e8e9eb;
  --d-active: #dfe1e5;
}

body { background: var(--d-bg); }

.site-header {
  background: var(--d-rail) !important;
  border-bottom-color: transparent !important;
  height: 48px !important;
}

.app {
  display: grid;
  grid-template-columns: var(--rail) var(--sidebar) 1fr;
  height: calc(100vh - 48px);
  overflow: hidden;
  background: var(--d-bg);
}

.rail {
  background: var(--d-rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  overflow-y: auto;
  border-right: none;
}

.rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--d-side);
  color: var(--d-text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, box-shadow 0.15s;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.rail-btn:hover { background: var(--d-blurple); color: #fff; transform: translateY(-1px); }
.rail-btn.active { background: var(--d-blurple); color: #fff; box-shadow: 0 0 0 2px rgba(0,162,255,.35); }
.rail-btn.home { background: var(--d-blurple); color: #fff; border-radius: 12px; }
.rail-btn.add {
  background: var(--d-side);
  color: var(--d-green);
  font-size: 24px;
  font-weight: 400;
  border-radius: 12px;
}
.rail-btn.add:hover { background: var(--d-green); color: #fff; }

.side {
  background: var(--d-side);
  border-right: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.side-head {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: 15px;
  color: var(--d-text);
}
.side-body { flex: 1; overflow-y: auto; padding: 12px 8px; }

.cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--d-muted);
  margin: 16px 4px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  user-select: none;
}
.cat:hover { color: var(--d-text); }
.cat-actions { display: flex; gap: 2px; }
.cat-actions button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0;
}
.cat:hover .cat-actions button { opacity: 1; }
.cat-actions button:hover { color: var(--d-text); }

.ch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--d-muted);
  font-size: 15px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.ch:hover { background: var(--d-hover); color: var(--d-text); }
.ch.active { background: var(--d-active); color: var(--d-text); }
.ch .hash { color: var(--d-muted); font-weight: 600; width: 18px; text-align: center; }
.ch .ch-actions {
  margin-left: auto;
  display: none;
  gap: 2px;
}
.ch:hover .ch-actions { display: flex; }
.ch-actions button {
  border: none;
  background: transparent;
  color: var(--d-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
}
.ch-actions button:hover { color: var(--d-text); }
.ch.dragging { opacity: 0.5; }
.ch.drag-over { outline: 1px dashed var(--d-blurple); }

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--d-bg);
}
.main-head {
  height: 48px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--d-text);
}
.main-head .sub { font-weight: 400; color: var(--d-muted); font-size: 13px; margin-left: 8px; }

.btn-green {
  background: var(--d-green) !important;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}
.btn-green:hover { background: var(--d-green-h) !important; }

.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.friend-row:hover { background: var(--d-hover); }
.friend-row .acts { margin-left: auto; display: flex; gap: 8px; }
.friend-row .acts button {
  border: none;
  background: var(--d-input);
  color: var(--d-text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 13px;
}
.friend-row .acts button.green { background: var(--d-green); color: #fff; }
.friend-row .acts button.red:hover { background: var(--d-red); color: #fff; }

.friend-add-bar {
  display: flex;
  gap: 8px;
  padding: 0 4px 12px;
}
.friend-add-bar input {
  flex: 1;
  background: var(--d-input);
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--d-text);
  font-size: 14px;
  outline: none;
}
.friend-add-bar input:focus { outline: 1px solid var(--d-blurple); }

.composer {
  padding: 0 16px 24px !important;
  background: transparent !important;
  border-top: none !important;
}
.composer .textarea, #msg {
  background: var(--d-input) !important;
  border: none !important;
  border-radius: 8px !important;
  color: var(--d-text);
}
#go {
  background: var(--d-blurple) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.bubble {
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  max-width: 100% !important;
  animation: none !important;
}
.bubble.own { align-self: stretch !important; background: transparent !important; }
.bubble.other { align-self: stretch !important; }
.bubble-meta { color: var(--d-muted); }
.bubble-body { color: var(--d-text); }

.modal {
  background: #313338 !important;
  border: none !important;
  border-radius: 8px !important;
}
[data-theme="light"] .modal { background: #fff !important; }

.type-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.type-pick button {
  border: 1px solid var(--line);
  background: var(--d-input);
  color: var(--d-text);
  border-radius: 8px;
  padding: 16px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.type-pick button.selected {
  border-color: var(--d-blurple);
  box-shadow: 0 0 0 2px rgba(88,101,242,0.35);
}

.ctx-menu {
  position: fixed;
  z-index: 500;
  background: #111214;
  border-radius: 4px;
  padding: 6px 8px;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  display: none;
}
.ctx-menu.open { display: block; }
.ctx-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #dbdee1;
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
}
.ctx-menu button:hover { background: var(--d-blurple); color: #fff; }
.ctx-menu button.danger:hover { background: var(--d-red); }

@media (max-width: 900px) {
  .app { grid-template-columns: var(--rail) 1fr; }
  .side { display: none; }
  .side.open {
    display: flex;
    position: absolute;
    left: var(--rail);
    top: 48px;
    bottom: 0;
    width: min(280px, 80vw);
    z-index: 15;
  }
}

.app {
  grid-template-columns: var(--rail) var(--sidebar) 1fr minmax(0, 240px) !important;
}
@media (max-width: 1100px) {
  .app { grid-template-columns: var(--rail) var(--sidebar) 1fr !important; }
  .members-pane { display: none !important; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: var(--rail) 1fr !important; }
}

.members-pane {
  background: var(--d-side);
  border-left: 1px solid transparent;
  overflow-y: auto;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.members-pane h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--d-muted);
  padding: 0 8px 8px;
  font-weight: 700;
}
.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: default;
}
.member-item:hover { background: var(--d-hover); }
.member-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--d-input);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.member-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--d-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-item:hover .member-name { color: var(--d-text); }
.member-role {
  font-size: 10px;
  color: var(--d-muted);
  opacity: 0.8;
}

.user-bar {
  margin-top: auto;
  background: #232428;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}
[data-theme="light"] .user-bar { background: #ebebeb; }
.user-bar .u-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--d-input);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background-size: cover;
  flex-shrink: 0;
}
.user-bar .u-meta { flex: 1; min-width: 0; }
.user-bar .u-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--d-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-bar .u-sub {
  font-size: 11px;
  color: var(--d-muted);
}
.user-bar .u-acts {
  display: flex;
  gap: 2px;
}
.user-bar .u-acts a,
.user-bar .u-acts button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--d-muted);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.user-bar .u-acts a:hover,
.user-bar .u-acts button:hover {
  background: var(--d-hover);
  color: var(--d-text);
}

.side {
  display: flex;
  flex-direction: column;
}
.side-body { flex: 1; overflow-y: auto; }

.side-head {
  cursor: pointer;
}
.side-head:hover { background: rgba(255,255,255,0.03); }

.srv-banner {
  height: 120px;
  background: linear-gradient(135deg, #1a1b1e, #2b2d31);
  background-size: cover;
  background-position: center;
  position: relative;
  display: none;
}
.srv-banner.show { display: block; }
.srv-banner .srv-icon-lg {
  position: absolute;
  left: 16px;
  bottom: -24px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 4px solid var(--d-side);
  background: var(--d-input);
  background-size: cover;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
}
.srv-info {
  padding: 32px 16px 12px;
  display: none;
}
.srv-info.show { display: block; }
.srv-info h2 { font-size: 18px; margin-bottom: 4px; }
.srv-info p { font-size: 13px; color: var(--d-muted); line-height: 1.4; }

.msg-row {
  display: flex;
  gap: 12px;
  padding: 2px 16px 2px 16px;
  margin-top: 12px;
}
.msg-row:hover { background: rgba(255,255,255,0.02); }
.msg-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--d-input);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background-size: cover;
}
.msg-col { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-author { font-weight: 600; font-size: 15px; color: var(--d-text); }
.msg-time { font-size: 11px; color: var(--d-muted); }
.msg-text { font-size: 15px; line-height: 1.4; color: #dbdee1; white-space: pre-wrap; word-break: break-word; }
[data-theme="light"] .msg-text { color: #2e3338; }

.date-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 16px 8px;
  color: var(--d-muted);
  font-size: 11px;
  font-weight: 600;
}
.date-sep::before, .date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.composer-wrap {
  padding: 0 16px 24px;
}
.composer-inner {
  background: var(--d-input);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 4px;
  gap: 4px;
}
.composer-inner textarea {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 8px !important;
  color: var(--d-text);
  resize: none;
  font: inherit;
  font-size: 15px;
}
.composer-inner button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--d-muted);
  cursor: pointer;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.composer-inner button:hover { color: var(--d-text); background: rgba(255,255,255,0.05); }
.composer-inner #go {
  background: transparent !important;
  color: var(--d-muted) !important;
}
.composer-inner #go:hover { color: var(--d-text) !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 2px 16px;
  border: none;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-primary {
  background: #5865f2 !important;
  color: #fff !important;
}
.btn-primary:hover { background: #4752c4 !important; }
.btn-primary:active { background: #3c45a5 !important; }
.btn-secondary {
  background: #4e5058 !important;
  color: #fff !important;
}
.btn-secondary:hover { background: #6d6f78 !important; }
.btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #4e5058 !important;
}
.btn-ghost:hover { background: #4e5058 !important; }
.btn-danger {
  background: #da373c !important;
  color: #fff !important;
}
.btn-danger:hover { background: #a12828 !important; }
.btn-green, .btn-success {
  background: #248046 !important;
  color: #fff !important;
}
.btn-green:hover { background: #1a6334 !important; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.input, input.input, textarea.input, select.input {
  background: #1e1f22 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #dbdee1 !important;
  padding: 10px !important;
  font-size: 16px;
}
.input:focus, input.input:focus {
  outline: 2px solid #00a8fc !important;
  outline-offset: 0;
}

.rail-btn {
  border-radius: 50% !important;
  transition: border-radius .15s ease, background .15s !important;
  box-shadow: none !important;
}
.rail-btn:hover,
.rail-btn.active,
.rail-btn.home {
  border-radius: 16px !important;
  background: #5865f2 !important;
  color: #fff !important;
  transform: none !important;
}
.rail-btn.add {
  border-radius: 50% !important;
  color: #23a559 !important;
  background: #2b2d31 !important;
}
.rail-btn.add:hover {
  border-radius: 16px !important;
  background: #23a559 !important;
  color: #fff !important;
}

.modal {
  background: #313338 !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.24) !important;
  padding: 20px !important;
}
.modal h2 {
  font-size: 20px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 8px;
}

.pf-card {
  padding: 0 !important;
  overflow: hidden !important;
  width: min(340px, calc(100vw - 24px)) !important;
  background: #232428 !important;
  border-radius: 8px !important;
}
.pf-banner {
  height: 60px;
  background: #5865f2;
  background-size: cover;
  background-position: center;
}
.pf-banner.has-img {
  height: 120px;
}
.pf-body {
  padding: 0 16px 16px;
  position: relative;
}
.pf-av-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-top: -46px;
  margin-bottom: 8px;
}
.pf-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #232428;
  background: #5865f2;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  box-sizing: content-box;
}
.pf-status {
  position: absolute !important;
  right: 4px;
  bottom: 4px;
  width: 16px !important;
  height: 16px !important;
  border: 6px solid #232428 !important;
  box-sizing: content-box;
  border-radius: 50%;
}
.pf-card-inner {
  background: #111214;
  border-radius: 8px;
  padding: 12px;
  margin-top: 4px;
}
.pf-name {
  font-size: 20px;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.2;
}
.pf-user {
  font-size: 14px;
  color: #dbdee1;
  margin-top: 2px;
}
.pf-pr {
  font-size: 12px;
  color: #b5bac1;
  margin-top: 4px;
}
.pf-divider {
  height: 1px;
  background: #2e2f34;
  margin: 12px 0;
}
.pf-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #b5bac1;
  margin-bottom: 6px;
}
.pf-bio {
  font-size: 14px;
  color: #dbdee1;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.pf-id {
  display: none;
  margin-top: 10px;
  font-size: 11px;
  color: #6d6f78;
  font-family: ui-monospace, monospace;
}
.pf-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pf-actions .btn-primary {
  flex: 1;
  height: 32px;
  font-size: 14px;
  border-radius: 3px;
}
.pf-actions .btn-secondary {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 3px;
}

.composer-inner {
  background: #383a40 !important;
  border-radius: 8px !important;
  border: none !important;
}
.composer-inner #go {
  color: #b5bac1 !important;
}
.composer-inner #go:hover {
  color: #fff !important;
}

.main-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.main-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.main-head-text #main-title {
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-head-text .sub {
  font-size: 12px;
  color: var(--d-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mob-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--d-text);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  place-items: center;
}
.mob-btn:hover { background: var(--d-hover); }
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 40;
}
.mob-overlay.on { display: block; }

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
.app {
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-width: 100vw;
}
#feed {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.composer {
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}
.rail {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 1100px) {
  .app { grid-template-columns: var(--rail) var(--sidebar) 1fr !important; }
  .members-pane { display: none !important; }
  .members-pane.mob-open {
    display: flex !important;
    position: fixed;
    top: 48px;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    z-index: 50;
    box-shadow: -8px 0 24px rgba(0,0,0,.4);
  }
  #mob-members-toggle { display: grid; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: var(--rail) 1fr !important; }
  .side { display: none; }
  .side.open {
    display: flex !important;
    position: fixed;
    left: var(--rail);
    top: 48px;
    bottom: 0;
    width: min(280px, calc(100vw - var(--rail)));
    z-index: 50;
    box-shadow: 8px 0 24px rgba(0,0,0,.4);
  }
  #mob-side-toggle { display: grid; }
  :root { --rail: 56px; }
  .rail { width: 56px; min-width: 56px; }
  .rail-btn { width: 42px; height: 42px; font-size: 13px; }
  .composer-inner textarea { font-size: 16px !important; }
  .modal, .pf-card {
    width: min(420px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
}
@media (max-width: 600px) {
  .site-header { height: 44px !important; }
  .app { height: calc(100dvh - 44px); }
  .side.open, .members-pane.mob-open { top: 44px; }
  :root { --rail: 52px; }
  .rail { width: 52px; min-width: 52px; }
  .rail-btn { width: 40px; height: 40px; }
  .mob-btn { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  :root { --rail: 48px; }
  .rail { width: 48px; min-width: 48px; }
  .rail-btn { width: 36px; height: 36px; }
  .main-head-text .sub { display: none; }
}
@media (min-width: 1400px) {
  .app { grid-template-columns: var(--rail) 280px 1fr minmax(0, 280px) !important; }
  .members-pane { display: flex !important; }
}
@media (pointer: coarse) {
  .ch, .status-choice, .rail-btn, .mob-btn { min-height: 44px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { height: 36px !important; }
  .app { height: calc(100dvh - 36px); }
  .side.open, .members-pane.mob-open { top: 36px; }
}
