:root {
  color-scheme: dark;
  --bg: #101214;
  --surface: #171a1d;
  --surface-raised: #1d2125;
  --surface-hover: #24292e;
  --border: #30363c;
  --border-strong: #414950;
  --text: #f2f5f7;
  --text-soft: #c2c9cf;
  --muted: #858f98;
  --blue: #4d9fff;
  --blue-soft: #183654;
  --green: #38c68b;
  --green-soft: #173d31;
  --amber: #f0b44c;
  --amber-soft: #473519;
  --red: #f06c67;
  --red-soft: #4b2425;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --header-height: 62px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.app-body {
  height: 100vh;
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  background: var(--bg);
}

.app-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--header-height);
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: #141719;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #315e88;
  border-radius: 7px;
  background: var(--blue-soft);
  color: #9dcbff;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.header-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 180px;
  color: var(--text-soft);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(56, 198, 139, 0.12);
}

.header-status.busy .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 180, 76, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.account-counter {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.button,
.icon-button,
.folder-tab,
.format-tabs button,
.mobile-nav button {
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button.primary {
  background: #2378c9;
  border-color: #2f8be0;
  color: #fff;
}

.button.primary:hover {
  background: #2d88d8;
}

.button.secondary {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--text-soft);
}

.button.secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.button.text-button {
  width: fit-content;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--blue);
}

.button.warning-button {
  background: #a66e18;
  border-color: #c48626;
  color: #fff7e8;
}

.button.danger-button {
  background: #a54140;
  border-color: #c45451;
  color: #fff;
}

.button.full-width {
  width: 100%;
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  background: var(--surface-raised);
  border-color: var(--border);
  color: var(--text-soft);
}

.icon-button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-button.quiet {
  background: transparent;
  border-color: transparent;
}

.icon-button.warning {
  color: var(--amber);
}

.icon-button.danger {
  color: var(--red);
}

.icon-button.mini {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  background: transparent;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.mail-workspace {
  display: grid;
  grid-template-columns: 280px minmax(370px, 430px) minmax(460px, 1fr);
  min-height: 0;
  overflow: hidden;
}

.workspace-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.workspace-panel + .workspace-panel {
  border-left: 1px solid var(--border);
}

.accounts-panel,
.messages-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.messages-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.detail-panel {
  background: #15181b;
  overflow-y: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-header.compact h2,
.panel-header.compact p {
  margin: 0;
}

.panel-header h2 {
  font-size: 14px;
}

.panel-header p {
  margin-top: 3px !important;
  color: var(--muted);
  font-size: 11px;
}

.account-list,
.message-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.account-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #252a2f;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.account-row:hover {
  background: var(--surface-hover);
}

.account-row.active {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #293138;
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-row.active .account-avatar {
  background: #28567e;
  color: #dceeff;
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 12px;
  font-weight: 650;
}

.account-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.account-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-remove:hover {
  background: var(--red-soft);
  color: var(--red);
}

.account-remove svg {
  width: 14px;
  height: 14px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.privacy-note svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.messages-header {
  height: 60px;
  padding: 8px 10px;
}

.folder-tabs,
.format-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #111416;
}

.folder-tab,
.format-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.folder-tab:hover,
.format-tabs button:hover {
  color: var(--text-soft);
}

.folder-tab.active,
.format-tabs button.active {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--text);
}

.folder-tab svg {
  width: 13px;
  height: 13px;
}

.search-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.search-row svg {
  width: 15px;
  height: 15px;
}

.search-row input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-row input:focus {
  outline: 0;
}

.search-row span {
  font-size: 10px;
  white-space: nowrap;
}

.message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 78px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #252a2f;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.message-row:hover {
  background: var(--surface-hover);
}

.message-row.active {
  background: #202b34;
  box-shadow: inset 3px 0 0 var(--green);
}

.message-main {
  min-width: 0;
}

.message-from,
.message-subject-line,
.message-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-from {
  color: var(--text-soft);
  font-size: 11px;
}

.message-subject-line {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 650;
}

