@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0d0f13;
  --sidebar: #11141a;
  --surface: #151920;
  --surface-2: #1a1f28;
  --surface-3: #202631;
  --input: #191e27;
  --line: #292f3a;
  --line-strong: #353d49;
  --text: #f3f5f7;
  --text-soft: #c5cbd3;
  --muted: #89929f;
  --accent: #f59e0b;
  --accent-strong: #ffad1f;
  --accent-soft: rgba(245, 158, 11, .13);
  --ok: #43c287;
  --ok-soft: rgba(67, 194, 135, .13);
  --bad: #ef6b73;
  --bad-soft: rgba(239, 107, 115, .13);
  --info: #6d9cff;
  --info-soft: rgba(109, 156, 255, .13);
  --warning: #f6bd5a;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
  --sidebar-width: 260px;
  --topbar-height: 68px;
  --radius: 16px;
  --radius-small: 11px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }

/* App shell */
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 8px 20px; }
.brand-mark, .login-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-strong), #dc7d00);
  color: #18120a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: 0 8px 22px rgba(245, 158, 11, .2);
}
.brand-copy, .login-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong, .login-brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small, .login-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.sidebar-close { display: none; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; padding-top: 13px; }
.nav-group-label { padding: 0 12px 9px; color: #666f7c; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-group-spacer { margin-top: 24px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin-bottom: 4px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); border-color: rgba(245, 158, 11, .18); color: var(--accent-strong); }
.nav-icon { display: inline-grid; place-items: center; width: 21px; font-size: 17px; }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
}
.sidebar-user:hover, .sidebar-user.active { background: var(--surface-2); }
.user-avatar, .topbar-profile {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}
.user-copy { min-width: 0; display: flex; flex-direction: column; }
.user-copy strong { overflow: hidden; color: var(--text-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.user-arrow { color: var(--muted); font-size: 20px; }
.logout-link { display: block; margin-top: 6px; padding: 8px 12px; color: #737c89; font-size: 12px; }
.logout-link:hover { color: var(--bad); }

.app-stage { grid-column: 2; min-width: 0; }
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(13, 15, 19, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.mobile-menu-button { display: none; border: 0; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; }
.topbar-context { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.topbar-context strong { color: var(--text-soft); }
.topbar-separator { color: #4e5662; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.system-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.topbar-profile { width: 34px; height: 34px; font-size: 10px; }
.app-content { width: min(1440px, 100%); margin: 0 auto; padding: 36px 36px 64px; }
.sidebar-backdrop { display: none; }

/* Typography and common components */
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(31px, 4vw, 46px); }
h2 { font-size: clamp(21px, 2.3vw, 28px); }
h3 { font-size: 17px; }
p { margin: 0; color: var(--muted); }
strong { color: var(--text-soft); }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted) !important; }
.optional-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading p { margin-top: 10px; font-size: 15px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { margin-top: -2px; }
.text-link { color: var(--muted); font-size: 12px; font-weight: 650; }
.text-link:hover { color: var(--accent); }

.card, .mini-card, .info-box, .content-picker, .image-generator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.015), var(--shadow);
}
.card { margin-bottom: 22px; padding: 28px; }
.card > h1 + p, .card > h2 + p { margin-top: 9px; }
.mini-card, .info-box { margin-top: 18px; padding: 20px; box-shadow: none; }
.grid, .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #18120a;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .13);
}
button:hover, .btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-secondary, button.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text-soft);
  box-shadow: none;
}
.btn-secondary:hover, button.btn-secondary:hover { background: var(--surface-3); color: var(--text); }
.btn-danger, button.btn-danger { background: var(--bad-soft); border-color: rgba(239,107,115,.24); color: var(--bad); box-shadow: none; }
.btn-danger:hover, button.btn-danger:hover { background: var(--bad); color: #fff; }

label { display: block; margin: 16px 0 7px; color: var(--text-soft); font-size: 12px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  min-height: 43px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--input);
  color: var(--text);
}
textarea { min-height: 100px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #626b78; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly], textarea[readonly] { background: #13171d; color: var(--text-soft); cursor: default; }
select { color-scheme: dark; }
.check { display: flex !important; align-items: center; gap: 9px; }
.check input { width: auto; min-height: 0; accent-color: var(--accent); }

.msg { margin: 15px 0; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); color: var(--text-soft); font-size: 13px; }
.msg.ok { background: var(--ok-soft); border-color: rgba(67,194,135,.28); color: #83dfb2; }
.msg.bad { background: var(--bad-soft); border-color: rgba(239,107,115,.28); color: #ff9da3; }
.badge, .asset-status, .asset-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-review, .badge-processing, .badge-scheduled, .asset-status-generating, .asset-status-requested { background: var(--accent-soft); border-color: rgba(245,158,11,.25); color: #ffc868; }
.badge-approved, .badge-published, .asset-status-generated, .asset-status-approved, .asset-status-published { background: var(--ok-soft); border-color: rgba(67,194,135,.25); color: #7bdfae; }
.badge-revision, .badge-error, .asset-status-error { background: var(--bad-soft); border-color: rgba(239,107,115,.25); color: #ff9ca3; }
.badge-draft { background: var(--info-soft); border-color: rgba(109,156,255,.25); color: #9dbaff; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card {
  position: relative;
  display: flex;
  min-height: 164px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: auto; border-radius: 10px; background: var(--surface-3); color: var(--accent); }
.metric-value { margin-top: 22px; color: var(--text); font-size: 32px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.metric-card strong { margin-top: 7px; font-size: 13px; }
.metric-card small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 22px; }
.dashboard-primary-card, .dashboard-side-card { margin: 0; }
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 4px; border-top: 1px solid var(--line); }
.recent-item:first-child { border-top: 0; }
.recent-item:hover .recent-copy strong { color: var(--accent); }
.recent-channel { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3); color: var(--text-soft); font-size: 12px; font-weight: 750; }
.recent-copy { min-width: 0; display: flex; flex-direction: column; }
.recent-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-side-card > p { margin: 10px 0 20px; }
.module-launch { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 10px; padding: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.module-launch:hover { border-color: rgba(245,158,11,.34); background: var(--accent-soft); }
.module-launch-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.module-launch > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.module-launch strong { font-size: 12px; }
.module-launch small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.module-launch.secondary .module-launch-icon { background: var(--info-soft); color: #9dbaff; }
.empty-state { display: flex; min-height: 280px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.compact-empty { min-height: 190px; }
.empty-state > span { margin-bottom: 13px; color: var(--accent); font-size: 26px; }
.empty-state p { max-width: 420px; margin-top: 7px; font-size: 12px; }

/* Content Studio */
.studio-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-sidebar { position: sticky; top: calc(var(--topbar-height) + 24px); min-height: 650px; max-height: calc(100vh - var(--topbar-height) - 48px); padding: 22px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.studio-main { min-width: 0; min-height: 650px; }
.studio-main.card { padding: 30px; }
.sidebar-toggle-btn {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 9px;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}
.sidebar-toggle-btn:hover { background: var(--surface-3); color: var(--text); }
.sidebar-create { transition: opacity .15s ease; }
.sidebar-separator { height: 1px; margin: 22px 0; background: var(--line); }
.compact-form label, .studio-main label { margin-top: 14px; }
.post-list { display: flex; flex-direction: column; gap: 8px; }
.post-item { display: block; padding: 12px 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; color: var(--text-soft); }
.post-item:hover { border-color: var(--line-strong); background: var(--surface-3); transform: translateY(-1px); }
.post-item.active { border-color: rgba(245,158,11,.45); background: var(--accent-soft); box-shadow: 0 0 0 2px rgba(245,158,11,.06); }
.post-item strong { display: block; color: inherit; font-size: 12px; line-height: 1.35; }
.post-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.studio-layout.sidebar-collapsed { grid-template-columns: 66px minmax(0, 1fr); }
.studio-layout.sidebar-collapsed .studio-sidebar { padding: 15px 10px; overflow: hidden; }
.studio-layout.sidebar-collapsed .sidebar-create,
.studio-layout.sidebar-collapsed .sidebar-separator,
.studio-layout.sidebar-collapsed .post-list,
.studio-layout.sidebar-collapsed .studio-sidebar > .eyebrow { display: none; opacity: 0; pointer-events: none; }
.studio-layout.sidebar-collapsed .sidebar-toggle-btn { right: 15px; }
.content-picker { margin: 24px 0; padding: 22px; box-shadow: none; }
.content-picker h2 { margin-bottom: 6px; }
.content-picker-form label { margin-top: 4px; }
.content-picker-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; align-items: end; }
.content-picker-controls button { white-space: nowrap; }
.image-generator-card { margin: 18px 0 22px; padding: 20px; background: linear-gradient(145deg, rgba(245,158,11,.075), var(--surface)); border-color: rgba(245,158,11,.22); box-shadow: none; }
.image-generator-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.image-generator-hint { margin-top: 6px; font-size: 12px; }
.advanced-settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.advanced-settings summary, .asset-details summary { color: var(--text-soft); font-size: 11px; font-weight: 650; cursor: pointer; }
.revision-notice { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 15px; margin: 18px 0; padding: 18px; background: var(--bad-soft); border: 1px solid rgba(239,107,115,.25); border-radius: 13px; }
.revision-notice-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(239,107,115,.18); color: var(--bad); font-weight: 800; }
.revision-notice p { margin-top: 7px; color: #efb1b5; }
.revision-notice small { color: var(--muted); font-size: 10px; }
.reviewer-content-view { padding: 2px 0; }
.review-actions-panel { margin-top: 24px; padding: 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.review-panel-head p { margin-top: 6px; font-size: 12px; }
.review-action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.review-btn { min-height: 74px; align-items: flex-start; flex-direction: column; border-radius: 12px; box-shadow: none; }
.review-btn-kicker { opacity: .75; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.review-btn-label { font-size: 14px; }
.review-btn-approve { background: var(--ok-soft); border-color: rgba(67,194,135,.28); color: #8ae4b8; }
.review-btn-approve:hover { background: var(--ok); color: #092417; }
.review-btn-revision { background: var(--bad-soft); border-color: rgba(239,107,115,.28); color: #ff9da3; }
.review-btn-revision:hover { background: var(--bad); color: #fff; }

/* Assets */
.asset-section { overflow: hidden; }
.asset-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.asset-section-head h2 { margin-bottom: 0; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.asset-card { overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.asset-preview { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #101319; border-bottom: 1px solid var(--line); }
.asset-preview a { display: block; width: 100%; height: 100%; }
.asset-preview img { display: block; width: 100%; height: 100%; object-fit: contain; background: #101319; }
.asset-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; flex-direction: column; padding: 24px; color: var(--muted); text-align: center; }
.asset-placeholder strong { margin-bottom: 5px; }
.asset-placeholder small { font-size: 10px; }
.asset-loading { background: linear-gradient(110deg, #151922 20%, #202630 40%, #151922 60%); background-size: 220% 100%; animation: assetShimmer 1.8s linear infinite; }
.asset-spinner { width: 30px; height: 30px; margin-bottom: 12px; border: 3px solid rgba(245,158,11,.18); border-top-color: var(--accent); border-radius: 50%; animation: assetSpin .9s linear infinite; }
.asset-body { padding: 15px; }
.asset-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.asset-title-row > strong { font-size: 12px; line-height: 1.35; }
.asset-meta { margin: 8px 0 0; font-size: 10px; }
.asset-details { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.asset-details p { margin-top: 9px; font-size: 11px; }
.asset-actions { display: flex; gap: 9px; margin-top: 13px; }
.asset-actions .btn { min-height: 36px; padding: 8px 12px; font-size: 11px; }
@keyframes assetSpin { to { transform: rotate(360deg); } }
@keyframes assetShimmer { to { background-position: -220% 0; } }

/* Tables and danger zone */
.table { width: 100%; margin-top: 18px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: #181d25; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.table td { color: var(--text-soft); font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,.015); }
.table form { margin: 0; }
.table button { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 20px 0; padding: 18px; background: var(--bad-soft); border: 1px solid rgba(239,107,115,.24); border-radius: 13px; }
.danger-zone strong { display: block; color: #ff9da3; margin-bottom: 4px; }
.danger-zone p { font-size: 11px; }
.danger-zone form { flex: 0 0 auto; }

/* Login */
.login-body { overflow-x: hidden; }
.login-layout { display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(430px, .9fr); min-height: 100vh; }
.login-visual { position: relative; display: flex; flex-direction: column; padding: 44px 54px; overflow: hidden; background: radial-gradient(circle at 22% 18%, rgba(245,158,11,.14), transparent 34%), linear-gradient(145deg, #151920, #0e1116); border-right: 1px solid var(--line); }
.login-visual::before { content: ""; position: absolute; width: 480px; height: 480px; right: -220px; bottom: -190px; border: 1px solid rgba(245,158,11,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(245,158,11,.025), 0 0 0 140px rgba(245,158,11,.018); }
.brand-symbol-large { width: 44px; height: 44px; flex-basis: 44px; }
.login-visual-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0; }
.login-kicker { display: inline-flex; margin-bottom: 21px; padding: 7px 11px; background: var(--accent-soft); border: 1px solid rgba(245,158,11,.18); border-radius: 999px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-visual-copy h1 { max-width: 570px; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.login-visual-copy p { max-width: 520px; margin-top: 22px; color: #aab1bb; font-size: 17px; }
.login-module-card { position: relative; z-index: 1; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; max-width: 340px; padding: 13px; background: rgba(24,29,37,.78); border: 1px solid var(--line); border-radius: 13px; backdrop-filter: blur(12px); }
.module-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.login-module-card > span:nth-child(2) { display: flex; flex-direction: column; }
.login-module-card small { color: var(--muted); font-size: 9px; }
.login-module-card strong { margin-top: 2px; font-size: 12px; }
.login-module-card i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.login-panel { display: grid; place-items: center; padding: 46px; background: var(--bg); }
.login-card { width: min(420px, 100%); }
.login-card-head { margin-bottom: 25px; }
.login-card h2 { font-size: 38px; }
.login-card-head p { margin-top: 9px; }
.login-form label { margin-top: 15px; }
.login-submit { width: 100%; margin-top: 22px; min-height: 48px; justify-content: space-between; padding-inline: 17px; }
.login-submit span { font-size: 18px; }
.login-help { margin-top: 23px; font-size: 10px; text-align: center; }

/* Responsive */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .studio-layout { grid-template-columns: 310px minmax(0,1fr); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .app-sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 30px 0 80px rgba(0,0,0,.5); }
  .navigation-open .app-sidebar { transform: translateX(0); }
  .sidebar-close { display: block; }
  .app-stage { min-width: 0; }
  .app-topbar { padding: 0 18px; }
  .mobile-menu-button { display: inline-block; margin-right: 12px; }
  .topbar-context { margin-right: auto; }
  .system-status { display: none; }
  .app-content { padding: 26px 18px 48px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
  .navigation-open .sidebar-backdrop { display: block; }
  .studio-layout, .studio-layout.sidebar-collapsed { grid-template-columns: 1fr; }
  .studio-sidebar { position: relative; top: 0; min-height: auto; max-height: none; }
  .studio-layout.sidebar-collapsed .studio-sidebar { min-height: 64px; }
  .studio-layout.sidebar-collapsed .sidebar-create,
  .studio-layout.sidebar-collapsed .post-list,
  .studio-layout.sidebar-collapsed .studio-sidebar > .eyebrow { display: block; opacity: 1; pointer-events: auto; }
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { min-height: 390px; padding: 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-visual-copy { margin: 70px 0; }
  .login-module-card { display: none; }
}

@media (max-width: 680px) {
  .topbar-product, .topbar-separator { display: none; }
  .page-heading { display: block; }
  .page-heading .btn { width: 100%; margin-top: 19px; }
  .metric-grid, .grid, .two, .review-action-buttons { grid-template-columns: 1fr; }
  .metric-card { min-height: 145px; }
  .card, .studio-main.card { padding: 21px; }
  .recent-item { grid-template-columns: 38px minmax(0,1fr); }
  .recent-item .badge { grid-column: 2; justify-self: start; }
  .content-picker-controls { grid-template-columns: 1fr; }
  .asset-section-head, .image-generator-head { display: block; }
  .asset-count, .image-generator-head .asset-status { margin-top: 10px; }
  .asset-grid { grid-template-columns: 1fr; }
  .danger-zone { display: block; }
  .danger-zone form { margin-top: 14px; }
  .danger-zone button { width: 100%; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .login-visual { min-height: 330px; padding: 25px; }
  .login-visual-copy { margin: 50px 0; }
  .login-visual-copy h1 { font-size: 39px; }
  .login-visual-copy p { font-size: 14px; }
  .login-panel { padding: 38px 22px; }
}

/* Compatibility helpers for existing Content-Studio markup */
.page { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 40px 0 60px; }
.review-actions { margin: 20px 0; }
.review-actions form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.review-actions input { max-width: 360px; }
.danger-zone-copy { min-width: 0; }
.image-generator-card-editor { margin: 18px 0 22px; }
.image-toggle { display: flex; align-items: center; gap: 10px; }
.image-toggle input { width: auto; min-height: 0; accent-color: var(--accent); }

/* =========================================================
   MZ Digital Content Studio – Phase 2 editor workspace
   ========================================================= */
.editor-shell { max-width: 1500px; margin: 0 auto; }
.editor-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.editor-toolbar h1 { margin: 4px 0 8px; }
.editor-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.quick-content-picker select { min-width: 270px; margin: 0; }
.editor-workspace { display: grid; gap: 22px; }
.workspace-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.workspace-card-wide { width: 100%; }
.workspace-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.workspace-card-head > div:first-child { display: flex; align-items: flex-start; gap: 13px; }
.workspace-card-head h2 { margin: 2px 0 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(245,158,11,.22); color: var(--accent); font-weight: 800; }
.workspace-note { color: var(--muted); font-size: 11px; line-height: 1.4; text-align: right; }
.editor-grid { display: grid; gap: 16px; }
.editor-grid-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-span-2 { grid-column: span 2; }
.field-span-4 { grid-column: span 4; }
.workspace-columns { display: grid; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); gap: 22px; align-items: start; }
.media-workspace, .text-workspace { min-height: 100%; }
.text-workspace textarea { min-height: 210px; }
.upload-dropzone { display: flex; min-height: 190px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin: 0; padding: 24px; border: 1px dashed rgba(245,158,11,.4); border-radius: 14px; background: linear-gradient(145deg, rgba(245,158,11,.06), rgba(255,255,255,.01)); cursor: pointer; text-align: center; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.upload-dropzone:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(245,158,11,.09); }
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 13px; background: var(--accent); color: #17120a; font-size: 24px; font-weight: 800; box-shadow: 0 10px 25px rgba(245,158,11,.18); }
.upload-dropzone strong { font-size: 14px; }
.upload-dropzone small { color: var(--muted); font-size: 10px; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.upload-preview-item { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.upload-preview-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.upload-preview-item span { display: block; padding: 8px; overflow: hidden; color: var(--text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ai-option-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.ai-option-toggle { display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.ai-option-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.ai-option-toggle span { display: grid; gap: 3px; }
.ai-option-toggle small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.ai-options { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ai-options[hidden] { display: none !important; }
.empty-result-state, .empty-media-state { display: flex; min-height: 290px; align-items: center; justify-content: center; flex-direction: column; padding: 35px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 14px; background: rgba(255,255,255,.012); }
.empty-result-state > span { margin-bottom: 14px; color: var(--accent); font-size: 36px; }
.empty-result-state strong, .empty-media-state strong { color: var(--text); }
.empty-result-state p, .empty-media-state p { max-width: 460px; margin-top: 8px; }
.publish-workspace { padding-top: 20px; padding-bottom: 20px; }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.publish-bar p { margin: 5px 0 0; }
.asset-grid-editor { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.asset-card-primary { border-color: rgba(245,158,11,.5); box-shadow: 0 0 0 1px rgba(245,158,11,.12); }
.primary-image-badge { position: absolute; top: 10px; left: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(15,17,21,.88); border: 1px solid rgba(245,158,11,.35); color: var(--accent); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(7px); }
.asset-inline-actions { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.asset-inline-actions form { margin: 0; }
.btn-text { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--text-soft); font-size: 10px; }
.btn-text:hover { transform: none; color: var(--accent); background: transparent; box-shadow: none; }
.btn-text-danger { color: #ff9ca3; }
.log-panel summary { cursor: pointer; color: var(--text-soft); font-weight: 700; }
.log-panel[open] summary { margin-bottom: 18px; }

@media (max-width: 1180px) {
  .workspace-columns { grid-template-columns: 1fr; }
  .editor-grid-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-span-4 { grid-column: span 2; }
}

@media (max-width: 760px) {
  .editor-toolbar, .publish-bar, .workspace-card-head { display: block; }
  .editor-toolbar-actions { justify-content: flex-start; margin-top: 16px; }
  .quick-content-picker, .quick-content-picker select { width: 100%; min-width: 0; }
  .workspace-card { padding: 18px; }
  .editor-grid-meta { grid-template-columns: 1fr; }
  .field-span-2, .field-span-4 { grid-column: span 1; }
  .workspace-note { margin-top: 9px; text-align: left; }
  .publish-bar .actions { margin-top: 16px; }
  .upload-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phase 2.1: upload feedback and generation progress */
.upload-dropzone.is-dragover {
  transform: translateY(-2px) scale(1.005);
  border-color: var(--accent);
  background: rgba(245,158,11,.12);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.18), 0 16px 35px rgba(0,0,0,.18);
}
.upload-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(67,194,135,.24);
  border-radius: 11px;
  background: var(--ok-soft);
}
.upload-selection-summary strong { color: #83dfb2; font-size: 12px; }
.upload-selection-summary span { color: var(--muted); font-size: 10px; text-align: right; }
.upload-preview-item { position: relative; }
.upload-preview-image { position: relative; overflow: hidden; }
.upload-preview-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.upload-cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15,17,21,.88);
  border: 1px solid rgba(245,158,11,.38);
  color: #ffc868;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.upload-preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; }
.upload-preview-meta strong { min-width: 0; overflow: hidden; color: var(--text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-meta span { flex: 0 0 auto; padding: 0; color: var(--muted); font-size: 8px; }

button:disabled, .btn:disabled { opacity: .65; cursor: wait; transform: none; }
body.generation-running { overflow: hidden; }
.generation-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7,9,12,.78);
  backdrop-filter: blur(12px);
  animation: generationFadeIn .18s ease-out;
}
.generation-dialog {
  width: min(570px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(145deg, #171b22, #11151b);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  text-align: center;
}
.generation-dialog h2 { margin-bottom: 10px; }
.generation-dialog > p { min-height: 24px; }
.generation-dialog > small { display: block; margin-top: 20px; color: var(--muted); font-size: 10px; }
.generation-spinner {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 25px;
  animation: generationPulse 1.35s ease-in-out infinite;
}
.generation-progress {
  height: 7px;
  margin: 25px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}
.generation-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-strong), transparent);
  animation: generationProgress 1.45s ease-in-out infinite;
}
.generation-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.generation-step { display: flex; align-items: center; flex-direction: column; gap: 8px; color: #68717e; font-size: 9px; font-weight: 650; }
.generation-step i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
}
.generation-step.is-active { color: #ffc868; }
.generation-step.is-active i { border-color: rgba(245,158,11,.42); background: var(--accent-soft); color: var(--accent-strong); box-shadow: 0 0 0 5px rgba(245,158,11,.06); }
.generation-step.is-done { color: #83dfb2; }
.generation-step.is-done i { border-color: rgba(67,194,135,.32); background: var(--ok-soft); color: #83dfb2; }
.generation-step.is-done i::before { content: '✓'; }
.generation-step.is-done i { font-size: 0; }
.generation-step.is-done i::before { font-size: 12px; }
@keyframes generationFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes generationPulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,158,11,.08); } 50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(245,158,11,0); } }
@keyframes generationProgress { 0% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }
@media (max-width: 720px) {
  .upload-selection-summary { align-items: flex-start; flex-direction: column; }
  .upload-selection-summary span { text-align: left; }
  .generation-dialog { padding: 26px 20px; }
  .generation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
}

/* Phase 3: Planung, Kalender und entfernbare Upload-Vorschau */
.upload-preview-image { position: relative; }
.upload-preview-remove {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  background: rgba(10,12,16,.82); color: #fff; font-size: 20px; line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,.35); cursor: pointer;
}
.upload-preview-remove:hover { background: var(--bad); border-color: var(--bad); transform: scale(1.04); }
.workspace-note-link { color: var(--accent-strong); text-decoration: none; }
.schedule-panel {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); gap: 28px;
  align-items: end; margin: 8px 0 22px; padding: 22px;
  border: 1px solid rgba(245,158,11,.2); border-radius: 15px;
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.025));
}
.schedule-copy p { margin: 7px 0 0; max-width: 660px; }
.schedule-controls { display: grid; grid-template-columns: minmax(210px,1fr) auto; gap: 12px; align-items: end; }
.btn-schedule { white-space: nowrap; background: linear-gradient(135deg, #f59e0b, #ffb13b); color: #17120a; }
.calendar-page { max-width: 1760px; margin: 0 auto; }
.calendar-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.calendar-toolbar h1 { margin-bottom: 7px; }
.calendar-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.calendar-card, .calendar-sidebar-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface-1); box-shadow: var(--shadow); overflow: hidden; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.calendar-weekdays div { padding: 13px 14px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-day { min-width: 0; min-height: 152px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.006); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-outside { background: rgba(0,0,0,.08); opacity: .46; }
.calendar-day.is-today { box-shadow: inset 0 0 0 1px rgba(245,158,11,.55); background: rgba(245,158,11,.035); }
.calendar-day-head { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-day.is-today .calendar-day-head span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--accent); color: #17120a; }
.calendar-day-head small { color: var(--accent-strong); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.calendar-events { display: grid; gap: 6px; }
.calendar-event { display: flex; gap: 7px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); text-decoration: none; color: var(--text); transition: .15s ease; }
.calendar-event:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-3); }
.calendar-event-copy { min-width: 0; }
.calendar-event-copy strong, .calendar-event-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-copy strong { font-size: 9px; }
.calendar-event-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.calendar-event-channel { flex: 0 0 auto; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; font-size: 9px; font-weight: 850; background: #263143; color: #dce8ff; }
.channel-instagram { background: #48283d; color: #ffd8ec; }
.channel-linkedin { background: #19364a; color: #bfeaff; }
.calendar-event-published { border-color: rgba(67,194,135,.28); }
.calendar-event-review, .calendar-event-scheduled { border-color: rgba(245,158,11,.28); }
.calendar-event-revision { border-color: rgba(239,107,115,.28); }
.calendar-sidebar-card { padding: 20px; }
.calendar-sidebar-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calendar-sidebar-intro { margin: 8px 0 18px; font-size: 11px; }
.unscheduled-list { display: grid; gap: 8px; }
.unscheduled-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.unscheduled-item:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.unscheduled-item strong, .unscheduled-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unscheduled-item strong { font-size: 10px; }
.unscheduled-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.unscheduled-item i { color: var(--muted); font-style: normal; font-size: 18px; }
.calendar-empty { padding: 28px 12px; text-align: center; color: var(--muted); }
@media (max-width: 1180px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-sidebar-card { order: -1; }
  .unscheduled-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .schedule-panel { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-card { overflow-x: auto; }
  .calendar-weekdays, .calendar-grid { min-width: 900px; }
  .schedule-controls { grid-template-columns: 1fr; }
  .unscheduled-list { grid-template-columns: 1fr; }
}

/* Phase 4.1: fokussierte Planung und Plattformauswahl */
.planning-only-workspace { max-width: 1180px; }
.planning-focus-card { padding-bottom: 26px; }
.planning-intro { padding: 18px 20px; border: 1px solid rgba(245, 158, 11, .28); border-radius: 14px; background: linear-gradient(135deg, rgba(245, 158, 11, .10), rgba(245, 158, 11, .03)); }
.planning-intro strong { display: block; margin-bottom: 6px; }
.planning-intro p { margin: 0; color: var(--text-soft); }
.planning-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 24px; margin-top: 22px; align-items: stretch; }
.platform-selector { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.platform-selector legend { margin-bottom: 10px; font-weight: 750; }
.platform-option { display: grid; grid-template-columns: auto 42px 1fr; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.platform-option:hover { transform: translateY(-1px); border-color: rgba(245, 158, 11, .45); }
.platform-option:has(input:checked) { border-color: rgba(245, 158, 11, .68); background: rgba(245, 158, 11, .08); }
.platform-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.platform-option strong, .platform-option small { display: block; }
.platform-option small { margin-top: 3px; color: var(--text-soft); }
.platform-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #263143; color: #dce8ff; font-weight: 850; }
.platform-instagram { background: #48283d; color: #ffd8ec; }
.planning-controls { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.planning-controls .btn-schedule { width: 100%; }
@media (max-width: 900px) { .planning-grid { grid-template-columns: 1fr; } }

/* Phase 4.2: moderne Plattformkarten und Planungszusammenfassung */
.planning-only-workspace { max-width: 1280px; }
.planning-approved-banner {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 4px; padding: 17px 18px;
  border: 1px solid rgba(67,194,135,.26); border-radius: 14px;
  background: linear-gradient(135deg, rgba(67,194,135,.10), rgba(67,194,135,.025));
}
.planning-approved-banner p { margin: 5px 0 0; color: var(--text-soft); }
.planning-approved-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px;
  border-radius: 11px; background: rgba(67,194,135,.16); color: #74d9a8; font-weight: 900;
}
.planning-section { margin-top: 24px; }
.planning-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.planning-section-heading h3 { margin: 3px 0 0; font-size: 18px; }
.planning-section-heading > span { color: var(--muted); font-size: 10px; }
.platform-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.platform-card {
  position: relative; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 15px; align-items: center;
  min-height: 126px; padding: 20px; border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-2), rgba(255,255,255,.012)); cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.platform-card:hover { transform: translateY(-2px); border-color: rgba(245,158,11,.38); }
.platform-card:has(.platform-card-input:checked) {
  border-color: rgba(245,158,11,.75); background: linear-gradient(145deg, rgba(245,158,11,.10), rgba(245,158,11,.035));
  box-shadow: 0 16px 38px rgba(0,0,0,.18), inset 0 0 0 1px rgba(245,158,11,.08);
}
.platform-card-input { position: absolute; opacity: 0; pointer-events: none; }
.platform-card-check {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 27px; height: 27px;
  border: 1px solid var(--border); border-radius: 50%; color: transparent; background: var(--surface-1); font-weight: 900;
}
.platform-card:has(.platform-card-input:checked) .platform-card-check { color: #17120a; border-color: var(--accent); background: var(--accent); }
.platform-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 22px; font-weight: 900; }
.platform-facebook { background: #22385f; color: #dbe8ff; }
.platform-instagram { background: linear-gradient(135deg, #63265f, #aa493c); color: #fff0f7; }
.platform-card-copy strong, .platform-card-copy small, .platform-card-copy em { display: block; }
.platform-card-copy strong { font-size: 15px; }
.platform-card-copy small { margin-top: 4px; color: var(--text-soft); }
.platform-card-copy em { margin-top: 13px; color: #72d7a5; font-size: 10px; font-style: normal; font-weight: 700; }
.platform-card-copy em i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #43c287; box-shadow: 0 0 0 4px rgba(67,194,135,.08); }
.planning-bottom-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.72fr); gap: 16px; margin-top: 18px; }
.schedule-card, .planning-summary-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.schedule-card { padding: 20px; }
.schedule-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.schedule-card-head h3 { margin: 3px 0 0; font-size: 18px; }
.schedule-card-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: rgba(245,158,11,.12); color: var(--accent); }
.schedule-card label { margin-bottom: 8px; }
.schedule-card input { min-height: 52px; font-size: 14px; }
.schedule-card > p { margin: 9px 0 0; color: var(--muted); font-size: 9px; }
.planning-summary-card { display: flex; flex-direction: column; padding: 20px; background: linear-gradient(145deg, rgba(245,158,11,.08), var(--surface-2) 58%); }
.planning-summary-status { align-self: flex-start; margin: 9px 0 15px; padding: 6px 9px; border-radius: 999px; background: rgba(245,158,11,.13); color: var(--accent-strong); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.planning-summary-card > strong { font-size: 18px; line-height: 1.35; text-transform: capitalize; }
.planning-summary-card > span:not(.planning-summary-status) { margin-top: 5px; color: var(--text-soft); }
.planning-summary-channels { display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; margin: 17px 0 18px; }
.planning-channel-chip { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 750; }
.planning-channel-facebook { border-color: rgba(90,139,222,.30); color: #bad2ff; }
.planning-channel-instagram { border-color: rgba(213,95,162,.30); color: #ffc8e6; }
.planning-channel-empty { color: var(--muted); font-size: 10px; }
.planning-summary-channels.has-error { animation: planningShake .28s linear 2; }
.planning-summary-channels.has-error .planning-channel-empty { color: var(--bad); }
.planning-save-button { width: 100%; margin-top: auto; min-height: 48px; }
.planning-cancel-button { width: 100%; margin-top: 8px; }
@keyframes planningShake { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }
@media (max-width: 900px) {
  .platform-card-grid, .planning-bottom-grid { grid-template-columns: 1fr; }
  .planning-section-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .platform-card { grid-template-columns: 46px minmax(0,1fr); min-height: 112px; padding: 16px; }
  .platform-card-icon { width: 44px; height: 44px; border-radius: 13px; }
}


.badge-publishing { color: #93c5fd; background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.3); }
.badge-publish_failed { color: #fca5a5; background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.3); }


/* MZ Digital Branding and Claude editor 1.0.1 */
.brand-logo { width: 42px; height: 42px; flex: 0 0 42px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.42); }
.login-logo { width: 92px; height: 92px; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 55px rgba(0,0,0,.48); }
.claude-assistant-card { margin-top: 22px; padding: 20px; border: 1px solid rgba(245,158,11,.25); border-radius: 15px; background: linear-gradient(145deg, rgba(245,158,11,.09), rgba(25,29,36,.92)); }
.claude-assistant-head { display: flex; align-items: flex-start; gap: 14px; }
.claude-assistant-head .eyebrow { margin-bottom: 4px; }
.claude-assistant-head p { margin-top: 6px; font-size: 13px; }
.claude-assistant-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: linear-gradient(145deg, #d4a574, #8b5e3c); color: #15100c; font-size: 17px; font-weight: 850; box-shadow: 0 9px 22px rgba(139,94,60,.2); }
.claude-assistant-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.claude-assistant-actions span { color: var(--muted); font-size: 11px; }
.btn-claude { background: linear-gradient(135deg, #d4a574, #b98555); color: #17110b; box-shadow: 0 9px 22px rgba(185,133,85,.18); }
.btn-claude:hover { background: linear-gradient(135deg, #e0b487, #c89461); }
@media (max-width: 720px) { .claude-assistant-actions { align-items: stretch; flex-direction: column; } .btn-claude { width: 100%; } .login-logo { width: 72px; height: 72px; } }


/* Content Studio 1.0.2: Login-Protokoll */
.admin-section-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.admin-section-heading h2 { margin:3px 0 0; }
.table-scroll { overflow-x:auto; }
.muted-value { color:var(--muted); }
.table-subline { display:block; margin-top:3px; color:var(--muted); font-size:9px; }
.login-state { display:inline-flex; align-items:center; min-height:25px; padding:4px 9px; border:1px solid transparent; border-radius:999px; font-size:9px; font-weight:800; letter-spacing:.025em; }
.login-state.success { color:#7ce0ae; border-color:rgba(67,194,135,.28); background:rgba(67,194,135,.10); }
.login-state.failed { color:#ffaaa7; border-color:rgba(239,88,82,.27); background:rgba(239,88,82,.10); }
.admin-login-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.login-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:22px 0; }
.login-stat-card { padding:20px; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,var(--surface-2),rgba(255,255,255,.012)); }
.login-stat-card span,.login-stat-card small { display:block; }
.login-stat-card span { color:var(--text-soft); font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.07em; }
.login-stat-card strong { display:block; margin:12px 0 5px; font-size:30px; line-height:1; }
.login-stat-card .login-stat-date { font-size:20px; line-height:1.25; }
.login-stat-card small { color:var(--muted); font-size:9px; }
.user-login-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.user-login-card { display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px; align-items:center; padding:15px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); }
.user-login-avatar { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:var(--accent-soft); color:var(--accent-strong); font-weight:850; }
.user-login-card strong,.user-login-card small,.user-login-meta span { display:block; }
.user-login-card small { margin-top:3px; color:var(--muted); font-size:9px; }
.user-login-meta { grid-column:1/-1; padding-top:11px; border-top:1px solid var(--border); }
.user-login-meta span { color:var(--text-soft); font-size:12px; font-weight:700; }
.login-log-toolbar { align-items:flex-end; }
.login-filter-tabs { display:flex; padding:4px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); }
.login-filter-tabs a { padding:7px 10px; border-radius:8px; color:var(--muted); font-size:9px; font-weight:750; }
.login-filter-tabs a.active { color:var(--text); background:var(--surface-3); }
.login-ip { padding:4px 7px; border:1px solid var(--border); border-radius:7px; background:var(--surface-3); color:var(--text-soft); font-size:10px; }
.login-log-note { margin:15px 0 0; color:var(--muted); font-size:9px; }
@media (max-width:1000px) { .user-login-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) {
  .admin-login-heading,.admin-section-heading,.login-log-toolbar { align-items:stretch; flex-direction:column; }
  .login-stat-grid,.user-login-grid { grid-template-columns:1fr; }
  .login-filter-tabs { overflow-x:auto; }
}


/* Content Studio 1.0.5 – zentrale Identität und dezenter Modulfokus */
:root{--module-accent:#f59e0b;--module-accent-rgb:245,158,11}
.app-body{background:radial-gradient(circle at 76% -8%,rgba(var(--module-accent-rgb),.10),transparent 34%),var(--bg)}
.app-topbar{box-shadow:inset 0 -1px 0 rgba(var(--module-accent-rgb),.16)}
.topbar-context strong{color:var(--module-accent)}
.content-studio-status{color:#ffd27c;border-color:rgba(var(--module-accent-rgb),.28);background:rgba(var(--module-accent-rgb),.08)}
.central-identity{cursor:default}.central-identity:hover{background:transparent}
.account-central-link{display:block;margin:8px 8px 2px;color:var(--muted);font-size:11px}.account-central-link:hover{color:var(--accent)}
.nav-item.active{box-shadow:inset 3px 0 0 var(--module-accent);background:rgba(var(--module-accent-rgb),.10);color:#ffd27c}
