.ai-picker-page {
  --picker-blue: #1769ff;
  --picker-blue-dark: #0e4fc7;
  --picker-cyan: #0f9fa5;
  --picker-ink: #071326;
  --picker-muted: #5d6f8b;
  --picker-border: #cfdbec;
  --picker-soft: #eef5ff;
  --picker-white: rgba(255, 255, 255, 0.94);
  --picker-container: 1280px;
  --picker-gutter: 40px;
}

.ai-picker-page .site-header {
  width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
  margin-bottom: 0;
}

.ai-picker-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.ai-picker-main {
  width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
  min-width: 0;
  margin: 0 auto;
  padding: 76px 0 64px;
}

.ai-picker-page[data-ranking-task] .ai-picker-main {
  width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
}

.ai-picker-main a:focus-visible,
.ai-picker-main button:focus-visible,
.ai-picker-main input:focus-visible,
.ai-picker-main select:focus-visible,
.ai-picker-main textarea:focus-visible,
.ranking-row:focus-visible,
.selected-model-panel:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.34);
  outline-offset: 3px;
}

.ai-picker-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--picker-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.ai-picker-breadcrumbs a {
  color: var(--picker-blue-dark);
  text-decoration: none;
}

.ai-picker-breadcrumbs span[aria-hidden="true"] {
  color: #95a4b9;
}

.ai-picker-hero {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 900px;
  margin-bottom: 36px;
}

.ai-picker-kicker {
  width: fit-content;
  margin: 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: #e9f2ff;
  color: #075bc8;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.podobrat-ai-page .ai-picker-hero h1 {
  min-width: 0;
  max-width: min(100%, 980px);
  margin: 0;
  color: var(--picker-ink);
  font-size: 4.35rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ai-picker-hero p {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  margin: 0;
  color: var(--picker-muted);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-picker-hero .ai-picker-kicker {
  width: fit-content;
  max-width: 100%;
}

.task-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.task-direction-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: var(--picker-white);
  box-shadow: 0 20px 48px rgba(48, 77, 117, 0.12);
}

.task-direction-card.is-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(214px, 0.82fr);
  grid-column: 1 / -1;
  min-height: 340px;
  border-color: #75a8ff;
}

.task-direction-card.has-media:not(.is-primary) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.9fr);
}

.task-direction-card.is-available {
  min-height: 300px;
}

.task-direction-card.is-available.is-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.task-direction-card.is-available:not(.has-media)::after {
  position: absolute;
  right: -54px;
  bottom: -66px;
  width: 190px;
  height: 190px;
  border: 1px solid #d7e5f5;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.task-direction-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 17px;
  padding: 34px;
}

.task-direction-card.is-available .task-direction-copy {
  height: 100%;
  padding: 28px;
}

.task-direction-card.is-available .task-card-action {
  z-index: 1;
  margin-top: auto;
}

.task-direction-card.is-soon .task-direction-copy {
  height: 100%;
  justify-content: flex-start;
  padding: 28px;
}

