@charset "UTF-8";
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafaf8;
  --bg-tertiary: #f1f1ef;
  --text-primary: #37352f;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9b9b9b;
  --border-color: #eaeaea;
  --card-bg: #ffffff;
  --hover-bg: #f5f5f4;
  --accent: #ff6b00;
  --accent-hover: #ff8533;
  --accent-light: #fff0e6;
  --danger: #d84141;
  --danger-light: #FDF0F0;
  --purple: #7C6FCD;
  --purple-light: #F0E8FA;
  --green: #2E9E6B;
  --green-light: #E6F7F0;
  --orange: #ff6b00;
  --orange-light: #fff0e6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme=dark] {
  --bg-primary: #191919;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2a2a2a;
  --text-primary: #e5e5e5;
  --text-secondary: #9b9b9b;
  --text-tertiary: #6b6b6b;
  --border-color: #3a3a3a;
  --card-bg: #2d2d2d;
  --hover-bg: #2c2c2c;
  --accent: #ff8c42;
  --accent-hover: #ffa55c;
  --accent-light: #2a2418;
  --danger: #d84141;
  --danger-light: #FDF0F0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

* {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.maintenance-banner {
  background-color: #ffeb3b;
  color: #333;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.app-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.app-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.app-header .navbar-brand img {
  height: 28px;
  width: auto;
}
.app-header .logo-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 0;
}
.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  line-height: 1;
}
.burger-btn:hover {
  background-color: var(--hover-bg);
}
.burger-btn svg {
  display: block;
}

.search-wrapper {
  position: relative;
}
.search-wrapper .global-search {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  width: 240px;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.search-wrapper .global-search:focus {
  outline: none;
  border-color: var(--accent);
}
.search-wrapper .global-search::placeholder {
  color: var(--text-tertiary);
}
.search-wrapper .search-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  pointer-events: none;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}
.theme-toggle:hover {
  background-color: var(--hover-bg);
  color: var(--text-primary);
}

.user-menu {
  position: relative;
  cursor: pointer;
}
.user-menu .user-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}
.user-menu .user-trigger:hover {
  background-color: var(--hover-bg);
}
.user-menu .user-avatar {
  width: 32px;
  height: 32px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}
.user-menu .user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}
.user-menu .dropdown-arrow {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.app-layout {
  display: flex;
  min-height: calc(100vh - 57px);
}

.app-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

html, body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
}

.center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center-box {
  max-width: 500px;
  width: 100%;
}

.app-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-link:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 12px;
  background: var(--bg-secondary, #fff);
  box-shadow: 0 10px 30px regba(0, 0, 0, 0.1);
}

.app-sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0.75rem;
  overflow-y: auto;
  flex-shrink: 0;
  position: relative;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav .nav-item {
  margin-bottom: 2px;
}
.sidebar-nav .nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.sidebar-nav .nav-item a:hover {
  background-color: var(--hover-bg);
  color: var(--text-primary);
}
.sidebar-nav .nav-item a.active {
  background-color: var(--accent-light);
  color: var(--accent);
}

.nav-icon {
  font-size: 1.1rem;
}

.categories-list {
  margin-top: 0.25rem;
  padding: 0;
}

.category-wrapper {
  margin-bottom: 2px;
}

.category-item {
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}
.category-item:hover > .category-main {
  background-color: var(--hover-bg);
}
.category-item:hover .category-actions {
  opacity: 1;
}

.category-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
}
.category-main:hover {
  background-color: var(--hover-bg);
}
.category-main:hover .category-actions {
  opacity: 1;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  flex: 1;
}
.category-link:hover {
  color: var(--text-primary);
}

.category-icon {
  font-size: 1rem;
}

.category-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  color: var(--text-tertiary);
  font-size: 0.7rem;
}
.category-toggle:hover {
  color: var(--accent);
}
.category-toggle .toggle-icon {
  display: inline-block;
  transition: transform 0.2s;
}
.category-toggle.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.category-actions {
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  gap: 0.25rem;
}
.category-actions button {
  background: none;
  border: none;
  font-size: 0.7rem;
  padding: 0.2rem;
  cursor: pointer;
  color: var(--text-tertiary);
}
.category-actions button:hover {
  color: var(--accent);
}

.subcategories-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  overflow: hidden;
  display: block;
}

.subcategories-list.collapsed {
  display: none;
}

.subcategory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin: 2px 0;
}
.subcategory-item:hover {
  background-color: var(--hover-bg);
}
.subcategory-item:hover .subcategory-actions {
  opacity: 1;
}

