/* ==========================================================================
   Samsung One UI Components & Controls — Proporções Mobile Precisas
   ========================================================================== */

/* ==========================================================================
   1. One UI Grouped Cards
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

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

.card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ==========================================================================
   2. One UI Viewing Header & Quick Settings Tiles
   ========================================================================== */

.oneui-hero-banner {
  padding: 0 2px 8px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oneui-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.oneui-hero-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  line-height: 1.2;
}

.oneui-hero-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* One UI Quick Settings Grid (4 colunas compactas estilo Samsung Quick Panel) */
.quick-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.quick-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  min-height: 60px;
}

.quick-tile:hover {
  background-color: var(--bg-card-hover);
}

.quick-tile:active {
  transform: scale(0.94);
}

.quick-tile-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.quick-tile-icon svg {
  width: 15px;
  height: 15px;
}

.quick-tile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 0 1px;
}

.quick-tile-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.quick-tile-status {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

/* Quick Tile Active States */
.quick-tile.active-blue {
  background-color: rgba(45, 116, 255, 0.12);
  border-color: rgba(45, 116, 255, 0.35);
}

.quick-tile.active-blue .quick-tile-icon {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.quick-tile.active-blue .quick-tile-status {
  color: #82aeff;
}

.quick-tile.active-flash {
  background-color: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.35);
}

.quick-tile.active-flash .quick-tile-icon {
  background-color: var(--color-flash);
  color: #121318;
  box-shadow: 0 0 10px var(--color-flash-glow);
}

.quick-tile.active-flash .quick-tile-status {
  color: #ffd984;
}

/* ==========================================================================
   3. One UI Device Care Battery Hero Widget
   ========================================================================== */

.card-hero-care {
  background: linear-gradient(180deg, #16171f 0%, #121318 100%);
  border: 1px solid rgba(45, 116, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
}

.care-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 6px 0;
  text-align: center;
}

/* Radial Gauge Ring (84px Proporcional para Mobile) */
.gauge-container {
  width: 84px;
  height: 84px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}

.gauge-fill {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 251.33;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.4, 1), stroke 0.4s ease;
}

.gauge-inner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-num {
  font-size: 25px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.5px;
}

.hero-unit {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 1px;
}

.care-hero-subtitle {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Metric Row / Grid inside card (4 colunas compactas em 1 linha) */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.m-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--bg-surface);
  padding: 5px 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.m-lbl {
  font-size: 8px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-val {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-green { color: var(--color-success) !important; }
.text-amber { color: var(--color-warning) !important; }
.text-red { color: var(--color-danger) !important; }
.text-blue { color: var(--color-primary) !important; }

/* ==========================================================================
   4. One UI Badges & Pills
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-success {
  background-color: var(--color-success-subtle);
  color: #34d399;
  border-color: rgba(28, 209, 102, 0.3);
}

.badge-warning {
  background-color: var(--color-warning-subtle);
  color: #fbbf24;
  border-color: rgba(252, 161, 48, 0.3);
}

.badge-danger {
  background-color: var(--color-danger-subtle);
  color: #f87171;
  border-color: rgba(255, 71, 87, 0.3);
}

.badge-subtle {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
}

/* Topbar Battery Pill One UI */
.battery-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  background-color: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  height: 30px;
}

/* ==========================================================================
   5. One UI Progress Bars
   ========================================================================== */

.progress-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.prog-meta strong {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.prog-bar-bg {
  height: 7px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.prog-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: width 350ms cubic-bezier(0.2, 0.8, 0.4, 1);
}

.fill-swap {
  background-color: var(--color-info);
}

.fill-storage {
  background-color: #8b5cf6;
}

/* ==========================================================================
   6. One UI Buttons & Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  user-select: none;
  min-height: 38px;
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 11.5px;
  min-height: 32px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   7. Authentic Samsung One UI Pill Switch (.switch-toggle)
   ========================================================================== */

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #353842;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .slider {
  background-color: var(--color-primary);
}

.switch-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

/* ==========================================================================
   8. One UI Grouped Tables & Lists
   ========================================================================== */

.table-list, .breakdown-list, .apps-list, .wakelocks-list {
  display: flex;
  flex-direction: column;
}

.t-row, .breakdown-row, .app-row, .wakelock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-secondary);
}

.t-row:last-child, .breakdown-row:last-child, .app-row:last-child, .wakelock-row:last-child {
  border-bottom: none;
}

.t-row strong, .breakdown-val, .app-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

/* CPU Cores Grid */
.cores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.core-cell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.core-cell.online {
  border-color: rgba(28, 209, 102, 0.3);
  background-color: rgba(28, 209, 102, 0.05);
}

