:root {
  --bg: #f3f4f8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --shell: #1f4e78;
  --shell-dark: #123554;
  --accent: #0f6cbd;
  --text: #142033;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.28);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --page-bg: #ffffff;
  --page-width: 794px;
  --page-width-effective: 794px;
  --page-height: 1123px;
  --page-gap: 0px;
  --page-pad-y: 82px;
  --page-pad-x: 88px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.75), transparent 28%),
    radial-gradient(circle at top right, rgba(196, 181, 253, 0.22), transparent 22%),
    linear-gradient(180deg, #eef4fb 0%, #edf0f5 42%, #eef1f7 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

body.landing-page {
  background: #f8fafc;
  color: #0f172a;
}

.landing-shell {
  min-height: 100vh;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(10px);
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.editor-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.brand-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.brand-icon.small {
  width: 20px;
  height: 20px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-nav a,
.footer-links a {
  color: #334155;
  text-decoration: none;
}

.site-nav {
  gap: 12px;
  align-items: stretch;
}

.nav-home-link,
.nav-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
}

.nav-home-link:hover,
.nav-category-link:hover,
.nav-home-link:focus-visible,
.nav-category-link:focus-visible,
.nav-category-link.active {
  background: #eef4ff;
  color: #1d4ed8;
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.nav-parent-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-parent-row .nav-category-link {
  flex: 1;
}

.nav-dropdown-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  background: #eef4ff;
  border-color: #bfdbfe;
  outline: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  line-height: 1.45;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: #eef4ff;
  color: #1d4ed8;
  outline: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.landing-button.primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.landing-button.secondary {
  background: #fff;
  color: #0f172a;
  border-color: #dbe4f0;
}

.hero-section {
  padding: 72px 72px 96px;
  background:
    radial-gradient(circle at 15% 18%, rgba(191, 219, 254, 0.55), transparent 34%),
    radial-gradient(circle at 85% 30%, rgba(219, 234, 254, 0.48), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 54px 0 20px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p,
.section-heading p,
.cta-card p {
  margin: 0 auto;
  max-width: 760px;
  color: #64748b;
  font-size: 1.12rem;
  line-height: 1.5;
}

.feature-section,
.cta-section {
  padding: 80px 72px;
}

.feature-section {
  background: #f1f5f9;
}

.category-spotlight-section {
  padding: 0 72px 80px;
}

.category-spotlight-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-spotlight-card,
.category-tool-card {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.category-spotlight-card h3,
.category-tool-card h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.category-spotlight-card p,
.category-tool-card p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.65;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2,
.cta-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #e8efff;
  color: #2563eb;
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.5;
}

.cta-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  text-align: center;
}

.cta-card .landing-button {
  margin-top: 26px;
}

.seo-section {
  padding: 0 72px 88px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.seo-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.28), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.counter-page {
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.42), transparent 24%),
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.32), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.counter-main {
  padding: 28px 72px 84px;
}

.counter-hero {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 42px 0 16px;
}

.counter-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.counter-hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.counter-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.6;
}

.counter-workspace {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: start;
}

.counter-input-card,
.counter-info-card {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.07);
}

.counter-input-card {
  padding: 26px;
}

.counter-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.counter-toolbar h2,
.counter-info-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.counter-toolbar p {
  margin: 0;
  color: #64748b;
}

.counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.counter-action-button {
  min-width: 0;
  padding: 10px 16px;
}

.counter-textarea {
  width: 100%;
  min-height: 430px;
  resize: vertical;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 22px 24px;
  color: #0f172a;
  font: 500 1rem/1.7 "Aptos", "Segoe UI", sans-serif;
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.08);
}

.counter-textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.counter-notes {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 0.94rem;
}

