.age-tool-main{
  padding:0;
}

.age-tool{
  max-width:none;
  margin:0;
}

.age-tool__panel{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.age-tool__panel-head h2{
  margin:0;
  font-size:1.05rem;
  font-weight:800;
  color:var(--site-primary, #1e3c72);
}

.age-tool__panel-head p{
  margin:4px 0 0;
  font-size:13px;
  color:var(--site-muted, #64748b);
}

.age-tool__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.age-tool__grid label{
  font-size:12px;
  font-weight:700;
  color:#334155;
}

.age-tool input,
.age-tool select,
.age-tool button{
  width:100%;
  margin-top:6px;
  border-radius:10px;
  border:1px solid #cbd5e1;
  padding:11px 12px;
  font-size:14px;
  font-family:inherit;
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.age-tool input:focus,
.age-tool select:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59, 130, 246, 0.15);
}

.age-tool__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.age-tool button{
  width:auto;
  min-height:44px;
  padding:10px 18px;
  background:linear-gradient(135deg, #1e3c72, #2a5298);
  border-color:transparent;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.age-tool button:hover{
  background:linear-gradient(135deg, #2a5298, #3b5bdb);
}

.age-tool button.is-copied{
  background:linear-gradient(135deg, #059669, #10b981) !important;
}

.age-tool__results{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.age-tool__hero{
  font-size:clamp(1.25rem, 3vw, 1.75rem);
  font-weight:800;
  line-height:1.3;
  letter-spacing:-0.02em;
  background:linear-gradient(135deg, #1e3c72 0%, #2563eb 55%, #7c3aed 100%);
  color:#fff;
  border-radius:14px;
  padding:18px 20px;
  box-shadow:0 8px 24px rgba(37, 99, 235, 0.22);
  animation:agePulse .25s ease;
}

.age-tool__summary{
  padding:14px 16px;
  border-radius:12px;
  border:1px solid #dbeafe;
  background:#f8fbff;
  color:#1e293b;
  font-size:15px;
  line-height:1.6;
}

.age-tool__summary:empty{
  display:none;
}

.age-tool__stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.age-tool__card{
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#fff;
  padding:14px 12px;
  text-align:center;
  box-shadow:0 2px 8px rgba(15, 23, 42, 0.04);
}

.age-tool__card span{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--site-muted, #64748b);
  margin-bottom:6px;
}

.age-tool__card b{
  display:block;
  font-size:clamp(1.1rem, 2.5vw, 1.35rem);
  color:var(--site-primary, #1e3c72);
  line-height:1.2;
}

.age-tool__next{
  border-radius:12px;
  border:1px solid #fde68a;
  background:linear-gradient(180deg, #fffbeb, #fff);
  padding:14px 16px;
  color:#92400e;
  font-size:14px;
  font-weight:600;
  line-height:1.5;
}

.age-tool__next:empty{
  display:none;
}

@keyframes agePulse{
  from{ opacity:.85; transform:translateY(4px); }
  to{ opacity:1; transform:translateY(0); }
}

@media (max-width: 900px){
  .age-tool__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 520px){
  .age-tool__grid{
    grid-template-columns:1fr;
  }
}