.task-direction-copy h2 {
  margin: 0;
  color: var(--picker-ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.task-direction-card.is-primary .task-direction-copy h2 {
  font-size: clamp(2rem, 2.25vw, 2.25rem);
  overflow-wrap: normal;
  word-break: normal;
}

.task-direction-card:not(.is-primary) .task-direction-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.task-direction-copy p {
  margin: 0;
  color: var(--picker-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.picker-section-hero {
  max-width: 940px;
}

.picker-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.picker-section-card {
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: var(--picker-white);
  box-shadow: 0 18px 44px rgba(48, 77, 117, 0.1);
}

.picker-section-number {
  margin: 0;
  color: var(--picker-blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.picker-section-card h2 {
  margin: 0;
  color: var(--picker-ink);
  font-size: 1.72rem;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.picker-section-card > p:not(.picker-section-number) {
  margin: 0;
  color: var(--picker-muted);
  line-height: 1.55;
}

.picker-section-facts {
  display: grid;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.picker-section-facts li {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid #e4ebf4;
}

.picker-section-facts li::before {
  content: none;
}

.picker-section-facts strong {
  color: var(--picker-ink);
  font-size: 0.9rem;
  line-height: 1.3;
}

.picker-section-facts span {
  color: var(--picker-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.picker-section-card .task-card-action {
  width: 100%;
  margin-top: auto;
}

.task-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-tag-list li,
.status-pill {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--picker-soft);
  color: #215789;
  font-size: 0.78rem;
  font-weight: 800;
}

.task-tag-list > li {
  padding-left: 11px;
}

.picker-related-list > li {
  padding-left: 0;
}

.task-tag-list > li::before,
.picker-related-list > li::before {
  content: none;
}

.task-card-action,
.picker-primary-button,
.picker-secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.task-card-action,
.picker-primary-button {
  background: var(--picker-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.22);
}

.task-card-action:hover,
.picker-primary-button:hover {
  background: var(--picker-blue-dark);
  color: #fff;
}

.picker-secondary-button {
  border-color: var(--picker-border);
  background: #fff;
  color: var(--picker-ink);
}

.picker-secondary-button:hover {
  border-color: #87a9d8;
  color: #075bc8;
}

.task-direction-media {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #eef6ff;
}

.task-direction-media > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.task-direction-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.task-image-collage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  overflow: hidden;
  background: #eff6ff;
}

.task-collage-frame {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 46, 83, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 22px rgba(33, 69, 118, 0.12);
}

.task-collage-frame::before,
.task-collage-frame::after {
  position: absolute;
  display: block;
  content: "";
}

.task-collage-frame--sky {
  grid-column: 1 / -1;
  background: #dcecff;
}

.task-collage-frame--sky::before {
  inset: 18% 16% 16% 16%;
  border: 2px solid rgba(24, 88, 180, 0.48);
  border-radius: 6px;
}

.task-collage-frame--sky::after {
  right: 13%;
  bottom: 14%;
  width: 42%;
  height: 42%;
  border: 2px solid rgba(24, 88, 180, 0.48);
  border-radius: 50% 50% 8px 8px;
  transform: rotate(-16deg);
}

.task-collage-frame--coral {
  background: #f2d8ce;
}

.task-collage-frame--coral::before {
  inset: 16% 23%;
  border: 2px solid rgba(164, 75, 55, 0.56);
  border-radius: 48% 48% 10px 10px;
}

.task-collage-frame--coral::after {
  top: 14%;
  left: 18%;
  width: 18%;
  height: 70%;
  border: 2px solid rgba(164, 75, 55, 0.5);
  border-radius: 10px;
}

.task-collage-frame--ink {
  background: #17253b;
}

.task-collage-frame--ink::before {
  inset: 20% 18%;
  border: 1px solid rgba(176, 209, 255, 0.62);
  border-radius: 6px;
}

.task-collage-frame--ink::after {
  top: 35%;
  left: 28%;
  width: 44%;
  height: 1px;
  background: rgba(176, 209, 255, 0.8);
  box-shadow: 0 13px 0 rgba(176, 209, 255, 0.55), 0 -13px 0 rgba(176, 209, 255, 0.45);
}

.task-collage-mark {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(13, 37, 71, 0.16);
}

.task-collage-mark--one {
  top: 25%;
  right: 22%;
  background: #7066ed;
}

.task-collage-mark--two {
  bottom: 20%;
  left: 25%;
  background: #18a4b2;
}

.task-direction-card.is-soon {
  min-height: 340px;
}

.task-direction-card.is-soon::after {
  position: absolute;
  right: -44px;
  bottom: -48px;
  width: 170px;
  height: 170px;
  border: 1px solid #d7e5f5;
  border-radius: 50%;
  content: "";
}

.task-direction-card.is-soon .status-pill {
  margin-top: auto;
  background: #e9f6f6;
  color: #08747b;
}

.picker-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: var(--picker-border);
}

.picker-path-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.picker-path-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--picker-blue-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.picker-path-step > div > strong,
.picker-path-step > div > span {
  display: block;
}

.picker-path-step > div > strong {
  color: var(--picker-ink);
}

.picker-path-step > div > span {
  margin-top: 3px;
  color: var(--picker-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.ranking-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.ranking-task-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  width: min(100%, 780px);
  padding: 4px;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: rgba(235, 242, 252, 0.9);
}

.ranking-task-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--picker-ink);
  font: inherit;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: normal;
  text-align: center;
  text-decoration: none;
  word-break: normal;
}

.ranking-task-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--picker-blue-dark);
}

.ranking-task-tab[aria-current="page"] {
  background: var(--picker-blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(23, 105, 255, 0.2);
}

.ranking-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: -6px 0 0;
  color: var(--picker-muted);
  font-size: 0.9rem;
}

.ranking-source-line a {
  color: var(--picker-blue-dark);
  font-weight: 800;
}

.ranking-trust-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.ranking-trust-line.has-status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ranking-trust-line > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 14px 16px;
  border-left: 1px solid var(--picker-border);
}

.ranking-trust-line > div:first-child {
  border-left: 0;
}

.ranking-trust-line dt {
  color: #657791;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.ranking-trust-line dd {
  min-width: 0;
  margin: 0;
  color: var(--picker-ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

[data-ranking-sources] {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ranking-filters {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) repeat(2, minmax(190px, 0.85fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: var(--picker-white);
}

.ranking-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ranking-field label,
.ranking-check span {
  color: #34435c;
  font-size: 0.8rem;
  font-weight: 900;
}

.ranking-field input,
.ranking-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--picker-border);
  border-radius: 6px;
  background: #fff;
  color: var(--picker-ink);
  padding: 9px 11px;
  font: inherit;
}

.ranking-field select {
  min-width: 0;
  padding-right: 34px;
  text-overflow: ellipsis;
}

.ranking-check {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--picker-border);
  border-radius: 6px;
  background: #fff;
}

.ranking-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--picker-blue);
}

/* Keep binary controls compact even when the compatibility layer annotates a broad wrapper as a filter bar. */
.podobrat-ai-page .ai-filter-bar input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.ranking-panel,
.selected-model-panel {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: var(--picker-white);
  box-shadow: 0 16px 38px rgba(43, 72, 111, 0.08);
}

.ranking-result-count {
  margin: 0;
  padding: 14px 16px 0;
  color: var(--picker-muted);
  font-size: 0.88rem;
}

.ranking-grid-header,
.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(180px, 1.5fr) minmax(104px, 0.72fr) minmax(118px, 0.82fr) 104px minmax(132px, 1fr) 104px;
  gap: 10px;
  align-items: center;
}

.ranking-row > * {
  min-width: 0;
}

.ranking-grid-header {
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--picker-border);
  color: #62738d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  min-height: 104px;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e8f3;
  cursor: default;
  scroll-margin-top: 96px;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover,
.ranking-row.is-selected {
  background: #f3f7ff;
}

.ranking-row.is-selected {
  box-shadow: inset 4px 0 0 var(--picker-blue);
}

.ranking-rank {
  color: var(--picker-blue-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.ranking-model {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.provider-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  background: #fff;
  color: var(--picker-blue-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.provider-mark img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.provider-visual {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.provider-visual > * {
  grid-area: 1 / 1;
}

.provider-visual [hidden] {
  display: none !important;
}

.provider-monogram {
  display: block;
  max-width: 34px;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-model-head .provider-mark img {
  width: 32px;
  height: 32px;
}

.ranking-model strong,
.ranking-model small {
  display: block;
}

.ranking-model strong {
  overflow-wrap: anywhere;
  color: var(--picker-ink);
  line-height: 1.2;
}

.ranking-model small {
  margin-top: 4px;
  color: var(--picker-muted);
}

.ranking-quality strong,
.ranking-price strong,
.ranking-release .ranking-mobile-value > time,
.ranking-release .ranking-mobile-value > span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--picker-ink);
}

.ranking-quality small,
.ranking-price small,
.ranking-release small {
  color: var(--picker-muted);
}

.ranking-release .ranking-mobile-value > time,
.ranking-release .ranking-mobile-value > span {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

.ranking-mobile-label {
  display: none;
}

.ranking-mobile-value,
.ranking-scenarios {
  min-width: 0;
}

.quality-meter {
  width: 100%;
  height: 5px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf6;
}

.quality-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--picker-blue), var(--picker-cyan));
}

.scenario-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-chip-list li {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: #315b8d;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
}

.scenario-chip-list li::before {
  content: none !important;
}

.ranking-row-action {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid #8aafe6;
  border-radius: 999px;
  background: #fff;
  color: var(--picker-blue-dark);
  padding: 8px 10px;
  font: inherit;
  font-weight: 900;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}

.ranking-row-source {
  display: inline-flex;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--picker-border);
  border-radius: 999px;
  background: #f7f9fc;
  color: #40526d;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.ranking-row-source:hover {
  border-color: #87a9d8;
  color: var(--picker-blue-dark);
}

.ranking-row-action.is-unavailable,
.ranking-row-action:disabled {
  border-color: #d9e1ec;
  background: #f3f5f8;
  color: #718096;
  cursor: not-allowed;
  pointer-events: none;
  white-space: normal;
}

.picker-state-message {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 16px 0;
  border: 1px solid #9ab8e4;
  border-left: 4px solid var(--picker-blue);
  border-radius: 6px;
  background: #f2f7ff;
  padding: 14px;
}

.picker-state-message[hidden] {
  display: none;
}

.picker-state-message p {
  min-width: min(100%, 320px);
  flex: 1 1 360px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #29496f;
  line-height: 1.45;
}

.ranking-empty {
  padding: 48px 22px;
  color: var(--picker-muted);
  text-align: center;
}

.ranking-more-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid #e0e8f3;
}

.selected-model-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
  scroll-margin-top: 96px;
  padding: 20px;
}