.counter-stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.counter-stat-card {
  padding: 22px 20px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.counter-stat-card.accent {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #fff;
}

.counter-stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.counter-stat-label {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.counter-stat-card.accent .counter-stat-label {
  color: rgba(255, 255, 255, 0.82);
}

.counter-info-section {
  max-width: 1200px;
  margin: 26px auto 0;
}

.counter-info-card {
  padding: 30px;
}

.counter-info-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.counter-info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.counter-info-item {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(219, 234, 254, 0.9);
}

.counter-info-item h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.counter-info-item p {
  font-size: 0.97rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.converter-page {
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.42), transparent 25%),
    radial-gradient(circle at top right, rgba(196, 181, 253, 0.18), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.converter-main {
  padding: 28px 72px 84px;
}

.converter-hero {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 42px 0 16px;
}

.converter-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8efff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.converter-hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 820px;
  font-size: clamp(2.6rem, 4.8vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.converter-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.6;
}

.converter-workspace {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.converter-panel,
.converter-stat-card {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.07);
}

.converter-upload-panel,
.converter-info-card {
  padding: 26px;
}

.converter-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.converter-panel-header h2,
.converter-info-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.converter-panel-header p,
.converter-info-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.converter-action-button {
  min-width: 0;
  padding: 10px 16px;
}

.converter-dropzone {
  width: 100%;
  min-height: 240px;
  border: 1.5px dashed rgba(96, 165, 250, 0.75);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.34), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.converter-dropzone:hover,
.converter-dropzone.is-dragging {
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.converter-dropzone strong {
  font-size: 1.2rem;
}

.converter-dropzone span {
  color: #64748b;
}

.converter-dropzone-icon {
  font-size: 2rem;
}

.converter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.converter-status-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 0.94rem;
}

.converter-sidebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.converter-stat-card {
  padding: 22px 20px;
}

.converter-stat-card.accent {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #fff;
}

.converter-stat-label {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.converter-stat-card.accent .converter-stat-label {
  color: rgba(255, 255, 255, 0.82);
}

.converter-stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.95rem;
  letter-spacing: -0.04em;
}

.converter-stat-text {
  font-size: 1.1rem;
  line-height: 1.35;
}

.converter-preview-section,
.converter-info-section {
  max-width: 1200px;
  margin: 26px auto 0;
}

.converter-preview-section .converter-panel {
  padding: 26px;
}

.converter-preview {
  min-height: 420px;
  padding: 24px;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #111827;
  font-size: 1rem;
  line-height: 1.7;
}

.converter-preview p {
  margin: 0 0 14px;
}

.converter-empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
}

.converter-empty-state strong {
  color: #0f172a;
  font-size: 1.08rem;
}

.converter-info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.converter-info-item {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(219, 234, 254, 0.9);
}

.converter-info-item h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.converter-info-item p {
  font-size: 0.97rem;
}

.blog-page {
  background:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.42), transparent 24%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.26), transparent 20%),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
}

.blog-main,
.blog-article-main {
  padding: 28px 72px 88px;
}

.blog-hero,
.article-hero-wrap {
  max-width: 1200px;
  margin: 0 auto 32px;
}

.blog-hero-copy,
.article-hero-card {
  padding: 28px 0 10px;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8efff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-hero-copy h1,
.article-hero-card h1 {
  margin: 18px 0 14px;
  max-width: 920px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.blog-hero-copy p,
.article-intro {
  max-width: 820px;
  margin: 0;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-featured-wrap,
.blog-grid-section {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.07);
}

.blog-featured-media img,
.blog-card-image,
.article-hero-image,
.article-inline-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.blog-featured-media img,
.article-hero-image {
  border-radius: 22px;
}

.blog-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.blog-chip.soft {
  background: #e8efff;
  color: #1d4ed8;
}

.blog-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.blog-featured-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.blog-featured-copy p {
  margin: 0 0 22px;
  color: #475569;
  line-height: 1.7;
  font-size: 1.02rem;
}

.blog-heading {
  margin-top: 34px;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card,
.blog-mini-card,
.article-sidebar-card,
.article-content,
.article-hero-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.06);
}

.blog-card {
  overflow: hidden;
}

.blog-card.large {
  grid-column: span 2;
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
}

.blog-card-body,
.blog-mini-card-body {
  padding: 22px;
}

.blog-card-body h3,
.blog-mini-card-body h3,
.article-cta h3 {
  margin: 14px 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.blog-card-body p,
.blog-mini-card-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 90px;
}

.article-sidebar-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.article-sidebar-card a {
  color: #334155;
  text-decoration: none;
}

.article-hero-card {
  padding: 26px;
}

.article-hero-image {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
}

.article-content {
  padding: 32px;
}

.article-content section + section {
  margin-top: 30px;
}

.article-content h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.article-content h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.article-content p {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.8;
  font-size: 1.04rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #475569;
  line-height: 1.8;
  font-size: 1.02rem;
}

.article-content li + li {
  margin-top: 8px;
}

.article-inline-image {
  margin: 12px 0 20px;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
}

.article-cta {
  margin-top: 34px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.article-cta p {
  margin-bottom: 18px;
}

.seo-heading {
  margin-bottom: 34px;
}

.seo-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

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

.seo-block {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.seo-block h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.seo-block p {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.65;
}

.seo-list,
.seo-checks {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}

.seo-checks {
  list-style: none;
  padding-left: 0;
}

.seo-checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.seo-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: 700;
}

.seo-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.seo-highlight .landing-button {
  align-self: flex-start;
  margin-top: 6px;
}

.landing-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px 72px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: #f1f5f9;
  color: #334155;
}

.footer-categories {
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto;
  align-items: start;
  gap: 28px;
}

.footer-brand-column {
  display: grid;
  gap: 12px;
}

.footer-summary {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 0.96rem;
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-section {
  display: grid;
  gap: 10px;
}

.footer-section a {
  color: #475569;
  text-decoration: none;
}

.footer-section-title {
  color: #0f172a;
  font-weight: 700;
}

.footer-copy {
  text-align: right;
}

.category-page {
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.42), transparent 24%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.24), transparent 20%),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
}

