/* RTGEO — Galeria de empreendimentos e books */

#tabView-empreendimentos [hidden] {
  display: none !important;
}

#tabView-empreendimentos {
  overflow-y: auto;
  height: 100%;
  background: linear-gradient(180deg, rgba(244, 246, 250, 0.72), rgba(244, 246, 250, 0.98));
}

.ventures-shell {
  width: min(100%, 1440px);
  min-height: 100%;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 42px) 42px;
}

.ventures-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 184px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 16%, rgba(75, 125, 205, 0.58), transparent 28%),
    radial-gradient(circle at 72% 100%, rgba(39, 162, 92, 0.2), transparent 35%),
    linear-gradient(120deg, #172f59 0%, #274c8a 52%, #1c3869 100%);
  box-shadow: 0 18px 42px rgba(29, 58, 105, 0.18);
}

.ventures-hero::after {
  position: absolute;
  right: -8%;
  bottom: -58%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.035), 0 0 0 68px rgba(255, 255, 255, 0.025);
  content: "";
  transform: rotate(-18deg);
}

.ventures-hero-copy,
.ventures-hero-metric {
  position: relative;
  z-index: 1;
}

.ventures-eyebrow,
.venture-pdf-kicker {
  display: block;
  margin-bottom: 8px;
  color: #7da7e6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ventures-hero .ventures-eyebrow {
  color: #a8c7f2;
}

.ventures-hero h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ventures-hero p {
  max-width: 650px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.65;
}

.ventures-hero-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.ventures-hero-metric strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.ventures-hero-metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.ventures-city-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 510px;
  margin: 18px auto 15px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.ventures-city-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 53px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: 0.18s ease;
}

.ventures-city-tab:hover {
  color: var(--text-main);
  background: var(--primary-light);
}

.ventures-city-tab.active {
  color: var(--primary);
  border-color: rgba(39, 76, 138, 0.12);
  background: #fff;
  box-shadow: 0 5px 14px rgba(29, 58, 105, 0.09);
}

.ventures-city-tab > span:not(.ventures-city-mark) {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ventures-city-tab strong {
  font-size: 13px;
}

.ventures-city-tab small {
  margin-top: 3px;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ventures-city-tab b {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 20px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 11px;
  text-align: center;
}

.ventures-city-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3b66ac, #274c8a);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ventures-city-mark.uberaba {
  background: linear-gradient(135deg, #26a25c, #187744);
}

.ventures-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.ventures-search {
  display: flex;
  align-items: center;
  flex: 1 1 340px;
  gap: 9px;
  min-height: 35px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.ventures-search:focus-within,
.ventures-select-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(39, 76, 138, 0.1);
}

.ventures-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--text-light);
}

.ventures-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.ventures-select-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 35px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.ventures-select-wrap span {
  color: var(--text-light);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ventures-select-wrap select {
  max-width: 155px;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.ventures-toolbar .pill-btn svg,
.venture-dialog .pill-btn svg {
  width: 14px;
  height: 14px;
}

.ventures-toolbar label.pill-btn {
  cursor: pointer;
}

.ventures-feedback {
  min-height: 20px;
  padding: 10px 3px 1px;
  color: var(--text-muted);
  font-size: 11px;
}

.ventures-feedback.is-error {
  color: #b42318;
}

.ventures-feedback.is-success {
  color: #147a43;
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.venture-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.venture-card:hover {
  border-color: rgba(39, 76, 138, 0.22);
  box-shadow: 0 16px 28px rgba(28, 57, 103, 0.13);
  transform: translateY(-3px);
}

.venture-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--cover-accent, var(--primary));
}

.venture-cover::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.36));
  content: "";
}

.venture-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cover-accent, var(--primary));
  transition: transform 0.4s ease;
}

.venture-card:hover .venture-cover-image {
  transform: scale(1.035);
}

.venture-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--cover-accent, var(--primary)) 84%, #12213a), var(--cover-accent, var(--primary)));
  text-align: center;
}

.venture-cover-placeholder::before,
.venture-cover-placeholder::after {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
}

.venture-cover-placeholder::before {
  top: -105px;
  right: -55px;
}

.venture-cover-placeholder::after {
  bottom: -126px;
  left: -70px;
}

.venture-cover-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  align-items: center;
  justify-items: center;
}

.venture-cover-monogram strong {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 19px;
  letter-spacing: -0.06em;
}

.venture-cover-monogram span {
  max-width: 210px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venture-card-badge,
.venture-card-featured {
  position: absolute;
  z-index: 2;
  top: 11px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.venture-card-badge {
  left: 11px;
}

.venture-card-featured {
  right: 11px;
  color: #ffedaa;
}

.venture-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 14px;
}

.venture-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.venture-card-heading h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.venture-card-edit {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-light);
  cursor: pointer;
}