.core-cell.offline {
  opacity: 0.4;
}

.core-name {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.core-freq {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-success);
}

.core-cell.offline .core-freq {
  color: var(--text-dim);
}

/* Load Averages Pills */
.load-display {
  display: flex;
  gap: 6px;
}

.load-pill {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.load-pill small {
  font-size: 9.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.load-pill strong {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   9. Samsung Camera Viewfinder & Docked Controls
   ========================================================================== */

.card-livecam-panel {
  padding: 10px;
  background-color: #0b0c0f;
  border-color: rgba(255, 255, 255, 0.09);
}

.livecam-header {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.livecam-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.livecam-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background-color: var(--color-danger);
  display: inline-block;
  flex-shrink: 0;
}

.status-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.status-online {
  background-color: rgba(28, 209, 102, 0.18);
  color: var(--color-success);
  border: 1px solid rgba(28, 209, 102, 0.35);
}

.status-offline {
  background-color: rgba(255, 71, 87, 0.18);
  color: var(--color-danger);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.livecam-viewport-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Viewfinder HUD Overlay One UI */
.livecam-hud-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}

.hud-pill {
  background-color: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.livecam-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  text-align: center;
}

.livecam-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 250px;
}

.livecam-placeholder-icon {
  font-size: 32px;
  opacity: 0.7;
}

.livecam-placeholder-content p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.livecam-stream-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Samsung Camera Docked Controls Bar */
.camera-docked-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.camera-lens-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.select-res-pill {
  display: inline-block !important;
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  height: 30px;
}

.camera-shutter-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2px 4px;
}

.camera-side-btn {
  min-width: 72px;
  padding: 5px 8px;
  font-size: 11px;
}

/* Botão de Disparo Circular Samsung */
.samsung-shutter-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
  outline: none;
}

.samsung-shutter-btn:active {
  transform: scale(0.9);
  background-color: #e2e8f0;
}

/* ==========================================================================
   10. Flash Hardware Controls
   ========================================================================== */

.flash-list-group {
  display: flex;
  flex-direction: column;
}

.flash-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flash-row-item:last-child {
  border-bottom: none;
}

.flash-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.flash-card-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.flash-card-info small {
  font-size: 10.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   11. Remote Capture Buttons
   ========================================================================== */

.capture-actions-row {
  display: flex;
  gap: 6px;
}

.capture-actions-row .btn {
  flex: 1;
}

/* ==========================================================================
   12. Gallery Section & Segmented Filter Pills
   ========================================================================== */

.gallery-header-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gallery-filter-tabs {
  display: flex;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.gallery-filter-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 4px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.gallery-filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
  }
  .gallery-filter-tabs {
    width: auto;
  }
  .gallery-header-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gallery-item-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #000000;
  cursor: pointer;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-cam-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-pill);
}

.gallery-item-meta {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gallery-item-date {
  font-size: 9.5px;
  color: var(--text-dim);
}

.gallery-item-size {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.gallery-item-actions {
  display: flex;
  gap: 4px;
  padding: 0 6px 6px 6px;
}

.gallery-item-actions .btn {
  flex: 1;
  min-height: 28px;
  padding: 3px;
  font-size: 10.5px;
}

/* ==========================================================================
   13. Samsung Lightbox Modal (<dialog>)
   ========================================================================== */

#gallery-lightbox {
  border: none;
  background: transparent;
  max-width: 94vw;
  max-height: 90vh;
  margin: auto;
  border-radius: var(--radius-xl);
  outline: none;
}

#gallery-lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-dialog-content {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 800px;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-title {
  font-size: 13.5px;
  font-weight: 700;
}

.lightbox-body {
  padding: 6px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-xs);
}

.lightbox-footer {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   14. Action Cards & Terminal
   ========================================================================== */

.action-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
}

@media (max-width: 480px) {
  .action-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    align-items: start;
  }
  .action-icon {
    grid-column: 1;
    grid-row: 1;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .action-info {
    grid-column: 2;
    grid-row: 1;
  }
  .action-card .btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 34px;
    font-size: 12px;
  }
}

.action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.action-info {
  flex: 1;
  min-width: 0;
}

.action-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.action-info p {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.terminal-box {
  background-color: #08090c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.prompt-sym {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 13px;
}

.term-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
}

.terminal-output {
  background-color: #040507;
  border-radius: var(--radius-xs);
  padding: 8px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Skeleton & Loading States */
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #181920 25%, #232530 50%, #181920 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-pill);
  animation: skeleton-shine 1.5s infinite;
  margin: 3px 0;
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-loading, .gallery-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