.category-main {
  padding: 28px 72px 88px;
}

.category-hero {
  max-width: 1200px;
  margin: 0 auto 28px;
}

.category-hero-copy {
  padding: 28px 0 10px;
}

.category-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8efff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 860px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.category-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.65;
}

.category-grid-section {
  max-width: 1200px;
  margin: 0 auto;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.language-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.top-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--shell-dark), var(--shell));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.shell-spacer,
.group-content,
.stack-actions,
.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shell-spacer:last-child {
  justify-content: flex-end;
}

.document-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.document-title-input {
  width: min(100%, 360px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.cloud-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.icon-button,
.file-button,
.tool-button,
.style-card,
.tab {
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#importFile {
  display: none;
}

#importWordFile {
  display: none;
}

.ribbon-tabs {
  display: flex;
  gap: 6px;
  padding: 6px 14px 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.tab {
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  font-size: 0.92rem;
}

.tab.active {
  color: var(--accent);
  background: var(--panel);
  border-color: var(--border);
  border-bottom-color: transparent;
}

.ribbon {
  padding: 0 14px 10px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.ribbon-panel {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0 10px 10px 10px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ribbon-panel.active {
  display: flex;
}

#tab-home {
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow-x: auto;
}

.file-panel {
  border-radius: 0 10px 10px 10px;
  background: #f8fbff;
}

.file-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
}

.file-menu-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.file-menu-title {
  font-weight: 700;
}

.file-menu-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.ribbon-group {
  display: grid;
  gap: 4px;
  padding-right: 10px;
  border-right: 1px solid var(--border);
  align-content: start;
  flex-shrink: 0;
}

.ribbon-group:last-child {
  border-right: none;
}

.group-title {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.group-content-wrap {
  flex-wrap: wrap;
}

#tab-home .group-content-wrap {
  flex-wrap: nowrap;
}

.tool-button,
.style-card,
select,
input[type="text"] {
  padding: 5px 7px;
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.paragraph-tools {
  gap: 6px;
  flex-wrap: nowrap;
}

.icon-tool {
  min-width: 34px;
  padding: 5px;
  overflow: hidden;
}

.view-find-tools {
  align-items: center;
  gap: 6px;
}

.view-find-tools input[type="text"] {
  width: 130px;
}

#styleSelect {
  min-width: 110px;
}

#lineSpacing {
  min-width: 64px;
}

#fontFamily {
  min-width: 148px;
}

.direction-button {
  min-width: 34px;
  padding: 5px;
}

.direction-button.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.direction-icon {
  display: grid;
  gap: 2px;
  width: 18px;
  height: 14px;
}

.direction-icon .line {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.direction-icon .line.long {
  width: 100%;
}

.direction-icon .line.mid {
  width: 72%;
}

.direction-icon .line.short {
  width: 56%;
}

.direction-icon .arrow {
  position: relative;
  display: block;
  width: 10px;
  height: 2px;
  margin-top: 1px;
  border-radius: 999px;
  background: #2563eb;
}

.direction-icon .arrow::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.direction-icon.ltr {
  justify-items: start;
}

.direction-icon.ltr .arrow::after {
  right: -1px;
  border-left: 5px solid #2563eb;
}

.direction-icon.rtl {
  justify-items: end;
}

.direction-icon.rtl .arrow::after {
  left: -1px;
  border-right: 5px solid #2563eb;
}

.align-icon,
.list-icon,
.indent-icon {
  display: inline-grid;
  width: 18px;
  height: 14px;
}

.align-icon {
  gap: 2px;
}

.align-icon span {
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.align-icon.left span:nth-child(1),
.align-icon.left span:nth-child(3) {
  width: 100%;
}

.align-icon.left span:nth-child(2),
.align-icon.left span:nth-child(4) {
  width: 72%;
}

.align-icon.center {
  justify-items: center;
}

.align-icon.center span:nth-child(1),
.align-icon.center span:nth-child(3) {
  width: 100%;
}

.align-icon.center span:nth-child(2),
.align-icon.center span:nth-child(4) {
  width: 72%;
}

.align-icon.right {
  justify-items: end;
}

.align-icon.right span:nth-child(1),
.align-icon.right span:nth-child(3) {
  width: 100%;
}

.align-icon.right span:nth-child(2),
.align-icon.right span:nth-child(4) {
  width: 72%;
}

.align-icon.justify span {
  width: 100%;
}

.list-icon {
  gap: 2px;
  align-items: center;
}

.list-icon span {
  position: relative;
  display: block;
}

.list-icon.bullets span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #334155;
}

.list-icon.bullets span::after,
.list-icon.numbered span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: #334155;
}

