/* Modular Synthesizer Stylesheet - Pico CSS Integration */

:root {
  --synth-accent-audio: var(--pico-primary, #10b981);
  --synth-accent-cv: var(--pico-secondary, #f59e0b);
  --synth-accent-gate: #06b6d4;
  --synth-accent-danger: var(--pico-del-color, #ef4444);
}

/* Synthesizer App Layout */
.synth-app-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  user-select: none;
}

/* Toolbar */
.synth-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.15));
  border: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  margin-bottom: var(--pico-spacing, 1rem);
  box-shadow: var(--pico-card-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.15));
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.synth-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pico-primary);
  margin-right: 8px;
}

/* Toolbar Controls */
.synth-btn {
  background: var(--pico-form-element-background-color);
  color: var(--pico-color);
  border: 1px solid var(--pico-form-element-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--pico-transition, 0.15s ease), border-color var(--pico-transition, 0.15s ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  height: auto;
  line-height: 1.4;
}

.synth-btn:hover {
  background: var(--pico-primary-hover, rgba(16, 185, 129, 0.15));
  border-color: var(--pico-primary);
  color: var(--pico-primary-inverse, #fff);
}

.synth-btn.active {
  background: var(--pico-primary);
  color: var(--pico-primary-inverse, #fff);
  border-color: var(--pico-primary);
}

.btn-mute.active {
  background: var(--pico-del-color, #ef4444);
  color: #fff;
  border-color: var(--pico-del-color, #ef4444);
}

.synth-select {
  background: var(--pico-form-element-background-color);
  color: var(--pico-form-element-color, var(--pico-color));
  border: 1px solid var(--pico-form-element-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  margin: 0;
  height: auto;
}

.synth-select:focus {
  border-color: var(--pico-primary);
}

/* Modular Rack Grid */
.modular-rack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--pico-spacing, 1rem);
  width: 100%;
  box-sizing: border-box;
}

/* Individual Module Card */
.synth-module {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--pico-card-box-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: visible; /* Allow autocomplete dropdowns to pop out */
  box-sizing: border-box;
  transition: box-shadow var(--pico-transition, 0.2s ease), border-color var(--pico-transition, 0.2s ease), transform 0.2s ease;
}

/* Elevate module z-index when interacting with its autocompletes */
.synth-module:focus-within {
  z-index: 50;
}

/* Glowing Highlights for Patch Connection [Show] */
.module-highlight-source {
  border-color: var(--pico-primary) !important;
  box-shadow: 0 0 18px var(--pico-primary), inset 0 0 8px var(--pico-primary) !important;
  transform: translateY(-2px);
}

.module-highlight-target {
  border-color: var(--pico-secondary, #f59e0b) !important;
  box-shadow: 0 0 18px var(--pico-secondary, #f59e0b), inset 0 0 8px var(--pico-secondary, #f59e0b) !important;
  transform: translateY(-2px);
}

/* Module Header */
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.2));
  border-bottom: 1px solid var(--pico-card-border-color, var(--pico-border-color));
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.module-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--pico-muted-color);
  font-size: 1.15rem;
  line-height: 1;
  padding: 1px 4px;
  border-radius: var(--pico-border-radius, 0.25rem);
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.module-drag-handle:hover {
  color: var(--pico-color);
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.25));
}

.module-drag-handle:active,
.module-drag-handle[aria-grabbed="true"] {
  cursor: grabbing;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-move-module {
  font-size: 0.68rem;
  padding: 3px 6px;
  color: var(--pico-muted-color);
}

.btn-move-module:hover {
  color: var(--pico-primary);
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.2));
}

/* Dragging state */
.synth-module.is-dragging {
  opacity: 0.35;
  transform: scale(0.98);
  border-style: dashed !important;
}

/* Drop insertion indicators */
.synth-module.drop-target-before {
  position: relative;
}

.synth-module.drop-target-before::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -10px;
  width: 4px;
  background: var(--pico-primary);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--pico-primary);
  z-index: 100;
  pointer-events: none;
}

