/*
 * Copyright (C) 2026 Azulith Studios Unipessoal LDA. All rights reserved.
 * Author: Sebastián Benítez <sebastian@azulith.com>
 *
 * Azulith Prensa Dark Fusion theme for browser-only POD Web Tools (/tools/).
 * Window #16161a, Card #1e1e23, Base #242429, Button #202025,
 * Highlight #1e55d0 (cobalt), Link #62b3e8 (azure).
 */

/* --- Match Pico CSS v2 Responsive Root Font-Size Scale (No External CDN) --- */
html {
  font-size: 100%;
}
@media (min-width: 576px) {
  html { font-size: 106.25%; }
}
@media (min-width: 768px) {
  html { font-size: 112.5%; }
}
@media (min-width: 1024px) {
  html { font-size: 118.75%; }
}
@media (min-width: 1280px) {
  html { font-size: 125%; }
}
@media (min-width: 1536px) {
  html { font-size: 131.25%; }
}

/* --- Contrast & Accessibility Overrides (WCAG 2.1 AA >= 4.5:1) --- */
:root {
  --color-text-muted: #93acc5;
}

body[data-page="tools"] .nav-links a[href="/tools/"],
.site-nav .nav-links a[href="/tools/"] {
  color: var(--color-azure);
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1.1rem;
  background-color: #1e55d0;
  color: #ffffff;
  border: 1px solid #62b3e8;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  color: #ffffff;
  outline: 2px solid #62b3e8;
  outline-offset: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.tool-page-main:focus {
  outline: none;
}

body[data-page="tools"] a:focus-visible,
body[data-page="tools"] button:focus-visible {
  outline: 2px solid #62b3e8;
  outline-offset: 2px;
}

/* --- Tool Page Header & Breadcrumbs --- */
.tool-page-header {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 3vw, 1.5rem) 0.75rem;
}

.tool-page-main > .tool-page-header {
  padding-inline: 0;
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.tool-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  font-size: 0.82rem;
  color: #b0b2be;
  margin-bottom: 0.75rem;
  list-style: none;
  padding: 0;
}

