* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .tab-btn,
  .search-clear-btn,
  .posts-scroll-top,
  .post-card,
  .auto-open-overlay,
  .auto-open-overlay__panel {
    transition: none;
  }

  .post-card--highlight {
    animation: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
  }
}

:root {
  --content-max-width: 1300px;
  --top-gap: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #050505;
  line-height: 1.5;
  scrollbar-gutter: stable;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
}

.shell-main {
  flex: 1;
  padding-bottom: 40px;
}

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 20px;
}

.site-header,
header {
  background: white;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  margin-bottom: var(--top-gap);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-header__subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.page-toolbar {
  background: white;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-toolbar__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #f3f4f6;
  padding: 6px;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.7), rgba(14, 165, 233, 0.7));
  opacity: 0.35;
}

.site-nav__btn {
  border: none;
  background: transparent;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  position: relative;
  text-decoration: none;
}

.site-nav__btn--icon {
  padding: 10px 12px;
  font-size: 18px;
  line-height: 1;
}

.site-nav__btn::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4338ca, #0ea5e9);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.site-nav__btn:hover {
  color: #0f172a;
  transform: translateY(-1px);
  text-decoration: none;
}

.site-nav__btn.nav-active {
  color: #0f172a;
}

.site-nav__btn.nav-active::after {
  opacity: 1;
  transform: translateY(0);
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.header-controls .control-group:last-child {
  margin-left: auto;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-direction-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sort-direction-toggle:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.sort-direction-toggle:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.15);
}

.sort-direction-toggle[aria-pressed="true"] {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.sort-direction-toggle__icon {
  font-size: 11px;
  line-height: 1;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
  padding: 0;
}

.refresh-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.refresh-btn:focus {
  outline: none;
  background: #f3f4f6;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.15);
}

.refresh-btn:active {
  transform: scale(0.95);
}

.app-view {
  display: none;
}

.app-view--active {
  display: block;
}

.control-group label {
  font-weight: 600;
}

.control-group label.switch {
  font-weight: 600;
  gap: 6px;
}

.search-input {
  padding: 8px 38px 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  min-width: 0;
  width: 100%;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 240px;
}

.search-field__label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.search-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field__hint {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.search-field__hint kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.search-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-clear-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.search-clear-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 1px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.switch input {
  width: 16px;
  height: 16px;
}

.control-select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.add-post-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 1100;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: min(640px, 92vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__content h2 {
  font-size: 20px;
  margin: 0;
  color: #111827;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: #2563eb;
}

.add-post-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #111827;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.form-field input,
.form-field select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.form-message {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}

.form-message.error {
  color: #dc2626;
}

.form-message.success {
  color: #065f46;
}

.tabs-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.search-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.merge-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
}

.merge-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.merge-actions .btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  line-height: 1.1;
}

#mergeModeToggle.active {
  background: #0f172a;
  color: #fff;
}

.search-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  border: 1px solid #d0d7ff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.search-filter-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.tab-btn {
  padding: 10px 20px;
  background: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
  background: #f8f9fa;
}

.tab-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.tab-btn.active {
  background: #1877f2;
  color: white;
}

.loading,
.error {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.error {
  color: #dc2626;
}

.posts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.posts-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: #1f2937;
}

.posts-summary__label {
  font-weight: 700;
  color: #111827;
  margin-right: 8px;
}

.posts-summary__label::after {
  content: ':';
  margin-left: 4px;
  color: #6b7280;
}

.posts-summary__item {
  font-weight: 500;
  color: #374151;
}

.posts-summary__separator {
  color: #9ca3af;
  margin: 0 4px;
}

.posts-bulk-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
}

.bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  border-radius: 12px;
}

.bulk-actions label {
  color: #6b7280;
  font-size: 13px;
}

.bulk-actions select {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  border-radius: 10px;
  padding: 8px 10px;
}

.auto-open-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.auto-open-toggle input {
  width: 16px;
  height: 16px;
}

.bulk-status {
  font-size: 13px;
  color: #6b7280;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.bulk-status--hint {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
}

