/* BudunOS publisher variants
 * Body: bos-publisher-v-{id}
 * Box:  .bos-publisher.bos-publisher--{id}
 */

/* ---------- soft — identity (current sidebar.css) ---------- */
body.bos-publisher-v-soft .bos-publisher {
  /* default soft card styles */
}

/* ---------- Compact row ---------- */
body.bos-publisher-v-compact .bos-publisher.bos-publisher--compact {
  border-radius: 16px !important;
  box-shadow: 0 8px 28px -18px rgba(20, 24, 32, 0.16) !important;
}

body.bos-publisher-v-compact .bos-publisher .publisher-message.bos-pub-compose {
  padding: 10px 12px 4px !important;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-user {
  gap: 8px;
  margin-bottom: 0;
}

body.bos-publisher-v-compact .bos-publisher .publisher-avatar,
body.bos-publisher-v-compact .bos-publisher .bos-pub-compose .publisher-avatar {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px;
  border-radius: 10px !important;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-user-name {
  font-size: 11px;
}

body.bos-publisher-v-compact .bos-publisher .ql-editor {
  font-size: 14px !important;
  min-height: 36px !important;
  padding: 4px 0 2px !important;
}

body.publisher-focus.bos-publisher-v-compact .bos-publisher .ql-editor {
  min-height: 56px !important;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-bar {
  padding: 4px 12px 6px;
  min-height: 40px;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-bar-label {
  font-size: 11px;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-tool,
body.bos-publisher-v-compact .bos-publisher .bos-pub-quick .publisher-tools-tab {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-more-btn {
  height: 32px !important;
  padding: 0 8px 0 6px !important;
  font-size: 11px !important;
}

body.bos-publisher-v-compact .bos-publisher .publisher-footer {
  padding: 10px 12px !important;
}

body.bos-publisher-v-compact .bos-publisher .publisher-footer-buttons .btn-group .btn,
body.bos-publisher-v-compact .bos-publisher .publisher-footer-buttons > .btn.btn-light,
body.bos-publisher-v-compact .bos-publisher .bos-pub-opts-sum {
  height: 34px;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

body.bos-publisher-v-compact .bos-publisher .publisher-footer-buttons .js_publisher,
body.bos-publisher-v-compact .bos-publisher .bos-pub-share {
  height: 34px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  padding: 0 14px !important;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-types {
  padding: 8px 10px 10px;
  gap: 2px;
}

body.bos-publisher-v-compact .bos-publisher .bos-pub-type,
body.bos-publisher-v-compact .bos-publisher a.bos-pub-type {
  padding: 7px !important;
  border-radius: 9px !important;
}

/* ---------- Frost panel (glass) ---------- */
body.bos-publisher-v-glass .bos-publisher.bos-publisher--glass {
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 20px 60px -28px rgba(20, 24, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

body.publisher-focus.bos-publisher-v-glass .bos-publisher.bos-publisher--glass {
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    0 28px 70px -28px rgba(20, 24, 32, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.bos-publisher-v-glass .bos-publisher .bos-pub-types {
  background: rgba(246, 247, 249, 0.65);
  border-top-color: rgba(233, 235, 239, 0.7);
}

body.bos-publisher-v-glass .bos-publisher .bos-pub-type:hover,
body.bos-publisher-v-glass .bos-publisher a.bos-pub-type:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}

body.bos-publisher-v-glass .bos-publisher .publisher-footer {
  background: transparent;
  border-top-color: rgba(233, 235, 239, 0.7) !important;
}

body.bos-publisher-v-glass .bos-publisher .publisher-footer-buttons .btn-group .btn,
body.bos-publisher-v-glass .bos-publisher .publisher-footer-buttons > .btn.btn-light,
body.bos-publisher-v-glass .bos-publisher .bos-pub-opts-sum {
  background: rgba(246, 247, 249, 0.75) !important;
  border-color: rgba(233, 235, 239, 0.85) !important;
  backdrop-filter: blur(8px);
}

body.bos-publisher-v-glass .bos-publisher .publisher-meta {
  background: rgba(249, 250, 251, 0.7) !important;
  border-color: rgba(233, 235, 239, 0.8) !important;
}

body.bos-publisher-v-glass .bos-publisher .bos-pub-opts {
  background: rgba(250, 251, 252, 0.85) !important;
  backdrop-filter: blur(10px);
}

body.night-mode.bos-publisher-v-glass .bos-publisher.bos-publisher--glass,
html[data-bs-theme="dark"].bos-publisher-v-glass .bos-publisher.bos-publisher--glass {
  background: rgba(30, 37, 43, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 20px 60px -24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.night-mode.bos-publisher-v-glass .bos-publisher .publisher-footer,
html[data-bs-theme="dark"].bos-publisher-v-glass .bos-publisher .publisher-footer {
  background: transparent;
}

/* ---------- Ink compose ---------- */
body.bos-publisher-v-ink .bos-publisher.bos-publisher--ink {
  --bos-pub-ink: #f0f3f6;
  --bos-pub-muted: #8b949e;
  --bos-pub-line: rgba(255, 255, 255, 0.1);
  --bos-pub-soft: rgba(255, 255, 255, 0.06);
  --bos-pub-bs: color-mix(in srgb, var(--link-color) 22%, #1a2229);
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #141a20 !important;
  box-shadow: 0 22px 55px -26px rgba(0, 0, 0, 0.55) !important;
  color: #f0f3f6;
}

body.publisher-focus.bos-publisher-v-ink .bos-publisher.bos-publisher--ink {
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.65) !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-user-name,
body.bos-publisher-v-ink .bos-publisher .ql-editor {
  color: #f0f3f6 !important;
}

body.bos-publisher-v-ink .bos-publisher .ql-editor.ql-blank::before {
  color: #6e7781 !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-bar-label {
  color: #8b949e;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tool,
body.bos-publisher-v-ink .bos-publisher .bos-pub-quick .publisher-tools-tab,
body.bos-publisher-v-ink .bos-publisher .bos-pub-more-btn {
  color: #c9d1d9 !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tool .main-icon,
body.bos-publisher-v-ink .bos-publisher .bos-pub-tool .bos-sb-ico,
body.bos-publisher-v-ink .bos-publisher .bos-pub-tool .svg-container {
  color: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tool svg,
body.bos-publisher-v-ink .bos-publisher .bos-pub-quick .publisher-tools-tab svg {
  stroke: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tool:hover,
body.bos-publisher-v-ink .bos-publisher .bos-pub-quick .publisher-tools-tab:hover,
body.bos-publisher-v-ink .bos-publisher .bos-pub-more-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tool:hover svg {
  stroke: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tool.active,
body.bos-publisher-v-ink .bos-publisher .bos-pub-tool.activated,
body.bos-publisher-v-ink .bos-publisher .bos-pub-more-btn.is-on {
  background: var(--bos-pub-bs) !important;
  color: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-types {
  background: #0f1419;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-type,
body.bos-publisher-v-ink .bos-publisher a.bos-pub-type {
  color: #c9d1d9 !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-type:hover,
body.bos-publisher-v-ink .bos-publisher a.bos-pub-type:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-ti {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-ti svg {
  stroke: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-tt small {
  color: #6e7781 !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer {
  background: #141a20;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons .btn-group .btn,
body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons > .btn.btn-light,
body.bos-publisher-v-ink .bos-publisher .bos-pub-opts-sum {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #c9d1d9 !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons .btn-group .btn:hover,
body.bos-publisher-v-ink .bos-publisher .bos-pub-opts-sum:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-opts-sum svg {
  stroke: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons .js_publisher,
body.bos-publisher-v-ink .bos-publisher .bos-pub-share {
  background: color-mix(in srgb, var(--link-color) 82%, #fff) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--link-color) 35%, transparent),
    0 12px 28px color-mix(in srgb, var(--link-color) 30%, transparent) !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-meta {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #c9d1d9;
}

body.bos-publisher-v-ink .bos-publisher .publisher-meta input,
body.bos-publisher-v-ink .bos-publisher .publisher-meta select,
body.bos-publisher-v-ink .bos-publisher .publisher-meta .form-select {
  background: transparent !important;
  color: #f0f3f6 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-opts {
  background: #1a2229 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-opt:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-opt-ico {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.bos-publisher-v-ink .bos-publisher .bos-pub-opt-ico svg {
  stroke: #fff !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-options .form-label,
body.bos-publisher-v-ink .bos-publisher .bos-pub-opt .form-label {
  color: #f0f3f6 !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-options .form-text,
body.bos-publisher-v-ink .bos-publisher .bos-pub-opt .form-text {
  color: #6e7781 !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons .btn-group .dropdown-menu {
  background: #1a2229 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons .btn-group .dropdown-item {
  color: #c9d1d9 !important;
}

body.bos-publisher-v-ink .bos-publisher .publisher-footer-buttons .btn-group .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* ---------- Action sheet ---------- */
body.bos-publisher-v-sheet .bos-publisher.bos-publisher--sheet {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 14px 40px -24px rgba(20, 24, 32, 0.2) !important;
}

body.bos-publisher-v-sheet .bos-publisher .publisher-message.bos-pub-compose {
  padding: 16px 16px 8px !important;
}

body.bos-publisher-v-sheet .bos-publisher .bos-pub-tools {
  border-top: 0 !important;
}

body.bos-publisher-v-sheet .bos-publisher .bos-pub-bar {
  margin: 0 12px;
  padding: 6px 8px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--bos-pub-soft);
}

body.bos-publisher-v-sheet .bos-publisher .bos-pub-bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1ab;
}

body.bos-publisher-v-sheet .bos-publisher .bos-pub-tool,
body.bos-publisher-v-sheet .bos-publisher .bos-pub-quick .publisher-tools-tab {
  border-radius: 11px !important;
}

body.bos-publisher-v-sheet .bos-publisher .bos-pub-types {
  margin: 8px 12px 0;
  padding: 8px;
  border: 1px solid var(--bos-pub-line);
  border-radius: 14px;
  background: #fafbfc;
}

body.bos-publisher-v-sheet .bos-publisher .publisher-footer {
  margin-top: 10px;
  padding: 12px 12px 14px !important;
  border-top: 0 !important;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}

body.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons {
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bos-pub-line);
  box-shadow: 0 8px 24px -16px rgba(20, 24, 32, 0.18);
}

body.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons .btn-group .btn,
body.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons > .btn.btn-light,
body.bos-publisher-v-sheet .bos-publisher .bos-pub-opts-sum {
  border: 0 !important;
  background: transparent !important;
  height: 40px;
  border-radius: 12px !important;
}

body.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons .btn-group .btn:hover,
body.bos-publisher-v-sheet .bos-publisher .bos-pub-opts-sum:hover {
  background: var(--bos-pub-soft) !important;
}

body.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons .d-grid {
  flex: 1 1 auto;
  min-width: 110px;
}

body.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons .js_publisher,
body.bos-publisher-v-sheet .bos-publisher .bos-pub-share {
  width: 100%;
  height: 40px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

body.bos-publisher-v-sheet .bos-publisher .bos-pub-opts-details {
  margin: 0 0 8px;
}

body.night-mode.bos-publisher-v-sheet .bos-publisher .bos-pub-bar,
html[data-bs-theme="dark"].bos-publisher-v-sheet .bos-publisher .bos-pub-bar {
  background: rgba(255, 255, 255, 0.05);
}

body.night-mode.bos-publisher-v-sheet .bos-publisher .bos-pub-types,
html[data-bs-theme="dark"].bos-publisher-v-sheet .bos-publisher .bos-pub-types {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode.bos-publisher-v-sheet .bos-publisher .publisher-footer,
html[data-bs-theme="dark"].bos-publisher-v-sheet .bos-publisher .publisher-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

body.night-mode.bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons,
html[data-bs-theme="dark"].bos-publisher-v-sheet .bos-publisher .publisher-footer-buttons {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
