/* Qorg‘on v17 — Ustaxona fokus / o‘zbekcha UX */

.runtime-status-chip { display: none !important; }

.workshop-dashboard.v17 .workshop-content { min-width: 0; }

.paths-page-v17,
.path-detail-v17 { padding: 22px; }

.paths-note-v17 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft, rgba(127,127,127,.18));
  border-radius: 14px;
  background: var(--glass-bg-strong);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
}
.paths-note-v17 > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.paths-note-v17 div { display: grid; gap: 2px; }
.paths-note-v17 strong { font-size: 13px; }
.paths-note-v17 span { color: var(--text-muted, #7d8795); font-size: 12px; line-height: 1.4; }

.paths-list-v17 { display: grid; gap: 8px; }
.path-row-v17 {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 190px) 20px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-soft, rgba(127,127,127,.16));
  border-radius: 14px;
  background: var(--glass-bg-strong);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  text-align: left;
  cursor: pointer;
}
.path-row-v17:hover { background: var(--panel-hover, rgba(127,127,127,.07)); }
.path-icon-v17 {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(95, 151, 255, .12);
}
.path-icon-v17 svg { width: 20px; height: 20px; }
.path-icon-v17.accent-violet { background: rgba(140, 100, 255, .13); }
.path-icon-v17.accent-orange { background: rgba(255, 153, 70, .14); }
.path-icon-v17.accent-blue { background: rgba(73, 135, 255, .14); }
.path-copy-v17 { min-width: 0; display: grid; gap: 2px; }
.path-copy-v17 small { color: var(--text-muted, #7d8795); font-size: 11px; }
.path-copy-v17 strong { font-size: 14px; }
.path-copy-v17 em { font-style: normal; color: var(--text-muted, #7d8795); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path-progress-v17 { display: grid; gap: 4px; justify-items: end; }
.path-progress-v17 small { color: var(--text-muted, #7d8795); font-size: 11px; }
.path-progress-v17 strong { font-size: 13px; }
.path-progress-v17 > i { width: 100%; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(127,127,127,.16); }
.path-progress-v17 > i > b { display: block; height: 100%; border-radius: inherit; background: currentColor; }

.path-hero-v17 {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 16px;
  align-items: start;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line-soft, rgba(127,127,127,.16));
  border-radius: 16px;
  background: var(--glass-bg-strong);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
}
.path-hero-v17 > .path-icon-v17 { width: 58px; height: 58px; border-radius: 17px; }
.path-hero-v17 > div { display: grid; gap: 5px; }
.path-hero-v17 small { color: var(--text-muted, #7d8795); }
.path-hero-v17 h1 { margin: 0; font-size: 22px; }
.path-hero-v17 p { margin: 0; color: var(--text-muted, #7d8795); line-height: 1.5; }
.path-hero-v17 > div > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-top: 6px; }
.path-hero-v17 > div > div > span { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(127,127,127,.16); }
.path-hero-v17 > div > div > span > i { display: block; height: 100%; border-radius: inherit; background: currentColor; }

.path-stages-v17 {
  border: 1px solid var(--line-soft, rgba(127,127,127,.16));
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg-strong);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
}
.path-stages-v17 > header { display: flex; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line-soft, rgba(127,127,127,.14)); }
.path-stages-v17 > header span { color: var(--text-muted, #7d8795); font-size: 12px; }
.path-stages-v17 > div { display: grid; }
.path-stages-v17 button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft, rgba(127,127,127,.1));
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.path-stages-v17 button:last-child { border-bottom: 0; }
.path-stages-v17 button:hover { background: var(--panel-hover, rgba(127,127,127,.07)); }
.path-stages-v17 button > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(127,127,127,.1); font-size: 12px; }
.path-stages-v17 button.done > b { background: rgba(55, 190, 110, .14); }
.path-stages-v17 button > span { min-width: 0; display: grid; gap: 1px; }
.path-stages-v17 button small,
.path-stages-v17 button em { color: var(--text-muted, #7d8795); font-size: 11px; font-style: normal; }
.path-stages-v17 button strong { font-size: 13px; }

.home-path-v17 {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}
.home-path-v17 > button:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) minmax(90px,160px) 18px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-soft, rgba(127,127,127,.16));
  border-radius: 14px;
  background: var(--glass-bg-strong);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  text-align: left;
  cursor: pointer;
}
.home-path-v17 > button:first-child > div { display: grid; gap: 1px; min-width: 0; }
.home-path-v17 > button:first-child small { color: var(--text-muted, #7d8795); font-size: 10px; letter-spacing: .04em; }
.home-path-v17 > button:first-child strong { font-size: 13px; }
.home-path-v17 > button:first-child em { color: var(--text-muted, #7d8795); font-style: normal; font-size: 11px; }
.home-path-v17 > button:first-child > span:not(.path-icon-v17) { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(127,127,127,.15); }
.home-path-v17 > button:first-child > span:not(.path-icon-v17) i { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.home-tools-v17 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line-soft, rgba(127,127,127,.16));
  border-radius: 14px;
  background: var(--glass-bg-strong);
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  cursor: pointer;
}
.tool-actions-v17 { display: flex; gap: 8px; margin-top: 14px; }
.tool-actions-v17 > button { flex: 1; justify-content: center; }

/* v19.1 — ordinary Workshop copy follows the same readable scale as chat text. */
.app-shell.portal-active:not(.media-active) {
  --workshop-copy-scale: var(--message-scale, 1);
}

.app-shell.portal-active:not(.media-active) .context-title-v16 span {
  font-size: calc(10.5px * var(--workshop-copy-scale));
}

.app-shell.portal-active:not(.media-active) .context-title-v16 p {
  font-size: calc(12px * var(--workshop-copy-scale));
  line-height: 1.4;
}

.app-shell.portal-active:not(.media-active) .primary-context-action-v16,
.app-shell.portal-active:not(.media-active) .competition-tabs-v16 button,
.app-shell.portal-active:not(.media-active) .competition-context-tabs-v16 button {
  font-size: calc(11.5px * var(--workshop-copy-scale));
}

.app-shell.portal-active:not(.media-active) .competition-row-v16 {
  min-height: 76px;
}

.app-shell.portal-active:not(.media-active) .competition-copy-v16 strong {
  font-size: calc(14px * var(--workshop-copy-scale));
}

.app-shell.portal-active:not(.media-active) .competition-copy-v16 small,
.app-shell.portal-active:not(.media-active) .competition-row-v16 > span > small {
  font-size: calc(11px * var(--workshop-copy-scale));
}

.app-shell.portal-active:not(.media-active) .competition-copy-v16 em {
  font-size: calc(10px * var(--workshop-copy-scale));
}

.app-shell.portal-active:not(.media-active) .competition-row-v16 > span:not(.competition-copy-v16) > strong {
  font-size: calc(12.5px * var(--workshop-copy-scale));
}

@media (max-width: 900px) {
  .path-row-v17 { grid-template-columns: 40px minmax(0,1fr) 20px; }
  .path-progress-v17 { grid-column: 2 / 3; justify-items: stretch; }
  .path-row-v17 > svg { grid-column: 3; grid-row: 1 / 3; }
  .home-path-v17 { grid-template-columns: 1fr; }
  .home-tools-v17 { min-height: 42px; justify-content: center; }
}