.venture-card-edit svg {
  width: 13px;
  height: 13px;
}

.venture-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
}

.venture-card-location svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--oportunidade);
}

.venture-card-description {
  display: -webkit-box;
  min-height: 39px;
  margin: 12px 0 13px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.venture-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.venture-card-fact {
  min-width: 0;
}

.venture-card-fact span,
.venture-card-footer span {
  display: block;
  overflow: hidden;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.venture-card-fact strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venture-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
}

.venture-card-footer .venture-doc-count {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
}

.venture-card-footer .venture-doc-count svg {
  width: 13px;
  height: 13px;
}

.venture-open-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.venture-open-button:hover {
  color: var(--primary-bright);
}

.venture-open-button svg {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

.venture-open-button:hover svg {
  transform: translateX(2px);
}

.ventures-empty {
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.ventures-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 15px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 25px;
}

.ventures-empty h3 {
  color: var(--text-main);
  font-size: 16px;
}

.ventures-empty p {
  margin-top: 4px;
  font-size: 12px;
}

/* Dialogo de detalhes */
.ventures-modal {
  padding: 14px;
  background: rgba(8, 20, 42, 0.58);
  backdrop-filter: blur(8px);
}

.ventures-modal[hidden] {
  display: none !important;
}

.venture-dialog {
  width: min(100%, 930px);
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(7, 22, 51, 0.3);
}

.venture-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
}

.venture-detail-cover {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--cover-accent, var(--primary));
}

.venture-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.venture-detail-cover .venture-cover-placeholder {
  min-height: 360px;
}

.venture-detail-content {
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
}

.venture-dialog-header,
.venture-pdf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--border);
}

.venture-dialog-header h2,
.venture-pdf-header h2 {
  color: var(--text-main);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.venture-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
}

.venture-icon-button:hover {
  border-color: rgba(239, 68, 68, 0.26);
  color: var(--danger);
  background: #fff8f8;
}

.venture-detail-content .ventures-eyebrow {
  margin-bottom: 7px;
  color: var(--oportunidade);
}

.venture-detail-content h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.venture-detail-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.venture-detail-description {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.venture-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.venture-detail-fact {
  padding: 10px 11px;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  background: #fbfcfe;
}

.venture-detail-fact span,
.venture-detail-section-title {
  display: block;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venture-detail-fact strong {
  display: block;
  margin-top: 4px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
}

.venture-detail-section {
  margin-top: 24px;
}

.venture-detail-section-title {
  margin-bottom: 9px;
}

.venture-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.venture-chip {
  padding: 5px 8px;
  border: 1px solid #d7e6f8;
  border-radius: 999px;
  color: var(--primary);
  background: #f3f8fe;
  font-size: 10px;
  font-weight: 700;
}

.venture-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.venture-detail-contact {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 12px;
  border-radius: 12px;
  background: var(--oportunidade-light);
}

.venture-detail-contact strong {
  color: #176b3f;
  font-size: 12px;
}

.venture-detail-contact span {
  color: #3d7b5a;
  font-size: 11px;
}

.venture-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.venture-documents-list {
  display: grid;
  gap: 8px;
}

.venture-document-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}

.venture-document-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.venture-document-copy {
  min-width: 0;
  flex: 1;
}

.venture-document-copy strong,
.venture-document-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venture-document-copy strong {
  color: var(--text-main);
  font-size: 11px;
}

.venture-document-copy span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.venture-document-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.venture-document-actions .pill-btn {
  padding: 4px 7px;
  font-size: 10px;
}

.venture-document-pending {
  color: var(--text-muted, #718096);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.venture-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px;
  border: 1px dashed #b8c9df;
  border-radius: 11px;
  color: var(--text-muted);
  background: #f8fbff;
  font-size: 10px;
}

.venture-upload-box input {
  max-width: 210px;
  font-size: 10px;
}

/* Formulario de edição */
.venture-edit-dialog {
  width: min(760px, 100%);
  max-height: min(790px, calc(100vh - 28px));
}

.venture-edit-dialog .venture-dialog-header {
  align-items: center;
  padding: 22px 26px 18px;
}

.venture-edit-dialog .venture-dialog-header h2 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.05em;
}

.venture-edit-dialog .venture-dialog-header p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.venture-edit-form {
  display: block;
  padding: 0;
}

.venture-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.venture-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.venture-form-field {
  display: grid;
  gap: 7px;
}

.venture-form-field.full {
  grid-column: 1 / -1;
}

.venture-form-field label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.venture-form-field input,
.venture-form-field select,
.venture-form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  min-height: 42px;
  border-radius: 10px;
  outline: 0;
  padding: 10px 12px;
  color: var(--text-main);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.venture-form-field textarea {
  min-height: 92px;
  line-height: 1.5;
  resize: vertical;
}

.venture-form-field input:focus,
.venture-form-field select:focus,
.venture-form-field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(39, 76, 138, 0.1);
}

