/* Форма отзыва о сорте. Раскладка жила в mvp.css, который в новом дизайне отключён. */
body.nd .portal-review-form .field { display: grid; gap: 6px; min-width: 0; color: #595959; font-size: 13px; }
body.nd .portal-review-form .field > span { font-weight: 500; }
body.nd .portal-review-form .input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: #F4F5F7; color: #000; font: inherit; font-size: 15px; }
body.nd .portal-review-form textarea.input { min-height: 112px; padding: 12px 14px; resize: vertical; }
body.nd .portal-review-form .input:focus { outline: 0; border-color: #0B5DD7; background: #fff; box-shadow: 0 0 0 3px rgba(11,93,215,.14); }
body.nd .portal-review-form .field-error { color: #F0303D; font-size: 12px; }
body.nd .portal-review-form .field-error:empty { display: none; }
body.nd .portal-review-form [aria-invalid="true"] { border-color: #F0303D !important; }

body.nd .review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
body.nd .review-form-grid .wide { grid-column: 1 / -1; }

body.nd .rating-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
body.nd .rating-input { padding: 12px; border-radius: 12px; background: #F7F7F7; }
body.nd .rating-input label { display: block; margin-bottom: 6px; color: #595959; font-size: 13px; }
body.nd .rating-input.invalid { outline: 1px solid #F0303D; }
body.nd .star-picker { display: flex; gap: 2px; }
body.nd .star-picker button { width: 28px; height: 30px; padding: 0; border: 0; color: #D6D6D6; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
body.nd .star-picker button.filled { color: #E5A400; }
body.nd .star-picker button:focus-visible { border-radius: 6px; outline: 2px solid #0B5DD7; }
body.nd .star-value { margin-top: 4px; color: #595959; font-size: 12px; }
body.nd .star-error { margin-top: 4px; color: #F0303D; font-size: 12px; }

body.nd .region-picker { position: relative; min-width: 0; }
body.nd .region-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #E9E6E1; border-radius: 12px; background: #F7F6F4; color: #000; font: inherit; cursor: pointer; }
body.nd .region-popup { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(420px, calc(100vw - 32px)); padding: 14px; border: 1px solid #EDEDED; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.14); }
body.nd .region-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
body.nd .region-popup-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F2F3F5; cursor: pointer; }
body.nd .region-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: #F4F5F7; }
body.nd .region-search img { width: 17px; opacity: .6; }
body.nd .region-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; }
body.nd .region-options { display: grid; gap: 2px; max-height: 260px; margin-top: 8px; overflow-y: auto; }
body.nd .region-options button { padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; cursor: pointer; }
body.nd .region-options button:hover, body.nd .region-options button:focus-visible { background: #F2F3F5; }
body.nd .region-options button[aria-selected="true"] { color: #0B5DD7; background: #E5F0FF; font-weight: 500; }
body.nd .region-empty { padding: 20px 10px 10px; color: #808080; text-align: center; }

body.nd .growing-details { margin-top: 14px; border: 1px solid #EDEDED; border-radius: 12px; overflow: hidden; background: #fff; }
body.nd .growing-details-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 14px 16px; border: 0; background: transparent; color: #000; font: inherit; text-align: left; cursor: pointer; }
body.nd .growing-details-toggle:hover { background: #FAFAFA; }
body.nd .growing-details-toggle strong, body.nd .growing-details-toggle small { display: block; }
body.nd .growing-details-toggle strong { font-size: 16px; font-weight: 500; }
body.nd .growing-details-toggle small { margin-top: 3px; color: #808080; font-size: 13px; }
body.nd .growing-details-meta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
body.nd .growing-details-count { padding: 5px 10px; border-radius: 999px; background: #E5F0FF; color: #0B5DD7; font-size: 12px; font-weight: 500; }
body.nd .growing-details-chevron { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F2F3F5; color: #33393F; transition: transform .2s ease; }
body.nd .growing-details-chevron svg { width: 18px; height: 18px; }
body.nd .growing-details-chevron path { stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; }
body.nd .growing-details.is-open .growing-details-chevron { transform: rotate(180deg); }
body.nd .growing-details-body { padding: 0 16px 18px; border-top: 1px solid #EDEDED; }
body.nd .growing-details-body[hidden] { display: none; }
body.nd .growing-details-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; }
body.nd .growing-details-intro p { margin: 4px 0 0; color: #808080; font-size: 13px; }
body.nd .growing-details-skip { padding: 0; border: 0; background: transparent; color: #0B5DD7; font: inherit; font-weight: 500; cursor: pointer; }
body.nd .growing-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.nd .detail-field { min-width: 0; margin: 0; padding: 14px; border: 1px solid #EDEDED; border-radius: 12px; background: #FAFAFA; color: #333; }
body.nd .detail-field.wide { grid-column: 1 / -1; }
body.nd .detail-field > span:first-child, body.nd .detail-field legend { display: block; margin-bottom: 8px; color: #000; font-size: 13px; font-weight: 500; }
body.nd .detail-field legend { padding: 0 4px; }
body.nd .detail-field legend small { color: #808080; font-weight: 400; }
body.nd .conditional-detail-field { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EDEDED; font-size: 13px; }
body.nd .conditional-detail-field[hidden] { display: none; }

body.nd .choice-chips, body.nd .check-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.nd .choice-chips label, body.nd .check-chips label { position: relative; cursor: pointer; }
body.nd .choice-chips input, body.nd .check-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.nd .choice-chips span, body.nd .check-chips span { display: flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #33393F; font-size: 13px; transition: border-color .15s, background .15s, color .15s; }
body.nd .choice-chips input:checked + span, body.nd .check-chips input:checked + span { border-color: #0B5DD7; background: #E5F0FF; color: #0B5DD7; }
body.nd .choice-chips input:focus-visible + span, body.nd .check-chips input:focus-visible + span { outline: 2px solid #0B5DD7; outline-offset: 2px; }
body.nd .check-chips span::before { content: ""; width: 13px; height: 13px; margin-right: 7px; border: 1px solid #B9B9B9; border-radius: 4px; }
body.nd .check-chips input:checked + span::before { border-color: #0B5DD7; background: #0B5DD7; box-shadow: inset 0 0 0 3px #E5F0FF; }

body.nd .input-with-select { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
body.nd .input-suffix { position: relative; display: block; }
body.nd .input-suffix .input { padding-right: 102px; }
body.nd .input-suffix strong { position: absolute; top: 50%; right: 13px; color: #808080; font-size: 12px; font-weight: 500; transform: translateY(-50%); pointer-events: none; }

body.nd .disease-picker-search, body.nd .treatment-picker-search { margin: 0 0 8px; }
body.nd [data-disease-picker] [data-disease-options] { max-height: 220px; overflow-y: auto; }
body.nd [data-treatment-found] { max-height: 180px; overflow-y: auto; }
body.nd [data-treatment-found] button { padding: 6px 12px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
body.nd [data-treatment-found] button:disabled { opacity: .5; cursor: default; }
body.nd .disease-picker-empty, body.nd .treatment-picker-empty { margin: 8px 0 0; color: #808080; font-size: 12px; }
body.nd .treatment-picker-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
body.nd .treatment-picker-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #EDEDED; border-radius: 10px; background: #fff; }
body.nd .treatment-picker-name { margin-right: auto; font-size: 14px; font-weight: 500; }
body.nd .treatment-picker-remove { border: 0; background: none; color: #808080; font-size: 20px; line-height: 1; cursor: pointer; }

/* Ярлыки-вкладки над карточкой формы: активный сливается с белой карточкой. */
body.nd .review-mode-tabs { display: flex; gap: 6px; margin: 0; padding: 0; }
body.nd .review-mode-tabs button { padding: 12px 26px; border: 0; border-radius: 14px 14px 0 0; background: #E9EAEC; font: inherit; font-size: 15px; font-weight: 500; color: #555; cursor: pointer; }
body.nd .review-mode-tabs button[aria-selected="true"] { background: #fff; color: #000; }
body.nd .review-mode-tabs button:disabled { color: #aaa; cursor: default; }
body.nd .review-mode-tabs + .review-form-card { margin-top: 0 !important; border-top-left-radius: 0; }
body.nd .review-mode-tabs small { font-size: 11px; }
@media (max-width: 600px) {
    body.nd .review-mode-tabs button { flex: 1; padding: 10px 8px; font-size: 14px; }
}
body.nd .review-form-grid [hidden] { display: none !important; }
body.nd .review-audio { display: grid; gap: 10px; padding: 16px; border: 1px solid #EDEDED; border-radius: 12px; background: #fff; }
body.nd .review-audio-head { display: grid; gap: 2px; }
body.nd .review-audio-head span { color: #808080; font-size: 13px; }
body.nd .review-audio-controls { display: flex; flex-wrap: wrap; gap: 8px; }
body.nd .review-audio-file { cursor: pointer; }
body.nd .review-audio-limit { display: grid; gap: 4px; max-width: 420px; font-size: 12px; color: #808080; }
body.nd .review-audio-limit-bar { height: 6px; border-radius: 999px; background: #EDEDED; overflow: hidden; }
body.nd .review-audio-limit-bar span { display: block; height: 100%; width: 0; background: var(--nd-accent, #0B5DD7); transition: width .25s linear; }
body.nd .review-audio-limit.is-near .review-audio-limit-bar span { background: #C62828; }
body.nd .review-audio audio { width: 100%; max-width: 420px; }
body.nd .review-audio-existing { display: grid; gap: 6px; font-size: 13px; }
body.nd .review-audio-status { font-size: 13px; color: #808080; }
body.nd .review-audio-status.is-error { color: #C62828; }
body.nd .review-audio-status:empty { display: none; }
body.nd .portal-review-photo-upload { margin-top: 16px; }
body.nd .upload-box { display: grid; place-items: center; min-height: 110px; padding: 20px; text-align: center; }
body.nd .portal-review-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; }
body.nd .portal-review-photo-preview img { width: 86px; height: 86px; border-radius: 10px; object-fit: cover; }
body.nd .portal-existing-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
body.nd .portal-existing-photos label { position: relative; display: grid; gap: 4px; cursor: pointer; }
body.nd .portal-existing-photos img { width: 84px; height: 64px; border-radius: 8px; object-fit: cover; }
body.nd .portal-existing-photos input:not(:checked) + img { opacity: .35; }

body.nd .portal-review-form .form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
body.nd .review-form-notice.portal-notice[hidden] { display: none; }

@media (max-width: 760px) {
  body.nd .review-form-grid, body.nd .growing-details-grid { grid-template-columns: 1fr; }
  body.nd .rating-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.nd .input-with-select { grid-template-columns: minmax(0, 1fr) 105px; }
  body.nd .growing-details-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; padding: 14px; }
  body.nd .growing-details-toggle > span:first-child { display: contents; }
  body.nd .growing-details-toggle strong { grid-column: 1; font-size: 15px; line-height: 1.3; }
  body.nd .growing-details-toggle small { grid-column: 1 / -1; margin-top: 0; font-size: 12px; }
  body.nd .growing-details-meta { grid-column: 2; grid-row: 1; }
  body.nd .growing-details-count { white-space: nowrap; font-size: 11px; padding: 4px 8px; }
  body.nd .growing-details-chevron { width: 28px; height: 28px; }
  body.nd .growing-details-body { padding: 0 12px 14px; }
  body.nd .growing-details-intro { flex-direction: column; gap: 8px; }
}