.synth-module.drop-target-after {
  position: relative;
}

.synth-module.drop-target-after::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  right: -10px;
  width: 4px;
  background: var(--pico-primary);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--pico-primary);
  z-index: 100;
  pointer-events: none;
}

.module-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  color: var(--pico-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.module-title:hover {
  color: var(--pico-primary);
  border-bottom-color: var(--pico-primary);
}

.module-type-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--pico-form-element-background-color);
  color: var(--pico-muted-color);
  padding: 1px 6px;
  border-radius: var(--pico-border-radius, 0.25rem);
  border: 1px solid var(--pico-muted-border-color, var(--pico-border-color));
  flex-shrink: 0;
}

.btn-remove-module {
  background: transparent;
  color: var(--pico-muted-color);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: var(--pico-border-radius, 0.25rem);
  margin: 0;
  height: auto;
}

.btn-remove-module:hover {
  color: var(--pico-del-color, #ef4444);
  background: rgba(239, 68, 68, 0.15);
}

/* Module Controls Body */
.module-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  min-width: 0;
  box-sizing: border-box;
}

.controls-row {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.controls-row > * {
  flex: 1 1 0;
  min-width: 0;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--pico-muted-color);
  font-weight: 600;
  min-width: 0;
}

.control-header label {
  margin: 0;
  font-size: inherit;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.control-value {
  color: var(--pico-primary);
  font-family: var(--pico-font-family-monospace);
  font-size: 0.74rem;
  flex-shrink: 0;
}

/* Sliders */
.synth-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--pico-form-element-background-color);
  border-radius: 3px;
  border: 1px solid var(--pico-muted-border-color, var(--pico-border-color));
  outline: none;
  margin: 4px 0 0 0;
}

.synth-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pico-primary);
  cursor: pointer;
  border: 2px solid var(--pico-card-background-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

.synth-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Collapsible Ports Details */
.module-ports-details {
  border-top: none;
  margin: 0;
  border-radius: 0 0 var(--pico-border-radius, 0.5rem) var(--pico-border-radius, 0.5rem);
  background: transparent;
}

.module-ports-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pico-muted-color);
  cursor: pointer;
  user-select: none;
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.18));
  list-style: none;
  border-top: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  transition: background 0.15s ease, color 0.15s ease;
}

.module-ports-summary:hover {
  color: var(--pico-color);
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.3));
}

.module-ports-summary::-webkit-details-marker {
  display: none;
}

.ports-summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.ports-summary-label::before {
  content: '▾';
  font-size: 0.75rem;
  display: inline-block;
  transition: transform 0.15s ease;
}

.module-ports-details:not([open]) .ports-summary-label::before {
  transform: rotate(-90deg);
}

.ports-summary-counts {
  font-size: 0.62rem;
  font-family: var(--pico-font-family-monospace);
  padding: 1px 6px;
  border-radius: var(--pico-border-radius, 0.25rem);
  background: var(--pico-form-element-background-color);
  color: var(--pico-muted-color);
  border: 1px solid var(--pico-muted-border-color, var(--pico-border-color));
}

/* Ports & Patching Section - Grid with bounded minmax */
.module-ports {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.1));
  border-top: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Modules with only inputs or only outputs take full width */
.module-ports:has(> .ports-column:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.ports-column {
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.ports-in {
  border-right: 1px solid var(--pico-card-border-color, var(--pico-border-color));
}

.ports-column:only-child {
  border-right: none;
}

.ports-column-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pico-muted-color);
  margin-bottom: 2px;
  white-space: nowrap;
}

/* Individual Port Container */
.port {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.port-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  min-width: 0;
}

.port-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--pico-muted-border-color, #555);
  background: transparent;
  flex-shrink: 0;
}

.port-indicator.in {
  border-color: var(--synth-accent-cv);
  background: var(--synth-accent-cv);
}

.port-indicator.out {
  border-color: var(--synth-accent-audio);
  background: var(--synth-accent-audio);
}

