/* CMS-specific additions on top of panel.css */

.flash {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 0 0 1rem;
}

.flash-ok {
  background: var(--wolrac-blue-light);
  color: var(--wolrac-heading);
}

.flash-err {
  background: #fff1f1;
  color: #da1e28;
}

.dark .flash-err {
  background: #2d0709;
  color: #ff8389;
}

.page-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cms-entry-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.15rem 0 1rem;
  color: var(--wolrac-muted);
  font-size: 0.875rem;
}

.cms-entry-crumb a {
  color: var(--wolrac-blue, #19bad4);
  font-weight: 650;
  text-decoration: none;
}

.cms-entry-crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.locale-filter-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.locale-filter-btn {
  background: transparent;
  border-color: var(--wolrac-border);
  color: var(--foreground);
}

.locale-filter-btn:hover {
  background: var(--wolrac-surface);
  opacity: 1;
}

.locale-filter-btn.active {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 18%, var(--background));
  border-color: var(--wolrac-blue, #19bad4);
  color: var(--wolrac-blue, #19bad4);
  font-weight: 600;
}

.dark .locale-filter-btn.active {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, var(--wolrac-surface));
}

.toolbar-row input,
.toolbar-row select,
.toolbar-filters input,
.toolbar-filters select {
  border: 1px solid var(--wolrac-border);
  background-color: var(--background);
  color: var(--foreground);
  padding: 0 0.6rem;
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
  min-height: var(--btn-height, 2.5rem);
  height: var(--btn-height, 2.5rem);
}

.toolbar-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

/* Keep panel.css caret: never use `background` shorthand here (resets image/repeat). */
.toolbar-row select,
.toolbar-filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25' stroke='%23525252' stroke-width='1.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.dark .toolbar-row select,
.dark .toolbar-filters select {
  background-color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25' stroke='%23a8a8a8' stroke-width='1.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.btn-sm {
  padding: 0 0.9rem;
  font-size: 0.875rem;
  min-height: var(--btn-height-sm, 2rem);
  height: var(--btn-height-sm, 2rem);
}

.empty-hint {
  color: var(--wolrac-muted);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  /* separate + spacing 0 keeps continuous row rules even when cells
     contain flex/absolute children or drag state backgrounds */
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--wolrac-border);
  vertical-align: middle;
  /* prevent cell display overrides from breaking the row rule */
  box-shadow: none;
}

.data-table th {
  color: var(--wolrac-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.form-actions-inline {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
}

.inline-edit-form {
  margin-bottom: 0.35rem;
}

.danger-inline {
  display: inline-block;
}

.tight {
  margin-top: 1rem;
}

/* ——— Post editor (WP-like layout) ——— */

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

.content > .post-editor {
  max-width: none;
  width: 100%;
}

.post-editor-intro {
  margin-bottom: 1.25rem;
}

.page-intro-meta {
  margin: 0;
  color: var(--wolrac-muted);
  font-size: 0.875rem;
}

.post-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .post-editor-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
  }
}

.post-editor-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-title-field {
  margin: 0;
}

.post-title-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--wolrac-border);
  background: transparent;
  color: var(--wolrac-heading);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  padding: 0.35rem 0 0.55rem;
  outline: none;
  border-radius: 0;
}

.post-title-input:focus {
  border-bottom-color: var(--wolrac-blue);
}

.post-title-input::placeholder {
  color: var(--wolrac-muted);
  font-weight: 400;
  font-size: 1.125rem;
}

.post-slug-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.post-slug-row > label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wolrac-muted);
}

.post-slug-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.post-slug-prefix {
  color: var(--wolrac-muted);
  font-size: 0.875rem;
}

.post-slug-control input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--wolrac-border);
  background-color: var(--background);
  color: var(--foreground);
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}

.post-slug-control input:focus {
  border-color: var(--wolrac-blue);
}

.post-slug-refresh {
  flex-shrink: 0;
}

.post-editor-sidebar {
  min-width: 0;
}

.post-sidebar-card {
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.featured-media-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 140px;
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.featured-media-preview img[hidden] {
  display: none;
}

.featured-media-empty {
  font-size: 0.8125rem;
  color: var(--wolrac-muted);
  padding: 0.75rem;
  text-align: center;
}

.featured-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

@media (min-width: 960px) {
  .post-sidebar-card {
    position: sticky;
    top: var(--sticky-offset, calc(var(--topbar-height) + 0.75rem));
  }
}

.post-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-sidebar-actions .btn {
  width: 100%;
  justify-content: center;
}

.post-seo-panel {
  border: 1px solid var(--wolrac-border);
  background: var(--background);
}

.post-seo-panel > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wolrac-heading);
  list-style: none;
}

.post-seo-panel > summary::-webkit-details-marker {
  display: none;
}

.post-seo-panel > summary::after {
  content: "+";
  float: right;
  color: var(--wolrac-muted);
  font-weight: 500;
}

.post-seo-panel[open] > summary::after {
  content: "−";
}

.post-seo-body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ——— TipTap RTE chrome ——— */

.rte-shell {
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rte-shell:focus-within {
  border-color: var(--wolrac-blue);
  box-shadow: 0 0 0 1px var(--wolrac-blue);
}

.rte-shell.is-dragover {
  border-color: var(--wolrac-blue);
  background: color-mix(in srgb, var(--wolrac-blue-light) 55%, var(--background));
}

.rte-toolbar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
}

.rte-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.rte-sep {
  width: 1px;
  height: 1.6rem;
  margin: 0 0.3rem;
  background: var(--wolrac-border);
  flex-shrink: 0;
}

.rte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wolrac-heading, var(--foreground));
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.rte-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke-width: 2;
}

.dark .rte-btn {
  color: #f4f4f4;
}

.rte-btn:hover {
  background: var(--background);
  border-color: var(--wolrac-border);
  color: var(--wolrac-heading, var(--foreground));
}

.dark .rte-btn:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--background) 70%, #393939);
  border-color: #525252;
}

.rte-btn.is-active {
  background: var(--wolrac-blue-light);
  border-color: var(--wolrac-blue);
  color: var(--wolrac-heading);
}

.dark .rte-btn.is-active {
  color: #9ae5f0;
  background: color-mix(in srgb, var(--wolrac-blue) 22%, var(--wolrac-surface));
  border-color: var(--wolrac-blue);
}