.venture-form-help {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.venture-form-section {
  padding: 22px 26px 24px;
  border-bottom: 1px solid var(--border-light);
}

.venture-form-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.venture-form-section-heading h3 {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.venture-form-section-heading p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.venture-form-context {
  flex: 0 0 auto;
  max-width: 46%;
  margin-top: 1px;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venture-form-section .venture-form-field + .venture-form-grid,
.venture-form-section .venture-form-grid + .venture-form-grid {
  margin-top: 13px;
}

.venture-form-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.venture-form-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.venture-form-group .venture-form-grid {
  gap: 9px;
}

.venture-form-grid-balanced {
  margin-top: 15px;
}

.venture-form-disclosure {
  border-bottom: 1px solid var(--border-light);
}

.venture-form-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 26px;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.venture-form-disclosure summary::-webkit-details-marker {
  display: none;
}

.venture-form-disclosure summary > span {
  display: grid;
  gap: 2px;
}

.venture-form-disclosure summary strong {
  font-size: 13px;
  font-weight: 800;
}

.venture-form-disclosure summary small {
  color: var(--text-muted);
  font-size: 11px;
}

.venture-form-disclosure summary i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.venture-form-disclosure[open] summary i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.venture-form-disclosure-body {
  display: grid;
  gap: 14px;
  padding: 0 26px 22px;
}

.venture-cover-picker {
  display: grid;
  gap: 13px;
  padding-top: 2px;
}

.venture-cover-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.venture-cover-picker-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.venture-cover-picker-copy strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
}

.venture-cover-picker-copy small,
.venture-cover-picker-empty {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.venture-cover-current {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  justify-items: end;
}

.venture-cover-current > span,
.venture-cover-source > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.venture-cover-current > div {
  display: grid;
  width: 98px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border-light);
}

.venture-cover-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venture-cover-current-empty {
  color: var(--text-light);
  font-size: 10px;
}

.venture-cover-picker-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.venture-cover-source {
  display: grid;
  flex: 1;
  gap: 7px;
  min-width: 0;
}

.venture-cover-source select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  padding: 9px 11px;
  color: var(--text-main);
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.venture-cover-source select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(39, 76, 138, 0.1);
}

.venture-cover-picker .pill-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.venture-cover-picker-status {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.venture-cover-picker-status.is-success {
  color: #187243;
}

.venture-cover-picker-status.is-error {
  color: #a4372d;
}

.venture-cover-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 9px;
}

.venture-cover-candidate {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px;
  color: var(--text-main);
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.venture-cover-candidate:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.venture-cover-candidate:focus-visible {
  outline: 3px solid rgba(39, 76, 138, 0.28);
  outline-offset: 2px;
}

.venture-cover-candidate.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(39, 76, 138, 0.16);
}

.venture-cover-candidate-media {
  position: relative;
  display: grid;
  min-height: 126px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #e9eef5;
}

.venture-cover-candidate-media canvas,
.venture-cover-candidate-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}

.venture-cover-candidate-media [data-cover-loading] {
  position: absolute;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

.venture-cover-candidate-media [data-cover-loading][hidden] {
  display: none;
}

.venture-cover-candidate-label {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venture-cover-more {
  justify-self: start;
}

.venture-cover-selection {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.venture-cover-selection img {
  width: 90px;
  height: 60px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--border-light);
}

.venture-cover-selection > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.venture-cover-selection strong {
  color: var(--text-main);
  font-size: 11px;
}

.venture-cover-selection small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venture-form-grid-contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.venture-feature-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}

.venture-feature-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.venture-feature-toggle span {
  display: grid;
  gap: 2px;
}

.venture-feature-toggle strong {
  color: var(--text-main);
  font-size: 12px;
}

.venture-feature-toggle small {
  color: var(--text-muted);
  font-size: 10px;
}

.venture-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
}

.venture-form-footer-note {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.venture-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 0;
}

.venture-form-footer .pill-btn {
  min-height: 36px;
}

.venture-form-footer .pill-btn.primary {
  padding-inline: 17px;
}

.venture-form-disclosure summary:focus-visible {
  outline: 3px solid rgba(39, 76, 138, 0.32);
  outline-offset: -3px;
}

