/*
 * KernelBox — Troubleshoot Archive V6
 * KB_TROUBLESHOOT_ARCHIVE_V6_CSS
 *
 * هذا الملف مسؤول فقط عن صفحة
 * دليل حل المشاكل.
 */

.troubleshoot-page {
  --ts-card:
    color-mix(
      in srgb,
      var(--surface) 94%,
      var(--bg2)
    );

  --ts-line:
    color-mix(
      in srgb,
      var(--accent) 24%,
      var(--border)
    );
}

.troubleshoot-page .sec-head {
  max-width: 850px;
  margin-bottom: 25px;
}

.troubleshoot-page .sec-head p {
  max-width: 800px;
  line-height: 1.95;
}

/*
 * أقسام أصغر وقابلة للتوسع.
 * عدد الأعمدة يتكيف تلقائيًا مع العرض.
 */
.troubleshoot-page .ts-cats {
  display: grid !important;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(225px, 1fr)
    );

  gap: 10px;

  width: 100%;
  margin-bottom: 27px;
}

.troubleshoot-page .ts-cat-v5 {
  display: grid;
  grid-template-columns:
    44px minmax(0, 1fr) 27px;

  align-items: center;
  gap: 10px;

  min-width: 0;
  min-height: 76px;

  padding: 10px 11px;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--ts-card);
  color: var(--muted);

  text-align: right;
  font-family: var(--font);

  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.troubleshoot-page
.ts-cat-v5:hover {
  transform: translateY(-1px);

  border-color:
    color-mix(
      in srgb,
      var(--accent) 43%,
      var(--border)
    );

  color: var(--text);
}

.troubleshoot-page
.ts-cat-v5.on {
  border-color: var(--accent);

  background:
    color-mix(
      in srgb,
      var(--accent) 9%,
      var(--surface)
    );

  color: var(--text);

  box-shadow:
    inset -3px 0 0
    color-mix(
      in srgb,
      var(--accent) 82%,
      transparent
    );
}

.troubleshoot-page
.ts-cat-v5-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 11px;

  background:
    color-mix(
      in srgb,
      var(--accent) 8%,
      var(--bg2)
    );

  font-size: 1.25rem;
}

.troubleshoot-page
.ts-cat-v5-copy {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.troubleshoot-page
.ts-cat-v5-copy strong {
  overflow: hidden;

  color: inherit;

  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: .87rem;
}

.troubleshoot-page
.ts-cat-v5-copy small {
  color: var(--muted);

  font-size: .68rem;
}

.troubleshoot-page
.ts-cat-v5-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;

  border-radius: 50%;

  background:
    color-mix(
      in srgb,
      var(--accent) 9%,
      var(--bg2)
    );

  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
}

/*
 * KB_TROUBLESHOOT_SPACE_V6_START
 *
 * لوحة القسم والمشكلات في اليمين،
 * ودليل الحل يبدأ من أعلى اليسار.
 */

.troubleshoot-page .ts-cats {
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(190px, 1fr)
    );

  gap: 9px;
}

.troubleshoot-page .ts-cat-v5 {
  grid-template-columns:
    39px minmax(0, 1fr) 25px;

  min-height: 66px;
  padding: 8px 9px;
}

.troubleshoot-page
.ts-cat-v5-icon {
  width: 39px;
  height: 39px;

  border-radius: 10px;

  font-size: 1.1rem;
}

.troubleshoot-page
.ts-cat-v5-state {
  width: 25px;
  height: 25px;
}

.troubleshoot-page #tsIssues {
  display: block !important;

  width: 100%;
  min-width: 0;
}

.troubleshoot-page
.ts-directory-v5 {
  display: grid;

  grid-template-columns:
    minmax(300px, .68fr)
    minmax(0, 1.32fr);

  grid-template-areas:
    "sidebar guide";

  align-items: start;
  gap: 20px;

  width: 100%;
  min-width: 0;
}

.troubleshoot-page
.ts-directory-v5-sidebar {
  grid-area: sidebar;

  display: grid;
  grid-template-rows:
    auto auto minmax(0, 1fr) auto;

  gap: 11px;

  min-width: 0;
  min-height: 0;
  padding: 14px;

  overflow: hidden;

  border: 1px solid var(--ts-line);
  border-radius: 17px;

  background:
    color-mix(
      in srgb,
      var(--surface) 96%,
      var(--bg2)
    );

  box-shadow:
    0 16px 36px
    color-mix(
      in srgb,
      var(--bg) 25%,
      transparent
    );
}

