.tool-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(253, 247, 255, 0.78));
  box-shadow: 0 18px 44px rgba(10, 5, 35, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tool-meta {
  color: var(--dark-berry-40-60);
  font-size: 14px;
  margin-top: 10px;
}

.tool-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.utm-head {
  margin-bottom: 14px;
}

.utm-title {
  margin: 0;
  color: var(--berry-black-60);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

@media (max-width: 920px) {
  .utm-title {
    font-size: 26px;
  }
}

.utm-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  .utm-panels {
    grid-template-columns: 1fr;
  }
}

.utm-panel {
  border-radius: 16px;
  border: 1px solid rgba(10, 5, 35, 0.10);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(10, 5, 35, 0.08);
  padding: 16px;
}

.utm-panel--output {
  position: sticky;
  top: 18px;
}

@media (max-width: 980px) {
  .utm-panel--output {
    position: static;
  }
}

.utm-panel-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.utm-panel-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--berry-black-60);
}

.utm-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 5, 35, 0.16), rgba(10, 5, 35, 0.06));
}

.utm-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tool-shell label {
  display: block;
  margin: 0 0 7px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--berry-black-60);
  font-size: 16px;
}

.utm-required {
  color: var(--blue-100);
}

.tool-shell input[type="text"],
.tool-shell textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 5, 35, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--berry-black-60);
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(10, 5, 35, 0.06);
}

.tool-shell textarea {
  min-height: 120px;
  resize: vertical;
}

.tool-shell input::placeholder,
.tool-shell textarea::placeholder {
  color: rgba(22, 13, 61, 0.45);
}

.tool-shell input:focus,
.tool-shell textarea:focus {
  outline: none;
  border-color: rgba(0, 106, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12), 0 10px 22px rgba(10, 5, 35, 0.08);
}

.utm-generated {
  min-height: 140px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
}

.utm-output-row {
  margin-top: 10px;
}

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

.tool-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(0, 106, 255, 0.16), rgba(0, 106, 255, 0.10));
  color: var(--berry-black-60);
  border: 1px solid rgba(0, 106, 255, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 22px rgba(0, 106, 255, 0.10);
}

.tool-btn:hover {
  background: linear-gradient(180deg, rgba(0, 106, 255, 0.22), rgba(0, 106, 255, 0.12));
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 106, 255, 0.14);
}

.tool-btn:active {
  transform: translateY(0);
}

.tool-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.14), 0 14px 28px rgba(0, 106, 255, 0.14);
}

.tool-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tool-status {
  margin-top: 10px;
  font-size: 14px;
}

.tool-status .warn {
  color: #9a5b00;
  font-weight: 700;
}

.tool-status .ok {
  color: #0f7a3d;
  font-weight: 700;
}

.utm-info {
  max-width: 1100px;
  margin: 22px auto 0;
}

/* The global .headline_2 is very large; scale it down for this page section */
.utm-info .headline_2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.15;
}

@media (max-width: 920px) {
  .utm-info .headline_2 {
    font-size: 26px;
  }
}

.utm-table-wrap {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(10, 5, 35, 0.10);
  overflow: auto;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(10, 5, 35, 0.08);
}

.utm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.utm-table th,
.utm-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(10, 5, 35, 0.08);
  vertical-align: top;
  color: var(--berry-black-60);
}

@media (max-width: 920px) {
  .utm-table th,
  .utm-table td {
    padding: 16px 16px;
  }
}

.utm-table thead th {
  font-weight: 700;
  background: rgba(10, 5, 35, 0.03);
}

.utm-param-name {
  font-weight: 700;
}

.utm-param-code {
  margin-top: 6px;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(10, 5, 35, 0.10);
  background: rgba(0, 106, 255, 0.07);
  color: rgba(10, 5, 35, 0.78);
  font-size: 13px;
}

.utm-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 5, 35, 0.10);
  background: rgba(10, 5, 35, 0.03);
  font-size: 14px;
}

@media (max-width: 920px) {
  .utm-table {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-btn {
    transition: none;
  }
}

/* --- Long-form content typography (match other tool pages like SERP Preview) --- */
#utmTool ~ .content-card{
  margin-top: 100px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#utmTool ~ .content-card h2{
  margin: 0 0 12px 0;
  color: #000;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

#utmTool ~ .content-card h3{
  margin: 18px 0 8px;
  color: #000;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

#utmTool ~ .content-card p{
  margin: 0 0 12px;
  color: #000;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

#utmTool ~ .content-card ol,
#utmTool ~ .content-card ul{
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: #000;
  line-height: 1.55;
}

#utmTool ~ .content-card ul{ list-style: disc; }
#utmTool ~ .content-card ol{ list-style: decimal; }

#utmTool ~ .content-card li{
  margin: 0 0 6px;
  color: #000;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

#utmTool ~ .content-card li:last-child{
  margin-bottom: 0;
}

#utmTool ~ .content-card img{
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto 12px;
  border-radius: 14px;
}
/* Remove the global container bottom gap for this tool page */
        .main > .container{
          margin-bottom: 0;
        }