.bulk-status--error {
  color: #991b1b;
  border: 1px solid #fecaca;
  background: #fee2e2;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.auto-open-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.12), transparent 38%),
    rgba(15, 23, 42, 0.6);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auto-open-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.auto-open-overlay__panel {
  width: min(940px, 100%);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.96));
  border-radius: 22px;
  padding: 38px 42px 40px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
  cursor: pointer;
}

.auto-open-overlay__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.auto-open-overlay__timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 8px;
  color: #0f172a;
}

.auto-open-overlay__count {
  font-size: clamp(72px, 12vw, 120px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auto-open-overlay__unit {
  font-size: 22px;
  color: #6b7280;
}

.auto-open-overlay__text {
  margin: 0 auto;
  color: #334155;
  max-width: 700px;
  font-size: 18px;
}

.auto-open-overlay__hint {
  margin: 12px 0 0;
  color: #475569;
  font-size: 15px;
}

.posts-load-more {
  display: flex;
  justify-content: center;
  padding: 12px 0 32px;
}

.posts-load-more__btn {
  min-width: 220px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.posts-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  z-index: 45;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.posts-scroll-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.posts-scroll-top:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.post-card {
  position: relative;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  padding-left: 20px;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-card.complete {
  opacity: 0.7;
  border-left: 4px solid #059669;
}

.post-card--highlight {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(102, 126, 234, 0.35);
  animation: post-card-highlight-pulse 1.4s ease-in-out 2;
}

@keyframes post-card-highlight-pulse {
  0% {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.1),
      0 0 0 0 rgba(102, 126, 234, 0.45);
  }
  50% {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.1),
      0 0 0 8px rgba(102, 126, 234, 0.2);
  }
  100% {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.1),
      0 0 0 0 rgba(102, 126, 234, 0.45);
  }
}

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

.post-header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.post-title-with-checkbox {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.merge-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  flex-shrink: 0;
}

.merge-select input {
  width: 16px;
  height: 16px;
  accent-color: #0f172a;
}

.post-index {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  flex-shrink: 0;
}

.success-checkbox--header {
  flex-shrink: 0;
}

.post-title {
  flex: 0 1 auto;
  font-size: 16px;
  color: #050505;
  line-height: 1.4;
}

.post-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.post-status.complete {
  background: transparent;
  color: #059669;
}



.post-body {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.post-body--with-screenshot {
  align-items: flex-start;
}

.post-screenshot-wrapper {
  flex: 0 0 clamp(200px, 26vw, 320px);
  max-width: clamp(200px, 26vw, 320px);
  display: flex;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.post-meta__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.post-meta__line--count {
  font-weight: 600;
  color: #1f2937;
  width: 100%;
}

.post-meta__label {
  font-weight: 600;
  color: #374151;
}

.post-meta__value {
  font-weight: 700;
  color: #111827;
}

.post-meta__stats {
  font-size: 12px;
  color: #6b7280;
}

.post-info {
  font-size: 13px;
  color: #65676b;
}

.post-last-change {
  font-size: 13px;
  color: #4b5563;
}

.post-creator {
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
}

.post-target__select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}

.post-deadline {
  font-size: 13px;
  color: #4b5563;
}
.post-deadline.has-deadline {
  font-weight: 600;
}

.post-deadline.overdue {
  color: #dc2626;
}

.post-deadline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-deadline__calendar,
.post-deadline__clear {
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  color: #4b5563;
}

.post-deadline__calendar:hover,
.post-deadline__calendar:focus,
.post-deadline__clear:hover,
.post-deadline__clear:focus {
  color: #2563eb;
}

.deadline-picker {
  position: fixed;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  z-index: 1600;
  animation: deadline-picker-enter 120ms ease-out;
}

@keyframes deadline-picker-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deadline-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deadline-picker__title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.deadline-picker__close {
  border: none;
  background: none;
  padding: 2px 6px;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.deadline-picker__close:hover,
.deadline-picker__close:focus {
  color: #1d4ed8;
  background-color: rgba(37, 99, 235, 0.08);
}

.deadline-picker__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deadline-picker__field label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}

.deadline-picker__field input {
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.deadline-picker__field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: #fff;
}

.deadline-picker__hint {
  font-size: 12px;
  color: #6b7280;
}

.deadline-picker__error {
  min-height: 18px;
  font-size: 12px;
  color: #dc2626;
  visibility: hidden;
}

.deadline-picker__error.is-visible {
  visibility: visible;
}

.deadline-picker__actions {
  display: flex;
  gap: 8px;
}

.deadline-picker__actions .btn {
  flex: 1;
}

.post-deadline__clear {
  font-size: 14px;
}

.post-deadline-row input[type="datetime-local"] {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.post-target {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
}

.btn-inline {
  background: none;
  border: none;
  color: #2563eb;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  display: inline;
}

.btn-inline:hover,
.btn-inline:focus {
  text-decoration: underline;
}

.post-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  width: 100%;
}

.post-link__label {
  font-weight: 600;
  color: #4b5563;
}

.post-link__anchor {
  color: #2563eb;
  text-decoration: none;
  word-break: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.post-link__anchor:hover {
  text-decoration: underline;
}

.post-creator__link {
  color: #2563eb;
  text-decoration: none;
}

.post-creator__link:hover {
  text-decoration: underline;
}

.post-profiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.profile-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  align-items: center;
}

.profile-line__name {
  font-weight: 600;
}

.profile-line__status {
  font-weight: 500;
}

.profile-line__actions {
  display: flex;
  gap: 6px;
}

.profile-line__toggle {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.profile-line__toggle:hover,
.profile-line__toggle:focus {
  text-decoration: underline;
}

.profile-line--done {
  background: #ecfdf5;
  color: #047857;
  border-left: 3px solid #10b981;
}

.profile-line--available {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: 3px solid #3b82f6;
}

.profile-line--locked {
  background: #f3f4f6;
  color: #6b7280;
  border-left: 3px solid #9ca3af;
}

.profile-line--current {
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.35);
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.95), rgba(221, 214, 254, 0.9));
}

