:root {
  --bg: #f3f2ef;
  --panel: #fff;
  --text: #1f2328;
  --muted: #667085;
  --border: #d0d5dd;
  --soft: #f8fafc;
  --blue: #0a66c2;
  --blue-soft: #e8f3ff;
  --green: #16833a;
  --yellow: #8a6d00;
  --red: #b42318;
  --purple: #6941c6;
  --shadow: 0 16px 42px rgba(16,24,40,.10);
  --radius: 18px;
  --sidebar: #111827;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 265px 1fr;
}

.sidebar {
  background: var(--sidebar);
  color: white;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.035em;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #d1d5db;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  font-weight: 750;
  margin-bottom: 5px;
}

.nav button.active, .nav button:hover {
  background: rgba(255,255,255,.12);
  color: white;
}

.sidebar-note {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

main {
  padding: 26px;
  min-width: 0;
}

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

h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.035em;
}

.sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 850;
  box-shadow: 0 2px 6px rgba(16,24,40,.05);
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.btn.danger {
  background: #fff5f5;
  border-color: #fecaca;
  color: var(--red);
}

.btn.small {
  padding: 7px 10px;
  font-size: 12px;
}

.warning {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: var(--red);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 750;
}

.hidden { display: none; }

.view { display: none; }
.view.active { display: block; }

.layout {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-title {
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -.015em;
}

.panel-body { padding: 18px; }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfd;
}

.chip {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.chip.active {
  background: var(--blue-soft);
  border-color: #b2d7f7;
  color: var(--blue);
}

.posts-list {
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 710px;
  overflow: auto;
}

.post-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 15px;
  padding: 13px;
  text-align: left;
  width: 100%;
}

.post-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,102,194,.12);
}

.post-title {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.post-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  background: #eef2f6;
  color: #475467;
  white-space: nowrap;
}