.tool-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tool-breadcrumb a {
  color: #62b3e8;
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.tool-breadcrumb-sep {
  color: #9496a4;
  user-select: none;
}

.tool-page-title {
  font-size: clamp(1.6rem, 3vw + 0.4rem, 2.35rem);
  font-weight: 800;
  color: #f0f6ff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.tool-page-lead,
.tool-page-subtitle {
  font-size: clamp(0.95rem, 1.2vw + 0.2rem, 1.08rem);
  color: #c4c6d4;
  max-width: 74ch;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Centered Workspace Wrapper & Prensa Window Shell --- */
.tool-page-main {
  max-width: 1040px;
  width: 100%;
  margin-inline: auto;
  padding: 1rem clamp(0.75rem, 2.5vw, 1.5rem) clamp(3rem, 6vw, 4.5rem);
  box-sizing: border-box;
}

.prensa-tool-shell {
  max-width: 1040px;
  width: 100%;
  margin-inline: auto;
  background-color: #16161a;
  border: 1px solid #2c2c32;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  color: #dcdfe4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

.prensa-tool-body,
.tool-shell-body,
.prensa-panel-body {
  padding: 16px;
  box-sizing: border-box;
}

/* Direct card children when no inner body wrapper is used */
.prensa-tool-shell > .pipeline-card,
.prensa-tool-shell > .studio-card,
.prensa-tool-shell > .tool-funnel-card,
.prensa-tool-shell > .tools-hub-grid {
  margin-left: 16px;
  margin-right: 16px;
}

.prensa-tool-shell > :first-child:not(.prensa-titlebar):not(.menubar) {
  margin-top: 16px;
}

.prensa-tool-shell > .prensa-titlebar + :not(.menubar):not(.prensa-tool-body):not(.tool-shell-body) {
  margin-top: 16px;
}

/* --- Prensa Window Titlebar & Bottom Status Bar --- */
.prensa-titlebar {
  background-color: #242429;
  border-bottom: 1px solid #2e2e36;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e4e6eb;
  flex-wrap: wrap;
}

.prensa-titlebar-left,
.prensa-titlebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prensa-titlebar-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.prensa-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4e4e56;
  display: inline-block;
}

.prensa-window-dot.dot-close { background-color: #f38ba8; }
.prensa-window-dot.dot-min   { background-color: #f9e2af; }
.prensa-window-dot.dot-max   { background-color: #a6e3a1; }

.prensa-titlebar-title {
  font-size: 13px;
  font-weight: 600;
  color: #e4e6eb;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prensa-titlebar .pipeline-card-title {
  margin-bottom: 0;
  font-size: 13px;
  color: #e4e6eb;
}

.prensa-titlebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}

.prensa-titlebar-badge,
.prensa-titlebar-right {
  font-size: 11px;
  font-weight: 600;
  color: #b0b2be;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-bar {
  display: none !important;
}

.status-bar .status-right {
  margin-left: auto;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Prensa Cards --- */
.pipeline-card,
.studio-card {
  background-color: #1e1e23;
  border: 1px solid #2c2c32;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.studio-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #62b3e8;
  margin-top: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.35;
}

.studio-card > .pipeline-card-title {
  margin-bottom: 4px;
}

.pipeline-card-subtitle,
.card-desc {
  font-size: 13px;
  color: #b0b2be;
  margin-top: -4px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* --- Prensa Form Elements --- */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.form-row:has(> .studio-card) {
  align-items: stretch;
}

.form-row > .studio-card {
  margin-bottom: 0;
}

.form-row > .studio-card > .studio-metrics {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pipeline-card > .form-help {
  margin-top: 0;
  margin-bottom: 12px;
}

.pipeline-card > .form-group {
  margin-bottom: 14px;
}

.pipeline-card > .form-group:last-child {
  margin-bottom: 0;
}

.pipeline-card > .studio-empty-state,
.pipeline-card > .studio-nav-row {
  margin-bottom: 12px;
}

.pipeline-card > .studio-empty-state:last-child,
.pipeline-card > .studio-nav-row:last-child {
  margin-bottom: 0;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row-compact {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.form-row-compact .form-group {
  flex: 1;
  min-width: 90px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}

.form-label,
label.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #b0b2be;
  margin: 0;
  line-height: 1.35;
}

.form-help {
  font-size: 11px;
  color: #9496a4;
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.45;
}

.input,
.select,
.prensa-tool-shell input[type="text"],
.prensa-tool-shell input[type="number"],
.prensa-tool-shell input[type="search"],
.prensa-tool-shell select {
  height: 36px;
  line-height: 20px;
  padding: 6px 12px;
  border: 1px solid #4e4e56;
  border-radius: 6px;
  background-color: #242429;
  color: #e4e6eb;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder,
.prensa-tool-shell input::placeholder {
  color: #8e909e;
}

.select,
.prensa-tool-shell select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b0b2be' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.select option,
.prensa-tool-shell select option {
  background-color: #242429;
  color: #e4e6eb;
  padding: 6px 10px;
}

.input:focus,
.select:focus,
.input:focus-visible,
.select:focus-visible,
.prensa-tool-shell input:focus-visible,
.prensa-tool-shell select:focus-visible {
  border-color: #62b3e8;
  outline: 2px solid #62b3e8;
  outline-offset: 1px;
}

.input:disabled,
.select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #1c1c20;
  border-color: #383840;
}

/* Validation / Alert Banner */
.validation-alert,
.settings-banner-error,
.tool-alert-error {
  background-color: rgba(243, 139, 168, 0.12);
  border: 1px solid #f38ba8;
  color: #f38ba8;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
  margin-bottom: 12px;
}

.validation-alert-warning,
.tool-alert-warning {
  background-color: rgba(249, 226, 175, 0.12);
  border: 1px solid #f9e2af;
  color: #f9e2af;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
  margin-bottom: 12px;
}

.validation-alert-info,
.tool-alert-info {
  background-color: rgba(98, 179, 232, 0.12);
  border: 1px solid #62b3e8;
  color: #dcdfe4;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
  margin-bottom: 12px;
}

/* --- Prensa Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #4e4e56;
  border-radius: 6px;
  background-color: #202025;
  color: #dcdfe4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  box-sizing: border-box;
  margin: 0;
}

.btn:hover:not(:disabled) {
  background-color: #383842;
  border-color: #62b3e8;
  color: #ffffff;
}

.btn:focus-visible,
.anchor-btn:focus-visible,
.studio-pill-btn:focus-visible,
.studio-empty-state:focus-visible {
  border-color: #62b3e8;
  outline: 2px solid #62b3e8;
  outline-offset: 1px;
}

.btn-primary {
  background-color: #1e55d0;
  color: #ffffff;
  border-color: #1e55d0;
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background-color: #2f66e0;
  border-color: #62b3e8;
  color: #ffffff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 4px;
}

.btn-input {
  height: 36px;
  line-height: 20px;
  box-sizing: border-box;
  padding: 6px 14px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Prensa 3x3 Anchor Grid --- */
.anchor-control-wrap,
.anchor-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anchor-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.anchor-grid {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 4px;
  margin-top: 4px;
}

.anchor-btn {
  width: 48px;
  height: 40px;
  background-color: #202025;
  border: 1px solid #4e4e56;
  border-radius: 4px;
  color: #dcdfe4;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.anchor-btn:hover {
  background-color: #383842;
  border-color: #62b3e8;
  color: #ffffff;
}

.anchor-btn.active,
.anchor-btn[aria-pressed="true"] {
  background-color: #1e55d0;
  color: #ffffff;
  font-weight: 700;
  border-color: #62b3e8;
}

/* --- Prensa Studio Pills --- */
.studio-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.studio-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #202025;
  border: 1px solid #4e4e56;
  border-radius: 14px;
  color: #dcdfe4;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
  cursor: pointer;
  margin: 0;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.studio-pill-btn:hover {
  background-color: #383842;
  border-color: #62b3e8;
  color: #ffffff;
}

.studio-pill-btn.active,
.studio-pill-btn[aria-pressed="true"] {
  background-color: #1e55d0;
  border-color: #62b3e8;
  color: #ffffff;
  font-weight: 600;
}

/* --- Prensa Studio Dropzone & Viewport --- */
.studio-empty-state {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
  color: #9a9ca8;
  border: 1.5px dashed #4e4e56;
  border-radius: 6px;
  background-color: #16161a;
  cursor: default;
  transition: border-color 0.15s, background-color 0.15s;
}

.studio-empty-state:hover,
.studio-empty-state.drag-over,
.studio-empty-state:has(.dropzone-trigger:focus-visible) {
  border-color: #62b3e8;
  background-color: rgba(30, 85, 208, 0.12);
}

.dropzone-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  cursor: pointer;
}

.studio-empty-icon {
  width: 44px;
  height: 44px;
  color: #62b3e8;
  opacity: 0.85;
}

.studio-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: #e4e6eb;
  margin: 0;
}

.studio-empty-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #9a9ca8;
  max-width: 440px;
  margin: 0;
}

.studio-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #141417;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #2c2c32;
}

.studio-nav-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.studio-nav-title {
  font-weight: 600;
  color: #62b3e8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.studio-nav-meta {
  font-size: 12px;
  color: #b0b2be;
}

.studio-viewport {
  background-color: #121215;
  border: 1px solid #2c2c32;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.studio-viewport canvas,
.dual-box canvas,
.dual-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 3px;
  background-color: #0e0e11;
}

.dual-frame,
.crop-tiles-grid,
.ratio-preview-grid,
.ratio-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.ratio-preview-tile {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ratio-preview-tile > .studio-nav-row {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

.ratio-preview-tile > .studio-nav-row > .studio-nav-info {
  flex: 0 0 auto;
  width: 100%;
}

.dual-box {
  background-color: #17171c;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #2c2c32;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.dual-box-header,
.dual-box-label {
  font-size: 13px;
  font-weight: 700;
  color: #e4e6eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.studio-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #17171c;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #24242a;
  font-size: 12px;
  color: #dcdfe4;
}

.studio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.studio-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #b0b2be;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.studio-metric-value {
  font-size: 14px;
  font-weight: 700;
  color: #e4e6eb;
}

.studio-metric-target {
  font-weight: 600;
  color: #a6e3a1;
}

.studio-metric-crop {
  color: #dcdfe4;
}

.studio-metric-sub,
.studio-metric-note {
  font-size: 11px;
  color: #9a9ca8;
  line-height: 1.45;
}

/* --- Prensa Tables & Status Badges --- */
.queue-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #2c2c32;
  border-radius: 6px;
  background-color: #16161a;
  width: 100%;
}

.queue-table-container + .studio-metrics,
.studio-metrics + .queue-table-container {
  margin-top: 12px;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  margin: 0;
}

.queue-table thead th {
  background-color: #1e1e23;
  color: #b0b2be;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #2c2c32;
  white-space: nowrap;
}

.queue-table tbody th {
  background-color: transparent;
  color: #e4e6eb;
  font-weight: 600;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #26262e;
  vertical-align: middle;
  white-space: nowrap;
}

.queue-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #26262e;
  color: #dcdfe4;
  vertical-align: middle;
}

.queue-table tbody tr:last-child th,
.queue-table tbody tr:last-child td {
  border-bottom: none;
}

.queue-table tbody tr:hover {
  background-color: #242429;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  text-align: center;
  box-sizing: border-box;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
}

.status-badge.completed {
  background-color: #1e4a38;
  color: #a6e3a1;
}

.status-badge.warning {
  background-color: #4a3e22;
  color: #f9e2af;
}

.status-badge.failed {
  background-color: #4a222f;
  color: #f38ba8;
}

.status-badge.processing {
  background-color: #1e3a5f;
  color: #62b3e8;
}

.status-badge.pending {
  background-color: #2c2c32;
  color: #b0b2be;
}

/* --- Prensa Funnel Footer Card --- */
.tool-funnel-card {
  background-color: #1a1d28;
  border: 1px solid #2e3852;
  border-left: 4px solid #1e55d0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-funnel-title {
  font-size: 14px;
  font-weight: 700;
  color: #62b3e8;
  margin: 0;
}

.tool-funnel-text,
.tool-funnel-card p {
  font-size: 13px;
  color: #dcdfe4;
  line-height: 1.55;
  margin: 0;
}

.tool-funnel-link,
.tool-funnel-card a {
  color: #62b3e8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-funnel-link:hover,
.tool-funnel-card a:hover {
  color: #ffffff;
}

/* --- Tools Hub Page (/tools/) --- */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.tool-hub-card {
  background-color: #1e1e23;
  border: 1px solid #2c2c32;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tool-hub-card:hover {
  border-color: #62b3e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tool-hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-hub-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #f0f6ff;
  margin: 0;
  line-height: 1.3;
}

.tool-hub-card-title a {
  color: inherit;
  text-decoration: none;
}

.tool-hub-card-title a:hover {
  color: #62b3e8;
}

.tool-hub-card-desc {
  font-size: 13px;
  color: #c4c6d4;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.tool-hub-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #b0b2be;
}

.tool-hub-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-hub-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #62b3e8;
  flex-shrink: 0;
}

.tool-hub-card-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

/* --- Responsive Layout (down to 390x844 mobile viewports) --- */
@media (max-width: 768px) {
  .tool-page-main {
    padding-inline: 10px;
  }

  .prensa-tool-body,
  .tool-shell-body,
  .prensa-panel-body {
    padding: 12px;
  }

  .prensa-tool-shell > .pipeline-card,
  .prensa-tool-shell > .studio-card,
  .prensa-tool-shell > .tool-funnel-card,
  .prensa-tool-shell > .tools-hub-grid {
    margin-left: 12px;
    margin-right: 12px;
  }

  .pipeline-card,
  .studio-card {
    padding: 12px;
  }

  .form-row,
  .form-row-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-group,
  .form-row-compact .form-group {
    min-width: 0;
    width: 100%;
  }

  .studio-nav-row > .studio-nav-info {
    flex: 1 1 100%;
  }

  .ratio-preview-tile > .studio-nav-row > .studio-nav-info {
    flex: 0 0 auto;
    width: 100%;
  }

  .dual-frame,
  .crop-tiles-grid,
  .ratio-preview-grid,
  .ratio-tiles-grid,
  .tools-hub-grid {
    grid-template-columns: 1fr;
  }

  .status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .status-bar .status-right {
    margin-left: 0;
  }
}
