/* Nordic Minimal Design System */
:root{
  --bg-1:#0F0F11; --bg-2:#16161A; --panel:#1E1E24;
  --text:#F5F5F7; --muted:#A8A8B3; --line:rgba(255,255,255,.08);
  --accent:#E89B3C; --accent-2:#C74A36; --steel:#8FA3B8;
  --success:#14C57A; --success-bg:#0A4D36;
  --radius:16px; --gap:12px; --shadow:0 12px 40px rgba(0,0,0,.5);
  --tab-active:#2C2C34;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Source Sans Pro", Arial, sans-serif;
  background:linear-gradient(135deg, #0F0F11 0%, #16161A 50%, #1A1A20 100%);
  color:var(--text);
  line-height:1.6;
}
.sr-only{position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
.skip{position:absolute;left:-9999px;top:-9999px}
.skip:focus{left:8px;top:8px;background:#000;color:#fff;padding:8px 12px;border-radius:8px}
header.toolbar{
  position:sticky; top:0; z-index:5; display:flex; gap:var(--gap); align-items:center; justify-content:space-between;
  padding:12px clamp(8px,4vw,24px); border-bottom:1px solid var(--line); background:rgba(18,18,20,.85); backdrop-filter:saturate(1.2) blur(6px);
}
.brand{font-size:clamp(14px,2vw,18px); letter-spacing:.18em; font-weight:700; text-transform:uppercase; margin:0}
.brand span{color:var(--accent)}
.brand .version{font-size:0.7rem; color:var(--muted); font-weight:400; letter-spacing:0.05em; margin-left:8px}
.toolbar-actions{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.btn{
  background:#2A2A2E; color:var(--text); border:1px solid var(--line); border-radius:12px; padding:8px 12px;
  box-shadow:0 2px 0 rgba(255,255,255,.03) inset; cursor:pointer; transition:.2s transform,.2s background,.2s border-color;
}
.btn:hover{background:#323238}
.btn:active{transform:translateY(1px)}
.btn[aria-pressed="true"], .btn.accent{background:var(--accent); color:#1a1206; border-color:transparent}
.btn[aria-pressed="true"]:hover{background:#c4932a}
.btn.subtle{background:transparent}
.btn.danger{background:var(--accent-2); border-color:transparent; color:#fff}
.btn.danger:hover{background:#a03d2e}
.btn-icon{padding:6px 8px; border-radius:10px}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 1s ease-in-out infinite;
}

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

.btn.loading {
  cursor: not-allowed;
  opacity: 0.7;
}

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

/* Enhanced loading states */
.spinner.large {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 32, 36, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 10;
}

.loading-content {
  text-align: center;
  color: var(--text);
}

.loading-content p {
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.loading-content small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Disable form inputs during loading */
.panel form input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #16161a;
}

.search-wrap{display:flex; align-items:center; width: 100%}
.search-input{
  background:rgba(255,255,255,.04); color:var(--text); border:1px solid var(--line); border-radius:12px;
  padding:10px 14px; width: 100%; font-size:0.95rem;
  transition: all 0.3s ease;
}
.search-input:focus{
  outline:none; border-color:var(--accent); background:rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(232,155,60,.15);
}
#search{
  background:#1c1c20; color:var(--text); border:1px solid var(--line); border-radius:12px; padding:10px 12px; min-width:min(52vw,420px);
}
/* Tab Navigation */
.tab-navigation{
  display:flex; gap:8px; padding:16px clamp(12px,3vw,32px) 0;
  border-bottom:1px solid var(--line); background:rgba(18,18,20,.5);
  justify-content: center;
}

.tab-btn{
  background:transparent; color:var(--muted); border:none; border-radius:12px 12px 0 0;
  padding:14px 28px; cursor:pointer; transition:all .3s ease; font-size:1rem; font-weight:600;
  display:flex; align-items:center; gap:10px; position:relative;
}

.tab-btn:hover{
  background:rgba(255,255,255,.05); color:var(--text);
}

.tab-btn.active{
  background:var(--tab-active); color:var(--accent);
  box-shadow:0 -4px 12px rgba(0,0,0,.3);
}

.tab-btn.active::after{
  content:''; position:absolute; bottom:0; left:0; right:0; height:3px;
  background:var(--accent); border-radius:3px 3px 0 0;
}

.tab-icon{font-size:1.4rem; line-height:1;}
.tab-label{letter-spacing:0.02em;}

/* Content Sections */
.content-section{
  display:none; animation: fadeIn 0.4s ease;
}

.content-section.active{
  display:block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:24px clamp(12px,3vw,32px) 16px; flex-wrap:wrap;
}

.section-title{
  font-size:clamp(1.4rem, 3vw, 1.8rem); font-weight:700; letter-spacing:0.02em;
  margin:0; color:var(--text);
}

.section-actions{
  display:flex; gap:12px; align-items:center; flex:1; max-width:500px;
}

.filters-section{
  padding:8px clamp(12px,3vw,32px) 16px;
}

.grid-wrap{padding:0 clamp(12px,3vw,32px) 24px;}
.grid{
  display: flex;
  gap: 12px;
  justify-items: start;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-end;
}
.pad{
  position:relative; display:flex; flex-direction:column; gap:8px; border-radius:16px; padding:12px; border:1px solid var(--line);
  background:#242428; box-shadow:var(--shadow); text-align:left; cursor:pointer; overflow:hidden; isolation:isolate;
  transition: box-shadow .25s, transform .08s;
  min-width: 120px;
  max-width: 200px;
  flex: 0 0 auto;
}
.pad:focus{outline:2px solid var(--accent); outline-offset:2px}
.pad[aria-pressed="true"]{box-shadow:0 0 0 2px rgba(217,164,65,.35), 0 0 32px rgba(217,164,65,.18)}

/* Effect button - pulsante colorato semplice */
.pad.effect-button{
  min-width: 110px;
  max-width: 200px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.2);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  filter: saturate(0.9) brightness(0.95);
  position: relative;
  overflow: hidden;
}

.pad.effect-button::before{
  content:''; position:absolute; top:0; left:0; right:0; bottom:0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity:0; transition: opacity .3s ease;
}

.pad.effect-button:hover::before{
  opacity:1;
}

.pad.effect-button:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
  filter: saturate(1) brightness(1.1);
  border-color: rgba(255,255,255,.3);
}

.pad.effect-button:active{
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1) inset;
}

.pad.effect-button[aria-pressed="true"]{
  box-shadow: 0 0 0 4px rgba(255,255,255,.6), 0 0 32px currentColor, 0 0 60px currentColor;
  filter: saturate(1.3) brightness(1.25);
  animation: effect-pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: rgba(255,255,255,.5);
}

@keyframes effect-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.effect-label{
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
  word-wrap: break-word;
  max-width: 100%;
  letter-spacing: 0.015em;
  position: relative;
  z-index: 1;
}

.pad.effect-button .effect-tools{
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}

.pad.effect-button:hover .effect-tools,
.pad.effect-button:focus-within .effect-tools{
  opacity: 1;
}

.pad.effect-button .btn-icon{
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}

.pad.effect-button .btn-icon:hover{
  background: rgba(0,0,0,.8);
  border-color: rgba(255,255,255,.4);
}

@media (max-width: 768px) {
  .pad.effect-button .effect-tools{
    opacity: 1;
  }
}
.pad .pad-tools{
  display:flex; gap:6px; flex-wrap:wrap; align-items:center; justify-content:flex-start;
}
.pad .pad-body{display:flex; flex-direction:column; gap:8px; min-width:0}
.pad .pad-label{font-weight:600; letter-spacing:.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pad .pad-meta{display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:.9rem}
.pad .vol{width:52%; accent-color:var(--accent)}
.pad .pad-progress{position:absolute; left:0; right:0; bottom:0; height:3px; overflow:hidden; background:linear-gradient(90deg, transparent, rgba(255,255,255,.05));}
.pad .pad-progress span{display:block; width:100%; height:100%; transform-origin:left; transform:scaleX(0); background:currentColor; opacity:.6}

/* Seek bar for longer audio files */
.pad .pad-seek-bar{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 20px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,.3);
  border-radius: 10px;
  padding: 0 8px;
  backdrop-filter: blur(4px);
}

.pad .pad-seek-bar input[type="range"] {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  outline: none;
  accent-color: currentColor;
  cursor: pointer;
}

.pad .pad-seek-bar input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.pad .pad-seek-bar input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.pad.compact{padding:8px}
.pad.compact .btn-icon{transform:scale(.9)}
.pad.compact .pad-label{font-size:.95rem}
.pad.compact .vol{width:56%}
.pad.compact .pad-seek-bar{left:8px; right:8px; bottom:6px}

.icon.favorite[aria-pressed="true"], .icon.loop[aria-pressed="true"]{background:rgba(217,164,65,.15); color:var(--accent)}
.icon.delete:hover{color:var(--accent-2)}
.icon.edit:hover{color:var(--steel)}

.panel::backdrop{background:rgba(0,0,0,.45); backdrop-filter: blur(4px)}
.panel{
  border:none; border-radius:16px; padding:16px; max-width:min(640px,92vw); background:var(--panel); color:var(--text); box-shadow:var(--shadow);
  position: relative;
}
.panel form{display:flex; flex-direction:column; gap:12px}
.panel h2{margin:.2em 0 .4em; letter-spacing:.12em; text-transform:uppercase; font-size:1rem; color:var(--muted)}
.panel .row{display:flex; flex-direction:column; gap:6px}
.panel input[type="text"], .panel input[type="file"]{
  background:#1c1c20; color:var(--text); border:1px solid var(--line); border-radius:12px; padding:10px 12px;
  transition: border-color 0.2s;
}
.panel input[type="text"]:focus, .panel input[type="file"]:focus{
  outline: none;
  border-color: var(--accent);
}
.panel .help{color:var(--muted); font-size:.9rem}
.panel menu{display:flex; gap:8px; justify-content:flex-end; margin:0; padding:0}

.filters, .tag-volumes{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px}
.filters label{display:flex; gap:8px; align-items:center}
.tag-volumes .row{display:flex; align-items:center; gap:10px}
.tag-volumes input[type="range"]{flex:1; accent-color:var(--accent)}

@media (max-width:580px){
  #search{min-width:min(66vw,380px)}
  .toolbar-actions{gap:6px}
}

/* Utility */
[hidden]{display:none !important}

/* Error bar */
#errorBar{margin:8px clamp(8px,3vw,24px); padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.14);
  background:#2a1d1d; color:#ffd3d3; box-shadow:0 6px 16px rgba(0,0,0,.25); cursor:pointer; word-wrap: break-word; max-width: 100%}

/* Better error styling */
#errorBar {
  animation: slideInFromTop 0.3s ease-out;
  border-left: 4px solid var(--accent-2);
}

/* Offline loading overlay styles */
.offline-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 20, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.offline-loading-overlay .loading-content {
  text-align: center;
  color: var(--text);
}

.offline-loading-overlay .loading-content p {
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 1.2rem;
}

.offline-loading-overlay .loading-content small {
  color: var(--muted);
  font-size: 0.9rem;
}

#errorBar:hover {
  background: #3a2424;
}

/* Success notification */
.success-bar {
  animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Make span[role=button].btn-icon look clickable */
.btn-icon{display:inline-flex; align-items:center; justify-content:center; cursor:pointer; user-select:none}
.btn-icon:focus{outline:2px solid var(--accent); outline-offset:2px}
.btn-icon:hover{background:rgba(255,255,255,.06)}
.btn-icon.active{background:rgba(217,164,65,.15); color:var(--accent)}

/* Polished pads */
.pad{min-height:clamp(110px,18vh,160px)}
.pad-body{gap:6px}
.pad-stats{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.88rem}
.pad-stats .sep{opacity:.6}
.pad-controls{display:flex; align-items:center; gap:8px}
.vol-val{min-width:3ch; text-align:right; opacity:.8; font-variant-numeric:tabular-nums}
.tags{display:flex; gap:6px; align-items:center; flex-wrap:nowrap; overflow:hidden}
.tag{display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.03); color:var(--muted); font-size:.78rem; white-space:nowrap}
.tags .tag.overflow{opacity:.8}

/* Filter buttons */
.filters{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.filter-btn{
  font-size:.9rem; padding:8px 16px; background:rgba(255,255,255,.05);
  border:1px solid var(--line); border-radius:20px; transition:all .3s ease;
  font-weight:500;
}
.filter-btn:hover{
  background:rgba(255,255,255,.08); border-color:var(--accent); transform:translateY(-1px);
}
.filter-btn[aria-pressed="true"]{
  background:var(--accent); color:#1a1206; border-color:var(--accent);
  box-shadow: 0 4px 12px rgba(232,155,60,.3);
}

/* Sizing tweaks for larger icons and label */
:root{
  --icon-size: 36px;
  --icon-size-compact: 32px;
  --icon-font: 1.15rem;
  --label-font: clamp(1.05rem, 1.8vw, 1.25rem);
}

.pad .pad-label{
  font-size: var(--label-font);
  line-height: 1.2;
}

.btn-icon{
  width: var(--icon-size);
  height: var(--icon-size);
  font-size: var(--icon-font);
  padding: 0;
  border-radius: 12px;
}

.pad.compact .btn-icon{
  width: var(--icon-size-compact);
  height: var(--icon-size-compact);
}

.pad .pad-tools{
  gap: 8px;
}

/* Logo styling */
.toolbar-left{display:flex; align-items:center; gap:10px}
.logo{height:40px; width:auto; border-radius:8px}
@media (max-width:520px){
  .logo{height:32px}
}

/* Tag volumes panel specific styles */
#tagVolumesPanel {
  min-width: 400px;
  max-width: 90vw;
}

#tagVolumesPanel .tag-volumes .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

#tagVolumesPanel .tag-volumes .row:last-child {
  border-bottom: none;
}

#tagVolumesPanel .tag-volumes label {
  min-width: 120px;
  font-weight: 500;
  color: var(--text);
}