.badge.idea { background: #f4f3ff; color: var(--purple); }
.badge.draft { background: #fff8db; color: var(--yellow); }
.badge.ready { background: #e9f7ef; color: var(--green); }
.badge.planned { background: var(--blue-soft); color: var(--blue); }
.badge.published { background: #f2f4f7; color: #667085; }

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  background: white;
  color: var(--text);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,102,194,.10);
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.48;
}

.helper {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-wrap {
  background: #e6e2dc;
  padding: 20px;
  display: grid;
  place-items: start center;
}

.device {
  width: min(100%, 430px);
  background: #f3f2ef;
  border: 12px solid #161b22;
  border-radius: 34px;
  padding: 14px 10px 22px;
  box-shadow: 0 22px 40px rgba(0,0,0,.24);
}

.phone-top {
  height: 18px;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.notch {
  width: 92px;
  height: 18px;
  background: #161b22;
  border-radius: 0 0 15px 15px;
}

.linkedin-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
  color: #000000e6;
}

.li-head {
  display: flex;
  gap: 10px;
  padding: 13px 13px 8px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 48px;
  background: linear-gradient(135deg, #0a66c2, #111827);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

.li-name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}

.li-headline, .li-time {
  color: rgba(0,0,0,.6);
  font-size: 12px;
  line-height: 1.28;
}

.li-body {
  padding: 0 13px 12px;
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.see-more {
  color: rgba(0,0,0,.6);
  font-weight: 700;
}

.asset-box {
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  min-height: 220px;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.asset-box.visible { display: flex; }
.asset-box img {
  width: 100%;
  height: auto;
  display: block;
}
.asset-box.cover img {
  height: 260px;
  object-fit: cover;
}

.asset-placeholder {
  padding: 40px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.li-stats {
  padding: 9px 13px;
  color: rgba(0,0,0,.6);
  font-size: 12px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
}

.li-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: rgba(0,0,0,.6);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 10px 0;
}

.preview-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fbfcfd;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.day {
  min-height: 170px;
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.day-name {
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.calendar-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.calendar-item:hover { border-color: var(--blue); }

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 13px;
  background: #fbfcfd;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #111827;
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s ease;
  z-index: 20;
  font-weight: 800;
  font-size: 13px;
}

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

.export-box {
  width: 100%;
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.dropzone {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fbfcfd;
}

.mini-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav button { width: auto; }
  .sidebar-note { display: none; }
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  main { padding: 15px; }
  .topbar { flex-direction: column; }
  .actions-top { justify-content: flex-start; }
  .editor-grid { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .device { border-width: 7px; border-radius: 24px; }
}


.login-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(10,102,194,.22), transparent 26%), #111827;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  width: min(100%, 430px);
  background: white;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.login-brand {
  color: var(--text);
  margin-bottom: 20px;
}

.login-card h1 {
  margin-bottom: 4px;
}

.login-error {
  margin-top: 12px;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
}

.counter-pill {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

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

.calendar-grid.week-view {
  grid-template-columns: repeat(7, minmax(140px, 1fr));
}

.calendar-grid.month-view {
  grid-template-columns: repeat(7, minmax(118px, 1fr));
}

.calendar-grid.quarter-view {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.month-block {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.month-title {
  font-size: 14px;
  font-weight: 950;
  margin-bottom: 10px;
}

.month-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.month-mini-day-name {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.month-mini-day {
  min-height: 54px;
  background: white;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 5px;
  font-size: 10px;
  overflow: hidden;
}

.month-mini-day.empty-day {
  background: transparent;
  border: 0;
}

.month-mini-date {
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 3px;
}

.month-dot {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 4px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.month-more {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .calendar-grid.quarter-view {
    grid-template-columns: 1fr;
  }
}


/* Month calendar, screenshot-inspired layout */
.calendar-grid.month-view {
  display: block;
  padding: 16px;
}

.month-calendar-shell {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfcfd;
  padding: 18px 14px 22px;
  max-width: 980px;
}

.month-calendar-title {
  font-size: 18px;
  font-weight: 950;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  text-transform: lowercase;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: 42px repeat(7, minmax(82px, 1fr));
  gap: 6px;
}

.month-weekday,
.month-week-number,
.month-day-cell {
  border-radius: 10px;
}

.month-weekday {
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 0;
}

.month-week-number {
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  background: #f2f4f7;
  border: 1px solid #eaecf0;
}

.month-day-cell {
  min-height: 86px;
  background: white;
  border: 1px solid #e4e7ec;
  padding: 8px;
  overflow: hidden;
}

.month-day-cell.outside-month {
  opacity: .38;
  background: #f8fafc;
}

.month-day-date {
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 6px;
}

.month-post-pill {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  padding: 4px 6px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.month-post-pill.ready {
  background: #e9f7ef;
  color: var(--green);
}

.month-post-pill.draft {
  background: #fff8db;
  color: var(--yellow);
}

.month-post-pill.idea {
  background: #f4f3ff;
  color: var(--purple);
}

.month-post-pill.published {
  background: #f2f4f7;
  color: #667085;
}

.month-post-more {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .month-calendar-grid {
    grid-template-columns: 34px repeat(7, minmax(44px, 1fr));
    gap: 4px;
  }

  .month-day-cell {
    min-height: 72px;
    padding: 5px;
  }

  .month-post-pill {
    font-size: 9px;
    padding: 3px 4px;
  }

  .month-weekday {
    font-size: 9px;
  }
}


/* Calendar navigation and expanded layouts */
.calendar-controls {
  gap: 10px;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.nav-round {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 950;
  line-height: 1;
}

.period-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}

.calendar-grid.week-view {
  grid-template-columns: 52px repeat(7, minmax(140px, 1fr));
}

.week-number-column {
  min-height: 170px;
  background: #f2f4f7;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.month-calendar-shell {
  max-width: none;
  width: 100%;
}

.month-calendar-grid {
  grid-template-columns: 52px repeat(7, minmax(110px, 1fr));
}

.month-day-cell {
  min-height: 112px;
}

.calendar-grid.quarter-view {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.month-block {
  cursor: pointer;
  transition: .15s ease;
}

.month-block:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,102,194,.10);
}

.month-block .month-title::after {
  content: "Klik for måned";
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  margin-top: 3px;
  text-transform: none;
}

@media (max-width: 1180px) {
  .calendar-controls {
    justify-content: flex-start;
  }

  .calendar-grid.week-view {
    grid-template-columns: 1fr;
  }

  .week-number-column {
    min-height: auto;
    justify-content: flex-start;
  }

  .month-calendar-grid {
    grid-template-columns: 42px repeat(7, minmax(70px, 1fr));
  }

  .month-day-cell {
    min-height: 88px;
  }
}

@media (max-width: 720px) {
  .calendar-controls {
    align-items: flex-start;
  }

  .period-label {
    width: 100%;
  }
}


/* Cleaner planner layout: posts list + wide editor/preview row */
.planner-layout {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}

.posts-panel {
  position: sticky;
  top: 18px;
}

.editor-preview-panel {
  min-width: 0;
}

.editor-preview-grid {
  display: grid;
  grid-template-columns: minmax(430px, .95fr) minmax(360px, .75fr);
  gap: 0;
  align-items: stretch;
}

.editor-column {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.preview-column {
  min-width: 0;
  background: #e6e2dc;
}

.editor-preview-panel .preview-wrap {
  height: 100%;
  min-height: 760px;
  align-content: start;
  position: sticky;
  top: 18px;
}

.editor-preview-panel .device {
  margin-top: 0;
}

.editor-preview-panel textarea {
  min-height: 310px;
}

.editor-preview-panel .panel-body {
  padding-bottom: 10px;
}

@media (max-width: 1280px) {
  .planner-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

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

  .editor-column {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .editor-preview-panel .preview-wrap {
    min-height: auto;
    position: static;
  }
}

@media (max-width: 980px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .posts-panel {
    position: static;
  }

  .posts-list {
    max-height: 360px;
  }
}


/* Top row with next 3 posts, then editor and preview side by side */
.planner-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.next-posts-panel {
  width: 100%;
}

.next-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-posts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding: 14px 18px 18px;
}

.top-posts-list:has(.post-card:nth-child(4)) {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.next-post-card {
  min-height: 158px;
}

.next-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 8px;
}

.editor-preview-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(390px, .82fr);
  gap: 0;
  align-items: stretch;
}

.editor-column {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.preview-column {
  min-width: 0;
  background: #e6e2dc;
}

.editor-preview-panel .preview-wrap {
  min-height: 760px;
  height: 100%;
  align-content: start;
  position: sticky;
  top: 18px;
}

.editor-preview-panel textarea {
  min-height: 330px;
}

.editor-preview-panel .preview-controls {
  border-top: 1px solid var(--border);
}

@media (max-width: 1180px) {
  .top-posts-list {
    grid-template-columns: 1fr;
  }

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

  .editor-column {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .editor-preview-panel .preview-wrap {
    position: static;
    min-height: auto;
  }
}


/* Carousel preview */
.carousel-preview {
  width: 100%;
  position: relative;
  background: #f7f7f7;
}

.carousel-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.asset-box.cover .carousel-preview img {
  height: 260px;
  object-fit: cover;
}

.carousel-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.72);
  color: white;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}

.carousel-dots span.active {
  width: 16px;
  background: white;
}


.save-state {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.save-state.dirty {
  background: #fff8db;
  color: var(--yellow);
  border-color: #f5df89;
}


/* ErhvervsAward Slagelse branding */
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}

.login-brand .brand-logo {
  width: 42px;
  height: 42px;
}

.avatar {
  background: #001b1d;
}

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


/* Clean editor for fixed ErhvervsAward profile */
.editor-grid {
  align-items: start;
}

.editor-grid .field.full textarea,
#body {
  min-height: 430px;
}


/* LinkedIn-style multi image grid preview */
.asset-box:has(.multi-image-grid) {
  display: block;
  min-height: 0;
  background: #fff;
}

.multi-image-grid {
  width: 100%;
  height: 285px;
  display: grid;
  gap: 2px;
  background: #fff;
  overflow: hidden;
}

.multi-image-tile {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.multi-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2 images: side by side */
.multi-image-grid.count-2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 images: one large left, two stacked right */
.multi-image-grid.count-3 {
  grid-template-columns: 1.25fr .9fr;
  grid-template-rows: 1fr 1fr;
}

.multi-image-grid.count-3 .tile-1 {
  grid-row: 1 / span 2;
}

/* 4 images: two by two */
.multi-image-grid.count-4,
.multi-image-grid.five-plus {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* 5+ images: 2x2 with overlay count on last tile */
.multi-image-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 36px;
  font-weight: 950;
  display: grid;
  place-items: center;
  letter-spacing: -.03em;
}

/* If user toggles cover, keep grid behavior stable */
.asset-box.cover .multi-image-grid img {
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .multi-image-grid {
    height: 245px;
  }

  .multi-image-more {
    font-size: 30px;
  }
}


/* Uploaded image manager for each post */
.image-manager {
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.image-manager-title {
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 9px;
}

.image-manager-empty {
  color: var(--muted);
  font-size: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}

.image-thumb {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.image-thumb img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  display: block;
  background: #f2f4f7;
}

.image-thumb-number {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(17,24,39,.82);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 950;
}

.image-thumb-actions {
  display: flex;
  gap: 4px;
  padding: 7px;
  background: #fbfcfd;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.image-action {
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.image-action:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.image-action:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.image-action.danger {
  color: var(--red);
  border-color: #fecaca;
  background: #fff5f5;
  margin-left: auto;
}

@media (max-width: 720px) {
  .image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.image-thumb-actions button { cursor: pointer; }


.image-thumb-actions .image-action {
  user-select: none;
}

.image-thumb.moving {
  outline: 3px solid rgba(10,102,194,.2);
}


/* Up next pagination */
.upnext-nav {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.upnext-nav .nav-round:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.top-posts-list {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

@media (max-width: 1180px) {
  .top-posts-list {
    grid-template-columns: 1fr;
  }
}


/* Næste opslag cards: no LinkedIn body preview */
.next-post-card .sub {
  display: none !important;
}

.next-post-card {
  min-height: 106px;
}

.next-post-card .post-title {
  margin-bottom: 10px;
}

.next-post-card .post-meta {
  margin-top: 0;
}


/* Contentplan PDF view */
.contentplan-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contentplan-upload {
  max-width: 620px;
}

.contentplan-viewer-wrap {
  border-top: 1px solid var(--border);
  background: #f8fafc;
  min-height: 70vh;
  padding: 16px;
}

.contentplan-frame {
  width: 100%;
  height: 75vh;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 22px rgba(16,24,40,.06);
}

@media (max-width: 720px) {
  .contentplan-frame {
    height: 68vh;
  }
}
