:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #dfe3ea;
  --line-strong: #cbd5e1;
  --text: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --shadow: 0 14px 40px rgba(15, 23, 42, .07);
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { flex: 0 0 auto; }
[data-lucide] { width: 17px; height: 17px; stroke-width: 2.2; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 248px;
  border-right: 1px solid var(--line);
  background: #0f172a;
  color: #e5edf8;
  padding: 18px 14px;
}
.workspace { min-width: 0; flex: 1; margin-left: 248px; }
.brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, .14);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-weight: 650;
}
.brand-mark [data-lucide] { width: 20px; height: 20px; }
.brand-block strong { display: block; font-size: 15px; font-weight: 650; }
.brand-block small { display: block; margin-top: 2px; color: #9fb0c7; font-size: 12px; }
.side-nav { display: grid; gap: 18px; padding-top: 18px; }
.nav-group p {
  margin: 0 0 8px;
  padding: 0 10px;
  color: #8da0bb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #dbe6f4;
  font-weight: 500;
}
.nav-item [data-lucide] {
  width: 18px;
  height: 18px;
  color: #9fb0c7;
}
.nav-item:hover { background: rgba(59, 130, 246, .16); color: white; }
.nav-item:hover [data-lucide] { color: white; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  padding: 0 24px;
}
.mobile-menu { display: none !important; }
.site-switch { display: flex; align-items: center; gap: 9px; }
.site-switch label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.site-switch select,
.filters select,
.filters input,
.stack input,
.stack select,
.stack textarea,
.editor-main > label input,
.editor-main > label textarea,
.editor-main > label select,
.editor-side label input,
.editor-side label textarea,
.editor-side label select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 9px 11px;
  outline: none;
}
.site-switch select { min-width: 250px; }
.site-switch select:focus,
.filters input:focus,
.filters select:focus,
.stack input:focus,
.stack select:focus,
.stack textarea:focus,
.editor-main > label input:focus,
.editor-main > label textarea:focus,
.editor-main > label select:focus,
.editor-side label input:focus,
.editor-side label textarea:focus,
.editor-side label select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.site-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.topbar-spacer { flex: 1; }
.user-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
}
.shell { padding: 28px; }
.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
h1 { margin: 0; font-size: 28px; font-weight: 650; line-height: 1.18; }
h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.muted { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.small { font-size: 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.button,
.topbar button,
.page-head button,
.actions button,
.filters button,
.panel > form button,
.editor-actionbar button,
.editor-side button,
.job-card button,
.login-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
}
.button:hover,
.topbar button:hover,
.page-head button:hover,
.actions button:hover,
.filters button:hover,
.panel > form button:hover,
.editor-actionbar button:hover,
.editor-side button:hover,
.job-card button:hover,
.login-card button:hover { background: var(--blue-dark); }
.button.secondary,
button.secondary { background: #eef2f7; color: #243047; }
.button.secondary:hover,
button.secondary:hover { background: #e4e9f1; }
.button.ghost,
button.ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); }
.button.ghost:hover,
button.ghost:hover { background: var(--blue-soft); border-color: #bfdbfe; }
.button.disabled,
button:disabled {
  opacity: .48;
  pointer-events: none;
}
.danger { background: var(--red); }
.danger:hover { background: #b91c1c; }
.icon-button {
  width: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}
.icon-button.danger {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.panel, .empty, .login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel { padding: 20px; }
.empty { padding: 28px; }
.login-card { width: min(430px, 100%); padding: 30px; }
.login-card h1 { font-size: 28px; font-weight: 650; }
.login-brand { display: flex; gap: 13px; align-items: center; }
.stack { display: grid; gap: 16px; margin-top: 24px; }
.stack label,
.editor-main > label,
.editor-side label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}
.wide { max-width: 560px; }

.cards, .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card, .metric-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card [data-lucide], .metric-card [data-lucide] { color: var(--blue); width: 20px; height: 20px; }
.card strong, .metric-card strong { display: block; font-size: 15px; font-weight: 600; }
.card span, .metric-card span { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.metric-card b { display: block; margin-top: 4px; font-size: 26px; font-weight: 600; line-height: 1; }

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters input { min-width: 320px; }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}
.table th, .table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table th {
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.table tbody tr:hover { background: #fbfdff; }
.table tr:last-child td { border-bottom: 0; }
.table code { color: #344054; font-size: 12px; }
.row-title { color: var(--blue); font-weight: 600; }
.row-actions { display: flex; gap: 10px; margin-top: 8px; opacity: .75; font-size: 12px; }
.row-actions a { color: var(--blue); font-weight: 500; }
.right { text-align: right; }
.empty-row { text-align: center; color: var(--muted); padding: 34px !important; }

.pill, .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
}
.pill.ok, .badge.success { background: var(--green-soft); color: #166534; }
.pill.warn, .badge.warning { background: var(--amber-soft); color: #92400e; }
.badge.error { background: var(--red-soft); color: #991b1b; }

.editor-actionbar {
  position: sticky;
  top: 58px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -28px -28px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, .94);
  backdrop-filter: blur(10px);
  padding: 14px 28px;
}
.editor-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.editor-context strong { display: block; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.editor-main, .editor-side, .editor-panel { display: grid; gap: 16px; min-width: 0; }
.title-input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  font-size: 22px !important;
  font-weight: 600;
}
.editor-side {
  position: sticky;
  top: 128px;
}
.settings-group {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.settings-group:first-child { border-top: 0; padding-top: 0; }
.settings-group h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.check { display: flex !important; align-items: center; gap: 8px; }
.check input { width: 16px; height: 16px; }
.editor-modebar {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
  padding: 3px;
}
.editor-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.editor-mode:hover { color: var(--text); background: rgba(255, 255, 255, .72); }
.editor-mode.is-active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.editor-surface { min-height: 680px; }
.vditor-box { min-height: 680px; }
.vditor-box.vditor {
  border-color: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.vditor-box .vditor-toolbar {
  border-bottom-color: var(--line);
  background: #fbfdff;
}
.vditor-box .vditor-reset {
  padding: 22px !important;
  color: var(--text);
}
.vditor-box .vditor-wysiwyg img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.vditor-box .vditor-wysiwyg iframe {
  max-width: 100%;
}
.vditor-box .vditor-wysiwyg .cms-shortcode-block {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: transparent;
  overflow: hidden;
}
.vditor-box .vditor-wysiwyg .cms-shortcode-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.vditor-box .vditor-wysiwyg .cms-shortcode-figure-preview::before {
  background-image: var(--cms-shortcode-media);
}
.vditor-box .vditor-wysiwyg .cms-shortcode-figure-preview::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0;
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
.vditor-box .vditor-wysiwyg .cms-shortcode-youtube-preview {
  aspect-ratio: 16 / 9;
  background: #0f172a;
}
.vditor-box .vditor-wysiwyg .cms-shortcode-youtube-preview::before {
  content: "YouTube";
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 48px;
  margin: auto;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.vditor-box .vditor-wysiwyg .cms-shortcode-youtube-preview::after {
  content: "Video ID: " attr(data-video-id);
  position: absolute;
  inset: auto 0 0;
  background: rgba(15, 23, 42, .82);
  color: white;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
}
.markdown-editor {
  width: 100%;
  min-height: 680px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  outline: none;
}
.markdown-editor:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .14);
}
.hugo-preview-panel {
  min-height: 680px;
}
.hugo-preview {
  min-height: 680px;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}
.hugo-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.cms-hugo-figure {
  margin: 22px 0;
}
.cms-hugo-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f8fafc;
}
.cms-hugo-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.cms-youtube {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px 0;
  border-radius: 8px;
  background: #0f172a;
}
.cms-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-title h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-title a { color: var(--blue); font-weight: 500; font-size: 12px; }
.meta-list { display: grid; gap: 12px; margin: 0; }
.meta-list div { display: grid; gap: 4px; }
.meta-list dt { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.meta-list dd { margin: 0; color: var(--text); font-size: 12px; word-break: break-all; }
.helper-text { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.image-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-preview span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.featured-picker {
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
}
.featured-picker:hover .image-preview {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.featured-actions {
  display: flex;
  justify-content: flex-start;
}
.mini-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.mini-media {
  min-height: 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
}
.mini-media:hover { border-color: var(--blue); background: var(--blue-soft); }
.mini-media img { width: 100%; height: 100%; object-fit: contain; }
.modal-open { overflow: hidden; }
.media-modal[hidden] { display: none; }
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}
.media-modal__dialog {
  position: absolute;
  inset: 5vh 50%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(980px, calc(100vw - 32px));
  max-height: 90vh;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .26);
  overflow: hidden;
}
.media-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}
.media-modal__header h2 { margin: 0; font-size: 20px; }
.media-modal__search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.media-modal__search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.media-modal__search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.media-modal__status {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 20px;
}
.media-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  overflow: auto;
  padding: 0 20px 20px;
}
.pagination,
.media-modal__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.media-modal__pagination {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 14px 20px;
}
.pagination__label {
  color: var(--muted);
  font-size: 13px;
}
.media-pick-card {
  display: grid !important;
  gap: 8px;
  min-height: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--text) !important;
  padding: 9px !important;
  text-align: left;
}
.media-pick-card:hover {
  border-color: var(--blue) !important;
  background: #f8fbff !important;
}
.media-pick-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #f8fafc;
  overflow: hidden;
}
.media-pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-pick-card strong {
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-pick-card small {
  color: var(--muted);
  font-size: 11px;
}
.translation-meter {
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.translation-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.wide-meter { width: min(280px, 100%); }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toast {
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #1e40af;
  padding: 11px 13px;
}
.toast.error { border-color: #fecaca; background: var(--red-soft); color: #991b1b; }

.upload-panel { margin-bottom: 22px; }
.upload-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 14px;
}
.file-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  flex: 1;
  min-width: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: #f8fafc;
  padding: 12px;
  color: var(--muted);
  font-weight: 500;
}
.file-drop input { border: 0; padding: 0; background: transparent; }
.media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 14px;
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.media-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; box-shadow: var(--shadow); }
.media-thumb {
  display: block;
  width: 100%;
  height: 158px;
  background: #f8fafc;
}
.media-card img { width: 100%; height: 100%; object-fit: contain; }
.media-meta { padding: 10px; }
.media-meta strong { display: block; color: var(--blue); font-size: 12px; font-weight: 600; word-break: break-all; }
.media-meta span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.media-meta small { display: block; margin-top: 8px; color: var(--muted-2); font-size: 11px; }
.link-button {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 12px;
  font-weight: 500;
}
.link-button:hover { background: transparent; color: var(--blue-dark); }

.job-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.job-card { display: grid; gap: 12px; align-content: start; }
.job-card [data-lucide] { color: var(--blue); width: 22px; height: 22px; }
.job-card h2 { margin: 0; }
.job-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.job-card.strong { border-color: #bfdbfe; background: #f8fbff; }
.job-history { overflow-x: auto; }
.job-table pre { max-width: 760px; max-height: 360px; overflow: auto; border-radius: 8px; background: #0f172a; color: #e2e8f0; padding: 12px; font-size: 12px; white-space: pre-wrap; }
.job-table summary { color: var(--blue); cursor: pointer; font-weight: 500; }

.language-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 420px; }
.lang-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}
.lang-chip.success { background: var(--green-soft); color: #166534; }
.lang-chip.warning { background: var(--amber-soft); color: #92400e; }
.lang-chip.error { background: var(--red-soft); color: #991b1b; }

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-flex !important; }
  .topbar { padding: 0 14px; }
  .site-switch label, .site-meta { display: none; }
  .site-switch select { min-width: 170px; }
  .shell { padding: 20px 14px; }
  .page-head, .editor-actionbar { flex-direction: column; align-items: stretch; }
  .editor-actionbar { top: 58px; margin: -20px -14px 18px; padding: 14px; }
  .editor-context strong { max-width: none; white-space: normal; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .filters input { min-width: 0; flex: 1; }
  .table-wrap { overflow-x: auto; }
  .job-actions { grid-template-columns: 1fr; }
}
