:root {
  --color-body: #212529;
  --color-muted: #6c757d;
  --color-border: #dee2e6;
  --color-surface: #ffffff;
  --color-soft: #f8f9fa;
  --color-primary: #0d6efd;
  --color-primary-dark: #0b5ed7;
  --color-secondary: #6c757d;
  --color-success: #198754;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --bs-success: #198754;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  background: var(--color-soft);
  color: var(--color-body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.header-left {
  display: flex;
  align-items: center;
}
.header-left a {
  font-size: 24px;
  color: #333;
  text-decoration: none;
  margin-right: 20px;
}
.header-left a:hover {
  color: #007bff;
}
.header-links a {
  color: #333;
  text-decoration: none;
  margin-right: 10px;
}
.header-links a:hover {
  color: #007bff;
}
.stopwatch-container {
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
}
.stopwatch {
  font-size: 36px;
  font-weight: bold;
  border: 2px solid #333;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 10px;
}
.controls {
  margin-top: 10px;
}
.btn {
  font-size: 18px;
  margin-right: 10px;
}
.content {
  flex: 1;
}
footer {
  background-color: #f8f9fa;
  padding: 20px 0;
}
.footer-links a {
  color: #333;
  margin: 5px;
}
.error {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}
.invalid-input {
  border-color: red;
  outline: none;
}
.counter-container {
  margin-top: 50px;
}
.counter {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}
.btn-container {
  margin-bottom: 20px;
  text-align: center;
}
.counter-group {
  margin-bottom: 30px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
}
.btn-add {
  margin-left: 10px;
  margin-bottom: 10px;
}
.btn-delete {
  margin-left: 5px;
}
.btn-increment,
.btn-decrement,
.btn-delete {
  width: 60px; /* ボタンの幅を調整 */
  padding: 0.5rem 1rem; /* パディングを調整 */
}
.btn-group {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}
.btn-group .btn {
  margin: 0 5px; /* ボタン間の間隔 */
}
.counter-name {
  margin-bottom: 10px;
}
.counter-name input {
  font-size: 18px;
  text-align: center;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img,
canvas,
svg {
  max-width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1rem 0;
}

pre {
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

body > header .container,
body > footer .container,
body > .container,
body > main.container,
body main > .container,
body .content > .container {
  width: 100%;
  max-width: 92rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.row > * {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
}

header {
  margin-bottom: 1.25rem;
}

.header-container,
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 20px;
}

.header-left {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}

.header-left a,
.site-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.header-links,
.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.header-links a,
.footer-links a,
.site-nav a {
  color: #333;
}

.site-header {
  margin: -20px -20px 1rem;
  padding: 1rem 20px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner,
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.site-footer {
  margin: 2rem -20px -20px;
  padding: 1.5rem 20px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

footer {
  margin-top: auto;
  padding: 20px 0;
  background: transparent;
}

.footer-links {
  justify-content: center;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

.h5 { font-size: 1.25rem; }
.fs-5 { font-size: 1.25rem !important; }
.small, small { font-size: 0.875em; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-muted, .text-secondary { color: var(--color-muted) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-white { color: #fff !important; }
.text-bg-dark { color: #fff !important; background: #212529 !important; }
.fw-semibold, .font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-monospace { font-family: Consolas, "Courier New", monospace !important; }
.font-sans { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }
.uppercase { text-transform: uppercase !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list-group {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.list-group-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #212529;
  background: #fff;
  border: 1px solid var(--color-border);
  margin-bottom: -1px;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  background: #f1f3f5;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  margin-right: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: #212529;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-primary { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn-secondary { color: #fff; background: var(--color-secondary); border-color: var(--color-secondary); }
.btn-success { color: #fff; background: var(--color-success); border-color: var(--color-success); }
.btn-danger { color: #fff; background: var(--color-danger); border-color: var(--color-danger); }
.btn-warning { color: #212529; background: var(--color-warning); border-color: var(--color-warning); }
.btn-outline-primary { color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-primary:hover { color: #fff; background: var(--color-primary); }
.btn-outline-secondary { color: var(--color-secondary); border-color: var(--color-secondary); }
.btn-outline-secondary:hover { color: #fff; background: var(--color-secondary); }
.btn-outline-danger { color: var(--color-danger); border-color: var(--color-danger); }
.btn-outline-danger:hover { color: #fff; background: var(--color-danger); }
.btn-link { color: var(--color-primary); background: transparent; border-color: transparent; }
.btn-sm { min-height: 2rem; padding: 0.3rem 0.6rem; font-size: 0.875rem; }
.btn-lg { min-height: 3rem; padding: 0.7rem 1.1rem; font-size: 1.15rem; }
.btn-group { display: inline-flex; gap: 0.35rem; justify-content: center; margin-top: 5px; }

.form-group { margin-bottom: 1rem; }
.form-label, label { display: inline-block; margin-bottom: 0.35rem; font-weight: 600; }
.form-control,
.form-select {
  display: block;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #fff;
  color: #212529;
  font: inherit;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
}

textarea.form-control { min-height: 8rem; }
.form-control-sm { min-height: 2rem; padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.form-control-color { width: 3rem; min-height: 2.4rem; padding: 0.2rem; }
.form-control-file { display: block; width: 100%; }
.form-text { margin-top: 0.25rem; color: var(--color-muted); font-size: 0.875rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.form-check { display: block; min-height: 1.5rem; padding-left: 1.5rem; }
.form-check-inline { display: inline-block; margin-right: 1rem; }
.form-check-input { float: left; margin-left: -1.5rem; margin-top: 0.3rem; }
.form-check-label { font-weight: 400; }
.form-switch .form-check-input { width: 2.5rem; }
.form-range { width: 100%; }
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; width: 1%; }

.alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background: #f8d7da; border-color: #f5c2c7; }
.alert-warning { color: #664d03; background: #fff3cd; border-color: #ffecb5; }
.alert-secondary { color: #41464b; background: #e2e3e5; border-color: #d3d6d8; }
.alert-heading { color: inherit; }

.card,
.panel-card,
.overview-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.card-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); background: #f8f9fa; }
.card-body { padding: 1rem; }
.card-title { margin-bottom: 0.5rem; }
.table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; vertical-align: top; }
.table th, .table td { padding: 0.5rem; border-bottom: 1px solid var(--color-border); }
.table-bordered th, .table-bordered td { border: 1px solid var(--color-border); }
.table-sm th, .table-sm td { padding: 0.3rem; }
.table-responsive { width: 100%; overflow-x: auto; }
.align-middle { vertical-align: middle !important; }
.badge { display: inline-block; padding: 0.35em 0.55em; border-radius: 999px; font-size: 0.75em; font-weight: 700; }
.bg-light { background: #f8f9fa !important; }
.bg-secondary { background: var(--color-secondary) !important; color: #fff; }
.bg-white { background: #fff !important; }
.bg-black { background: #000 !important; }

.accordion { border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.accordion-item + .accordion-item { border-top: 1px solid var(--color-border); }
.accordion-header { margin: 0; }
.accordion-button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; border: 0; background: #fff; color: #212529; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.accordion-button:hover { background: #f8f9fa; }
.accordion-collapse.collapse:not(.show) { display: none; }
.accordion-body { padding: 1rem; background: #fff; }

.d-none, .hidden { display: none !important; }
.d-block, .block { display: block !important; }
.d-flex, .flex { display: flex !important; }
.d-grid, .grid { display: grid !important; }
.inline-flex { display: inline-flex !important; }
.flex-column, .flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1, .flex-grow-1 { flex: 1 1 0% !important; }
.shrink-0 { flex-shrink: 0 !important; }
.items-center, .align-items-center { align-items: center !important; }
.items-start, .align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.items-baseline { align-items: baseline !important; }
.justify-center, .justify-content-center { justify-content: center !important; }
.justify-between, .justify-content-between { justify-content: space-between !important; }
.align-self-end { align-self: flex-end !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.overflow-hidden { overflow: hidden !important; }
.object-cover { object-fit: cover !important; }
.opacity-50 { opacity: 0.5 !important; }
.w-100, .w-full { width: 100% !important; }
.h-100, .h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.min-w-0 { min-width: 0 !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mx-2 { margin-right: 0.5rem !important; margin-left: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-6 { margin-top: 3.5rem !important; }
.mt-10 { margin-top: 4rem !important; }
.mt-12 { margin-top: 5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.px-2\.5 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.px-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
.px-6 { padding-right: 3.5rem !important; padding-left: 3.5rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.py-12 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-6 { gap: 3rem !important; }
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 1rem !important; }
.space-y-4 > * + * { margin-top: 1.5rem !important; }
.space-y-5 > * + * { margin-top: 2rem !important; }
.space-y-6 > * + * { margin-top: 3rem !important; }
.rounded { border-radius: 0.375rem !important; }
.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl { border-radius: 8px !important; }
.rounded-full { border-radius: 999px !important; }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important; }
.shadow-lg { box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important; }
.border { border: 1px solid var(--color-border) !important; }
.border-t { border-top: 1px solid var(--color-border) !important; }
.border-b { border-bottom: 1px solid var(--color-border) !important; }
.max-w-4xl { max-width: 72rem !important; }
.max-w-6xl { max-width: 92rem !important; }
.h-4, .w-4 { width: 1rem !important; height: 1rem !important; }
.h-7, .w-7 { width: 1.75rem !important; height: 1.75rem !important; }
.h-9, .w-9 { width: 2.25rem !important; height: 2.25rem !important; }
.h-24, .w-24 { width: 6rem !important; height: 6rem !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.text-\[0\.6rem\] { font-size: 0.6rem !important; }
.leading-relaxed { line-height: 1.625 !important; }
.tracking-tight, .tracking-widest, .tracking-\[0\.3em\] { letter-spacing: 0 !important; }
.text-slate-50 { color: #f8fafc !important; }
.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1f2937 !important; }
.text-slate-900 { color: #0f172a !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-700 { color: #1d4ed8 !important; }
.text-sky-600 { color: #0284c7 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-rose-600 { color: #e11d48 !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.bg-slate-50 { background: #f8fafc !important; }
.bg-slate-100 { background: #f1f5f9 !important; }
.bg-slate-800 { background: #1e293b !important; }
.bg-slate-900 { background: #0f172a !important; }
.bg-slate-900\/70 { background: rgba(15, 23, 42, 0.7) !important; }
.bg-white\/95 { background: rgba(255, 255, 255, 0.95) !important; }
.bg-blue-50 { background: #eff6ff !important; }
.bg-blue-100 { background: #dbeafe !important; }
.bg-blue-600 { background: #2563eb !important; }
.bg-emerald-50 { background: #ecfdf5 !important; }
.bg-amber-50 { background: #fffbeb !important; }
.bg-rose-50 { background: #fff1f2 !important; }
.border-slate-100 { border-color: #f1f5f9 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-600 { border-color: #475569 !important; }
.border-slate-700 { border-color: #334155 !important; }
.border-slate-700\/70 { border-color: rgba(51, 65, 85, 0.7) !important; }
.border-slate-700\/80 { border-color: rgba(51, 65, 85, 0.8) !important; }
.border-blue-100 { border-color: #dbeafe !important; }
.border-blue-200 { border-color: #bfdbfe !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-amber-100 { border-color: #fef3c7 !important; }
.border-amber-200 { border-color: #fde68a !important; }
.border-rose-200 { border-color: #fecdd3 !important; }
.transition, .transition-colors { transition: all 0.18s ease !important; }
.hover\:bg-slate-50:hover { background: #f8fafc !important; }
.hover\:bg-slate-100:hover { background: #f1f5f9 !important; }
.hover\:bg-slate-700:hover { background: #334155 !important; }
.hover\:bg-blue-100:hover { background: #dbeafe !important; }
.hover\:bg-blue-700:hover { background: #1d4ed8 !important; }
.hover\:bg-emerald-100:hover { background: #d1fae5 !important; }
.hover\:bg-amber-100:hover { background: #fef3c7 !important; }
.hover\:bg-rose-100:hover { background: #ffe4e6 !important; }
.hover\:shadow-md:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12) !important; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem) !important; }
.focus\:outline-none:focus, .focus-visible\:outline-none:focus-visible { outline: none !important; }
.focus\:border-blue-500:focus { border-color: #3b82f6 !important; }
.focus\:ring-2:focus, .focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.22) !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:text-4xl { font-size: 2.25rem !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-\[1\.2fr\,1fr\] { grid-template-columns: 1.2fr 1fr !important; }
}

@media (min-width: 992px) {
  .lg\:grid-cols-\[320px\,1fr\] { grid-template-columns: 320px 1fr !important; }
}

@media (min-width: 1200px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

.binary-box,
.step-box,
.process-block {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.img-fluid { max-width: 100%; height: auto; }
.motd { padding: 0.75rem; border-radius: 8px; background: #111827; color: #fff; }

@media (max-width: 767.98px) {
  body { padding: 12px; }
  .header-container, .site-header__inner { align-items: flex-start; flex-direction: column; }
  .header-left a, .site-brand { font-size: 1.15rem; }
  .form-inline { display: block; }
}

.tools-tailwind {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.85), rgba(248, 250, 252, 0) 18rem),
    #f8fafc;
  color: #0f172a;
}

.tools-tailwind header,
.tools-tailwind .site-header {
  margin: 0 0 1.5rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tools-tailwind header .container,
.tools-tailwind .site-header__inner {
  display: flex;
  max-width: 92rem;
  margin: 0 auto;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tools-tailwind .header-left,
.tools-tailwind .header-links,
.tools-tailwind .site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tools-tailwind .header-left a,
.tools-tailwind .site-brand {
  margin: 0;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tools-tailwind .header-links a,
.tools-tailwind .site-nav a,
.tools-tailwind .footer-links a {
  margin: 0;
  border-radius: 0.375rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
}

.tools-tailwind .header-links a,
.tools-tailwind .site-nav a {
  padding: 0.25rem 0.5rem;
}

.tools-tailwind .header-links a:hover,
.tools-tailwind .site-nav a:hover,
.tools-tailwind .footer-links a:hover {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}

.tools-tailwind > .container,
.tools-tailwind > main.container {
  width: 100%;
  max-width: 92rem;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.tools-tailwind > .container,
.tools-tailwind > main.container {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.tools-tailwind h1 {
  margin-bottom: 1.5rem;
  color: #0f172a;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.tools-tailwind h2 {
  margin-bottom: 0.75rem;
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tools-tailwind h3 {
  margin-bottom: 0.5rem;
  color: #334155;
  font-size: 1.05rem;
  font-weight: 700;
}

.tools-tailwind p,
.tools-tailwind li {
  color: #475569;
}

.tools-tailwind .row {
  gap: 1rem 0;
}

.tools-tailwind .list-group,
.tools-tailwind .card,
.tools-tailwind .panel-card,
.tools-tailwind .overview-card,
.tools-tailwind .accordion,
.tools-tailwind .binary-box,
.tools-tailwind .step-box,
.tools-tailwind .process-block,
.tools-tailwind .counter-group,
.tools-tailwind .stopwatch-container {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tools-tailwind .list-group-item {
  display: block;
  padding: 0.8rem 1rem;
  border-color: #f1f5f9;
  color: #334155;
  font-size: 0.925rem;
  font-weight: 600;
}

.tools-tailwind .list-group-item-action:hover,
.tools-tailwind .list-group-item-action:focus {
  background: #eff6ff;
  color: #1d4ed8;
}

.tools-tailwind .card-header,
.tools-tailwind .accordion-button {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
}

.tools-tailwind .card-body,
.tools-tailwind .accordion-body,
.tools-tailwind .panel-card {
  padding: 1.25rem;
}

.tools-tailwind .form-group {
  margin-bottom: 1rem;
}

.tools-tailwind label,
.tools-tailwind .form-label {
  margin-bottom: 0.4rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 650;
}

.tools-tailwind .form-control,
.tools-tailwind .form-select,
.tools-tailwind .form-control-file,
.tools-tailwind input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.tools-tailwind textarea,
.tools-tailwind select {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tools-tailwind textarea.form-control,
.tools-tailwind textarea {
  min-height: 8rem;
}

.tools-tailwind .form-control:focus,
.tools-tailwind .form-select:focus,
.tools-tailwind input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.tools-tailwind textarea:focus,
.tools-tailwind select:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.tools-tailwind .form-check {
  display: flex;
  min-height: 1.5rem;
  padding-left: 0;
  align-items: center;
  gap: 0.5rem;
}

.tools-tailwind .form-check-input {
  float: none;
  margin: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.tools-tailwind .form-check-label {
  margin: 0;
  font-weight: 500;
}

.tools-tailwind .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.tools-tailwind .input-group {
  display: flex;
  gap: 0.5rem;
}

.tools-tailwind .input-group > .form-control {
  width: 1%;
  flex: 1 1 auto;
}

.tools-tailwind .btn,
.tools-tailwind button,
.tools-tailwind input[type="button"],
.tools-tailwind input[type="submit"] {
  display: inline-flex;
  min-height: 2.5rem;
  margin-right: 0;
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tools-tailwind .btn:hover,
.tools-tailwind button:hover,
.tools-tailwind input[type="button"]:hover,
.tools-tailwind input[type="submit"]:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.tools-tailwind .btn-primary { color: #fff; background: #2563eb; border-color: #2563eb; }
.tools-tailwind .btn-primary:hover { color: #fff; background: #1d4ed8; border-color: #1d4ed8; }
.tools-tailwind .btn-secondary { color: #fff; background: #475569; border-color: #475569; }
.tools-tailwind .btn-success { color: #fff; background: #059669; border-color: #059669; }
.tools-tailwind .btn-danger { color: #fff; background: #e11d48; border-color: #e11d48; }
.tools-tailwind .btn-warning { color: #713f12; background: #fbbf24; border-color: #fbbf24; }
.tools-tailwind .btn-outline-primary { color: #1d4ed8; background: #fff; border-color: #bfdbfe; }
.tools-tailwind .btn-outline-primary:hover { color: #1d4ed8; background: #eff6ff; }
.tools-tailwind .btn-outline-secondary { color: #475569; background: #fff; border-color: #cbd5e1; }
.tools-tailwind .btn-outline-secondary:hover { color: #334155; background: #f8fafc; }
.tools-tailwind .btn-outline-danger { color: #e11d48; background: #fff; border-color: #fecdd3; }
.tools-tailwind .btn-outline-danger:hover { color: #be123c; background: #fff1f2; }

.tools-tailwind .alert {
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
}

.tools-tailwind .table,
.tools-tailwind table {
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  color: #334155;
}

.tools-tailwind .table th,
.tools-tailwind .table td,
.tools-tailwind table th,
.tools-tailwind table td {
  border-color: #e2e8f0;
  padding: 0.7rem 0.75rem;
}

.tools-tailwind .table th,
.tools-tailwind table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.tools-tailwind pre,
.tools-tailwind code {
  border-radius: 0.375rem;
}

.tools-tailwind footer {
  margin-top: auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.78);
  color: #64748b;
}

.tools-tailwind footer .container {
  max-width: 92rem;
}

.tools-tailwind footer hr {
  display: none;
}

@media (max-width: 767.98px) {
  .tools-tailwind {
    padding: 0;
  }

  .tools-tailwind header .container,
  .tools-tailwind .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-tailwind .form-inline,
  .tools-tailwind .input-group {
    display: grid;
    width: 100%;
  }
}

/* Shared Tailwind polish for all non-time tools. */
.tools-tailwind {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #f7f8fb;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tools-tailwind main,
.tools-tailwind .content {
  flex: 1 0 auto;
}

.tools-tailwind header,
.tools-tailwind .site-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid #dbe3ee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tools-tailwind header .container,
.tools-tailwind .site-header__inner {
  max-width: 92rem;
  min-height: 4rem;
  padding: 0.85rem 1.25rem;
}

.tools-tailwind .header-left a,
.tools-tailwind .site-brand {
  font-size: 1.05rem;
  font-weight: 750;
}

.tools-tailwind .header-links,
.tools-tailwind .site-nav,
.tools-tailwind .footer-links {
  gap: 0.4rem;
}

.tools-tailwind .header-links span {
  color: #cbd5e1;
}

.tools-tailwind .tool-container,
.tools-tailwind > .container,
.tools-tailwind > main.container,
.tools-tailwind main > .container,
.tools-tailwind .content > .container {
  width: 100%;
  max-width: 92rem;
  padding: 1.25rem;
}

.tools-tailwind .tool-container {
  margin-top: 0 !important;
  margin-right: auto !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
}

.tools-tailwind .tool-container + .tool-container {
  padding-top: 0.5rem;
}

.tools-tailwind .tool-container > br {
  display: none;
}

.tools-tailwind .tool-intro {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.tools-tailwind h1 {
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-size: 2.125rem;
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: 0;
}

.tools-tailwind .tool-container-has-form > h1,
.tools-tailwind .tool-container-has-form > h1.text-center,
.tools-tailwind .tool-container-has-form > .text-center:first-child {
  text-align: left !important;
}

.tools-tailwind h2 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: 0;
}

.tools-tailwind h3,
.tools-tailwind .card-title {
  color: #334155;
  letter-spacing: 0;
}

.tools-tailwind .text-muted,
.tools-tailwind .form-text,
.tools-tailwind .hint-text,
.tools-tailwind small {
  color: #64748b !important;
}

.tools-tailwind .tool-intro > p,
.tools-tailwind h1 + p {
  max-width: 72rem;
  color: #475569;
  line-height: 1.75;
}

.tools-tailwind .tool-form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin: 0 0 1.5rem !important;
  border-color: #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.04);
}

.tools-tailwind .tool-form-compact {
  max-width: 100%;
}

.tools-tailwind .tool-form-grid {
  max-width: 100%;
}

.tools-tailwind .tool-form.form-inline,
.tools-tailwind form.tool-form.form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: end;
  justify-content: stretch !important;
}

.tools-tailwind .tool-form-compact.form-inline,
.tools-tailwind form.tool-form-compact.form-inline {
  grid-template-columns: 1fr;
}

.tools-tailwind .tool-form-compact > .form-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  width: 100%;
}

.tools-tailwind .tool-form-compact > .form-group > label {
  grid-column: 1 / -1;
  margin-right: 0 !important;
}

.tools-tailwind .tool-form-compact > .form-group > .form-control,
.tools-tailwind .tool-form-compact > .form-group > input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.tools-tailwind .tool-form-compact > .form-group > textarea,
.tools-tailwind .tool-form-compact > .form-group > select {
  width: 100%;
  min-width: 0;
  margin-right: 0 !important;
}

.tools-tailwind .tool-form-compact > .form-group > textarea,
.tools-tailwind .tool-form-compact > .form-group > select {
  grid-column: 1 / -1;
}

.tools-tailwind .tool-form-compact > .form-group > .btn,
.tools-tailwind .tool-form-compact > .form-group > button,
.tools-tailwind .tool-form-compact > .form-group > input[type="button"],
.tools-tailwind .tool-form-compact > .form-group > input[type="submit"] {
  align-self: stretch;
}

.tools-tailwind .tool-form .form-group,
.tools-tailwind .tool-form .mb-3 {
  margin-bottom: 0;
}

.tools-tailwind .tool-form-grid .form-group,
.tools-tailwind .tool-form-grid .mb-3 {
  min-width: 0;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.tools-tailwind .tool-form-grid .form-control,
.tools-tailwind .tool-form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.tools-tailwind .tool-form-grid textarea,
.tools-tailwind .tool-form-grid select {
  width: 100%;
}

.tools-tailwind .tool-form > .btn,
.tools-tailwind .tool-form > button,
.tools-tailwind .tool-form > input[type="submit"] {
  width: fit-content;
}

.tools-tailwind .tool-container > .input-group {
  max-width: 72rem;
  margin: 0 auto 1.5rem !important;
}

.tools-tailwind .list-group,
.tools-tailwind .card,
.tools-tailwind .panel-card,
.tools-tailwind .overview-card,
.tools-tailwind .accordion,
.tools-tailwind .node-selector,
.tools-tailwind .node-group,
.tools-tailwind .counter-container,
.tools-tailwind .stopwatch-container,
.tools-tailwind .binary-box,
.tools-tailwind .step-box,
.tools-tailwind .process-block {
  border-color: #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 26px rgba(15, 23, 42, 0.035);
}

.tools-tailwind .card + .card,
.tools-tailwind .panel-card + .panel-card,
.tools-tailwind .accordion + .accordion {
  margin-top: 1rem;
}

.tools-tailwind .card-header,
.tools-tailwind .accordion-button,
.tools-tailwind .node-group-header,
.tools-tailwind .node-selector summary {
  border-color: #dbe3ee;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 750;
}

.tools-tailwind .card-body,
.tools-tailwind .accordion-body,
.tools-tailwind .panel-card,
.tools-tailwind .node-selector-body {
  padding: 1.35rem;
}

.tools-tailwind .list-group-item {
  min-height: 2.75rem;
  padding: 0.78rem 1rem;
  border-left: 3px solid transparent;
  border-color: #edf2f7;
  color: #334155;
  font-weight: 650;
}

.tools-tailwind .list-group-item-action:hover,
.tools-tailwind .list-group-item-action:focus {
  border-left-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.tools-tailwind label,
.tools-tailwind .form-label {
  color: #334155;
  font-weight: 650;
}

.tools-tailwind .form-control,
.tools-tailwind .form-select,
.tools-tailwind .form-control-file,
.tools-tailwind input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.tools-tailwind textarea,
.tools-tailwind select {
  border-color: #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
  color: #0f172a;
}

.tools-tailwind input[readonly],
.tools-tailwind textarea[readonly] {
  background: #f8fafc;
}

.tools-tailwind input[type="color"].form-control,
.tools-tailwind input[type="color"].form-control-color {
  min-height: 2.6rem;
  padding: 0.25rem;
}

.tools-tailwind input[type="range"],
.tools-tailwind .form-range {
  width: 100%;
  min-height: 1.5rem;
  padding: 0;
  accent-color: #2563eb;
  box-shadow: none;
}

.tools-tailwind .input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.tools-tailwind .input-group > .form-control {
  min-width: 0;
}

.tools-tailwind .btn,
.tools-tailwind button,
.tools-tailwind input[type="button"],
.tools-tailwind input[type="submit"] {
  border-radius: 0.375rem;
  font-weight: 750;
  white-space: nowrap;
}

.tools-tailwind .input-group > .btn,
.tools-tailwind .input-group > button,
.tools-tailwind .input-group > input[type="button"],
.tools-tailwind .input-group > input[type="submit"] {
  flex: 0 0 auto;
  min-width: 4.75rem;
}

.tools-tailwind .btn:active,
.tools-tailwind button:active,
.tools-tailwind input[type="button"]:active,
.tools-tailwind input[type="submit"]:active {
  transform: translateY(0);
}

.tools-tailwind .alert {
  border-radius: 0.5rem;
  border-color: #dbe3ee;
}

.tools-tailwind .alert-secondary,
.tools-tailwind .alert-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.tools-tailwind .alert-success,
.tools-tailwind .status-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.tools-tailwind .alert-danger,
.tools-tailwind .status-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.tools-tailwind .alert-warning,
.tools-tailwind .status-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.ip-info-panel,
.tools-tailwind .ip-info-panel {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 26px rgba(15, 23, 42, 0.035);
}

.ip-info-panel p,
.tools-tailwind .ip-info-panel p {
  display: grid;
  grid-template-columns: minmax(8.5rem, max-content) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #edf2f7;
  border-radius: 0.375rem;
  background: #f8fafc;
  color: #334155;
}

.ip-info-panel p + p,
.tools-tailwind .ip-info-panel p + p {
  margin-top: 0.5rem;
}

.ip-info-panel span,
.tools-tailwind .ip-info-panel span {
  min-width: 0;
  color: #0f172a;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tools-tailwind .tool-output-block.has-tool-output,
.tools-tailwind .tool-output-block:not(:empty) {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tools-tailwind .tool-output-block.text-center,
.tools-tailwind .tool-output-block .text-center {
  text-align: left !important;
}

.tools-tailwind .tool-output-block h2,
.tools-tailwind .tool-output-block h3 {
  margin-bottom: 0.75rem;
}

.tools-tailwind .tool-output-block ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.tools-tailwind .tool-output-block li {
  padding: 0.65rem 0.75rem;
  border: 1px solid #edf2f7;
  border-radius: 0.375rem;
  background: #f8fafc;
}

.tools-tailwind .tool-output-block:has(.alert),
.tools-tailwind .tool-output-block:has(.card),
.tools-tailwind .tool-output-block:has(.list-group),
.tools-tailwind .tool-output-block:has(table),
.tools-tailwind .tool-output-block:has(input),
.tools-tailwind .tool-output-block:has(textarea),
.tools-tailwind .tool-output-block:has(canvas),
.tools-tailwind .tool-output-block:has(img),
.tools-tailwind .tool-output-block:has(audio) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tools-tailwind pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.65;
}

.tools-tailwind code {
  color: inherit;
  font-size: 0.9em;
}

.tools-tailwind .table,
.tools-tailwind table {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
}

.tools-tailwind .table th,
.tools-tailwind table th {
  background: #f8fafc;
  color: #334155;
}

.tools-tailwind .table td,
.tools-tailwind table td {
  vertical-align: top;
}

.tools-tailwind .tool-shell {
  max-width: 92rem;
}

.tools-tailwind .overview-grid,
.tools-tailwind .request-summary,
.tools-tailwind .results-summary-bar {
  gap: 0.8rem;
}

.tools-tailwind .overview-card,
.tools-tailwind .summary-chip,
.tools-tailwind .results-summary-item,
.tools-tailwind .node-option label {
  border-color: #dbe3ee;
  border-radius: 0.5rem;
  background: #fff;
}

.tools-tailwind .overview-card span,
.tools-tailwind .summary-chip span,
.tools-tailwind .results-summary-item span,
.tools-tailwind .node-selector-meta,
.tools-tailwind .node-meta,
.tools-tailwind .node-group-count {
  color: #64748b;
}

.tools-tailwind .overview-card strong,
.tools-tailwind .summary-chip strong,
.tools-tailwind .results-summary-item strong,
.tools-tailwind .node-ip {
  color: #0f172a;
}

.tools-tailwind .node-option input:checked + label {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tools-tailwind .node-tag,
.tools-tailwind .badge,
.tools-tailwind .badge-secondary {
  border-radius: 0.375rem;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
}

.tools-tailwind .results-table-wrapper {
  overflow-x: auto;
}

.tools-tailwind footer {
  margin-top: auto;
  border-top-color: #dbe3ee;
  background: #fff;
}

@media (max-width: 767.98px) {
  .tools-tailwind .tool-container,
  .tools-tailwind > .container,
  .tools-tailwind > main.container,
  .tools-tailwind main > .container,
  .tools-tailwind .content > .container {
    padding: 1rem;
  }

  .tools-tailwind h1 {
    font-size: 1.75rem;
  }

  .tools-tailwind .card-body,
  .tools-tailwind .accordion-body,
  .tools-tailwind .panel-card,
  .tools-tailwind .node-selector-body,
  .tools-tailwind .tool-form {
    padding: 1rem;
  }

  .tools-tailwind .input-group {
    display: grid;
    width: 100%;
  }

  .tools-tailwind .tool-form-compact > .form-group {
    grid-template-columns: 1fr;
  }

  .tools-tailwind .tool-form-compact > .form-group > .btn,
  .tools-tailwind .tool-form-compact > .form-group > button,
  .tools-tailwind .tool-form-compact > .form-group > input[type="button"],
  .tools-tailwind .tool-form-compact > .form-group > input[type="submit"] {
    width: 100%;
  }

  .tools-tailwind .tool-form > .btn,
  .tools-tailwind .tool-form > button,
  .tools-tailwind .tool-form > input[type="submit"] {
    width: 100%;
  }
}

/* Modern shared UI for the tools site. This works without Tailwind CSS. */
.tools-modern {
  --tool-bg: #f4f7fb;
  --tool-surface: #ffffff;
  --tool-surface-soft: #f8fafc;
  --tool-border: #d7e0ec;
  --tool-border-strong: #b8c5d6;
  --tool-text: #102033;
  --tool-muted: #5d7087;
  --tool-accent: #2563eb;
  --tool-accent-strong: #1d4ed8;
  --tool-accent-soft: #eaf2ff;
  --tool-success: #0f766e;
  --tool-warning: #b45309;
  --tool-danger: #be123c;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 0 !important;
  background: var(--tool-bg);
  color: var(--tool-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.tools-modern a {
  color: var(--tool-accent);
}

.tools-modern .site-header-modern {
  margin: 0;
  border-bottom: 1px solid var(--tool-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(16, 32, 51, 0.06);
}

.tools-modern .site-header-inner,
.tools-modern header > .container {
  display: flex;
  width: 100%;
  max-width: 92rem;
  min-height: 4.25rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tools-modern .site-brand-modern,
.tools-modern .header-left a {
  margin: 0;
  color: var(--tool-text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.tools-modern .header-links,
.tools-modern .site-nav,
.tools-modern .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.tools-modern .site-nav-link,
.tools-modern .header-links a,
.tools-modern .footer-links a {
  margin: 0;
  border-radius: 0.375rem;
  padding: 0.35rem 0.55rem;
  color: var(--tool-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.tools-modern .site-nav-link:hover,
.tools-modern .header-links a:hover,
.tools-modern .footer-links a:hover {
  background: var(--tool-accent-soft);
  color: var(--tool-accent-strong);
  text-decoration: none;
}

.tools-modern .header-links span {
  color: var(--tool-border-strong);
}

.tools-modern .tool-main {
  flex: 1 0 auto;
}

.tools-modern .tool-container,
.tools-modern > .container,
.tools-modern > main.container,
.tools-modern main > .container,
.tools-modern .content > .container {
  width: 100%;
  max-width: 92rem;
  margin: 0 auto !important;
  padding: 2rem 1.25rem;
}

.tools-modern .tool-intro {
  padding-top: 2.4rem;
}

.tools-modern .tool-title,
.tools-modern .tool-container > h1,
.tools-modern .tool-container > h1.text-center {
  max-width: 72rem;
  margin: 0 0 1rem;
  color: var(--tool-text);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: left !important;
}

.tools-modern .tool-section-title,
.tools-modern h2 {
  margin: 1.25rem 0 0.75rem;
  color: #172a41;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
}

.tools-modern .tool-subtitle,
.tools-modern h3,
.tools-modern .card-title {
  margin: 1rem 0 0.65rem;
  color: #22364e;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
}

.tools-modern .tool-container > p,
.tools-modern .tool-intro > p,
.tools-modern h1 + p {
  max-width: 72rem;
  color: var(--tool-muted);
}

.tools-modern .tool-panel,
.tools-modern .tool-form,
.tools-modern .card,
.tools-modern .panel-card,
.tools-modern .overview-card,
.tools-modern .accordion,
.tools-modern .node-selector,
.tools-modern .node-group,
.tools-modern .list-group,
.tools-modern .tool-output-block:not(:empty) {
  border: 1px solid var(--tool-border);
  border-radius: 0.5rem;
  background: var(--tool-surface);
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.05), 0 14px 34px rgba(16, 32, 51, 0.045);
}

.tools-modern .card-header {
  border-bottom: 1px solid var(--tool-border);
  border-radius: 0.5rem 0.5rem 0 0;
  background: #edf4fb !important;
  color: #263b53;
  font-weight: 800;
  padding: 0.85rem 1rem;
}

.tools-modern .card-body,
.tools-modern .accordion-body {
  padding: 1.05rem;
}

.tools-modern .tool-stack,
.tools-modern .vstack {
  display: grid;
  gap: 1rem;
}

.tools-modern .hstack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tools-modern .tool-form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin: 0 0 1.5rem !important;
  padding: 1.15rem;
}

.tools-modern .standalone-control-panel {
  display: grid;
  gap: 0.65rem;
  max-width: 100%;
  margin: 0 0 1.5rem !important;
  padding: 1.15rem;
}

.tools-modern .tool-form-compact {
  max-width: 100%;
}

.tools-modern .tool-form-grid,
.tools-modern .form-inline.tool-form-grid {
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-items: end;
  justify-content: stretch !important;
}

.tools-modern .tool-form-compact.form-inline,
.tools-modern form.tool-form-compact.form-inline {
  grid-template-columns: 1fr;
}

.tools-modern .tool-form-compact > .form-group,
.tools-modern .tool-form-compact > .control-group {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.tools-modern .tool-form-compact > .form-group > label,
.tools-modern .tool-form-compact > .control-group > label {
  grid-column: 1 / -1;
}

.tools-modern .control-group,
.tools-modern .form-group,
.tools-modern .mb-3,
.tools-modern .form-check {
  min-width: 0;
  margin: 0 !important;
}

.tools-modern .form-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding-left: 0;
}

.tools-modern .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0.18rem 0 0;
}

.tools-modern .form-check-label {
  margin: 0 !important;
  font-weight: 650;
}

.tools-modern .control-label,
.tools-modern label,
.tools-modern .form-label {
  display: inline-block;
  margin: 0 0 0.35rem !important;
  color: #2e4158;
  font-size: 0.9rem;
  font-weight: 750;
}

.tools-modern .control-field,
.tools-modern .form-control,
.tools-modern .form-select,
.tools-modern input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.tools-modern textarea,
.tools-modern select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--tool-border-strong);
  border-radius: 0.425rem;
  background: #fff;
  color: var(--tool-text);
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 0.63rem 0.75rem;
  box-shadow: inset 0 1px 1px rgba(16, 32, 51, 0.035);
}

.tools-modern input[type="file"].control-field,
.tools-modern input[type="file"].form-control,
.tools-modern .form-control-file {
  padding: 0.52rem 0.65rem;
  cursor: pointer;
}

.tools-modern input[type="color"].control-field,
.tools-modern input[type="color"].form-control-color {
  width: 4.2rem;
  min-height: 2.65rem;
  padding: 0.25rem;
}

.tools-modern output.control-field,
.tools-modern output {
  display: block;
  min-height: 2.65rem;
  overflow: auto;
  white-space: pre-wrap;
}

.tools-modern textarea.control-field,
.tools-modern textarea.form-control,
.tools-modern textarea {
  min-height: 8rem;
  resize: vertical;
}

.tools-modern .control-field:focus,
.tools-modern .form-control:focus,
.tools-modern .form-select:focus,
.tools-modern input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.tools-modern textarea:focus,
.tools-modern select:focus {
  border-color: var(--tool-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.tools-modern .choice-control {
  accent-color: var(--tool-accent);
}

.tools-modern .range-control,
.tools-modern input[type="range"] {
  width: 100%;
  accent-color: var(--tool-accent);
}

.tools-modern .form-switch .form-check-input {
  width: 2.6rem;
  height: 1.35rem;
}

.tools-modern .form-text,
.tools-modern .muted,
.tools-modern .text-muted,
.tools-modern .text-secondary {
  color: var(--tool-muted) !important;
}

.tools-modern .tool-badge,
.tools-modern .badge {
  display: inline-flex;
  min-height: 1.45rem;
  align-items: center;
  border: 1px solid var(--tool-border);
  border-radius: 999px;
  background: #edf4fb !important;
  color: #263b53 !important;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
}

.tools-modern .tool-button,
.tools-modern .btn,
.tools-modern button,
.tools-modern input[type="button"],
.tools-modern input[type="submit"] {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 0.425rem;
  padding: 0.58rem 0.95rem;
  background: #eef3f8;
  color: #20334a;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.tools-modern .btn-primary,
.tools-modern button[type="submit"],
.tools-modern input[type="submit"] {
  background: var(--tool-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.24);
}

.tools-modern .tool-button:hover,
.tools-modern .btn:hover,
.tools-modern button:hover,
.tools-modern input[type="button"]:hover,
.tools-modern input[type="submit"]:hover {
  filter: brightness(0.98);
  text-decoration: none;
}

.tools-modern .tool-output-block:not(:empty),
.tools-modern .has-tool-output {
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 1rem;
}

.tools-modern .tool-alert:not(:empty),
.tools-modern .status-banner.is-visible,
.tools-modern .status-banner:not(:empty) {
  display: block;
  margin: 1rem 0;
}

.tools-modern .tool-output-block.text-center,
.tools-modern .tool-output-block .text-center {
  text-align: left !important;
}

.tools-modern .info-panel p,
.tools-modern .ip-info-panel p {
  display: grid;
  grid-template-columns: minmax(8.5rem, max-content) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
  padding: 0.68rem 0.78rem;
  border: 1px solid #e4ebf3;
  border-radius: 0.425rem;
  background: var(--tool-surface-soft);
  color: #33465f;
}

.tools-modern .info-panel p + p,
.tools-modern .ip-info-panel p + p {
  margin-top: 0.55rem;
}

.tools-modern .info-panel span,
.tools-modern .ip-info-panel span {
  min-width: 0;
  color: var(--tool-text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.tools-modern .tool-output-block ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.tools-modern .tool-output-block li {
  padding: 0.68rem 0.78rem;
  border: 1px solid #e4ebf3;
  border-radius: 0.425rem;
  background: var(--tool-surface-soft);
}

.tools-modern .tool-table,
.tools-modern table,
.tools-modern .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--tool-border);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.92rem;
}

.tools-modern .tool-table th,
.tools-modern table th,
.tools-modern .table th {
  background: #edf4fb;
  color: #263b53;
  font-weight: 800;
}

.tools-modern .tool-table th,
.tools-modern .tool-table td,
.tools-modern table th,
.tools-modern table td,
.tools-modern .table th,
.tools-modern .table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #e6edf5;
  vertical-align: top;
}

.tools-modern .tool-code-block,
.tools-modern pre {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #1f2d3d;
  border-radius: 0.5rem;
  background: #111827;
  color: #e5edf7;
  font-size: 0.9rem;
  line-height: 1.65;
}

.tools-modern .tool-media-frame {
  max-width: 100%;
  border-radius: 0.5rem;
}

.tools-modern #map,
.tools-modern #previewFrame,
.tools-modern #qrcodeResult:not(:empty),
.tools-modern #audioResult:not(:empty),
.tools-modern #imageList:not(:empty) {
  border: 1px solid var(--tool-border);
  background: var(--tool-surface);
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.05);
}

.tools-modern #map {
  min-height: 31.25rem;
  overflow: hidden;
}

.tools-modern canvas.tool-media-frame {
  display: block;
  background: #0f172a;
  border: 1px solid #1f2d3d;
}

.tools-modern #qrcodeResult:not(:empty),
.tools-modern #audioResult:not(:empty),
.tools-modern #imageList:not(:empty) {
  max-width: 100%;
  margin-top: 1rem;
  padding: 1rem;
}

.tools-modern #audioResult audio {
  width: 100%;
}

.tools-modern .motd {
  overflow: auto;
  background: #111827 !important;
  color: #f8fafc !important;
  font-family: Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.tools-modern .tool-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 1rem;
}

.tools-modern .tool-workspace-grid > * {
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.tools-modern .tool-workspace-grid textarea {
  min-height: 22rem;
  font-family: Consolas, "Courier New", monospace;
}

.tools-modern .binary-box {
  overflow-wrap: anywhere;
  background: #f8fafc;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.8;
}

.tools-modern .bit-sign {
  color: #be123c;
  font-weight: 850;
}

.tools-modern .bit-exponent {
  color: #1d4ed8;
  font-weight: 850;
}

.tools-modern .bit-fraction {
  color: #0f766e;
  font-weight: 850;
}

.tools-modern .step-box {
  background: #fff;
}

.tools-modern .step-box h4 {
  margin: 0 0 0.85rem;
  border-bottom: 1px solid var(--tool-border);
  padding-bottom: 0.65rem;
  color: #263b53;
  font-size: 1rem;
  font-weight: 850;
}

.tools-modern .toggle-button-1 {
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.08);
}

.tools-modern .toggle-button-1:focus-within {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), inset 0 0 0 1px rgba(16, 32, 51, 0.08);
}

.tools-modern .tool-alert,
.tools-modern .alert,
.tools-modern .status-banner {
  border-radius: 0.5rem;
  border: 1px solid var(--tool-border);
  padding: 0.8rem 0.9rem;
}

.tools-modern .alert-danger,
.tools-modern .status-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: var(--tool-danger);
}

.tools-modern .alert-success,
.tools-modern .status-success {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: var(--tool-success);
}

.tools-modern .alert-warning,
.tools-modern .status-warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--tool-warning);
}

.tools-modern .alert-info,
.tools-modern .status-info {
  border-color: #bfdbfe;
  background: var(--tool-accent-soft);
  color: #1e3a8a;
}

.tools-modern .tool-list {
  overflow: hidden;
}

.tools-modern .tool-list-item,
.tools-modern .list-group-item {
  display: block;
  min-height: 2.75rem;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid #e6edf5;
  color: #263b53;
  font-weight: 700;
}

.tools-modern .overview-grid,
.tools-modern .request-summary,
.tools-modern .results-summary-bar,
.tools-modern .node-grid {
  gap: 0.85rem;
}

.tools-modern .node-option label,
.tools-modern .summary-chip,
.tools-modern .results-summary-item {
  border-color: var(--tool-border);
  border-radius: 0.5rem;
  background: #fff;
}

.tools-modern .node-option input:checked + label {
  border-color: var(--tool-accent);
  background: var(--tool-accent-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.tools-modern .site-footer-modern {
  margin-top: auto;
  border-top: 1px solid var(--tool-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--tool-muted);
  text-align: center;
}

.tools-modern footer .container {
  max-width: 92rem;
  padding: 1.1rem 1.25rem;
}

.tools-modern footer hr {
  display: none;
}

@media (max-width: 767.98px) {
  .tools-modern .site-header-inner,
  .tools-modern header > .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.95rem 1rem;
  }

  .tools-modern .tool-container,
  .tools-modern > .container,
  .tools-modern > main.container,
  .tools-modern main > .container,
  .tools-modern .content > .container {
    padding: 1.25rem 1rem;
  }

  .tools-modern .tool-intro {
    padding-top: 1.35rem;
  }

  .tools-modern .tool-title,
  .tools-modern .tool-container > h1 {
    font-size: 1.65rem;
  }

  .tools-modern .tool-form,
  .tools-modern .tool-panel,
  .tools-modern .tool-output-block:not(:empty) {
    padding: 0.95rem;
  }

  .tools-modern .tool-form-grid,
  .tools-modern .tool-form-compact > .form-group,
  .tools-modern .tool-form-compact > .control-group,
  .tools-modern .input-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tools-modern .tool-form-compact > .form-group > .tool-button,
  .tools-modern .tool-form-compact > .control-group > .tool-button,
  .tools-modern .tool-form .tool-button,
  .tools-modern .tool-form button,
  .tools-modern .tool-form input[type="button"],
  .tools-modern .tool-form input[type="submit"] {
    width: 100%;
  }

  .tools-modern .info-panel p,
  .tools-modern .ip-info-panel p {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
