:root {
  --navy: #202642;
  --navy-deep: #151a32;
  --navy-ink: #11162a;
  --navy-soft: #28304f;
  --pink: #e874ad;
  --pink-strong: #f27eb8;
  --white: #ffffff;
  --lavender: #c9cde4;
  --lavender-soft: rgba(201, 205, 228, 0.72);
  --line: rgba(201, 205, 228, 0.18);
  --line-strong: rgba(201, 205, 228, 0.34);
  --green: #43d085;
  --warning: #f4bb5c;
  --danger: #f27e9c;
  --shadow: 0 24px 70px rgba(7, 10, 26, 0.34);
  --display: "Archivo Black", Impact, Haettenschweiler, "Arial Black", sans-serif;
  --ui: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color-scheme: dark;
  font-family: var(--ui);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--white);
}

body::before {
  content: "";
  position: fixed;
  top: 172px;
  right: 7vw;
  z-index: 0;
  width: 96px;
  height: 96px;
  border: 6px solid var(--pink);
  border-radius: 50%;
  opacity: 0.82;
  pointer-events: none;
}

body::after {
  content: "×";
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 0;
  color: var(--pink);
  font-family: var(--ui);
  font-size: 96px;
  font-weight: 400;
  line-height: 0.7;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(232, 116, 173, 0.42);
  outline-offset: 3px;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy);
}

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

.login-card {
  display: grid;
  width: min(620px, 100%);
  gap: 24px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(17, 22, 42, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.login-brand {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.login-brand img {
  width: clamp(110px, 22vw, 160px);
  height: auto;
  border-radius: 22px;
  object-fit: contain;
}

.login-brand small {
  color: var(--lavender);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--lavender);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--pink);
  font-weight: 800;
}

.login-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-shortcuts button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.7rem;
}

.app-shell.is-locked {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(360px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(32, 38, 66, 0.96);
  backdrop-filter: blur(16px);
}

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

.brand-block img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
}

.brand-block small {
  max-width: 92px;
  color: var(--lavender);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--lavender);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line-strong);
  background: rgba(201, 205, 228, 0.08);
  color: var(--white);
}

.nav-icon {
  display: inline-grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink);
  font-size: 0.62rem;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: end;
  justify-content: end;
  gap: 12px;
}

.compact-control,
.post-form label,
.dialog-card label {
  display: grid;
  gap: 8px;
  color: var(--lavender);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-control {
  min-width: 220px;
}

.role-control {
  min-width: 150px;
}

.role-help {
  grid-column: 2 / 4;
  justify-self: end;
  max-width: 560px;
  margin-top: -18px;
  text-align: right;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--navy-ink);
  color: var(--white);
  font-family: var(--ui);
  font-weight: 500;
  text-transform: none;
  outline: none;
}

select,
input {
  min-height: 48px;
  padding: 0 18px;
}

textarea {
  min-height: 120px;
  padding: 16px 18px;
  line-height: 1.55;
  resize: vertical;
}

#postTitleInput,
#dialogTitle {
  min-height: 150px;
  overflow: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#dialogTitle {
  min-height: 132px;
}

select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e874ad' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-position: calc(100% - 18px) 50%;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}

::placeholder {
  color: rgba(201, 205, 228, 0.58);
}

.workspace {
  min-width: 0;
  padding: 44px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.topbar h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(28, 34, 60, 0.86);
  box-shadow: var(--shadow);
}

.metric-card {
  position: relative;
  min-height: 146px;
  overflow: hidden;
  padding: 20px;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
}

.metric-card:nth-child(3)::after {
  background: var(--green);
}

.metric-card strong {
  display: block;
  margin-top: 18px;
  color: var(--white);
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.9;
}

.metric-card span {
  color: var(--lavender);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-grid,
.approval-layout,
.clients-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  gap: 16px;
}

.panel {
  padding: 22px;
}

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

.panel h3,
.dialog-card h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-button {
  padding: 0 24px;
  background: var(--pink);
  color: var(--navy);
}

