/* Image Compressor Pro — light rich theme (shared patterns from PDF Pro) */
:root {
  --color-pri: #0D7377;
  --color-pri-dark: #095456;
  --color-pri-light: #E0F5F5;
  --color-pri-50: #F0FAFA;
  --color-acc: #E8930C;
  --color-acc-light: #FEF3C7;
  --color-acc-dark: #B87008;
  --color-surface: #F5F6F8;
  --color-ink: #111827;
  --color-ink-secondary: #6B7280;
  --color-ink-muted: #9CA3AF;
  --color-ink-faint: #D1D5DB;
  --color-border: #E5E7EB;
  --color-border-soft: rgba(229, 231, 235, 0.9);
  --font-display: "Space Grotesk", ui-sans-serif, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, sans-serif;
  --shadow-soft: 0 4px 24px rgba(13, 115, 119, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --marquee-height: 76px;
  --footer-height: 36px;
  --bottom-stack-height: calc(var(--marquee-height) + var(--footer-height));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.page-shell {
  min-height: 100%;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  background-color: #eef1f4;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 115, 119, 0.08), transparent),
    radial-gradient(circle at 1px 1px, #dde1e6 0.8px, transparent 0);
  background-size: 100% 100%, 28px 28px;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

/* Index uses light shell only — legacy dark sidebars are not used */
.page-shell .sidebar {
  display: none;
}

.page-shell main .workspace,
.page-shell main #phase2.content {
  flex: 1 1 auto;
  min-width: 0;
}

.hidden {
  display: none !important;
}

#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
  backdrop-filter: blur(8px);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.toast-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.toast-info {
  background: #f0f9ff;
  color: #075985;
  border: 1px solid #bae6fd;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 220;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-accent {
  height: 3px;
  background: linear-gradient(90deg, #0D7377, #E8930C, #0D7377);
  background-size: 200% 100%;
  animation: accentShift 4s ease infinite;
}

@keyframes accentShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 1 auto;
}

.header-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-pri), var(--color-pri-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 115, 119, 0.2);
  flex-shrink: 0;
}

.header-copy {
  min-width: 0;
  text-align: left;
}

.header-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ink);
  text-align: left;
}

.header-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  font-weight: 500;
  text-align: left;
}

.header-suite-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0 0.35rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  flex-shrink: 0;
}

@media (max-width: 1099px) {
  .header-suite-nav {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
    flex: 0 0 auto;
  }

  /* sn-root defaults to width:100% + center — keeps hamburger in the middle */
  .page-shell .header-suite-nav .sn-root {
    width: auto;
    justify-content: flex-end;
  }
}

.page-main {
  width: 100%;
}

.workspace {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.25rem calc(var(--bottom-stack-height) + 4rem);
}

.page-shell #upload-section {
  width: 100%;
  max-width: 100%;
}

.page-shell .drop-zone {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.drop-zone {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(13, 115, 119, 0.35), rgba(232, 147, 12, 0.25)) border-box;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13, 115, 119, 0.06);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: #fff;
}

.drop-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13, 115, 119, 0.04) 0%, transparent 70%);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.drop-zone:hover {
  box-shadow: 0 8px 32px rgba(13, 115, 119, 0.1);
}

.drop-zone:hover::before {
  opacity: 1;
}

