/* Modpack-Werkstatt – ergänzt app.css (gleiche Farben, Knöpfe, Felder) */
.accent-text { color: var(--accent-text); }
a.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
a.btn.ghost:hover { background: var(--card2); color: var(--text); }
a.btn.icon { width: 38px; padding: 0; }

.ws-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ws-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 max(16px, calc((100vw - 1180px) / 2)); background: var(--bg); border-bottom: 1px solid var(--line);
}
.ws-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.ws-brand:hover { text-decoration: none; }
.ws-brand img { width: 34px; height: 34px; }
.ws-brand > span { display: flex; flex-direction: column; line-height: 1.15; }
.ws-brand b { font-size: 15.5px; }
.ws-brand small { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.ws-main { width: min(1180px, 100%); margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 18px; }

.ws-hero h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.ws-hero p { margin: 0; max-width: 760px; }
.ws-h2 { margin: 10px 0 0; font-size: 16px; }
.ws-title { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.ws-title small { font-size: 14px; color: var(--muted); font-weight: 600; }
.ws-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); align-self: flex-start; }
.ws-back svg { width: 16px; height: 16px; }

/* Hochladen */
.ws-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 170px; padding: 24px 16px; border: 2px dashed var(--line2); border-radius: 14px; background: var(--card2);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.ws-drop:hover, .ws-drop.over, .ws-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.ws-drop svg { width: 34px; height: 34px; color: var(--accent-text); }
.ws-drop b { font-size: 15px; }
.ws-up-status { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.ws-up-status .meter { height: 10px; }
.ws-up-status .meter > i { background: var(--accent); }

/* Liste der Modpacks */
.ws-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ws-pack { display: flex; flex-direction: column; gap: 6px; color: var(--text); min-width: 0; transition: border-color 0.15s; }
.ws-pack:hover { text-decoration: none; border-color: var(--accent); }
.ws-pack b { min-width: 0; }

/* Ein Modpack */
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ws-grid h2, .card > h2, .card .spread > h2 { margin: 0; font-size: 16px; }
.ws-dl { align-items: flex-start; }
.ws-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.card .row > input[type='password'] { flex: 1; min-width: 200px; }
.card .row.tight > input.mono { flex: 1; }

.ws-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ws-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--card2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ws-rows { display: flex; flex-direction: column; }
.ws-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.ws-rows .ws-row:first-child { border-top: none; }
.ws-row:hover { background: var(--card2); }
.ws-row input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.ws-row.off .ws-icon, .ws-row.off .ws-row-main, .ws-row.off .badge { opacity: 0.5; }
.ws-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-row-main a { color: var(--text); font-weight: 650; }
.ws-row-main .warn-text { align-items: flex-start; }
.ws-icon { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-weight: 700; color: var(--accent-text); }
.ws-icon img { width: 100%; height: 100%; object-fit: cover; }
.ws-icon.plain svg { width: 18px; height: 18px; color: var(--muted); }
.badge.ws-side svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .ws-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ws-row { grid-template-columns: auto auto minmax(0, 1fr); }
  .ws-row > .badge { grid-column: 3; justify-self: start; }
  .ws-hero h1 { font-size: 20px; }
  .card .spread { flex-wrap: wrap; }
}
