.app-notice { padding: 12px 20px; background: #153b29; color: #10243A; font-size: 14px; }
.app-notice.error { background: #602318; }
.account-link { font-weight: 800; font-size: 11px; padding: 10px; border: 1px solid #CDDCE8; border-radius: 5px; white-space: nowrap; }
.menu-toggle { display: none; color: #10243A; background: #F3F7FB; border: 1px solid #CDDCE8; padding: 8px; border-radius: 5px; }
.advanced-filters input { width: 100%; padding: 11px; background: #FFFFFF; border: 1px solid #DFE8F0; border-radius: 5px; color: #10243A; }
.car-actions { flex-wrap: wrap; }
.car-action { display: block; min-height: 40px; align-content: center; }
.page-main { max-width: 1200px; margin: auto; padding: 40px 24px 80px; }
.page-header { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #DFE8F0; align-items: center; flex-wrap: wrap; }
.page-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.page-title { font-size: clamp(28px,5vw,48px); margin: 20px 0; }
.panel { padding: 24px; margin: 20px 0; background: #FFFFFF; border: 1px solid #DFE8F0; border-radius: 8px; }
.panel h2 { margin-bottom: 18px; }
.panel p { overflow-wrap: anywhere; }
.panel label { display: flex; flex-direction: column; gap: 6px; color: #52677B; font-size: 13px; }
.panel input,.panel select,.panel textarea { width: 100%; padding: 11px; background: #F3F7FB; border: 1px solid #CDDCE8; border-radius: 5px; color: #10243A; }
.panel button,.panel .button { margin-top: 12px; }
.button-danger { background: #a62a1a; color: #10243A; border: 0; padding: 10px 15px; border-radius: 5px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: #52677B; }
.status-tag { display: inline-block; padding: 5px 9px; background: #EAF3FA; border: 1px solid #CDDCE8; border-radius: 5px; font-size: 12px; margin-right: 8px; }
.gallery-main { width: 100%; height: clamp(220px,40vw,520px); object-fit: contain; background: #F3F7FB; border-radius: 8px; }
.gallery-frame { position: relative; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(167,220,249,.8); color: #fff; background: rgba(16,36,58,.72); box-shadow: 0 3px 12px rgba(16,36,58,.2); font-size: 36px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.gallery-frame,.modal-photo-frame { padding: 0 52px; }
.gallery-arrow { top: var(--photo-center,50%); width: 42px; height: 42px; }
.gallery-arrow.previous { left: 4px; }
.gallery-arrow.next { right: 4px; }
.gallery-arrow[hidden],.modal-body[hidden] { display: none; }
.complete-vehicle-sheet { padding: 24px; }
.full-sheet-price { font-size: 24px; font-weight: 800; color: #0076b8; }
.full-sheet-section { border-top: 1px solid #dfe8f0; margin-top: 22px; padding-top: 18px; }
.full-sheet-section h3 { margin-bottom: 12px; color: #10243a; }
.full-sheet-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.full-sheet-specs > div { padding: 12px; border-radius: 10px; background: #f3f7fb; min-width: 0; }
.full-sheet-specs dt { font-size: 12px; color: #52677b; }
.full-sheet-specs dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.full-sheet-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#completeVehicleSheet > .full-sheet-section:last-of-type { display: flex; flex-direction: column; align-items: flex-start; }
#completeVehicleSheet > .full-sheet-section:last-of-type h3 { margin-bottom: 18px; }
#completeVehicleSheet > .full-sheet-section:last-of-type p:last-of-type { margin-bottom: 0; }
#completeVehicleSheet > .full-sheet-section:last-of-type .button { margin-top: 16px; }
#completeVehicleSheet > #returnToAuto { margin-top: 20px; }
@media(max-width:500px) { .complete-vehicle-sheet { padding: 18px; }.full-sheet-specs { grid-template-columns: 1fr; } }
.modal-photo-frame { position: relative; }
.modal-photo-frame .modal-image { object-fit: contain; display: block; background: #f3f7fb; }
#modalFullDetails { display: inline-flex; margin-top: 24px; }
.gallery-arrow:hover { background: rgba(0,118,184,.9); }
.car-image-wrapper,.marketplace-image { height: clamp(230px,22vw,270px); min-height: 0; background: #f3f7fb; }
.car-card .car-image,.marketplace-image img { height: 100%; width: 100%; object-fit: contain; object-position: center; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gallery-thumbs button { border: 2px solid #CDDCE8; background: #FFFFFF; border-radius: 4px; padding: 2px; }
.gallery-thumbs button[aria-pressed=true] { border-color: #0076B8; }
.gallery-thumbs img { width: 85px; height: 60px; object-fit: cover; display: block; }
.details-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 24px; }
.spec-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.spec-list div { background: #F3F7FB; padding: 12px; border-radius: 5px; overflow-wrap: anywhere; }
.spec-list dt { color: #52677B; font-size: 12px; }
.spec-list dd { font-weight: 700; margin-top: 5px; }
.photo-editor { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 15px; }
.photo-editor img { width: 110px; height: 80px; object-fit: cover; }
.photo-editor figure { max-width: 140px; }
.photo-editor button { font-size: 11px; display: block; }
.form-note { color: #52677B; font-size: 13px; margin: 14px 0; }
#myListings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.listing-management { border: 1px solid #dfe8f0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(16,36,58,.04); min-width: 0; }
.listing-card-photo { aspect-ratio: 16 / 9; background: #f3f7fb; }
.listing-card-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.listing-card-body { padding: 20px; }
.listing-card-brand { color: #0076b8; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.listing-management h3 { font-size: 24px; margin: 4px 0; }
.listing-card-version { color: #52677b; font-size: 14px; }
.listing-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.listing-card-specs dt,.listing-state-label { font-size: 12px; color: #52677b; }
.listing-card-specs dd { margin: 4px 0 0; font-weight: 700; }
.listing-card-price { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.listing-card-states { display: flex; flex-wrap: wrap; gap: 16px; }
.listing-card-states > div { display: flex; flex-direction: column; gap: 6px; }
.listing-moderation,.listing-commercial { display: inline-block; border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.listing-moderation.pending { background: #fff7e6; color: #795100; }
.listing-moderation.approved { background: #edf8f0; color: #20643b; }
.listing-moderation.rejected { background: #fff0f0; color: #992b2b; }
.listing-commercial { background: #eaf7ff; color: #0076b8; }
.listing-card-note { background: #f3fbff; border: 1px solid #dceff9; border-radius: 10px; padding: 12px; font-size: 13px; color: #52677b; margin-top: 14px; }
.listing-card-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 16px 0; }
.panel .listing-card-actions .button,.panel .listing-card-actions button { margin: 0; padding: 10px 6px; min-height: 44px; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.listing-card-actions .button-danger { color: #fff; background: #a62a1a; border-radius: 12px; }
@media(max-width:700px) { #myListings { grid-template-columns: 1fr; }.listing-card-body { padding: 16px; } }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid #0076B8; outline-offset: 3px; }
@media(max-width:900px) { .menu-toggle { display: block; }.navbar { flex-wrap: wrap; height: auto; min-height: 70px; gap: 10px; }.nav-links.open { display:flex; flex-wrap:wrap; order: 4; width:100%; padding: 15px 0; }.details-layout { grid-template-columns: 1fr; }.spec-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .page-main { padding: 25px 16px 60px; }.panel { padding: 18px; }.nav-right { gap: 5px; }.navbar .logo { font-size: 22px; }.menu-toggle { font-size: 10px; }.account-link { padding: 8px; }.comparison-result { gap: 8px; }.comparison-car { padding: 12px; }.comparison-row strong { overflow-wrap:anywhere; }.spec-list { gap: 8px; }.filters { gap: 12px; }.form-grid { grid-template-columns:1fr; } }
.car-card { scroll-margin-top: 90px; }
.admin-dashboard,.admin-dashboard section,.admin-dashboard h3 { scroll-margin-top: 90px; }
.admin-sections { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.admin-sections a { border: 1px solid #cddce8; border-radius: 10px; padding: 10px 12px; background: #f3fbff; color: #0076b8; font-size: 13px; }
.admin-publications { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 16px 0 28px; }
.admin-vehicle-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #f3f7fb; }
.admin-vehicle-body { padding: 18px; }
#adminPanel > .listing-management,#userManagement .listing-management { padding: 18px; margin-top: 12px; }
@media(max-width:700px) { .admin-publications { grid-template-columns: 1fr; }.admin-vehicle-body { padding: 14px; } }
.photo-picker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; border: 2px dashed #8bccea; border-radius: 16px; background: #f3fbff; cursor: pointer; text-align: center; }
.photo-picker:hover { border-color: #0076b8; background: #eaf7ff; }
.form-grid + .photo-picker { margin-top: 24px; }
.photo-picker:focus-within { outline: 2px solid #0076b8; outline-offset: 3px; }
.photo-picker .photo-picker-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-picker-title { color: #0076b8; font-weight: 700; }
.photo-picker .form-note { margin: 0; }
.photo-editor img { border-radius: 10px; }
.selection-preview figcaption { font-size: 12px; overflow-wrap: anywhere; color: #52677b; }
.vehicle-origin { color:#007ebd; font-size:12px; font-weight:700; margin:0 0 12px; }
.comparison-car img { width:100%; height:160px; object-fit:contain; background:#f3f7fb; border-radius:12px; margin-bottom:12px; }
.admin-sections { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 28px; }
.admin-sections button[aria-pressed="true"],.admin-sections button[aria-pressed="true"]:hover { background:#10243a; color:white; border-color:#10243a; }
.admin-dashboard [hidden] { display:none !important; }
.admin-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.admin-stat { padding:20px; background:#f3f7fb; border:1px solid #d9eaf5; border-radius:14px; }
.admin-stat strong,.admin-stat span { display:block; }.admin-stat strong { font-size:28px; color:#10243a; }
.admin-table-wrap { overflow-x:auto; max-width:100%; }
.admin-table { width:100%; min-width:560px; border-collapse:collapse; font-size:14px; }
.admin-table th,.admin-table td { padding:14px 12px; text-align:left; border-bottom:1px solid #d9eaf5; overflow-wrap:anywhere; }
.admin-table th { background:#f3f7fb; color:#10243a; }
.admin-table th,.admin-table td:not(:last-child) { white-space:nowrap; }
.admin-table td:last-child { min-width:130px; max-width:340px; }
@media(max-width:650px) { .admin-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-sections .button { padding:10px; font-size:12px; }.admin-table { font-size:12px; }.admin-table th,.admin-table td { padding:10px 6px; }.comparison-car img { height:110px; } }