.drop-zone.dragover {
  background:
    linear-gradient(#E0F5F5, #E0F5F5) padding-box,
    linear-gradient(135deg, #0D7377, #E8930C) border-box;
  transform: scale(1.005);
}

.drop-zone.dragover::before {
  opacity: 1;
}

.drop-zone.has-file {
  cursor: default;
  background: #fff;
  border: 1px solid var(--color-border);
  min-height: 0;
  padding: 1rem 1.25rem;
}

.drop-zone--idle.has-file {
  min-height: 0;
}

.drop-zone--idle {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon-wrap {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: var(--color-pri-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  color: var(--color-pri);
  font-size: 1.7rem;
}

.upload-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ink);
}

.upload-subtitle {
  margin: 0 0 1.25rem;
  color: var(--color-ink-secondary);
  font-size: 0.95rem;
}

.upload-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  background: var(--color-surface);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.loaded-file-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  position: relative;
}

.loaded-file-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--color-acc-light);
  color: var(--color-acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.loaded-file-meta {
  text-align: left;
  min-width: 0;
}

.loaded-file-name {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loaded-file-size {
  margin: 0.25rem 0 0;
  color: var(--color-ink-secondary);
  font-size: 0.78rem;
}

.remove-file-btn {
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--color-surface);
  color: var(--color-ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.remove-file-btn:hover {
  background: #FEF2F2;
  color: #EF4444;
}

.expert-band {
  margin-top: 1.125rem;
  padding: 0 0.15rem;
}

.expert-lead {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-ink-secondary);
  text-align: center;
  margin: 0 auto 0.875rem;
  max-width: 38rem;
}

.expert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1rem;
}

.expert-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.expert-item > i {
  color: var(--color-pri);
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  width: 1rem;
  text-align: center;
}

.expert-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.expert-item span {
  display: block;
  font-size: 0.66rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

.seo-content-container {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.seo-scroll {
  display: block;
  overflow: visible;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.seo-header {
  margin-bottom: 1.25rem;
}

.seo-h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.seo-h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.seo-lead {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--color-ink-secondary);
  margin: 0;
}

.seo-block {
  margin-bottom: 1.35rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

.seo-p {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--color-ink-secondary);
  margin: 0 0 0.75rem;
}

.seo-p--closing {
  margin-bottom: 0;
}

.seo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.seo-list li {
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--color-ink-secondary);
  padding-left: 1rem;
  position: relative;
}

.seo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-pri);
}

.seo-list strong {
  color: var(--color-ink);
  font-weight: 600;
}

.seo-link {
  color: var(--color-pri);
  text-decoration: none;
  font-weight: 500;
}

.seo-link:hover {
  text-decoration: underline;
}

.seo-footer {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.diagram-card {
  background: transparent;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 0.75rem;
  box-shadow: none;
}

.seo-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
}

.diagram-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.diagram-tab {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--color-ink-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diagram-tab:hover {
  border-color: rgba(13, 115, 119, 0.35);
  color: var(--color-pri-dark);
}

.diagram-tab.is-active {
  background: var(--color-pri-50);
  border-color: var(--color-pri);
  color: var(--color-pri-dark);
  font-weight: 600;
}

.diagram-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.diagram-toggle-btn {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--color-ink-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.diagram-toggle-btn:hover {
  border-color: rgba(13, 115, 119, 0.35);
}

.diagram-toggle-btn.is-active {
  background: var(--color-pri-50);
  border-color: var(--color-pri);
  color: var(--color-pri-dark);
  font-weight: 600;
}

.diagram-caption {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  margin: 0.6rem 0 0;
  min-height: 2.2em;
  transition: opacity 0.25s ease;
}

.diagram-caption.is-fading {
  opacity: 0.4;
}

.wf-circle {
  fill: #fff;
  stroke: #D1D5DB;
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.wf-node.is-active .wf-circle {
  fill: #0D7377;
  stroke: #095456;
}

.wf-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  fill: #6B7280;
  pointer-events: none;
  transition: fill 0.3s ease;
}

.wf-node.is-active .wf-num {
  fill: #fff;
}

.wf-label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #6B7280;
  pointer-events: none;
}

.wf-node.is-active .wf-label {
  fill: #0D7377;
}

.wf-progress-line {
  transition: x2 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.priv-box {
  transition: opacity 0.35s ease, stroke 0.35s ease;
}

.priv-box--local {
  fill: #F0FAFA;
  stroke: #0D7377;
  stroke-width: 2;
}

.priv-box--cloud {
  fill: #F9FAFB;
  stroke: #E5E7EB;
  stroke-width: 1.5;
}

.priv-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: #0D7377;
}

.priv-title--muted {
  fill: #9CA3AF;
}

.priv-icon-label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #0D7377;
}

.priv-icon-label--muted {
  fill: #9CA3AF;
}

.priv-status {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.priv-status--good {
  fill: #059669;
}

.priv-status--bad {
  fill: #9CA3AF;
}

.priv-highlight {
  stroke: #0D7377;
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.priv-highlight.is-visible {
  opacity: 1;
}

#privacy-diagram[data-view="cloud"] .priv-box--local {
  opacity: 0.45;
}

#privacy-diagram[data-view="cloud"] .priv-box--cloud {
  stroke: #EF4444;
  stroke-width: 2;
  fill: #FEF2F2;
}