.subcategory-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  flex: 1;
}
.subcategory-link:hover {
  color: var(--text-primary);
}

.subcategory-icon {
  font-size: 0.8rem;
}

.subcategory-actions {
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  gap: 0.25rem;
}
.subcategory-actions button {
  background: none;
  border: none;
  font-size: 0.7rem;
  padding: 0.2rem;
  cursor: pointer;
  color: var(--text-tertiary);
}
.subcategory-actions button:hover {
  color: var(--accent);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background-color: var(--hover-bg);
}
.search-result-item small {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.home-page {
  padding: 1rem 0;
}

.home-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-title-lg {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.news-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.news-empty {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  padding: 1rem 0;
}

/* ============================================
   БЛОК НОВИН / ОСТАННІ ОНОВЛЕННЯ
   ============================================ */
.news-list {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: var(--hover-bg);
}

.news-item-icon {
  font-size: 1.75rem;
}

.news-item-content {
  flex: 1;
}

.news-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.news-item-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.news-item-type {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.news-item-arrow {
  color: var(--text-tertiary);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.news-item:hover .news-item-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.news-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-tertiary);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: white;
}
.btn-accent.disabled {
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: var(--hover-bg);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-danger:hover {
  background-color: #cc0000;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 18px;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  min-width: 180px;
  z-index: 200;
  display: none;
}
.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}
.dropdown-item:hover {
  background-color: var(--hover-bg);
}
.dropdown-item.text-danger {
  color: #ff4444;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.4rem 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.modal-overlay.show {
  display: flex;
  pointer-events: all;
}

.modal-dialog {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  margin: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 501;
  pointer-events: all;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch input:checked + .slider {
  background-color: var(--accent);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color);
  border-radius: 34px;
  transition: 0.2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.emoji-select-wrapper {
  position: relative;
  display: inline-block;
}

.emoji-preview-btn {
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.emoji-preview-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.reactions-section {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.reactions-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reactions-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 0.25rem;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.15s;
}
.reaction-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}
.reaction-btn.active {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

.comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.comment-form {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.comment-input-wrapper {
  display: flex;
  flex: 1;
  gap: 0.5rem;
}
.comment-input-wrapper .form-control {
  flex: 1;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.comment-input-wrapper .form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-input-wrapper .form-control::placeholder {
  color: var(--text-tertiary);
}
.comment-input-wrapper .btn-accent {
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.user-avatar-sm {
  width: 36px;
  height: 36px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.comment-item:last-child {
  border-bottom: none;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.comment-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.comment-action-btn {
  background: none;
  border: none;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
}
.comment-action-btn:hover {
  color: var(--accent);
}
.comment-action-btn.text-danger:hover {
  color: #dc2626;
}

.replies-list {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
}

.reply-item {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.reply-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.reply-form .form-control {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}
.reply-form .form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.reply-form .btn-accent, .reply-form .btn-secondary {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.store-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(255, 107, 0, 0.1) 100%);
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.2);
}
.store-tag-sm {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
}
.store-tag::before {
  font-size: 0.7rem;
  margin-right: 0.2rem;
}

[data-theme=dark] .store-tag {
  background: linear-gradient(135deg, #2a2418 0%, rgba(255, 140, 66, 0.15) 100%);
  border-color: rgba(255, 140, 66, 0.3);
}

.comments-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.instruction-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.instruction-header {
  margin-bottom: 2rem;
  position: relative;
}

.instruction-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.instruction-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.instruction-meta:hover {
  opacity: 1;
}

.instruction-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}
.instruction-body h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.instruction-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.instruction-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}
.instruction-body p {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.instruction-body ul, .instruction-body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  list-style: revert;
}
.instruction-body ul li, .instruction-body ol li {
  margin-bottom: 0.3rem;
}
.instruction-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background-color: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.instruction-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.instruction-body figure {
  margin: 1rem 0;
}
.instruction-body figure figcaption {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 0.4rem;
}
.instruction-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.instruction-body table td, .instruction-body table th {
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
}
.instruction-body table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
}
.instruction-body code {
  background-color: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--accent);
}
.instruction-body pre {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1rem 0;
}
.instruction-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.profile-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}

.profile-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-role {
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-store {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-status-btn {
  font-size: 0.85rem;
}

.materials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .app-sidebar {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    height: calc(100vh - 57px);
    z-index: 300;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .app-sidebar.open {
    display: block;
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 299;
  }
  .sidebar-overlay.show {
    display: block;
  }
  .app-content {
    padding: 1rem;
  }
  .app-header {
    padding: 0.75rem 1rem;
  }
  .search-wrapper {
    display: none;
  }
  .burger-btn {
    padding-top: 0.75rem;
    display: flex;
  }
  .app-cards-grid {
    grid-template-columns: 1fr;
  }
  .user-name {
    display: none;
  }
  .breadcrumbs-bar {
    display: none;
  }
}
@media (max-width: 480px) {
  .app-header {
    padding: 0.5rem 0.75rem;
  }
  .app-content {
    padding: 0.75rem;
  }
}
@media (min-width: 769px) {
  .burger-btn {
    display: none;
  }
  .sidebar-overlay {
    display: none !important;
  }
}
.tiptap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.tiptap-toolbar .toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  border-right: 1px solid var(--border-color);
}
.tiptap-toolbar .toolbar-group:last-child {
  border-right: none;
}
.tiptap-toolbar button, .tiptap-toolbar select {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all 0.15s;
}
.tiptap-toolbar button:hover, .tiptap-toolbar select:hover {
  background: var(--hover-bg);
  color: var(--accent);
}
.tiptap-toolbar button.is-active, .tiptap-toolbar select.is-active {
  background: var(--accent-light);
  color: var(--accent);
}
.tiptap-toolbar select {
  background: var(--bg-tertiary);
}
.tiptap-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.tiptap-toolbar label input[type=color] {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-primary);
}
.tiptap-toolbar label input[type=color]:hover {
  border-color: var(--accent);
}

.tiptap-editor-content {
  min-height: 400px;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tiptap-editor-content:focus {
  outline: none;
}
.tiptap-editor-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}
.tiptap-editor-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  color: var(--text-primary);
}
.tiptap-editor-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text-primary);
}
.tiptap-editor-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text-primary);
}
.tiptap-editor-content p {
  margin: 0.5rem 0;
  color: var(--text-primary);
}
.tiptap-editor-content ul, .tiptap-editor-content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.tiptap-editor-content ul {
  list-style: disc outside;
}
.tiptap-editor-content ol {
  list-style: decimal outside;
}
.tiptap-editor-content ul ul,
.tiptap-editor-content ol ul {
  list-style-type: circle;
}
.tiptap-editor-content ul ul ul,
.tiptap-editor-content ol ul ul {
  list-style-type: square;
}
.tiptap-editor-content ol ol,
.tiptap-editor-content ul ol {
  list-style-type: lower-alpha;
}
.tiptap-editor-content li {
  margin: 0.2rem 0;
}
.tiptap-editor-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.tiptap-editor-content code {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.tiptap-editor-content pre {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.tiptap-editor-content pre code {
  background: none;
  padding: 0;
}
.tiptap-editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  padding: 0.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}
.tiptap-editor-content img.ProseMirror-selectednode {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.tiptap-editor-content img[style] {
  display: block;
}
.tiptap-editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.tiptap-editor-content table td, .tiptap-editor-content table th {
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
}
.tiptap-editor-content table th {
  background: var(--bg-tertiary);
  font-weight: 600;
}
.tiptap-editor-content hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid var(--border-color);
}
.tiptap-editor-content .has-text-align-left {
  text-align: left;
}
.tiptap-editor-content .has-text-align-center {
  text-align: center;
}
.tiptap-editor-content .has-text-align-right {
  text-align: right;
}
.tiptap-editor-content .has-text-align-justify {
  text-align: justify;
}
.tiptap-editor-content a {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}
.tiptap-editor-content a:hover {
  color: var(--accent-hover);
}
.tiptap-editor-content strong, .tiptap-editor-content b {
  font-weight: 700;
  color: inherit;
}
.tiptap-editor-content em, .tiptap-editor-content i {
  font-style: italic;
  color: inherit;
}
.tiptap-editor-content u {
  text-decoration: underline;
  color: inherit;
}
.tiptap-editor-content s, .tiptap-editor-content strike, .tiptap-editor-content del {
  text-decoration: line-through;
  color: inherit;
}
.tiptap-editor-content mark {
  background-color: #ffeb3b;
  padding: 0 2px;
  border-radius: 3px;
  color: #000;
}
.tiptap-editor-content span[style*=color],
.tiptap-editor-content span[color],
.tiptap-editor-content [style*=color] {
  display: inline;
}
.tiptap-editor-content span[style*=background-color],
.tiptap-editor-content [style*=background-color] {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
}
.tiptap-editor-content .highlight {
  background-color: #fff59d;
  padding: 0 2px;
  border-radius: 3px;
}
.tiptap-editor-content [style] {
  display: inline;
}
.tiptap-editor-content ::selection {
  background: var(--accent-light);
  color: var(--accent);
}

.instruction-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.instruction-body h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}
.instruction-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}
.instruction-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
}
.instruction-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.5rem 0;
}
.instruction-body ul, .instruction-body ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.instruction-body ul {
  list-style: disc outside;
}
.instruction-body ol {
  list-style: decimal outside;
}
.instruction-body ul ul,
.instruction-body ol ul {
  list-style-type: circle;
}
.instruction-body ul ul ul,
.instruction-body ol ul ul {
  list-style-type: square;
}
.instruction-body ol ol,
.instruction-body ul ol {
  list-style-type: lower-alpha;
}
.instruction-body li {
  margin: 0.2rem 0;
}
.instruction-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.instruction-body code {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
}
.instruction-body pre {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.instruction-body pre code {
  background: none;
  padding: 0;
}
.instruction-body img {
  max-width: 100%;
  height: auto;
  display: block;
  padding: 0.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.instruction-body img[style] {
  display: block;
}
.instruction-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.instruction-body table td, .instruction-body table th {
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
}
.instruction-body table th {
  background: var(--bg-tertiary);
  font-weight: 600;
}
.instruction-body strong, .instruction-body b {
  font-weight: 700;
}
.instruction-body em, .instruction-body i {
  font-style: italic;
}
.instruction-body u {
  text-decoration: underline;
}
.instruction-body s, .instruction-body strike, .instruction-body del {
  text-decoration: line-through;
}
.instruction-body mark {
  background-color: #ffeb3b;
  padding: 0 2px;
  border-radius: 3px;
  color: #000;
}
.instruction-body .highlight {
  background-color: #fff59d;
  padding: 0 2px;
  border-radius: 3px;
}
.instruction-body span[style*=color],
.instruction-body [style*=color] {
  display: inline;
}
.instruction-body span[style*=background-color],
.instruction-body [style*=background-color] {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
}
.instruction-body a {
  color: var(--accent);
  text-decoration: underline;
}

.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: var(--text-tertiary);
  pointer-events: none;
  height: 0;
}

[data-theme=dark] .tiptap-editor-content img {
  background: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}
[data-theme=dark] .tiptap-editor-content mark {
  background-color: #665c00;
  color: #ffeb3b;
}
[data-theme=dark] .tiptap-editor-content .highlight {
  background-color: #4a4500;
  color: #fff59d;
}
[data-theme=dark] .instruction-body img {
  background: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}
[data-theme=dark] .instruction-body mark {
  background-color: #665c00;
  color: #ffeb3b;
}
[data-theme=dark] .instruction-body .highlight {
  background-color: #4a4500;
  color: #fff59d;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.86);
}
.image-lightbox.show {
  display: flex;
}
.image-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .tiptap-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .tiptap-toolbar .toolbar-group {
    flex-shrink: 0;
  }
}
.crosssale-page {
  padding: 28px 32px;
  max-width: 900px;
}
@media (max-width: 680px) {
  .crosssale-page {
    padding: 16px;
  }
}

