:root {
  --bg: #0c111b;
  --panel: #111827;
  --border: #1e293b;
  --text: #e8eef7;
  --muted: #8b9bb0;
  --brand: #3b82f6;
  --brand-hover: #2563eb;
  --ok: #34d399;
  --err: #f87171;
  --btn-radius: 10px;
  --btn-pad-y: 10px;
  --btn-pad-x: 16px;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1e293b44, transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center
}

.container {
  width: 100%;
  max-width: 960px;
  padding: 24px
}

.card {
  background: linear-gradient(180deg, #0b1220, #0b1220), var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px #00000055;
  padding: 24px;
  position: relative;
  overflow: hidden
}

.shine {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, #60a5fa22, transparent 25%);
  filter: blur(30px);
  animation: spin 10s linear infinite;
  pointer-events: none
}

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

h1 {
  font-size: 24px;
  margin: 0 0 16px
}

h2 {
  font-size: 18px;
  margin: 0 0 8px
}

p {
  margin: 0 0 12px;
  color: var(--muted)
}

.title {
  font-weight: 800;
  letter-spacing: .2px
}

.row {
  display: grid;
  gap: 8px
}

.header {
  text-align: center
}

.header h1,
.header .title,
.header .muted {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}

.header .title {
  overflow-wrap: anywhere;
  word-break: break-word
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #cbd5e1
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  box-sizing: border-box
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px 18px;
  padding-right: 42px;
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2563eb44
}

.row {
  display: grid;
  gap: 8px
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

button,
.btn,
a.btn {
  appearance: none;
  background: var(--brand);
  color: #fff;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font: 600 13px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
  box-shadow: none;
}

button:hover,
.btn:hover,
a.btn:hover {
  background: var(--brand-hover);
}

button:active,
.btn:active,
a.btn:active {
  opacity: .92;
}

button:disabled,
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.secondary,
.btn-secondary,
button.secondary {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.secondary:hover,
.btn-secondary:hover,
button.secondary:hover {
  background: #151c2c !important;
  border-color: #334155 !important;
}

.btn {
  background: var(--brand) !important;
}

.btn-secondary {
  background: transparent !important;
}

.muted {
  color: var(--muted)
}

.ok {
  color: var(--ok)
}

.err {
  color: var(--err)
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  justify-content: center;
}

.tile {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px #00000033
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #00000044
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 18px
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

textarea,
.ta {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  min-height: 36px
}

textarea:focus,
.ta:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #2563eb33
}

textarea::-webkit-scrollbar {
  width: 10px
}

textarea::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 8px
}

textarea::-webkit-scrollbar-track {
  background: #0b1220
}

.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #3b82f6;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3)
}

.copy-notification.show {
  transform: translateX(0)
}

.content {
  max-width: 760px;
  margin: 0 auto;
  width: 100%
}

.field {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px
}

.label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px
}

.note {
  color: var(--muted);
  font-size: 13px
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #0b1220;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #334155, #475569);
  border-radius: 10px;
  border: 2px solid #0b1220;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #475569, #64748b);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #64748b, #78716c);
}

::-webkit-scrollbar-corner {
  background: #0b1220;
}

::-webkit-scrollbar:horizontal {
  height: 12px;
}

pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

pre::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 6px;
  border: 1px solid #334155;
}

pre::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #475569 #0b1220;
}

#cmdPreview::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#cmdPreview::-webkit-scrollbar-track {
  background: #0b1220;
  border-radius: 8px;
  border: 1px solid #334155;
}

#cmdPreview::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 8px;
  border: 1px solid #1e40af;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

#cmdPreview::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.5);
}

#cmdPreview::-webkit-scrollbar-corner {
  background: #0b1220;
}

body::after {
  content: 'Horiciastko × paprykae';
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #5b6b80;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: .04em;
  z-index: 2000;
  pointer-events: none;
  backdrop-filter: none;
  box-shadow: none;
}