/* Only what the .gitignore generator needs on top of tool_page.css: the
   picker, the chips, the custom-pattern box and the preview. */
.gi {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.gi [hidden] {
  display: none !important;
}

.gi-panel {
  padding: 20px;
  border-radius: 24px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 2, 18, 0.6);
}

.gi-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.gi-panel-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.gi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gi-search {
  position: relative;
  margin-bottom: 14px;
}

.gi-search i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

.gi-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
}

.gi-search input:focus {
  outline: none;
  border-color: #6e00ff;
}

.gi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gi-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(110, 0, 255, 0.5);
  background: rgba(110, 0, 255, 0.22);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.gi-chip:hover {
  background: rgba(110, 0, 255, 0.34);
}

.gi-chip-x {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1;
}

.gi-chips-empty {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.gi-group + .gi-group {
  margin-top: 18px;
}

.gi-group-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gi-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gi-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gi-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.gi-option.is-on {
  border-color: #6e00ff;
  background: rgba(110, 0, 255, 0.2);
  color: #fff;
}

.gi-option-check {
  width: 0;
  overflow: hidden;
  color: #c9a7ff;
  font-size: 12px;
  transition: width 0.15s ease;
}

.gi-option.is-on .gi-option-check {
  width: 12px;
}

.gi-empty-search {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.gi-custom {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.gi-custom:focus {
  outline: none;
  border-color: #6e00ff;
}

.gi-hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.gi-hint a {
  color: #c9a7ff;
}

.gi-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.gi-metric {
  padding: 12px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}

.gi-metric-value {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.gi-metric-label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.gi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gi-status {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  min-height: 18px;
}

.gi-status--ok {
  color: #6ee7a8;
}

.gi-output {
  margin: 0;
  max-height: 620px;
  min-height: 260px;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  tab-size: 2;
}

.gi-copy-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  min-height: 18px;
}

.gi-copy-status--error {
  color: #ff8ba0;
}

.gi-count {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

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

  .gi-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