.port-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-grow: 1;
}

.port-badge {
  font-size: 0.6rem;
  font-family: var(--pico-font-family-monospace);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  flex-shrink: 0;
}

.port-badge.audio {
  background: rgba(16, 185, 129, 0.15);
  color: var(--synth-accent-audio);
}

.port-badge.cv {
  background: rgba(245, 158, 11, 0.15);
  color: var(--synth-accent-cv);
}

.port-badge.gate {
  background: rgba(6, 182, 212, 0.15);
  color: var(--synth-accent-gate);
}

/* Connection Badges - Strictly bounded */
.port-connections-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.connection-badge {
  display: flex;
  align-items: center;
  background: var(--pico-form-element-background-color);
  border: 1px solid var(--pico-muted-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  padding: 3px 6px;
  font-size: 0.72rem;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.conn-name {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pico-color);
}

/* Flat Icon Buttons */
.btn-icon {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: var(--pico-border-radius, 0.25rem);
  line-height: 1;
  color: var(--pico-muted-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: auto;
}

.btn-icon:hover {
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.2));
  color: var(--pico-color);
}

.btn-icon.btn-disconnect:hover {
  color: var(--pico-del-color, #ef4444);
}

.btn-icon.btn-show:hover {
  color: var(--pico-primary);
}

/* Flat 2D Outline Eye Icon */
.icon-eye {
  display: inline-block;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Autocomplete search input & dropdown */
.port-autocomplete-wrapper {
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.port-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--pico-form-element-background-color);
  color: var(--pico-color);
  border: 1px dashed var(--pico-muted-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  padding: 4px 6px;
  font-size: 0.72rem;
  font-family: var(--pico-font-family);
  outline: none;
  margin: 0;
  height: auto;
}

.port-input:focus {
  border-style: solid;
  border-color: var(--pico-primary);
}

.port-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  max-width: 260px;
  max-height: 180px;
  overflow-y: auto;
  background: var(--pico-dropdown-background-color, var(--pico-card-background-color));
  border: 1px solid var(--pico-dropdown-border-color, var(--pico-card-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  margin-top: 2px;
}

/* On right-side output column, anchor dropdown to right edge so it expands inward */
.ports-out .port-dropdown {
  left: auto;
  right: 0;
}

.port-dropdown.hidden {
  display: none;
}

.port-option-group {
  border-bottom: 1px solid var(--pico-muted-border-color, var(--pico-border-color));
}

.port-option-group:last-child {
  border-bottom: none;
}

.port-option-group-title {
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pico-muted-color);
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.15));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.port-option {
  padding: 5px 8px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--pico-color);
  transition: background 0.1s ease;
}

.port-option:hover {
  background: var(--pico-primary-hover, rgba(16, 185, 129, 0.15));
  color: var(--pico-primary-inverse, #fff);
}

.port-option-empty {
  padding: 8px;
  font-size: 0.72rem;
  color: var(--pico-muted-color);
  text-align: center;
}

/* Onscreen Piano Keyboard */
.onscreen-keyboard-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.onscreen-keyboard-wrap::-webkit-scrollbar {
  display: none;
}

.onscreen-keyboard {
  display: flex;
  height: 90px;
  position: relative;
  background: #000;
  border-radius: var(--pico-border-radius, 0.25rem);
  border: 1px solid var(--pico-card-border-color, #333);
  user-select: none;
  min-width: 480px;
}

.piano-key {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  box-sizing: border-box;
}

.white-key {
  width: 25px;
  height: 100%;
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 0 0 2px 2px;
  z-index: 1;
}

.white-key:last-child {
  border-right: none;
}

.white-key.active, .white-key:active {
  background: var(--pico-primary);
  color: var(--pico-primary-inverse, #fff);
  transform: translateY(1px);
}

.black-key {
  width: 16px;
  height: 60%;
  background: #1e293b;
  color: #94a3b8;
  margin-left: -8px;
  margin-right: -8px;
  z-index: 2;
  border-radius: 0 0 2px 2px;
  border: 1px solid #000;
}

.black-key.active, .black-key:active {
  background: var(--pico-primary);
  color: var(--pico-primary-inverse, #fff);
}

.key-qwerty {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--pico-font-family-monospace);
}

.key-note {
  font-size: 0.52rem;
  opacity: 0.75;
}

/* Status LEDs */
.led-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.status-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pico-muted-border-color, #444);
  border: 1px solid var(--pico-border-color, #222);
  display: inline-block;
  transition: background 0.08s ease, box-shadow 0.08s ease;
}

.status-led.active {
  background: var(--pico-primary);
  box-shadow: 0 0 8px var(--pico-primary);
}

.status-led.lfo-led {
  width: 14px;
  height: 14px;
}

.status-led.lfo-led.active {
  background: var(--pico-primary);
  box-shadow: 0 0 8px var(--pico-primary);
}

/* Sequencer Grid */
.sequencer-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.15));
  padding: 8px;
  border-radius: var(--pico-border-radius, 0.25rem);
  border: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  min-width: 0;
  box-sizing: border-box;
}