.rte-btn-text {
  width: auto;
  min-width: 2.5rem;
  padding: 0 0.55rem;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tiptap-editor {
  min-height: 320px;
  padding: 0;
  background: var(--background);
}

.tiptap-editor .ProseMirror,
.tiptap-editor .rte-prose {
  outline: none;
  min-height: 320px;
  padding: 1rem 1.1rem 1.5rem;
  color: var(--foreground);
  line-height: 1.65;
  font-size: 0.975rem;
}

.tiptap-editor .ProseMirror p {
  margin: 0 0 0.85rem;
}

.tiptap-editor .ProseMirror h2,
.tiptap-editor .ProseMirror h3 {
  margin: 1.25rem 0 0.55rem;
  color: var(--wolrac-heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tiptap-editor .ProseMirror h2 {
  font-size: 1.35rem;
}

.tiptap-editor .ProseMirror h3 {
  font-size: 1.125rem;
}

.tiptap-editor .ProseMirror ul,
.tiptap-editor .ProseMirror ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.tiptap-editor .ProseMirror blockquote {
  margin: 0 0 0.85rem;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 3px solid var(--wolrac-blue);
  color: var(--wolrac-card-text);
}

.tiptap-editor .ProseMirror hr {
  border: none;
  border-top: 1px solid var(--wolrac-border);
  margin: 1.25rem 0;
}

.tiptap-editor .ProseMirror code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  background: var(--wolrac-surface);
  border: 1px solid var(--wolrac-border);
}

.tiptap-editor .ProseMirror a {
  color: var(--wolrac-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tiptap-editor .ProseMirror img,
.tiptap-editor .ProseMirror .rte-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75rem 0;
}

.tiptap-editor .ProseMirror p.is-editor-empty:first-child::before,
.tiptap-editor .ProseMirror .is-empty::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
  color: color-mix(in srgb, var(--wolrac-muted) 75%, transparent);
}

/* CMS TipTap — Mavi mark */
.cms-mavi,
.tiptap-editor .ProseMirror span[data-mavi],
.tiptap-editor .ProseMirror .cms-mavi {
  color: var(--wolrac-blue, #19bad4);
  font-weight: inherit;
}

.rte-btn-mavi {
  width: auto;
  min-width: 3.25rem;
  padding: 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wolrac-blue, #19bad4);
}

.dark .rte-btn-mavi {
  color: #4dd0e5;
}

.rte-btn-mavi.is-active {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 18%, var(--background));
  border-color: var(--wolrac-blue, #19bad4);
  color: var(--wolrac-blue, #19bad4);
}

.dark .rte-btn-mavi.is-active {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, var(--wolrac-surface));
  color: #7ee0ef;
}

.cms-rte-shell {
  margin-top: 0.35rem;
}

.cms-rte-shell .tiptap-editor .ProseMirror,
.cms-rte-shell .tiptap-editor .rte-prose {
  min-height: 7.5rem;
  padding: 0.75rem 0.9rem 1rem;
}

.cms-rte-short .tiptap-editor .ProseMirror,
.cms-rte-short .tiptap-editor .rte-prose {
  min-height: 4.5rem;
}

.cms-rte-tall .tiptap-editor .ProseMirror,
.cms-rte-tall .tiptap-editor .rte-prose {
  min-height: 16rem;
}

.cms-rte-title-lines .tiptap-editor .ProseMirror,
.cms-rte-title-lines .tiptap-editor .rte-prose {
  min-height: 5.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.cms-tiptap-compact {
  min-height: 0;
}

.cms-rte-toolbar {
  position: relative;
  top: 0;
}

.rte-modal-panel {
  max-width: 26rem;
}

.rte-modal-wide {
  max-width: 34rem;
}

.rte-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.rte-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
  margin: 0 0 0.75rem;
  padding: 0.35rem;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
}

.rte-gallery-item {
  display: block;
  padding: 0;
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.rte-gallery-item:hover,
.rte-gallery-item:focus-visible {
  border-color: var(--wolrac-blue);
  outline: none;
}

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

/* ——— Gallery media library ——— */

.gallery-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-height: min(70vh, 720px);
}

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

.gallery-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--wolrac-muted);
  line-height: 1.4;
}

.gallery-side-panel {
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  padding: 0.85rem 0.75rem 0.9rem;
  position: sticky;
  top: var(--sticky-offset, calc(var(--topbar-height, 48px) + 0.75rem));
}

.gallery-side-head h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wolrac-muted);
}

.folder-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.folder-list .folder-item {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.folder-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 4px;
}

.folder-link:hover {
  opacity: 1;
  background: var(--wolrac-surface);
}

.folder-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--wolrac-muted);
}

.folder-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
}

.folder-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--wolrac-muted);
  background: var(--wolrac-surface);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  line-height: 1.3;
}

.folder-item.is-active {
  background: var(--wolrac-blue-light);
  border-color: color-mix(in srgb, var(--wolrac-blue) 35%, transparent);
}

.folder-item.is-active .folder-link {
  color: var(--wolrac-heading);
  font-weight: 600;
}

.folder-item.is-active .folder-icon {
  color: var(--wolrac-blue);
}

.folder-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-right: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wolrac-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  opacity: 0;
}

.folder-item:hover .folder-delete-btn,
.folder-item:focus-within .folder-delete-btn {
  opacity: 1;
}

.folder-delete-modal-panel {
  max-width: 28rem;
  width: min(28rem, calc(100vw - 2rem));
}

.media-delete-file-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.media-delete-file-item:hover,
.media-delete-file-item:focus-visible {
  background: color-mix(in srgb, var(--wolrac-blue) 12%, var(--background));
  outline: none;
}

.media-delete-thumb {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--wolrac-surface);
  border: 1px solid var(--wolrac-border);
}

.media-delete-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wolrac-muted);
  background: var(--wolrac-surface);
  border: 1px solid var(--wolrac-border);
}

.media-delete-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-delete-files-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--wolrac-heading);
}

.folder-delete-file-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
}

.folder-delete-file-list li {
  margin: 0;
  border-bottom: 1px solid var(--wolrac-border);
}

.folder-delete-file-list li:last-child {
  border-bottom: 0;
}

.folder-delete-file-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.folder-delete-file-item:hover,
.folder-delete-file-item:focus-visible {
  background: color-mix(in srgb, var(--wolrac-blue) 12%, var(--background));
  outline: none;
}

.folder-delete-btn:hover {
  background: var(--wolrac-surface);
  color: #da1e28;
}

.folder-list .folder-drop.is-drop-target {
  border-color: var(--wolrac-blue);
  border-style: dashed;
  background: color-mix(in srgb, var(--wolrac-blue) 14%, var(--background));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wolrac-blue) 40%, transparent);
}

.is-media-dragging .folder-drop:not(.is-drop-target) {
  border-color: color-mix(in srgb, var(--wolrac-blue) 45%, transparent);
  border-style: dashed;
  background: color-mix(in srgb, var(--wolrac-blue) 5%, transparent);
}

.folder-create {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--wolrac-border);
}

.folder-create input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  color: var(--foreground);
  padding: 0.35rem 0.5rem;
  min-height: 2rem;
  outline: none;
}

.folder-create input:focus {
  border-color: var(--wolrac-blue);
}

.gallery-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.gallery-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.gallery-context-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wolrac-heading);
  line-height: 1.3;
}

.gallery-context-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--wolrac-muted);
}