.troubleshoot-page
.ts-directory-v5-head {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;
  gap: 12px;

  padding: 2px 2px 10px;

  border-bottom:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 17%,
      var(--border)
    );
}

.troubleshoot-page
.ts-directory-v5-head > div {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.troubleshoot-page
.ts-directory-v5-head span {
  color: var(--accent);

  font-size: .68rem;
  font-weight: 700;
}

.troubleshoot-page
.ts-directory-v5-head h2 {
  overflow: hidden;

  margin: 0;

  color: var(--text);

  text-overflow: ellipsis;
  white-space: nowrap;

  font-size:
    clamp(
      1.08rem,
      1.6vw,
      1.35rem
    );
}

.troubleshoot-page
.ts-directory-v5-head p {
  margin: 0;

  color: var(--muted);

  font-size: .7rem;
  line-height: 1.6;
}

.troubleshoot-page
.ts-directory-v5-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid var(--ts-line);
  border-radius: 12px;

  background: var(--bg2);
  color: var(--accent);

  font-family: var(--mono);
  font-size: .86rem;
}

.troubleshoot-page
.ts-directory-v5-search {
  position: relative;

  display: grid;
  grid-template-columns:
    27px minmax(0, 1fr) auto;

  align-items: center;
  gap: 7px;

  min-height: 46px;
  padding: 5px 8px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--bg2);

  cursor: text;
}

.troubleshoot-page
.ts-directory-v5-search > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--muted);
}

.troubleshoot-page
.ts-directory-v5-search input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 4px 2px;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--text);

  font-family: var(--font);
  font-size: .78rem;
}

.troubleshoot-page
.ts-directory-v5-search kbd {
  min-width: 28px;
  padding: 4px 7px;

  border: 1px solid var(--ts-line);
  border-radius: 8px;

  background:
    color-mix(
      in srgb,
      var(--accent) 8%,
      var(--surface)
    );

  color: var(--accent);

  text-align: center;
  font-family: var(--mono);
  font-size: .67rem;
}

.troubleshoot-page
.ts-issue-list-v5 {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;

  width: 100%;
  min-width: 0;
  min-height: 0;

  padding-inline-end: 5px;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;

  border-radius: 12px;
}

.troubleshoot-page
.ts-issue-list-v5:not(.has-overflow) {
  padding-inline-end: 0;

  scrollbar-gutter: auto;
}

.troubleshoot-page
.ts-issue-list-v5::-webkit-scrollbar {
  width: 7px;
}

.troubleshoot-page
.ts-issue-list-v5::-webkit-scrollbar-track {
  border-radius: 999px;

  background:
    color-mix(
      in srgb,
      var(--bg2) 72%,
      transparent
    );
}

.troubleshoot-page
.ts-issue-list-v5::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;

  background:
    color-mix(
      in srgb,
      var(--accent) 42%,
      var(--border)
    );

  background-clip: padding-box;
}

.troubleshoot-page
.ts-issue-row-v5 {
  min-height: 62px;
  padding: 8px 9px;
}

.troubleshoot-page
.ts-directory-v5-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 9px 3px 1px;

  border-top:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 14%,
      var(--border)
    );

  color: var(--muted);

  font-size: .66rem;
}

.troubleshoot-page
.ts-directory-v5-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.troubleshoot-page
.ts-directory-v5-foot b {
  color: var(--accent);

  font-family: var(--mono);
  font-size: .72rem;
}

.troubleshoot-page
.ts-issue-empty-v6 {
  display: grid;
  justify-items: center;
  gap: 5px;

  padding: 26px 14px;

  border: 1px dashed var(--border);
  border-radius: 12px;

  color: var(--muted);

  text-align: center;
}

.troubleshoot-page
.ts-issue-empty-v6[hidden] {
  display: none !important;
}

.troubleshoot-page
.ts-issue-empty-v6 span {
  font-size: 1.2rem;
}

.troubleshoot-page
.ts-issue-empty-v6 strong {
  color: var(--text);

  font-size: .8rem;
}