.primary-button:hover {
  background: var(--pink-strong);
}

.header-cta {
  min-width: 178px;
  min-height: 56px;
}

.secondary-button {
  padding: 0 18px;
  border-color: var(--line-strong);
  background: rgba(17, 22, 42, 0.72);
  color: var(--white);
}

.secondary-button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--pink);
}

.icon-button {
  display: grid;
  width: 46px;
  place-items: center;
  border-color: var(--line-strong);
  background: rgba(17, 22, 42, 0.72);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
}

.muted-small {
  margin: 8px 0 0;
  color: var(--lavender-soft);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}

.coverage-list,
.status-stack,
.approval-list,
.comment-list,
.client-cards,
.asset-preview-list {
  display: grid;
  gap: 12px;
}

.coverage-item,
.status-row,
.approval-card,
.client-card,
.comment-card,
.learning-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 22, 42, 0.62);
}

.coverage-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.coverage-item strong,
.status-row strong,
.approval-card strong,
.client-card strong {
  color: var(--white);
}

.coverage-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--navy-ink);
}

.coverage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
}

.coverage-date {
  color: var(--white);
  font-weight: 900;
  white-space: nowrap;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(232, 116, 173, 0.12);
}

.calendar-panel {
  overflow: hidden;
  padding: 0;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 46px max-content 46px minmax(170px, 220px);
  gap: 12px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar h3 {
  min-width: 210px;
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.35rem;
  text-align: center;
  text-transform: uppercase;
}

.calendar-status-filter {
  display: grid;
  gap: 6px;
  color: var(--lavender);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: rgba(17, 22, 42, 0.62);
}

.calendar-weekdays span {
  padding: 12px;
  border-right: 1px solid var(--line);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 146px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(32, 38, 66, 0.64);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.calendar-day:nth-child(7n + 1) {
  border-left: 0;
}

.calendar-day.outside {
  background: rgba(17, 22, 42, 0.44);
  color: rgba(201, 205, 228, 0.45);
}

.calendar-day.calendar-drop-ready {
  background: rgba(232, 116, 173, 0.12);
  box-shadow: inset 0 0 0 2px var(--pink);
}

.day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: var(--white);
  font-weight: 900;
}

.day-add {
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--pink);
  font-size: 1rem;
  line-height: 1;
}

.day-add:hover {
  background: var(--pink);
  color: var(--navy);
}

.post-chip {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--pink);
  border-radius: 14px;
  background: var(--navy-ink);
  color: var(--white);
  cursor: grab;
  text-align: left;
  transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.calendar-status-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(201, 205, 228, 0.32);
  border-radius: 999px;
  color: var(--status-color, var(--pink));
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--status-color, var(--pink));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color, var(--pink)) 22%, transparent);
}

.post-chip:hover {
  border-color: var(--pink);
}

.post-chip:active {
  cursor: grabbing;
}

.post-chip.dragging {
  opacity: 0.46;
  transform: scale(0.98);
}

.post-chip strong,
.post-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-chip strong {
  color: var(--white);
  font-size: 0.76rem;
  line-height: 1.25;
}

.post-chip span {
  color: var(--lavender-soft);
  font-size: 0.7rem;
}

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

.editor-panel {
  border-color: rgba(232, 116, 173, 0.34);
}

.post-form {
  display: grid;
  gap: 16px;
}

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

#postCopy {
  min-height: 420px;
  border-color: rgba(232, 116, 173, 0.38);
  background: rgba(17, 22, 42, 0.86);
  color: var(--white);
  font-size: 1rem;
}

.prompt-box,
.learning-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(232, 116, 173, 0.34);
  border-radius: 24px;
  background: rgba(232, 116, 173, 0.08);
}

.doers-ai-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--white);
}