.gallery-search input {
  width: min(100%, 240px);
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  color: var(--foreground);
  padding: 0.4rem 0.65rem;
  min-height: 2.25rem;
  outline: none;
}

.gallery-search input:focus {
  border-color: var(--wolrac-blue);
}

.gallery-search input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gallery-upload {
  position: relative;
  isolation: isolate;
}

.gallery-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 7.5rem;
  padding: 1.25rem 1rem;
  border: 1px dashed var(--wolrac-border);
  background: color-mix(in srgb, var(--wolrac-surface) 40%, var(--background));
  color: var(--wolrac-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gallery-dropzone.is-uploading {
  pointer-events: none;
  opacity: 0.7;
}

.gallery-upload-progress {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
}

.gallery-upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  color: var(--wolrac-heading);
}

.gallery-upload-progress-track {
  height: 0.45rem;
  background: color-mix(in srgb, var(--wolrac-border) 80%, var(--background));
  overflow: hidden;
}

.gallery-upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--wolrac-blue);
  transition: width 0.12s ease-out;
}

.media-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #111;
}

.media-video-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
}

.gallery-lightbox-body video {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
  margin: 0 auto;
  background: #000;
}

.gallery-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: relative;
  z-index: 0;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.gallery-dropzone-icon {
  display: inline-flex;
  color: var(--wolrac-blue);
  margin-bottom: 0.15rem;
  opacity: 0.85;
}

.gallery-dropzone-title {
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--foreground);
}

.gallery-dropzone-sub {
  font-size: 0.75rem;
  color: var(--wolrac-muted);
}

.gallery-upload-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  font-size: 0.8125rem;
  color: var(--foreground);
}

.gallery-upload-status[hidden] {
  display: none !important;
}

.gallery-upload-btn {
  background: var(--wolrac-blue);
  color: #fff;
  border-color: var(--wolrac-blue);
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.85rem;
}

.gallery-upload-btn:hover {
  background: var(--wolrac-blue-hover);
  border-color: var(--wolrac-blue-hover);
  color: #fff;
}

.gallery-drop-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  pointer-events: none;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wolrac-heading);
  background: color-mix(in srgb, var(--wolrac-blue-light) 88%, var(--background));
  border: 1.5px dashed var(--wolrac-blue);
  box-sizing: border-box;
}

.gallery-drop-hint[hidden] {
  display: none !important;
}

.gallery-main[data-upload-drop].is-file-dragover .gallery-dropzone {
  border-color: var(--wolrac-blue);
  background: color-mix(in srgb, var(--wolrac-blue-light) 55%, var(--background));
}

.gallery-main[data-upload-drop].is-file-dragover .gallery-dropzone-inner {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.gallery-bulk-bar {
  position: sticky;
  top: var(--sticky-offset, calc(var(--topbar-height, 48px) + 0.75rem));
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--wolrac-border);
  background: color-mix(in srgb, var(--background) 92%, var(--wolrac-surface));
  backdrop-filter: blur(6px);
}

.gallery-bulk-left,
.gallery-bulk-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.gallery-bulk-label {
  font-size: 0.8125rem;
  color: var(--wolrac-muted);
  min-width: 4.5rem;
}

.gallery-bulk-bar select {
  border: 1px solid var(--wolrac-border);
  background-color: var(--background);
  color: var(--foreground);
  padding: 0.3rem 2rem 0.3rem 0.55rem;
  min-height: 2rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25' stroke='%23525252' stroke-width='1.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.75rem;
  outline: none;
}

.dark .gallery-bulk-bar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25' stroke='%23a8a8a8' stroke-width='1.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 0.65rem;
}

.media-card {
  position: relative;
  border: 2px solid var(--wolrac-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--wolrac-surface);
  cursor: grab;
  aspect-ratio: 1;
  transition: opacity 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.media-card:hover {
  border-color: color-mix(in srgb, var(--wolrac-blue) 45%, var(--wolrac-border));
}

.media-card.is-selected {
  border-color: var(--wolrac-blue);
  box-shadow: 0 0 0 1px var(--wolrac-blue);
}

.media-card.is-dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.media-card.is-filter-hidden {
  display: none;
}

.media-thumb {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1.5rem 0.5rem 0.45rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #f4f4f4;
  opacity: 0;
  transition: opacity 0.15s ease;
  text-align: left;
  pointer-events: none;
}

.media-card:hover .media-overlay,
.media-card:focus-within .media-overlay,
.media-card.is-selected .media-overlay {
  opacity: 1;
}

.media-overlay-name {
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.25;
}

.media-overlay-meta {
  font-size: 0.6875rem;
  opacity: 0.85;
}

.media-check {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.media-check input {
  margin: 0;
  /* Compact checkbox overrides live in panel.css (.media-check input[type=checkbox]) */
}

.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 12rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--wolrac-border);
  background: color-mix(in srgb, var(--wolrac-surface) 40%, transparent);
  text-align: center;
}

.gallery-empty-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wolrac-heading);
}

.gallery-empty-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--wolrac-muted);
  max-width: 22rem;
}

.gallery-pagination {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.gallery-filter-empty {
  margin: 1rem 0 0;
  color: var(--wolrac-muted);
  font-size: 0.875rem;
}

.is-strong {
  font-weight: 600;
}

body.gallery-lb-open {
  overflow: hidden;
}

/* Above folder-delete and other modals (backdrop z-index 80) */
.gallery-lightbox {
  z-index: 100;
}

.gallery-lightbox-panel {
  max-width: min(920px, 100%);
  width: 100%;
  padding: 1rem 1.15rem 1.15rem;
}

.gallery-lightbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gallery-lightbox-head .modal-title {
  margin-bottom: 0.15rem;
  word-break: break-word;
}

.gallery-lb-meta {
  margin: 0;
}

.gallery-lb-close.btn {
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--wolrac-border);
  border-radius: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.gallery-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(75vh, 720px);
  overflow: auto;
  background: color-mix(in srgb, var(--wolrac-surface) 70%, transparent);
  border: 1px solid var(--wolrac-border);
}

