﻿﻿﻿﻿@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --bg: #e9edf3;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #3f4c5e;
  --accent: #0f3a8c;
  --accent-strong: #1d4ed8;
  --border: rgba(15, 23, 42, 0.32);
  --panel: #e3e9f2;
  --surface: #ffffff;
  --chip-bg: rgba(15, 23, 42, 0.08);
  --chip-active: rgba(29, 78, 216, 0.3);
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 10px 22px rgba(15, 23, 42, 0.22);
  --focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.36);
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #2563eb;
  --neutral: #64748b;
}

html[data-theme='light'] {
  --bg: #e9edf3;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #3f4c5e;
  --accent: #0f3a8c;
  --accent-strong: #1d4ed8;
  --border: rgba(15, 23, 42, 0.32);
  --panel: #e3e9f2;
  --surface: #ffffff;
  --chip-bg: rgba(15, 23, 42, 0.08);
  --chip-active: rgba(29, 78, 216, 0.3);
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 10px 22px rgba(15, 23, 42, 0.22);
  --focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.36);
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #2563eb;
  --neutral: #64748b;
}

html[data-theme='dark'] {
  --bg: #0a0f1a;
  --card: #121826;
  --text: #e7edf6;
  --muted: #9aa7b6;
  --accent: #22d3ee;
  --accent-strong: #38bdf8;
  --border: rgba(231, 237, 246, 0.14);
  --panel: #0f1420;
  --surface: #0f1625;
  --chip-bg: rgba(56, 189, 248, 0.16);
  --chip-active: rgba(56, 189, 248, 0.28);
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 46px rgba(0, 0, 0, 0.6);
  --focus-ring: 0 0 0 3px rgba(56, 189, 248, 0.3);
  --success: #4ade80;
  --warning: #facc15;
  --danger: #fca5a5;
  --info: #7dd3fc;
  --neutral: #cbd5e1;
}

html[data-theme='sand'] {
  --bg: #f6f0e7;
  --card: #fffaf3;
  --text: #2f2a25;
  --muted: #6b5f57;
  --accent: #c05621;
  --accent-strong: #9c4221;
  --border: rgba(47, 42, 37, 0.12);
  --panel: rgba(255, 250, 243, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #f7f9fc 0%, #e9edf3 55%, #e1e7f0 100%);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme='dark'] body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(1000px 520px at 90% 0%, rgba(37, 99, 235, 0.16), transparent 55%),
    var(--bg);
}

body.tenant-switching {
  cursor: progress;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(15, 23, 42, 0.28);
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-title {
  margin: 0;
  font-size: 22px;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tenant-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#tenantSwitchBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tenant-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 260px;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.tenant-switcher-menu .field span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.tenant-switcher-menu input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tenant-switcher-menu input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.tenant-switcher-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 8px;
}

.tenant-switcher-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  color: #fff;
}

.tenant-switcher-item.is-active {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
}

.tenant-switcher-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.tenants-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tenants-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tenants-list-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tenants-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tenants-detail-panel.is-empty form {
  display: none;
}

.tenant-access-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}

.tenant-access-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

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

.app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

body.page-dashboard .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.page-dashboard .editor-shell,
body.page-dashboard aside[aria-label='Deploy jobs'] {
  display: none;
}

body.page-editor .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.page-editor .panel,
body.page-editor aside[aria-label='Deploy jobs'] {
  display: none;
}

body.page-editor .editor-shell > .card:not(.editor-card) {
  display: none;
}

body.page-editor .view-toggle {
  display: none;
}

body.page-editor .preview-pane {
  display: none;
}

body.page-editor .editor-card[data-view-mode='preview'] .preview-pane {
  display: block;
}

body.page-editor .editor-card[data-view-mode='preview'] .editor-pane {
  display: none;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
}

.card h2 {
  margin: 0;
  font-size: 18px;
}

.editor-card h2 {
  margin: 0;
}

.editor-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-card {
  --panel: #ffffff;
  --surface: #ffffff;
}

.login-shell {
  max-width: 520px;
  margin: 0 auto;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.editor-card .editor-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--border);
}

.view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #dde5ef;
  border: 1px solid var(--border);
}

#viewOnBlogBtn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

#viewOnBlogHint {
  margin: 0 0 8px;
}