.selected-model-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.selected-model-head .provider-mark {
  width: 48px;
  height: 48px;
}

.selected-model-release {
  margin: -6px 0 0;
  color: var(--picker-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.selected-model-head > div {
  min-width: 0;
}

.podobrat-ai-page .selected-model-head h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--picker-ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.selected-model-head p,
.selected-model-summary,
.selected-model-note {
  margin: 0;
  color: var(--picker-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.selected-model-prompt {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  border: 1px solid var(--picker-border);
  border-radius: 6px;
  background: #f7f9fc;
  color: #26364f;
  padding: 12px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
}

.selected-model-actions {
  display: grid;
  gap: 9px;
}

.selected-model-actions .picker-primary-button,
.selected-model-actions .picker-secondary-button,
.selected-model-actions .picker-source-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-inline: 12px;
  font-size: 0.9rem;
  white-space: normal;
}

.picker-source-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--picker-border);
  border-radius: 999px;
  background: #f7f9fc;
  color: #40526d;
  padding: 11px 18px;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.picker-source-button:hover {
  border-color: #87a9d8;
  color: var(--picker-blue-dark);
}

.picker-source-button:disabled {
  color: #718096;
  cursor: not-allowed;
}

.selected-model-transfer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #34435c;
  font-size: 0.88rem;
  font-weight: 800;
}

.selected-model-transfer input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--picker-blue);
}