.crosssale-header {
  margin-bottom: 24px;
}
.crosssale-header__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.crosssale-header__sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.crosssale-search {
  position: relative;
  margin-bottom: 20px;
}
.crosssale-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 16px;
  pointer-events: none;
}
.crosssale-search__input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.crosssale-search__input::placeholder {
  color: var(--text-tertiary);
}
.crosssale-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-hover), 0.12);
}

.crosssale-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.crosssale-stats__pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.crosssale-stats__pill strong {
  color: var(--text-secondary);
}

.cs-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
  letter-spacing: 0.05em;
}
.cs-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.cs-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cs-card__category-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
}
.cs-card__actions {
  display: flex;
  gap: 6px;
}
.cs-card__product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cs-btn-icon {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.cs-btn-icon svg {
  width: 13px;
  height: 13px;
}
.cs-btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.cs-btn-icon--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.cs-section__label,
.cs-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-section__label::after,
.cs-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bg-primary);
}

.cs-section {
  margin-bottom: 14px;
}

.cs-script {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
  border-left: 3px solid var(--accent);
}
.cs-script--purple {
  border-left-color: var(--purple);
}
.cs-script--green {
  border-left-color: var(--green);
}

.cs-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.cs-companion {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}
.cs-companion__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cs-companion__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cs-companion__num--1 {
  background: var(--orange-light);
  color: var(--orange);
}
.cs-companion__num--2 {
  background: var(--purple-light);
  color: var(--purple);
}
.cs-companion__num--3 {
  background: var(--green-light);
  color: var(--green);
}
.cs-companion__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.cs-companion__tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--danger);
}