#tagVolumesPanel .tag-volumes input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

#tagVolumesPanel .tag-volumes .vol-val {
  min-width: 50px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Responsive adjustments for tag volumes */
@media (max-width: 480px) {
  #tagVolumesPanel {
    min-width: 320px;
  }
  
  #tagVolumesPanel .tag-volumes label {
    min-width: 80px;
    font-size: 0.9rem;
  }
}

/* Improved focus states */
.pad:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Better responsive grid */
.grid[data-size="small"] .pad {
  min-width: 100px;
  max-width: 140px;
}

.grid[data-size="large"] .pad {
  min-width: 160px;
  max-width: 240px;
}

/* Status indicator */
.status-indicator {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-indicator.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.offline {
  background: rgba(217, 164, 65, 0.15);
  color: var(--accent);
  border: 1px solid rgba(217, 164, 65, 0.3);
}

/* Offline loading overlay */
.offline-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 20, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Offline modal styles */
.offline-info {
  margin: 16px 0;
}

.offline-stats {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  font-weight: 600;
  color: var(--text);
}

/* Version info */
.version-info {
  margin: 8px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.version-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.version-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.version-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.version-value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  font-family: monospace;
}

/* Notification animations */
@keyframes slideOutToTop {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* Disabled state for offline */
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Sync status indicator */
.sync-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.sync-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.sync-light.synced {
  background: var(--success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: none;
}

.sync-light.connected {
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.sync-light.warning {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.6);
  animation: pulse 1s ease-in-out infinite;
}

.sync-light.disconnected {
  background: #6b7280;
  box-shadow: 0 0 8px rgba(107, 116, 128, 0.3);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

/* Room modal styles */
.room-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-stats {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Room name display */
.room-name-display {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  transition: all 0.3s ease;
}

.room-name-display:hover {
  background: rgba(217, 164, 65, 0.18);
  border-color: rgba(217, 164, 65, 0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .brand .version {
    display: none;
  }
  
  .toolbar-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .status-indicator {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .grid {
    gap: 8px;
  }
  
  .pad {
    min-width: 100px;
    max-width: 160px;
  }
  
  .pad .pad-seek-bar {
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 18px;
  }
}

/* Color Picker */
.color-picker-wrap{
  display:flex; gap:12px; align-items:center;
}

.color-input{
  width:60px; height:40px; border:2px solid var(--line); border-radius:8px;
  cursor:pointer; transition: border-color .3s ease;
}

.color-input:hover{
  border-color:var(--accent);
}

.color-hex{
  flex:1; background:#1c1c20; color:var(--text); border:1px solid var(--line);
  border-radius:8px; padding:10px 12px; font-family:monospace; font-size:0.95rem;
}

@media (max-width: 768px) {
  .tab-navigation{
    padding: 12px 16px 0;
  }

  .tab-btn{
    padding: 12px 20px; font-size: 0.9rem;
  }

  .section-header{
    flex-direction: column; align-items: stretch;
  }

  .section-actions{
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .toolbar {
    padding: 8px 12px;
  }

  .brand {
    font-size: 14px;
  }

  .btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .grid {
    gap: 6px;
  }

  .pad {
    padding: 8px;
    min-width: 90px;
    max-width: 140px;
  }

  .pad .pad-seek-bar {
    height: 16px;
    padding: 0 6px;
  }

  .pad .pad-seek-bar input[type="range"]::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
  }

  .pad .pad-seek-bar input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
  }

  .tab-btn{
    padding: 10px 16px;
  }

  .tab-icon{
    font-size: 1.2rem;
  }

  .tab-label{
    font-size: 0.85rem;
  }
}