@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto/roboto-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #ed9001;
  --yellow: #ffc93a;
  --surface: #ffffff;
  --border: #f0c15a;
  --text: #1b1b1b;
  --muted: #5f5f5f;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: radial-gradient(circle at top left, var(--yellow), #fff8e6 45%, #ffffff);
  font-size: 17px;
  line-height: 1.45;
}

.app-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  width: calc(100% - 28px);
  max-width: 1200px;
  margin: 14px auto 20px;
  padding: 0;
}

.topbar {
  margin: 14px auto 0;
  width: calc(100% - 28px);
  max-width: 1200px;
  background: linear-gradient(135deg, var(--yellow), #ffedd0);
  border-radius: 24px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  view-transition-name: topbar;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.topbar-brand:hover {
  text-decoration: none;
}

.topbar-brand:visited {
  color: var(--text);
}

.topbar-brand strong {
  color: var(--text);
  text-decoration: none;
}

.topbar-logo {
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 3px 8px;
}

.topbar-sub {
  font-size: 13px;
  color: var(--muted);
}

.topbar-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff7e0;
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-menu-wrap {
  position: relative;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
  padding: 6px;
}

.user-menu-dropdown button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.user-menu-dropdown button:hover {
  background: #fff7e0;
}

.topbar-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 10px;

  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
}

.topbar-nav a:hover {
  background: #fff7e0;
}

.topbar-nav a.active {
  border-bottom-color: var(--primary);
  color: #7a4500;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.impersonation-banner {
  width: calc(100% - 28px);
  max-width: 1200px;
  margin: 8px auto 0;
  background: #fff7e0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
}

.impersonation-banner a {
  color: #7a4500;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.kpi-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.kpi-title {
  color: var(--muted);
  font-size: 12px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
}

.kpi-sub {
  font-size: 11px;
  color: #166534;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #f1f1f1;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.table th {
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.field-label-like {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin: 0 0 4px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffef9;
}

small {
  color: var(--muted);
  font-size: 12px;
}

.btn {
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 15px;
  text-decoration: none;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon-symbol {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.btn-icon-preview {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zm-8 3a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zm-8 3a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
}

.btn-icon-trash {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5.5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6zm2.5-.5A.5.5 0 0 1 11 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 1 1 0-2H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4 4v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5.5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6zm2.5-.5A.5.5 0 0 1 11 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 1 1 0-2H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4 4v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4H4z'/%3E%3C/svg%3E");
}

.btn-icon-save {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4.5L11.5 1H2zm0 1h8v3H3V2zm0 4h12v8H2V6zm3 2v4h6V8H5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4.5L11.5 1H2zm0 1h8v3H3V2zm0 4h12v8H2V6zm3 2v4h6V8H5z'/%3E%3C/svg%3E");
}

.btn-icon-cancel {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.22 3.22a.75.75 0 1 1-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 1 1-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.22 3.22a.75.75 0 1 1-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 1 1-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
}

.btn-icon-plus {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2a.75.75 0 0 1 .75.75v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5h4.5v-4.5A.75.75 0 0 1 8 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2a.75.75 0 0 1 .75.75v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5h4.5v-4.5A.75.75 0 0 1 8 2z'/%3E%3C/svg%3E");
}

.btn-icon-edit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708l-9.5 9.5L3 14l.646-2.646 9.5-9.5zM11.207 3 13 4.793l1.293-1.293L12.5 1.707 11.207 3zM12 5.793 10.207 4 4 10.207V12h1.793L12 5.793z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708l-9.5 9.5L3 14l.646-2.646 9.5-9.5zM11.207 3 13 4.793l1.293-1.293L12.5 1.707 11.207 3zM12 5.793 10.207 4 4 10.207V12h1.793L12 5.793z'/%3E%3C/svg%3E");
}

.btn-icon-submit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15.854.146a.5.5 0 0 0-.52-.112l-15 6a.5.5 0 0 0 .034.94l6.136 1.86 1.86 6.136a.5.5 0 0 0 .94.034l6-15a.5.5 0 0 0-.45-.658zM6.86 8.44 2.02 6.97l11.47-4.588L6.86 8.44zm.7 1.2 6.058-6.63L9.03 13.48 7.56 8.64z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15.854.146a.5.5 0 0 0-.52-.112l-15 6a.5.5 0 0 0 .034.94l6.136 1.86 1.86 6.136a.5.5 0 0 0 .94.034l6-15a.5.5 0 0 0-.45-.658zM6.86 8.44 2.02 6.97l11.47-4.588L6.86 8.44zm.7 1.2 6.058-6.63L9.03 13.48 7.56 8.64z'/%3E%3C/svg%3E");
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(237, 144, 1, 0.4);
}

.btn-primary:disabled {
  background: #f5cf8d;
  border-color: #f5cf8d;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary-small {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}

/* Icon-only secondary actions (e.g. edit pencil in tables): no border */
.btn.btn-secondary.btn-icon {
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--primary);
}

.btn.btn-secondary.btn-icon:hover {
  background: #fff7e0;
}

.btn.btn-secondary.btn-icon:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.swal2-actions .btn {
  margin: 0 6px;
}

.swal2-actions .btn .btn-icon-submit {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.swal2-popup .swal-brand-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffef9;
}

.swal2-popup .swal-brand-input:focus,
.swal2-popup .swal2-textarea:focus,
.swal2-popup .swal2-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(237, 144, 1, 0.22) !important;
}

.ai-generate-progress-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f6e9d1;
  margin-top: 6px;
}

