.account-card {
  max-width: 760px;
}

html[data-auth-view="pending"] .app,
html[data-auth-view="login"] .app {
  display: none !important;
}
html[data-auth-view="app"] .auth-gate,
html[data-auth-view="cached"] .auth-gate {
  display: none;
}
html[data-auth-view="cached"] .reader-list-empty,
html[data-auth-view="cached"] .reader-placeholder {
  visibility: hidden;
}
.auth-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.auth-gate-card {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 12px 40px #193b3b08;
}
.auth-gate-card > img {
  width: 160px;
  height: auto;
  margin-bottom: 28px;
}
.auth-gate-card .account-access {
  max-width: none;
}
.auth-gate-card > div > .error {
  margin-bottom: 12px;
}
.account-content-skeleton {
  padding: 32px;
  display: grid;
  gap: 18px;
  width: 100%;
}
.account-content-skeleton span {
  display: block;
  height: 16px;
  max-width: 280px;
  border-radius: 6px;
  background: #dcebe6;
}
.account-content-skeleton span:nth-child(2) {
  width: 75%;
}
.account-content-skeleton span:nth-child(3) {
  width: 55%;
}
@media (max-width: 480px) {
  .auth-gate-card {
    padding: 24px;
  }
}

.saved-list-header .saved-list-actions {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
}
.cloud-refresh,
.cloud-delete {
  transition:
    color 160ms,
    background 160ms;
}
.cloud-refresh:hover {
  background: #dceee6;
  color: #086a63;
}
.cloud-library-status {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: -6px 2px 14px;
  color: #536c66;
  font-size: 11px;
  line-height: 1.6;
}
.cloud-library-status svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.cloud-library-status.has-error {
  color: #974432;
}
.cloud-refresh[aria-busy="true"] svg {
  animation: cloud-refresh-spin 1s linear infinite;
}
.cloud-delete:hover,
.cloud-delete:focus-visible {
  background: #fae9e5;
  color: #a43832;
}
.cloud-delete-title {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.btn.danger {
  background: #a43832;
  border-color: #a43832;
  color: white;
}
.btn.danger:hover {
  background: #8d2d28;
  border-color: #8d2d28;
}
@keyframes cloud-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .saved-list-actions:has(.cloud-refresh) .reader-icon-btn,
  .cloud-delete {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-refresh[aria-busy="true"] svg {
    animation: none;
  }
  .cloud-refresh,
  .cloud-delete {
    transition: none;
  }
}

#cloud-capture .caption {
  margin: 10px 0 16px;
  font-size: 12px;
  line-height: 1.7;
}
.capture-import-summary {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.capture-import-selection {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
.capture-import-rows {
  max-height: 280px;
  overflow: auto;
}
.capture-import-rows .import-row > span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.capture-import-rows .import-row > small {
  flex: 0 0 70px;
  text-align: right;
}
.capture-import-rows .import-row strong {
  font-weight: 500;
}
#cloud-capture [data-import-progress] {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.account-access {
  max-width: 440px;
}
.account-card h2 {
  font-size: 21px;
}
.account-description {
  margin: 8px 0 22px;
  color: var(--muted);
}
.account-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.account-tabs button {
  flex: 1;
  padding: 8px 16px;
  border-radius: 7px;
}
.account-tabs button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--purple);
  box-shadow: 0 1px 4px #064f4910;
  font-weight: 600;
}
.account-password-control {
  display: flex;
  align-items: center;
  border: 1px solid #c6e0d4;
  border-radius: 8px;
  background: white;
}
.account-password-control:focus-within {
  border-color: #3aa790;
  box-shadow: 0 0 0 3px #ddede4;
}
.account-password-control .input {
  border: 0;
  box-shadow: none;
  min-width: 0;
}
.account-password-toggle {
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--purple);
}
.account-password-hint,
.account-provider-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.7;
}
.account-form-status {
  font-size: 13px;
  margin-top: 14px;
}
.account-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
}
.account-text-action {
  color: var(--purple);
  display: block;
  margin: 14px auto 0;
  font-size: 13px;
}
.account-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin: 26px 0 16px;
}
.account-divider::before,
.account-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.account-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.account-social {
  flex: 1 1 160px;
  min-height: 42px;
}
.account-provider-symbol {
  font-weight: 700;
  font-size: 16px;
}
.account-login-methods {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}
.account-login-methods h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.account-login-methods .account-social-actions {
  margin-top: 12px;
}
.account-email {
  overflow-wrap: anywhere;
}
.account-inline-status {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--sk-muted);
}
.account-inline-status:empty {
  display: none;
}
.cloud-list-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 68px;
  padding: 18px 0 8px;
  color: var(--sk-ink-soft);
  font-size: 12px;
}
.cloud-list-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cloud-list-footer > div > span {
  opacity: 0.7;
}
.cloud-list-footer button {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  background: var(--sk-card);
  color: var(--sk-primary);
  cursor: pointer;
}
.cloud-list-footer button:focus-visible {
  outline: 2px solid var(--sk-primary);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .account-social {
    flex-basis: 100%;
  }
  .account-card {
    padding: 20px;
  }
}
.capture-unified-input {
  min-height: 148px;
  resize: vertical;
  line-height: 1.65;
  padding: 12px 14px;
}
.capture-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.capture-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--sk-paper-soft);
  color: var(--sk-muted);
  font-size: 11px;
  line-height: 1.5;
  max-width: 100%;
  word-break: break-all;
}
.capture-mode-pill.is-link {
  background: #e3f0e8;
  color: #086a63;
  font-weight: 500;
}
.capture-mode-pill.is-note {
  background: #f3efe4;
  color: #6b4e24;
  font-weight: 500;
}
.capture-shortcut-hint {
  flex-shrink: 0;
  color: var(--sk-muted);
  font-size: 11px;
}
.auth-gate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #f2c8c8;
  border-radius: 10px;
  background: #fdf4f4;
}
.auth-gate-banner .error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9f2d2d;
}
.auth-gate-retry {
  flex-shrink: 0;
  min-height: 30px;
  padding: 4px 11px;
  border-color: #e6b6b6;
  border-radius: 8px;
  background: #ffffff;
  color: #8f2626;
  font-size: 12px;
  font-weight: 500;
}
.auth-gate-retry:hover {
  border-color: #d79a9a;
  background: #fff8f8;
}