.doers-ai-title strong {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.ai-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-status-pill.is-live {
  border-color: rgba(67, 208, 133, 0.75);
  color: var(--green);
}

.ai-help {
  margin-top: -8px;
}

.ai-sparkles {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(232, 116, 173, 0.58);
  border-radius: 50%;
  color: var(--pink);
  font-size: 1.15rem;
}

.editor-note {
  min-height: 24px;
}

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

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

.ai-settings-panel {
  border-color: rgba(67, 208, 133, 0.28);
}

.ai-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.asset-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.file-label {
  display: inline-flex;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--lavender);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.file-label-clip::before {
  content: "📎";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.asset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 22, 42, 0.62);
}

.asset-frame {
  display: grid;
  aspect-ratio: 4 / 5;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: var(--navy-ink);
}

.asset-frame img,
.asset-frame video,
.asset-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.asset-placeholder {
  padding: 26px;
  color: var(--lavender);
  font-weight: 900;
  text-align: center;
}

.asset-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.asset-meta strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.asset-dialog {
  width: min(1060px, calc(100vw - 28px));
}

.asset-dialog-card {
  width: min(980px, 100%);
}

.asset-viewer-shell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.asset-dialog-frame {
  display: grid;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 900px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--navy-ink);
}

.asset-dialog-frame img,
.asset-dialog-frame video,
.asset-dialog-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #11162a;
}

.asset-nav-button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(17, 22, 42, 0.74);
  color: var(--pink);
  font-family: var(--display);
  font-size: 2rem;
}

.asset-nav-button:disabled {
  opacity: 0.25;
}

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

.publish-url-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 22, 42, 0.82);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-pill {
  min-height: 28px;
  color: var(--pink);
}

.approval-card,
.client-card,
.comment-card,
.learning-item {
  padding: 16px;
}

.approval-card {
  display: grid;
  gap: 12px;
}

.kanban-panel {
  overflow: hidden;
}

.approval-list {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--pink) rgba(17, 22, 42, 0.72);
  scrollbar-width: thin;
}

.approval-list::-webkit-scrollbar {
  height: 10px;
}

.approval-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(17, 22, 42, 0.72);
}

.approval-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--pink);
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 340px);
  grid-template-columns: none;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  min-height: 540px;
  overflow: visible;
  padding: 2px 2px 12px;
}

.kanban-column {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 22, 42, 0.46);
}

.kanban-column.drop-ready {
  border-color: var(--pink);
  box-shadow: inset 0 0 0 2px rgba(232, 116, 173, 0.18);
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.kanban-column-header div {
  display: flex;
  align-items: center;
  min-width: 0;
}

.kanban-column-header strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kanban-dropzone {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 430px;
  padding: 12px;
}

.kanban-empty-add {
  display: grid;
  min-height: 180px;
  width: 100%;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(17, 22, 42, 0.34);
  color: var(--lavender);
  text-align: center;
}

.kanban-empty-add span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--pink);
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}

.kanban-empty-add strong {
  color: var(--lavender);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.kanban-empty-add:hover {
  border-color: var(--pink);
  color: var(--white);
}

.kanban-card {
  cursor: grab;
  border-left: 5px solid var(--status-color, var(--pink));
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.46;
}

.kanban-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.change-history {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(232, 116, 173, 0.32);
  border-radius: 16px;
  background: rgba(232, 116, 173, 0.08);
}

.change-history > strong {
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.change-history label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--lavender-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.change-history input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--pink);
}

.change-history span {
  min-width: 0;
}

.change-history label.done span {
  color: rgba(201, 205, 228, 0.62);
  text-decoration: line-through;
}

.design-asset-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(32, 38, 66, 0.5);
}