.gallery-lightbox-body img {
  display: block;
  max-width: 100%;
  max-height: min(75vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* display:block on img/video beats UA [hidden]{display:none} */
.gallery-lightbox-body img[hidden],
.gallery-lightbox-body video[hidden] {
  display: none !important;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-muted {
  background: var(--wolrac-surface);
  color: var(--wolrac-muted);
}

/* i18n locale UI */
.locale-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--wolrac-border);
  padding-bottom: 0.5rem;
}

.locale-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-sizing: border-box;
  padding: 0 0.85rem;
  min-height: var(--btn-height, 2.5rem);
  height: var(--btn-height, 2.5rem);
  text-decoration: none;
  color: var(--wolrac-muted);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.locale-tab:hover {
  color: var(--wolrac-heading);
  border-color: var(--wolrac-border);
}

.locale-tab.active {
  color: var(--wolrac-heading);
  border-color: var(--wolrac-border);
  background: var(--wolrac-surface);
  font-weight: 600;
}

.locale-tab-missing {
  border-style: dashed;
}

.locale-tab-hint {
  font-weight: 700;
  color: #684e00;
}

.dark .locale-tab-hint {
  color: #f1c21b;
}

/* Flex wrapper only — never apply display:flex directly on <td>
   (breaks table-cell box model → fragmented row borders). */
.locale-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

td.locale-links {
  display: table-cell;
  vertical-align: middle;
}

/* Shared sizing for Dil column + Diğer diller / Çeviriler locale links */
.locale-badge,
a.locale-badge,
a.locale-badge:link,
a.locale-badge:visited,
a.locale-badge:hover,
a.locale-badge:focus,
a.locale-badge:focus-visible,
a.locale-badge:active,
.dark a.locale-badge,
.dark a.locale-badge:link,
.dark a.locale-badge:visited,
.dark a.locale-badge:hover,
.dark a.locale-badge:focus,
.dark a.locale-badge:focus-visible,
.dark a.locale-badge:active {
  text-decoration: none !important;
}

.locale-badge,
.badge.locale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-sizing: border-box;
  padding: 0 0.85rem;
  min-width: var(--locale-badge-min-width, 6.75rem);
  width: auto;
  min-height: var(--btn-height, 2.5rem);
  height: var(--btn-height, 2.5rem);
  line-height: 1.25;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--wolrac-border);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  flex: 0 0 auto;
}

a.locale-badge,
a.locale-badge:hover,
a.locale-badge:focus,
a.locale-badge:active,
.dark a.locale-badge,
.dark a.locale-badge:hover,
.dark a.locale-badge:focus {
  opacity: 1;
}

.locale-badge-tr {
  background: #e6f8fb;
  color: #0a5f6d;
  border-color: transparent;
}

.dark .locale-badge-tr,
.dark a.locale-badge-tr {
  background: #0a3d47;
  color: #9ae5f0;
}

.locale-badge-en {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: transparent;
}

.dark .locale-badge-en,
.dark a.locale-badge-en {
  background: #0d2818;
  color: #81c784;
}

.locale-badge.badge-muted {
  background: var(--wolrac-surface);
  color: var(--wolrac-muted);
}

.dark a.locale-badge.badge-muted {
  color: var(--wolrac-muted);
}

.locale-badge.badge-warn {
  background: #fcf4d6;
  color: #684e00;
  border-color: transparent;
}

.dark .locale-badge.badge-warn,
.dark a.locale-badge.badge-warn {
  background: #2e2200;
  color: #f1c21b;
}

.item-meta {
  color: var(--wolrac-muted);
  font-size: 0.8125rem;
}

/* ——— Categories admin ——— */

.categories-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .categories-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.categories-create {
  max-width: 22rem;
}

@media (min-width: 960px) {
  .categories-create {
    max-width: none;
  }
}

.categories-form .form-actions {
  margin-top: 0;
}

.categories-form .form-actions .btn {
  width: auto;
  align-self: flex-start;
}

.categories-table .cat-inline-input {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--foreground);
  border-radius: 0;
  outline: none;
  font: inherit;
  font-size: 0.875rem;
}

.categories-table .cat-inline-input:hover,
.categories-table .cat-inline-input:focus {
  border-color: var(--wolrac-border);
  background-color: var(--background);
}

.categories-table .cat-slug-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--wolrac-muted);
}

.categories-table td {
  vertical-align: middle;
}

.categories-table .locale-links {
  max-width: 14rem;
}

.categories-table .cat-row-actions {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.categories-table .cat-row-actions-btns {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.categories-table .cat-row-actions-btns form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
}

.categories-table .cat-row-actions-btns .btn {
  width: auto;
  flex: 0 0 auto;
}

.empty-state {
  padding: 1.5rem 1rem;
  border: 1px dashed var(--wolrac-border);
  background: var(--wolrac-surface);
  text-align: left;
}

.empty-state-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wolrac-heading);
}

.empty-state .empty-hint {
  margin: 0;
  max-width: 36ch;
}

.gallery-toast-host {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.gallery-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.gallery-toast-text {
  flex: 1;
  min-width: 0;
}

.gallery-toast-dismiss {
  flex-shrink: 0;
  margin: -0.25rem -0.35rem -0.25rem 0;
  padding: 0.15rem 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.gallery-toast-dismiss:hover,
.gallery-toast-dismiss:focus-visible {
  opacity: 1;
}

/* Settings editors */
textarea.code-area {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre;
  tab-size: 2;
}

.toggle-row,
.cms-check {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  margin: 0 0 1rem;
  box-sizing: border-box;
}

.toggle-row input[type="checkbox"]:not(.sr-only),
.cms-check input[type="checkbox"]:not(.sr-only) {
  margin-top: 0;
  margin-left: 0;
  flex-shrink: 0;
  align-self: flex-start !important;
}

.toggle-row.cms-switch,
.cms-switch-stack {
  margin: 0 0 1rem;
}


/* ——— SEO / Meta page ——— */

.seo-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .seo-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem;
  }
}

.seo-form-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.seo-fields-2 {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .seo-fields-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.seo-form-actions {
  margin-top: 1.25rem;
}

.seo-og-image-field {
  margin-top: 0.5rem;
}

.seo-og-image-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.seo-og-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
}

.seo-og-thumb {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

.seo-og-thumb-empty {
  font-size: 0.75rem;
  color: var(--wolrac-muted);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
}

.seo-og-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  flex: 1;
  min-width: 10rem;
}

.seo-og-picker-actions .field-hint {
  flex-basis: 100%;
  margin: 0;
}

.seo-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--wolrac-border);
  background: var(--wolrac-surface);
  color: var(--wolrac-muted);
  font-size: 0.8125rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.seo-dropzone:hover,
.seo-dropzone:focus-within,
.seo-dropzone.is-dragover {
  border-color: var(--wolrac-blue);
  color: var(--wolrac-heading);
  background: color-mix(in srgb, var(--wolrac-blue) 6%, var(--wolrac-surface));
}

.seo-preview-col {
  position: sticky;
  top: var(--sticky-offset, calc(var(--topbar-height, 48px) + 0.75rem));
}

.seo-og-card {
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  overflow: hidden;
  max-width: 420px;
}

.seo-og-card-label {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wolrac-muted);
  border-bottom: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
}

.seo-og-card-media {
  aspect-ratio: 1.91 / 1;
  background: var(--wolrac-surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--wolrac-border);
}

.seo-og-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-og-card-media-empty {
  font-size: 0.8125rem;
  color: var(--wolrac-muted);
}

.seo-og-card-body {
  padding: 0.85rem 1rem 1rem;
}

