/* CreateASoft brand: light surfaces · #081C30 navy text · #FF6633 coral · #0094e3 link */
.sb-module {
  font-family: AArial, 'Barlow Condensed', 'Segoe UI', Inter, sans-serif;
  color: #1e293b;
  background: linear-gradient(135deg, #DBECFA 40%, #F4F8FC 60%);
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
}

.sb-header { margin-bottom: 1rem; }
.sb-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: #081c30; }
.sb-subtitle { margin: 0.35rem 0 0; color: #64748b; font-size: 0.95rem; }
.sb-link { color: #ff6633; }
.sb-post-list, .sb-comment-list, .sb-admin-list { display: grid; gap: 1rem; }
.sb-post-card, .sb-admin-card {
  padding: 1rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  color:#333;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 28, 48, 0.05);
  font-size:0.85rem;
}

.sb-post-title { margin: 0 0 0.4rem; font-size: 0.9rem; color: #081c30;font-weight:600; line-height:1.45;}
.sb-post-link, .sb-link { color: #008BEF; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.sb-post-link:hover, .sb-link:hover { color: #333; text-decoration: underline; }
.sb-admin-card, .sb-post-meta { color: #64748b; font-size: 0.82rem; margin-bottom: 0.5rem; }
.sb-admin-card, .sb-comment-meta { color: #64748b; font-size: 0.82rem; margin-bottom: 0.5rem; }
.sb-comment-author { color: #0066b3; font-weight: 500; }
.sb-post-excerpt { color: #334155; line-height: 1.45;font-weight:500; font-size:0.85rem; }
h2.sb-post-title-detail { color: #334155; line-height: 1.45; font-weight:500; font-size: 1rem; }
.sb-post-detail .sb-post-body { line-height: 1.65; margin-top: 1rem; }
.sb-html p, .sb-html li { color: #334155; margin: 0.5rem 0; }
.sb-html ul, .sb-html ol { margin: 0.5rem 0 0.75rem 1.25rem; padding-left: 1rem; }
.sb-html h3 { color: #081c30; font-size: 1rem; margin: 0.85rem 0 0.35rem; font-weight: 600; }
.sb-html a { color: #008BEF; }
.sb-html a:hover { color: #333; }
.sb-html strong { color: #081c30; }
.sb-comment-body { line-height: 1.6; margin-top: 0.35rem; }

.sb-section-title { margin: 1.5rem 0 0.75rem; font-size: 1rem; color: #081c30; font-weight: 500; }
.sb-comment { padding: 0.85rem 0; border-top: 1px solid #e2e8f0; }
.sb-comment-form, .sb-settings { margin-top: 1.5rem; }

.sb-field { margin-bottom: 0.85rem; }
.sb-field label { display: block; margin-bottom: 0.25rem; font-size: 0.85rem; color: #475569; font-weight: 500; }
.sb-input, .sb-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #1e293b;
  padding: 0.55rem 0.65rem;
}
.sb-input:focus, .sb-textarea:focus {
  outline: none;
  border-color: #ff6633;
  box-shadow: 0 0 0 2px rgba(255, 102, 51, 0.2);
}

.sb-button {
  display: inline-block;
  border: 0;
  border-radius: 0.375rem;
  color: #fff;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size:0.85rem;
  background-color:#0094e3;
}
a:link {
  color: #0094e3;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: #0094e3;
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: #fff;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
    color: yellow;
    background-color: transparent;
}
.sb-button:hover { background: #2BB8FF; color: #fff; }
.sb-button-small { padding: 0.35rem 0.65rem; font-size: 0.85rem; margin-right: 0.35rem;background:#ff6633;color:#fff; }
a.sb-button-small { padding: 0.35rem 0.65rem; font-size: 0.85rem; margin-right: 0.35rem;background:#0094e3;color:#fff; }
.sb-button-small,.sb-button-muted { padding: 0.35rem 0.65rem; font-size: 0.85rem; margin-right: 0.35rem;background:#1ECD29;color:#fff; }
.sb-button-small:hover { padding: 0.35rem 0.65rem; font-size: 0.85rem; margin-right: 0.35rem;background:#2BB8FF;color:#fff; }
.sb-button-muted { background: #ff6633; color: #fff; font-size: 0.85rem}
a.sb-button-muted { background: #1ECD29; color: #fff; font-size: 0.85rem}
.sb-button-muted a:hover { background: #72CC76; color: #fff; font-size: 0.85rem}
a.sb-button-muted:hover { background: #72CC76; color: #fff; }
.sb-button-muted:hover { background: #FF9370; color: #fff; }
a.sb-button-danger { background: #dc2626; font-size: 0.85rem}
.sb-button-danger:hover { background: #b91c1c; }

.sb-message { display: block; margin-bottom: 0.75rem; padding: 0.65rem 0.8rem; border-radius: 0.375rem; }
.sb-message-success { background: #ecfdf5; border: 1px solid #16a34a; color: #166534; }
.sb-message-error { background: #fef2f2; border: 1px solid #dc2626; color: #991b1b; }

.sb-empty { padding: 1.5rem; text-align: center; color: #64748b; background: #ffffff; border-radius: 0.5rem; border: 1px dashed #cbd5e1; }
.sb-help { color: #64748b; font-size: 0.72rem; }

.sb-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 600;
}
.sb-badge-pending { background: #fef9c3; color: #854d0e; border: 1px solid #ca8a04; }
.sb-badge-approved { background: #ecfdf5; color: #166534; border: 1px solid #16a34a; }
.sb-badge-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #dc2626; }

.sb-admin-card-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; margin-bottom: 0.35rem;font-size:0.80rem; }
.sb-card-title { color: #081c30; font-weight: 600; font-size: 0.9rem; line-height: 1.35; }
.sb-admin-card-head strong { color: #081c30; }
.sb-admin-content { max-height: 12rem; overflow: auto; margin: 0.5rem 0; }
.sb-admin-actions { margin-top: 0.5rem; }
.sb-toolbar { margin-bottom: 1rem; }

.sb-nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;font-size:0.85rem;}
.sb-nav-links a  { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;font-size:0.85rem; color:#fff;}
.sb-nav-links a:hover  { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;font-size:0.85rem; color:#fff;background-color: #2BB8FF;}
.sb-nav-links .sb-button { text-decoration: none; }
.sb-nav-active { background: #ff6633 !important; color: #fff !important;font-size:0.85rem; }
.sb-nav-active:hover { background: #FF8860 !important; color: #fff !important;font-size:0.85rem; }
.sb-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.sb-stat-card { padding: 0.85rem 1rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; background: #ffffff; }
.sb-stat-value { font-size: 1.5rem; font-weight: 700; color: #ff6633; }
.sb-stat-label { color: #64748b; font-size: 0.82rem; margin-top: 0.2rem; }

.sb-generate-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.sb-field-inline { min-width: 10rem; margin-bottom: 0; }
.sb-input-inline { width: auto; min-width: 8rem; display: inline-block; margin-right: 0.35rem; }
.sb-ai-preview { font-size: 0.85rem; margin-top: 0.75rem; padding: 0.85rem; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 0.375rem; max-height: 14rem; overflow: auto; }
.sb-ai-preview-label { font-size: 0.85rem; font-weight: 600; color: #ff6633; margin-bottom: 0.5rem; }

a.sb-button-ai { background: #5b21b6; color: #ffffff; border: 1px solid #7c3aed; }
.sb-button-ai:hover { background: #6d28d9; color: #ffffff; }
.sb-author-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}
.sb-author-picker-inline { margin-top: 0; padding-top: 0; border-top: 0; }
.sb-author-picker-label { font-size: 0.85rem; color: #64748b; font-weight: 500; white-space: nowrap; }
.sb-author-mode { min-width: 12rem; }
.sb-custom-author { min-width: 10rem; flex: 1 1 10rem; max-width: 16rem; }

.sb-badge-draft { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-size:0.62rem; }
.sb-badge-published { background: #ecfdf5; color: #166534; border: 1px solid #16a34a; font-size:0.62rem; }
.sb-badge-archived { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; font-size:0.62rem; }

.sb-library-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sb-filter-input { width: auto; min-width: 9rem; }
.sb-library-content-wrap {
  margin: 0.75rem 0;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
}
.sb-library-content { max-height: 20rem; overflow: auto; }
.sb-library-edit {
  margin: 0.75rem 0;
  padding: 0.85rem;
  background: #fff7f3;
  border: 1px solid #ff6633;
  border-radius: 0.375rem;
}
.sb-tags-line { margin-top: 0.5rem; }
.sb-module select.sb-input option { background: #ffffff; color: #1e293b; }

.sb-public-search { margin-bottom: 1.25rem; }
.sb-public-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.sb-public-sidebar { min-width: 0; }
.sb-public-main { min-width: 0; }
.sb-sidebar-sections { display: grid; gap: 1rem; }
.sb-sidebar-section {
  padding: 0.85rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
}
.sb-sidebar-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #081c30;
  font-weight: 600;
}
.sb-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.sb-sidebar-item {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}
.sb-sidebar-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.sb-sidebar-link {
  display: block;
  color: #008BEF;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.45;
  margin-bottom: 0.2rem;
}
.sb-sidebar-link:hover { color: #333; text-decoration: underline; }
.sb-sidebar-date { color: #64748b; font-size: 0.72rem; }
.sb-sidebar-comment-meta { color: #64748b; font-size: 0.72rem; margin-bottom: 0.25rem; }
.sb-sidebar-comment-body {
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0.35rem;
  max-height: 4.6rem;
  overflow: hidden;
}
.sb-sidebar-post-link { font-size: 0.85rem;}
.sb-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
.sb-sort-bar-inline { margin-bottom: 0; }
.sb-sort-label { color: #64748b; font-size: 0.78rem; font-weight: 500; }
.sb-sort-link {
  color: #0077cc;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.sb-sort-link:hover { color: #0094e3; text-decoration: underline; }
.sb-sort-link.sb-sort-active { color: #081c30; text-decoration: underline; }
.sb-sort-sep { color: #94a3b8; font-size: 0.85rem; }
.sb-comments-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.sb-comments-header .sb-section-title { margin: 0; }
@media (max-width: 768px) {
  .sb-public-layout { grid-template-columns: 1fr; }
  .sb-public-sidebar { order: 2; }
  .sb-public-main { order: 1; }
}
.sb-ask-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 102, 51, 0.35);
  border-radius: 0.5rem;
  background: #fff7f3;
}
.sb-ask-banner-text { margin: 0; color: #334155; font-size: 0.9rem; }
.sb-ask-banner .sb-button { text-decoration: none; white-space: nowrap; }
.sb-ask-form {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
}
.sb-label-muted { color: #94a3b8; font-weight: 400; }
.sb-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.sb-captcha { margin-top: 0.25rem; }
.sb-captcha-control,
.sb-captcha-control input[type="text"] {
  color: #1e293b;
}
.sb-captcha-control input[type="text"] {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.45rem 0.55rem;
}
.sb-ask-success {
  padding: 1rem 1.1rem;
  border: 1px solid #16a34a;
  border-radius: 0.5rem;
  background: #ecfdf5;
}
.sb-ask-success-message { margin: 0 0 0.75rem; color: #166534; }
.sb-ask-success-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.sb-link-muted { color: #64748b !important; }
.sb-link-muted:hover { color: #334155 !important; }
.sb-back { margin: 0 0 1rem; }
.sb-public-search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sb-search-input { flex: 1 1 14rem; min-width: 12rem; }
.sb-active-filters { margin-top: 0.65rem; color: #64748b; font-size: 0.85rem; }
.sb-active-filters strong { color: #081c30; }
.sb-post-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0.75rem; }
a.sb-tag-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #ff6633;
  background: #fff;
  color: #ff6633;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
}
.sb-tag-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0077cc;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
}
a.sb-tag-chip:hover { background:#fff; color:#333; text-decoration: none; }
.sb-tag-chip:hover { background: #e2e8f0; color: #ff6633; text-decoration: none; }

.sb-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.sb-pagination-summary { margin: 0; color: #64748b; font-size: 0.82rem; }
.sb-pagination-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sb-pagination-status { color: #64748b; font-size: 0.82rem; padding: 0 0.35rem; }
.sb-pagination-disabled {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  color: #94a3b8;
  opacity: 0.7;
}
.sb-admin-section { margin-bottom: 2rem; }
.sb-admin-section .sb-section-title { margin-top: 0; }