.profile-line--current.profile-line--done {
  color: #065f46;
  border-left-color: #34d399;
}

.profile-line--current.profile-line--available {
  color: #1d4ed8;
  border-left-color: #60a5fa;
}

.profile-line--current.profile-line--locked {
  color: #4b5563;
  border-left-color: #818cf8;
}

.profile-line__badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post-hints {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-hint {
  font-size: 13px;
  color: #92400e;
  background: #fff7ed;
  border-radius: 6px;
  padding: 8px 10px;
}

.post-hint--success {
  color: #065f46;
  background: #ecfdf5;
}

.post-screenshot {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(180px, 24vw, 240px);
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  overflow: hidden;
}

.post-screenshot:hover,
.post-screenshot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.post-screenshot img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
}

.check-badge {
  padding: 4px 10px;
  background: #e4e6eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.check-badge:not(.checked) {
  color: #4b5563;
}

.check-badge.checked {
  background: #d1fae5;
  color: #065f46;
}

.check-badge.current {
  background: #dbeafe;
  color: #1e40af;
  border: 2px solid #3b82f6;
}

.post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  align-items: center;
}

.success-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
}

.success-checkbox-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #1877f2;
  color: white;
}

.btn-primary:hover {
  background: #166fe5;
}

.btn-success {
  background: #059669;
  color: white;
}

.btn-success:hover {
  background: #047857;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: #e4e6eb;
  color: #050505;
}

.btn-secondary:hover {
  background: #d8dadf;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bookmark-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.bookmark-inline__toggle {
  padding: 8px 14px;
  font-size: 14px;
}

.bookmark-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(540px, 92vw);
  max-height: 70vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 16px;
  z-index: 20;
  border: 1px solid rgba(229, 231, 235, 0.8);
  display: flex;
  flex-direction: column;
}

.bookmark-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  padding-bottom: 8px;
}

.bookmark-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.bookmark-panel__close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
  padding: 2px 6px;
}

.bookmark-panel__close:hover,
.bookmark-panel__close:focus {
  color: #ef4444;
}

.bookmark-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
}

.bookmark-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.bookmark-section__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.bookmark-section__hint {
  font-size: 11px;
  color: #6b7280;
}

.bookmark-section__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookmark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 7px 10px;
}

.bookmark-row[data-state="never-used"] {
  background: #eef2ff;
}

.bookmark-row__open {
  border: none;
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.bookmark-row__open:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 6px;
}