.list-icon.numbered {
  width: 20px;
  gap: 1px;
  align-content: center;
}

.list-icon.numbered .number-row {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 2px;
}

.list-icon.numbered .digit {
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  font-family: Arial, sans-serif;
}

.list-icon.numbered .rule {
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.indent-icon {
  position: relative;
  gap: 2px;
}

.indent-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.indent-icon span:nth-child(1),
.indent-icon span:nth-child(3) {
  width: 100%;
}

.indent-icon span:nth-child(2) {
  width: 72%;
}

.indent-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.indent-icon.indent::after {
  left: -1px;
  border-left: 5px solid #0f6cbd;
}

.indent-icon.outdent::after {
  right: -1px;
  border-right: 5px solid #0f6cbd;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(210px, 250px) 1fr minmax(220px, 260px);
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.left-rail,
.right-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.rail-blank {
  min-height: 180px;
}

.rail-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rail-card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.outline-list {
  display: grid;
  gap: 10px;
}

.outline-link {
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(241, 245, 249, 0.9);
}

.muted {
  color: var(--muted);
}

.editor-stage {
  min-width: 0;
}

.ruler {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  margin: 0 auto 14px;
  width: min(100%, calc(var(--page-width-effective) + 64px));
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ruler.hidden {
  display: none;
}

.ruler span {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  position: relative;
}

.ruler span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 1px;
  height: 10px;
  background: rgba(100, 116, 139, 0.4);
}

.page-shell {
  position: relative;
  overflow: auto;
  width: min(100%, var(--page-width-effective));
  margin: 0 auto;
  padding: 8px 0 30px;
}

.editor-bottom-bar {
  width: min(100%, var(--page-width-effective));
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 6px 8px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-guides {
  display: grid;
  gap: var(--page-gap);
}

.page-guide {
  min-height: var(--page-height);
  background: var(--page-bg);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: 6px;
}

.page-flow {
  position: absolute;
  inset: 8px 0 30px;
  padding: var(--page-pad-y) var(--page-pad-x);
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}

.editor {
  position: relative;
  min-height: calc(var(--page-height) - (var(--page-pad-y) * 2));
  outline: none;
  font-size: 12pt;
  line-height: 1.5;
  pointer-events: auto;
}

.editor[dir="rtl"] {
  text-align: right;
}

.editor.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 0;
  left: 0;
  color: #94a3b8;
  pointer-events: none;
}

.editor h1,
.editor h2,
.editor h3 {
  font-family: "Libre Baskerville", Georgia, serif;
}

.editor img {
  max-width: 100%;
  border-radius: 8px;
}

.editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.editor td,
.editor th {
  border: 1px solid #cbd5e1;
  padding: 10px;
}

.editor a {
  color: var(--accent);
}

.page-break {
  display: block;
  width: calc(100% + 40px);
  margin: 30px -20px;
  border-top: 2px dashed rgba(15, 108, 189, 0.4);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

input[type="text"] {
  width: 100%;
  border-radius: 10px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.focus-mode .left-rail,
.focus-mode .right-rail,
.focus-mode .ribbon,
.focus-mode .ribbon-tabs {
  display: none;
}

.focus-mode .workspace {
  grid-template-columns: 1fr;
}

.theme-warm {
  --panel: rgba(255, 249, 240, 0.9);
  --panel-strong: #fffdf8;
  --page-bg: #fffaf2;
}

.theme-midnight {
  --panel: rgba(17, 24, 39, 0.86);
  --panel-strong: rgba(30, 41, 59, 0.95);
  --text: #e2e8f0;
  --muted: #cbd5e1;
  --page-bg: #f8fafc;
}

.icon-button:hover,
.file-button:hover,
.tool-button:hover,
.style-card:hover,
.tab:hover {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .landing-header,
  .feature-section,
  .cta-section,
  .category-spotlight-section,
  .seo-section,
  .hero-section,
  .landing-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .category-main,
  .blog-main,
  .blog-article-main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .category-spotlight-grid,
  .category-card-grid,
  .language-card-grid,
  .footer-sections {
    grid-template-columns: 1fr;
  }

  .counter-main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .converter-main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .counter-workspace {
    grid-template-columns: 1fr;
  }

  .counter-info-grid {
    grid-template-columns: 1fr;
  }

  .converter-workspace {
    grid-template-columns: 1fr;
  }

  .converter-info-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-card,
  .article-layout,
  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .left-rail,
  .right-rail {
    position: static;
  }
}

@media (max-width: 840px) {
  .landing-header,
  .landing-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .landing-header {
    display: grid;
    gap: 14px;
  }

  .landing-nav,
  .hero-actions,
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-home-link,
  .nav-category-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-parent-row {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .counter-toolbar,
  .counter-notes {
    flex-direction: column;
    align-items: stretch;
  }

  .converter-panel-header,
  .converter-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .counter-actions {
    justify-content: flex-start;
  }

  .converter-sidebar {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-categories {
    justify-items: stretch;
    text-align: left;
  }

  .footer-copy {
    text-align: left;
  }

  .counter-stats-panel {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: center;
  }

  .top-shell {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .document-heading,
  .shell-spacer {
    justify-content: center;
  }

  .editor-brand {
    justify-self: center;
  }

  .document-heading {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .document-title-input {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .cloud-pill {
    align-self: center;
  }

  .ribbon-tabs {
    padding: 6px 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ribbon-tabs::-webkit-scrollbar,
  #tab-home::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    padding: 8px 12px;
  }

  .ribbon {
    padding: 0 10px 10px;
  }

  .ribbon-panel {
    padding: 8px;
    gap: 10px;
  }

  #tab-home {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
    scroll-snap-type: none;
  }

  .ribbon-group {
    scroll-snap-align: start;
    width: 100%;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .ribbon-group:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  #tab-home .group-content-wrap,
  .paragraph-tools {
    flex-wrap: wrap;
  }

  .file-menu-grid {
    grid-template-columns: 1fr;
  }

  .view-find-tools {
    flex-wrap: wrap;
  }

  .view-find-tools input[type="text"] {
    width: min(100%, 170px);
  }

  #fontFamily {
    min-width: 136px;
  }

  #styleSelect {
    min-width: 96px;
  }

  .workspace {
    gap: 12px;
    padding: 12px 10px 18px;
  }

  .left-rail,
  .right-rail {
    display: none;
  }

  .editor-page {
    --page-pad-y: 36px;
    --page-pad-x: 20px;
    --page-width: min(100vw - 20px, 794px);
  }

  .ruler {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 16px;
    border-radius: 14px;
  }

  .page-shell,
  .editor-bottom-bar {
    width: 100%;
  }

  .page-shell {
    padding: 4px 0 18px;
  }

  .page-flow {
    inset: 4px 0 18px;
  }

  .page-guide {
    border-radius: 14px;
    min-height: 980px;
  }

  .editor-bottom-bar {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 4px 0;
  }

  .status-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px 12px;
  }

  .status-left,
  .status-right {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .top-shell {
    padding: 10px;
  }

  .editor-page {
    --page-pad-y: 28px;
    --page-pad-x: 14px;
    --page-width: min(100vw - 14px, 794px);
  }

  .editor-brand {
    font-size: 0.95rem;
  }

  .document-title-input {
    padding: 9px 12px;
    font-size: 1rem;
  }

  .cloud-pill {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .tab,
  .tool-button,
  select,
  input[type="text"] {
    font-size: 0.84rem;
  }

  .tab {
    padding: 8px 11px;
  }

  .icon-tool,
  .direction-button {
    min-width: 32px;
  }

  .group-title {
    font-size: 0.6rem;
  }

  .workspace {
    padding: 10px 7px 16px;
  }

  .ruler {
    padding: 8px 10px;
  }

  .ruler span {
    font-size: 0.68rem;
  }

  .page-guide {
    min-height: 900px;
  }

  .editor {
    font-size: 11pt;
  }

  .editor-bottom-bar,
  .status-bar {
    font-size: 0.78rem;
  }
}
