:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f4f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #17202a;
  --muted: #5f6b76;
  --border: #dce2e7;
  --surface: #ffffff;
  --accent: #176b58;
  --accent-dark: #105443;
  --danger: #a33a36;
  --danger-dark: #842c29;
  --focus: #216ce3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(31, 126, 99, 0.1), transparent 46rem),
    #f4f6f8;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

[tabindex="-1"]:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.login-screen {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100% - 32px, 480px);
  margin: 0 auto;
  padding: 56px 0 28px;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.topbar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  padding: 22px 14px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-brand {
  padding: 0 8px;
}

.nav-list,
.nav-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.nav-link,
.nav-sublink {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-radius: 9px;
  color: #30444d;
  text-decoration: none;
}

.nav-link {
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-sublink:hover {
  background: #eef2f3;
}

.nav-link[aria-current="page"],
.nav-sublink[aria-current="page"] {
  background: #e3efea;
  color: var(--accent-dark);
}

.nav-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8edef;
  color: #48565e;
  font-size: 0.74rem;
  font-weight: 730;
  text-align: center;
}

.nav-sublist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 4px 0 8px;
}

.nav-sublink {
  min-height: 34px;
  padding: 6px 10px 6px 18px;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-sublink-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7b2b8;
}

.status-dot[data-state="connected"] {
  background: #2f9b6c;
}

.status-dot[data-state="starting"],
.status-dot[data-state="awaiting_qr"],
.status-dot[data-state="awaiting_confirmation"],
.status-dot[data-state="reconnecting"],
.status-dot[data-state="disconnecting"] {
  background: #d39b1c;
}

.status-dot[data-state="error"],
.status-dot[data-state="stale"] {
  background: #c8463f;
}

.sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid var(--border);
}

.sidebar-footer-label {
  color: var(--muted);
  font-size: 0.74rem;
}

.sidebar-footer .button {
  justify-self: start;
  margin-top: 4px;
}

.sidebar-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body:not(.is-admin) .admin-only {
  display: none !important;
}

.role-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid #b9cfe8;
  border-radius: 999px;
  background: #eef5fc;
  color: #24507f;
  font-size: 0.72rem;
  font-weight: 730;
  line-height: 1.4;
}

.role-badge[data-user-role="user"] {
  border-color: #d5dce0;
  background: #f4f6f7;
  color: #48565e;
}

.account-email {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
  padding: 40px clamp(20px, 4vw, 48px) 64px;
}

.page,
.main > .history-card {
  display: grid;
  width: 100%;
  max-width: 1040px;
  gap: 20px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.page-header h1 {
  margin-bottom: 6px;
}

.page-lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.back-link {
  justify-self: start;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link::before {
  content: "\2190\00a0";
}

.back-link:hover {
  text-decoration: underline;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: clamp(22px, 4vw, 34px);
}

.empty-state p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
}

.accounts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.accounts-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 730;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.accounts-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f3;
  color: #394a52;
  vertical-align: middle;
  white-space: nowrap;
}