.cs-objection {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
  color: var(--danger);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cs-objection__q {
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-transform: uppercase;
  line-height: 1.5;
}
.cs-objection__a {
  background: var(--bg-tertiary);
  padding: 12px 13px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.65;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-left: 3px solid var(--danger);
}
.cs-objection__a-icon {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 1px;
}

.cs-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  background: none;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.cs-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.cs-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  display: none;
}
.cs-empty__icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.cs-empty.visible {
  display: block;
}

.cs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cs-modal-overlay.open {
  display: flex;
}

.cs-modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 24px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.cs-modal__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.cs-modal__group-label {
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-modal label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-modal input,
.cs-modal textarea {
  width: 100%;
  font-size: 14px;
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  resize: vertical;
  transition: border 0.2s;
}
.cs-modal input::placeholder,
.cs-modal textarea::placeholder {
  color: var(--text-secondary);
}
.cs-modal input:focus,
.cs-modal textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent), 0.1);
}
.cs-modal textarea {
  min-height: 72px;
}
.cs-modal__footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

.cs-btn-cancel {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.cs-btn-cancel:hover {
  border-color: var(--text-secondary);
}

.cs-btn-save {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cs-btn-save:hover {
  opacity: 0.88;
}

.about-page {
  max-width: 960px;
  margin: 0 auto;
}

.about-header {
  margin-bottom: 1.5rem;
}

.about-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.about-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.hero-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-body {
  padding: 1.5rem;
}

.hero-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.mission-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--accent);
}