.seo-og-card-site {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  color: var(--wolrac-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seo-og-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--wolrac-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-og-card-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--wolrac-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-gallery-modal-panel {
  max-width: 42rem;
  width: min(42rem, calc(100vw - 2rem));
}

.seo-gallery-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.seo-gallery-modal-head .modal-lede {
  margin-bottom: 0;
}

.seo-gallery-search {
  margin: 0.5rem 0 0.75rem;
}

.seo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.5rem;
  max-height: min(52vh, 380px);
  overflow: auto;
  padding: 0.4rem;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
  margin-bottom: 0.65rem;
}

.seo-gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  background: var(--background);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.seo-gallery-item:hover,
.seo-gallery-item:focus-visible {
  border-color: color-mix(in srgb, var(--wolrac-blue) 55%, var(--wolrac-border));
  outline: none;
}

.seo-gallery-item.is-selected {
  border-color: var(--wolrac-blue);
  box-shadow: 0 0 0 1px var(--wolrac-blue);
}

.seo-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seo-gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #171717;
  pointer-events: none;
}

.seo-gallery-item-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.3rem 0.25rem;
  font-size: 0.65rem;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.cms-gallery-picker-panel {
  width: min(980px, calc(100vw - 2rem));
  max-width: 980px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.cms-gallery-picker-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.85rem;
}
.cms-gallery-picker-folders {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface);
}
.cms-gallery-picker-folders h3 {
  margin: 0 0 0.55rem;
  color: var(--wolrac-heading);
  font-size: 0.875rem;
}
.cms-gallery-folder-list {
  max-height: min(42vh, 360px);
  overflow: auto;
}
.cms-gallery-folder {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.cms-gallery-folder:hover,
.cms-gallery-folder:focus-visible,
.cms-gallery-folder.is-active {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 45%, var(--wolrac-border));
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 12%, transparent);
  color: var(--wolrac-heading);
  outline: none;
}
.cms-gallery-folder-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cms-gallery-folder-count {
  margin-left: auto;
  color: var(--wolrac-muted);
  font-size: 0.72rem;
}
.cms-gallery-folder-create {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wolrac-border);
}
.cms-gallery-folder-create input {
  min-width: 0;
  width: 100%;
  height: 2rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
}
.cms-gallery-picker-main {
  min-width: 0;
}
.cms-gallery-picker-tools {
  display: flex;
  align-items: end;
  gap: 0.6rem;
}
.cms-gallery-picker-tools .seo-gallery-search {
  flex: 1;
  margin: 0;
}
.cms-gallery-upload-btn {
  flex-shrink: 0;
  margin-bottom: 0;
}
.cms-gallery-picker-context {
  margin: 0.5rem 0;
}
.cms-gallery-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  max-height: min(55vh, 560px);
}
.cms-gallery-video-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  padding: 0.12rem 0.3rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
@media (max-width: 680px) {
  .cms-gallery-picker-layout {
    grid-template-columns: 1fr;
  }
  .cms-gallery-folder-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }
  .cms-gallery-folder {
    flex: 0 0 auto;
    width: auto;
  }
  .cms-gallery-folder-create {
    max-width: 20rem;
  }
  .cms-gallery-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
}

/* ——— Site CMS forms ——— */
.cms-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .cms-form-layout {
    grid-template-columns: 1fr;
  }
}
.cms-form-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* In-form section tabs (schema Field.Section groups) */
.cms-field-tabs {
  margin: 0 0 0.35rem;
  gap: 0;
}

.cms-field-tabs.settings-tabs {
  margin-bottom: 1rem;
}

.cms-field-tabs .settings-tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.cms-field-tabs .settings-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--wolrac-blue, #19bad4) 55%, transparent);
  outline-offset: 2px;
}

