:root {
  --app-bg: #f3f8fe;
  --app-ink: #102033;
  --app-muted: #62748a;
  --app-line: #d5e4f2;
  --app-accent: #2497f2;
  --app-accent-strong: #147bd1;
  --app-accent-soft: #e8f4ff;
  --app-header-height: 64px;
}

body {
  background: var(--app-bg);
  color: var(--app-ink);
}

.auth-body {
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-shell .legal-footer {
  max-width: 720px;
  padding: 0;
  width: 100%;
}

.auth-shell .auth-panel-compact + .legal-footer {
  max-width: 460px;
}

.password-rules {
  display: grid;
  gap: 4px;
}

.password-rule {
  align-items: center;
  color: var(--app-muted);
  display: flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.35;
}

.password-rule::before {
  border: 1px solid var(--app-line);
  border-radius: 50%;
  content: "";
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.password-rule.is-valid {
  color: #198754;
}

.password-rule.is-valid::before {
  background: #198754;
  border-color: #198754;
}

.password-rule.is-invalid {
  color: #dc3545;
}

.password-rule.is-invalid::before {
  background: #dc3545;
  border-color: #dc3545;
}

.app-shell {
  padding-top: var(--app-header-height);
  padding-bottom: 72px;
}

.app-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr) 350px;
  margin: 0 auto;
  width: 100%;
}

.navbar {
  --bs-navbar-brand-padding-y: 0;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  padding-bottom: 0;
  padding-top: 0;
}

.navbar .container-fluid {
  height: 100%;
}

.navbar-logo {
  display: block;
  height: 38px;
  object-fit: contain;
  width: 202px;
}

.mobile-menu-toggle {
  border: 1px solid var(--app-line);
  color: var(--app-ink);
}

.mobile-menu-toggle .bi {
  font-size: 22px;
}

.mobile-menu {
  width: min(82vw, 340px);
}

.mobile-menu .offcanvas-body {
  padding-top: 0;
}

.mobile-menu .sidebar-sticky {
  display: grid;
  gap: 4px;
}

.mobile-menu .nav-link {
  border-radius: 8px;
  padding: 10px 12px;
}

.mobile-language-form {
  margin-top: 16px;
}

.language-select-mobile {
  height: 38px;
}

.mobile-account-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.app-content {
  min-height: calc(100vh - var(--app-header-height));
  padding: 16px 24px 24px;
  width: 100%;
}

.app-content > :not(.modal) {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: 100%;
}

.app-content > .modal {
  margin: 0;
  max-width: none;
  width: 100%;
}

.feed-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.legal-footer {
  align-items: center;
  border-top: 1px solid var(--app-line);
  color: var(--app-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--app-primary);
  text-decoration: underline;
}

.legal-page {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  margin: 0 auto;
  max-width: 860px;
  padding: 28px;
}

.legal-page h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.legal-page h2 {
  font-size: 19px;
  margin: 26px 0 8px;
}

.legal-page p {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 12px;
}

.cookie-banner {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: min(960px, calc(100vw - 32px));
  padding: 16px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1080;
}

.cookie-banner p {
  color: var(--app-muted);
  margin: 4px 0 0;
}

.cookie-banner-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.feed-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.feed-filter-bar-single {
  grid-template-columns: 1fr;
}

@media (max-width: 575.98px) {
  .feed-filter-bar {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding: 20px;
  }

  .cookie-banner {
    bottom: 76px;
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
  }
}

.app-sidebar-left,
.app-sidebar-right {
  min-height: calc(100vh - var(--app-header-height));
  border-color: var(--app-line);
  padding: 16px;
  width: 350px;
}

.app-sidebar-left {
  border-right: 1px solid var(--app-line);
}

.app-sidebar-right {
  border-left: 1px solid var(--app-line);
  min-height: 0;
}

.sidebar-sticky {
  max-height: calc(100vh - var(--app-header-height) - 32px);
  overflow-y: auto;
  padding-right: 4px;
  position: sticky;
  top: calc(var(--app-header-height) + 16px);
}

.app-sidebar-right .sidebar-sticky {
  max-height: none;
  overflow: visible;
  position: static;
  top: auto;
}

.nav-link {
  color: var(--app-ink);
  border-radius: 8px;
  margin-bottom: 4px;
  padding: 10px 12px;
}

