:root {
  --bg: #030718;
  --bg-elevated: #050b22;
  --bg-softer: #071030;
  --accent: #46e0ff;
  --accent-soft: rgba(70, 224, 255, 0.2);
  --accent-strong: #2cd6ff;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f5f7ff;
  --text-soft: #9aa4c8;
  --danger: #ff4d6a;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.55);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --glass: rgba(9, 17, 43, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #192b5a 0, #030718 45%, #01020a 100%);
  color: var(--text-main);
}

/* 键盘焦点可见，便于无障碍访问 */
.btn:focus-visible,
a:focus-visible,
.blog-list-item:focus-visible,
.blog-list-load-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.color-swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: url("image/backgroundpic.webp") center center / cover no-repeat;
  background-color: #030718;
}

.bg-ocean {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.app-header {
  text-align: center;
  margin-bottom: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 12px;
  border-radius: var(--radius-pill);
  background: rgba(3, 10, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 0 32px rgba(70, 224, 255, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.logo-text {
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #7eedd4 0%, #46e0ff 35%, #a78bfa 70%, #7eedd4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(70, 224, 255, 0.35));
}

.logo-icon {
  font-size: 1.35em;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(70, 224, 255, 0.5));
}

.subtitle {
  margin: 12px auto 0;
  max-width: 520px;
  padding: 10px 18px 12px;
  font-size: 14px;
  line-height: 1.55;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #f0f4ff;
  background: rgba(3, 7, 24, 0.75);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}


.app-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: flex-start;
}

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

.intro-bar {
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #f0f4ff;
  background: rgba(3, 7, 24, 0.78);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel {
  background: linear-gradient(145deg, rgba(9, 16, 43, 0.96), rgba(9, 20, 58, 0.98));
  border-radius: var(--radius-xl);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(19, 188, 255, 0.16), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-header h2::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), #73ffb7);
  box-shadow: 0 0 18px rgba(70, 224, 255, 0.9);
}

.panel-header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.panel-subtitle {
  margin-top: 6px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.canvas-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, #122964 0, #02061a 52%, #000107 100%);
  position: relative;
}

#fish-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

.draw-controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(2, 7, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--swatch-color);
  padding: 0;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.color-swatch.selected {
  transform: translateY(-1px) scale(1.1);
  box-shadow: 0 0 0 1px rgba(70, 224, 255, 0.9), 0 0 14px rgba(70, 224, 255, 0.85);
  border-color: #ffffff;
}

.color-swatch:active {
  transform: scale(0.95);
}

.color-picker-row {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.picker-label {
  font-size: 11px;
  opacity: 0.8;
}

.field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input[type="color"] {
  width: 44px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  padding: 2px;
}

.field input[type="range"] {
  width: 120px;
}

.field.full-width {
  width: 100%;
}

.field input[type="text"] {
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 17, 43, 0.92);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input[type="text"]::placeholder {
  color: rgba(154, 164, 200, 0.6);
}

.field input[type="text"]:focus {
  border-color: rgba(70, 224, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(70, 224, 255, 0.5);
  background: rgba(12, 26, 70, 0.98);
}

.toggle-group {
  margin-left: auto;
  display: inline-flex;
  padding: 2px;
  background: rgba(3, 10, 28, 0.95);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.heading-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heading-label {
  font-size: 11px;
  color: var(--text-soft);
}

.heading-control .toggle-group {
  margin-left: 0;
}

.btn {
  cursor: pointer;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 12px;
  padding: 7px 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn.small {
  padding: 6px 11px;
  font-size: 11px;
}

.btn.primary {
  background: linear-gradient(135deg, #36d3ff, #6effd1);
  color: #020824;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(57, 221, 255, 0.7);
}

.btn.ghost {
  background: rgba(2, 9, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-soft);
}

.btn.toggle {
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-soft);
  padding: 6px 16px;
}

.btn.toggle.active {
  background: linear-gradient(135deg, #36d3ff, #6effd1);
  color: #020824;
  box-shadow: 0 0 18px rgba(70, 224, 255, 0.9);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  opacity: 0.96;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.7);
  opacity: 0.88;
}

.save-form {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.save-form .btn {
  flex-shrink: 0;
}

.hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.ocean-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top, #02184a 0, #000108 60%, #000000 100%);
}

#ocean-canvas {
  display: block;
  width: 100%;
  height: 260px;
}

.ocean-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
  background: radial-gradient(circle at top, rgba(114, 206, 255, 0.22), transparent 55%);
}

.ocean-hint {
  max-width: 260px;
  font-size: 11px;
  color: var(--text-soft);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.ocean-hint .small {
  opacity: 0.8;
  margin-top: 2px;
}

.fish-list-wrapper {
  margin-top: 12px;
}

.fish-list-wrapper h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.fish-list {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
  border-radius: var(--radius-md);
  background: rgba(2, 8, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fish-list.empty {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
}

.empty-hint {
  margin: 10px 0;
  font-size: 12px;
  color: var(--text-soft);
}

.fish-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(12, 27, 75, 0.95);
  border: 1px solid rgba(70, 224, 255, 0.22);
}

.fish-thumb {
  width: 34px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: black;
  flex-shrink: 0;
}

.fish-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.fish-meta {
  flex: 1;
  min-width: 0;
}

.fish-name {
  font-size: 12px;
  font-weight: 500;
}

.fish-id {
  font-size: 10px;
  color: var(--text-soft);
}

.fish-date {
  font-size: 10px;
  color: var(--text-soft);
  opacity: 0.85;
}

.fish-actions {
  display: flex;
  gap: 6px;
}

.fish-actions .btn {
  padding-inline: 8px;
  font-size: 11px;
}

.panel-blog .panel-header {
  margin-bottom: 12px;
}

.panel-blog-link {
  text-decoration: none;
  color: inherit;
}

.panel-blog-link:hover h2 {
  color: var(--accent);
}

.blog-preview {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-preview-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.blog-preview-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.blog-preview-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(70, 224, 255, 0.3);
}

.blog-preview-item-title {
  font-size: 13px;
  font-weight: 600;
}

.blog-preview-item-meta {
  font-size: 11px;
  color: var(--text-soft);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 14px;
}

.blog-list {
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  background: rgba(4, 10, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-item {
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.1s ease, border-color 0.1s ease, transform 0.08s ease;
}

.blog-item-title {
  font-size: 13px;
  font-weight: 500;
}

.blog-item-meta {
  font-size: 11px;
  color: var(--text-soft);
}

.blog-item.active {
  background: radial-gradient(circle at top left, rgba(70, 224, 255, 0.25), rgba(8, 18, 47, 0.98));
  border-color: rgba(70, 224, 255, 0.7);
  transform: translateY(-1px);
}

.blog-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.04);
}

.blog-content {
  border-radius: var(--radius-md);
  background: rgba(3, 8, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  max-height: 260px;
  overflow: hidden auto;
  font-size: 13px;
  color: #dde5ff;
}

.blog-content h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.blog-content p {
  margin: 4px 0;
  line-height: 1.5;
}

.app-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-icp {
  color: #e2eaf8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.footer-icp:hover {
  color: var(--accent);
  text-decoration: underline;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ---------- 博客列表页 ---------- */
.app-shell--blog {
  max-width: 1280px;
}

.app-header--blog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-page-title {
  margin: 0;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.blog-page-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 200px);
}

.blog-page-list-wrap {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(9, 16, 43, 0.96), rgba(9, 20, 58, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  overflow: hidden;
}

.blog-page-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.blog-page-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-list-empty {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

.blog-list-item {
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.blog-list-item.active {
  background: rgba(70, 224, 255, 0.15);
  border-color: rgba(70, 224, 255, 0.5);
}

.blog-list-load-more {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.blog-list-load-more:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.blog-list-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.blog-list-item-meta {
  font-size: 11px;
  color: var(--text-soft);
}

.blog-page-detail {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(9, 16, 43, 0.96), rgba(9, 20, 58, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.blog-page-welcome,
.blog-page-view {
  font-size: 13px;
  color: #dde5ff;
}

.blog-editor {
  font-size: 13px;
  color: #dde5ff;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.blog-page-welcome p {
  margin: 0;
  opacity: 0.9;
}

.blog-view-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.blog-view-meta {
  margin: 0 0 10px;
  font-size: 11px;
  opacity: 0.8;
}

.blog-view-body {
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-view-body p {
  margin: 6px 0;
}

.blog-view-body ul {
  margin: 6px 0;
  padding-left: 1.2em;
}

.blog-view-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-editor-meta {
  display: grid;
  grid-template-columns: 1fr 140px 200px;
  gap: 12px;
  margin-bottom: 4px;
}

.blog-editor-meta .field--date { min-width: 0; }
.blog-editor-meta .field--summary { min-width: 0; }

@media (max-width: 720px) {
  .blog-editor-meta {
    grid-template-columns: 1fr;
  }
}

.blog-editor-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.blog-editor-body-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.blog-editor-body-wrap .blog-toolbar {
  flex-shrink: 0;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: rgba(4, 12, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 8, 24, 0.95);
  color: var(--text-main);
  font-size: 12px;
  cursor: pointer;
}

.toolbar-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.toolbar-btn.active {
  background: rgba(70, 224, 255, 0.25);
  border-color: rgba(70, 224, 255, 0.6);
  color: var(--accent);
}

.toolbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 2px;
}

.toolbar-font-select {
  min-width: 120px;
}

.toolbar-color {
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 8, 24, 0.95);
  cursor: pointer;
}

.toolbar-file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.blog-editor-body {
  flex: 1;
  min-height: 320px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(2, 8, 24, 0.95);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
}

.blog-editor-body:focus {
  border-color: rgba(70, 224, 255, 0.6);
}

.blog-editor-body[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--text-soft);
}

.blog-editor-body img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.blog-editor-body video,
.blog-editor-body iframe {
  max-width: 100%;
  border-radius: 8px;
}

.blog-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 900px) {
  .app-main {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .blog-page-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-inline: 12px;
  }

  .panel {
    padding: 14px 12px 16px;
  }

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

  .panel-header-actions {
    align-self: stretch;
    justify-content: flex-end;
  }

  .panel-header-actions .btn {
    min-height: 36px;
  }

  .color-swatch {
    min-width: 28px;
    min-height: 28px;
  }

  .save-form {
    flex-direction: column;
    align-items: stretch;
  }

  .save-form .btn {
    width: 100%;
    justify-content: center;
  }

  .ocean-overlay {
    padding: 10px;
  }
}