.ai-generate-progress-bar {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #f3bf63, #ed9001);
  border-radius: 999px;
  animation: ai-generate-slide 1.2s ease-in-out infinite;
}

@keyframes ai-generate-slide {
  0% {
    transform: translateX(-90%);
  }

  50% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(-90%);
  }
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button-row .btn {
  flex: 1;
  min-width: 240px;
}

.optional-accordion {
  margin-top: 10px;
}

.optional-toggle {
  width: auto;
}

.optional-block {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffef9;
}

.optional-block label:first-child {
  margin-top: 0;
}

.preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.preview-tab {
  border: 1px solid #d6d6dc;
  background: #f7f7f9;
  color: #3f3f46;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.preview-tab:hover {
  background: #efeff3;
}

.preview-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.preview-tab.is-active {
  border-color: var(--primary);
  background: #fff5e4;
  color: #6b3d00;
}

.preview-panels {
  min-height: 520px;
}

.preview-panel[hidden] {
  display: none;
}

#preview-panel-list {
  display: flex;
  justify-content: center;
}

#preview-panel-list[hidden] {
  display: none;
}

.preview-list-pane {
  margin: 0;
  width: 320px;
}

.news-list-preview-stack {
  display: grid;
  gap: 8px;
}

.news-list-preview-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #f8f8f9;
  overflow: hidden;
}

.news-list-preview-media {
  min-height: 72px;
  background: #d8d8df;
}

.news-list-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-list-preview-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #7a7a80;
  font-size: 10px;
}

.news-list-preview-text {
  padding: 7px 9px;
}

.news-list-preview-title {
  margin: 0 0 2px;
  font-size: 0.84rem;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.news-list-preview-teaser {
  margin: 0;
  color: #54545a;
  font-size: 0.64rem;
  line-height: 1.22;
}

.news-list-preview-card.is-dummy {
  background: #f1f1f3;
  border-color: #dddddf;
  opacity: 0.88;
}

.news-list-preview-card.is-dummy .news-list-preview-media {
  background: #ceced3;
}

.news-list-preview-image-placeholder-dummy {
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.56rem;
  font-weight: 600;
}

.news-list-preview-card.is-dummy .news-list-preview-title,
.news-list-preview-card.is-dummy .news-list-preview-teaser {
  color: #6d6d74;
}

.news-list-preview-card.is-active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phone-preview-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
}

.preview-live-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.preview-live-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.preview-live-qr img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 14px;
  border: 1px solid #e1e1e6;
  background: #fff;
  padding: 10px;
}