.view-toggle .ghost {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.view-toggle .is-active {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.editor-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.editor-pane {
  position: relative;
  overflow: visible;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.editor-container {
  position: relative;
}

.custom-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.custom-toolbar.is-hidden {
  display: none;
}

.markdown-toolbar {
  margin-top: 10px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toolbar-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toolbar-btn:hover {
  background: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.35);
}

.toolbar-btn:active {
  background: rgba(148, 163, 184, 0.3);
}

.toolbar-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.editorjs-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  min-height: 320px;
  color: #0f172a;
}

.editorjs-container.is-hidden {
  display: none;
}

.quill-editor {
  min-height: 360px;
  background: var(--panel);
  color: #0f172a;
}

.quill-toolbar {
  position: sticky;
  top: 145px;
  z-index: 4;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  isolation: isolate;
}

.quill-toolbar::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: #ffffff;
  border-radius: 12px;
  z-index: -1;
}

html[data-theme='dark'] .quill-toolbar {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .quill-toolbar::before {
  background: var(--panel);
}

.quill-editor .ql-editor {
  padding-top: 56px;
}

.ql-toolbar.ql-snow {
  border: none;
  font-family: var(--font-sans);
  background: transparent;
}

.ql-container.ql-snow {
  border: none;
  font-family: var(--font-sans);
  background: transparent;
}

.quill-editor .ql-editor {
  font-family: var(--font-sans);
  color: #0f172a;
}

.quill-editor .ql-editor {
  min-height: 360px;
  padding: 16px;
  cursor: text;
}

.quill-image-controls {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.quill-image-controls button {
  padding: 4px 8px;
  font-size: 12px;
}

.quill-image-controls.hidden {
  display: none;
}

.quill-wrapper.is-hidden {
  display: none;
}

.ql-font-inter {
  font-family: 'Inter', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ql-font-pretendard {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.ql-font-noto-sans-kr {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.ql-font-serif {
  font-family: Georgia, 'Times New Roman', serif;
}

.ql-font-monospace {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.custom-page-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.custom-page-editor.hidden {
  display: none;
}

.custom-image-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-image-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.2);
  word-break: break-all;
}

.custom-image-item span {
  color: var(--text);
}

.image-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-block img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.columns-block {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.columns-block__column {
  min-height: 80px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.2);
  color: var(--text);
}

.checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: inline-block;
  position: relative;
  background: #fff;
}

.checklist-item.is-checked .checklist-box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--text);
  border-radius: 2px;
}

.raw-html-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.raw-html-block textarea {
  min-height: 80px;
}

.raw-html-block__preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.warning-banner {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
}

.codex-editor__redactor {
  padding-top: 16px;
  padding-bottom: 120px;
}

.codex-editor__redactor,
.ce-block__content,
.ce-toolbar__content {
  max-width: 100%;
}

.ce-toolbar__settings-btn,
.ce-toolbar__plus {
  color: var(--text);
}

.ce-toolbar__actions {
  color: var(--text);
}

.ql-font-jakarta {
  font-family: 'Plus Jakarta Sans', 'Pretendard', 'Noto Sans KR', sans-serif;
}

.ql-font-pretendard {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.ql-font-monospace {
  font-family: var(--font-mono);
}

.editor-textarea--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.preview-pane {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #e9eef5;
  padding: 12px;
  min-height: 100%;
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #e9eef5;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
  font-weight: 700;
}

.pill {
  background: var(--chip-bg);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #dde5ef;
  border: 1px solid var(--border);
}

html[data-theme='dark'] .tab-bar {
  background: var(--panel);
  border-color: var(--border);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 160px;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown .tab-button {
  white-space: nowrap;
}

.nav-dropdown.is-active > .nav-dropdown-trigger {
  color: var(--text);
  border-color: var(--accent);
  background: var(--chip-active);
}

.admin-subnav {
  margin-bottom: 16px;
}

.tenant-detail-tabs {
  margin: 12px 0;
}

.tenant-detail-panel-body > [data-tenant-tab-panel] {
  margin-top: 12px;
}

.tab-button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--chip-bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-button.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--chip-active);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
}

.tab-button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}

.access-denied {
  text-align: center;
  padding: 32px 20px;
}

.access-denied .primary {
  display: inline-flex;
  margin-top: 12px;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.tab-panel.is-active {
  display: flex;
}

.tab-panel--with-sidebar {
  display: none;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tab-panel--with-sidebar.is-active {
  display: grid;
}

.panel-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.panel-sidebar .primary {
  width: 100%;
}

.scroll-top-button {
  position: sticky;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.site-settings-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
}

.site-settings-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--chip-active);
}

.site-settings-panel {
  display: none;
}

.site-settings-panel.is-active {
  display: block;
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.image-preview img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  display: none;
}

.image-preview__empty {
  color: var(--muted);
  font-size: 13px;
}

.image-preview.has-image img {
  display: block;
}

.image-preview.has-image .image-preview__empty {
  display: none;
}

.image-placeholder {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  margin: 12px 0;
  background: rgba(15, 118, 110, 0.06);
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-row input[type='range'] {
  flex: 1;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-weight: 600;
  color: var(--text);
}

.field .muted {
  font-weight: 500;
}

.field.compact {
  gap: 4px;
  min-width: 140px;
}

.field.compact span {
  font-size: 12px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-inline input[type='search'] {
  flex: 1;
}

.field.is-disabled {
  opacity: 0.6;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

button.ghost.danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.4);
}

input,
textarea,
select {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
}

html[data-theme='dark'] input,
html[data-theme='dark'] textarea,
html[data-theme='dark'] select {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme='dark'] #titleInput,
html[data-theme='dark'] #categorySelect,
html[data-theme='dark'] #editorTemplateSelect {
  background: #000000;
  color: var(--text);
  border-color: var(--border);
}

html[data-theme='dark'] .field.editor-pane {
  color: #0f172a;
}

html[data-theme='dark'] .field.editor-pane > span {
  color: #0f172a;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

select,
option {
  background: #ffffff;
  color: var(--text);
}

input[type='file'] {
  padding: 8px 0;
  border: none;
  background: transparent;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  background: #ffffff;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
.button-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

button:hover,
.button-link:hover {
  box-shadow: var(--shadow-sm);
}

button:active {
  transform: translateY(1px);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.button-link:active {
  transform: translateY(1px);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.28);
}

.ghost {
  background: var(--chip-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost:hover {
  background: rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.42);
}

html[data-theme='light'] .ghost {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.32);
}

html[data-theme='light'] .ghost:hover {
  background: #f1f5fb;
  border-color: rgba(15, 23, 42, 0.45);
}

html[data-theme='light'] .primary {
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.35);
}

.tab-button:hover {
  color: var(--text);
  border-color: var(--border);
}

.actions {
  display: flex;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
}

.row.between {
  justify-content: space-between;
  gap: 12px;
}

.row.gap {
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.error {
  color: #f87171;
}

.card.has-error {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
}

.session {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--chip-bg);
  color: var(--accent-strong);
  font-weight: 700;
  min-height: 44px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-assets-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  gap: 16px;
  align-items: start;
}

.page-assets-controls,
.page-assets-list-wrap {
  min-width: 0;
}

.page-assets-controls .primary {
  width: 100%;
}

.posts-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.posts-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.posts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

input.is-filled {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.filter-button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.filter-button.is-active {
  color: #ffffff;
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 6px 12px rgba(29, 78, 216, 0.24);
}

.filter-button:hover {
  color: var(--text);
  border-color: var(--border);
}

.posts-toolbar-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #dde5ef;
}

html[data-theme='dark'] .posts-toolbar-inputs {
  background: var(--panel);
  border-color: var(--border);
}

.posts-toolbar-inputs .field {
  margin: 0;
}

.posts-toolbar-inputs input,
.posts-toolbar-inputs select {
  min-height: 38px;
}

.site-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.site-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.site-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(140px, 160px);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.site-nav-item.is-child {
  margin-left: 20px;
  border-left: 3px solid rgba(15, 118, 110, 0.4);
}

.site-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.site-nav-actions .icon-button {
  padding: 6px 10px;
  font-size: 12px;
}

.action-edit {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.action-delete {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.site-nav-edit-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.site-layout-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.site-layout-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-layout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-layout-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.site-layout-actions .icon-button {
  padding: 6px 10px;
  font-size: 12px;
}

.site-layout-summary {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  font-size: 14px;
}

.site-layout-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.field.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field.inline span {
  white-space: nowrap;
}

.site-layout-picks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-layout-picks input[type='search'] {
  padding: 8px 10px;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.pick-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.pick-option .muted {
  grid-column: 2 / -1;
  font-size: 12px;
}

.post-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.post-picker-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--border);
}

.post-picker-row:last-child {
  border-bottom: none;
}

.post-picker-row .muted {
  font-size: 12px;
  grid-column: 2 / -1;
}

.selected-posts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
}

.site-layout-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-layout-feature-row {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.wrap {
  flex-wrap: wrap;
}

.posts-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--panel);
}

.posts-bulk-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.posts-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.tenants-table {
  background: var(--panel);
  border-color: var(--border);
  overflow: visible;
}

.tenants-table .posts-row {
  padding: 14px 16px;
  font-size: 15px;
}

.accounts-table {
  overflow: visible;
}

.posts-body {
  display: flex;
  flex-direction: column;
}

.posts-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.4fr) 0.6fr 0.8fr 0.7fr minmax(160px, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: default;
}

