* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f4ef;
  color: #352e30;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: #681e35;
  color: white;
  border-radius: 9px;
  padding: 11px 19px;
  font-weight: 550;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
.sidebar {
  width: 242px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #eeeae3;
  border-right: 1px solid #e0d9d0;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.brand img {
  grid-row: span 2;
  filter: brightness(0.35);
}
.brand span {
  font: 9px/1.5 sans-serif;
  letter-spacing: 2.7px;
  color: #857877;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9a8e89;
  margin: 54px 14px 16px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  background: transparent;
  color: #837776;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  text-align: left;
  font-size: 19px;
  font-weight: 400;
}
nav button span {
  font-size: 13px;
}
nav button[aria-current='page'] {
  background: #681e35;
  color: #fff;
  box-shadow: 0 5px 15px #681e3517;
}
nav button:hover:not([aria-current='page']) {
  background: #e4ddd5;
  color: #681e35;
}
.back-site {
  margin: auto 14px 18px;
  color: #681e35;
  font-size: 12px;
}
.side-note {
  color: #9a8e89;
  margin: 0 14px;
  font-size: 11px;
  line-height: 1.7;
}
.admin-main {
  margin-left: 242px;
}
.app-header {
  height: 76px;
  border-bottom: 1px solid #e5ded4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 12px;
  background: #faf8f3;
}
.crumb {
  color: #9c8f8d;
}
.header-actions {
  display: flex;
  align-items: center;
}
.app-header .profile-toggle {
  width: 36px;
  height: 36px;
}
.app-header .account-status {
  max-width: 250px;
}
main {
  max-width: 1350px;
  margin: auto;
  padding: 40px 38px;
  min-height: calc(100vh - 136px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.1px;
  color: #8c5b66;
  font-weight: 600;
  margin: 0 0 12px;
}
h1 {
  font:
    38px/1.2 Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
h2 {
  font:
    23px/1.3 Georgia,
    serif;
  font-weight: 400;
  margin: 0 0 10px;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
p {
  margin: 0 0 15px;
}
.page-heading p:last-child,
.muted {
  color: #948783;
  font-size: 12px;
}
.quiet {
  background: transparent;
  border-color: #ddd4ca;
  color: #7d6d6c;
  font-size: 12px;
  white-space: nowrap;
}
.panel {
  background: #fcfaf6;
  border: 1px solid #e5ddd3;
  border-radius: 13px;
  padding: 25px;
  margin-bottom: 22px;
}
.gate {
  text-align: center;
  padding: 58px 25px;
  max-width: 690px;
  margin: 40px auto;
}
.gate-mark {
  display: block;
  color: #8a334d;
  font-size: 45px;
  margin-bottom: 15px;
}
.gate p {
  color: #8d7d79;
  line-height: 1.8;
}
.gate form {
  max-width: 340px;
  margin: 20px auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 23px;
  background: #fcfaf6;
  border: 1px solid #e5ddd3;
  border-radius: 12px;
}
.stat span {
  display: block;
  font-size: 11px;
  color: #8e7e78;
}
.stat strong {
  display: block;
  font:
    32px/1.5 Georgia,
    serif;
  color: #4b3539;
}
.stat small {
  font-size: 10px;
  color: #9c8e86;
}
.stat:first-child {
  background: #681e35;
  border-color: #681e35;
}
.stat:first-child span,
.stat:first-child small {
  color: #e7cdd5;
}
.stat:first-child strong {
  color: white;
}
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 21px;
}
.panel-top h2 {
  margin: 0;
}
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 550;
  padding: 4px 9px;
  border-radius: 20px;
  background: #e9eee4;
  color: #526b49;
  white-space: nowrap;
}
.tag.test,
.tag.paused {
  background: #f4e9d3;
  color: #90713a;
}
.tag.deleted {
  background: #ece7e4;
  color: #9a8d87;
}
.tag.sale {
  background: #eadce1;
  color: #773249;
}
.notice {
  padding: 13px 16px;
  background: #eee8e0;
  color: #897870;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}
.data-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: #9c8f89;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 550;
  border-bottom: 1px solid #e8e1d7;
  padding: 0 12px 13px;
  white-space: nowrap;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #eee8df;
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
td small {
  display: block;
  color: #a2938c;
  font-size: 10px;
  margin-top: 3px;
}
.row-action {
  font-size: 11px;
  padding: 5px 9px;
  background: transparent;
  color: #7d4b5b;
  border: 1px solid #e5d8dc;
  border-radius: 6px;
}
.empty {
  padding: 45px;
  text-align: center;
  color: #9a8984;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 300px;
}
.load-more {
  margin-top: 18px;
}
.bars {
  height: 150px;
  display: flex;
  gap: 17px;
  align-items: end;
  padding: 20px 0 0;
}
.bar-group {
  flex: 1;
  text-align: center;
  color: #9a8e89;
  font-size: 10px;
}
.bar {
  height: var(--height);
  min-height: 3px;
  background: #c49aa6;
  border-radius: 5px 5px 0 0;
  margin: 0 auto 10px;
  max-width: 42px;
}
.bar-group strong {
  display: block;
  color: #7d5b66;
  font-size: 11px;
  margin-bottom: 7px;
}
.quick-link {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #ece4d9;
  font-size: 12px;
}
.quick-link span {
  color: #9c8e86;
}
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  border: 1px solid #e8dfd4;
  border-radius: 10px;
  padding: 20px;
}
.price-card h3 {
  color: #681e35;
  margin-top: 0;
}
label {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 12px;
  color: #7a6a67;
}
input,
select {
  width: 100%;
  border: 1px solid #ddd4c8;
  border-radius: 7px;
  padding: 11px;
  background: #fffdf9;
  color: #443437;
  min-width: 0;
}
input:focus {
  border-color: #9b6575;
}
.form-row {
  display: flex;
  gap: 16px;
  align-items: end;
}
.form-row label {
  flex: 1;
}
.form-row button {
  margin-bottom: 17px;
}
.price-result {
  font:
    25px Georgia,
    serif;
  color: #681e35;
  margin-top: 18px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.catalog-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.catalog-card {
  padding: 14px;
}
.catalog-card h3 {
  margin: 12px 0 4px;
}
.catalog-card a {
  font-size: 11px;
  color: #8a3b54;
}
audio {
  width: 240px;
  height: 32px;
}
code {
  font-size: 10px;
  word-break: break-all;
}
.owner-card {
  padding: 18px;
  background: #eee8df;
  border-radius: 9px;
  margin-bottom: 23px;
}
.owner-card strong {
  display: block;
  color: #681e35;
  margin-bottom: 5px;
}
.owner-card small {
  color: #9a8780;
}
.lock-note {
  color: #987e78;
  font-size: 12px;
}
.password-note {
  font-size: 11px;
  color: #9a8780;
  margin-bottom: 20px;
}
#admin-status {
  font-size: 12px;
  color: #926575;
  min-height: 18px;
}
#admin-status.error {
  color: #a93636;
}
footer {
  height: 60px;
  border-top: 1px solid #e6ded4;
  padding: 20px 38px;
  color: #aa9b93;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
[hidden] {
  display: none !important;
}
dialog {
  max-width: 470px;
  width: calc(100% - 40px);
  border: 1px solid #d8cabc;
  border-radius: 14px;
  padding: 30px;
  background: #fcfaf6;
  color: #443437;
}
dialog::backdrop {
  background: #31252c66;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}
.testing-card {
  background: linear-gradient(130deg, #4b1e30, #8b3c56);
  border-radius: 14px;
  padding: 28px;
  color: #fbefe8;
  max-width: 380px;
  margin-bottom: 25px;
}
.testing-card .card-number {
  font: 22px/2.7 monospace;
  letter-spacing: 2px;
}
.testing-card small {
  color: #d5b4bf;
}
.test-plan-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.test-plan-links a {
  display: block;
  background: #681e35;
  color: white;
  border-radius: 8px;
  padding: 12px 19px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .admin-main {
    margin-left: 205px;
  }
  main {
    padding: 30px 25px;
  }
  h1 {
    font-size: 32px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
    gap: 10px;
  }
  .brand {
    width: 190px;
  }
  .nav-label,
  .side-note,
  .back-site {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    padding-top: 10px;
  }
  nav button {
    white-space: nowrap;
    gap: 6px;
    padding: 9px 12px;
  }
  nav button span {
    font-size: 11px;
  }
  .admin-main {
    margin: 0;
  }
  .app-header {
    height: 57px;
    padding: 0 20px;
  }
  main {
    padding: 26px 18px;
  }
  h1 {
    font-size: 29px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 27px;
  }
  .panel {
    padding: 19px;
  }
  .prices,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid img {
    height: 300px;
    object-fit: contain;
    background: #eee8df;
  }
  .form-row {
    display: block;
  }
  .form-row button {
    width: 100%;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading p:last-child {
    max-width: 250px;
  }
  footer {
    padding: 20px 18px;
  }
  footer span {
    display: none;
  }
}
/* Merchant settings share the admin form styles. */
[data-payment-provider] label,
.payment-callbacks label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
[data-payment-provider] small {
  color: var(--muted, #777);
  font-weight: 400;
}
[data-payment-provider] select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dedbd7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
[data-payment-provider] .payment-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-payment-provider] input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.payment-callbacks {
  border-top: 1px solid #e7e3de;
  margin-top: 24px;
  padding-top: 16px;
}
.payment-callbacks input {
  font-size: 12px;
  width: 100%;
  min-width: 0;
}

nav button .nav-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
nav button[hidden] {
  display: none;
}
.maintenance-panel {
  margin-top: 24px;
}
.maintenance-panel .panel-top {
  align-items: center;
  gap: 20px;
}
.maintenance-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.danger-action {
  background: #681e35;
  color: #fff;
}
dialog .reset-warning {
  background: #f3e9e8;
  color: #681e35;
  padding: 14px;
  border-radius: 9px;
}
dialog input {
  width: 100%;
  max-width: 100%;
}
.audit-table td:nth-child(3) code,
.audit-table td:nth-child(3) small {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.audit-table table {
  table-layout: fixed;
  width: 100%;
}
.audit-table th:nth-child(1) {
  width: 18%;
}
.audit-table th:nth-child(2) {
  width: 25%;
}
.audit-table th:nth-child(3) {
  width: 39%;
}
.audit-table th:nth-child(4) {
  width: 18%;
}
.audit-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
@media (max-width: 700px) {
  .maintenance-panel .panel-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .maintenance-actions {
    width: 100%;
  }
}
.user-identity {
  margin-top: 20px;
}
.grant-form {
  border-top: 1px solid #e5ddd3;
  margin-top: 24px;
  padding-top: 20px;
}
.grant-form label {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.grant-form select {
  padding: 12px;
  border: 1px solid #dedbd7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.clerk-connection {
  padding: 24px;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: var(--theme-bg);
  color: var(--theme-text);
  margin: 24px 0;
}
.clerk-connection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.clerk-connection h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
  color: var(--theme-text);
}
.clerk-connection p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--theme-muted);
}
.clerk-connection p strong {
  font-weight: 500;
  color: var(--theme-text);
}
.clerk-connection .row-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.clerk-connection label {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  font-size: 13px;
}
.clerk-connection input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 16px;
}
.clerk-connection-footer {
  display: flex;
  align-items: center;
  gap: 20px;
}
.clerk-connection-footer button {
  flex-shrink: 0;
  min-height: 44px;
}
.clerk-connection-footer p {
  margin: 0;
  max-width: 520px;
}
.clerk-connection [role='status'] {
  font-size: 13px;
  color: var(--theme-text);
  overflow-wrap: anywhere;
}
.clerk-connection [role='status']:empty {
  display: none;
}
@media (max-width: 600px) {
  .clerk-connection {
    padding: 18px;
  }
  .clerk-connection-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .clerk-connection-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .clerk-connection-footer button {
    width: 100%;
  }
}

.wh-live {
  color: #357455;
  font-size: 12px;
}
meter {
  width: 110px;
  max-width: 100%;
  accent-color: #681e35;
}
.sidebar {
  overflow-y: auto;
}
.side-note {
  flex-shrink: 0;
}

#availability-form {
  max-width: 700px;
}
#availability-form label {
  display: grid;
  gap: 7px;
  margin: 20px 0;
}
#availability-form .check-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
#availability-form input[type='checkbox'] {
  width: auto;
}
textarea {
  font: inherit;
  border: 1px solid #d9cfc4;
  border-radius: 9px;
  background: #fffdf9;
  color: inherit;
  padding: 12px;
  resize: vertical;
  width: 100%;
}
.notice-preview {
  text-align: center;
}
.notice-message {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Keep the workspace usable without sideways navigation or tiny row controls. */
.mobile-menu-toggle {
  display: none;
}
.admin-main,
main,
#admin-content,
.panel,
.two-col > * {
  min-width: 0;
}
.owner-card strong,
td,
td small,
.notice,
.lock-note {
  overflow-wrap: anywhere;
}
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 3px 3px 3px 0;
}
.danger-outline {
  color: #a12f42;
  border-color: #d9a9b2;
}
.wh-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wh-response-links {
  margin: 12px 0 20px;
}
.wh-response-links .quick-link {
  min-height: 48px;
  gap: 16px;
}
.wh-response-links + p {
  margin-bottom: 0;
}
.data-wrap audio {
  max-width: 100%;
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    inset: auto;
    width: 100%;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid #e0d9d0;
    overflow: visible;
  }
  .sidebar .brand {
    width: auto;
    max-width: 200px;
  }
  .mobile-menu-toggle {
    display: block;
    min-height: 44px;
    align-self: center;
  }
  .sidebar .nav-label,
  .sidebar .side-note,
  .sidebar .back-site {
    display: none;
  }
  .sidebar nav {
    display: none;
    grid-column: 1/-1;
    overflow: visible;
    padding: 6px 0 0;
  }
  .sidebar.menu-open nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .sidebar nav button {
    min-height: 48px;
    white-space: normal;
    min-width: 0;
    padding: 10px;
    gap: 8px;
    align-items: center;
  }
  .sidebar nav button span {
    font-size: 12px;
    line-height: 1.4;
  }
  .admin-main {
    margin: 0;
  }
  .app-header {
    height: 54px;
    padding: 0 18px;
  }
  .app-header .account-status {
    max-width: 180px;
  }
  main {
    padding: 24px 18px;
    min-height: calc(100svh - 180px);
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading > div {
    min-width: 0;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .page-heading p:last-child {
    max-width: none;
  }
  .page-heading #refresh {
    padding: 10px;
    min-height: 44px;
  }
  .panel {
    padding: 18px;
    border-radius: 12px;
  }
  .panel-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 26px;
    overflow-wrap: anywhere;
  }
  .two-col,
  .prices,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    display: block;
  }
  .form-row button {
    width: 100%;
  }
  .wh-controls > button {
    flex: 1 1 140px;
    min-height: 44px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions button {
    min-height: 44px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    max-width: none;
    flex: 1 1 100%;
  }
  .row-action {
    min-height: 44px;
    padding: 10px 12px;
  }
  .owner-card {
    padding: 15px;
  }
  .owner-card strong {
    font-size: 14px;
  }
  .panel form button {
    min-height: 44px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    max-width: 100%;
  }
  audio {
    width: 100%;
  }
  footer {
    padding: 18px;
    height: auto;
    gap: 12px;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 600px) {
  .data-wrap {
    overflow: visible;
  }
  .data-wrap table,
  .data-wrap tbody,
  .data-wrap tr,
  .data-wrap td {
    display: block;
    width: 100%;
    table-layout: auto;
  }
  .data-wrap thead {
    display: none;
  }
  .data-wrap tr {
    padding: 12px 0;
    border-bottom: 1px solid #e5ddd3;
  }
  .data-wrap tr:last-child {
    border-bottom: 0;
  }
  .data-wrap td,
  .data-wrap td:first-child,
  .data-wrap td:last-child {
    padding: 8px 0;
    border: 0;
    white-space: normal;
  }
  .data-wrap td:before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    line-height: 1.5;
    color: #8e7e78;
    margin-bottom: 4px;
    font-weight: 600;
  }
  .data-wrap td.empty:before {
    display: none;
  }
  .data-wrap .empty {
    padding: 22px 0;
  }
  .data-wrap td small {
    font-size: 12px;
  }
  .data-wrap code {
    font-size: 12px;
  }
  .data-wrap .row-action {
    margin-right: 7px;
  }
  .audit-table th,
  .audit-table td {
    width: 100% !important;
  }
  .gate {
    margin: 10px auto;
    padding: 28px 18px;
  }
  .gate h2 {
    font-size: 24px;
  }
  .testing-card {
    padding: 20px;
  }
  .testing-card .card-number {
    font-size: 19px;
    letter-spacing: 1px;
  }
  .panel-top h2 {
    font-size: 22px;
  }
  .price-card {
    padding: 16px;
  }
  dialog {
    width: calc(100% - 24px);
    padding: 22px;
    max-height: 90svh;
    overflow: auto;
  }
  .app-header .account-status {
    max-width: 145px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
}
/* Domain email: mailbox selection, inbox, then message detail. */
.mailbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.mailbox-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-align: left;
}
.mailbox-card strong {
  overflow-wrap: anywhere;
}
.mailbox-card > span {
  font-size: 26px;
  color: var(--wine, #671c35);
}
.mailbox-card small,
.mail-row small {
  color: #817472;
}
.mail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.mail-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.mail-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  padding: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 400;
}
.mail-row-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: 100%;
}
.mail-row.unread {
  border-left: 4px solid #671c35;
  background: #fffaf5;
}
.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.8;
  border-top: 1px solid #ded6cc;
  margin-top: 24px;
  padding-top: 24px;
}
.mail-message h2 {
  overflow-wrap: anywhere;
  margin-top: 24px;
}
.mail-empty {
  text-align: center;
  padding: 40px 16px;
}
.mail-message a {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .mail-row-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .mail-actions {
    width: 100%;
  }
  .mail-actions > * {
    flex: 1 1 auto;
  }
  .mail-message {
    padding: 20px;
  }
}

.telegram-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 12px 0;
}
.telegram-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.telegram-options input[type='checkbox'] {
  width: auto;
  margin: 0;
}
#telegram-link {
  overflow-wrap: anywhere;
}
