.trt-wrap {
  box-sizing: border-box;
  max-width: 1100px;
  margin: 32px auto;
  padding: 24px;
  background: #f7f7fb;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "Meiryo", sans-serif;
  color: #222;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

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

.trt-header {
  background: #ffffff;
  border: 1px solid #e8e8ef;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.trt-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 11px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.trt-wrap h2 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #111;
}

.trt-wrap h3 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.4;
  border-left: 5px solid #111;
  padding-left: 10px;
  color: #111;
}

.trt-wrap p,
.trt-wrap li {
  line-height: 1.9;
}

.trt-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e8e8ef;
}

.trt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.trt-field span {
  font-weight: 700;
  font-size: 14px;
}

.trt-field input,
.trt-field textarea,
.trt-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d9e3;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: #222;
  min-height: 46px;
}

.trt-field textarea {
  min-height: 130px;
  resize: vertical;
}

.trt-full {
  margin-top: 14px;
}

.trt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.trt-btn {
  border: none;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  font-size: 14px;
  line-height: 1.2;
}

.trt-btn:hover,
.trt-btn:focus {
  opacity: .86;
  transform: translateY(-1px);
}

.trt-btn-sub {
  background: #555;
}

.trt-btn-light {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

.trt-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #f2f3f7;
  line-height: 1.8;
}

.trt-score {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin: 10px 0;
}

.trt-score span {
  font-size: 18px;
}

.trt-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  margin-bottom: 8px;
}

.trt-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.trt-card,
.trt-saved-item {
  background: #fff;
  border: 1px solid #e1e1eb;
  border-radius: 14px;
  padding: 14px;
  line-height: 1.7;
}

.trt-card strong,
.trt-saved-item strong {
  display: block;
  margin-bottom: 6px;
}

.trt-saved-list {
  margin-top: 18px;
}

.trt-saved-item {
  margin-bottom: 12px;
}

.trt-saved-item a {
  color: #111;
  font-weight: bold;
  word-break: break-all;
}

.trt-small {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.trt-seo {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.trt-seo h2 {
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.trt-seo h2:first-child {
  margin-top: 0;
}

.trt-seo ul {
  padding-left: 1.3em;
}

.trt-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .trt-grid,
  .trt-cards {
    grid-template-columns: 1fr;
  }

  .trt-wrap {
    padding: 14px;
    margin: 16px auto;
  }

  .trt-header,
  .trt-section,
  .trt-seo {
    padding: 16px;
  }

  .trt-wrap h2 {
    font-size: 23px;
  }

  .trt-btn {
    width: 100%;
  }
}

.trt-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f2f3f7;
  border: 1px solid #e0e0e8;
  line-height: 1.8;
  font-size: 14px;
}

.trt-status-success {
  background: #f1faf3;
  border-color: #bfe7c8;
}

.trt-status-error {
  background: #fff4f4;
  border-color: #f0c2c2;
}

.trt-status-loading {
  background: #f5f7ff;
  border-color: #c7d2fe;
}

.trt-query-box {
  background: #fff;
  border: 1px solid #e1e1eb;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}

.trt-query-box code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f7fb;
  padding: 10px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 13px;
}

.trt-output {
  width: 100%;
  min-height: 360px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.75;
  resize: vertical;
  white-space: pre-wrap;
}

.trt-query-box a.trt-btn {
  display: inline-block;
  text-decoration: none;
}