.design-asset-box > strong {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.design-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.design-asset-row input {
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.design-asset-row .secondary-button {
  min-height: 46px;
  padding-inline: 16px;
  font-size: 0.74rem;
}

.kanban-upload {
  display: inline-flex;
  min-height: 48px;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--lavender);
  cursor: pointer;
}

.kanban-upload input {
  display: none;
}

.kanban-upload strong {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.inline-copy-editor,
.card-change-box,
.spellcheck-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(32, 38, 66, 0.72);
}

.inline-copy-editor label {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inline-copy-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.inline-copy-actions .secondary-button {
  min-height: 46px;
  padding-inline: 16px;
  font-size: 0.76rem;
}

.inline-copy-actions .icon-button {
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
}

.inline-copy-editor textarea,
.card-change-box textarea {
  min-height: 110px;
  border-radius: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.spellcheck-box strong {
  color: var(--pink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.spellcheck-box p {
  margin: 0;
}

.kanban-empty {
  display: grid;
  min-height: 110px;
  margin: 0;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--lavender-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.approval-card header,
.client-card header,
.comment-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.approval-card p,
.client-card p,
.comment-card p {
  margin: 0;
  color: var(--lavender-soft);
  line-height: 1.45;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.comment-card strong {
  color: var(--white);
  font-size: 0.92rem;
}

.comment-card time {
  color: var(--lavender-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.comment-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.learning-box {
  display: grid;
  margin-top: 16px;
}

.learning-item {
  margin-top: 8px;
  color: var(--white);
  background: rgba(232, 116, 173, 0.1);
}

.notification-box {
  align-items: stretch;
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.notification-more {
  width: 100%;
  margin-top: 10px;
}

.notification-item {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(67, 208, 133, 0.08);
}

.notification-item.read {
  background: rgba(17, 22, 42, 0.42);
  opacity: 0.74;
}

.notification-item strong {
  color: var(--green);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.notification-item p {
  margin: 0;
  color: var(--lavender-soft);
  line-height: 1.42;
}

.notification-item time {
  color: rgba(201, 205, 228, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
}

.idea-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.idea-preview-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.idea-preview-card header span {
  display: block;
  color: var(--lavender-soft);
}

.idea-preview-card textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.strategy-attachments,
.attachment-list {
  display: grid;
  gap: 10px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 22, 42, 0.62);
}

.attachment-item strong {
  color: var(--white);
  font-size: 0.9rem;
}

.attachment-item p {
  margin: 4px 0 0;
  color: var(--lavender-soft);
  font-size: 0.78rem;
}

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

.client-card {
  cursor: pointer;
}

.client-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.client-card-heading img,
.client-card-heading span,
.client-logo-preview {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--navy-ink);
  color: var(--pink);
  font-family: var(--display);
}

.client-card-heading img {
  display: block;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 6px;
}

.client-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  padding: 6px;
}

.client-card-heading div {
  min-width: 0;
}

.client-card-heading p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-card.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232, 116, 173, 0.16);
}

.client-logo-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.client-logo-preview {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  font-size: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

dialog {
  width: min(560px, calc(100vw - 24px));
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 0;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 30px 90px rgba(7, 10, 26, 0.5);
}

.preview-dialog {
  width: min(1040px, calc(100vw - 24px));
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -4px 0 10px;
}

.preview-toolbar .mini-pill {
  min-width: 76px;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.6rem;
}

.preview-mode-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(17, 22, 42, 0.92);
  color: var(--pink);
}

.preview-mode-toggle:hover {
  border-color: var(--pink);
  background: rgba(232, 116, 173, 0.14);
}

.preview-mode-toggle::before,
.preview-mode-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid currentColor;
}

.preview-mode-toggle[data-mode="desktop"]::before {
  top: 9px;
  width: 16px;
  height: 11px;
  border-radius: 3px;
}

.preview-mode-toggle[data-mode="desktop"]::after {
  top: 23px;
  width: 10px;
  height: 0;
  border-width: 2px 0 0;
}

.preview-mode-toggle[data-mode="mobile"]::before {
  top: 7px;
  width: 10px;
  height: 18px;
  border-radius: 5px;
}

.preview-mode-toggle[data-mode="mobile"]::after {
  top: 22px;
  width: 2px;
  height: 2px;
  border-width: 0;
  border-radius: 50%;
  background: currentColor;
}

.linkedin-preview {
  display: grid;
  justify-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f3f2ef;
  color: #191919;
}

.linkedin-preview.mobile-preview {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px;
}

.linkedin-post {
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #ffffff;
  color: #191919;
  font-family: Arial, Helvetica, sans-serif;
}

.mobile-preview .linkedin-post {
  width: 100%;
  border-radius: 8px;
}

.linkedin-author {
  display: flex;
  gap: 10px;
  padding: 14px 16px 8px;
}

.linkedin-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #202642;
  color: #ffffff;
  font-weight: 800;
}

.linkedin-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  padding: 5px;
  background: #ffffff;
}

.linkedin-author strong {
  display: block;
  color: #191919;
  font-size: 0.95rem;
}

.linkedin-author span {
  color: #666666;
  font-size: 0.78rem;
}

.linkedin-copy {
  padding: 6px 16px 14px;
  color: #191919;
  font-size: 0.94rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.linkedin-copy-edit-label {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
  color: #666666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.linkedin-copy-editor-field {
  width: 100%;
  min-height: min(440px, 54vh);
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #191919;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
  resize: vertical;
}

.linkedin-copy-editor-field:focus {
  outline: 2px solid rgba(10, 102, 194, 0.28);
  outline-offset: 4px;
}

.preview-copy-actions {
  margin-top: 14px;
}

.mobile-preview .linkedin-copy {
  font-size: 0.88rem;
}

.linkedin-media {
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
  background: #f7f7f7;
}

.linkedin-media img,
.linkedin-media video,
.linkedin-media iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  object-fit: cover;
}

.mobile-preview .linkedin-media img,
.mobile-preview .linkedin-media video,
.mobile-preview .linkedin-media iframe {
  height: 280px;
}

.linkedin-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px;
  color: #666666;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

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

.preview-change-box {
  display: grid;
  gap: 10px;
}

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

.preview-change-box textarea {
  min-height: 96px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

dialog::backdrop {
  background: rgba(10, 13, 28, 0.72);
}

.dialog-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}

@media (max-width: 1280px) {
  .app-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .role-help {
    grid-column: auto;
    justify-self: start;
    margin-top: -10px;
    text-align: left;
  }

  .metrics-grid,
  .content-grid,
  .approval-layout,
  .clients-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  body::before {
    width: 64px;
    height: 64px;
    border-width: 4px;
  }

  body::after {
    font-size: 72px;
  }

  .app-header,
  .workspace {
    padding: 22px 16px;
  }

  .brand-block img {
    width: 48px;
    height: 48px;
  }

  .header-actions,
  .topbar,
  .topbar-actions,
  .coverage-item,
  .calendar-toolbar,
  .asset-input-row,
  .action-grid,
  .side-column {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .compact-control,
  .role-control {
    min-width: 0;
  }

  .topbar h2 {
    font-size: 2.2rem;
  }

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

  .metric-card strong {
    font-size: 2.3rem;
  }

  .calendar-weekdays {
    display: none;
  }

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

  .calendar-day {
    min-height: 104px;
    border-left: 0;
  }

  .prompt-box {
    display: grid;
  }

  .inline-actions {
    justify-content: stretch;
  }

  .inline-actions button,
  .approval-actions button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-item {
    min-width: max-content;
  }

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

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .panel-header,
  .approval-card header,
  .client-card header,
  .comment-card header {
    display: grid;
  }

  .topbar h2 {
    font-size: 1.85rem;
  }

  #postCopy {
    min-height: 340px;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body::before,
  body::after,
  .app-header,
  .topbar-actions,
  .side-column,
  dialog {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .content-grid,
  .approval-layout,
  .clients-layout,
  .editor-layout,
  .metrics-grid {
    display: block;
  }

  .workspace {
    padding: 0;
  }

  .panel,
  .metric-card {
    margin-bottom: 14px;
    border-color: #dddddd;
    background: #ffffff;
    color: #111111;
    box-shadow: none;
  }
}