.preview-live-url {
  font-size: 0.75rem;
  color: #5a5a62;
  word-break: break-all;
}

.preview-live-help {
  margin: 8px auto 0;
  max-width: 420px;
  font-size: 0.95rem;
  color: #57575f;
}

.phone-preview-shell {
  width: min(100%, 390px);
  background: #ffffff;
  border: 1px solid #d7d7dc;
  border-radius: 26px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  position: relative;
}

.phone-preview-notch {
  display: none;
}

.phone-preview-screen {
  height: min(70vh, 740px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e2e2e7;
  background: #f3f3f6;
  padding: 0;
}

.phone-preview-scroll {
  height: calc(100% - 110px);
  overflow-y: auto;
  padding: 10px 12px 14px;
}

.phone-preview-scroll::-webkit-scrollbar {
  width: 8px;
}

.phone-preview-scroll::-webkit-scrollbar-thumb {
  background: #c8c8ce;
  border-radius: 999px;
}

.phone-ui-chrome {
  background: #f7f7f9;
  border-bottom: 1px solid #e2e2e7;
}

.phone-statusbar {
  height: 44px;
  padding: 8px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status-time {
  font-size: 15px;
  font-weight: 700;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.phone-status-dots {
  color: #b8b8bf;
  letter-spacing: 1px;
}

.phone-status-wifi {
  font-size: 13px;
}

.phone-battery {
  min-width: 30px;
  height: 16px;
  border: 1.5px solid #b0b0b5;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: #ffffff;
}

.phone-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 2px;
  height: 5px;
  background: #b0b0b5;
  border-radius: 0 2px 2px 0;
}

.phone-battery-text {
  font-size: 10px;
  line-height: 1;
  color: #e84a3b;
  font-weight: 700;
}

.phone-navbar {
  height: 56px;
  padding: 0 14px 2px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}

.phone-back-btn {
  font-size: 48px;
  line-height: 0.8;
  color: #f0a01d;
  font-weight: 400;
  user-select: none;
}

.phone-nav-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.phone-nav-spacer {
  display: block;
}

.phone-preview-scroll .news-preview {
  margin-top: 2px;
}

.phone-preview-scroll .news-preview h1 {
  font-size: 2.45rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.1;
}

.phone-preview-scroll .news-preview p {
  font-size: 1.08rem;
}

.phone-preview-scroll .news-preview-image-wrap {
  width: 100%;
  height: 238px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #d9d9de;
}

.phone-preview-scroll .news-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateY(0) scale(1.16);
  transform-origin: center;
  will-change: transform;
  transition: transform 80ms linear;
}

.phone-preview-scroll .news-preview .card {
  border-radius: 12px;
  border-color: #dfdfdf !important;
  background: #f5f5f7 !important;
  padding: 16px !important;
}

.phone-preview-scroll .news-preview .btn.btn-primary {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  font-size: 2rem;
  font-weight: 600;
}

#news-detail .news-preview-image-wrap {
  width: 100%;
  max-width: 760px;
  max-height: 360px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #d9d9de;
}

#news-detail .news-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 14px;
}

.editor-main label:first-child,
.editor-side label:first-child {
  margin-top: 0;
}

.editor-side.card {
  box-shadow: none;
  background: #fffef9;
  align-self: start;
}

#news-image-card {
  min-height: 413px;
}

.editor-photo-rights {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.editor-photo-rights input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}

#details-editor {
  margin-bottom: 8px;
  height: auto;
}

.ql-toolbar.ql-snow {
  border-color: var(--border);
  border-radius: 8px 8px 0 0;
}

#details-editor.ql-container.ql-snow {
  border-color: var(--border);
  border-radius: 0 0 8px 8px;
}

#details-editor.ql-container {
  height: auto;
  background: #fffef9;
}

#details-editor .ql-editor {
  min-height: 180px;
}

.create-post-dropdown {
  position: relative;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.create-post-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 25;
}

.create-post-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.create-post-menu-item:hover {
  background: #fff7e0;
}