.sidebar-sticky > .nav-link,
.sidebar-admin-group > .nav-link {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-nav-label {
  flex: 0 1 auto;
  min-width: 0;
}

.sidebar-pending-badge {
  align-items: center;
  background: #2497f2;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  justify-content: center;
  margin-left: 2px;
  min-height: 22px;
  min-width: 22px;
  padding: 0 7px;
}

.nav-link.active .sidebar-pending-badge {
  background: #0f7fd8;
  color: #fff;
}

.sidebar-publish-button {
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.sidebar-nav-icon {
  flex: 0 0 22px;
  font-size: 19px;
  line-height: 1;
  text-align: center;
}

.sidebar-admin-group {
  border-top: 1px solid var(--app-line);
  margin-top: 12px;
  padding-top: 12px;
}

.sidebar-admin-title {
  align-items: center;
  color: var(--app-muted);
  display: flex;
  font-size: 0.875rem;
  font-weight: 700;
  gap: 10px;
  padding: 8px 12px;
}

.sidebar-admin-link {
  margin-left: 0;
}

.nav-link:hover,
.nav-link.active {
  background: var(--app-accent-soft);
  color: var(--app-accent);
}

.btn-primary {
  --bs-btn-bg: var(--app-accent);
  --bs-btn-border-color: var(--app-accent);
  --bs-btn-hover-bg: var(--app-accent-strong);
  --bs-btn-hover-border-color: var(--app-accent-strong);
  --bs-btn-active-bg: var(--app-accent-strong);
  --bs-btn-active-border-color: var(--app-accent-strong);
}

.btn-outline-primary {
  --bs-btn-color: var(--app-accent);
  --bs-btn-border-color: var(--app-accent);
  --bs-btn-hover-bg: var(--app-accent);
  --bs-btn-hover-border-color: var(--app-accent);
  --bs-btn-active-bg: var(--app-accent);
  --bs-btn-active-border-color: var(--app-accent);
}

.btn {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  height: 38px;
  justify-content: center;
  min-height: 38px;
}

.btn-close {
  background-size: 14px;
  height: 38px;
  padding: 0;
  width: 38px;
}

button.nav-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
}

.card {
  border-color: var(--app-line);
  border-radius: 8px;
}

.card-body {
  padding: 20px;
}

.language-select {
  align-items: center;
  display: inline-flex;
  height: 38px;
  min-height: 38px;
  width: 70px;
  min-width: 70px;
  padding-left: 12px;
  padding-right: 34px;
  font-size: 18px;
  line-height: 1.2;
  background-position: right 10px center;
}

.language-form {
  align-items: center;
  height: 38px;
}

.identity-switcher {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  height: 38px;
  padding: 0 8px;
}

.identity-switcher .bi {
  color: var(--app-muted);
  flex: 0 0 auto;
  font-size: 16px;
}

.identity-switcher .form-select {
  border: 0;
  box-shadow: none;
  height: 34px;
  min-height: 34px;
  min-width: 190px;
  padding-left: 0;
}

.identity-switcher-mobile {
  align-items: stretch;
  border: 0;
  display: block;
  height: auto;
  margin-bottom: 16px;
  padding: 0;
}

.identity-switcher-field {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  height: 38px;
  padding: 0 8px;
}

.identity-switcher-field .form-select {
  min-width: 0;
  width: 100%;
}

.post-card,
.composer-card,
.device-card,
.auth-panel,
.profile-header {
  background: #fff;
}

.post-image-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.post-image-grid-single {
  grid-template-columns: 1fr;
}

.post-image-grid button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.post-image-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.composer-card .form-select-sm,
.composer-card .btn-sm {
  align-items: center;
  display: inline-flex;
  min-height: 38px;
}

.activity-icon {
  align-items: center;
  background: var(--app-accent-soft);
  border-radius: 8px;
  color: var(--app-accent);
  display: inline-flex;
  flex: 0 0 38px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.post-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: #fff;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 13px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 44px;
}

.post-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-avatar-brand {
  background: #fff;
  box-shadow: none;
}

.post-avatar-brand img {
  height: 78%;
  object-fit: contain;
  width: 78%;
}

.post-author-link {
  color: var(--app-ink);
  font-weight: 700;
  text-decoration: none;
}

.post-author-link:hover {
  color: var(--app-accent);
}

.post-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-owner-actions button {
  background: transparent;
  border: 0;
  color: var(--app-muted);
  font-size: 12px;
  height: auto;
  padding: 0;
}

.post-owner-actions button:hover,
.post-owner-actions button:focus {
  color: var(--app-accent);
}

.post-owner-actions [data-post-delete]:hover,
.post-owner-actions [data-post-delete]:focus {
  color: #c83232;
}

.post-edit-form {
  margin-bottom: 14px;
}

.post-content {
  margin-bottom: 0;
  white-space: pre-line;
}

.post-content-more {
  background: transparent;
  border: 0;
  color: var(--app-muted);
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.post-content-more:hover,
.post-content-more:focus {
  color: var(--app-accent);
}

.post-action-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5d6b7a;
  display: inline-flex;
  gap: 6px;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 8px;
}

.post-action-btn:hover,
.post-action-btn:focus {
  color: var(--app-accent);
}

.post-action-btn.is-active {
  color: #111827;
}

.post-action-like.is-active {
  color: #dc3545;
}

.post-action-btn .bi {
  font-size: 16px;
}

.post-comment-panel {
  border-top: 1px solid var(--app-line);
  margin-top: 8px;
  padding-top: 12px;
}

.post-comments-modal.fade .modal-dialog {
  bottom: 0;
  left: 0;
  margin: 0 auto;
  max-width: 720px;
  position: fixed;
  right: 0;
  transform: translateY(100%) !important;
  width: min(720px, calc(100% - 24px));
}

.post-comments-modal {
  background: rgba(15, 23, 42, 0.42);
}

.post-comments-modal.show .modal-dialog {
  transform: translateY(0) !important;
}

.post-comments-modal .modal-content {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  flex-direction: column;
  height: min(78dvh, 760px);
  max-height: calc(100dvh - 16px);
}

.post-comments-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  overflow-y: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.post-comments-modal .modal-footer {
  background: #fff;
  border-top: 1px solid var(--app-line);
  display: block;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}

.post-comments-modal .post-comment-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.post-comments-modal .post-comment-form input {
  height: 38px;
  min-height: 38px;
}

@media (max-width: 575.98px) {
  .post-comments-modal.fade .modal-dialog {
    width: 100%;
  }

  .post-comments-modal .modal-content {
    height: min(82dvh, 720px);
    max-height: calc(100dvh - 8px);
  }
}

.post-comments-handle {
  align-self: center;
  background: #cbd5e1;
  border-radius: 999px;
  height: 4px;
  margin-top: 8px;
  width: 42px;
}

.post-comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.post-comment-item {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.post-comment-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 34px;
}

.post-comment-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-comment-body {
  background: #f8fafc;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  flex: 1;
  padding: 8px 10px;
  white-space: pre-line;
}

.post-comment-actions,
.post-comment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-comment-author {
  color: var(--app-ink);
  font-weight: 700;
  text-decoration: none;
}

.post-comment-author:hover {
  color: var(--app-accent);
}

.post-comment-body small,
.post-comment-empty {
  color: var(--app-muted);
  font-size: 13px;
}

.post-comment-replies {
  border-left: 2px solid var(--app-line);
  display: grid;
  gap: 10px;
  margin-left: 17px;
  margin-top: 10px;
  padding-left: 16px;
}

.post-comment-reply-btn {
  background: transparent;
  border: 0;
  color: var(--app-accent);
  font-size: 13px;
  height: auto;
  justify-self: start;
  padding: 4px 0 0;
}

.post-comment-action-btn {
  background: transparent;
  border: 0;
  color: var(--app-muted);
  font-size: 13px;
  height: auto;
  padding: 4px 0 0;
}

.post-comment-delete-btn {
  background: transparent;
  border: 0;
  color: #c83232;
  font-size: 13px;
  height: auto;
  padding: 4px 0 0;
}

.post-comment-edit-form {
  display: none;
  gap: 8px;
  margin-top: 6px;
}

.post-comment-item.is-editing [data-comment-content],
.post-comment-item.is-editing .post-comment-actions {
  display: none;
}

.post-comment-item.is-editing .post-comment-edit-form {
  display: grid;
}

.post-comment-form textarea {
  resize: vertical;
}

.mention-autocomplete {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  z-index: 1080;
}

.mention-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--app-ink);
  display: flex;
  gap: 10px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.mention-option:hover,
.mention-option:focus {
  background: var(--app-soft);
}

