@font-face {
  font-family: Plex;
  src: url("/assets/plex-arabic-400-arabic.woff2");
}
@font-face {
  font-family: Plex;
  src: url("/assets/plex-arabic-600-arabic.woff2");
  font-weight: 600;
}
@font-face {
  font-family: Plex;
  src: url("/assets/plex-arabic-700-arabic.woff2");
  font-weight: 700;
}
:root {
  --ink: #252b35;
  --muted: #687386;
  --bg: #f5f6f8;
  --line: #e2e6ec;
  --accent: #303d51;
  --soft: #e9edf3;
  --danger: #a23e3e;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Plex, Arial, sans-serif;
  font-size: 15px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.5;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
p {
  line-height: 1.9;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.loading {
  text-align: center;
  padding: 30vh 20px;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8598b6;
  outline-offset: 3px;
}
.sidebar {
  position: fixed;
  overflow-y: auto;
  right: 0;
  top: 0;
  bottom: 0;
  width: 238px;
  padding: 30px 19px;
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 30px;
}
.mark {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 5px 15px #303d5118;
}
.brand strong {
  font-size: 28px;
  line-height: 1.1;
  display: block;
}
.brand small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: auto;
}
.nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #667084;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.nav a:hover {
  background: #f4f6f9;
}
.nav a.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-label {
  padding: 17px 14px 7px;
  font-size: 11px;
  color: #7a8596;
}
.sidebar-foot {
  margin-top: auto;
  padding: 22px 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-foot span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #7a8596;
  border-radius: 50%;
  margin-left: 6px;
}
.main {
  margin-right: 238px;
  min-height: 100vh;
  padding: 0 42px 42px;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: #e6eaf1;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.quiet {
  border: none;
  background: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  font-size: 13px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 32px 0 25px;
}
.page-head p {
  font-size: 14px;
  margin-top: 5px;
  color: var(--muted);
}
.btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.danger {
  color: var(--danger);
  background: #fff3f2;
  border-color: #f2dddd;
}
.btn.small {
  padding: 6px 11px;
  min-height: 34px;
  font-size: 12px;
}
.trial {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #e8ddc5;
  background: #fcfaf3;
  border-radius: 13px;
  padding: 13px 17px;
  margin-bottom: 25px;
  font-size: 12px;
  color: #8a7342;
}
.trial strong {
  font-weight: 600;
}
.trial .icon {
  width: 18px;
}
.trial .btn {
  margin-right: auto;
  background: transparent;
  font-size: 12px;
  border-color: #e6dbc2;
}
.welcome {
  position: relative;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 29px 32px;
  margin-bottom: 24px;
  color: #fff;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.welcome:after {
  content: "";
  position: absolute;
  left: -55px;
  top: -90px;
  width: 320px;
  height: 320px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  pointer-events: none;
}
.welcome small {
  color: #c7d0df;
}
.welcome h2 {
  font-size: 25px;
  margin: 7px 0;
}
.welcome p {
  font-size: 13px;
  color: #dce3ee;
}
.welcome .btn {
  background: #fff;
  color: var(--accent);
  border: none;
  position: relative;
  z-index: 1;
}
.welcome-emblem {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: #ffffff0b;
  border: 1px solid #ffffff12;
  border-radius: 28px;
  margin: 0 20px;
}
.welcome-emblem .icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.stat strong {
  font-size: 33px;
  font-weight: 600;
  display: block;
  margin-top: 10px;
  line-height: 1.3;
}
.stat small {
  font-size: 11px;
}
.icon-box {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf0f5;
  color: #53657e;
}
.icon-box.blue {
  background: #edf0f5;
  color: #53657e;
}
.icon-box.sand {
  background: #edf0f5;
  color: #53657e;
}
.icon-box.purple {
  background: #edf0f5;
  color: #53657e;
}
.columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-head small {
  font-size: 11px;
}
.action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.action-row {
  display: flex;
  align-items: center;
  text-align: right;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 13px 3px;
  width: 100%;
}
.action-row:hover {
  background: #f6f7fa;
}
.action-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.action-row small {
  font-size: 12px;
  display: block;
  margin-top: 3px;
}
.action-row > .icon:last-child {
  margin-right: auto;
  width: 17px;
  color: #8692a4;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
}
.service-row:last-child {
  border: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  background: #f0f2f2;
  color: #6c787c;
  padding: 4px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.pill.good {
  background: #edf6ef;
  color: #4b8060;
}
.pill.warn {
  background: #fcf2e4;
  color: #9a743e;
}
.pill.bad {
  background: #fbebeb;
  color: #ae5353;
}
.list-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  max-width: 420px;
  flex: 1;
}
.search input {
  width: 100%;
  border: 0;
  padding: 12px 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
}
th {
  background: #fafbfc;
  padding: 15px 20px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
td small {
  display: block;
  direction: ltr;
  text-align: right;
  font-size: 11px;
  margin-top: 3px;
}
td:first-child {
  font-weight: 600;
}
.empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 65px 25px;
}
.empty .icon-box {
  margin: 0 auto 18px;
  width: 62px;
  height: 62px;
  border-radius: 16px;
}
.empty h2 {
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto;
}
.empty .btn {
  margin-top: 22px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
}
.card .card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card p {
  font-size: 13px;
  color: var(--muted);
}
.card .price {
  font-size: 28px;
  font-weight: 600;
}
.card .price small {
  font-size: 13px;
  font-weight: 400;
}
.card .btn {
  margin-top: auto;
}
.notice {
  border-radius: 12px;
  padding: 14px 17px;
  background: #eef1f5;
  color: #53657e;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.9;
}
.error {
  background: #fff1ef;
  color: #a84343;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.8;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label,
.field > span {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea {
  border: 1px solid #dce2eb;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  width: 100%;
  color: var(--ink);
  min-height: 46px;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input[type="email"],
.field input[type="password"] {
  direction: ltr;
  text-align: right;
}
.field input:focus,
.field textarea:focus {
  border-color: #8598b6;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}
.choice span {
  display: block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.choice input:checked + span {
  background: var(--soft);
  border-color: #8598b6;
  color: #303d51;
}
.choice input:focus-visible + span {
  outline: 2px solid #8598b6;
}
.choice small {
  display: block;
  font-size: 11px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 25px;
}
.settings {
  max-width: 750px;
}
.settings + .settings {
  margin-top: 20px;
}
.settings h2 {
  margin-bottom: 22px;
}
.settings .notice {
  margin: 0 0 20px;
}
dialog {
  width: min(640px, calc(100vw - 30px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 100px #162e3020;
  background: #fafbfc;
}
dialog::backdrop {
  background: #152c3066;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.dialog-head button {
  border: 0;
  background: #edf0f5;
  color: var(--muted);
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
}
.dialog-note {
  font-size: 12px;
  color: var(--muted);
  margin: -10px 0 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  color: white;
  background: #303d51;
  box-shadow: 0 10px 40px #173c3522;
  border-radius: 13px;
  padding: 13px 22px;
  font-size: 14px;
  display: none;
  max-width: 90vw;
}
#toast.visible {
  display: block;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #252e3c;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  left: -200px;
  bottom: -100px;
}
.login-art .brand {
  padding: 0 0 85px;
}
.login-art .brand small {
  color: #c7d0df;
}
.login-art h1 {
  font-size: 40px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 420px;
}
.login-art p {
  font-size: 15px;
  color: #c7d0df;
  max-width: 380px;
}
.login-art .login-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 50px;
}
.login-tags span {
  border: 1px solid #ffffff24;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: #dce3ee;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 370px;
}
.login-form h2 {
  font-size: 29px;
  margin: 13px 0 8px;
}
.login-form > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form .field {
  margin: 18px 0;
}
.login-form .btn {
  width: 100%;
  margin-top: 8px;
}
.login-form .footnote {
  font-size: 12px;
  margin-top: 22px;
  color: #7a8596;
  line-height: 1.9;
}
.login-form .icon-box {
  width: 52px;
  height: 52px;
  background: #e9edf3;
  border-radius: 17px;
}
.spaced {
  margin-top: 24px;
}
.body-preview {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 2;
  max-height: 200px;
  overflow: auto;
}
.picker {
  max-height: 200px;
  overflow: auto;
  padding: 3px;
}
.picker .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.picker .choice span {
  height: 100%;
}
.record-count {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1550px) {
  .main {
    padding-left: max(50px, calc((100vw - 1300px) / 2));
    padding-right: calc(40px + max(0px, (100vw - 1600px)/2));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 25px 12px;
  }
  .main {
    margin-right: 205px;
    padding: 0 25px 30px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-art {
    padding: 50px;
  }
  .login-art h1 {
    font-size: 32px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: sticky;
    width: auto;
    top: 0;
    bottom: auto;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
    gap: 9px;
  }
  .brand .mark {
    width: 30px;
    height: 30px;
    font-size: 21px;
    border-radius: 10px;
  }
  .brand strong {
    font-size: 23px;
  }
  .brand small {
    font-size: 9px;
  }
  .sidebar .brand {
    margin-bottom: 12px;
  }
  .nav {
    flex-direction: row;
    gap: 4px;
    overflow: auto;
    padding-bottom: 3px;
  }
  .nav a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .nav .icon {
    width: 17px;
    height: 17px;
  }
  .nav-group {
    display: contents;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .main {
    margin-right: 0;
    padding: 0 17px 28px;
  }
  .topbar {
    height: 60px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .top-actions .quiet span {
    display: none;
  }
  .page-head {
    margin: 23px 0 20px;
    align-items: start;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head > .btn {
    font-size: 11px;
    padding: 9px 11px;
  }
  .trial {
    font-size: 11px;
    align-items: start;
    flex-wrap: wrap;
    padding: 12px;
  }
  .trial .btn {
    min-height: 30px;
    padding: 4px 9px;
  }
  .welcome {
    padding: 24px 21px;
    min-height: 160px;
  }
  .welcome h2 {
    font-size: 24px;
  }
  .welcome-emblem {
    display: none;
  }
  .stats {
    gap: 11px;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat .icon-box {
    width: 29px;
    height: 29px;
    border-radius: 10px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  dialog {
    padding: 23px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 25px;
  }
  .login-art .brand {
    padding: 0;
  }
  .login-art h1,
  .login-art > p,
  .login-tags {
    display: none !important;
  }
  .login-form-wrap {
    padding: 35px 25px;
    align-items: start;
  }
  .login-form h2 {
    font-size: 26px;
  }
  .login {
    grid-template-rows: auto 1fr;
  }
  .picker .choices {
    grid-template-columns: 1fr;
  }
  .welcome .btn {
    font-size: 12px;
  }
  .topbar .avatar {
    width: 29px;
    height: 29px;
  }
}

[hidden] {
  display: none !important;
}

.search:focus-within,
.table-wrap:focus-visible {
  outline: 3px solid #8598b6;
  outline-offset: 3px;
}

/* Shared list controls keep actions visible on desktop and touch screens. */
.skip-link {
  position: fixed;
  top: -100px;
  right: 16px;
  z-index: 30;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.main,
#content,
.columns > *,
.card {
  min-width: 0;
}
#content:focus {
  outline: none;
}
.nav-group {
  flex-shrink: 0;
}
.nav {
  padding-bottom: 12px;
}
.nav a {
  min-height: 44px;
}
.sidebar-foot {
  flex-shrink: 0;
}
.stat {
  position: relative;
  padding-bottom: 42px;
}
.stat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  position: absolute;
  bottom: 10px;
  left: 18px;
  min-height: 24px;
}
.stat-link .icon {
  width: 15px;
  height: 15px;
}
.list-controls {
  margin-bottom: 22px;
}
.list-tools {
  flex-wrap: wrap;
  margin-bottom: 12px;
  gap: 10px;
}
.list-tools .search {
  min-width: 170px;
}
.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.filter-group > span {
  min-width: 56px;
  font-size: 12px;
  color: var(--muted);
}
.filter-btn {
  min-height: 40px;
  border-radius: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12px;
}
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
button:disabled {
  cursor: default;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card .row-actions {
  margin-top: auto;
}
.card h2,
.card p {
  overflow-wrap: anywhere;
}
.optional-fields {
  margin-top: 22px;
  border: 1px solid var(--line);
  padding: 0 15px;
  border-radius: 12px;
}
.optional-fields summary {
  min-height: 48px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.optional-fields .form-grid {
  margin: 12px 0 18px;
}
.optional-fields p {
  font-size: 12px;
}
.server-picker {
  display: grid;
  gap: 12px;
}
.server-picker .search {
  width: 100%;
  max-width: none;
}
.picker-results .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}
.picker-results .choice {
  min-width: 0;
}
.picker-results .choice span {
  height: 100%;
  overflow-wrap: anywhere;
}
.picker-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.picker-pages > span {
  margin-left: auto;
}
.server-picker[aria-busy="true"] .picker-results {
  opacity: 0.6;
}
.details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
  font-size: 14px;
  margin-bottom: 22px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
summary:focus-visible {
  outline: 3px solid #8598b6;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .nav {
    padding-bottom: 0;
  }
  .nav-group {
    display: contents;
  }
  .welcome {
    flex-wrap: wrap;
    gap: 14px;
    min-height: auto;
  }
  .welcome .btn {
    min-height: 44px;
  }
  .list-tools .search {
    max-width: none;
    flex-basis: calc(100% - 75px);
  }
  .list-tools .record-count {
    flex-basis: 100%;
  }
  .filter-btn,
  .btn.small {
    min-height: 44px;
  }
  .filter-group > span {
    width: 100%;
  }
  .pagination {
    align-items: start;
  }
  .pagination > div {
    width: 100%;
    justify-content: space-between;
  }
  .row-actions {
    flex-wrap: nowrap;
  }
  .card .row-actions {
    flex-wrap: wrap;
  }
  .top-actions {
    gap: 4px;
  }
  .quiet {
    min-width: 40px;
    min-height: 44px;
  }
  .breadcrumb {
    gap: 3px;
  }
  .breadcrumb .icon {
    width: 14px;
  }
  .picker-results .choices {
    grid-template-columns: 1fr;
  }
  .stat {
    padding-bottom: 42px;
  }
}

.password-input {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.password-input input {
  min-width: 0;
  flex: 1;
  width: 0;
}
.password-toggle {
  flex-shrink: 0;
  min-width: 62px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--accent);
  font-size: 13px;
}
.password-toggle[aria-pressed="true"] {
  background: var(--soft);
}
.login-form .password-toggle {
  width: auto;
  margin: 0;
}
.password-input input[data-secret] {
  direction: ltr;
  text-align: right;
}
.login-help {
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.login-help summary {
  cursor: pointer;
  padding: 16px 0;
  min-height: 48px;
  color: var(--accent);
  font-size: 13px;
}
.login-help p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.top-actions .quiet .password-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-button {
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (max-width: 720px) {
  .top-actions .quiet .account-name {
    display: none;
  }
  .top-actions .account-button {
    font-size: 11px;
    gap: 0;
  }
  .password-link .icon {
    width: 16px;
    height: 16px;
  }
}

.subscription-history {
  margin-top: 14px;
}
.subscription-history .service-row small {
  display: block;
  margin-top: 4px;
}
.history-entry {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.history-entry:last-child {
  border-bottom: 0;
}
.history-entry strong,
.history-entry small {
  display: block;
}
.history-entry p {
  font-size: 13px;
  overflow-wrap: anywhere;
}
#password-form h2 {
  margin-bottom: 14px;
}
#password-form .form-grid {
  grid-template-columns: 1fr;
}
