:root {
  --gaidet-accent: #3b5bdb;
  --gaidet-accent-dark: #2f49ad;
  --gaidet-accent-bright: #7b98ff;
  --gaidet-accent-tint: #eef1fd;
  --gaidet-border: #e2e5ea;
  --gaidet-text-muted: #5b6270;
  --gaidet-warning-bg: #fff7ed;
  --gaidet-warning-border: #fed7aa;
  --gaidet-warning-text: #9a3412;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fbfbfc;
}

h1, h2 {
  margin-top: 2.2rem;
}

h2 {
  border-bottom: none;
  padding-bottom: 0;
}

#title-block-header {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.title {
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--gaidet-accent);
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0;
}

.gaidet-byline {
  font-size: 0.85rem;
  color: var(--gaidet-text-muted);
  margin-top: -0.6rem;
  margin-bottom: 1.5rem;
}

.gaidet-byline a {
  color: var(--gaidet-text-muted);
  text-decoration: underline;
}

.gaidet-byline a:hover {
  color: var(--gaidet-accent);
}

.callout {
  background-color: #fff;
}

.callout > .callout-body-container {
  background-color: #fff;
}

.callout,
.callout p,
.callout-body-container,
.callout-body-container p {
  font-size: 1rem !important;
}

.callout-title,
.callout-title-container,
.callout-title-container > * {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

a {
  color: var(--gaidet-accent);
}

a:hover {
  color: var(--gaidet-accent-bright);
}

.gaidet-category {
  background: #fff;
  border: 1px solid var(--gaidet-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.03);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gaidet-category:hover,
.gaidet-output:hover {
  border-color: var(--gaidet-accent);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.05);
  transform: translateY(-2px);
}

.gaidet-category h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.gaidet-item {
  margin-bottom: 0.6rem;
}

.gaidet-item-label {
  font-size: 1.05rem;
  transition: color 0.15s ease;
}

.gaidet-item > label {
  cursor: pointer;
}

.gaidet-item > label:hover .gaidet-item-label {
  color: var(--gaidet-accent);
}

.gaidet-item-complete {
  color: #1a7f37;
  font-weight: 700;
}

.gaidet-tool-group {
  margin-bottom: 0.85rem;
}

.gaidet-tool-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gaidet-text-muted);
  margin: 0 0 0.3rem 0;
}

.gaidet-sentence {
  display: block;
  width: 100%;
  max-width: 620px;
  max-height: 400px;
  margin-top: 0.3rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}

.gaidet-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.3rem 0.8rem;
  margin-bottom: 0.4rem;
}

.gaidet-tool-option {
  font-size: 0.9rem;
  font-weight: normal;
  padding: 0.15rem 0;
}

.gaidet-tool-option label,
label.gaidet-tool-option {
  cursor: pointer;
  transition: color 0.15s ease;
}

.gaidet-tool-option label:hover,
label.gaidet-tool-option:hover {
  color: var(--gaidet-accent);
}

.gaidet-version-input {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 1.4rem);
  margin: 0.15rem 0 0.3rem 1.4rem;
  padding: 0.1rem 0.3rem;
  font-size: 0.8rem;
}

.gaidet-tool-other {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.gaidet-show-more {
  display: inline-block;
  background: none;
  border: none;
  color: var(--gaidet-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.1rem 0 0.4rem 0;
  margin: 0;
  cursor: pointer;
}

.gaidet-show-more:hover {
  background: none;
  color: var(--gaidet-accent-bright);
  text-decoration: underline;
}

.gaidet-tool-label {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.gaidet-prompts-question {
  display: block;
  background: #fff;
  border: 1px solid var(--gaidet-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 4px rgba(16, 24, 40, 0.04);
  padding: 1.1rem 1.4rem;
  margin: 1rem 0 1.25rem;
}

.gaidet-prompts-question .gaidet-tool-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.gaidet-prompts-question .gaidet-tool-grid {
  grid-template-columns: repeat(auto-fill, minmax(90px, max-content));
  gap: 0.6rem 0.8rem;
}

.gaidet-prompts-question .gaidet-tool-option {
  font-size: 1rem;
}

.gaidet-prompts-question .gaidet-tool-option label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gaidet-border);
  border-radius: 8px;
  font-size: 1.05rem;
}

.gaidet-prompts-question .gaidet-tool-option label:hover {
  border-color: var(--gaidet-accent);
  background: var(--gaidet-accent-tint);
}

.gaidet-prompts-question .gaidet-tool-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.gaidet-autocomplete {
  max-width: 340px;
}

.gaidet-autocomplete-wrap {
  position: relative;
}

.gaidet-autocomplete-input {
  width: 100%;
  box-sizing: border-box;
}

.gaidet-autocomplete-input-more {
  width: 210px;
  font-size: 0.82rem;
  padding: 0.32rem 0.5rem;
  color: var(--gaidet-accent-dark);
  border-style: dashed;
}

.gaidet-autocomplete-input-more::placeholder {
  color: var(--gaidet-accent);
  opacity: 1;
}

.gaidet-autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gaidet-border);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.05);
  list-style: none;
  margin: 0;
  padding: 0.25rem;
}

.gaidet-autocomplete-item {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gaidet-autocomplete-item mark {
  background: var(--gaidet-accent-tint);
  color: var(--gaidet-accent);
  border-radius: 3px;
  padding: 0 1px;
}

.gaidet-autocomplete-item > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.gaidet-autocomplete-item-category {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--gaidet-text-muted);
  white-space: nowrap;
}