/* Viewer PDF.js */
.venture-pdf-dialog {
  display: flex;
  width: min(1180px, 100%);
  max-height: calc(100vh - 28px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: #e9eef5;
  box-shadow: 0 28px 70px rgba(7, 22, 51, 0.38);
}

.venture-pdf-header {
  align-items: center;
  padding: 15px 19px;
  background: #fff;
}

.venture-pdf-header h2 {
  max-width: min(48vw, 600px);
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venture-pdf-title-wrap .venture-pdf-kicker {
  margin-bottom: 4px;
  color: var(--primary);
}

.venture-pdf-meta {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.venture-pdf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.venture-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 49px;
  padding: 7px 12px;
  border-bottom: 1px solid #d5dfeb;
  background: #f5f8fc;
}

.venture-pdf-toolbar .pill-btn {
  padding: 5px 8px;
  font-size: 10px;
}

.venture-pdf-toolbar #venturePdfPageLabel {
  min-width: 86px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.venture-toolbar-divider {
  width: 1px;
  height: 21px;
  margin: 0 3px;
  background: var(--border);
}

.venture-pdf-stage {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 320px;
  place-items: start center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 76, 138, 0.11), transparent 42%),
    #e9eef5;
}

.venture-pdf-stage canvas,
.venture-pdf-stage img {
  display: block;
  max-width: none;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 42, 74, 0.16);
}

.venture-pdf-stage img {
  max-width: min(100%, 900px);
  height: auto;
}

.venture-pdf-loading,
.venture-pdf-error {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  max-width: 420px;
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  text-align: center;
}

.venture-pdf-error {
  color: #9f2e25;
  border-color: #f4c8c4;
  background: #fff8f7;
  line-height: 1.55;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(39, 76, 138, 0.32);
  outline-offset: 2px;
}

@media (min-width: 1280px) {
  .ventures-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ventures-toolbar {
    flex-wrap: wrap;
  }

  .ventures-search {
    flex-basis: 100%;
  }

  .ventures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ventures-shell {
    padding: 12px 12px 28px;
  }

  .ventures-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    min-height: 0;
    padding: 25px 21px;
    border-radius: 19px;
  }

  .ventures-hero-metric {
    min-width: 0;
  }

  .ventures-city-tabs {
    margin-top: 12px;
  }

  .ventures-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .venture-card-description {
    min-height: 0;
  }

  .venture-detail-layout {
    grid-template-columns: 1fr;
  }

  .venture-detail-cover,
  .venture-detail-cover img,
  .venture-detail-cover .venture-cover-placeholder {
    min-height: 215px;
    max-height: 280px;
  }

  .venture-detail-content {
    padding: 22px 18px 26px;
  }

  .venture-dialog-header,
  .venture-pdf-header {
    padding: 17px;
  }

  .venture-pdf-header {
    align-items: flex-start;
  }

  .venture-pdf-actions .pill-btn {
    display: none;
  }

  .venture-pdf-toolbar {
    flex-wrap: wrap;
    padding: 8px;
  }

  .venture-pdf-stage {
    padding: 12px;
  }

  .venture-form-grid,
  .venture-form-grid.three {
    grid-template-columns: 1fr;
  }

  .venture-form-field.full {
    grid-column: auto;
  }

  .venture-upload-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .ventures-city-tab {
    gap: 7px;
    padding-inline: 8px;
  }

  .ventures-city-mark {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .ventures-city-tab strong {
    font-size: 11px;
  }

  .ventures-toolbar .pill-btn {
    flex: 1;
    justify-content: center;
  }

  .ventures-select-wrap {
    flex: 1;
    justify-content: space-between;
  }

  .ventures-select-wrap select {
    max-width: 120px;
  }
}

@media (max-width: 700px) {
  .venture-edit-dialog {
    max-height: calc(100vh - 14px);
    border-radius: 18px;
  }

  .venture-edit-dialog .venture-dialog-header {
    padding: 18px 18px 15px;
  }

  .venture-edit-dialog .venture-dialog-header p {
    max-width: 280px;
  }

  .venture-form-section {
    padding: 18px;
  }

  .venture-form-section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .venture-form-context {
    max-width: 100%;
  }

  .venture-form-disclosure summary {
    padding: 15px 18px;
  }

  .venture-form-disclosure-body {
    padding: 0 18px 18px;
  }

  .venture-cover-picker-head {
    flex-direction: column;
  }

  .venture-cover-current {
    justify-items: start;
  }

  .venture-cover-picker-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .venture-cover-picker-controls .pill-btn {
    justify-content: center;
  }

  .venture-cover-candidates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venture-cover-selection {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .venture-cover-selection img {
    width: 72px;
    height: 54px;
  }

  .venture-cover-selection .pill-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .venture-form-pair-grid,
  .venture-form-grid-contact {
    grid-template-columns: 1fr;
  }

  .venture-form-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 18px 14px;
  }

  .venture-form-footer-note {
    order: 2;
  }

  .venture-form-actions {
    width: 100%;
  }

  .venture-form-footer .venture-form-actions .pill-btn {
    flex: 1;
    justify-content: center;
  }

  .venture-form-field input,
  .venture-form-field select,
  .venture-form-field textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .venture-card,
  .venture-cover-image,
  .venture-open-button svg,
  .ventures-city-tab {
    transition: none;
  }
}