.posts-row:last-child {
  border-bottom: none;
}

.posts-row--head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--panel);
  cursor: default;
}

.posts-row.is-clickable {
  cursor: pointer;
}

.posts-row.active {
  background: var(--chip-active);
}

.posts-row.is-clickable:not(.posts-row--head):hover {
  background: rgba(37, 99, 235, 0.08);
}

.posts-row:not(.posts-row--head):nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

html[data-theme='dark'] .tenants-table .posts-row:not(.posts-row--head):nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

body.page-tenants .tenants-layout {
  grid-template-columns: minmax(0, 1fr);
}

.posts-cell {
  font-size: 14px;
}

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

.tenants-table .posts-row {
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(220px, 1.2fr) 0.5fr 0.8fr minmax(190px, 0.9fr);
}

.accounts-table .posts-row {
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr) minmax(180px, 0.8fr);
}

.posts-cell--select {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4px;
}

.posts-cell--select input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
  background-color: var(--card);
  border: 1px solid var(--border);
}

.global-loading {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.global-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.posts-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.posts-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.posts-actions .ghost {
  padding: 6px 10px;
  font-size: 12px;
}

.account-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  z-index: 20;
}

.action-menu .ghost {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
  font-size: 13px;
}

.posts-actions .danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.4);
}