.gaidet-autocomplete-item.active,
.gaidet-autocomplete-item:hover {
  background: var(--gaidet-accent-tint);
}

.gaidet-autocomplete-add-custom {
  justify-content: flex-start;
  gap: 0;
  font-style: italic;
  color: var(--gaidet-accent);
}

.gaidet-autocomplete-selected {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gaidet-autocomplete-chip {
  display: flex;
  flex-direction: column;
  background: var(--gaidet-accent-tint);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.gaidet-autocomplete-chip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gaidet-autocomplete-chip-name {
  font-size: 0.88rem;
  color: var(--gaidet-accent-dark);
  font-weight: 600;
  white-space: nowrap;
}

.gaidet-autocomplete-version-wrap {
  margin: 0.3rem 0 0.1rem 0.2rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--gaidet-accent-bright);
}

.gaidet-autocomplete-version-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gaidet-text-muted);
  margin-bottom: 0.2rem;
}

.gaidet-autocomplete-version-input {
  display: block;
  width: 100%;
  max-width: 250px;
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
}

.gaidet-autocomplete-remove {
  border: none;
  background: none;
  color: var(--gaidet-accent-dark);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.gaidet-autocomplete-remove:hover {
  color: var(--gaidet-accent-bright);
}

hr {
  border: none;
  height: 1.5px;
  width: 140px;
  margin: 2.5rem auto;
  background: var(--gaidet-accent);
  border-radius: 2px;
  opacity: 0.6;
}

.gaidet-tool-instructions {
  font-size: 0.85rem;
  color: var(--gaidet-text-muted);
  margin: 0.2rem 0 0.5rem 0;
}

.gaidet-item-details {
  margin: 0.5rem 0 1rem 0.4rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--gaidet-accent);
  background: #f8f9fc;
  border-radius: 0 8px 8px 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gaidet-item-details-complete {
  border-left-color: #1a7f37;
  background: #f3faf5;
}

.gaidet-warning {
  background: var(--gaidet-warning-bg);
  border: 1px solid var(--gaidet-warning-border);
  color: var(--gaidet-warning-text);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.gaidet-warning-list {
  margin: 0.4rem 0 0;
  padding-left: 1.3rem;
}

.gaidet-sentence-wrap {
  max-width: 620px;
}

.gaidet-name-field {
  background: #fff;
  border: 1px solid var(--gaidet-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.03);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
}

.gaidet-name-field label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.gaidet-confirm {
  background: #fffaf0;
  border: 1px solid #fcd9a1;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.9rem;
}

.gaidet-confirm p {
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.gaidet-confirm-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gaidet-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.gaidet-output {
  background: linear-gradient(#fff, #f5f7ff);
  border: 2px solid var(--gaidet-accent);
  border-left: 6px solid var(--gaidet-accent);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  box-shadow: 0 6px 16px rgba(59, 91, 219, 0.12), 0 2px 6px rgba(16, 24, 40, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.gaidet-output h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--gaidet-accent-dark);
}

.gaidet-output pre {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--gaidet-border);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

@keyframes gaidet-flash {
  0% { background-color: var(--gaidet-accent-tint); color: transparent; }
  10% { color: transparent; }
  30% { color: inherit; }
  100% { background-color: #fff; color: inherit; }
}

.gaidet-output-flash {
  animation: gaidet-flash 2.5s ease;
}

.gaidet-output-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 160px;
  background: var(--gaidet-accent-tint);
  border: 1px solid var(--gaidet-accent-bright);
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--gaidet-accent-dark);
  text-align: center;
}

.gaidet-output-placeholder p {
  margin: 0;
  max-width: 32rem;
}

.gaidet-output-placeholder-icon {
  color: var(--gaidet-accent);
  opacity: 0.85;
}

.gaidet-output-placeholder-icon svg {
  display: block;
}

/* Form controls */
input[type="text"],
input[type="checkbox"] + input[type="text"],
textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--gaidet-accent);
  box-shadow: 0 0 0 3px var(--gaidet-accent-tint);
}

input[type="checkbox"] {
  accent-color: var(--gaidet-accent);
  width: 1.05rem;
  height: 1.05rem;
  vertical-align: middle;
  margin-right: 0.35rem;
  cursor: pointer;
}

button {
  background: var(--gaidet-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

button:hover {
  background: var(--gaidet-accent-dark);
}

button:active {
  transform: translateY(1px);
}

.gaidet-output-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.gaidet-btn-primary {
  background-color: var(--gaidet-accent-dark);
}

.gaidet-btn-primary:hover {
  background-color: #24397e;
}

.gaidet-btn-secondary {
  background-color: #fff;
  color: var(--gaidet-accent);
  border: 1px solid var(--gaidet-accent);
}

.gaidet-btn-secondary:hover {
  background-color: var(--gaidet-accent-tint);
}

.gaidet-example-wrap {
  margin-bottom: 1rem;
}

.gaidet-example-toggle {
  background: #fff;
  color: var(--gaidet-accent);
  border: 1px solid var(--gaidet-accent);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.gaidet-example-toggle:hover {
  background: var(--gaidet-accent-tint);
  color: var(--gaidet-accent-dark);
}

.gaidet-example {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px dashed var(--gaidet-border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--gaidet-text-muted);
}