.mission-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.mission-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mission-highlight {
  font-weight: 700;
  color: var(--accent);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.info-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.card-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  width: 50px;
  flex-shrink: 0;
}

.timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 4px;
}

.timeline-connector {
  flex: 1;
  width: 1px;
  background: var(--border-color);
  margin-top: 4px;
}

.timeline-item:last-child .timeline-connector {
  display: none;
}

.timeline-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.value-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.value-item strong {
  font-size: 0.8rem;
  display: block;
  color: var(--text-primary);
}

.value-item span {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.photo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.photo-img-wrapper {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-img {
  transform: scale(1.03);
}

.photo-caption {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.photo-caption small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 0.25rem;
}

.social-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.social-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.social-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.social-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn-tiktok {
  background: #010101;
  color: white;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.btn-website {
  background: var(--accent);
  color: white;
}

[data-theme=dark] .photo-placeholder {
  opacity: 0.7;
}
[data-theme=dark] .social-btn {
  filter: brightness(0.9);
}
[data-theme=dark] .social-btn:hover {
  filter: brightness(1);
}

@media (max-width: 768px) {
  .about-page {
    padding: 0;
  }
  .stats-row,
  .two-cols,
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .hero-img-wrapper {
    height: 160px;
  }
  .hero-body {
    padding: 1rem;
  }
  .timeline-year {
    width: 45px;
  }
}
.test-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.test-meta {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.test-hint {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0.75rem 0;
}

.test-score,
.test-score-lg {
  color: var(--text-primary);
  font-weight: 600;
}

.test-score-lg {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.test-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.test-badge-draft {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.test-option-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.test-option-row input[type=checkbox] {
  width: 18px;
  height: 18px;
}

.test-active-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.test-take-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.test-timer {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.test-timer.is-warning {
  border-color: var(--danger);
  color: var(--danger);
}

.test-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.test-choice:hover {
  background: var(--hover-bg);
}

.test-choice-review {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  border: 1px solid var(--border-color);
}

.test-choice-review.is-correct {
  background: var(--green-light);
  border-color: var(--green);
}

.test-choice-review.is-wrong {
  background: var(--danger-light);
  border-color: var(--danger);
}

.test-timeout-banner {
  background: var(--danger-light);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
}

.test-timeout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.test-timeout-overlay[hidden] {
  display: none;
}

.test-timeout-modal {
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  text-align: center;
}

.tests-table-wrap {
  overflow-x: auto;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
}

.tests-table th,
.tests-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.tests-table th {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .test-settings-grid,
  .materials-list {
    grid-template-columns: 1fr;
  }
  .test-take-header {
    flex-direction: column;
    align-items: flex-start;
  }
}/*# sourceMappingURL=main.css.map */