.posts-status {
  display: flex;
  align-items: center;
}

.posts-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.posts-state {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-draft {
  background: rgba(100, 116, 139, 0.12);
  color: var(--neutral);
}

.badge-published {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.badge-scheduled {
  background: rgba(37, 99, 235, 0.12);
  color: var(--info);
}

.badge-ready {
  background: rgba(37, 99, 235, 0.12);
  color: var(--info);
}

.badge-delivered {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.badge-paused {
  background: rgba(245, 158, 11, 0.16);
  color: var(--warning);
}

.badge-trashed {
  background: rgba(100, 116, 139, 0.12);
  color: var(--neutral);
}

.badge-queued {
  background: rgba(100, 116, 139, 0.12);
  color: var(--neutral);
}

.badge-building {
  background: rgba(37, 99, 235, 0.12);
  color: var(--info);
}

.badge-success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.badge-failed {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.badge-canceled {
  background: rgba(245, 158, 11, 0.16);
  color: var(--warning);
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--panel);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.list-item:hover {
  border-color: var(--accent);
  background: var(--chip-bg);
}

.list-item.active {
  border-color: var(--accent-strong);
  background: var(--chip-active);
}

.list-item .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-item {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--panel);
  cursor: pointer;
}

.category-list {
  display: grid;
  gap: 8px;
}

.inquiry-list {
  display: grid;
  gap: 10px;
}

.pr-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
}

.pr-access-card {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.pr-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
  min-height: 200px;
}

.pr-campaign-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pr-campaign-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: var(--panel);
}

.pr-campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pr-detail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pr-detail-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
}

.pr-detail-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--chip-active);
}

.pr-detail-panel {
  display: none;
}

.pr-detail-panel.is-active {
  display: block;
}

.pr-press-preview {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
}

.pr-press-preview img {
  max-width: 100%;
  border-radius: 12px;
}

.pr-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pr-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

  .page-assets-layout {
    grid-template-columns: 1fr;
  }
}

.inquiry-item {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel);
}

.inquiry-item[data-unread='true'] {
  border-color: var(--accent);
}

.inquiry-item summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.inquiry-item summary::-webkit-details-marker {
  display: none;
}

.inquiry-item .inquiry-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.inquiry-item pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text);
}

.category-item {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-row a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.status-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.status-queued {
  background: var(--warning);
}

.status-building {
  background: var(--info);
}

.status-success {
  background: var(--success);
}

.status-failed {
  background: var(--danger);
}

.status-canceled {
  background: #ca8a04;
}

.preview {
  min-height: 120px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  flex: 1;
  overflow-y: auto;
}

.preview-scope {
  min-height: 100%;
  padding: 16px;
  border-radius: 10px;
}

.preview h1,
.preview h2,
.preview h3 {
  margin-top: 0;
}

.preview p {
  margin: 0 0 12px;
}

.preview code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, monospace;
  background: rgba(148, 163, 184, 0.2);
  padding: 2px 6px;
  border-radius: 6px;
}

