:root {
  color-scheme: dark;
  --bg: #101416;
  --panel: #161b1e;
  --panel2: #1c2225;
  --border: #2a3235;
  --text: #eef2f0;
  --muted: #929da1;
  --accent: #8be8d1;
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
small,
.muted {
  color: var(--muted);
}
.mono {
  font:
    11px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.04em;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
  background: radial-gradient(ellipse at 60% -20%, #8be8d109, transparent 60%);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--border);
  padding: 32px 18px 20px;
  display: flex;
  flex-direction: column;
  background: #101416;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: #17362e;
  box-shadow: 0 0 32px #8be8d11c;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand small {
  font-size: 11px;
}
.nav-section {
  margin-top: 34px;
}
.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6f7c80;
  font-weight: 650;
}
.nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border-radius: 10px;
  padding: 10px 14px;
  color: #a4aeb2;
  margin-bottom: 4px;
}
.nav-item:hover {
  background: #ffffff05;
  color: var(--text);
}
.nav-item.active {
  background: #8be8d110;
  color: var(--accent);
}
.nav-item .count {
  margin-left: auto;
  font:
    10px ui-monospace,
    monospace;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ffffff07;
}
.nav-item.topic {
  padding-left: 41px;
  font-size: 12px;
  min-height: 34px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--color, var(--accent));
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.connection {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin: 18px 14px 0;
}
.connection .dot {
  width: 5px;
  height: 5px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 91px;
  border-bottom: 1px solid var(--border);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #101416b3;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--panel2);
  color: var(--text);
}
.icon-btn > .button-label {
  display: none;
}
.search-box {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
}
.search-box input {
  padding: 0;
  width: 175px;
  background: none;
  border: 0;
  box-shadow: none !important;
  font-size: 12px;
}
.key {
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: 4px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8be8d114;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.content {
  padding: 34px 38px 60px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 7px;
}
.page-heading h2 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  border-color: #697b78;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #15382e;
}
.btn.danger {
  color: #ffa6a0;
  border-color: #a6565040;
  background: #a6565010;
}
.btn.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 11px;
}
.text-btn {
  color: var(--accent);
  font-size: 12px;
  padding: 10px 0;
}
.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  min-height: 38px;
}
.chip svg {
  width: 14px;
  height: 14px;
}
.chip.selected {
  color: var(--color, var(--accent));
  background: color-mix(in srgb, var(--color, var(--accent)) 9%, transparent);
  border-color: color-mix(
    in srgb,
    var(--color, var(--accent)) 30%,
    transparent
  );
}
.feed-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 310px;
  gap: 28px;
  margin-top: 22px;
}
.feed {
  min-width: 0;
}
.feed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.swipe-hint {
  display: none;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (pointer: coarse) {
  .swipe-hint {
    display: inline;
  }
  .feed-bar .muted {
    display: none;
  }
}
.feed-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-bar select {
  width: auto;
  padding: 5px 24px 5px 8px;
  background: transparent;
  border: 0;
  font-size: 11px;
  color: var(--muted);
}
.day-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 24px 3px 12px;
}
.day-label:first-child {
  margin-top: 0;
}
.swipe-row {
  position: relative;
  margin-bottom: 10px;
  border-radius: 15px;
  overflow: hidden;
}
.swipe-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.12s;
}
.swipe-row.swiping .swipe-track {
  opacity: 1;
}
.swipe-row[data-dir="left"] .swipe-track {
  background: linear-gradient(90deg, #8be8d118, transparent 55%);
}
.swipe-row[data-dir="right"] .swipe-track {
  background: linear-gradient(270deg, #f0bc7218, transparent 55%);
}
.swipe-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.45;
  transition:
    opacity 0.12s,
    transform 0.12s;
}
.swipe-action.left {
  color: var(--accent);
}
.swipe-action.right {
  color: #f0bc72;
}
.swipe-action i {
  width: 17px;
  height: 17px;
}
.swipe-row[data-dir="left"] .swipe-action.right,
.swipe-row[data-dir="right"] .swipe-action.left {
  opacity: 0;
}
.swipe-row.armed[data-dir="left"] .swipe-action.left,
.swipe-row.armed[data-dir="right"] .swipe-action.right {
  opacity: 1;
  transform: scale(1.06);
}
.swipe-row.swiping .notification {
  transition: none;
  cursor: grabbing;
}
.notification {
  position: relative;
  display: flex;
  width: 100%;
  gap: 14px;
  padding: 19px 18px;
  touch-action: pan-y;
  border: 1px solid #2b3437;
  border-radius: 15px;
  background: linear-gradient(125deg, #1b2225, #171d20);
  text-align: left;
  transition:
    border-color 0.15s,
    transform 0.15s;
  cursor: pointer;
}
.notification:hover,
.notification.selected {
  border-color: color-mix(in srgb, var(--color) 45%, transparent);
  background: linear-gradient(125deg, #20282b, #1a2224);
}
.notification.read {
  background: #151a1c;
  border-color: #242c2f;
}
.notification.read h3 {
  color: #bcc5c7;
  font-weight: 500;
}
.notification.read .icon-well {
  opacity: 0.65;
}
.icon-well {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color, var(--accent)) 9%, transparent);
  color: var(--color, var(--accent));
  border: 1px solid
    color-mix(in srgb, var(--color, var(--accent)) 20%, transparent);
  font-size: 21px;
}
.notification-main {
  flex: 1;
  min-width: 0;
}
.notification-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 16px;
}
.source {
  color: var(--color);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.time {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.notification h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.1px;
  padding-right: 12px;
}
.notification p {
  font-size: 12px;
  color: #9aa6aa;
  line-height: 1.65;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notification .ack-mark {
  position: absolute;
  right: 13px;
  top: 15px;
  display: inline-flex;
  color: var(--accent);
  opacity: 0.5;
}
.notification .ack-mark i {
  width: 13px;
  height: 13px;
}
.notification.acked {
  border-color: color-mix(in srgb, var(--accent) 22%, #242c2f);
}
.notification .unread-dot {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 5px;
  height: 5px;
}
.priority {
  font-size: 9px;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 5px;
  background: #efa77912;
  color: #edb393;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.priority svg {
  width: 10px;
  height: 10px;
}
.priority.critical {
  color: #ffaaa0;
  background: #ff827517;
}
.topic-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #6e7e83;
  margin-top: 9px;
}
.rail {
  min-width: 0;
}
.rail-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #151b1db3;
  padding: 22px;
  margin-bottom: 18px;
}
.rail-card h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 8px;
}
.rail-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.rail-heading svg {
  color: var(--muted);
  width: 16px;
}
.big-number {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.3;
  margin-bottom: 2px;
}
.activity-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
}
.activity-line span:last-child {
  margin-left: auto;
  color: var(--text);
  font:
    11px ui-monospace,
    monospace;
}
.rail-foot {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.quiet-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #b3a4df;
  background: #b3a4df10;
  margin-bottom: 14px;
}
.detail-panel {
  position: sticky;
  top: 112px;
}
.detail-panel h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-top: 16px;
}
.detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b3bfc2;
  font-size: 13px;
  line-height: 1.8;
  margin: 16px 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.detail-actions .btn {
  flex: 1;
}
.detail-meta {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  font-size: 11px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.detail-meta dt {
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.empty {
  padding: 65px 24px;
  text-align: center;
  border: 1px dashed #344044;
  border-radius: 18px;
}
.empty .icon-well {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.empty h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  margin: 10px auto 22px;
  line-height: 1.8;
}
.empty.compact {
  padding: 30px;
}
.empty.compact p {
  margin-bottom: 0;
}
.settings-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: auto;
}
.settings-tab {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.settings-tab.active {
  color: var(--accent);
  border-color: var(--accent);
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.settings-header h3 {
  font-size: 16px;
  font-weight: 500;
}
.settings-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}
.entity {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
}
.entity-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.entity-top h3 {
  font-size: 14px;
  font-weight: 550;
}
.entity-top p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.entity p.description {
  font-size: 12px;
  color: var(--muted);
  min-height: 36px;
  line-height: 1.7;
}
.entity-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  display: inline-block;
  font-size: 9px;
  border-radius: 5px;
  background: #f0bc7210;
  color: #f0bc72;
  padding: 3px 7px;
  margin-top: 8px;
}
.push-panel {
  border-color: color-mix(
    in srgb,
    var(--tone, var(--border)) 40%,
    var(--border)
  );
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--tone, transparent) 7%, var(--panel)),
    var(--panel)
  );
}
.push-panel[data-state="on"] {
  --tone: #8be8d1;
}
.push-panel[data-state="blocked"] {
  --tone: #f3948f;
}
.push-panel[data-state="pending"] {
  --tone: #f0bc72;
}
.push-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.push-head .icon-well {
  --color: var(--tone, var(--muted));
  width: 44px;
  height: 44px;
}
.push-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone, var(--muted));
  margin-bottom: 7px;
}
.push-state i {
  width: 12px;
  height: 12px;
}
.push-head h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.push-head p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 58ch;
}
.push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0 59px;
}
.push-actions:empty {
  display: none;
}
.push-foot {
  margin: 16px 0 0 59px;
  line-height: 1.7;
}
.push-foot .text-btn {
  font-size: 12px;
}
.token-row.current {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: #8be8d106;
}
.token-row .badge {
  margin: 0 0 0 8px;
  background: #8be8d112;
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  font-size: 11px;
}
.field label {
  color: #bdc6c8;
  font-size: 11px;
}
input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #111719;
  border: 1px solid #344044;
  border-radius: 9px;
  padding: 11px 12px;
  outline: none;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #8be8d10a;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