#privacy-diagram[data-view="cloud"] .priv-title--muted {
  fill: #EF4444;
}

#privacy-diagram[data-view="cloud"] .priv-highlight {
  opacity: 0;
}

.dtype-panel {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.dtype-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.dtype-label {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  fill: #6B7280;
}

.preset-axis-label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #6B7280;
}

.preset-bar {
  fill: #D1D5DB;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.preset-bar.is-active {
  fill: url(#preset-grad);
  filter: drop-shadow(0 1px 3px rgba(13, 115, 119, 0.25));
}

.seo-faq {
  margin-bottom: 0.75rem;
}

.seo-faq-item {
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  margin-bottom: 0.45rem;
  background: transparent;
  overflow: hidden;
}

.seo-faq-item summary {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-ink);
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item summary::after {
  content: "+";
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-pri);
  flex-shrink: 0;
}

.seo-faq-item[open] summary::after {
  content: "−";
}

.seo-faq-item p {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--color-ink-secondary);
  margin: 0;
  padding: 0 0.85rem 0.65rem;
}

.section-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.fade-in-up {
  animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
}

.tool-title-sm {
  margin-bottom: 0;
}

.tool-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-ink-secondary);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preset-card {
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  background: #FFFFFF;
  user-select: none;
}

.preset-card:hover {
  border-color: var(--color-pri);
  background: #F0FAFA;
}

.preset-card.active {
  border-color: var(--color-pri);
  background: linear-gradient(160deg, #E0F5F5, #fff);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12), 0 4px 12px rgba(13, 115, 119, 0.08);
}

.preset-card:focus-visible {
  outline: 2px solid var(--color-pri);
  outline-offset: 2px;
}

.preset-card-icon-top {
  color: var(--color-ink-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.preset-card-icon-accent {
  color: var(--color-acc);
}

.preset-card-icon-warm {
  color: #F97316;
}

.preset-card-icon-danger {
  color: #EF4444;
}

.preset-card-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
}

.preset-card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}

.grayscale-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1.75rem;
}

.custom-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #D1D5DB;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-check.checked {
  background: #0D7377;
  border-color: #0D7377;
}

.custom-check.checked i {
  display: inline-block !important;
  color: #fff;
  font-size: 0.75rem;
}

.grayscale-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink);
}

.grayscale-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-actions-row {
  flex-direction: column;
}

.btn-primary,
.btn-success,
.btn-ghost,
.btn-danger-ghost {
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, #0D7377, #095456);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(13, 115, 119, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #6B7280;
  border: 2px solid #E5E7EB;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: #9CA3AF;
  color: #374151;
  background: #F9FAFB;
}

.btn-danger-ghost {
  background: transparent;
  color: #DC2626;
  border: 2px solid #FECACA;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

.btn-danger-ghost:hover {
  border-color: #DC2626;
  background: #FEF2F2;
}

.btn-block {
  width: 100%;
}

.btn-grow {
  flex: 1 1 auto;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.progress-percent {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-pri);
}

.progress-track {
  background: #E5E7EB;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0D7377, #095456);
  transition: width 0.35s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-ink-secondary);
}

.progress-actions {
  margin-top: 1.25rem;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.result-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-stats {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  gap: 1rem;
}

.result-label {
  font-size: 0.9rem;
  color: var(--color-ink-secondary);
  font-weight: 500;
}

.result-value {
  font-size: 0.9rem;
  color: var(--color-ink);
  font-weight: 600;
}

.result-value-accent {
  color: var(--color-pri-dark);
}

.result-bar-track {
  background: #F3F4F6;
  border-radius: 8px;
  height: 28px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.result-bar-fill-original {
  background: #D1D5DB;
  color: #6B7280;
}

.result-bar-fill-compressed {
  background: linear-gradient(90deg, #0D7377, #095456);
}

.reduction-badge-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  margin-bottom: 1.5rem;
}

.reduction-badge-compact i {
  color: #16A34A;
  font-size: 1.15rem;
}

.reduction-badge-copy {
  text-align: center;
}

.reduction-percent {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #15803D;
}

.reduction-label {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #16A34A;
  font-weight: 600;
}

.result-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  margin-bottom: 1.5rem;
}

.result-warning i {
  color: #F59E0B;
  margin-top: 0.2rem;
}

.result-warning-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #92400E;
}