.troubleshoot-page
.ts-issue-empty-v6 small {
  font-size: .68rem;
}

.troubleshoot-page
#tsGuideMount {
  grid-area: guide;

  width: 100%;
  min-width: 0;
}

/* KB_TROUBLESHOOT_SPACE_V6_END */

/*
 * دليل الحل.
 */
.troubleshoot-page
.ts-guide-v5 {
  overflow: hidden;

  width: 100%;

  border: 1px solid var(--ts-line);
  border-radius: 17px;

  background:
    color-mix(
      in srgb,
      var(--surface) 96%,
      var(--bg2)
    );

  box-shadow:
    0 17px 38px
    color-mix(
      in srgb,
      var(--bg) 30%,
      transparent
    );
}

.troubleshoot-page
.ts-guide-v5-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  padding: 20px 22px;

  border-bottom:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 18%,
      var(--border)
    );

  background:
    linear-gradient(
      135deg,
      color-mix(
        in srgb,
        var(--accent) 8%,
        var(--surface)
      ),
      var(--surface)
    );
}

.troubleshoot-page
.ts-guide-v5-head > div:first-child {
  display: grid;
  gap: 5px;
}

.troubleshoot-page
.ts-guide-v5-eyebrow {
  color: var(--accent);

  font-size: .72rem;
  font-weight: 700;
}

.troubleshoot-page
.ts-guide-v5-head h3 {
  margin: 0;

  color: var(--text);

  font-size:
    clamp(
      1.18rem,
      1.9vw,
      1.55rem
    );

  line-height: 1.5;
}

.troubleshoot-page
.ts-guide-v5-head p {
  margin: 0;

  color: var(--muted);

  font-size: .82rem;
  line-height: 1.7;
}

.troubleshoot-page
.ts-guide-v5-meta {
  display: grid;
  gap: 4px;

  flex: 0 0 auto;

  min-width: 108px;
  padding: 10px 12px;

  border: 1px solid var(--ts-line);
  border-radius: 11px;

  background: var(--bg2);

  text-align: center;
}

.troubleshoot-page
.ts-guide-v5-meta span {
  color: var(--muted);

  font-size: .66rem;
}

.troubleshoot-page
.ts-guide-v5-meta b {
  color: var(--accent);

  font-size: .82rem;
}

.troubleshoot-page
.ts-guide-v5-body {
  padding: 21px 22px 23px;
}

.troubleshoot-page
.ts-guide-v5-steps {
  display: grid;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.troubleshoot-page
.ts-guide-v5-steps li {
  display: grid;
  grid-template-columns:
    39px minmax(0, 1fr);

  align-items: start;
  gap: 11px;

  margin: 0;
  padding: 11px 12px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--border) 87%,
      transparent
    );

  border-radius: 11px;

  background:
    color-mix(
      in srgb,
      var(--bg2) 68%,
      transparent
    );
}

.troubleshoot-page
.ts-guide-v5-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 39px;
  height: 39px;

  border-radius: 10px;

  background:
    color-mix(
      in srgb,
      var(--accent) 12%,
      var(--surface)
    );

  color: var(--accent);

  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 800;
}

.troubleshoot-page
.ts-guide-v5-steps p {
  align-self: center;

  margin: 0;

  color: var(--text);

  font-size: .89rem;
  line-height: 1.85;
}

.troubleshoot-page
.ts-guide-v5-assistant {
  display: grid;
  grid-template-columns:
    45px minmax(0, 1fr) auto;

  align-items: center;
  gap: 13px;

  margin-top: 16px;
  padding: 13px 14px;

  border: 1px solid var(--ts-line);
  border-radius: 13px;

  background:
    color-mix(
      in srgb,
      var(--accent) 6%,
      var(--surface)
    );
}

.troubleshoot-page
.ts-guide-v5-assistant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  border-radius: 11px;

  background: var(--bg2);

  font-size: 1.2rem;
}

.troubleshoot-page
.ts-guide-v5-assistant > div {
  display: grid;
  gap: 3px;
}

.troubleshoot-page
.ts-guide-v5-assistant strong {
  color: var(--text);

  font-size: .86rem;
}

.troubleshoot-page
.ts-guide-v5-assistant p {
  margin: 0;

  color: var(--muted);

  font-size: .73rem;
  line-height: 1.65;
}

