:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-list: #fbfbfc;
  --border: #e8eaed;
  --text: #1a1d21;
  --text-soft: #6b7280;
  --text-faint: #9aa0a6;
  --accent: #2563eb;
  --sidebar-bg: #ffffff;
  --topbar: #2b2f36;
  --active: #1f2937;
  --unread-dot: #2563eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.app-mode {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ----------------------------- Login screen ----------------------------- */
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f7f8fa 60%);
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.login-card {
  width: 100%;
  max-width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  margin: auto 0;
}
#login .login-card {
  max-width: min(720px, 100%);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.login-logo h1 {
  font-size: 24px;
  font-weight: 700;
}
.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--active);
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
}
.login-sub {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 22px;
}
.login-logo {
  position: relative;
}
.login-logo h1 {
  flex: 1;
}
.admin-logout {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
}
.admin-logout:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.tabs,
.admin-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.tab,
.admin-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}
.tab.active,
.admin-tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.text-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
}
.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
textarea#combo,
textarea#textContent {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  resize: vertical;
  outline: none;
}
textarea#combo:focus,
textarea#textContent:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.text-view-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 40px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: auto;
  min-height: 280px;
}
.text-view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.spinner-dark {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-top-color: var(--active);
}
.text-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.text-view-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.text-view-date {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}
.text-view-notice {
  font-size: 12px;
  color: #b7791f;
}
.text-view-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-end;
}
.text-action {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.text-action.secondary {
  background: #fff;
  color: #111827;
  border: 1px solid var(--border);
}
.text-action.secondary:hover {
  background: #f8fafc;
}
.text-action.primary {
  background: #07091a;
  color: #fff;
}
.text-action.primary:hover {
  background: #111827;
}
.public-text-box {
  width: 100%;
  min-height: 430px;
  max-height: 60vh;
  overflow: auto;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.public-text-box .plain-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: #111827;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.combo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.combo-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.combo-block-text {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
  color: #111827;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.combo-inbox-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #07091a;
  color: #fff;
  align-self: flex-end;
  margin-top: 4px;
}
.combo-inbox-btn:hover:not(:disabled) {
  background: #111827;
}
.combo-inbox-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn-primary {
  width: 100%;
  margin-top: 16px;
  background: var(--active);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: #111827;
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-secondary {
  width: 100%;
  margin-top: 4px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover {
  background: var(--bg-soft);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-faint);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.guest-entry-hint {
  margin-top: 10px;
  text-align: center;
}
textarea#guestCombo {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  resize: vertical;
  outline: none;
  margin-bottom: 4px;
}
textarea#guestCombo:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-error {
  margin-top: 14px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  word-break: break-word;
}
.login-hint {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}

/* -------------------------------- App ----------------------------------- */
.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 8px;
  background: var(--topbar);
  flex-shrink: 0;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #eef2ff;
  border-bottom: 1px solid #dbe3ff;
  flex-shrink: 0;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: #3949ab;
  white-space: nowrap;
}
.share-input {
  flex: 1;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: #fff;
  outline: none;
}
.share-copy,
.share-open {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.share-copy {
  background: var(--active);
  color: #fff;
}
.share-copy:hover {
  background: #111827;
}
.share-open {
  background: #fff;
  color: var(--accent);
  border: 1px solid #c7d2fe;
}
.share-open:hover {
  background: #f5f7ff;
}

/* Saved inboxes on combo screen */
.saved {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.saved-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.batch-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.batch-links-head .saved-title {
  margin-bottom: 0;
}
.batch-link-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  min-width: 72px;
}
.batch-links-plain {
  max-height: 280px;
  overflow: auto;
}
.batch-links-pre {
  margin: 0;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #111827;
  white-space: pre-wrap;
  word-break: break-all;
}
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.saved-item .saved-btn {
  flex-shrink: 0;
}
.saved-info {
  flex: 1;
  min-width: 0;
}
.saved-email {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-link {
  font-size: 11px;
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.saved-link:hover {
  text-decoration: underline;
}
.saved-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-soft);
}
.saved-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.saved-btn.danger:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.copied-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--active);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 230px 360px 1fr;
  overflow: hidden;
}