.sequencer-step-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.step-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pico-muted-color);
}

.step-pitch-val {
  font-size: 0.65rem;
  font-family: var(--pico-font-family-monospace);
  color: var(--pico-primary);
}

.slider-vertical {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 14px;
  height: 70px;
  margin: 0;
}

.btn-step-gate {
  padding: 2px 4px;
  font-size: 0.65rem;
}

/* Oscilloscope Canvas */
.scope-canvas-wrap {
  background: #0c0f14;
  border-radius: var(--pico-border-radius, 0.25rem);
  overflow: hidden;
  border: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  min-width: 0;
  box-sizing: border-box;
}

.scope-canvas {
  display: block;
  width: 100%;
  height: 140px;
}

/* In-Page Modal Dialog - Pico Integration */
.synth-modal {
  border: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.375rem);
  background: var(--pico-card-background-color);
  color: var(--pico-color);
  padding: 0;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--pico-card-box-shadow, 0 16px 36px rgba(0, 0, 0, 0.6));
  outline: none;
}

.synth-modal::backdrop {
  background: var(--pico-modal-overlay-background-color, rgba(0, 0, 0, 0.65));
  backdrop-filter: var(--pico-modal-overlay-backdrop-filter, blur(0.375rem));
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 12px 16px;
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.2));
  border-bottom: 1px solid var(--pico-card-border-color, var(--pico-border-color));
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pico-color);
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--pico-color);
}

.modal-body p {
  margin: 0;
}

.synth-modal-input {
  background: var(--pico-form-element-background-color);
  border: 1px solid var(--pico-form-element-border-color, var(--pico-border-color));
  border-radius: var(--pico-border-radius, 0.25rem);
  padding: 6px 10px;
  font-size: 0.88rem;
  color: var(--pico-color);
  outline: none;
  margin: 0;
}

.synth-modal-input:focus {
  border-color: var(--pico-primary);
}

.modal-footer {
  padding: 10px 16px;
  background: var(--pico-card-sectioning-background-color, rgba(0, 0, 0, 0.2));
  border-top: 1px solid var(--pico-card-border-color, var(--pico-border-color));
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-modal-cancel {
  background: var(--pico-form-element-background-color);
  color: var(--pico-muted-color);
}

.btn-modal-cancel:hover {
  background: var(--pico-card-background-color);
  color: var(--pico-color);
}

.btn-modal-confirm {
  background: var(--pico-primary);
  color: var(--pico-primary-inverse, #fff);
  border-color: var(--pico-primary);
}

.btn-modal-confirm:hover {
  background: var(--pico-primary-hover);
}

.btn-modal-danger {
  background: var(--pico-del-color, #ef4444);
  color: #fff;
  border-color: var(--pico-del-color, #ef4444);
}

.btn-modal-danger:hover {
  background: #dc2626;
}
