/* Path: /public/assets/css/tools/unit_pair.css */

.up-wrap{
  width:min(980px, calc(100% - 28px));
  margin:0 auto;
  padding:20px 0 56px;
}

.up-head{
  background:linear-gradient(135deg, rgba(124,58,237,.10), rgba(34,158,217,.10), rgba(255,255,255,.92));
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:18px;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.up-head h1{
  margin:0 0 8px;
  font-size:24px;
  font-weight:900;
}
.up-sub{
  margin:0;
  color:rgba(15,23,42,.78);
  line-height:2;
  font-weight:700;
  font-size:14px;
}
.up-bc{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,.72);
}
.up-bc a{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.86);
  color:rgba(15,23,42,.82);
}
.sep{ color:rgba(15,23,42,.35); }

.up-form{
  margin-top:12px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:16px;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.up-grid{
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap:12px;
}

.up-field label{
  display:block;
  font-weight:900;
  font-size:12px;
  margin-bottom:8px;
  color:rgba(15,23,42,.82);
}
.up-field input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:900;
  outline:none;
}
.up-field input:focus{
  border-color:rgba(124,58,237,.35);
  box-shadow:0 0 0 4px rgba(124,58,237,.10);
}
.up-hint{
  margin-top:8px;
  font-size:12px;
  color:rgba(15,23,42,.62);
  line-height:1.8;
  font-weight:700;
}

.up-action{
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content:flex-end;
}
.up-btn{
  width:100%;
  border:none;
  border-radius:16px;
  padding:12px 14px;
  font-weight:900;
  background:linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,158,217,.75));
  color:#fff;
  box-shadow:0 14px 34px rgba(124,58,237,.18);
  cursor:pointer;
}
.up-btn:hover{ filter:brightness(1.02); }
.up-swap{
  display:inline-flex;
  justify-content:center;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.86);
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,.80);
}

.up-result{
  margin-top:14px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:16px;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.up-result h2{
  margin:0 0 10px;
  font-size:16px;
  font-weight:900;
}
.up-error{
  background:#fef2f2;
  border-color:#fecaca;
}
.up-kv{
  display:grid;
  gap:10px;
}
.up-item{
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.96);
}
.up-item .k{
  font-size:12px;
  font-weight:900;
  color:rgba(15,23,42,.62);
  margin-bottom:6px;
}
.up-item .v{
  font-weight:900;
  color:rgba(15,23,42,.88);
  line-height:2;
}
.up-item.highlight{
  border-color:rgba(124,58,237,.22);
  background:linear-gradient(135deg, rgba(238,242,255,.70), rgba(255,255,255,.96));
}
.up-note{
  margin-top:12px;
  color:rgba(15,23,42,.72);
  line-height:2;
  font-weight:700;
  font-size:13px;
  padding:12px;
  border-radius:16px;
  border:1px dashed rgba(15,23,42,.14);
  background:rgba(255,255,255,.86);
}

.up-article{
  margin-top:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:16px;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
  line-height:2.05;
  font-size:14px;
}
.up-article h2{
  margin:0 0 10px;
  font-weight:900;
  font-size:16px;
}

@media (max-width:720px){
  .up-grid{ grid-template-columns:1fr; }
}
@media (max-width:520px){
  .up-wrap{ width:calc(100% - 22px); }
  .up-head, .up-form, .up-result, .up-article{ border-radius:20px; padding:14px; }
}
