*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #111827;
  background-color: #f3f4f6;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

.site-header {
  background-color: #111827;
  color: #f9fafb;
  border-bottom: 1px solid #0f172a;
}

.site-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.subtitle {
  margin: 0 0 0.5rem;
  color: #d1d5db;
}

.site-main {
  padding: 1rem 0 2rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.groups-section {
  grid-column: 2;
}

.tweaks-section {
  grid-column: 3;
}

.command-section {
  grid-column: 4;
}

.groups-section h2,
.tweaks-section h2,
.command-section h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.hint {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.groups-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.group-title {
  font-weight: 600;
}

.group-select-all {
  font-size: 0.9rem;
  color: #374151;
}

.apps-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.app-name {
  font-weight: 500;
}

.app-id {
  display: none;
}

.command-output {
  width: 100%;
  resize: vertical;
  min-height: 10rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #111827;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

.command-output:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.command-block {
  margin-bottom: 1.25rem;
}

.command-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.command-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

button#copyButtonApps,
button#copyButtonTweaks {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f9fafb;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}

button#copyButtonApps:hover,
button#copyButtonTweaks:hover {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
}

button#copyButtonApps:disabled,
button#copyButtonTweaks:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.copy-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #059669;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0 1.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