.preview pre {
  background: rgba(15, 23, 42, 0.6);
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.theme-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-card .swatch {
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.theme-card.is-selected {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.theme-card:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.editor-card[data-view-mode='edit'] .preview-pane {
  display: none;
}

.editor-card[data-view-mode='preview'] .editor-pane {
  display: none;
}

.link-row a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.link-row a:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-card--wide {
  width: min(1100px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-card--wide .modal-body {
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-modal-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  min-height: 100%;
}

.preview-modal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.modal-preview {
  max-height: 70vh;
  overflow: auto;
}

.modal-body select {
  width: 100%;
}

.schedule-helper {
  margin: 0 0 8px;
}

.schedule-summary {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
}

.schedule-summary .muted {
  font-weight: 400;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1200;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.toast--success {
  border-color: rgba(22, 163, 74, 0.3);
}

.toast--error {
  border-color: rgba(220, 38, 38, 0.3);
}

.modal-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hidden {
  display: none;
}

.modal.hidden {
  display: none;
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.upload-item input {
  flex: 1;
  border: none;
  background: transparent;
  color: #111827;
}

.upload-item button {
  border: none;
  background: #fff;
  color: #ef4444;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .editor-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .row.between {
    flex-direction: column;
    align-items: flex-start;
  }

  .posts-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .posts-row--head {
    display: none;
  }

  .posts-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-panel--with-sidebar.is-active {
    display: flex;
  }

  .panel-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ?�롭�??��???*/
.upload-dropzone {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: #666;
  background: #fdfdfd;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 30px;
}
.upload-dropzone:hover, .upload-dropzone.is-dragover {
  border-color: var(--primary); /* ?�장???�마??*/
  background: #f0f7ff;
}
.upload-dropzone .icon { font-size: 2rem; margin-bottom: 10px; }
.upload-dropzone .sub-msg { font-size: 0.8rem; color: #999; display: block; margin-top: 5px; }

/* ?��?지 보�???그리???��???*/
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.media-card {
  border: 1px solid #eee;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #ddd;
}

/* ???�기가 ?�심?�니?? ?�이(height)가 ?�으�???보입?�다 */
.media-thumb {
  width: 100%;
  height: 120px;            /* ?�이 고정 */
  background-size: cover;   /* ?��?지가 박스�?�?채우?�록 */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f4f4f4; /* 로딩 ???�색 배경 */
  border-bottom: 1px solid #f0f0f0;
}

.media-info {
  padding: 10px;
}

.media-name {
  font-size: 12px;
  color: #333;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* ?�름 길면 ... 처리 */
}

.media-actions {
  display: flex;
  gap: 5px;
}

/* 버튼 ?��???*/
.media-actions .btn-copy {
  flex: 1;
  border: 1px solid #ddd;
  background: white;
  padding: 4px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  color: #555;
}
.media-actions .btn-copy:hover {
  background: #f9f9f9;
  border-color: #ccc;
}

.media-actions .btn-del {
  flex: 0 0 28px;
  border: 1px solid #ffebeb;
  background: white;
  color: #e00;
  padding: 4px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}
.media-actions .btn-del:hover {
  background: #fff0f0;
  border-color: #ffcaca;
}
/* 1. 로딩�?컨테?�너 (?�색 배경 ?�랙) */
#deployProgressContainer {
  display: none; /* ?�소?�는 ?��? */
  width: 100%;
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* 2. ?�제 차오르는 ?��???막�? */
#deployProgressBar {
  width: 0%;
  height: 100%;
  background-color: #007bff; /* ?��???(?�하???�으�?변�?가?? */
  transition: width 0.4s ease-in-out; /* 부?�럽�??�어??*/
  
  /* 빗금 무늬 ?�턴 */
  background-image: linear-gradient(
    45deg, 
    rgba(255,255,255,0.15) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255,255,255,0.15) 50%, 
    rgba(255,255,255,0.15) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 1rem 1rem;
  animation: progress-move 1s linear infinite; /* 무늬가 ?�직임 */
}

/* 3. 진행 ?�태 ?�스??(?? [1/8] 기본 ?�보 ?�??�?..) */
#deployStatusText {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
  min-height: 1.2em; /* ?�스???�을 ?�도 공간 ?��? */
}

/* ?�니메이???�의 */
@keyframes progress-move {
  from { background-position: 1rem 0; }
  to { background-position: 0 0; }
}