.picker-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(360px, calc(100% - 32px));
  border-radius: 6px;
  background: #071326;
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 16px 34px rgba(7, 19, 38, 0.28);
  font-weight: 800;
}

.picker-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.picker-related-group {
  padding: 22px;
  border: 1px solid var(--picker-border);
  border-radius: 8px;
  background: var(--picker-white);
}

.picker-related-group h2 {
  margin: 0 0 15px;
  color: var(--picker-ink);
  font-size: 1.35rem;
}

.picker-related-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.picker-related-list > li {
  min-width: 0;
}

.picker-related-list a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dde6f1;
  border-radius: 6px;
  background: #fff;
  color: #1e3658;
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
}

.picker-related-list a:hover {
  border-color: #8aafe6;
  color: var(--picker-blue-dark);
}

.picker-methodology {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--picker-cyan);
  background: rgba(239, 247, 250, 0.8);
  color: #40526d;
  line-height: 1.55;
}

.picker-methodology strong {
  color: var(--picker-ink);
}

.picker-footer {
  width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid #dfe7f1;
}

.picker-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--picker-muted);
  font-size: 0.9rem;
}

.picker-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.picker-footer a {
  color: #34516f;
  font-weight: 800;
  text-decoration: none;
}

.task-search {
  display: grid;
  grid-template-areas:
    "copy control"
    "copy results";
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 12px 34px;
  align-items: center;
  margin: 0 0 52px;
  border-block: 1px solid var(--picker-border);
  padding: 24px 0;
}