.troubleshoot-page
.ts-guide-v5-assistant a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 9px 11px;

  border: 1px solid var(--ts-line);
  border-radius: 9px;

  background:
    color-mix(
      in srgb,
      var(--accent) 10%,
      var(--surface)
    );

  color: var(--accent);

  white-space: nowrap;

  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.troubleshoot-page
.ts-guide-v5-assistant a:hover {
  border-color: var(--accent);
}

.troubleshoot-page
.ts-archive-error {
  padding: 20px;

  border: 1px solid #d15b5b;
  border-radius: 12px;

  background:
    color-mix(
      in srgb,
      #d15b5b 8%,
      var(--surface)
    );

  color: var(--text);
}

/*
 * الشاشات المتوسطة والجوال.
 */
@media (max-width: 1100px) {
  .troubleshoot-page
  .ts-directory-v5 {
    grid-template-columns:
      minmax(0, 1fr);

    grid-template-areas:
      "sidebar"
      "guide";
  }

  .troubleshoot-page
  .ts-directory-v5-sidebar {
    max-height: none !important;
  }

  .troubleshoot-page
  .ts-issue-list-v5 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    max-height: none !important;

    padding-inline-end: 0;

    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 620px) {
  .troubleshoot-page .ts-cats {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .troubleshoot-page
  .ts-cat-v5-copy strong,
  .troubleshoot-page
  .ts-directory-v5-head h2 {
    white-space: normal;
  }

  .troubleshoot-page
  .ts-issue-list-v5 {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .troubleshoot-page
  .ts-directory-v5-sidebar {
    padding: 11px;

    border-radius: 14px;
  }

  .troubleshoot-page
  .ts-directory-v5-head {
    grid-template-columns:
      minmax(0, 1fr) 38px;
  }

  .troubleshoot-page
  .ts-directory-v5-total {
    width: 38px;
    height: 38px;
  }

  .troubleshoot-page
  .ts-directory-v5-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .troubleshoot-page
  .ts-guide-v5-head {
    align-items: flex-start;
    flex-direction: column;

    padding: 16px;
  }

  .troubleshoot-page
  .ts-guide-v5-meta {
    display: flex;
    justify-content: space-between;

    width: 100%;
    min-width: 0;
  }

  .troubleshoot-page
  .ts-guide-v5-body {
    padding: 15px;
  }

  .troubleshoot-page
  .ts-guide-v5-steps li {
    grid-template-columns:
      35px minmax(0, 1fr);

    gap: 9px;
    padding: 10px;
  }

  .troubleshoot-page
  .ts-guide-v5-step-number {
    width: 35px;
    height: 35px;
  }

  .troubleshoot-page
  .ts-guide-v5-assistant {
    grid-template-columns:
      40px minmax(0, 1fr);
  }

  .troubleshoot-page
  .ts-guide-v5-assistant-icon {
    width: 40px;
    height: 40px;
  }

  .troubleshoot-page
  .ts-guide-v5-assistant a {
    grid-column: 1 / -1;

    justify-content: center;

    width: 100%;
  }
}

/* KB_TROUBLESHOOT_NATURAL_FLOW_V7_START */

/*
 * لا يوجد سكرول داخلي في قائمة المشكلات.
 * تمرير عجلة الماوس ينتقل للصفحة طبيعيًا
 * مهما كان موضع المؤشر.
 */
.troubleshoot-page
.ts-directory-v5-sidebar {
  max-height: none !important;
  min-height: 0;

  overflow: visible !important;
}

.troubleshoot-page
.ts-issue-list-v5 {
  max-height: none !important;
  min-height: 0;

  padding-inline-end: 0 !important;

  overflow: visible !important;

  overscroll-behavior:
    auto !important;

  scrollbar-gutter:
    auto !important;
}

.troubleshoot-page
.ts-issue-list-v5::-webkit-scrollbar {
  display: none;
}

/*
 * إعادة التصميم الكامل الذي فُقد من
 * بطاقات المشكلات في التعديل السابق.
 */
.troubleshoot-page
.ts-issue-row-v5 {
  appearance: none;
  -webkit-appearance: none;

  display: grid;

  grid-template-columns:
    43px minmax(0, 1fr) 25px;

  align-items: center;
  gap: 10px;

  width: 100%;
  min-width: 0;
  min-height: 66px;

  margin: 0;
  padding: 9px 10px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--border) 88%,
      transparent
    );

  border-radius: 12px;

  background:
    color-mix(
      in srgb,
      var(--surface) 91%,
      var(--bg2)
    );

  color: var(--muted);

  opacity: 1;
  filter: none;

  text-align: right;
  font-family: var(--font);

  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.troubleshoot-page
.ts-issue-row-v5:hover {
  transform: translateX(-1px);

  border-color:
    color-mix(
      in srgb,
      var(--accent) 48%,
      var(--border)
    );

  background:
    color-mix(
      in srgb,
      var(--accent) 6%,
      var(--surface)
    );

  color: var(--text);
}

.troubleshoot-page
.ts-issue-row-v5.is-active {
  border-color: var(--accent);

  background:
    color-mix(
      in srgb,
      var(--accent) 10%,
      var(--surface)
    );

  color: var(--text);

  box-shadow:
    inset -3px 0 0
    color-mix(
      in srgb,
      var(--accent) 82%,
      transparent
    );
}

.troubleshoot-page
.ts-issue-row-v5-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  height: 43px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 28%,
      var(--border)
    );

  border-radius: 11px;

  background: var(--bg2);
  color: var(--accent);

  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
}