.mention-avatar {
  align-items: center;
  background: var(--app-soft);
  border-radius: 50%;
  color: var(--app-accent);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.mention-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mention-option span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mention-option strong,
.mention-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-option small {
  color: var(--app-muted);
}

.btn-icon {
  align-items: center;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.notification-toggle {
  border: 1px solid var(--app-line);
  color: var(--app-ink);
  position: relative;
}

.notification-toggle:hover {
  border-color: var(--app-accent);
  color: var(--app-accent);
}

.notification-badge {
  align-items: center;
  background: #dc3545;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.notification-menu {
  border-radius: 8px;
  min-width: 340px;
  padding: 0;
}

.notification-menu-header {
  align-items: center;
  border-bottom: 1px solid var(--app-line);
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.notification-list {
  max-height: 360px;
  overflow: auto;
}

.notification-item {
  align-items: flex-start;
  color: var(--app-ink);
  display: flex;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
}

.notification-item:hover,
.notification-item.is-unread {
  background: #eff8ff;
}

.notification-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.notification-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.notification-item small,
.notification-empty {
  color: var(--app-muted);
  display: block;
  font-size: 13px;
}

.notification-empty {
  padding: 16px;
}

.purchase-interest-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 75px minmax(0, 1fr);
  padding: 10px;
}

.purchase-interest-media {
  align-items: center;
  aspect-ratio: 1;
  background: var(--app-accent-soft);
  border-radius: 8px;
  color: var(--app-accent);
  display: flex;
  font-weight: 800;
  height: 75px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 75px;
}

.purchase-interest-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.purchase-interest-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.purchase-interest-title {
  color: var(--app-ink);
  display: -webkit-box;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  max-height: 30px;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.purchase-interest-title:hover {
  color: var(--app-accent);
}

.purchase-interest-content .btn {
  width: 100%;
}

.sidebar-device-highlight-item {
  color: inherit;
  text-decoration: none;
}

.sidebar-device-highlight-item:hover {
  border-color: var(--app-accent);
}

.sidebar-device-highlight-item:hover .purchase-interest-title {
  color: var(--app-accent);
}

.sidebar-device-highlight-meta,
.sidebar-device-highlight-stars {
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.2;
}

.sidebar-device-highlight-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.advertisement-block {
  margin-bottom: 16px;
}

.advertisement-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.advertisement-card img {
  aspect-ratio: 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.admin-advertisement-row {
  align-items: center;
}

.admin-advertisement-main {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.admin-advertisement-thumb {
  align-items: center;
  aspect-ratio: 1;
  background: var(--app-accent-soft);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.admin-advertisement-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-entry-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 126px;
  padding: 20px;
}

.home-entry-card:hover {
  border-color: var(--app-accent);
}

.home-entry-card span {
  color: var(--app-muted);
}

.profile-meta {
  border-top: 1px solid var(--app-line);
  padding: 20px !important;
}

.profile-meta [data-profile-bio] {
  white-space: pre-line;
}

[data-device-field-hidden="true"] {
  display: none !important;
}

.device-custom-field-dialog {
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
}

.device-custom-field-dialog .modal-content {
  max-height: 100%;
}

.device-custom-field-dialog .modal-body {
  overflow-y: auto;
}

.device-field-relation-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.device-field-relation-option {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  margin: 0;
  min-height: 46px;
  padding: 10px 12px;
}

.device-field-relation-option span {
  font-size: 14px;
  line-height: 1.2;
}

.device-dynamic-field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.device-dynamic-field {
  min-width: 0;
}

.device-dynamic-field-full {
  grid-column: 1 / -1;
}

.device-dynamic-choice-list {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.device-dynamic-choice-list-images .form-check {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.device-dynamic-choice-image {
  flex: 0 0 28px;
  height: 28px;
  object-fit: contain;
  width: 28px;
}

@media (max-width: 767.98px) {
  .device-custom-field-dialog {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .device-field-relation-grid {
    grid-template-columns: 1fr;
  }

  .device-dynamic-field-grid {
    grid-template-columns: 1fr;
  }
}

.profile-verified-badge {
  align-items: center;
  background: var(--app-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 20px;
  font-size: 13px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.profile-moderator-badge {
  align-items: center;
  background: rgba(36, 151, 242, 0.12);
  border: 1px solid rgba(36, 151, 242, 0.22);
  border-radius: 999px;
  color: #4f6688;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  padding: 5px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.profile-social-link {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  width: 38px;
}

.profile-social-link:hover {
  border-color: var(--app-accent);
  color: var(--app-accent);
}

.profile-social-logo {
  font-size: 18px;
  line-height: 1;
}

.profile-social-youtube,
.profile-social-x,
.profile-social-facebook,
.profile-social-linkedin {
  font-size: 19px;
}

.auth-panel {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
}

.auth-panel-compact {
  max-width: 460px;
  padding: 20px;
}

.auth-logo {
  display: block;
  height: 54px;
  margin: 0 auto 14px;
  object-fit: contain;
  width: min(280px, 100%);
}

.auth-divider {
  align-items: center;
  color: var(--app-muted);
  display: flex;
  font-size: 14px;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--app-line);
  content: "";
  flex: 1;
  height: 1px;
}

.required-mark {
  color: #dc3545;
  font-weight: 700;
  margin-left: 3px;
}

.device-check-select-toggle.is-invalid,
.device-image-input-row.is-invalid .form-control {
  border-color: #dc3545;
}

.device-check-select-toggle.is-invalid ~ .invalid-feedback,
.device-image-input-row.is-invalid + .invalid-feedback,
[data-device-types-feedback].is-visible,
[data-device-image-feedback].is-visible {
  display: block;
}

.avatar-placeholder,
.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  flex: 0 0 auto;
}

.profile-header {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.profile-cover {
  height: 140px;
  background: linear-gradient(135deg, #ecfeff, #e0f2fe 48%, #f8fafc);
  background-position: center;
  background-size: cover;
}

.profile-header > .d-flex {
  padding: 20px !important;
}

.profile-avatar {
  width: 108px;
  height: 108px;
  margin-top: -66px;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  padding: 0;
}

.profile-avatar.has-image {
  background-color: #fff;
  background-image: var(--profile-avatar);
  cursor: zoom-in;
}

.profile-avatar.has-image:hover,
.profile-avatar.has-image:focus-visible {
  outline: 3px solid rgba(36, 151, 242, 0.32);
  outline-offset: 2px;
}

.profile-avatar:not(.has-image) {
  cursor: default;
}

.profile-image-preview {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.profile-image-preview img {
  border: 1px solid var(--app-line);
  border-radius: 6px;
  height: 76px;
  object-fit: cover;
  width: min(220px, 100%);
}

.bottom-nav {
  bottom: 0;
  box-shadow: 0 -8px 24px rgba(16, 32, 51, 0.08);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  z-index: 1030;
}

.bottom-nav a,
.bottom-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--app-ink);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 2px;
  height: 58px;
  justify-content: center;
  line-height: 1.1;
  min-width: 0;
  padding: 6px 2px;
  text-align: center;
  text-decoration: none;
}

.bottom-nav button {
  font-family: inherit;
}

.bottom-nav .bi {
  font-size: 20px;
  line-height: 1;
}

.bottom-nav span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.bottom-nav a.active {
  color: var(--app-accent);
  font-weight: 600;
}

.bottom-nav-create {
  color: var(--app-accent) !important;
}

.bottom-nav-create .bi {
  align-items: center;
  background: var(--app-accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 24px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.bottom-nav-desktop-only {
  display: none !important;
}

@media (min-width: 992px) {
  .bottom-nav {
    border: 1px solid var(--app-line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    grid-template-columns: repeat(7, 1fr);
    left: 50%;
    max-width: 720px;
    right: auto;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32px));
  }

  .bottom-nav-desktop-only {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  .app-shell {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 20px;
}

.profile-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-subtab {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-muted);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
}

.profile-subtab strong {
  color: var(--app-ink);
  font-size: 13px;
}

.profile-subtab.active {
  background: #eff8ff;
  border-color: var(--app-accent);
  color: var(--app-accent);
}

.profile-item-list {
  display: grid;
  gap: 10px;
}

.profile-tab-item {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  display: block;
  padding: 20px;
  text-decoration: none;
}

.profile-tab-item:hover {
  border-color: var(--app-accent);
}

.profile-tab-item-author {
  color: var(--app-ink);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 6px;
  text-decoration: none;
}

.profile-tab-item-author:hover {
  color: var(--app-accent);
}

.profile-tab-person {
  align-items: center;
  display: flex;
  gap: 12px;
}

.profile-tab-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  color: #fff;
  display: inline-flex;
  flex: 0 0 46px;
  font-size: 13px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  overflow: hidden;
  width: 46px;
}

.profile-tab-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-tab-brand-avatar,
.profile-tab-device-avatar {
  background: #fff;
  color: var(--app-accent);
}

.profile-tab-brand-avatar img,
.profile-tab-device-avatar img {
  object-fit: contain;
}

.profile-tab-brand-avatar img {
  padding: 4px;
}

.profile-tab-device {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 160px minmax(0, 1fr);
}

.profile-tab-device-action {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-tab-device-main {
  border: 0;
  border-radius: 0;
  color: inherit;
  padding: 0;
}

.profile-tab-device-main:hover {
  border-color: transparent;
}

.profile-tab-buy-button {
  align-self: center;
  min-width: 128px;
}

.profile-tab-device-media {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(36, 151, 242, 0.12), rgba(255, 255, 255, 0.88)),
    #f8fbff;
  border-radius: 8px;
  color: var(--app-accent);
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 110px;
  justify-content: center;
  overflow: hidden;
  width: 160px;
}

.profile-tab-device-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

@media (max-width: 575.98px) {
  .profile-tab-device {
    grid-template-columns: 1fr;
  }

  .profile-tab-device-action {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profile-tab-device-media {
    height: 200px;
    width: 100%;
  }
}

.profile-tab-person small,
.profile-tab-item-meta {
  color: var(--app-muted);
  display: block;
  font-size: 13px;
}

.profile-mini-verified {
  align-items: center;
  background: var(--app-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  height: 15px;
  justify-content: center;
  line-height: 1;
  margin-left: 4px;
  position: relative;
  top: -1px;
  vertical-align: middle;
  width: 15px;
}

.profile-mini-moderator {
  font-size: 10px;
  margin-left: 4px;
  padding: 3px 6px;
  position: relative;
  top: -1px;
}

.profile-tab-empty {
  color: var(--app-muted);
  padding: 18px 4px;
  text-align: center;
}

.tool-page {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  gap: 10px;
}

.device-filter-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.device-filter-search,
.device-filter-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.resource-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 20px;
  min-height: 150px;
}

.resource-card p {
  color: var(--app-muted);
  font-size: 14px;
  white-space: pre-line;
}

.global-search-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.global-search-header {
  margin-bottom: 0;
}

.global-search-form {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.global-search-form .btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.global-search-results {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.global-search-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.global-search-section-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--app-line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.global-search-section-header h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.global-search-section-header span,
.global-search-empty {
  color: var(--app-muted);
  font-size: 14px;
}

.global-search-page .brand-list-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.global-search-forum-list {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.smartthings-driver-list {
  display: grid;
  gap: 12px;
}

.smartthings-driver-card {
  align-items: center;
  display: flex;
  min-height: 0;
  width: 100%;
}

.smartthings-driver-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
}

.smartthings-driver-main {
  align-content: center;
  display: grid;
  justify-items: start;
  min-width: 0;
}

.smartthings-driver-link {
  color: var(--app-ink);
  font-weight: 400;
}

.smartthings-driver-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.device-driver-form-block,
.device-smartthings-form-block {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 14px;
}

.device-driver-list,
.device-smartthings-driver-list {
  display: grid;
  gap: 12px;
}

.device-driver-row,
.device-smartthings-driver-row {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.device-driver-spec-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.device-driver-spec-grid.has-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-driver-spec-grid.has-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.device-driver-spec {
  align-content: start;
  background: #f8f8f8;
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 20px;
  width: 100%;
}

.device-driver-spec-grid > div {
  height: 100%;
}

.device-driver-spec-logo {
  height: 38px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.device-driver-spec-list {
  display: grid;
  gap: 10px;
}

.device-driver-spec-item + .device-driver-spec-item {
  border-top: 1px solid var(--app-line);
  padding-top: 10px;
}

.device-driver-spec-item p {
  margin: 0 0 2px;
}

.device-driver-channel-link {
  color: #dc3545;
  display: inline-block;
  font-weight: 600;
  margin-top: 2px;
  text-decoration: none;
}

.device-driver-channel-link:hover,
.device-driver-channel-link:focus-visible {
  text-decoration: underline;
}

.device-review-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 20px;
}

.device-review-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: #fff;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 13px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 42px;
}

.device-review-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.device-review-body {
  min-width: 0;
  width: 100%;
}

.device-review-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
  min-height: 42px;
}

.device-review-author {
  color: var(--app-ink);
  font-weight: 700;
  text-decoration: none;
}

.device-review-author:hover {
  color: var(--app-accent);
}

.device-stack-user-list {
  display: grid;
  gap: 12px;
}

.device-stack-user-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 14px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.device-stack-user-card:hover,
.device-stack-user-card:focus-visible {
  border-color: var(--app-accent);
  box-shadow: 0 8px 20px rgba(36, 151, 242, 0.12);
  color: inherit;
  outline: none;
}

.device-stack-user-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: #fff;
  display: inline-flex;
  flex: 0 0 46px;
  font-size: 13px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 46px;
}

.device-stack-user-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.device-stack-user-body {
  min-width: 0;
}

.device-stack-user-name {
  color: var(--app-ink);
  font-weight: 700;
  text-decoration: none;
}

.device-stack-user-card:hover .device-stack-user-name,
.device-stack-user-card:focus-visible .device-stack-user-name {
  color: var(--app-accent);
}

.device-stack-user-meta {
  color: var(--app-muted);
  font-size: 13px;
  margin-top: 2px;
}

.device-review-device {
  color: var(--app-accent);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
}

.device-review-device:hover {
  text-decoration: underline;
}

.device-review-text {
  display: grid;
  gap: 12px;
}

.device-review-point p {
  color: var(--app-muted);
  line-height: 1.48;
  margin: 0;
  white-space: pre-line;
}

.device-review-positive {
  color: #168750;
  display: block;
  margin-bottom: 3px;
}

.device-review-negative {
  color: #c83232;
  display: block;
  margin-bottom: 3px;
}

.device-review-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.device-review-footer-compact {
  margin-top: 2px;
}

.device-list-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 220px minmax(0, 1fr);
  min-height: 238px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.device-list-card:hover {
  border-color: rgba(36, 151, 242, 0.38);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.device-list-media-wrap {
  height: 220px;
  position: relative;
}

.device-list-media {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(36, 151, 242, 0.12), rgba(255, 255, 255, 0.88)),
    #f8fbff;
  color: var(--app-accent);
  display: flex;
  font-size: 28px;
  font-weight: 800;
  height: 220px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

.device-list-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.device-list-media > span {
  align-items: center;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.device-list-zoom {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  bottom: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: var(--app-ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 10px;
  width: 34px;
  z-index: 2;
}

.device-list-zoom:hover,
.device-list-zoom:focus-visible {
  border-color: var(--app-accent);
  color: var(--app-accent);
  outline: none;
}

.device-list-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 20px 20px;
}

.device-list-info {
  min-width: 0;
}

.device-list-footer {
  margin-top: auto;
}

.device-list-brand {
  color: var(--app-muted);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
}

.device-list-brand a,
[data-device-brand] a,
[data-device-type] a {
  color: inherit;
  text-decoration: none;
}

.device-list-brand a:hover,
[data-device-brand] a:hover,
[data-device-type] a:hover {
  color: var(--app-primary);
  text-decoration: none;
}

[data-device-brand] {
  font-size: 16px;
}

.device-type-link,
.device-type-link:hover,
.device-type-link:focus {
  text-decoration: none !important;
}

.device-list-title {
  font-size: 18px;
  line-height: 1.24;
  margin: 0 0 6px;
}

.device-list-title a {
  color: var(--app-ink);
  text-decoration: none;
}

.device-list-title a:hover {
  color: var(--app-accent);
}

.device-list-meta,
.device-list-stats {
  color: var(--app-muted);
  font-size: 14px;
}

.device-list-meta {
  margin: 0 0 10px;
}

.device-list-meta a {
  color: inherit;
  text-decoration: none;
}

.device-list-meta a:hover {
  color: var(--app-accent);
  text-decoration: underline;
}

.device-list-meta-separator {
  margin: 0 6px;
}

.device-list-platforms {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 12px;
  min-height: 26px;
}

.device-list-platforms:empty {
  margin-bottom: 0;
  min-height: 0;
}

.device-list-platform-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: inherit;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 24px;
}

.device-list-platform-icon:hover,
.device-list-platform-icon:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 151, 242, 0.12);
  outline: none;
}

.device-list-platform-icon img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.device-list-platform-icon > span {
  align-items: center;
  background: var(--app-accent-soft);
  border: 1px solid var(--app-line);
  border-radius: 50%;
  color: var(--app-accent);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.device-list-rating {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.device-list-rating strong {
  color: var(--app-ink);
  font-size: 14px;
}

.device-list-rating span:not(.rating-stars) {
  color: var(--app-muted);
  font-size: 13px;
}

.device-list-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.device-list-stats span {
  background: var(--app-accent-soft);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  padding: 4px 9px;
}

.device-list-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.device-list-details-action {
  width: 100%;
}

.device-list-primary-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.device-list-primary-actions-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-list-primary-actions .btn {
  width: 100%;
}

.device-list-stack-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
}

.device-list-stack-actions .btn {
  font-size: 0.875rem;
  min-height: 38px;
  padding-left: 6px;
  padding-right: 6px;
  width: 100%;
  white-space: nowrap;
}

.device-list-admin-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-list-admin-actions-single {
  grid-template-columns: minmax(0, 1fr);
}

.device-list-admin-actions .btn {
  width: 100%;
}

.device-list-card-compact {
  grid-template-rows: 150px minmax(0, 1fr);
  min-height: 210px;
}

.device-list-card-compact .device-list-media {
  height: 150px;
}

.device-list-card-compact .device-list-media-wrap {
  height: 150px;
}

.device-list-card-compact .device-list-media img {
  height: 100%;
}

.device-tabs-card {
  padding: 20px;
}

.device-tabs {
  padding: 0;
}

.device-tabs .nav-link {
  color: var(--app-muted);
  min-height: 46px;
}

.device-tabs .nav-link.active {
  color: var(--app-accent);
}

.device-tabs-card .tab-content {
  padding: 20px 0 0;
}

.profile-device-tabs .nav-link {
  font-size: 14px;
  min-height: 40px;
  padding: 8px 10px;
}

.device-spec-icons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1;
  margin-top: 0;
}

.device-spec-icon {
  align-items: center;
  background: var(--app-soft);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 26px;
}

.device-spec-icon:hover,
.device-spec-icon:focus-visible {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(36, 151, 242, 0.12);
  outline: none;
}

.device-spec-icon img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.device-spec-icon > span {
  color: var(--app-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.device-spec-list {
  align-content: start;
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.device-spec-item {
  align-self: stretch;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 10px 12px;
}

.device-spec-item-full {
  grid-column: 1 / -1;
}

.device-spec-item dt {
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.device-spec-item dd {
  line-height: 1.4;
  margin: 0;
  white-space: pre-line;
}

.device-spec-item dd.device-spec-icon-value {
  line-height: 1;
  white-space: normal;
}

@media (max-width: 991.98px) {
  .device-spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .device-spec-list {
    grid-template-columns: 1fr;
  }
}

.device-editorial-review-detail-list {
  display: grid;
  gap: 20px;
}

.device-editorial-review-detail + .device-editorial-review-detail {
  border-top: 1px solid var(--app-line);
  padding-top: 20px;
}

.device-photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.device-photo-empty {
  grid-column: 1 / -1;
  white-space: nowrap;
}

.device-photo-item {
  min-width: 0;
}

.device-photo-card {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

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

.device-photo-card:hover,
.device-photo-card:focus-visible {
  border-color: var(--app-accent);
  box-shadow: 0 8px 20px rgba(36, 151, 242, 0.12);
  outline: none;
}

.device-photo-caption {
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.device-photo-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.device-photo-actions .btn {
  width: 100%;
}

.device-photo-dialog {
  display: flex;
  height: calc(100vh - 48px);
  margin-bottom: 24px;
  margin-top: 24px;
}

.device-photo-dialog .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.device-photo-dialog .modal-header,
.device-photo-dialog .modal-footer {
  flex: 0 0 auto;
}

.device-photo-dialog .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.device-photo-upload-list {
  display: grid;
  gap: 10px;
}

.device-photo-upload-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 12px;
}

.device-photo-upload-thumb {
  border: 1px solid var(--app-line);
  border-radius: 6px;
  height: 54px;
  object-fit: cover;
  width: 72px;
}

.device-photo-upload-details {
  min-width: 0;
}

.device-photo-upload-caption-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.device-video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.device-video-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.device-video-frame {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  display: flex;
  justify-content: center;
}

.device-video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.device-video-frame a {
  color: #fff;
}

.device-video-meta {
  align-items: center;
  color: var(--app-muted);
  display: flex;
  font-size: 0.875rem;
  gap: 10px;
  justify-content: space-between;
  padding: 20px;
}

.device-video-meta-text {
  display: grid;
  gap: 2px;
}

.device-video-device {
  color: var(--app-ink);
  font-weight: 700;
  text-decoration: none;
}

.device-video-device:hover {
  color: var(--app-accent);
}

@media (min-width: 768px) {
  .device-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .device-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-photo-upload-item,
  .device-photo-upload-caption-row {
    grid-template-columns: 1fr;
  }

  .device-photo-upload-thumb {
    height: 96px;
    width: 100%;
  }
}

.device-description {
  color: var(--app-muted);
  white-space: pre-line;
}

.creator-grid,
.user-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.forum-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.forum-category-pill {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
}

.forum-category-pill span {
  color: var(--app-muted);
  font-size: 0.875rem;
}

.forum-topic-list,
.forum-post-list {
  display: grid;
  gap: 12px;
}

.forum-topic-card,
.forum-post-card,
.forum-reply-form,
.forum-topic-header {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 20px;
}

.forum-topic-card {
  display: grid;
  gap: 16px;
}

.forum-topic-card h2 a {
  color: var(--app-ink);
  text-decoration: none;
}

.forum-topic-card h2 a:hover {
  color: var(--app-accent);
}

.forum-topic-kicker {
  color: var(--app-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.forum-topic-meta {
  color: var(--app-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 10px;
  margin-top: 12px;
}

.forum-topic-stats {
  align-items: center;
  color: var(--app-muted);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
}

.forum-topic-stats strong {
  color: var(--app-ink);
}

.forum-topic-stats span {
  font-size: 0.8125rem;
}

.forum-post-card {
  display: grid;
  gap: 16px;
}

.forum-post-author {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-post-author small {
  color: var(--app-muted);
}

.forum-post-avatar {
  align-items: center;
  background: var(--app-accent-soft);
  border-radius: 50%;
  color: var(--app-accent);
  display: inline-flex;
  flex: 0 0 36px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.forum-post-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.forum-topic-owner {
  background: var(--app-accent-soft);
  border-radius: 999px;
  color: var(--app-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
}

.forum-post-body p {
  margin-bottom: 0;
  white-space: pre-line;
}

.forum-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.forum-attachment {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  display: inline-flex;
  gap: 6px;
  padding: 7px 10px;
  text-decoration: none;
}

.forum-attachment:hover {
  border-color: var(--app-accent);
  color: var(--app-accent);
}

.forum-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table-list {
  display: grid;
  gap: 12px;
}

.admin-table-row {
  align-items: start;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-device-custom-field-row {
  align-items: center;
}

.admin-device-custom-field-title {
  display: grid;
  gap: 4px;
  min-height: 32px;
  min-width: 0;
}

.admin-table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-purchase-interest-main {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
}

.admin-purchase-interest-media {
  align-items: center;
  aspect-ratio: 1;
  background: var(--app-accent-soft);
  border-radius: 8px;
  color: var(--app-accent);
  display: flex;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.admin-purchase-interest-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-purchase-interest-row h2 a {
  color: var(--app-ink);
  text-decoration: none;
}

.admin-purchase-interest-row h2 a:hover {
  color: var(--app-accent);
}

.admin-purchase-link-suggestion-list {
  display: grid;
  gap: 8px;
}

.admin-purchase-link-suggestion {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 10px;
}

.admin-purchase-link-suggestion a {
  font-weight: 700;
  text-decoration: none;
}

.admin-purchase-link-suggestion a:hover {
  color: var(--app-accent);
}

.admin-purchase-link-suggestion-actions {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .admin-table-row {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 768px) {
  .forum-topic-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .forum-post-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

.creator-card,
.user-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  min-height: 320px;
  overflow: hidden;
}

.creator-card-cover,
.user-card-cover {
  background: linear-gradient(135deg, #ecfeff, #dbeafe 55%, #f8fafc);
  height: 82px;
}

.creator-card-body,
.user-card-body {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 0 20px 20px;
}

.creator-avatar,
.user-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--app-accent), #47b9e6);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 78px;
  justify-content: center;
  margin-top: -39px;
  overflow: hidden;
  width: 78px;
}

.creator-avatar img,
.user-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.creator-name-row,
.user-name-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.creator-username,
.creator-last-access,
.creator-bio,
.user-username,
.user-location {
  color: var(--app-muted);
  font-size: 14px;
}

.creator-bio {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.user-card-badges span {
  background: var(--app-accent-soft);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 13px;
  padding: 5px 10px;
}

.brand-list-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.list-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.list-pagination span {
  color: var(--app-muted);
  font-size: 14px;
}

.brand-list-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  min-height: 360px;
  overflow: hidden;
}

.brand-list-cover {
  background:
    linear-gradient(135deg, rgba(36, 151, 242, 0.22), rgba(16, 32, 51, 0.04)),
    radial-gradient(circle at 82% 22%, rgba(20, 123, 209, 0.2), transparent 28%);
  background-position: center;
  background-size: cover;
  height: 96px;
}

.brand-list-body {
  display: flex;
  flex-direction: column;
  min-height: 264px;
  padding: 0 20px 20px;
}

.brand-list-logo {
  align-items: center;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  color: var(--app-accent);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 78px;
  justify-content: center;
  margin-top: -39px;
  overflow: hidden;
  width: 78px;
}

.brand-list-logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-list-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.brand-list-meta,
.brand-list-description,
.brand-list-stats {
  color: var(--app-muted);
  font-size: 14px;
}

.brand-list-description {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-list-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.review-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#news-list.review-list {
  grid-template-columns: 1fr;
}

.review-list-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.review-list-card:hover {
  border-color: rgba(36, 151, 242, 0.38);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.review-list-cover {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(36, 151, 242, 0.12), rgba(255, 255, 255, 0.88)),
    #f8fbff;
  color: var(--app-accent);
  display: flex;
  font-size: 28px;
  font-weight: 800;
  height: 220px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 100%;
}

.review-list-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.review-list-cover span {
  align-items: center;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.news-list-cover {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 8px 0 12px;
  padding: 0;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.news-list-card {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  grid-template-rows: auto;
  padding: 20px;
  position: relative;
  width: 100%;
}

.news-list-card:hover {
  border-color: var(--app-accent);
}

.news-card-link {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.news-list-media {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  color: var(--app-muted);
  display: flex;
  height: 180px;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.news-list-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.news-list-media span {
  font-weight: 800;
}

.news-list-body {
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.news-list-body .btn {
  position: relative;
  z-index: 3;
}

.news-list-date {
  color: var(--app-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.news-list-body h2 {
  font-size: 20px;
  line-height: 1.18;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.news-list-body p {
  color: var(--app-muted);
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-link-preview {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
}

.news-link-preview img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  flex: 0 0 120px;
  object-fit: cover;
  width: 120px;
}

.news-link-preview p {
  color: var(--app-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 4px 0 0;
}

.classifieds-tabs {
  background: #fff;
  border: 1px solid var(--app-line);
  border-top: 0;
  padding: 16px;
}

.classifieds-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.classified-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.classified-author {
  align-items: center;
  border-bottom: 1px solid var(--app-line);
  display: grid;
  gap: 8px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  padding: 12px;
}

.classified-author-avatar {
  align-items: center;
  background: var(--app-soft);
  border-radius: 50%;
  color: var(--app-accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 36px;
}

.classified-author-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.classified-author-name {
  color: var(--app-ink);
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classified-author span {
  color: var(--app-muted);
  font-size: 13px;
}

.classified-gallery {
  background: #f8fbff;
}

.classified-main-photo {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f8fbff;
  border: 0;
  color: var(--app-muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 100%;
}

.classified-main-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.classified-main-photo span {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.classified-photo-zoom {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 0;
  border-radius: 999px;
  bottom: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  padding: 9px 12px;
  position: absolute;
  right: 10px;
}

.classified-photo-zoom span {
  background: transparent;
  border-radius: 0;
  display: inline;
  height: auto;
  width: auto;
}

.classified-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.classified-title-row {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.classified-title-row h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.classified-status {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.classified-status-expired {
  background: #fff7ed;
  color: #c2410c;
}

.classified-status-sold {
  background: #ecfdf5;
  color: #047857;
}

.classified-price {
  color: var(--app-accent);
  font-size: 20px;
}

.classified-view-link {
  margin-top: auto;
  width: 100%;
}

.classified-body p {
  color: var(--app-muted);
  display: -webkit-box;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.classified-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.classified-links-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.classified-market-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.classified-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.classified-actions .btn {
  width: 100%;
}

.classified-photo-preview-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

.classified-photo-preview {
  aspect-ratio: 1;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.classified-photo-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.classified-contact-form-block {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 14px;
}

.classified-contact-form-block h3 {
  font-size: 16px;
  margin: 0 0 12px;
}

.classified-detail-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  padding: 18px;
}

.classified-detail-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.classified-detail-card .classified-author {
  border: 0;
  padding: 0;
}

.classified-detail-photo {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.classified-detail-price {
  font-size: 28px;
}

.classified-detail-description {
  color: var(--app-ink);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.classified-detail-links {
  margin-top: 0;
}

.classified-contact-list {
  display: grid;
  gap: 8px;
}

.classified-contact-item {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
}

.classified-contact-item i {
  color: var(--app-accent);
  font-size: 20px;
}

.classified-contact-item span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.classified-contact-item strong {
  font-size: 12px;
  color: var(--app-muted);
}

@media (max-width: 900px) {
  .classified-detail-card {
    grid-template-columns: 1fr;
  }
}

.official-review-badge {
  background: #e8f4ff;
  border: 1px solid #b9dcfb;
  border-radius: 999px;
  color: var(--app-accent-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
}

.review-list-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.review-list-body h2 {
  color: var(--app-ink);
  font-size: 18px;
  line-height: 1.24;
  margin: 0 0 14px;
}

.review-status-badge {
  align-self: flex-start;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #92400e;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  width: fit-content;
}

.review-list-action {
  margin-top: auto;
  width: 100%;
}

.review-cover-preview {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: block;
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}

.review-builder-modal {
  max-width: min(1180px, calc(100vw - 32px));
}

.review-builder-modal .modal-content {
  max-height: calc(100vh - 48px);
}

.review-builder-modal .modal-body {
  overflow-y: auto;
}

.device-form-dialog {
  display: flex;
  height: calc(100vh - 32px);
  margin-bottom: 16px;
  margin-top: 16px;
  max-width: min(1120px, calc(100vw - 24px));
}

.device-form-dialog .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
}

.device-form-dialog .modal-header,
.device-form-dialog .modal-footer {
  flex: 0 0 auto;
}

.device-form-dialog .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.device-form-divider {
  border-color: var(--app-line);
  margin: 4px 0;
  opacity: 1;
}

.device-extra-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.device-spec-form-fields {
  display: contents;
}

@media (max-width: 991.98px) {
  .device-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .device-extra-grid {
    grid-template-columns: 1fr;
  }

  .device-form-dialog {
    height: calc(100dvh - 16px);
    margin-bottom: 8px;
    margin-top: 8px;
    max-width: calc(100vw - 16px);
  }
}

.device-check-select-toggle {
  min-height: 38px;
  overflow: hidden;
  padding-right: 2.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-check-select-menu {
  max-height: 260px;
  overflow-y: auto;
}

.device-check-select-item {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 7px 8px;
}

.device-check-select-item:hover {
  background: var(--app-soft);
}

.device-image-input-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.device-image-input-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.device-image-input-row [data-device-current-image] {
  flex: 0 0 auto;
}

.device-current-image {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--app-muted);
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.device-current-image img {
  border: 1px solid var(--app-line);
  border-radius: 6px;
  height: 54px;
  object-fit: cover;
  width: 72px;
}

.device-current-image:hover img {
  border-color: var(--app-accent);
}

.review-block-builder {
  display: grid;
  gap: 12px;
}

.review-block-actions {
  display: flex;
  width: 100%;
}

.review-block-actions .btn {
  flex: 1 1 0;
}

.review-block-editor {
  background: #f8fbff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 20px;
}

.review-block-editor.is-dragging {
  opacity: 0.55;
}

.review-block-editor.is-drag-over {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(36, 151, 242, 0.16);
}

.review-block-builder-nested {
  gap: 10px;
}

.review-block-builder-nested .review-block-editor {
  background: #fff;
}

.review-block-editor-group {
  padding: 0;
}

.review-group-header {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  padding: 20px;
}

.review-group-header.is-drag-over {
  background: var(--app-accent-soft);
}

.review-group-drag-handle::before {
  margin-right: 0;
}

.review-group-title-input {
  font-weight: 600;
}

.review-block-editor-header {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
}

.review-group-body {
  border-top: 1px solid var(--app-line);
  display: grid;
  gap: 18px;
  min-height: 62px;
  padding: 20px;
}

.review-group-body.is-drag-over {
  background: var(--app-accent-soft);
}

.review-group-toggle::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -35%) rotate(225deg);
  width: 8px;
}

.review-group-toggle {
  padding: 0;
  position: relative;
  width: 38px;
}

.review-group-toggle.collapsed::after {
  transform: translate(-50%, -65%) rotate(45deg);
}

.review-image-list {
  display: grid;
  gap: 10px;
}

.review-image-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  cursor: grab;
  display: grid;
  gap: 10px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 20px;
}

.review-image-details {
  min-width: 0;
}

.review-image-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.review-image-inline-controls {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, auto) auto;
}

.review-image-cover-option {
  align-items: center;
  color: var(--app-muted);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 38px;
  padding: 7px 2px;
  white-space: nowrap;
}

.review-image-item [data-review-image-remove] {
  align-self: center;
  min-height: 38px;
}

.review-image-item:active {
  cursor: grabbing;
}

.review-image-item.is-dragging {
  opacity: 0.55;
}

.review-image-item.is-drag-over {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(36, 151, 242, 0.16);
}

.review-image-thumb {
  align-self: center;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  height: 54px;
  object-fit: cover;
  width: 72px;
}

.review-block-drag-handle::before {
  color: var(--app-muted);
  content: "⋮⋮";
  display: inline-block;
}

.review-block-drag-handle {
  cursor: grab;
  display: inline-flex;
  justify-content: center;
}

.review-block-drag-handle:active {
  cursor: grabbing;
}

.review-blocks {
  display: grid;
  gap: 18px;
}

[data-news-blocks] {
  margin-top: 18px;
}

.review-block h2 {
  margin: 0;
}

.review-block p,
.review-block blockquote {
  margin-bottom: 0;
  white-space: pre-line;
}

.review-block blockquote {
  border-left: 4px solid var(--app-accent);
  color: var(--app-muted);
  padding-left: 16px;
}

.review-block img {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: block;
  height: auto;
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.review-image-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--review-columns-desktop, 1), minmax(0, 1fr));
  justify-items: start;
}

.review-image-align-center {
  justify-items: center;
}

.review-image-align-right {
  justify-items: end;
}

.review-image-align-justify {
  justify-items: stretch;
}

.review-image-grid figure {
  margin: 0;
  max-width: 100%;
}

.review-image-grid a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  cursor: zoom-in;
  display: inline-flex;
  height: 188px;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

.review-image-grid img {
  border: 0;
  border-radius: 0;
  height: 100%;
  max-height: none;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.review-image-grid.review-image-align-justify figure,
.review-image-grid.review-image-align-justify a,
.review-image-grid.review-image-align-justify img {
  width: 100%;
}

.review-image-grid .review-image-cover-frame a {
  display: inline-block;
  height: auto;
  overflow: visible;
  width: auto;
}

.review-image-grid .review-image-cover-frame img {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: block;
  height: auto;
  max-height: none;
  max-width: 100%;
  width: auto;
}

.review-image-grid.review-image-align-justify .review-image-cover-frame,
.review-image-grid.review-image-align-justify .review-image-cover-frame a,
.review-image-grid.review-image-align-justify .review-image-cover-frame img {
  width: 100%;
}

.review-inline-select .btn {
  pointer-events: none;
}

.select2-container--default .select2-selection--single {
  border: 1px solid var(--app-line);
  border-radius: 6px;
  min-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--app-text);
  line-height: 36px;
  padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  height: 36px;
  margin-right: 24px;
}

.select2-dropdown {
  border-color: var(--app-line);
}

.review-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.review-video iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.review-lightbox-modal .modal-content {
  background: #05070a;
  color: #fff;
}

.review-lightbox-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.review-lightbox-modal .modal-body {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 72px 84px;
  position: relative;
}

.review-lightbox-figure {
  align-items: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  max-height: 100%;
  width: 100%;
}

.review-lightbox-figure img {
  border-radius: 8px;
  max-height: calc(100vh - 180px);
  max-width: 100%;
  object-fit: contain;
}

.review-lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.76);
  min-height: 20px;
  text-align: center;
  white-space: pre-line;
}

.review-lightbox-arrow {
  border-radius: 999px;
  font-size: 28px;
  height: 38px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  z-index: 2;
}

.review-lightbox-prev {
  left: 24px;
}

.review-lightbox-next {
  right: 24px;
}

@media (max-width: 575.98px) {
  .news-list-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .news-list-media {
    min-height: 0;
  }

  .review-image-grid {
    grid-template-columns: repeat(var(--review-columns-mobile, 1), minmax(0, 1fr));
  }

  .review-lightbox-modal .modal-body {
    padding: 72px 16px 88px;
  }

  .review-lightbox-arrow {
    bottom: 18px;
    top: auto;
    transform: none;
  }

  .review-lightbox-prev {
    left: calc(50% - 68px);
  }

  .review-lightbox-next {
    right: calc(50% - 68px);
  }

  .review-image-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .review-image-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .review-image-inline-controls {
    grid-template-columns: 1fr;
  }

  .review-image-cover-option {
    min-height: auto;
    padding: 0;
  }

  .review-image-item .btn {
    grid-column: 1 / -1;
  }
}

.detail-hero,
.detail-section {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 20px;
}

.detail-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-profile {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.brand-cover {
  background:
    linear-gradient(135deg, rgba(36, 151, 242, 0.28), rgba(16, 32, 51, 0.06)),
    radial-gradient(circle at 82% 22%, rgba(20, 123, 209, 0.22), transparent 28%);
  background-position: center;
  background-size: cover;
  height: 150px;
}

.brand-profile-body {
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 20px 20px;
}

.brand-avatar {
  align-items: center;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: var(--app-accent);
  display: flex;
  font-size: 28px;
  font-weight: 800;
  height: 118px;
  justify-content: center;
  margin-top: -58px;
  overflow: hidden;
  width: 118px;
}

.brand-avatar img {
  display: none;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-avatar.has-image img {
  display: block;
}

.brand-avatar.has-image span {
  display: none;
}

.brand-profile-main {
  padding-top: 20px;
}

.brand-description {
  color: var(--app-muted);
  max-width: 760px;
  margin-top: 12px;
  white-space: pre-line;
}

.brand-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2;
}

.brand-stats {
  border-top: 1px solid var(--app-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.brand-stats div {
  padding: 20px;
}

.brand-stats div + div {
  border-left: 1px solid var(--app-line);
}

.brand-stats span {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.brand-stats small {
  color: var(--app-muted);
}

.brand-tab-stats {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-tab-content {
  margin-top: 20px;
}

.brand-tab-stats li {
  min-width: 0;
}

.brand-tab-stat {
  background: #fff;
  border: 1px solid var(--app-line);
  border-bottom: 3px solid var(--app-line);
  color: var(--app-ink);
  display: block;
  min-height: 86px;
  padding: 20px;
  text-align: left;
  width: 100%;
}

.brand-tab-stats li + li .brand-tab-stat {
  border-left: 0;
}

.brand-tab-stat.active {
  border-bottom-color: var(--app-accent);
}

.brand-tab-stat-static {
  cursor: default;
}

.brand-tab-stat span {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.brand-tab-stat small {
  color: var(--app-muted);
}

.brand-tab-stat:hover,
.brand-tab-stat:focus-visible {
  background: #f8fbff;
  outline: none;
}

.brand-tab-stat-static:hover,
.brand-tab-stat-static:focus-visible {
  background: #fff;
}

.post-composer-footer {
  justify-content: flex-end;
}

.brand-device-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-device-card {
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 104px minmax(0, 1fr);
  padding: 20px;
}

.brand-device-image {
  align-items: center;
  background: var(--app-accent-soft);
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  color: var(--app-accent);
  display: flex;
  font-weight: 800;
  height: 92px;
  justify-content: center;
  overflow: hidden;
  width: 104px;
}

.brand-device-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-device-content p {
  font-size: 14px;
}

.device-profile {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.device-profile-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.device-photo {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(36, 151, 242, 0.12), rgba(255, 255, 255, 0.88)),
    #f8fbff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: flex;
  flex: 0 0 auto;
  height: 220px;
  justify-content: center;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.device-photo:hover,
.device-photo:focus-visible {
  border-color: var(--app-accent);
  outline: none;
}

.device-photo img {
  display: none;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.device-photo.has-image img {
  display: block;
}

.device-photo.has-image span {
  display: none;
}

.device-photo span {
  align-items: center;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  color: var(--app-accent);
  display: inline-flex;
  font-size: 28px;
  font-weight: 700;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.purchase-link-actions {
  display: grid;
  gap: 10px;
}

.purchase-links-dialog {
  max-width: min(600px, calc(100vw - 24px));
}

.purchase-link-device-name {
  color: var(--app-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

.device-profile .stack-actions {
  border-top: 1px solid var(--app-line);
  margin: 0;
  padding: 20px;
}

.rating-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-created-by {
  line-height: 1.6;
}

.device-change-log-link,
.device-change-log-icon {
  background: transparent;
  border: 0;
  color: var(--app-primary);
  font: inherit;
  font-weight: 600;
  padding: 0;
}

.device-change-log-icon {
  line-height: 1;
  margin-left: 3px;
}

.device-change-log-link:hover,
.device-change-log-icon:hover {
  text-decoration: underline;
}

.device-change-log-entry {
  border-bottom: 1px solid var(--app-line);
  padding: 0 0 16px;
}

.device-change-log-entry + .device-change-log-entry {
  padding-top: 16px;
}

.device-change-log-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.device-change-log-entry-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.device-change-log-entry-header span {
  color: var(--app-muted);
}

.device-change-image-value {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 160px;
}

.device-change-image-thumb {
  align-items: center;
  background: var(--app-soft);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 48px;
}

.device-change-image-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.device-change-image-value span {
  overflow-wrap: anywhere;
}

.rating-stars {
  color: #f59e0b;
  font-size: 20px;
  letter-spacing: 1px;
}

.device-created-by {
  color: var(--app-muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.device-created-by a {
  color: var(--app-text);
  font-weight: 600;
  text-decoration: none;
}

.device-created-by a:hover {
  color: var(--app-accent);
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  color: #cbd5e1;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-actions .active {
  color: #fff;
}

.device-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 768px) {
  #device-stack-actions {
    align-items: center;
  }

  #device-stack-actions > .device-admin-actions {
    margin-left: auto;
  }
}

@media (min-width: 768px) {
  .toolbar-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .device-filter-fields {
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto auto;
  }

  .toolbar-row-full {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar-row-split {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .detail-hero {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }

  .device-profile-body {
    align-items: flex-start;
    display: grid;
    grid-template-areas:
      "photo main"
      "purchase main";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .device-profile-main {
    grid-area: main;
    min-width: 0;
    padding-top: 0;
  }

  .device-photo {
    grid-area: photo;
    min-width: 0;
    width: 100%;
  }

  .device-profile-body > [data-device-purchase-button],
  .device-profile-body > [data-device-purchase-suggestion-button] {
    grid-area: purchase;
  }
}

@media (max-width: 767.98px) {
  .resource-grid,
  .review-list {
    grid-template-columns: 1fr;
  }

  .device-list-card,
  .device-list-card-compact {
    grid-template-columns: 1fr;
  }

  .device-list-media {
    height: 200px;
  }

  .device-photo {
    height: 200px;
    max-width: none;
    width: 100%;
  }

  #device-stack-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #device-stack-actions > .btn {
    font-size: 14px;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
    width: 100%;
  }

  #device-stack-actions > [data-stack-status="own"],
  #device-stack-actions > [data-stack-status="owned"],
  #device-stack-actions > [data-stack-status="want"] {
    grid-column: span 2;
  }

  #device-stack-actions > [data-stack-status="recommend"],
  #device-stack-actions > [data-stack-status="not_recommend"] {
    grid-column: span 3;
  }

  #device-stack-actions > .device-admin-actions {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  #device-stack-actions > .device-admin-actions.has-remove-action {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #device-stack-actions > .device-admin-actions .btn {
    width: 100%;
  }

  .device-list-media img {
    height: 100%;
  }

  .brand-profile-body {
    grid-template-columns: 1fr;
  }

  .brand-profile-actions {
    grid-column: 1;
  }

  .brand-stats {
    grid-template-columns: 1fr;
  }

  .brand-stats div + div {
    border-left: 0;
    border-top: 1px solid var(--app-line);
  }

  .brand-tab-stats {
    grid-template-columns: 1fr;
  }

  .brand-tab-stats li + li .brand-tab-stat {
    border-left: 1px solid var(--app-line);
    border-top: 0;
  }

  .brand-device-grid {
    grid-template-columns: 1fr;
  }

  .brand-device-card {
    grid-template-columns: 1fr;
  }

  .brand-device-image {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
  }

}

@media (max-width: 767.98px) {
  .device-driver-spec-grid.has-two,
  .device-driver-spec-grid.has-three {
    grid-template-columns: 1fr;
  }
}

.moderation-summary-row {
  border-bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.moderation-summary-item {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-text);
  text-align: left;
  padding: 12px 14px;
}

.moderation-summary-item.active {
  background: #e4f2ff;
  border-color: rgba(36, 151, 242, 0.4);
  color: var(--app-primary);
}

.moderation-summary-item span {
  color: var(--app-text);
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.moderation-summary-item small {
  color: var(--app-muted);
}

.moderation-queue-tabs {
  margin-top: 4px;
}

.moderation-queue-item {
  align-items: flex-start;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 14px;
}

.moderation-queue-item-video {
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
}

.moderation-queue-item-photo {
  grid-template-columns: 180px minmax(0, 1fr);
}

.moderation-queue-media {
  align-items: center;
  aspect-ratio: 1;
  background: #eaf4ff;
  border-radius: 8px;
  color: var(--app-primary);
  display: flex;
  font-weight: 700;
  justify-content: center;
  overflow: hidden;
}

.moderation-queue-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.moderation-queue-media iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.moderation-queue-media-video {
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.moderation-queue-body {
  min-width: 0;
}

.moderation-queue-kicker,
.moderation-queue-meta {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.moderation-queue-body p {
  color: var(--app-muted);
  display: -webkit-box;
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moderation-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.device-custom-field-option-image-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

@media (min-width: 976px) {
  .device-profile-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .device-photo {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .app-content {
    padding: 16px 24px 24px;
  }
}

@media (max-width: 1599.98px) {
  .app-layout {
    grid-template-columns: 350px minmax(0, 1fr);
  }

  .app-sidebar-right {
    display: none !important;
  }

  .brand-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .app-layout {
    display: block;
  }

  .app-sidebar-left {
    display: none !important;
  }

  .brand-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moderation-summary-row {
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .moderation-queue-item {
    grid-template-columns: 1fr;
  }

  .moderation-queue-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo {
    height: 32px;
    width: 150px;
  }

  .brand-list-grid {
    grid-template-columns: 1fr;
  }

  .global-search-form {
    grid-template-columns: 1fr;
  }

  .global-search-form .btn {
    width: 100%;
  }

}