.task-search-copy {
  grid-area: copy;
  min-width: 0;
}

.task-search-copy h2,
.task-groups-heading h2 {
  margin: 9px 0 6px;
  scroll-margin-top: 148px;
  color: var(--picker-ink);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.task-search-copy > p:last-child,
.task-groups-heading > p:last-child {
  margin: 0;
  color: var(--picker-muted);
  line-height: 1.5;
}

.task-search-control {
  grid-area: control;
  min-width: 0;
}

.task-search-control input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b9cae2;
  border-radius: 7px;
  padding: 12px 15px;
  background: #fff;
  color: var(--picker-ink);
  font: inherit;
  box-shadow: 0 10px 28px rgba(48, 77, 117, 0.08);
}

.task-search-control input::placeholder {
  color: #71819a;
}

.task-search-results {
  grid-area: results;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-height: 370px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.task-search-results[hidden],
.task-search-results li[hidden] {
  display: none;
}

.task-search-results li {
  min-width: 0;
}

.task-search-results li::before {
  content: none;
}

.task-search-results a {
  display: grid;
  height: 100%;
  min-width: 0;
  gap: 3px;
  border: 1px solid #d5e0ef;
  border-radius: 6px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--picker-ink);
  text-decoration: none;
}

.task-search-results a:hover {
  border-color: #7ea8df;
  background: #fff;
}

