:root {
  color-scheme: light;
  /* Professional color palette - avoiding LinkedIn brand colors */
  --paper: #f8f9fa;
  --paper-deep: #f1f3f5;
  --surface: #ffffff;
  --ink: #212529;
  --ink-light: #495057;
  --muted: #6c757d;
  --muted-light: #adb5bd;
  --line: #dee2e6;
  --accent: #28a745; /* Green accent - professional and distinct */
  --accent-dark: #218838;
  --accent-light: #d4edda;
  --sage: #155724;
  --soft-sage: #d1e7dd;
  --warning: #ffc107;
  --error: #dc3545;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

button, textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 167, 69, 0.4);
  outline-offset: 3px;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Skip link for accessibility */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

/* Language Toggle Button */
.lang-toggle {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle:hover {
  background: var(--accent-dark);
}

.lang-toggle:focus {
  outline: 3px solid rgba(40, 167, 69, 0.4);
  outline-offset: 2px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  padding: 6px;
  display: flex;
  align-items: end;
  gap: 3px;
  border-radius: 10px;
  background: var(--ink);
  transform: rotate(-4deg);
}

.brand-mark span {
  width: 5px;
  border-radius: 4px;
  background: var(--accent);
}

.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 14px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.brand-name b {
  font-weight: 800;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Header layout with language toggle */
.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header > *:nth-child(3) {
  margin-left: auto;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
}

/* Ad slots */
.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px dashed #ced4da;
  color: #adb5bd;
  background: rgba(255, 255, 255, 0.4);
  margin: 20px auto;
  border-radius: 8px;
}

.ad-slot-leaderboard {
  width: min(728px, 100%);
  height: 90px;
}

.ad-label {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #868e96;
}

.ad-placeholder-copy {
  font-size: 12px;
  letter-spacing: 0.05em;
}

main {
  padding: 0 0 80px;
}

/* Intro section */
.intro {
  margin: 60px 0 40px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--accent);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--ink);
}

h1 span {
  color: var(--sage);
}

.intro-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== MOBILE TABS (visible only on mobile) ===== */
.mobile-tabs {
  display: flex;
  gap: 0;
  position: sticky;
  top: 77px;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.mobile-tab {
  flex: 1;
  padding: 14px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.mobile-tab:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.02);
}

.mobile-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mobile-tab span {
  position: relative;
  padding-bottom: 10px;
}

/* ===== WORKSPACE ===== */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Editor Panel */
.editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.draft-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.draft-indicator > span {
  width: 7px;
  height: 7px;
  background: var(--accent-light);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fa;
}

.tool-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-light);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.tool-button:hover {
  background: #e9ecef;
  color: var(--ink);
}

.tool-button:active {
  transform: translateY(1px);
}

