/* B"H — Geelooy create surface: fast, quiet, editor-first. */
@import url('/style/social-system/index.css');
@import url('/style/heichelos/submit/actions.css');
@import url('/style/heichelos/submit/sections.css');
@import url('/style/heichelos/submit/forms.css');
@import url('/style/heichelos/submit/modal.css');

:root {
  --create-bg: #f5f7fa;
  --create-panel: #ffffff;
  --create-line: #e4e8ee;
  --create-ink: #0f172a;
  --create-muted: #64748b;
  --create-accent: #0ea5a4;
  --create-danger: #dc2626;
  --create-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--create-bg);
  color: var(--create-ink);
  font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.submit-shell, body { padding: clamp(3.25rem, 6vw, 4.5rem) .75rem 6.75rem; }
.submit-page, .main, .post-creator-container {
  display: grid;
  gap: .9rem;
  margin: 0 auto;
  width: min(100%, 860px);
}
.compact-card, .composer-card, .submit-hero, .status-card, .simple-advanced-drawer,
.input-group, .editor-wrapper, .collapsible-section {
  background: var(--create-panel);
  border: 1px solid var(--create-line);
  border-radius: 16px;
  box-shadow: none;
}
.compact-card, .composer-card, .submit-hero, .status-card, .simple-advanced-drawer, .input-group { padding: 1rem; }
.submit-hero, .page-header { display: grid; gap: .45rem; }
.submit-hero h1, .page-title-glow {
  color: var(--create-ink);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0;
  text-transform: none;
}
.submit-hero p, .page-header p, #submitStatusMessage { color: var(--create-muted); margin: 0; }
.eyebrow, .hero-kicker, .editor-label, .field-label, label {
  color: var(--create-muted);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: .75rem 0 .35rem;
  text-transform: uppercase;
}
.target-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--create-line);
  border-radius: 999px;
  color: var(--create-muted);
  display: inline-flex;
  font-size: .9rem;
  min-height: 36px;
  padding: .45rem .7rem;
  width: fit-content;
}
.text-link, .top-controls a { color: var(--create-accent); font-weight: 700; text-decoration: none; }
.text-input, input, textarea, select, .bulk-text {
  background: #fff;
  border: 1px solid var(--create-line);
  border-radius: 12px;
  color: var(--create-ink);
  font: inherit;
  min-height: 44px;
  padding: .7rem .8rem;
  width: 100%;
}
textarea, .bulk-text { min-height: 8rem; resize: vertical; }
.kind-pills, .composer-actions, .editor-controls-bar, .top-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.kind-pill, .soft-btn, .btn, .publish-button, .editor-toolbar button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--create-line);
  border-radius: 999px;
  color: var(--create-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: .6rem .85rem;
}
.kind-pill.active, .publish-button, .btn.primary {
  background: var(--create-ink);
  border-color: var(--create-ink);
  color: #fff;
  box-shadow: var(--create-shadow);
}
.editor-wrapper { padding: .6rem; }
.content-editor {
  background: #fff;
  border: 1px solid var(--create-line);
  border-radius: 14px;
  line-height: 1.6;
  min-height: 16rem;
  outline: none;
  padding: 1rem;
}
.content-editor:empty::before { color: #94a3b8; content: attr(data-placeholder); }
.content-editor img, .content-editor audio { border-radius: 12px; display: block; margin: .65rem 0; max-width: 100%; }
.editor-toolbar, .editor-toolbar-container, .toolbar-slot { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.simple-advanced-drawer summary, .collapsible-header { cursor: pointer; font-weight: 750; }
.sections-area, .sub-sections-area { display: grid; gap: .7rem; margin: .8rem 0; }
.section, .sub-section {
  background: #f8fafc;
  border: 1px solid var(--create-line);
  border-radius: 14px;
  display: grid;
  gap: .55rem;
  padding: .85rem;
}
.section h3, .sub-section h4 { margin: 0; }
.subsection-manager { display: grid; gap: .5rem; }
.modal {
  align-items: center;
  background: rgba(15, 23, 42, .42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 80;
}
.modal.active, .modal[open] { display: flex; }
.modal-card {
  background: #fff;
  border: 1px solid var(--create-line);
  border-radius: 18px;
  box-shadow: var(--create-shadow);
  max-width: 460px;
  padding: 1rem;
  width: 100%;
}
.modal-close { float: right; }
.drop-zone { border: 1px dashed #cbd5e1; border-radius: 14px; padding: 2rem 1rem; text-align: center; }
.publish-button { bottom: .9rem; position: fixed; right: .9rem; z-index: 45; }
.mobile-create-nav {
  background: rgba(255,255,255,.98);
  border: 1px solid var(--create-line);
  border-radius: 999px;
  bottom: max(.75rem, env(safe-area-inset-bottom));
  box-shadow: var(--create-shadow);
  display: none;
  gap: .3rem;
  left: 50%;
  padding: .35rem;
  position: fixed;
  transform: translateX(-50%);
  width: min(calc(100vw - 1rem), 520px);
  z-index: 40;
}
.mobile-create-nav a { border-radius: 999px; color: var(--create-muted); flex: 1; font-size: .78rem; font-weight: 750; padding: .65rem .45rem; text-align: center; text-decoration: none; }
.mobile-create-nav .active { background: #f1f5f9; color: var(--create-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--create-accent), white 20%); outline-offset: 2px; }
@media (min-width: 960px) {
  .submit-page, .post-creator-container { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .submit-hero, .page-header, .composer-card, .main-wrapper { grid-column: 1 / -1; }
  .simple-advanced-drawer, .collapsible-section { grid-column: 1; }
  .status-card, .top-controls { grid-column: 2; position: sticky; top: 1rem; }
}
@media (max-width: 720px) {
  body.submit-shell, body { padding: 3.25rem .65rem 8rem; }
  .mobile-create-nav { display: flex; }
  .publish-button { bottom: 4.35rem; left: .85rem; right: .85rem; width: auto; }
  .composer-actions, .editor-controls-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .soft-btn, .btn { padding-inline: .45rem; }
  .content-editor { min-height: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