.bookmark-row__label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.bookmark-row__query {
  font-size: 11px;
  color: #4b5563;
}

.bookmark-row__meta {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  justify-self: end;
}

.bookmark-row__remove {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bookmark-row__remove:hover,
.bookmark-row__remove:focus-visible {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.bookmark-status {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
}

.bookmark-status--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.bookmark-status--loading {
  background: #ede9fe;
  color: #4c1d95;
}

.bookmark-form {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bookmark-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bookmark-form__field {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  gap: 6px;
}

.bookmark-form__field span {
  font-size: 13px;
  color: #65676b;
}

.bookmark-form__field input {
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

.bookmark-form__actions {
  display: flex;
  gap: 10px;
}

.bookmark-form__hint {
  margin: 0;
  font-size: 12px;
  color: #65676b;
}

.bookmark-empty {
  font-size: 13px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.bookmarks-page {
  padding-bottom: 40px;
}

.bookmarks-page__intro {
  margin-top: 12px;
  color: #4b5563;
  font-size: 14px;
}

.bookmark-page {
  display: flex;
  justify-content: center;
}

.bookmark-page__panel {
  width: 100%;
  max-width: var(--content-max-width);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bookmark-page__panel .bookmark-list {
  max-height: none;
}

.bookmark-page__lead {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.bookmark-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.bookmark-quicksearch {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bookmark-quicksearch__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.bookmark-quicksearch__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 260px;
}

.bookmark-quicksearch__field span {
  font-size: 13px;
  color: #65676b;
}

.bookmark-quicksearch__field input {
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.bookmark-quicksearch__hint {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
}

.bookmark-panel__search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
}

.bookmark-panel__search input {
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.bookmark-panel__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bookmark-panel__sort label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.bookmark-panel__sort select {
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  min-width: 180px;
}

.bookmark-sort__direction {
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  background: #f3f4f6;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.bookmark-sort__direction:hover {
  border-color: #a5b4fc;
}

.bookmark-subpage {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  padding: 10px 12px;
}

.bookmark-subpage[open] {
  background: #ffffff;
}

.bookmark-subpage__summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  list-style: none;
}

.bookmark-subpage__summary::-webkit-details-marker {
  display: none;
}

.bookmark-subpage__summary::before {
  content: "▸";
  margin-right: 8px;
  color: #6b7280;
}

.bookmark-subpage[open] .bookmark-subpage__summary::before {
  content: "▾";
}

.bookmark-subpage__content {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bookmark-subpage__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.bookmark-subpage__toolbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bookmark-subpage__meta {
  font-size: 12px;
  color: #4b5563;
}

.bookmark-subpage__config-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.bookmark-subpage__config-btn:hover {
  background: #f3f4f6;
}

.bookmark-columns-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bookmark-columns-modal[hidden] {
  display: none;
}

.bookmark-columns-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.bookmark-columns-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: min(640px, 94vw);
  max-height: 86vh;
  overflow: auto;
  padding: 16px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.25);
}

.bookmark-columns-modal__content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.bookmark-columns-modal__hint {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 13px;
}

.bookmark-columns-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.bookmark-columns-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-columns-modal__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fafb;
}

.bookmark-columns-modal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2937;
}

.bookmark-columns-modal__item-actions {
  display: inline-flex;
  gap: 6px;
}

.bookmark-columns-modal__move {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.bookmark-columns-modal__move:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bookmark-columns-modal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bookmark-subpage__table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bookmark-subpage__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1680px;
}

.bookmark-subpage__table th,
.bookmark-subpage__table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 12px;
  vertical-align: top;
}

.bookmark-subpage__table th {
  background: #f3f4f6;
  white-space: nowrap;
  position: relative;
}

.bookmark-subpage__sort {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bookmark-subpage__sort:hover {
  color: #111827;
}

.bookmark-subpage__sort.is-active {
  color: #0f4bb8;
}

.bookmark-subpage__th-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.bookmark-subpage__th-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bookmark-subpage__filter-toggle {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.bookmark-subpage__filter-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.bookmark-subpage__filter-toggle:hover {
  color: #64748b;
}

.bookmark-subpage__filter-toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.bookmark-subpage__filter-toggle.is-active {
  color: #0f4bb8;
}

.bookmark-subpage__filter-toggle.is-open {
  border-color: #60a5fa;
  border-style: solid;
  border-width: 1px;
  background: #eff6ff;
}

.bookmark-subpage__column-filter {
  width: 84px;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  padding: 2px 6px;
  display: none;
}

.bookmark-subpage__th-stack.is-filter-open .bookmark-subpage__column-filter {
  display: block;
}

.bookmark-subpage__column-filter:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 0;
  border-color: #60a5fa;
}

.bookmark-subpage__table th[draggable="true"] {
  cursor: move;
}

.bookmark-subpage__table th.is-dragging {
  opacity: 0.55;
}

.bookmark-subpage__table th.is-drop-before::before,
.bookmark-subpage__table th.is-drop-after::after {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: #0f4bb8;
}

.bookmark-subpage__table th.is-drop-before::before {
  left: -1px;
}

.bookmark-subpage__table th.is-drop-after::after {
  right: -1px;
}

.bookmark-subpage__messe-link {
  border: none;
  background: transparent;
  color: #0f4bb8;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  text-align: left;
}

.bookmark-subpage__messe-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 2px;
}

.bookmark-subpage__messe-separator {
  color: #6b7280;
  margin: 0 2px;
}

.bookmark-subpage__messe-link:hover {
  color: #1d4ed8;
}

.bookmark-subpage__table th[data-column-key="thema"],
.bookmark-subpage__table td[data-column="thema"],
.bookmark-subpage__table th[data-column-key="notiz"],
.bookmark-subpage__table td[data-column="notiz"] {
  min-width: 320px;
}

.bookmark-subpage__table th[data-column-key="zuletzt_gesucht_am"],
.bookmark-subpage__table td[data-column="zuletzt_gesucht_am"] {
  min-width: 170px;
}

.bookmark-subpage__table a {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .bookmark-panel {
    width: min(480px, 94vw);
    max-height: 75vh;
  }

  .search-field {
    min-width: 100%;
  }

  .search-field__hint {
    font-size: 10px;
  }

  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-actions .btn {
    width: 100%;
  }

  .bookmark-section__list {
    gap: 5px;
  }

  .bookmark-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bookmark-subpage {
    padding: 10px;
  }

  .bookmark-subpage__toolbar {
    gap: 8px;
  }

  .bookmark-subpage__toolbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1000;
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal__backdrop {
  position: absolute;
  inset: 0;
}

.screenshot-modal__content {
  position: relative;
  width: min(95vw, 1300px);
  max-height: 92vh;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.screenshot-modal__content.zoomed {
  justify-content: flex-start;
  align-items: flex-start;
}

.screenshot-modal__content img {
  max-width: calc(95vw - 96px);
  max-height: calc(92vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(8, 15, 35, 0.45);
  cursor: zoom-in;
}

.screenshot-modal__content.zoomed {
  cursor: zoom-out;
  overflow: auto;
}

.screenshot-modal__content.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

.screenshot-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.screenshot-modal__close:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.screenshot-modal__close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state-text {
  font-size: 18px;
  color: #65676b;
}

@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  h1 {
    font-size: 20px;
  }

  header {
    padding: 14px;
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-links {
    width: 100%;
    justify-content: flex-start;
  }

  .post-card {
    padding-left: 20px;
  }

  .header-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tabs {
    width: 100%;
  }

  .tab-btn {
    flex: 1 1 0;
    text-align: center;
  }

  .search-container {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .search-filter-toggle {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .search-field {
    order: 1;
    width: 100%;
    flex: 1 1 260px;
  }

  .posts-bulk-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bulk-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .bulk-status {
    width: 100%;
    justify-content: flex-start;
  }

  .posts-scroll-top {
    right: 14px;
    bottom: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .post-header {
    flex-direction: column;
  }

  .post-body {
    flex-direction: column;
  }

  .post-screenshot-wrapper {
    max-width: 100%;
  }

  .post-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .bookmark-inline {
    display: block;
    margin-bottom: 10px;
  }

  .bookmark-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    max-height: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  }

  .bookmark-list {
    max-height: none;
  }

  .bookmark-form__actions {
    flex-direction: column;
  }
}