.tool-bold > span:first-child {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.tool-italic > span:first-child {
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.tool-clear {
  margin-left: auto;
  color: var(--muted);
}

.tool-clear:hover {
  color: var(--accent);
  background: #d1e7dd;
}

.tool-clear svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-divider {
  height: 22px;
  width: 1px;
  background: #ced4da;
}

/* Textarea */
.post-input {
  width: 100%;
  flex: 1;
  min-height: 280px;
  resize: vertical;
  padding: 20px 4px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  line-height: 1.7;
  /* Allow native context menu for copy/paste */
  -webkit-user-select: text;
  user-select: text;
}

.post-input::placeholder {
  color: #adb5bd;
  opacity: 1;
}

.post-input:focus-visible {
  outline: 0;
}

/* Editor Footer */
.editor-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.keyboard-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.counts {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.counts strong {
  color: var(--ink);
  font-weight: 700;
}

.shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  color: var(--muted-light);
  font-size: 10px;
}

kbd {
  padding: 3px 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f8f9fa;
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 10px;
}

/* Preview Panel */
.preview-panel {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 24px;
}

.preview-heading {
  position: relative;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  color: var(--sage);
  background: var(--soft-sage);
  font-size: 10px;
  font-weight: 600;
}

.live-tag > span {
  width: 6px;
  height: 6px;
}

/* Preview Mode Toggle */
.preview-mode-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.preview-mode-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.preview-mode-button {
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.16s ease;
}

.preview-mode-button:hover {
  background: #e9ecef;
  color: var(--ink);
}

.preview-mode-button.is-active {
  background: var(--soft-sage);
  color: var(--sage);
}

/* Preview Surface */
.preview-surface {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 16px;
}

.post-card {
  overflow: hidden;
  padding: 20px 20px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.post-card,
.post-card button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e9ecef;
}

.profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.profile-copy strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.profile-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy .visibility {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
}

.visibility-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.more-button {
  display: flex;
  gap: 4px;
  margin: 4px 0 0 auto;
  padding: 6px 4px;
  border: 0;
  background: none;
}

.more-button span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.preview-copy {
  position: relative;
  margin-top: 18px;
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.preview-copy.is-collapsed {
  max-height: 8.5em;
  overflow: hidden;
}

.preview-copy.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.8em;
  background: linear-gradient(transparent, #fff);
  content: "";
  pointer-events: none;
}

.preview-copy .preview-placeholder {
  margin: 0 0 6px;
  color: var(--muted);
}

.preview-placeholder span {
  color: var(--muted-light);
  font-size: 12px;
}

.preview-text {
  margin: 0;
  white-space: normal;
}

.see-more-button {
  position: relative;
  z-index: 1;
  display: block;
  margin: -4px 0 16px auto;
  padding: 4px 0 4px 12px;
  border: 0;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.see-more-button:hover {
  color: var(--accent);
}

.see-more-button[hidden] {
  display: none;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.post-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-actions i {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1.3px solid #ced4da;
  border-radius: 50%;
}

.post-actions .comment-mark {
  border-radius: 4px;
}

.post-actions .share-mark {
  border-radius: 3px 3px 6px 3px;
  transform: rotate(-35deg) scale(.78);
}

/* Preview Footnote */
.preview-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.preview-footnote-mark {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ced4da;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.preview-warning {
  color: var(--warning);
  font-weight: 600;
}

/* Copy Row */
.copy-row {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.copy-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.copy-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.copy-button:active {
  transform: translateY(0);
}

.copy-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.copy-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.copy-feedback {
  min-height: 16px;
  margin: 8px 0 -4px;
  color: var(--accent);
  text-align: center;
  font-size: 12px;
}

.copy-feedback.is-error {
  color: var(--error);
}

.copy-feedback .success-icon {
  color: var(--accent);
  margin-right: 4px;
}

.copy-feedback .error-icon {
  color: var(--error);
  margin-right: 4px;
}

/* Privacy Note */
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.privacy-icon {
  color: var(--accent);
  font-size: 15px;
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: white;
  border-top: 1px solid #e9ecef;
  padding: 12px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-bar .mobile-bottom-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.mobile-bottom-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 0;
  border-radius: 12px;
  background: #f8f9fa;
  color: #495057;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  transition: all 0.16s ease;
  max-width: 120px;
}

.mobile-bottom-button:hover {
  background: #e9ecef;
  color: var(--ink);
}

.mobile-bottom-button.is-active {
  background: var(--soft-sage);
  color: var(--sage);
}

.mobile-bottom-button svg {
  width: 22px;
  height: 22px;
}

/* ===== INFO SECTIONS ===== */
.info-sections {
  margin-top: 50px;
  padding: 0 20px;
}

.info-panel {
  margin-bottom: 30px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.info-panel:last-child {
  margin-bottom: 20px;
}

.info-panel h2 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.info-content h3 {
  margin: 24px 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.info-content p {
  margin: 0 0 16px;
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.7;
}

.info-content ul {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.7;
}

.info-content li {
  margin-bottom: 8px;
}

.info-content strong {
  color: var(--ink);
  font-weight: 700;
}

.info-content code {
  background: #f8f9fa;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 13px;
  color: var(--sage);
}

.info-content em {
  color: var(--muted);
  font-style: italic;
}

.info-content kbd {
  padding: 3px 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f8f9fa;
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 11px;
}

/* ===== STATISTICS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.stats-notes {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stats-notes h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.stats-legend {
  margin: 20px 0;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

.legend-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.legend-item strong {
  color: var(--ink);
}

.legend-item a {
  color: var(--accent);
  text-decoration: none;
}

.legend-item a:hover {
  text-decoration: underline;
}

.stats-reset-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.stats-reset-button:hover {
  background: #f8f9fa;
  color: var(--ink);
  border-color: var(--accent);
}

/* Site Footer */
.site-footer {
  padding-bottom: 30px;
}

.footer-rule {
  height: 1px;
  background: var(--line);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.footer-separator {
  margin: 0 6px;
  color: var(--accent);
}

.ad-slot-rectangle {
  width: 300px;
  height: 250px;
  margin: 20px auto;
}

.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;
}

/* ===== RESPONSIVE STYLES ===== */

/* Desktop: 2 columns */
@media (min-width: 769px) {
  .mobile-tabs {
    display: none;
  }
  
  .mobile-bottom-bar {
    display: none;
  }
  
  .workspace {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 24px;
  }
  
  .intro {
    margin-top: 60px;
    margin-bottom: 40px;
  }
  
  .info-sections {
    padding: 0;
  }
  
  .info-panel {
    padding: 30px;
  }
}

/* Mobile: 1 column + tabs */
@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 30px, 500px);
  }
  
  /* Hide preview panel by default on mobile (shown via JS) */
  .editor-panel[data-mobile-view="preview"],
  .preview-panel[data-mobile-view="edit"] {
    display: none;
  }
  
  .workspace {
    gap: 16px;
  }
  
  .editor-panel,
  .preview-panel {
    min-height: auto;
    padding: 20px;
  }
  
  .post-input {
    min-height: 250px;
  }
  
  .editor-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .counts {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  
  .shortcut-row {
    gap: 10px;
    font-size: 9px;
  }
  
  .preview-surface {
    padding: 20px 0 16px;
  }
  
  .post-card {
    padding: 16px 14px 0;
  }
  
  .post-actions {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 10px;
  }
  
  .post-actions > span {
    gap: 6px;
  }
  
  .privacy-note {
    align-items: flex-start;
    max-width: 290px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    line-height: 1.5;
  }
  
  .site-footer {
    margin-top: 40px;
    padding-bottom: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
  }
  
  .footer-legal a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-legal a:hover {
    color: var(--accent);
    text-decoration: underline;
  }
  
  /* Newsletter styles */
  .newsletter-section {
    margin-top: 40px;
    padding: 0 20px;
  }
  
  .newsletter-form {
    margin-top: 16px;
  }
  
  .newsletter-form .form-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.2s ease;
  }
  
  .newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
  }
  
  .newsletter-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
  }
  
  .newsletter-submit:hover {
    background: var(--accent-dark);
  }
  
  .newsletter-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    min-height: 20px;
  }
  
  /* Mobile bottom bar - ensure proper display */
  .mobile-bottom-bar {
    padding: 12px 0;
  }
  
  .mobile-bottom-bar .mobile-bottom-buttons {
    justify-content: space-between;
    padding: 0 20px;
  }
  
  .mobile-bottom-button {
    flex: 1;
    max-width: 110px;
    padding: 12px 8px;
    font-size: 9px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .mobile-tabs {
    top: 66px;
  }
  
  .workspace {
    gap: 14px;
  }
  
  .editor-panel,
  .preview-panel {
    padding: 16px;
  }
  
  .post-input {
    min-height: 220px;
  }
  
  .preview-mode-toggle {
    flex-wrap: wrap;
  }
  
  .preview-mode-button {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .copy-row {
    padding-top: 16px;
  }
  
  .copy-button {
    min-height: 48px;
    font-size: 13px;
  }
  
  .info-panel {
    padding: 20px 16px;
  }
  
  .info-panel h2 {
    font-size: 20px;
  }
  
  .info-content h3 {
    font-size: 14px;
  }
  
  .info-content p,
  .info-content ul,
  .info-content li {
    font-size: 13px;
  }
  
  .newsletter-form .form-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .newsletter-form input {
    width: 100%;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .footer-legal a {
    display: block;
  }
  
  /* Mobile bottom bar for very small screens */
  .mobile-bottom-bar .mobile-bottom-buttons {
    padding: 0 10px;
  }
  
  .mobile-bottom-button {
    max-width: 90px;
    padding: 10px 4px;
    font-size: 8px;
  }
  
  .mobile-bottom-button svg {
    width: 18px;
    height: 18px;
  }
}

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