.task-search-results strong,
.task-search-results span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-search-results span {
  color: var(--picker-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.task-direction-section,
.task-groups {
  min-width: 0;
}

.task-section-heading,
.task-groups-heading {
  margin-bottom: 22px;
}

.task-section-heading h2 {
  margin: 9px 0 0;
  color: var(--picker-ink);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.task-groups {
  margin-top: 54px;
}

.task-groups-heading {
  max-width: 760px;
}

.task-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.task-group-panel {
  --task-group-accent: var(--picker-blue);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--picker-border);
  border-top: 3px solid var(--task-group-accent);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
}

.task-group-panel:nth-child(2) {
  --task-group-accent: #0b8f83;
}

.task-group-panel:nth-child(3) {
  --task-group-accent: #c48818;
}

.task-group-panel:nth-child(4) {
  --task-group-accent: #c95f52;
}

.task-group-panel:nth-child(5) {
  --task-group-accent: #485a72;
}

.task-group-panel header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-width: 0;
  align-items: start;
  gap: 12px;
  padding: 18px 18px 16px;
  color: var(--picker-ink);
}

.task-group-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--task-group-accent) 35%, #dce6f2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--task-group-accent) 8%, #fff);
  color: var(--task-group-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.task-group-panel header > span:last-child {
  min-width: 0;
}

.task-group-panel h3,
.task-group-panel header p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.task-group-panel h3 {
  color: var(--picker-ink);
  font-size: 1.04rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.task-group-panel header p {
  margin-top: 5px;
  color: var(--picker-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.task-group-panel ul {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--picker-border);
  list-style: none;
}

.task-group-panel li {
  min-width: 0;
  padding: 0;
}

.task-group-panel li::before {
  content: none;
}

.task-group-panel li + li {
  border-top: 1px solid #e3eaf4;
}

.task-group-panel li a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  color: var(--picker-ink);
  text-decoration: none;
}

.task-group-panel li a:hover {
  background: #f4f8fe;
}

.task-group-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.task-group-copy strong,
.task-group-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-group-copy small {
  color: var(--picker-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.task-group-arrow {
  flex: 0 0 auto;
  color: var(--picker-blue);
  font-size: 1.2rem;
}

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

  .selected-model-panel {
    position: static;
  }
}

@media (max-width: 1280px) {
  .task-direction-card.is-primary {
    min-height: 380px;
  }

  .task-direction-card.is-available {
    min-height: 300px;
  }

  .ranking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-model-panel {
    position: static;
  }
}

@media (max-width: 1050px) {
  .task-search {
    grid-template-columns: minmax(220px, 0.75fr) minmax(300px, 1.25fr);
  }

  .task-direction-grid {
    grid-template-columns: 1fr;
  }

  .task-direction-card.is-available.is-wide {
    grid-column: auto;
  }

  .podobrat-ai-page .ai-picker-hero h1 {
    font-size: 3.35rem;
  }

  .task-direction-card.is-available {
    min-height: 300px;
  }

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

  .ranking-trust-line,
  .ranking-trust-line.has-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-trust-line > div:nth-child(odd) {
    border-left: 0;
  }

  .ranking-trust-line > div:nth-child(n + 3) {
    border-top: 1px solid var(--picker-border);
  }

  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .selected-model-panel {
    position: static;
  }

  .ranking-grid-header {
    display: none;
  }

  .ranking-list {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .ranking-row {
    grid-template-areas:
      "rank model quality action"
      "rank model price action"
      "rank model release action";
    grid-template-columns: 42px minmax(190px, 1.2fr) minmax(180px, 0.9fr) 116px;
    gap: 8px 14px;
    min-height: 0;
    border: 1px solid #dce5f0;
    border-radius: 7px;
    padding: 14px;
    background: #fff;
  }

  .ranking-row:last-child {
    border-bottom: 1px solid #dce5f0;
  }

  .ranking-rank {
    grid-area: rank;
    align-self: center;
  }

  .ranking-model {
    grid-area: model;
    align-self: center;
  }

  .ranking-quality {
    grid-area: quality;
  }

  .ranking-price {
    grid-area: price;
  }

  .ranking-release {
    grid-area: release;
  }

  .ranking-quality,
  .ranking-price,
  .ranking-release {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .ranking-mobile-label {
    display: block;
    min-width: 0;
    color: #657791;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .ranking-mobile-value {
    grid-column: 2;
  }

  .ranking-scenarios,
  .ranking-row > .scenario-chip-list {
    display: none;
  }

  .ranking-row-action {
    grid-area: action;
    align-self: center;
    width: 100%;
  }
}

@media (max-width: 850px) {
  .task-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-direction-card.is-primary {
    min-height: 0;
  }

  .task-direction-card.is-available,
  .task-direction-card.is-available.is-wide {
    min-height: 240px;
  }
}

@media (max-width: 900px) {
  .ai-picker-page {
    --picker-gutter: 24px;
  }

  .ai-picker-main {
    width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
    padding-top: 54px;
  }

  .podobrat-ai-page .ai-picker-hero h1 {
    font-size: 2.35rem;
  }

  .task-search {
    grid-template-areas:
      "copy"
      "control"
      "results";
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 40px;
    padding: 20px 0;
  }

  .task-search-results,
  .task-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-groups {
    margin-top: 42px;
  }

  .picker-path,
  .picker-related {
    grid-template-columns: 1fr;
  }

  .task-direction-copy {
    padding: 24px;
  }

  .task-direction-card.is-primary,
  .task-direction-card.has-media:not(.is-primary) {
    grid-template-columns: 1fr;
  }

  .task-direction-card.has-media .task-direction-media {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .picker-section-card {
    min-height: 0;
    padding: 24px;
  }

  .task-direction-card.is-primary .task-direction-copy {
    padding-bottom: 20px;
  }

  .task-direction-media {
    min-height: 0;
  }

  .ranking-task-tab {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .ranking-task-tabs {
    grid-template-columns: 1fr;
  }

  .ranking-trust-line,
  .ranking-trust-line.has-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-trust-line > div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--picker-border);
    border-left: 0;
  }

  .ranking-trust-line > div:first-child {
    border-top: 0;
  }

  .ranking-trust-line dt,
  .ranking-trust-line dd {
    align-self: start;
  }

  .ranking-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .ranking-grid-header {
    display: none;
  }

  .ranking-row {
    grid-template-areas:
      "rank model"
      "quality quality"
      "price price"
      "release release"
      "scenarios scenarios"
      "action action";
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 16px 14px;
  }

  .ranking-row > :nth-child(3),
  .ranking-row > :nth-child(4),
  .ranking-row > :nth-child(5),
  .ranking-row > :nth-child(6),
  .ranking-row > :nth-child(7) {
    grid-column: 1 / -1;
  }

  .ranking-quality,
  .ranking-price,
  .ranking-release,
  .ranking-scenarios {
    display: grid !important;
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-top: 1px solid #e7edf5;
    padding-top: 10px;
  }

  .ranking-mobile-label {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #657791;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .ranking-mobile-value,
  .ranking-scenarios .scenario-chip-list {
    grid-column: 2;
  }

  .ranking-row > .scenario-chip-list {
    grid-area: scenarios;
    display: flex;
    border-top: 1px solid #e7edf5;
    padding-top: 10px;
  }

  .ranking-quality .quality-meter,
  .ranking-quality small {
    max-width: 100%;
  }

  .ranking-model {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .provider-mark {
    width: 38px;
    height: 38px;
  }

  .ranking-row-action {
    width: 100%;
  }

  .ranking-row-source {
    width: 100%;
  }

  .picker-state-message {
    align-items: stretch;
    margin-inline: 12px;
  }

  .picker-state-message .picker-secondary-button {
    width: 100%;
  }

  .picker-footer {
    width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
  }

  .picker-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .ai-picker-page {
    --picker-gutter: 16px;
  }

  .ai-picker-main {
    width: min(var(--picker-container), calc(100% - var(--picker-gutter)));
  }

  .podobrat-ai-page .ai-picker-hero h1 {
    font-size: 1.95rem;
    line-height: 1.03;
    overflow-wrap: normal;
    word-break: normal;
  }

  .task-search-copy h2,
  .task-groups-heading h2,
  .task-section-heading h2 {
    font-size: 1.65rem;
  }

  .task-group-panel header,
  .task-group-panel li a {
    padding: 15px;
  }

  .ai-picker-breadcrumbs {
    font-size: 0.82rem;
  }

  .task-direction-copy {
    padding: 20px;
  }

  .ranking-task-tabs {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ranking-task-tab {
    min-height: 50px;
    padding: 9px 7px;
    font-size: 0.82rem;
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  .ranking-quality,
  .ranking-price,
  .ranking-release,
  .ranking-scenarios {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-mobile-value,
  .ranking-scenarios .scenario-chip-list {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-picker-page *,
  .ai-picker-page *::before,
  .ai-picker-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
