﻿/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a2e; line-height: 1.5; background: #f5f5f7; }

/* ========== HEADER ========== */
.header { background: #1a1a2e; color: #fff; padding: 24px 40px 20px; }
.header-top { display: flex; justify-content: space-between; align-items: flex-start; }
.header h1 { font-size: 24pt; font-weight: 800; }
.header h1 span { color: #f0a500; }
.header .subtitle { color: #999; font-size: 11pt; margin-top: 2px; }
.header .nav { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.header .nav a { color: #fff; text-decoration: none; padding: 7px 16px; border-radius: 6px; font-weight: 600; font-size: 10pt; background: rgba(255,255,255,0.1); transition: background 0.2s; }
.header .nav a:hover { background: rgba(255,255,255,0.2); }
.header .nav a.active { background: #f0a500; color: #1a1a2e; }

.user-indicator { font-size: 10pt; color: #999; text-align: right; white-space: nowrap; }
.user-indicator strong { color: #f0a500; }
.user-indicator a { color: #f0a500; text-decoration: none; }
.user-indicator a:hover { text-decoration: underline; }

/* ========== CONTAINER ========== */
.container { max-width: 1400px; margin: 0 auto; padding: 28px 24px 60px; }

/* ========== FLASH MESSAGES ========== */
.flash { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 10pt; }
.flash-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* ========== LEVEL SECTIONS ========== */
.level { margin-bottom: 32px; }
.level-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.level-badge { padding: 5px 14px; border-radius: 6px; font-weight: 700; font-size: 9pt; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-year { background: #1a1a2e; }
.badge-quarter { background: #2d8a4e; }
.badge-month { background: #d94040; }
.badge-activity { background: #6c757d; }
.level-header h2 { font-size: 15pt; font-weight: 700; }
.level-header .period { font-size: 10pt; color: #888; margin-left: auto; }
.level-header .period a { color: #3a7bd5; text-decoration: none; }
.level-header .period a:hover { text-decoration: underline; }

/* ========== COLLAPSIBLE BRAND SECTIONS ========== */
.brand-list { display: flex; flex-direction: column; gap: 10px; }
.brand-section { background: #fff; border-radius: 10px; border: 1px solid #e4e4e8; overflow: hidden; }
.brand-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.brand-header-bar:hover { background: #f9f9fb; }
.brand-section.expanded .brand-header-bar { border-bottom: 1px solid #e4e4e8; }
.brand-header-left { display: flex; align-items: center; gap: 10px; }
.brand-expand-icon { font-size: 8pt; color: #999; transition: color 0.2s; width: 12px; }
.brand-section.expanded .brand-expand-icon { color: #333; }
.brand-header-title { font-weight: 700; font-size: 11pt; }
.brand-header-sub { font-size: 8.5pt; color: #888; font-weight: 400; }
.brand-header-count { font-size: 8.5pt; color: #999; }

/* Brand color accents on the header bar */
.brand-honeyera .brand-header-bar { border-left: 4px solid #d4880f; }
.brand-tidyteds .brand-header-bar { border-left: 4px solid #3a7bd5; }
.brand-beedecor .brand-header-bar { border-left: 4px solid #7c5cbf; }
.brand-ai .brand-header-bar { border-left: 4px solid #2d8a4e; }

.brand-goals { padding: 0; }
.brand-goals.hidden { display: none; }

/* ========== GOAL CARDS (one per row) ========== */
.goal-card { border-bottom: 1px solid #f0f0f2; }
.goal-card:last-child { border-bottom: none; }
.goal-card-top { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; }
.goal-card-content { flex: 1; }
.goal-text { font-size: 9.5pt; color: #333; font-weight: 500; }
.goal-meta { display: flex; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.goal-measure, .goal-deadline { font-size: 8pt; color: #999; }
.goal-measure::before { content: "Measure: "; font-weight: 600; color: #bbb; }
.goal-deadline { color: #d94040; font-weight: 600; }
.goal-deadline::before { content: "Due: "; }
.goal-card .comment-section { padding: 0 16px 12px; }

/* ========== OWNER FILTER BAR ========== */
.owner-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.filter-label {
  font-size: 8pt;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
  opacity: 0.5;
}
.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #999;
  border-radius: 1px;
}
.filter-icon::before { top: 1px; width: 12px; height: 2px; }
.filter-icon::after { top: 5px; width: 8px; height: 2px; }
.filter-icon span {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 2px;
  background: #999;
  border-radius: 1px;
}
.filter-group {
  display: flex;
  background: #eeeef0;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.filter-chip {
  padding: 5px 16px;
  border: none;
  border-radius: 6px;
  font-size: 8.5pt;
  font-weight: 600;
  color: #777;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.filter-chip:hover { color: #444; background: rgba(255,255,255,0.45); }
.filter-chip.active {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}
.filter-chip.active:hover { background: #fff; color: #1a1a2e; }
.filter-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 7.5pt;
  font-weight: 700;
  color: #bbb;
  min-width: 14px;
  text-align: center;
}
.filter-chip.active .filter-count { color: #999; }

/* ========== WEEKLY BADGE ========== */
.badge-week { background: #e67e22; }
.badge-upcoming { background: #3a7bd5; }
.badge-personal { background: #9b59b6; }
.badge-daily { background: #16a085; }
.badge-scheduled { background: #7f8c8d; }

/* ========== PERSONAL LIST ACCENT ========== */
.personal-list { border-left: 3px solid #9b59b6; }

/* ========== DAILY SCHEDULE ========== */
.daily-list { border-left: 3px solid #16a085; }
.daily-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto 120px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f2;
}
.daily-item:last-of-type { border-bottom: 1px solid #e4e4e8; }
.daily-item-wrapper { border-bottom: 1px solid #f0f0f2; }
.daily-item-wrapper:last-of-type { border-bottom: 1px solid #e4e4e8; }
.daily-item-wrapper .daily-item { border-bottom: none; }
.daily-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #16a085;
}
.daily-date-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.date-picker {
  padding: 6px 10px;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  font-size: 9pt;
  font-family: inherit;
  color: #333;
  background: #f9f9fb;
  cursor: pointer;
  min-width: 115px;
}
.date-picker:focus { border-color: #16a085; outline: none; }
.date-picker:hover { border-color: #16a085; background: #f0f0f2; }
.date-overdue .date-picker { border-color: #e74c3c; background: #fdf2f2; color: #c0392b; }
.date-today .date-picker { border-color: #16a085; background: #e8f8f5; color: #16a085; font-weight: 600; }
.date-future .date-picker { border-color: #7f8c8d; background: #f5f5f5; color: #7f8c8d; }
.date-display { font-size: 9pt; color: #888; padding: 4px 8px; }
.daily-item-actions { display: flex; align-items: center; gap: 6px; }
.daily-delete {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  font-size: 14pt;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: all 0.2s;
}
.daily-delete:hover { color: #d94040; border-color: #f5c2c7; background: #fff5f5; }
.daily-done { text-decoration: line-through; color: #999; }
.daily-completed { background: #f9f9fb; }
.future-item { background: #fafafa; grid-template-columns: 1fr auto auto 120px auto; }
.future-item .daily-check { display: none; }
.future-list { border-left: 3px solid #7f8c8d; }
.daily-add-form .add-form-row { display: flex; gap: 10px; align-items: center; }
.daily-add-form input[type="date"] { width: 140px; }
.daily-add-form input[type="text"] { flex: 1; }

/* Daily Search Bar */
.daily-search-bar {
  position: relative;
  margin-bottom: 16px;
  max-width: 400px;
}
.daily-search-bar input {
  width: 100%;
  padding: 10px 40px 10px 36px;
  font-size: 10pt;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.daily-search-bar input:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}
.daily-search-bar input::placeholder { color: #999; }
.daily-search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12pt;
  color: #999;
  pointer-events: none;
}
.daily-search-bar .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ddd;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12pt;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.daily-search-bar .search-clear:hover { background: #ccc; }
.daily-search-bar .search-clear.hidden { display: none; }
.daily-no-results {
  padding: 16px;
  text-align: center;
  color: #888;
  font-size: 10pt;
  background: #f9f9fb;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Daily Categories */
.daily-categories-container { display: flex; flex-direction: column; gap: 20px; }
.daily-category-section { }
.daily-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #f9f9fb;
  border-radius: 6px;
  border-left: 4px solid #ccc;
}
.category-color-picker {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.category-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.category-color-picker::-webkit-color-swatch { border: none; border-radius: 50%; }
.daily-category-name {
  font-weight: 700;
  font-size: 10pt;
  color: #333;
}
.editable-category {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.editable-category:hover { background: #e4e4e8; }
.category-name-input {
  font-weight: 700;
  font-size: 10pt;
  padding: 2px 6px;
  border: 1px solid #16a085;
  border-radius: 4px;
  outline: none;
  width: 150px;
}
.daily-category-count {
  font-size: 8.5pt;
  color: #888;
  background: #e4e4e8;
  padding: 2px 8px;
  border-radius: 10px;
}
.category-delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #ccc;
  font-size: 16pt;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}
.category-delete-btn:hover { color: #e74c3c; }
.category-select {
  padding: 4px 8px;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  font-size: 8.5pt;
  font-family: inherit;
  color: #555;
  background: #f9f9fb;
  cursor: pointer;
  min-width: 90px;
}
.category-select:focus { outline: none; }
.category-select:hover { background: #f0f0f2; }
.daily-add-section { margin-top: 10px; }
.daily-add-form select {
  padding: 8px 12px;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  font-size: 9pt;
  font-family: inherit;
  background: #f9f9fb;
  cursor: pointer;
  min-width: 100px;
}

/* Daily task content */
.daily-task-content { flex: 1; min-width: 0; }

/* Daily Comments Button */
.daily-comment-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  background: #f9f9fb;
  color: #888;
  font-size: 8.5pt;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.daily-comment-btn:hover { border-color: #16a085; color: #16a085; background: #e8f8f5; }
.daily-comment-btn.has-comments { border-color: #f0a500; color: #d4920e; background: #fef9e7; }
.daily-comment-btn.has-comments:hover { border-color: #d4920e; background: #fdf3d0; }
.daily-comment-btn.active { border-color: #16a085; color: #16a085; background: #d5f5e3; }
.comment-icon { font-size: 12pt; line-height: 1; }
.comment-count { font-weight: 600; }

/* Daily Comments Panel */
.daily-comments-panel {
  background: #f9f9fb;
  border-top: 1px solid #e4e4e8;
  padding: 16px;
}
.daily-comments-panel.hidden { display: none; }
.daily-comments-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.daily-comments-list:empty::before {
  content: "No comments yet. Add one below.";
  color: #999;
  font-size: 9pt;
  font-style: italic;
}
.daily-comment-item {
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}
.daily-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.daily-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.daily-comment-author {
  font-weight: 600;
  font-size: 9pt;
  color: #333;
}
.daily-comment-date {
  font-size: 8pt;
  color: #999;
}
.daily-comment-actions {
  display: flex;
  gap: 8px;
}
.comment-edit-btn, .comment-delete-btn {
  background: none;
  border: none;
  font-size: 8pt;
  color: #999;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.15s;
}
.comment-edit-btn:hover { color: #16a085; background: #e8f8f5; }
.comment-delete-btn:hover { color: #e74c3c; background: #fdf2f2; }
.daily-comment-text {
  font-size: 11pt;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  word-break: break-word;
}
.daily-comment-text p { margin: 0 0 8px 0; }
.daily-comment-text p:last-child { margin-bottom: 0; }
.daily-comment-text ul, .daily-comment-text ol {
  margin: 8px 0;
  padding-left: 24px;
}
.daily-comment-text li { margin: 4px 0; }

/* Edit mode for comments */
.comment-edit-form {
  margin-top: 8px;
}
.comment-edit-form .wysiwyg-editor {
  border-radius: 6px;
  min-height: 60px;
}
.comment-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.comment-save-btn {
  padding: 6px 14px;
  background: #16a085;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 8.5pt;
  font-weight: 600;
  cursor: pointer;
}
.comment-save-btn:hover { background: #138d75; }
.comment-cancel-btn {
  padding: 6px 14px;
  background: #f0f0f2;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 8.5pt;
  cursor: pointer;
}
.comment-cancel-btn:hover { background: #e4e4e8; }
.daily-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* WYSIWYG Toolbar */
.wysiwyg-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #f5f5f7;
  border: 1px solid #e4e4e8;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.wysiwyg-toolbar button {
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 9pt;
  cursor: pointer;
  transition: all 0.15s;
}
.wysiwyg-toolbar button:hover { background: #e4e4e8; border-color: #ccc; }
.toolbar-divider {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 4px;
}
.toolbar-upload-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 9pt;
  cursor: pointer;
  transition: all 0.15s;
}
.toolbar-upload-btn:hover { background: #e8f8f5; border-color: #16a085; color: #16a085; }

/* WYSIWYG Editor */
.wysiwyg-editor {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #e4e4e8;
  border-radius: 0 0 6px 6px;
  font-family: inherit;
  font-size: 9.5pt;
  line-height: 1.5;
  background: #fff;
  overflow-y: auto;
  max-height: 200px;
}
.wysiwyg-editor:focus {
  border-color: #16a085;
  outline: none;
}
.wysiwyg-editor:empty:before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
}
.wysiwyg-editor ul, .wysiwyg-editor ol {
  margin: 8px 0;
  padding-left: 24px;
}
.wysiwyg-editor li { margin: 4px 0; }

.daily-comment-form .comment-form-actions {
  margin-top: 8px;
}
.submit-comment-btn {
  padding: 8px 20px;
  background: #16a085;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-comment-btn:hover { background: #138d75; }

/* Comment form actions */
.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.image-upload-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f0f0f2;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  font-size: 8.5pt;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.image-upload-btn:hover { background: #e4e4e8; border-color: #ccc; }
.upload-icon { font-size: 12pt; }
.image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 8px;
  background: #e8f8f5;
  border: 2px solid #16a085;
  border-radius: 6px;
}
.image-preview.hidden { display: none; }
.image-preview img {
  max-width: 80px;
  max-height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #16a085;
}
.image-name {
  font-size: 8.5pt;
  color: #16a085;
  font-weight: 500;
}
.remove-image {
  background: #fff;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  font-size: 12pt;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.remove-image:hover { background: #e74c3c; color: #fff; }

/* Comment images */
.daily-comment-image {
  margin-top: 8px;
  max-width: 100%;
}
.daily-comment-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 6px;
  border: 1px solid #e4e4e8;
  cursor: pointer;
  transition: transform 0.2s;
}
.daily-comment-image img:hover { transform: scale(1.02); }

/* Image lightbox */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}
.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30pt;
  cursor: pointer;
}

/* ========== WEEKLY FLAT LIST ========== */
.weekly-list {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4e4e8;
  overflow: hidden;
}
.weekly-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f2;
}
.weekly-item:last-of-type { border-bottom: 1px solid #e4e4e8; }
.weekly-item-wrapper { border-bottom: 1px solid #f0f0f2; }
.weekly-item-wrapper:last-of-type { border-bottom: 1px solid #e4e4e8; }
.weekly-item-wrapper .weekly-item { border-bottom: none; }
.weekly-item-text { font-size: 11pt; color: #333; font-weight: 500; }
.editable-title { cursor: text; border-radius: 4px; padding: 2px 4px; margin: -2px -4px; transition: background 0.15s; }
.editable-title:hover { background: #f0f0f2; }
.date-added { font-size: 9pt; color: #666; white-space: nowrap; min-width: 50px; text-align: center; }
.inline-edit-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #3a7bd5;
  border-radius: 4px;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: #333;
  outline: none;
  background: #fff;
}
.weekly-item-actions { display: flex; align-items: center; gap: 6px; }
.weekly-delete {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  font-size: 14pt;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: all 0.2s;
}
.weekly-delete:hover { color: #d94040; border-color: #f5c2c7; background: #fff5f5; }
.owner-select {
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 8.5pt;
  color: #555;
  cursor: pointer;
  outline: none;
  min-width: 90px;
  background: #f9f9fb;
}
.owner-select:focus { border-color: #3a7bd5; }

/* ---- Personal weekly items (simpler layout for My Weekly) ---- */
.personal-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f2;
}
.personal-item:last-of-type { border-bottom: 1px solid #e4e4e8; }

/* ---- Multi-owner chips ---- */
.owner-chips { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.owner-chip {
  padding: 3px 12px;
  border: 1px solid #e4e4e8;
  border-radius: 12px;
  font-size: 9pt;
  font-weight: 600;
  color: #888;
  background: #f9f9fb;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.owner-chip:hover { border-color: #3a7bd5; color: #3a7bd5; background: #f0f5ff; }
.owner-chip.active { background: #3a7bd5; color: #fff; border-color: #3a7bd5; }
.owner-chip.active:hover { background: #2d6bc4; border-color: #2d6bc4; }
.subtask-owner-chips .owner-chip { padding: 1px 8px; font-size: 7.5pt; }
.weekly-empty { padding: 24px 16px; text-align: center; font-size: 9.5pt; color: #bbb; font-style: italic; }

/* ---- Subtask toggle button ---- */
.subtask-toggle {
  background: none;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 9pt;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}
.subtask-toggle:hover { background: #f5f5f7; color: #333; border-color: #ccc; }
.subtask-arrow {
  display: inline-block;
  font-size: 8pt;
  margin-right: 3px;
  transition: transform 0.2s;
  vertical-align: middle;
}
.add-subtask-btn {
  background: none;
  border: 1px solid #2d8a4e;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 9pt;
  font-weight: 600;
  color: #2d8a4e;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.add-subtask-btn:hover { background: #2d8a4e; color: #fff; }

/* ---- Subtask section ---- */
.subtask-section { background: #f9f9fb; border-top: 1px solid #f0f0f2; }
.subtask-section.hidden { display: none; }
.subtask-list { padding: 0; }
.subtask-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 40px;
  border-bottom: 1px solid #f0f0f2;
}
.subtask-item:last-child { border-bottom: none; }
.subtask-check {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #2d8a4e;
}
.subtask-text { font-size: 9pt; color: #555; }
.subtask-done { text-decoration: line-through; color: #bbb; }
.subtask-owner { min-width: 70px; font-size: 8pt; }
.subtask-delete {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ddd;
  font-size: 12pt;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  transition: all 0.2s;
}
.subtask-delete:hover { color: #d94040; border-color: #f5c2c7; background: #fff5f5; }
.subtask-add-form {
  display: flex;
  gap: 6px;
  padding: 8px 16px 10px 40px;
}
.subtask-add-form input {
  flex: 1;
  padding: 5px 10px;
  border: 1px solid #e4e4e8;
  border-radius: 5px;
  font-size: 8.5pt;
  outline: none;
  background: #fff;
}
.subtask-add-form input:focus { border-color: #3a7bd5; }
.subtask-add-form button {
  padding: 5px 12px;
  background: #e4e4e8;
  color: #555;
  border: none;
  border-radius: 5px;
  font-size: 8pt;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.subtask-add-form button:hover { background: #d0d0d4; color: #333; }
.weekly-add-form {
  padding: 12px 16px;
  background: #f9f9fb;
}
.add-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.weekly-add-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 9.5pt;
  outline: none;
}
.weekly-add-form input:focus { border-color: #3a7bd5; }
.weekly-add-form button[type="submit"] {
  padding: 8px 18px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 9pt;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.weekly-add-form button[type="submit"]:hover { background: #2a2a4e; }

/* ---- Upcoming week items ---- */
.upcoming-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f2;
}
.upcoming-item:last-of-type { border-bottom: 1px solid #e4e4e8; }
.upcoming-item-actions { display: flex; align-items: center; gap: 6px; }
.promote-btn {
  padding: 3px 10px;
  background: #fff;
  border: 1px solid #3a7bd5;
  border-radius: 4px;
  font-size: 8pt;
  font-weight: 600;
  color: #3a7bd5;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.promote-btn:hover { background: #3a7bd5; color: #fff; }
.upcoming-list { border-left: 3px solid #3a7bd5; }

/* ---- Refine with AI button ---- */
.refine-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 9pt;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.refine-btn:hover { background: linear-gradient(135deg, #5b4cdb, #8b82f0); }
.refine-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.refine-loading { animation: refine-pulse 1.2s ease-in-out infinite; }
@keyframes refine-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- SMART suggestions panel ---- */
.smart-suggestions {
  background: #fff;
  border: 1px solid #e4e4e8;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 14px 16px;
}
.smart-suggestions.hidden { display: none; }
.smart-header {
  font-size: 9pt;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}
.smart-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: #f9f9fb;
  border: 2px solid #e4e4e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.smart-suggestion:hover { border-color: #a29bfe; background: #f5f3ff; }
.smart-suggestion.selected { border-color: #6c5ce7; background: #ede9ff; }
.smart-suggestion-text { flex: 1; font-size: 9.5pt; color: #333; line-height: 1.4; }
.smart-edit-btn {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  font-size: 8pt;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.smart-edit-btn:hover { background: #f5f5f7; border-color: #ccc; color: #1a1a2e; }
.smart-dismiss {
  display: block;
  margin-top: 8px;
  padding: 6px 14px;
  background: none;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 8.5pt;
  color: #999;
  cursor: pointer;
  transition: all 0.15s;
}
.smart-dismiss:hover { background: #f5f5f7; color: #555; border-color: #ccc; }
.smart-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5pt;
  color: #6c5ce7;
  padding: 8px 0;
}
.smart-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e4e4e8;
  border-top-color: #6c5ce7;
  border-radius: 50%;
  animation: smart-spin 0.8s linear infinite;
}
@keyframes smart-spin {
  to { transform: rotate(360deg); }
}
.smart-error {
  font-size: 9pt;
  color: #d94040;
  padding: 6px 0;
}

/* ---- Completed section ---- */
.completed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}
.completed-header:hover .brand-expand-icon { color: #333; }
.completed-header h3 { font-size: 11pt; font-weight: 600; color: #888; }
.completed-count {
  background: #e4e4e8;
  color: #888;
  font-size: 8pt;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.completed-list { margin-top: 6px; }

/* ---- Completed task rows ---- */
.completed-task { border-bottom: 1px solid #f0f0f2; }
.completed-task:last-child { border-bottom: none; }
.completed-task-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.completed-task-row:hover { opacity: 0.85; }
.completed-task-row .weekly-item-text { text-decoration: line-through; }
.completed-task-main { flex: 1; }
.completed-task-meta {
  display: flex;
  gap: 12px;
  margin-top: 3px;
  flex-wrap: wrap;
  font-size: 8pt;
}
.completed-date { color: #2d8a4e; font-weight: 600; }
.completed-owner { color: #3a7bd5; }
.completed-by { color: #888; }
.completed-comments { color: #856d0a; }

/* ---- Expanded detail ---- */
.completed-detail {
  padding: 0 16px 14px;
  background: #f9f9fb;
  border-top: 1px solid #f0f0f2;
}
.completed-detail.hidden { display: none; }
.completed-detail-grid {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.completed-detail-item { display: flex; flex-direction: column; gap: 2px; }
.completed-comments-section { padding-top: 4px; }
.completed-comments-section .plan-header { margin-bottom: 6px; }

.owner-label { font-size: 8.5pt; color: #999; min-width: 60px; }

/* ========== YEARLY TARGETS TABLE ========== */
.table-wrap { overflow-x: auto; }
.targets-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e4e4e8; }
.targets-table th { background: #1a1a2e; color: #fff; text-align: left; padding: 8px 12px; font-weight: 600; font-size: 8.5pt; white-space: nowrap; }
.targets-table td { padding: 7px 12px; border-bottom: 1px solid #eee; }
.targets-table tr:nth-child(even) td { background: #fafafa; }
.targets-table tr:last-child td { border-bottom: none; }
.targets-table .status-cell { text-align: center; }
.targets-table .comment-cell { text-align: center; white-space: nowrap; }
.comment-row td { padding: 0 12px 12px; background: #fafafa; }
.comment-row.hidden { display: none; }

/* ========== STATUS SELECT ========== */
.status-select {
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 9.5pt;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 100px;
}
.status-select:focus { border-color: #3a7bd5; }
.status-pending { background: #f0f0f2; color: #999; }
.status-progress { background: #fff3cd; color: #856d0a; }
.status-completed { background: #d4edda; color: #155724; }
.status-finished { background: #6c757d; color: #fff; }

/* ========== COLUMN REORDER ARROWS ========== */
.th-inner { display: flex; align-items: center; gap: 4px; }
.th-inner span { flex: 1; }
.col-arrow {
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 12pt;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 1;
  transition: all 0.15s;
}
.col-arrow:hover { background: rgba(255,255,255,0.3); color: #fff; }
.actions-cell { white-space: nowrap; }

/* ========== CLICKABLE GOAL ROWS ========== */
.goal-clickable { cursor: pointer; transition: background 0.15s; }
.goal-clickable:hover td { background: #f5f5f7; }
.goal-clickable.expanded td { background: #eef1f6; border-bottom-color: transparent; }
.row-expand-hint {
  display: inline-block;
  font-size: 7pt;
  color: #bbb;
  margin-left: 6px;
  transition: transform 0.2s, color 0.2s;
  vertical-align: middle;
}
.goal-clickable:hover .row-expand-hint { color: #666; }
.goal-clickable.expanded .row-expand-hint { color: #3a7bd5; }

/* ========== EXPAND / DETAIL PANEL ========== */
.detail-row td { padding: 0; background: #f9f9fb; border-bottom: 1px solid #e4e4e8; }
.detail-row.hidden { display: none; }
.detail-panel { padding: 16px 20px 20px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e4e4e8;
}
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 8pt; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 10pt; color: #1a1a2e; font-weight: 500; }
.detail-value-target { color: #2d8a4e; font-weight: 700; }
.detail-value-deadline { color: #d94040; font-weight: 600; }
.detail-plan-section { margin-top: 4px; }
.plan-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plan-header { font-size: 9.5pt; font-weight: 700; color: #1a1a2e; margin-bottom: 0; }
.plan-edit-toggle {
  padding: 4px 14px;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 8.5pt;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.plan-edit-toggle:hover { background: #f5f5f7; border-color: #ccc; color: #1a1a2e; }

/* ---- Formatted plan display ---- */
.plan-display {
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 9.5pt;
  line-height: 1.6;
  color: #333;
  max-height: 400px;
  overflow-y: auto;
}
.plan-line-header {
  font-size: 10pt;
  font-weight: 800;
  color: #1a1a2e;
  margin-top: 14px;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 2px solid #f0a500;
  letter-spacing: 0.3px;
}
.plan-line-header:first-child { margin-top: 0; }
.plan-line-quarter {
  font-size: 9.5pt;
  font-weight: 700;
  color: #2d8a4e;
  margin-top: 10px;
  margin-bottom: 2px;
}
.plan-line-sub {
  font-size: 9.5pt;
  font-weight: 600;
  color: #3a7bd5;
  margin-top: 8px;
  margin-bottom: 2px;
}
.plan-line-bullet {
  padding-left: 16px;
  position: relative;
  margin: 1px 0;
}
.plan-line-bullet::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: #bbb;
  font-weight: 700;
}
.plan-line { margin: 1px 0; }
.plan-line-blank { height: 6px; }
.plan-empty { color: #bbb; font-style: italic; }

/* ---- Edit area ---- */
.plan-edit-area { }
.plan-textarea {
  width: 100%;
  min-height: 250px;
  padding: 10px 12px;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 9.5pt;
  line-height: 1.5;
  color: #333;
  resize: vertical;
  outline: none;
  background: #fff;
}
.plan-textarea:focus { border-color: #3a7bd5; }
.plan-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.plan-save {
  padding: 6px 16px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 9pt;
  cursor: pointer;
  transition: background 0.2s;
}
.plan-save:hover { background: #2a2a4e; }
.plan-cancel {
  padding: 6px 16px;
  background: #fff;
  color: #555;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 9pt;
  cursor: pointer;
  transition: all 0.2s;
}
.plan-cancel:hover { background: #f5f5f7; border-color: #ccc; }
.plan-status { font-size: 8.5pt; color: #888; }
.plan-saved { color: #155724; }
.plan-error { color: #842029; }

/* ========== COMMENTS ========== */
.comment-toggle {
  background: none;
  border: 1px solid #e4e4e8;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 9pt;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}
.comment-toggle:hover { background: #f5f5f7; color: #333; border-color: #ccc; }
.comment-section { margin-top: 8px; }
.comment-section.hidden { display: none; }
.comment-thread { padding: 4px 0; }
.comment { padding: 6px 0; border-bottom: 1px solid #f0f0f2; }
.comment:last-of-type { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 8px; }
.comment-author { font-weight: 600; font-size: 8.5pt; color: #1a1a2e; }
.comment-date { font-size: 7.5pt; color: #999; }
.comment-actions { margin-left: auto; display: flex; gap: 6px; }
.comment-text { font-size: 9pt; color: #333; margin-top: 4px; }
.comment-edit-input { flex: 1; padding: 4px 8px; font-size: 9pt; border: 1px solid #ddd; border-radius: 4px; margin-right: 6px; }
.comment-empty { font-size: 8.5pt; color: #bbb; font-style: italic; margin-bottom: 6px; }
.comment-form { display: flex; gap: 6px; margin-top: 8px; }
.comment-form input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 9pt;
  outline: none;
}
.comment-form input:focus { border-color: #3a7bd5; }
.comment-form button {
  padding: 6px 14px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 9pt;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.comment-form button:hover { background: #2a2a4e; }

/* ========== ACTIVITY LOG ========== */
.activity-card { background: #fff; border-radius: 10px; border: 1px solid #e4e4e8; padding: 14px; }
.activity-entry { padding: 8px 0; border-bottom: 1px solid #f0f0f2; font-size: 9.5pt; }
.activity-entry:last-child { border-bottom: none; }
.activity-user { font-weight: 600; color: #1a1a2e; }
.activity-time { font-size: 8pt; color: #999; float: right; }
.activity-action { color: #555; }
.activity-action strong { color: #333; }
.activity-empty { font-size: 9.5pt; color: #bbb; font-style: italic; padding: 16px 0; text-align: center; }
.activity-loading { font-size: 9.5pt; color: #999; text-align: center; padding: 16px 0; }

.status-label-pending { color: #999; font-weight: 600; }
.status-label-in_progress { color: #856d0a; font-weight: 600; }
.status-label-completed { color: #155724; font-weight: 600; }
.status-label-finished { color: #6c757d; font-weight: 600; }

.load-more {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: #f5f5f7;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 9.5pt;
  color: #555;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.load-more:hover { background: #eee; }

/* ========== UTILITIES ========== */
.hidden { display: none !important; }

/* ========== DIVIDER ========== */
hr.divider { border: none; border-top: 2px solid #e4e4e8; margin: 6px 0; }

/* ========== FOOTER ========== */
.footer { text-align: center; padding: 18px; font-size: 9pt; color: #aaa; margin-top: 16px; }

/* ========== LOGIN ========== */
.login-card {
  max-width: 360px;
  margin: 80px auto;
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  border: 1px solid #e4e4e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.login-card h2 { margin-bottom: 4px; font-size: 16pt; color: #1a1a2e; }
.login-subtitle { font-size: 10pt; color: #888; margin-bottom: 24px; }
.login-card input:not([type="checkbox"]) {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  font-size: 10pt;
  outline: none;
}
.login-card input:not([type="checkbox"]):focus { border-color: #f0a500; }
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5pt;
  color: #666;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #f0a500;
  cursor: pointer;
  margin: 0;
}
.login-card button {
  width: 100%;
  padding: 11px;
  background: #f0a500;
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10.5pt;
  cursor: pointer;
  transition: background 0.2s;
}
.login-card button:hover { background: #d4920e; }

/* ========== HTMX TRANSITIONS ========== */
.htmx-settling { opacity: 0.7; }
@keyframes flash-highlight {
  from { background-color: #fff3cd; }
  to { background-color: transparent; }
}
tr.htmx-added td { animation: flash-highlight 1s ease-out; }
.goal-row.htmx-added { animation: flash-highlight 1s ease-out; }

/* ========== PRINT ========== */
@media print {
  body { background: #fff; font-size: 8.5pt; }
  .header .nav { display: none; }
  .user-indicator { display: none; }
  .level { page-break-inside: avoid; }
  .status-select { border: none; -webkit-appearance: none; appearance: none; }
  .comment-toggle { display: none; }
  .comment-section { display: none; }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .header { padding: 16px; }
  .header-top { flex-direction: column; gap: 8px; }
  .header h1 { font-size: 18pt; }
  .header .nav a { font-size: 9pt; padding: 6px 12px; }
  .user-indicator { text-align: left; }
  .container { padding: 16px; }
  .targets-table { font-size: 8.5pt; }
  .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-panel { padding: 12px 14px 16px; }
  .goal-card-top { flex-direction: column; gap: 6px; }
  .goal-card-top .comment-toggle { align-self: flex-start; }
  .comment-form { flex-direction: column; }
  .comment-form button { width: 100%; padding: 10px; }
  .comment-form input { padding: 10px; }
  .status-select { min-width: 80px; padding: 6px 8px; }
}

/* ========== WYSIWYG EDITOR ========== */
.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f1f3f4;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    align-items: center;
}
.wysiwyg-toolbar button {
    padding: 4px 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wysiwyg-toolbar button:hover {
    background: #e9ecef;
}
.wysiwyg-toolbar select {
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    background: white;
    cursor: pointer;
    height: 28px;
}
.wysiwyg-toolbar .color-picker {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    background: none;
}
.wysiwyg-toolbar .toolbar-upload-btn {
    padding: 4px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wysiwyg-toolbar .toolbar-upload-btn:hover {
    background: #e9ecef;
}
.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 4px;
}
.wysiwyg-editor {
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-top: none;
    background: white;
    outline: none;
    line-height: 1.6;
}
.wysiwyg-editor:empty:before {
    content: attr(placeholder);
    color: #999;
}
.wysiwyg-editor:focus {
    border-color: #f0a500;
}
.wysiwyg-editor img {
    max-width: 100%;
    border-radius: 6px;
}
.image-preview-container {
    padding: 10px;
    border: 1px solid #ddd;
    border-top: none;
    background: #f9f9f9;
    position: relative;
}
.image-preview-container .preview-img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    object-fit: cover;
}
.image-preview-container .remove-image-btn {
    position: absolute;
    top: 5px;
    left: 175px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-preview-container .remove-image-btn:hover {
    background: #c0392b;
}
.comment-form button[type="submit"] {
    margin-top: 8px;
    padding: 8px 20px;
    background: #f0a500;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    float: right;
}
.comment-form button[type="submit"]:hover {
    background: #d4920e;
}
.comment-image img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 8px;
}

/* ========== COMMENT BODY CONTENT ========== */
.comment-body {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.comment-body ul, .comment-body ol,
.comment ul, .comment ol,
.comment-section ul, .comment-section ol,
.comment-list ul, .comment-list ol {
    margin: 8px 0 8px 0 !important;
    padding-left: 28px !important;
    list-style-position: outside !important;
}
.comment-body li, .comment li, .comment-section li, .comment-list li {
    margin: 4px 0;
}
.comment-body p, .comment p {
    margin: 6px 0;
}
.comment-body a, .comment a {
    color: #3a7bd5;
    word-break: break-all;
}
.comment-body b, .comment-body strong,
.comment b, .comment strong {
    font-weight: 600;
    color: #d4920e;
}
.comment-body img, .comment img {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
}