.message-preview {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.message-row.unread .message-from,
.message-row.unread .message-subject-line {
  color: var(--text);
  font-weight: 750;
}

.message-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.empty-state,
.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.detail-empty h2 {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.empty-state p,
.detail-empty p {
  max-width: 280px;
  margin: 7px 0 16px;
  font-size: 11px;
  line-height: 1.65;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--muted);
}

.empty-icon.large {
  width: 58px;
  height: 58px;
}

.empty-icon svg {
  width: 21px;
  height: 21px;
}

.detail-empty {
  height: 100%;
  min-height: 420px;
}

.detail-empty h2 {
  font-size: 16px;
}

.list-loading,
.detail-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(18, 21, 24, 0.9);
  color: var(--text-soft);
  font-size: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.message-detail {
  min-height: 100%;
  padding: 22px 24px 42px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.detail-heading {
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-heading h1 {
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.35;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.meta-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.detail-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.analysis-strip {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(110px, 1fr) minmax(90px, 0.8fr);
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.analysis-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--surface-raised);
}

.analysis-item + .analysis-item {
  border-left: 1px solid var(--border);
}

.analysis-item span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.analysis-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-item.emphasis {
  background: var(--green-soft);
}

.analysis-item.emphasis strong {
  color: #8ce8be;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
}

.summary-block,
.link-block,
.body-block {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.section-label svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.summary-block p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.75;
}

.link-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.mail-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
}

.mail-link:hover {
  border-color: #355d80;
  background: #1d2b36;
}

.mail-link svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.mail-link span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.body-block pre {
  margin: 12px 0 0;
  color: #d9dfe4;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 7, 8, 0.78);
}

.modal {
  width: min(460px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.large-modal {
  width: min(720px, 100%);
}

.compact-modal {
  width: min(400px, 100%);
  padding-top: 24px;
  text-align: center;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.modal-header h2,
.compact-modal h2 {
  margin: 5px 0 0;
  font-size: 17px;
}

.format-tabs {
  margin: 0 18px 10px;
}

.modal textarea {
  display: block;
  width: calc(100% - 36px);
  height: 260px;
  margin: 0 18px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #101315;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.parse-report {
  min-height: 36px;
  padding: 9px 18px 0;
  color: var(--muted);
  font-size: 11px;
}

.parse-report.success {
  color: var(--green);
}

.parse-report.danger {
  color: var(--red);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
}

.modal-footer.centered {
  justify-content: center;
}

.form-stack {
  display: grid;
  gap: 13px;
  padding: 6px 18px;
}

.form-stack label span,
.login-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
}

.form-stack input,
.password-field input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111416;
  color: var(--text);
  font-size: 13px;
}

.confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 7px;
}

.confirm-icon.danger {
  background: var(--red-soft);
  color: var(--red);
}

.confirm-icon svg {
  width: 24px;
  height: 24px;
}

.compact-modal p {
  margin: 10px 24px 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}

.toast-region {
  position: fixed;
  top: 72px;
  right: 14px;
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #20252a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
  pointer-events: auto;
}

.toast.success {
  border-color: #2d7558;
}

.toast.success svg {
  color: var(--green);
}

.toast.danger {
  border-color: #7f3c3e;
}

.toast.danger svg {
  color: var(--red);
}

.toast svg {
  width: 16px;
  height: 16px;
}

.mobile-nav {
  display: none;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background: #0e1113;
}

.login-shell {
  width: 100%;
  max-width: 420px;
}

.login-card {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-login {
  margin-bottom: 30px;
}

.login-heading h1 {
  margin: 0;
  font-size: 22px;
}

.login-heading p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

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

.password-field {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding-left: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111416;
}

.password-field > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.password-field input {
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.password-field input:focus {
  outline: 0;
}

.inline-alert {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
}

.inline-alert.danger {
  border-color: #71393b;
  background: var(--red-soft);
  color: #ffc2bf;
}

.inline-alert svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1180px) {
  .mail-workspace {
    grid-template-columns: 240px minmax(330px, 390px) minmax(420px, 1fr);
  }

  .folder-tab span {
    display: none;
  }

  .folder-tab {
    width: 34px;
    padding: 0;
  }

  .message-detail {
    padding-inline: 18px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 58px;
  }

  .app-shell {
    grid-template-rows: var(--header-height) minmax(0, 1fr) 58px;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 10px;
  }

  .header-status,
  .account-counter,
  .header-actions .button span {
    display: none;
  }

  .header-actions .button {
    width: 36px;
    padding: 0;
  }

  .mail-workspace {
    display: block;
    position: relative;
    min-height: 0;
  }

  .workspace-panel {
    display: none;
    width: 100%;
    height: 100%;
    border-left: 0 !important;
  }

  .mail-workspace[data-mobile-view="accounts"] .accounts-panel,
  .mail-workspace[data-mobile-view="messages"] .messages-panel,
  .mail-workspace[data-mobile-view="detail"] .detail-panel {
    display: grid;
  }

  .mail-workspace[data-mobile-view="detail"] .detail-panel {
    display: block;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    background: #141719;
  }

  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-nav button.active {
    color: var(--blue);
  }

  .mobile-nav svg {
    width: 17px;
    height: 17px;
  }

  .analysis-strip {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-item:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .message-detail {
    padding: 16px 14px 30px;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal,
  .large-modal,
  .compact-modal {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .modal textarea {
    height: 220px;
  }

  .format-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .format-tabs button {
    padding: 0 5px;
  }
}

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