.result-warning-copy {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: #B45309;
}

.preview-section {
  margin-bottom: 1.5rem;
}

.preview-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.preview-label {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-ink-muted);
}

.preview-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #F9FAFB;
}

.preview-thumb canvas {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bottom-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.marquee-band {
  min-height: var(--marquee-height);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
  overflow: hidden;
  padding: 0.5rem 0;
}

.marquee-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0.25rem 1rem;
  animation: marquee-rtl var(--marquee-duration, 55s) linear infinite;
  will-change: transform;
}

.marquee-track.is-paused {
  animation-play-state: paused;
}

@keyframes marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.premium-card {
  flex: 0 0 auto;
  width: 300px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 2px 12px rgba(13, 115, 119, 0.06);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

.premium-card:hover {
  border-color: rgba(13, 115, 119, 0.3);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.1);
  transform: translateY(-1px);
}

.premium-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.premium-card-icon--pri { background: #E0F5F5; color: #0D7377; }
.premium-card-icon--acc { background: #FEF3C7; color: #B87008; }
.premium-card-icon--green { background: #ECFDF5; color: #059669; }
.premium-card-icon--blue { background: #EFF6FF; color: #2563EB; }
.premium-card-icon--violet { background: #F5F3FF; color: #7C3AED; }

.premium-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: #111827;
  line-height: 1.25;
  margin: 0;
}

.premium-card-desc {
  font-size: 0.7rem;
  color: #6B7280;
  line-height: 1.4;
  margin: 0;
}

.site-footer {
  min-height: var(--footer-height);
  background: rgba(255, 255, 255, 0.92);
}

.footer-inner {
  max-width: 56rem;
  min-height: var(--footer-height);
  margin: 0 auto;
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-trust {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--color-ink-muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}

.footer-credit a {
  color: var(--color-pri);
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* ---- Phase 2: light workspace (matches phase 1 / PDF Pro) ---- */
.page-shell #phase2.content {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-shell .thumbnail-panel,
.page-shell .processing-area {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-shell .thumbnail-header h3,
.page-shell .preview-box h3,
.page-shell .upload-progress h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
}

.page-shell .control-group label,
.page-shell .file-info,
.page-shell .slider-labels span {
  color: var(--color-ink-secondary);
}

.page-shell .control-group input[type="number"],
.page-shell .control-group select,
.page-shell .horizontal-controls .control-group select {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink);
}

.page-shell .control-group select option:disabled {
  color: rgba(17, 24, 39, 0.28);
  cursor: not-allowed !important;
  opacity: 0.28;
}

.page-shell .control-group input[type="number"]:focus,
.page-shell .control-group select:focus {
  border-color: var(--color-pri);
  box-shadow: 0 0 0 2px rgba(13, 115, 119, 0.15);
  outline: none;
}

.page-shell .checkbox-group input[type="checkbox"] {
  accent-color: var(--color-pri);
}

.page-shell .slider-group input[type="range"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.page-shell .slider-group input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.page-shell .slider-group input[type="range"]::-webkit-slider-thumb {
  background: var(--color-pri);
}

.page-shell .slider-group input[type="range"]::-moz-range-thumb {
  background: var(--color-pri);
}

.page-shell .slider-group input[type="range"]:disabled::-webkit-slider-thumb,
.page-shell .slider-group input[type="range"]:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

.page-shell .control-hint,
.page-shell .slider-group.is-lossless label,
.page-shell .slider-group.is-lossless .control-hint {
  color: var(--color-ink);
}

.page-shell .control-hint {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.page-shell .slider-group.is-lossless .slider-labels {
  opacity: 0.28;
}

.page-shell .png-dimension-hint {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.page-shell .png-dimension-hint[hidden] {
  display: none;
}

.page-shell .png-dimension-hint:hover {
  text-decoration: underline;
}

.page-shell .png-dimension-hint:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.page-shell .processing-container,
.page-shell .processing-area,
.page-shell .preview-container,
.page-shell .preview-box {
  min-width: 0;
}

.page-shell .preview-container {
  width: 100%;
  gap: 1.25rem;
}

.page-shell .preview-box {
  flex: 1 1 0;
  max-width: 100%;
}

.page-shell .preview-box .image-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-shell .thumbnail-item {
  border-color: transparent;
  background: var(--color-surface);
}

.page-shell .thumbnail-item:hover {
  border-color: rgba(13, 115, 119, 0.25);
}

.page-shell .thumbnail-item.selected {
  border-color: var(--color-pri);
  box-shadow: 0 0 0 2px rgba(13, 115, 119, 0.15);
}

.page-shell .btn.upload-more-btn,
.page-shell .btn.back-btn {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}

.page-shell .btn.upload-more-btn:hover:not(:disabled),
.page-shell .btn.back-btn:hover:not(:disabled) {
  background: var(--color-pri-50);
  border-color: rgba(13, 115, 119, 0.3);
}

.page-shell .btn.compress-btn,
.page-shell .btn.download-btn,
.page-shell .btn.download-all-btn {
  background: linear-gradient(135deg, var(--color-pri), var(--color-pri-dark));
  background-image: linear-gradient(135deg, var(--color-pri), var(--color-pri-dark));
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(13, 115, 119, 0.28);
}

.page-shell .btn.compress-btn:hover:not(:disabled),
.page-shell .btn.download-btn:hover:not(:disabled),
.page-shell .btn.download-all-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.36);
}

.page-shell .btn.clear-all-btn {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.page-shell .btn.clear-all-btn:hover:not(:disabled) {
  background: #FEE2E2;
}

.page-shell .action-buttons-group {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-shell .modal {
  background-color: rgba(15, 23, 42, 0.45);
}

.page-shell .modal-content {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}

.page-shell .close-modal-btn {
  background: var(--color-pri);
}

.page-shell .close-modal-btn:hover {
  background: var(--color-pri-dark);
}

.page-shell .upload-progress {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.page-shell .progress-bar {
  background: var(--color-surface);
}

.page-shell .progress-fill {
  background: linear-gradient(90deg, var(--color-pri), #14B8A6);
}

.page-shell .processing-overlay {
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-ink);
}

.page-shell .processing-overlay .spinner {
  border-color: var(--color-surface);
  border-top-color: var(--color-pri);
}

.page-shell .preview-fallback {
  color: var(--color-ink-secondary);
}

.page-shell .preview-fallback .fallback-title {
  color: var(--color-ink);
}

.page-shell .progress-info {
  color: var(--color-ink-secondary);
}

/* Header logo image (replaces icon + title text on index) */
.header-brand--logo {
  flex: 0 0 auto;
  flex-shrink: 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.header-logo-image {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* Compact drop zone — matches PDF Compressor Pro proportions */
.page-shell .drop-zone {
  border-radius: 18px;
  padding: 1.95rem 1.15rem;
  background-color: #fff;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(13, 115, 119, 0.35), rgba(232, 147, 12, 0.25)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 4px 24px rgba(13, 115, 119, 0.06);
}

.page-shell .drop-zone--idle {
  min-height: 240px;
}

.page-shell .upload-icon-wrap {
  width: 3.65rem;
  height: 3.65rem;
  margin-bottom: 1.05rem;
  border-radius: 0.95rem;
}

.page-shell .upload-icon {
  font-size: 1.5rem;
  color: var(--color-pri);
}

.page-shell .upload-title {
  font-size: 1.2rem;
  margin-bottom: 0.42rem;
}

.page-shell .upload-subtitle {
  font-size: 0.88rem;
  margin-bottom: 1.05rem;
}

.page-shell .upload-pill {
  font-size: 0.75rem;
  padding: 0.5rem 0.9rem;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.05rem;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--color-pri), var(--color-pri-dark));
  box-shadow: 0 6px 18px rgba(13, 115, 119, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-browse:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 115, 119, 0.28);
}

/* Hide marquee while phase 2 workspace is active (avoids overlap) */
.page-shell.phase-working {
  --marquee-height: 0px;
  --bottom-stack-height: var(--footer-height);
}

.page-shell.phase-working .marquee-band {
  display: none;
}

/* Phase 2 — keep action buttons clear of fixed footer */
.page-shell.phase-working #phase2.content {
  padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px) + 4rem);
}

/* Footer — centered layout */
.page-shell .footer-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-shell .footer-copy,
.page-shell .footer-trust {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.priv-status--neutral {
  fill: #6B7280;
}

/* ---- Responsive: phase 1 shell + phase 2 spacing ---- */
.page-shell .workspace {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .page-shell #phase2.content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-shell .processing-container {
    gap: 1rem;
  }

  .page-shell .processing-area {
    padding: 1.15rem 1rem 1.5rem;
  }
}

/* Tablet+ (641px+): undo global style.css column/full-width rules for controls & buttons */
@media (min-width: 641px) {
  .page-shell .horizontal-controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .page-shell .action-buttons-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }

  .page-shell #phase2 .btn {
    width: auto;
    margin-bottom: 0;
  }
}

/* Wide screens: original + compressed previews side by side */
@media (min-width: 1025px) {
  .page-shell .preview-container {
    flex-direction: row;
  }

  .page-shell .preview-box {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Tablets & large phones: stack previews so the right box cannot clip off-screen */
@media (max-width: 1024px) {
  .page-shell .preview-container {
    flex-direction: column;
    gap: 1rem;
  }

  .page-shell .preview-box {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .page-shell .preview-box .image-container {
    max-height: min(18rem, 42vh);
    aspect-ratio: 4 / 3;
  }
}

/* Tablet portrait / large phones */
@media (max-width: 768px) {
  .page-shell .header-inner {
    padding: 0.65rem 0.85rem;
    gap: 0.45rem;
  }

  .page-shell .trust-badge {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }

  .page-shell .trust-badge span {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-shell .workspace {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .page-shell .seo-scroll {
    padding: 0;
  }

  .page-shell .upload-pill {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    line-height: 1.45;
    max-width: 100%;
  }

  .page-shell .footer-trust {
    gap: 0.35rem 0.55rem;
    justify-content: center;
  }

  .page-shell.phase-working #phase2.content {
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px) + 4.5rem);
  }

  .page-shell .action-buttons-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Phones */
@media (max-width: 640px) {
  :root {
    --marquee-height: 62px;
    --footer-height: 72px;
  }

  .page-shell .header-inner {
    padding: 0.58rem 0.75rem;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .page-shell .trust-badge {
    display: none;
  }

  .header-brand--logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    max-width: 46%;
  }

  .header-logo-image {
    height: 40px;
    max-width: 100%;
    width: auto;
  }

  .page-shell .header-suite-nav {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
  }

  .page-shell .header-suite-nav .sn-root {
    width: auto;
    justify-content: flex-end;
  }

  .page-shell .workspace {
    padding: 0.8rem 0.75rem calc(var(--bottom-stack-height) + 5.5rem);
  }

  .page-shell .seo-content-container {
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
  }

  .page-shell .drop-zone {
    padding: 1.35rem 0.85rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .page-shell .drop-zone--idle {
    min-height: 200px;
  }

  .page-shell .upload-title {
    font-size: 1.05rem;
  }

  .page-shell .upload-subtitle {
    font-size: 0.82rem;
  }

  .page-shell .site-footer .footer-inner {
    padding: 0.55rem 0.75rem 0.65rem;
  }

  .page-shell .footer-copy,
  .page-shell .footer-trust {
    font-size: 0.65rem;
    gap: 0.3rem 0.45rem;
  }

  .page-shell .premium-card {
    width: 210px;
  }

  .page-shell #phase2.content {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .page-shell .processing-area {
    padding: 0.9rem 0.75rem 1.75rem;
  }

  .page-shell .preview-box .image-container {
    max-height: min(14rem, 36vh);
  }

  .page-shell.phase-working #phase2.content {
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px) + 5.5rem);
  }

  .page-shell .action-buttons-group {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
  }

  .page-shell .action-buttons-group .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Narrow phones */
@media (max-width: 400px) {
  .header-logo-image {
    height: 36px;
    max-width: 120px;
  }

  .page-shell .btn-browse {
    width: 100%;
    max-width: 14rem;
  }

  .page-shell .upload-pill {
    font-size: 0.7rem;
    padding: 0.45rem 0.65rem;
  }

  .page-shell .footer-trust span:not(.footer-credit) {
    flex: 1 1 100%;
    justify-content: center;
  }
}