.troubleshoot-page
.ts-issue-row-v5-copy {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.troubleshoot-page
.ts-issue-row-v5-copy strong {
  color: inherit;

  font-size: .82rem;
  font-weight: 700;
  line-height: 1.55;
}

.troubleshoot-page
.ts-issue-row-v5-copy small {
  color: var(--muted);

  font-size: .66rem;
  line-height: 1.45;
}

.troubleshoot-page
.ts-issue-row-v5-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);

  font-size: .87rem;

  transition:
    transform .16s ease;
}

.troubleshoot-page
.ts-issue-row-v5:hover
.ts-issue-row-v5-arrow,
.troubleshoot-page
.ts-issue-row-v5.is-active
.ts-issue-row-v5-arrow {
  transform: translateX(-3px);
}

/*
 * القائمة والدليل يبدآن من الأعلى،
 * ويستمر طول الصفحة حسب المحتوى.
 */
.troubleshoot-page
.ts-directory-v5 {
  align-items: start;
}

.troubleshoot-page
#tsGuideMount {
  align-self: start;
}

/*
 * إصلاح مظهر الأزرار في الوضع الفاتح.
 */
html[data-theme="light"]
.troubleshoot-page
.ts-issue-row-v5 {
  background:
    color-mix(
      in srgb,
      var(--surface) 97%,
      var(--bg2)
    );
}

@media (max-width: 1100px) {
  .troubleshoot-page
  .ts-issue-list-v5 {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }
}

@media (max-width: 620px) {
  .troubleshoot-page
  .ts-issue-list-v5 {
    grid-template-columns:
      minmax(0, 1fr);
  }
}

/* KB_TROUBLESHOOT_NATURAL_FLOW_V7_END */

/* KB_TROUBLESHOOT_SEARCH_V8_START */

/*
 * مكوّن بحث واضح ومستقل.
 * الاتجاه الخارجي LTR لضبط ترتيب:
 * العداد، المسح، الحقل، الأيقونة.
 */
.troubleshoot-page
.ts-search-v8 {
  display: grid;

  grid-template-columns:
    auto 32px minmax(0, 1fr) 34px;

  grid-template-areas:
    "count clear input icon";

  align-items: center;
  gap: 7px;

  width: 100%;
  min-width: 0;
  min-height: 50px;

  padding: 6px 8px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 28%,
      var(--border)
    );

  border-radius: 13px;

  background:
    color-mix(
      in srgb,
      var(--bg2) 93%,
      var(--surface)
    );

  direction: ltr;

  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.troubleshoot-page
.ts-search-v8:focus-within {
  border-color: var(--accent);

  background:
    color-mix(
      in srgb,
      var(--accent) 5%,
      var(--bg2)
    );

  box-shadow:
    0 0 0 3px
    color-mix(
      in srgb,
      var(--accent) 14%,
      transparent
    );
}

.troubleshoot-page
.ts-search-v8-icon {
  grid-area: icon;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  background:
    color-mix(
      in srgb,
      var(--accent) 9%,
      transparent
    );

  color: var(--accent);

  pointer-events: none;
}