/* ------------------------------ Sidebar --------------------------------- */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 18px;
}
.brand-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--active);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
}
.brand-name {
  font-weight: 700;
  font-size: 17px;
}
.folders {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.folder {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.folder .fi {
  font-size: 14px;
  width: 18px;
  text-align: center;
}
.folder .fname {
  flex: 1;
}
.folder:hover {
  background: var(--bg-soft);
}
.folder.active {
  background: var(--active);
  color: #fff;
}
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.folder.active .badge {
  background: rgba(255, 255, 255, 0.25);
}
.badge:empty {
  display: none;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.account-info {
  flex: 1;
  min-width: 0;
}
.account-email {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-status {
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.logout {
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.logout:hover {
  color: var(--text);
}

/* ----------------------------- List pane -------------------------------- */
.list-pane {
  background: var(--bg-list);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px 8px;
}
.list-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.count {
  font-size: 12px;
  color: var(--text-soft);
}
.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort,
.refresh {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
}
.refresh {
  padding: 6px 9px;
  font-size: 14px;
}
.sort:hover,
.refresh:hover {
  background: var(--bg-soft);
}
.search {
  position: relative;
  margin: 6px 16px 10px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.5;
}
.search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 10px 34px;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.search input:focus {
  border-color: var(--accent);
}
.messages {
  flex: 1;
  overflow-y: auto;
}
.msg {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.msg:hover {
  background: #fff;
}
.msg.active {
  background: #eef2ff;
}
.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.msg-body {
  flex: 1;
  min-width: 0;
}
.msg-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.msg-from {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-date {
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.msg-subject {
  font-size: 13px;
  font-weight: 500;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-preview {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg.unread .msg-from,
.msg.unread .msg-subject {
  font-weight: 700;
}
.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unread-dot);
  position: absolute;
  right: 16px;
  bottom: 16px;
}
.list-end {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  padding: 16px;
}
.loading-row,
.empty-row {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 40px 16px;
}

/* ------------------------------ Reader ---------------------------------- */
.reader {
  background: #fff;
  overflow-y: auto;
}
.reader-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  gap: 12px;
}
.big-icon {
  font-size: 48px;
  opacity: 0.3;
}
.reader-content {
  padding: 24px 32px;
}
.reader-subject {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.reader-from {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.reader-from .msg-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.reader-from-info {
  flex: 1;
  min-width: 0;
}
.reader-from-name {
  font-size: 14px;
  font-weight: 600;
}
.reader-from-meta {
  font-size: 12px;
  color: var(--text-soft);
}
.reader-date {
  font-size: 12px;
  color: var(--text-faint);
}
.reader-html {
  font-size: 14px;
  line-height: 1.6;
  color: #2d3138;
  word-break: break-word;
}
.reader-html img {
  max-width: 100%;
  height: auto;
}
.reader-html a {
  color: var(--accent);
}
.reader-frame {
  width: 100%;
  border: none;
  min-height: 60vh;
}

.mobile-back {
  display: none;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--bg-list);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
  width: 100%;
}
.mobile-back:hover {
  background: #eef2ff;
}

/* --------------------------- Responsive --------------------------------- */
@media (min-width: 640px) {
  .login-screen {
    align-items: center;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 64px minmax(240px, 300px) 1fr;
  }
  .brand-name,
  .folder .fname,
  .account-info {
    display: none;
  }
}

@media (max-width: 768px) {
  .layout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sidebar {
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px 10px;
    gap: 4px;
  }
  .brand,
  .account {
    display: none;
  }
  .folders {
    flex-direction: row;
    flex: 1;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .folder {
    flex-shrink: 0;
    width: auto;
    padding: 8px 12px;
    gap: 8px;
  }
  .folder .fname {
    display: inline;
    flex: none;
  }
  .list-pane {
    flex: 1;
    min-height: 0;
    border-right: none;
  }
  .reader {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .app:not(.show-reader) .reader {
    display: none;
  }
  .app.show-reader .list-pane,
  .app.show-reader .sidebar {
    display: none;
  }
  .app.show-reader .reader {
    display: flex;
  }
  .app.show-reader .mobile-back {
    display: flex;
  }
  .reader-content {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
  }
  .reader-from {
    flex-wrap: wrap;
    gap: 10px;
  }
  .reader-date {
    width: 100%;
  }
  .reader-subject {
    font-size: 18px;
  }
  .list-header {
    padding: 12px 14px 6px;
  }
  .search {
    margin: 6px 12px 10px;
  }
  .msg {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 22px 18px;
    border-radius: 12px;
  }
  .login-logo h1 {
    font-size: 20px;
  }
  .admin-logout {
    font-size: 11px;
    padding: 5px 8px;
  }
  .tab,
  .admin-tab {
    font-size: 12px;
    padding: 10px 8px;
  }
  .saved-list {
    max-height: none;
  }
  .saved-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .saved-info {
    flex: 1 1 100%;
    min-width: 0;
  }
  .saved-item .saved-btn {
    flex: 1;
    min-height: 36px;
    padding: 8px 10px;
  }
  .batch-links-head {
    flex-wrap: wrap;
  }
  .batch-links-head .saved-btn {
    width: 100%;
    min-height: 36px;
  }
  .share-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .share-label {
    width: 100%;
  }
  .share-input {
    flex: 1 1 100%;
    min-width: 0;
  }
  .share-copy,
  .share-open {
    flex: 1;
    min-height: 36px;
  }
  .text-view-card {
    padding: 16px;
    border-radius: 12px;
    max-height: none;
  }
  .text-view-header {
    flex-direction: column;
    align-items: stretch;
  }
  .text-view-actions {
    width: 100%;
    align-self: stretch;
    flex-wrap: wrap;
  }
  .text-action {
    flex: 1;
    min-width: 120px;
    text-align: center;
    min-height: 40px;
  }
  .public-text-box {
    min-height: 240px;
    max-height: none;
  }
  .combo-inbox-btn {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 380px) {
  .list-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .sort {
    font-size: 11px;
    padding: 6px 8px;
  }
}