.cms-field-tabs .settings-tab.active {
  color: var(--wolrac-blue, #19bad4);
  border-bottom-color: var(--wolrac-blue, #19bad4);
}

.cms-field-tab-panels {
  min-width: 0;
}

.cms-field-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cms-field-tab-panel[hidden] {
  display: none !important;
}

.cms-form-aside {
  position: sticky;
  top: var(--sticky-offset, calc(var(--topbar-height, 48px) + 0.75rem));
  z-index: 2;
  align-self: start;
}
.cms-object,
.cms-repeater {
  border: 1px solid var(--wolrac-border);
  padding: 0.85rem 1rem 1rem;
  background: var(--background);
}
.cms-object-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.cms-object-body,
.cms-repeater-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cms-repeater-item {
  border: 1px solid var(--wolrac-border);
  padding: 0.75rem;
  background: var(--wolrac-surface, var(--background));
}
.cms-repeater-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.cms-repeater-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Ana sayfa hizmet kartları: metin ve medya aynı satırda, gereksiz uzunluk yok. */
.cms-repeater.is-service-cards > .cms-repeater-body {
  gap: 1rem;
}
.cms-repeater.is-service-cards .cms-repeater-item-head {
  justify-content: flex-start;
  gap: 0.65rem;
}
.cms-repeater.is-service-cards .cms-repeater-item-head strong {
  margin-right: auto;
}
.cms-repeater.is-service-cards .cms-repeater-item-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
  align-items: start;
  gap: 1.25rem;
}
.cms-service-card-copy,
.cms-service-card-media {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.cms-service-card-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.cms-service-card-media > .field:last-child {
  grid-column: 1 / -1;
}
.cms-repeater.is-service-cards .cms-media-preview {
  max-width: none;
  aspect-ratio: 16 / 9;
}
.cms-repeater.is-service-cards .cms-rte-shell .tiptap-editor,
.cms-repeater.is-service-cards .cms-rte-shell .tiptap-editor .ProseMirror,
.cms-repeater.is-service-cards .cms-rte-shell .tiptap-editor .rte-prose {
  min-height: 7.5rem;
}

/* Proje detay hero slaytları: metinler ve görsel aynı kartta yan yana. */
.cms-repeater.is-hero-slides > .cms-repeater-body {
  gap: 0.85rem;
}
.cms-repeater.is-hero-slides .cms-repeater-item-head {
  justify-content: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.cms-repeater.is-hero-slides .cms-repeater-item-head strong {
  margin-right: auto;
}
.cms-repeater.is-hero-slides .cms-repeater-item-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  align-items: start;
  gap: 1.1rem;
}
.cms-hero-slide-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  min-width: 0;
}
.cms-hero-slide-copy > .field:nth-child(2),
.cms-hero-slide-copy > .field:nth-child(4) {
  grid-column: 1 / -1;
}
.cms-hero-slide-media {
  min-width: 0;
}
.cms-repeater.is-hero-slides .cms-media-preview {
  max-width: none;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.4rem;
}
@media (max-width: 860px) {
  .cms-repeater.is-service-cards .cms-repeater-item-body,
  .cms-service-card-media,
  .cms-repeater.is-hero-slides .cms-repeater-item-body,
  .cms-hero-slide-copy {
    grid-template-columns: 1fr;
  }
  .cms-service-card-media > .field:last-child {
    grid-column: auto;
  }
}

/* ——— Compact sortable link rows (menu / footer) ——— */
.cms-repeater.is-link-rows {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 22%, var(--wolrac-border));
}
.cms-repeater.is-link-rows > .field-hint {
  margin: -0.35rem 0 0.65rem;
}
.cms-repeater.is-link-rows > .cms-repeater-body.cms-link-rows-body {
  gap: 0.45rem;
}
.cms-link-row {
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface, var(--background));
  padding: 0.45rem 0.55rem;
  min-width: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.cms-link-row:hover {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 40%, var(--wolrac-border));
}
.cms-link-row.sortable-ghost {
  opacity: 0.45;
}
.cms-link-row.sortable-chosen {
  border-color: var(--wolrac-blue, #19bad4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wolrac-blue, #19bad4) 35%, transparent);
}
.cms-link-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 0.5rem;
  min-width: 0;
}
.cms-link-drag.drag-handle {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  align-self: center;
  border-radius: 6px;
  letter-spacing: -0.15em;
  font-size: 0.9rem;
}
.cms-link-row-main > .order-controls {
  flex-shrink: 0;
  align-self: center;
}
.cms-link-row-main > .order-controls .order-btn {
  min-width: 1.75rem;
  min-height: 1.75rem;
  height: 1.75rem;
}
.cms-link-row-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 0.55rem;
  flex: 1 1 14rem;
  min-width: 0;
}
.cms-link-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 8rem;
}
.cms-link-cell-bool {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 100%;
  padding-bottom: 0.15rem;
}
.cms-link-cell-label {
  display: block;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--wolrac-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cms-link-input {
  width: 100%;
  min-width: 0;
  min-height: 2rem;
  height: 2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--wolrac-border);
  border-radius: 6px;
  background: var(--background);
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
}
.cms-link-input:focus {
  outline: none;
  border-color: var(--wolrac-blue, #19bad4);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, transparent);
}
.cms-link-row-actions {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  justify-content: flex-end;
}
.cms-link-edit-page {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wolrac-blue, #19bad4);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--wolrac-blue, #19bad4) 35%, transparent);
  padding-bottom: 1px;
}
.cms-link-edit-page:hover {
  color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 75%, #000);
  border-bottom-color: var(--wolrac-blue, #19bad4);
}
.cms-link-edit-page[hidden] {
  display: none !important;
}
.cms-link-rows-empty {
  padding: 0.85rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--wolrac-blue, #19bad4) 40%, var(--wolrac-border));
  color: var(--wolrac-muted);
  font-size: 0.8125rem;
  text-align: center;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-repeater.is-link-rows.is-menu-root > .cms-repeater-body.cms-link-rows-body,
.cms-repeater.is-link-rows.is-pool-root > .cms-repeater-body.cms-link-rows-body {
  min-height: 2.5rem;
}

/* ——— Fixed site pages pool (menu / footer sidebar) ——— */
.cms-fixed-pages-pool {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, var(--wolrac-border));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cms-fixed-pages-pool[hidden] {
  display: none !important;
}
.cms-fixed-pages-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wolrac-blue, #19bad4);
}
.cms-fixed-pages-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}
.cms-fixed-pages-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0.5rem;
}
.cms-fixed-page-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, var(--wolrac-border));
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 6%, var(--wolrac-surface, var(--background)));
  min-width: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.cms-fixed-page-item:hover {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 55%, var(--wolrac-border));
}
.cms-fixed-page-item.sortable-ghost {
  opacity: 0.45;
}
.cms-fixed-page-item.sortable-chosen {
  border-color: var(--wolrac-blue, #19bad4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wolrac-blue, #19bad4) 35%, transparent);
}
.cms-social-link-item {
  justify-content: flex-start;
}
.cms-social-link-item .btn {
  margin-left: auto;
}
.cms-social-pool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  border: 1px solid var(--wolrac-blue, #19bad4);
  border-radius: 50%;
  color: var(--wolrac-blue, #19bad4);
}
.cms-social-pool-icon svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: currentColor;
}
.cms-fixed-page-drag.drag-handle {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 6px;
  letter-spacing: -0.15em;
  font-size: 0.8rem;
  cursor: grab;
}
.cms-fixed-page-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cms-fixed-page-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cms-fixed-page-href {
  font-size: 0.68rem;
  color: var(--wolrac-muted);
  background: transparent;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cms-fixed-page-item > .btn {
  flex-shrink: 0;
  min-height: 1.75rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  color: var(--wolrac-blue, #19bad4);
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 45%, transparent);
}
.cms-fixed-page-item > .btn:hover {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 12%, transparent);
  border-color: var(--wolrac-blue, #19bad4);
}

.cms-link-row-nested {
  margin-top: 0.45rem;
  padding: 0.35rem 0 0.15rem 0.65rem;
  border-left: 2px solid color-mix(in srgb, var(--wolrac-blue, #19bad4) 35%, var(--wolrac-border));
}
.cms-link-row-nested > .cms-repeater.is-link-rows {
  border: none;
  background: transparent;
  padding: 0;
}
.cms-link-row-nested > .cms-repeater.is-link-rows > .cms-object-title {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}
.cms-link-row-nested > .cms-repeater.is-link-rows > .field-hint {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.72rem;
}
@media (max-width: 720px) {
  .cms-link-row-main {
    align-items: stretch;
  }
  .cms-link-cell {
    flex: 1 1 100%;
  }
  .cms-link-cell-bool {
    flex: 0 0 auto;
  }
  .cms-link-row-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* ——— Gallery album photo grid repeater ——— */
.cms-repeater.is-photo-grid {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, var(--wolrac-border));
}
.cms-repeater.is-photo-grid > .field-hint {
  margin: -0.35rem 0 0.75rem;
}
.cms-repeater.is-photo-grid .cms-repeater-body.cms-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 960px) {
  .cms-repeater.is-photo-grid .cms-repeater-body.cms-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cms-repeater.is-photo-grid .cms-repeater-body.cms-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cms-photo-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface, var(--background));
  padding: 0.45rem;
  min-width: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.cms-photo-card:hover {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 45%, var(--wolrac-border));
}
.cms-photo-card.is-dragging {
  opacity: 0.5;
}
.cms-photo-card.drag-over {
  border-color: var(--wolrac-blue, #19bad4);
  box-shadow: inset 0 2px 0 var(--wolrac-blue, #19bad4);
}
.cms-photo-card-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.5rem;
}
.cms-photo-card-num {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wolrac-muted);
  letter-spacing: 0.02em;
}
.cms-photo-order-controls {
  flex-shrink: 0;
}
.cms-photo-order-controls .order-btn {
  width: 1.65rem;
  min-width: 1.65rem;
  height: 1.65rem;
  min-height: 1.65rem;
  font-size: 1rem;
}
.cms-photo-card-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--wolrac-muted);
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 0;
  padding: 0;
}
.cms-photo-card-remove:hover {
  color: #c0392b;
  background: color-mix(in srgb, #c0392b 10%, transparent);
}
.cms-photo-card-thumb {
  appearance: none;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--wolrac-border);
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 6%, #f4f4f4);
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cms-photo-card-thumb:hover {
  border-color: var(--wolrac-blue, #19bad4);
}
.cms-photo-card-thumb:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--wolrac-blue, #19bad4) 55%, transparent);
  outline-offset: 1px;
}
.cms-photo-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cms-photo-card-thumb img[hidden] {
  display: none;
}
.cms-photo-card-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wolrac-blue, #19bad4);
  pointer-events: none;
}
.cms-photo-card-empty[hidden] {
  display: none;
}
.cms-photo-card-label {
  min-width: 0;
}
.cms-photo-label-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--wolrac-border);
  background: var(--background);
  color: inherit;
}
.cms-photo-label-input:focus {
  outline: none;
  border-color: var(--wolrac-blue, #19bad4);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, transparent);
}
.cms-repeater.is-photo-grid > .btn {
  margin-top: 0.85rem;
}

.cms-media-preview {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface, #f4f4f4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.cms-media-preview img,
.cms-media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cms-media-preview img.is-svg {
  object-fit: contain;
  padding: 1.25rem;
  background: #fff;
}
.cms-media-preview img[hidden] {
  display: none;
}
.cms-media-preview video {
  background: #171717;
}
.cms-media-preview video[hidden] {
  display: none;
}
.cms-media-preview:not(.is-empty) {
  cursor: zoom-in;
}
.cms-media-preview:focus-visible {
  outline: 2px solid var(--wolrac-blue, #19bad4);
  outline-offset: 3px;
}
.cms-media-preview.is-empty {
  min-height: 120px;
}

.cms-banner-position-stage {
  position: relative;
  width: min(100%, 42rem);
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid var(--wolrac-border);
  background: color-mix(in srgb, var(--wolrac-surface, #f4f4f4) 82%, #111);
  cursor: crosshair;
  user-select: none;
  touch-action: none;
}
.cms-banner-position-stage > img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
}
.cms-banner-position-stage.is-empty {
  display: grid;
  place-items: center;
  background: var(--wolrac-surface, #f4f4f4);
  cursor: default;
}
.cms-banner-position-stage.is-empty > img,
.cms-banner-position-stage:not(.is-empty) .cms-banner-position-empty {
  display: none;
}
.cms-banner-position-empty {
  margin: 0;
  color: var(--wolrac-muted);
}
.cms-banner-position-focus {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 2px solid var(--wolrac-blue, #19bad4);
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 16%, transparent);
  box-shadow: 0 0 0 9999px rgb(0 0 0 / 42%);
  cursor: grab;
}
.cms-banner-position-focus:active {
  cursor: grabbing;
}
.cms-banner-position-focus:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.cms-banner-position-label {
  padding: 0.2rem 0.45rem;
  color: #fff;
  background: rgb(0 0 0 / 70%);
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
}
.cms-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.cms-media-list.cms-media-list-sortable {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  max-width: 66rem;
}
.cms-media-chip {
  position: relative;
  width: 112px;
  height: 84px;
  flex-shrink: 0;
  border: 1px solid var(--wolrac-border);
  background: var(--wolrac-surface, var(--background));
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.cms-media-list-sortable .cms-media-chip {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
}
.cms-media-chip img,
.cms-media-chip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cms-media-chip video {
  background: #171717;
}
.cms-media-chip-preview {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.cms-media-chip-preview:focus-visible {
  outline: 2px solid var(--wolrac-blue, #19bad4);
  outline-offset: -4px;
}
.cms-media-chip-drag {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--wolrac-border);
  background: color-mix(in srgb, var(--background, #fff) 92%, transparent);
  color: var(--foreground);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: -0.08em;
  cursor: grab;
}
.cms-media-chip-order {
  position: absolute;
  right: 2.15rem;
  bottom: 4px;
  z-index: 2;
  display: inline-flex;
  gap: 3px;
}
.cms-media-chip-order-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wolrac-border);
  background: color-mix(in srgb, var(--background, #fff) 92%, transparent);
  color: var(--foreground);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.cms-media-chip-order-btn:hover:not(:disabled),
.cms-media-chip-order-btn:focus-visible {
  border-color: var(--wolrac-blue, #19bad4);
  background: var(--wolrac-blue, #19bad4);
  color: #fff;
  outline: none;
}
.cms-media-chip-order-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cms-media-chip.sortable-ghost {
  opacity: 0.45;
}
.cms-media-chip.sortable-chosen,
.cms-media-chip.sortable-drag {
  cursor: grabbing;
  box-shadow: 0 8px 20px color-mix(in srgb, #000 14%, transparent);
}
.cms-media-chip-remove {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wolrac-border);
  border-radius: 0;
  background: color-mix(in srgb, var(--background, #fff) 92%, transparent);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cms-media-chip-remove:hover,
.cms-media-chip-remove:focus-visible {
  background: var(--wolrac-blue, #19bad4);
  border-color: var(--wolrac-blue, #19bad4);
  color: #fff;
  outline: none;
}

body.cms-media-lb-open {
  overflow: hidden;
}
.cms-media-lightbox {
  z-index: 110;
}
.cms-media-lightbox-panel {
  width: min(1100px, calc(100vw - 2rem));
  max-width: 1100px;
  padding: 1rem 1.15rem 1.15rem;
}
.cms-media-lightbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cms-media-lightbox-head .modal-title {
  margin: 0;
  word-break: break-word;
}
.cms-media-lightbox-close.btn {
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wolrac-border);
  border-radius: 0;
  font-size: 1.25rem;
  line-height: 1;
}
.cms-media-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(80vh, 900px);
  overflow: auto;
  border: 1px solid var(--wolrac-border);
  background: color-mix(in srgb, var(--wolrac-surface) 70%, #000);
}
.cms-media-lightbox-body img {
  display: block;
  max-width: 100%;
  max-height: min(80vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.cms-media-lightbox-body video {
  display: block;
  max-width: 100%;
  max-height: min(80vh, 900px);
  background: #000;
}
.cms-media-lightbox-body img[hidden],
.cms-media-lightbox-body video[hidden] {
  display: none !important;
}
/* Bool fields: title via .field > label, control via label.cms-switch (panel.css).
   .cms-check kept as column alias — never row / space-between. */
.cms-check {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.cms-check input[type="checkbox"]:not(.sr-only) {
  margin: 0;
  align-self: flex-start !important;
}

/* Kill any leftover horizontal toggle layouts */
.field label.cms-switch,
label.cms-switch {
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.section-tabs {
  margin-top: 0.15rem;
}

/* Açık temada kapalı switch, beyaz yüzey üzerinde kaybolmasın. */
html:not(.dark) .cms-switch-track {
  background-color: #dbe3ec;
  border-color: #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.08);
}
html:not(.dark) .cms-switch-track::after {
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.28);
}

/* ——— CMS collection reorder (SortableJS) ——— */

.reorder-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--wolrac-muted);
}

.reorder-status {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.reorder-status.is-ok {
  color: var(--wolrac-blue, #19bad4);
}

.reorder-status.is-pending {
  color: var(--wolrac-muted);
}

.reorder-status.is-err {
  color: #c0392b;
}

.cms-reorder-table .col-drag {
  width: 3.25rem;
  min-width: 3.25rem;
  padding-left: 0.35rem;
  padding-right: 0.15rem;
  vertical-align: middle;
  text-align: center;
}

.cms-reorder-table thead .col-drag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wolrac-muted);
}

.cms-reorder-table .col-locale {
  min-width: 15rem;
  width: 15rem;
}

.cms-reorder-table .col-locale .locale-links {
  flex-wrap: nowrap;
}

.cms-reorder-table .col-order {
  width: 9.5rem;
  vertical-align: middle;
}

.cms-reorder-table tbody tr.cms-reorder-row > td {
  border-bottom: 1px solid var(--wolrac-border);
  background-clip: padding-box;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.is-cms-row-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

body.is-cms-row-dragging .drag-handle {
  cursor: grabbing;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--wolrac-muted);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  line-height: 1;
  vertical-align: middle;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  color: var(--wolrac-blue, #19bad4);
  background: transparent;
  outline: none;
}

.drag-handle:active,
.sortable-chosen .drag-handle,
.sortable-drag .drag-handle {
  cursor: grabbing;
  color: var(--wolrac-blue, #19bad4);
}

.drag-handle-icon {
  display: block;
  pointer-events: none;
}

/* Photo-grid handles keep the compact text glyph look */
.cms-photo-drag.drag-handle {
  width: 1.5rem;
  height: auto;
  border: none;
  background: transparent;
  border-radius: 0;
  letter-spacing: -0.15em;
  font-size: 0.95rem;
}

.order-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.order-controls .order-btn {
  min-width: var(--btn-height-sm, 2rem);
  min-height: var(--btn-height-sm, 2rem);
  height: var(--btn-height-sm, 2rem);
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.order-controls .order-btn:hover,
.order-controls .order-btn:focus-visible {
  color: var(--wolrac-blue, #19bad4);
  border-color: var(--wolrac-blue, #19bad4);
}

.order-input {
  width: 3.25rem;
  min-height: var(--btn-height-sm, 2rem);
  height: var(--btn-height-sm, 2rem);
  padding: 0.2rem 0.35rem;
  text-align: center;
  border: 1px solid var(--wolrac-border);
  border-radius: 0;
  background: var(--wolrac-surface, var(--background));
  color: inherit;
  font-size: 0.875rem;
}

.order-input:focus {
  outline: none;
  border-color: var(--wolrac-blue, #19bad4);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wolrac-blue, #19bad4) 28%, transparent);
}

/* SortableJS visual states — table rows */
.cms-reorder-table tbody tr.sortable-ghost {
  opacity: 1;
}

.cms-reorder-table tbody tr.sortable-ghost > td {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 10%, var(--wolrac-surface, var(--background)));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--wolrac-blue, #19bad4) 55%, transparent);
}

.cms-reorder-table tbody tr.sortable-chosen > td {
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 8%, var(--wolrac-surface, var(--background)));
}

.cms-reorder-table tbody tr.sortable-drag,
.cms-reorder-table tbody tr.sortable-fallback {
  opacity: 0.98;
  cursor: grabbing;
  box-shadow: 0 12px 28px color-mix(in srgb, #000 18%, transparent);
}

.cms-reorder-table tbody tr.sortable-drag > td,
.cms-reorder-table tbody tr.sortable-fallback > td {
  background: var(--wolrac-surface, var(--background));
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 40%, var(--wolrac-border));
}

/* Banner / image card grid */
.cms-reorder-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1100px) {
  .cms-reorder-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cms-reorder-cards {
    grid-template-columns: 1fr;
  }
}

.cms-banner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--wolrac-border);
  border-radius: 10px;
  background: var(--wolrac-surface, var(--background));
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cms-banner-card:hover {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 40%, var(--wolrac-border));
}

.cms-banner-card-handle {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  color: color-mix(in srgb, #fff 88%, transparent);
  filter: drop-shadow(0 1px 2px color-mix(in srgb, #000 45%, transparent));
}

.dark .cms-banner-card-handle {
  border: none;
  background: transparent;
}

.cms-banner-card-media {
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--wolrac-muted) 12%, var(--background));
  overflow: hidden;
}

.cms-banner-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.cms-banner-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: var(--wolrac-muted);
}

.cms-banner-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.95rem;
}

.cms-banner-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--wolrac-heading, var(--foreground));
}

.cms-banner-card-title a {
  color: inherit;
  text-decoration: none;
}

.cms-banner-card-title a:hover {
  color: var(--wolrac-blue, #19bad4);
}

/* Match Düzenle|Sil row: equal-width 2-col grid, button height */
.cms-banner-card-body > .locale-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 100%;
  align-items: stretch;
}

.cms-banner-card-body > .locale-links > .badge,
.cms-banner-card-body > .locale-links > a.badge {
  width: 100%;
  min-width: 0;
  min-height: var(--btn-height, 2.5rem);
  height: var(--btn-height, 2.5rem);
}

.cms-banner-card-actions {
  margin-top: 0.15rem;
  flex-wrap: nowrap;
  width: 100%;
}

.cms-banner-card-actions > .btn,
.cms-banner-card-actions > a.btn,
.cms-banner-card-actions > form {
  flex: 1 1 0;
  min-width: 0;
}

.cms-banner-card-actions > form {
  display: flex;
}

.cms-banner-card-actions > form > .btn {
  width: 100%;
  flex: 1 1 auto;
}

.cms-banner-card.sortable-ghost {
  opacity: 0.55;
  border-style: dashed;
  border-color: var(--wolrac-blue, #19bad4);
  background: color-mix(in srgb, var(--wolrac-blue, #19bad4) 8%, var(--wolrac-surface, var(--background)));
  box-shadow: none;
}

.cms-banner-card.sortable-chosen {
  border-color: color-mix(in srgb, var(--wolrac-blue, #19bad4) 55%, var(--wolrac-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wolrac-blue, #19bad4) 35%, transparent);
}

.cms-banner-card.sortable-drag {
  opacity: 0.98;
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--wolrac-blue, #19bad4) 45%, transparent),
    0 16px 36px color-mix(in srgb, #000 22%, transparent);
}

[data-cms-reorder].is-reordering .cms-banner-card:not(.sortable-chosen):not(.sortable-ghost) {
  opacity: 0.88;
}