.troubleshoot-page
.ts-search-v8 input[type="search"] {
  grid-area: input;

  appearance: none !important;
  -webkit-appearance: none !important;

  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;

  margin: 0 !important;
  padding: 5px 4px !important;

  border: 0 !important;
  outline: 0 !important;

  background: transparent !important;
  color: var(--text) !important;

  opacity: 1 !important;
  visibility: visible !important;

  text-align: right;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 500;
}

.troubleshoot-page
.ts-search-v8 input[type="search"]::placeholder {
  color:
    color-mix(
      in srgb,
      var(--muted) 88%,
      transparent
    );

  opacity: 1;
}

.troubleshoot-page
.ts-search-v8
input[type="search"]::-webkit-search-cancel-button,
.troubleshoot-page
.ts-search-v8
input[type="search"]::-webkit-search-decoration {
  display: none !important;

  width: 0 !important;
  height: 0 !important;

  -webkit-appearance: none !important;
  appearance: none !important;
}

.troubleshoot-page
.ts-search-v8-clear {
  grid-area: clear;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  padding: 0;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--surface);
  color: var(--muted);

  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1;

  cursor: pointer;
}

.troubleshoot-page
.ts-search-v8-clear:hover {
  border-color: var(--accent);
  color: var(--text);
}

.troubleshoot-page
.ts-search-v8-clear[hidden] {
  display: none !important;
}

.troubleshoot-page
.ts-search-v8-count {
  grid-area: count;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 58px;
  min-height: 30px;
  padding: 4px 8px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 30%,
      var(--border)
    );

  border-radius: 9px;

  background:
    color-mix(
      in srgb,
      var(--accent) 7%,
      var(--surface)
    );

  color: var(--accent);

  white-space: nowrap;

  font-family: var(--font);
  font-size: .65rem;
  font-weight: 700;
}

.troubleshoot-page
.ts-issue-row-v5[hidden] {
  display: none !important;
}

.troubleshoot-page
#tsGuideMount[hidden] {
  display: none !important;
}

.troubleshoot-page
.ts-issue-empty-v8 {
  display: grid;
  justify-items: center;
  gap: 7px;

  width: 100%;
  padding: 25px 14px;

  border:
    1px dashed
    color-mix(
      in srgb,
      var(--accent) 23%,
      var(--border)
    );

  border-radius: 12px;

  background:
    color-mix(
      in srgb,
      var(--surface) 90%,
      var(--bg2)
    );

  color: var(--muted);

  text-align: center;
}

.troubleshoot-page
.ts-issue-empty-v8[hidden] {
  display: none !important;
}

.troubleshoot-page
.ts-issue-empty-v8 > span {
  font-size: 1.3rem;
}

.troubleshoot-page
.ts-issue-empty-v8 strong {
  color: var(--text);

  font-size: .82rem;
}

.troubleshoot-page
.ts-issue-empty-v8 small {
  max-width: 280px;

  font-size: .68rem;
  line-height: 1.6;
}

.troubleshoot-page
.ts-issue-empty-v8 button {
  margin-top: 5px;
  padding: 7px 11px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 42%,
      var(--border)
    );

  border-radius: 9px;

  background:
    color-mix(
      in srgb,
      var(--accent) 9%,
      var(--surface)
    );

  color: var(--text);

  font-family: var(--font);
  font-size: .7rem;
  font-weight: 700;

  cursor: pointer;
}

/*
 * إلغاء نهائي لأي بقايا سكرول داخلي
 * أو ارتفاع محسوب من النسخ السابقة.
 */
.troubleshoot-page
.ts-directory-v5-sidebar,
.troubleshoot-page
.ts-issue-list-v5 {
  max-height: none !important;

  overflow: visible !important;

  overscroll-behavior:
    auto !important;

  scrollbar-gutter:
    auto !important;
}

@media (max-width: 520px) {
  .troubleshoot-page
  .ts-search-v8 {
    grid-template-columns:
      30px minmax(0, 1fr) 34px;

    grid-template-areas:
      "clear input icon"
      "count count count";
  }

  .troubleshoot-page
  .ts-search-v8-count {
    width: 100%;
  }
}

/* KB_TROUBLESHOOT_SEARCH_V8_END */