input[type="color"] {
  padding: 4px;
  height: 43px;
  max-width: 80px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-field input[type="text"] {
  font-family: monospace;
}
.swatches {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color);
  border: 2px solid #ffffff15;
}
.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.icon-option {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--muted);
}
.icon-option.selected {
  background: #8be8d118;
  color: var(--accent);
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.form-error {
  color: #ffa6a0;
  font-size: 12px;
  min-height: 18px;
  margin-top: 12px;
}
.settings-panel {
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 16px;
}
.settings-panel + .settings-panel {
  margin-top: 20px;
}
.settings-panel h3 {
  font-size: 15px;
  margin-bottom: 18px;
}
.token-row {
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.token-row > div {
  flex: 1;
  min-width: 0;
}
.token-row strong {
  font-size: 12px;
}
.token-row small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.token-value {
  padding: 16px;
  border: 1px solid #8be8d140;
  background: #8be8d108;
  border-radius: 10px;
  font:
    12px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  user-select: all;
  margin: 18px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101416;
  color: #b2c8c0;
  font:
    11px/1.8 ui-monospace,
    monospace;
  max-height: 300px;
  overflow: auto;
}
details {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
summary {
  cursor: pointer;
}
.section-divider {
  margin: 25px 0 16px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: #181f22;
  border: 1px solid #3c474b;
  border-radius: 20px;
  padding: 28px;
  width: 540px;
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #060c10b8;
  backdrop-filter: blur(6px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.modal-heading h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
.modal-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.modal-heading .icon-btn {
  margin: -7px -8px 0 0;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 10%, #8be8d110, transparent 60%);
}
.auth-card {
  width: 100%;
  max-width: 410px;
}
.auth-card .brand {
  padding: 0;
  margin-bottom: 44px;
}
.auth-card h2 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.auth-card > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-card .field {
  margin: 18px 0;
}
.auth-card .btn {
  width: 100%;
  margin-top: 12px;
}
.auth-footer {
  font-size: 11px !important;
  text-align: center;
  margin-top: 28px;
}
.mobile-only {
  display: none;
}
.loading {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  background: #273b34;
  border: 1px solid #8be8d145;
  color: #dcf5ec;
  border-radius: 12px;
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.load-more {
  display: block;
  margin: 22px auto;
}
.mobile-brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.filter-row select {
  width: auto;
  max-width: 180px;
  font-size: 11px;
  padding: 7px 10px;
}
@media (min-width: 1550px) {
  .feed-layout {
    grid-template-columns: minmax(400px, 760px) 330px;
  }
  .content {
    padding-left: 55px;
    padding-right: 55px;
  }
  .topbar {
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feed-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    display: none;
  }
  .rail.has-detail {
    display: block;
    position: fixed;
    z-index: 12;
    right: 0;
    top: 0;
    width: 390px;
    max-width: 100vw;
    height: 100dvh;
    overflow: auto;
    background: #151b1ef5;
    box-shadow: -30px 0 100px #0008;
    padding: 22px;
  }
  .rail.has-detail .detail-panel {
    position: static;
    border: 0;
    padding: 8px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 20;
    width: 270px;
    box-shadow: 40px 0 100px #000b;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-only {
    display: flex;
  }
  .topbar {
    height: 73px;
    padding: 0 18px;
    padding-top: env(safe-area-inset-top);
    gap: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .toolbar {
    gap: 4px;
  }
  .search-box {
    border: 0;
    padding: 7px;
  }
  .search-box input {
    width: 105px;
  }
  .key {
    display: none;
  }
  .avatar {
    display: none;
  }
  .content {
    padding: 25px 17px calc(30px + env(safe-area-inset-bottom));
  }
  .page-heading {
    gap: 10px;
    margin-bottom: 23px;
  }
  .page-heading h2 {
    font-size: 27px;
  }
  .page-heading .btn {
    padding: 9px 11px;
    font-size: 11px;
  }
  .page-heading .btn span {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
  }
  .chips {
    margin-right: -17px;
    padding-right: 17px;
  }
  .chip {
    padding: 8px 13px;
  }
  .feed-layout {
    margin-top: 18px;
  }
  .notification {
    padding: 16px 14px;
    gap: 11px;
  }
  .push-head .icon-well {
    display: none;
  }
  .push-actions,
  .push-foot {
    margin-left: 0;
  }
  .push-actions .btn {
    flex: 1;
  }
  .notification .icon-well {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }
  .notification h3 {
    font-size: 13px;
  }
  .notification p {
    font-size: 12px;
  }
  .source {
    font-size: 9px;
    max-width: 135px;
  }
  .notification-meta {
    gap: 6px;
  }
  .priority {
    font-size: 8px;
  }
  .notification .unread-dot {
    right: 12px;
  }
  .notification .time {
    font-size: 9px;
  }
  .rail.has-detail {
    width: 100%;
    padding: 20px 14px;
    top: 70px;
    height: calc(100dvh - 70px);
    border-top: 1px solid var(--border);
    border-radius: 22px 22px 0 0;
  }
  .settings-tabs {
    margin-left: -17px;
    margin-right: -17px;
    padding: 0 12px;
  }
  .settings-tab {
    padding: 12px;
  }
  .settings-panel {
    padding: 19px;
  }
  .entity-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    gap: 14px;
  }
  .field.full-mobile {
    grid-column: 1/-1;
  }
  dialog {
    padding: 22px;
    border-radius: 18px;
    max-height: 88dvh;
  }
  .form-actions .btn {
    flex: 1;
  }
  .settings-header {
    align-items: flex-start;
  }
  .settings-header p {
    max-width: 240px;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .quiet-card {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