.filepond--root {
  margin-bottom: 10px;
}

.login-wrap {
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 14px;
}

.login-logo-top {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.login-logo-top img {
  height: 58px;
}

.login-card {
  padding: 20px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-row img {
  height: 48px;
  border-radius: 10px;
  background: #fff;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.error {
  color: #991b1b;
  background: #fff1f1;
  border: 1px solid #f97373;
  border-radius: 10px;
  padding: 8px;
  font-size: 12px;
}

.info-box {
  margin-top: 10px;
  color: #7a4500;
  background: #fff8e8;
  border: 1px solid #f2d79d;
  border-radius: 10px;
  padding: 8px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.table tbody tr.dashboard-row-revision td {
  background-color: rgba(200, 60, 60, 0.09);
}

.dashboard-status-cell {
  white-space: normal;
}

.dashboard-details-cell {
  white-space: normal;
  color: #6a6a72;
}

.dashboard-details-empty {
  color: #9a9aa2;
}

.dashboard-actions-cell {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.dashboard-actions-cell .btn {
  width: 140px;
  text-align: center;
}

#news-archive .table thead th:last-child,
#news-archive .table tbody td:last-child {
  text-align: right;
}

#news-archive .table tbody td:last-child {
  white-space: nowrap;
  width: 1%;
}

.dashboard-status-main {
  display: block;
}

.dashboard-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.25;
}

.dashboard-status-pill-accepted {
  color: #1f6a33;
  background: #e7f7ec;
  border: 1px solid #b9e7c8;
}

.dashboard-status-pill-review {
  color: #8a5a00;
  background: #fff6dc;
  border: 1px solid #f2d79d;
}

.dashboard-status-range {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6a6a72;
}

.preview-actions-hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-card {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 4px 0;
}

.checkbox-row input {
  width: auto;
}

.checkbox-input {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  min-width: 16px;
  min-height: 16px;
}

.app-footer {
  margin-top: auto;
  border-top: 1px solid #f2d79d;
  background: rgba(255, 255, 255, 0.8);
}

.app-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  font-size: 14px;
}

.footer-impressum {
  grid-column: 1;
  justify-self: start;
  font-size: 11px;
  color: var(--muted);
}

.footer-copy {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.footer-powered {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}

.footer-powered a {
  color: inherit;
}

@media (max-width: 860px) {
  .preview-tabs {
    gap: 6px;
  }

  .preview-tab {
    font-size: 0.85rem;
    padding: 7px 10px;
  }

  .preview-panels {
    min-height: 460px;
  }

  .preview-list-pane {
    width: 100%;
  }

  .news-list-preview-card {
    grid-template-columns: 78px 1fr;
  }

  .news-list-preview-media {
    min-height: 66px;
  }

  .news-list-preview-text {
    padding: 7px 8px;
  }

  .news-list-preview-title {
    font-size: 0.78rem;
  }

  .news-list-preview-teaser {
    font-size: 0.6rem;
  }

  .topbar-toggle {
    display: inline-flex;
  }

  .topbar-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .topbar-nav.open {
    display: flex;
  }

  .topbar-nav a,
  .topbar-nav .btn {
    width: 100%;
    text-align: center;
  }

  .button-row {
    flex-direction: column;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .phone-preview-shell {
    width: min(100%, 360px);
    border-radius: 24px;
    padding: 7px;
  }

  .phone-preview-screen {
    height: min(68vh, 680px);
    border-radius: 18px;
  }

  .phone-statusbar {
    height: 38px;
    padding-top: 6px;
  }

  .phone-navbar {
    height: 48px;
    grid-template-columns: 32px 1fr 32px;
    padding: 0 10px 2px;
  }

  .phone-back-btn {
    font-size: 38px;
  }

  .phone-nav-title {
    font-size: 18px;
  }

  .phone-preview-scroll {
    height: calc(100% - 86px);
  }

  .phone-preview-scroll .news-preview h1 {
    font-size: 2.1rem;
  }

  .preview-live-help {
    font-size: 0.88rem;
  }
}