.accounts-table td:first-child {
  width: 34%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.accounts-table tbody tr:last-child td {
  border-bottom: 0;
}

.accounts-table td[data-label="Owner"] {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 769px) {
  .accounts-table td[data-label="Owner"] {
    min-width: 180px;
    max-width: 240px;
  }
}

.accounts-table tbody tr:hover {
  background: #fafcfc;
}

.table-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.table-name:hover {
  text-decoration: underline;
}

.table-action {
  text-align: right;
}

.dialog {
  width: min(100% - 32px, 520px);
  max-height: calc(100vh - 48px);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(20, 32, 42, 0.22);
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(16, 26, 33, 0.42);
}

.dialog h2 {
  margin: 0 0 2px;
}

.dialog-copy {
  margin: 0;
  color: #485760;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.delete-name {
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.connection-form .dialog-actions .button {
  margin-top: 0;
}

.surface {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(29, 43, 54, 0.055);
}

.login-card {
  width: 100%;
  padding: clamp(25px, 5vw, 42px);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.intro-copy {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  margin-top: 5px;
  font-size: 0.88rem;
  font-weight: 680;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c8d0d7;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.login-form input:focus-visible {
  border-color: var(--focus);
}

.button {
  display: inline-flex;
  text-decoration: none;
  white-space: nowrap;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.login-form .button-primary {
  margin-top: 12px;
}

.button-secondary {
  border-color: #bdc9cf;
  background: #fff;
  color: #30444d;
}

.button-secondary:hover:not(:disabled),
.button-quiet:hover:not(:disabled) {
  background: #f0f4f5;
}

.button-danger {
  border-color: #d6aaa7;
  background: #fff;
  color: var(--danger);
}

.button-danger:hover:not(:disabled) {
  border-color: var(--danger);
  background: #fff7f6;
  color: var(--danger-dark);
}

.button-quiet {
  min-height: 36px;
  padding: 7px 11px;
  border-color: #d6dde2;
  background: rgba(255, 255, 255, 0.7);
  color: #394a52;
  font-size: 0.84rem;
}

.panel,
.history-card {
  padding: clamp(20px, 4vw, 30px);
}

.login-material {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.account-detail {
  display: grid;
  gap: 18px;
}

.account-header {
  align-items: flex-end;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.title-row h1 {
  margin: 0;
  overflow-wrap: anywhere;
}

.connection-title {
  min-width: 0;
  flex: 1 1 360px;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 0 0 auto;
  margin-bottom: -1px;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.panel h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.panel > .field-help {
  margin-bottom: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 730;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.callback-status {
  margin: 0 0 16px;
  color: #30444d;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.help-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.help-block h3 {
  font-size: 0.95rem;
}

.help-block p {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.help-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.settings-panel {
  display: grid;
  gap: 18px;
}

.danger-zone {
  border-color: #e8c8c5;
}

.danger-zone h2 {
  color: var(--danger-dark);
}

.danger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.danger-row h3 {
  margin-bottom: 4px;
}

.danger-help {
  margin-top: 6px;
  color: #7f302b;
}

.button-danger-solid {
  background: var(--danger);
  color: #fff;
}

.button-danger-solid:hover:not(:disabled) {
  background: var(--danger-dark);
}

.connection-form {
  display: grid;
  gap: 10px;
}

.connection-form label {
  display: grid;
  gap: 6px;
  color: #394a52;
  font-size: 0.88rem;
  font-weight: 680;
}

.connection-form input,
.connection-form select,
#history-connection-filter,
.filter-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c8d0d7;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.connection-form input:focus-visible,
.connection-form select:focus-visible,
#history-connection-filter:focus-visible,
.filter-select:focus-visible {
  border-color: var(--focus);
}

.connection-form input:disabled,
.connection-form select:disabled,
#history-connection-filter:disabled {
  border-color: #d5dce0;
  background: #eef1f3;
  color: #68757c;
  cursor: not-allowed;
  opacity: 1;
}

.connection-form h2 {
  margin: 12px 0 4px;
  font-size: 1.08rem;
}

.connection-form .button {
  justify-self: start;
  margin-top: 6px;
}

.proxy-fields {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e1e6e9;
  border-radius: 11px;
  background: #fafcfc;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.name-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 14px;
}

.proxy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.history-filter-label {
  display: block;
  margin: 0 0 7px;
  color: #394a52;
  font-size: 0.88rem;
  font-weight: 680;
}

.history-toolbar {
  max-width: 420px;
  margin-bottom: 14px;
}

.history-owner-field {
  margin-bottom: 12px;
}

.connection-owner {
  margin: -4px 0 6px;
  color: #485760;
  font-size: 0.88rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.user-line-list,
.dialog-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-line-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f3;
  overflow-wrap: anywhere;
}

.user-line-list li:last-child {
  border-bottom: 0;
}

.dialog-list li {
  padding: 8px 12px;
  border: 1px solid #ead9a7;
  border-radius: 9px;
  background: #fff8df;
  color: #5d4b27;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.generated-note {
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff8df;
  color: #5d4b27;
}

.load-more {
  justify-self: center;
  margin-top: 16px;
}

.history-card {
  display: grid;
}

.notification-source {
  padding: 4px 7px;
  border-radius: 6px;
  background: #f0f2f4;
  color: #4a5961;
  font-size: 0.72rem;
  font-weight: 720;
}

.state-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 11px;
  border: 1px solid #d5dce0;
  border-radius: 999px;
  background: #f4f6f7;
  color: #48565e;
  font-size: 0.78rem;
  font-weight: 730;
  line-height: 1.2;
}

.state-pill[data-state="starting"],
.state-pill[data-state="awaiting_qr"],
.state-pill[data-state="awaiting_confirmation"],
.state-pill[data-state="reconnecting"],
.state-pill[data-state="disconnecting"] {
  border-color: #ead9a7;
  background: #fff8df;
  color: #71550d;
}

.state-pill[data-state="connected"] {
  border-color: #b6d8cb;
  background: #e9f6ef;
  color: #216444;
}

.state-pill[data-state="stale"],
.state-pill[data-state="error"] {
  border-color: #e4b7b3;
  background: #fff0ee;
  color: #8e332f;
}

.connection-detail {
  max-width: 650px;
  margin: 10px 0 0;
  color: #485760;
  line-height: 1.6;
}

.connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-message {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #cbded7;
  border-radius: 9px;
  background: #f1f8f5;
  color: #285642;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.error-message {
  border-color: #e5c2bf;
  background: #fff4f2;
  color: #7f302b;
}

.pending-note {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border-left: 3px solid #c18a27;
  border-radius: 4px 9px 9px 4px;
  background: #fff8e7;
  color: #5d4b27;
  font-size: 0.88rem;
  line-height: 1.5;
}

.login-material-message {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.qr-panel {
  width: min(100%, 320px);
  margin: 21px auto 0;
  text-align: center;
}

.qr-frame {
  display: grid;
  width: min(100%, 272px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #dce2e7;
  border-radius: 14px;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-placeholder {
  max-width: 180px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.expiry-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.confirmation-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e7dfc8;
  border-radius: 12px;
  background: #fffdf6;
}

.confirmation-instructions {
  margin-bottom: 18px;
  color: #4d5558;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirmation-code-wrap {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 9px;
  background: #f2f2ee;
}

.confirmation-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.history-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #e1e6e9;
  border-radius: 12px;
  background: #fcfdfd;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  margin-bottom: 8px;
}

.notification-app {
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf4f1;
  color: #27604d;
  font-size: 0.72rem;
  font-weight: 720;
}

.notification-sender {
  color: #33454d;
  font-size: 0.84rem;
}

.notification-time {
  margin-left: auto;
  color: #707c82;
  font-size: 0.76rem;
}

.notification-content {
  margin: 0;
  color: #25343a;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notification-callback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
}

.callback-badge {
  padding: 4px 8px;
  border: 1px solid #d5dce0;
  border-radius: 999px;
  background: #f4f6f7;
  color: #48565e;
  font-size: 0.72rem;
  font-weight: 720;
}

.callback-badge[data-status="pending"] {
  border-color: #ead9a7;
  background: #fff8df;
  color: #71550d;
}

.callback-badge[data-status="delivered"] {
  border-color: #b6d8cb;
  background: #e9f6ef;
  color: #216444;
}

.callback-badge[data-status="failed"] {
  border-color: #e4b7b3;
  background: #fff0ee;
  color: #8e332f;
}

.callback-button {
  min-height: 0;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.notification-callback .inline-message,
.callback-attempts {
  flex-basis: 100%;
  margin: 0;
}

.callback-attempts {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: #4a5961;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.callback-snippet {
  display: block;
  color: var(--muted);
  white-space: pre-wrap;
}

.site-footer {
  margin: 0;
  color: #69757c;
  font-size: 0.79rem;
  text-align: center;
}

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
  }

  .menu-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #d6dde2;
    border-radius: 9px;
    background: #fff;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #30444d;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(84vw, 300px);
    height: 100%;
    background: #fbfcfc;
    box-shadow: 0 0 40px rgba(16, 26, 33, 0.18);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .app-shell.drawer-open .sidebar {
    transform: none;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(16, 26, 33, 0.42);
  }

  .main {
    padding: 22px 16px 48px;
  }

  .accounts-table thead {
    display: none;
  }

  .accounts-table,
  .accounts-table tbody,
  .accounts-table tr,
  .accounts-table td {
    display: block;
  }

  .accounts-table tr {
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f3;
  }

  .accounts-table tbody tr:last-child {
    border-bottom: 0;
  }

  .accounts-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border: 0;
    text-align: right;
  }

  .accounts-table td:first-child {
    width: auto;
  }

  .accounts-table td::before {
    flex: 0 0 auto;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.8rem;
    text-align: left;
  }

  .accounts-table td.table-action {
    justify-content: flex-end;
    padding-top: 8px;
  }

  .accounts-table td.table-action::before {
    content: none;
  }
}

@media (max-width: 560px) {
  .name-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-time {
    width: 100%;
    margin-left: 0;
  }

  .page-header .button,
  .connection-actions {
    width: 100%;
  }

  .connection-actions .button,
  .page-header > .button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
