.purpose-page{
  --p-accent:#c2a8ff;
  --p-soft:#c1b7d0;
  --p-line:#4a405c;
  max-width:1580px;
  margin:auto;
  color:#f0eaf9;
  padding:14px 20px 32px;
  box-sizing:border-box
}
.purpose-page *{
  box-sizing:border-box
}
.purpose-page [hidden]{
  display:none!important
}
.purpose-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:30px;
  align-items:center;
  padding:30px;
  border:1px solid #4a405c;
  border-radius:22px;
  background:radial-gradient(ellipse at 90% 0,#8a5fe03a,transparent 60%),radial-gradient(ellipse at 0 100%,#2fb5a01c,transparent 55%),#231f2d;
  margin:0 0 24px
}
.purpose-eyebrow{
  display:block;
  font-size:11px;
  letter-spacing:1.4px;
  color:#c5adfa;
  font-weight:750
}
.purpose-hero h1{
  font-size:clamp(26px,3.1vw,42px);
  line-height:1.18;
  margin:15px 0
}
.purpose-hero h1 img{
  width:64px;
  height:64px
}
.purpose-hero p{
  max-width:80ch;
  color:#cdc3da;
  font-size:15px;
  line-height:1.85;
  margin:12px 0 18px
}
.purpose-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.purpose-tags span{
  border:1px solid #5c4c6c;
  border-radius:30px;
  padding:7px 11px;
  color:#d5cadd;
  font-size:11px;
  background:#ffffff04
}
.purpose-path{
  display:grid;
  gap:9px;
  list-style:none;
  margin:0;
  padding:0
}
.purpose-path li{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid #ffffff12;
  border-radius:12px;
  background:#ffffff03;
  font-size:12px;
  color:#ddd1eb
}
.purpose-path b{
  display:grid;
  place-items:center;
  background:#73529955;
  width:25px;
  height:25px;
  border-radius:8px;
  color:#e3caff
}
.purpose-workspace{
  display:grid;
  grid-template-columns:minmax(310px,.85fr) minmax(0,1.35fr);
  gap:22px;
  align-items:start
}
.purpose-panel{
  background:linear-gradient(145deg,#252030,#1b1724);
  border:1px solid #4a405c;
  border-radius:18px;
  padding:24px;
  min-width:0
}
.purpose-panel h2{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:20px;
  margin:0 0 20px
}
.purpose-step{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  flex-shrink:0;
  border-radius:9px;
  background:#b995e8;
  color:#20122c;
  font-size:15px
}
.purpose-page label{
  display:grid;
  gap:8px;
  font-size:13px;
  color:#d9cfe5;
  margin:15px 0;
  font-weight:600
}
.purpose-page textarea,.purpose-page select,.purpose-page input{
  width:100%;
  min-width:0;
  background:#14111e;
  border:1px solid #665374;
  color:#f4edff;
  border-radius:9px;
  padding:11px;
  font:inherit
}
.purpose-page textarea{
  min-height:230px;
  font-family:ui-monospace,Consolas,monospace;
  line-height:1.6;
  font-size:13px;
  resize:vertical
}
.purpose-page #purposeSecond{
  min-height:95px
}
.purpose-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 14px
}
.purpose-page label.purpose-check{
  display:flex;
  align-items:center;
  gap:9px
}
.purpose-page input[type=checkbox]{
  width:18px;
  height:18px;
  accent-color:#b793eb
}
.purpose-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:16px 0;
  align-items:center
}
.purpose-page button{
  background:#392b4c;
  color:#f2eafc;
  border:1px solid #765990;
  padding:10px 14px;
  min-height:42px;
  border-radius:9px;
  font:600 13px system-ui;
  cursor:pointer
}
.purpose-page button:hover{
  background:#4f386b
}
.purpose-page #purposeRun{
  background:#9561d3;
  color:#fff;
  border-color:#c09be9
}
.purpose-page button:disabled{
  opacity:.4;
  cursor:default
}
.purpose-page :focus-visible{
  outline:3px solid #d9b4ff;
  outline-offset:3px
}
.purpose-status{
  padding:14px 16px;
  border-left:4px solid #bd96ef;
  background:#31223f;
  border-radius:8px;
  line-height:1.65;
  font-size:14px
}
.purpose-status.error{
  border-color:#ff9f9f;
  color:#ffd0d0
}
.purpose-hint{
  font-size:12px;
  line-height:1.8;
  color:#b9acc9
}
.purpose-preview{
  background:#15111e;
  border-radius:12px;
  overflow:auto;
  max-height:600px;
  margin:18px 0
}
.purpose-preview>svg{
  display:block;
  width:100%;
  height:auto;
  max-height:560px
}
.purpose-table{
  overflow:auto;
  max-height:520px;
  border:1px solid #4a3a5c;
  border-radius:11px
}
.purpose-table table{
  border-collapse:collapse;
  width:100%;
  font-size:12px
}
.purpose-table th{
  position:sticky;
  top:0;
  background:#3c2c4e;
  text-align:left;
  padding:11px;
  white-space:nowrap
}
.purpose-table td{
  padding:10px;
  border-bottom:1px solid #463351;
  max-width:380px;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}
.purpose-table tr:nth-child(even){
  background:#ffffff04
}
.purpose-page details{
  border:1px solid #4a405c;
  border-radius:10px;
  padding:13px 16px;
  margin:12px 0;
  line-height:1.8
}
.purpose-page summary{
  cursor:pointer;
  font-size:13px;
  font-weight:650
}
.purpose-page #purposeOutput{
  min-height:190px;
  max-height:450px
}
.purpose-page #purposeNotes{
  padding-left:20px;
  font-size:13px;
  line-height:1.8;
  color:#c8b9d6
}
.purpose-help{
  margin-top:24px;
  font-size:14px;
  line-height:1.85
}
.purpose-help h2{
  margin-bottom:14px
}
.purpose-help a{
  color:#d7b7ff
}
.purpose-file{
  margin-top:15px!important
}
.purpose-file input{
  font-size:12px
}
.purpose-page .purpose-pagination{
  font-size:12px;
  color:#d1c3de
}
@media(max-width:1000px){
  .purpose-hero{
    grid-template-columns:1fr
  }
  .purpose-path{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .purpose-workspace{
    grid-template-columns:minmax(270px,.9fr) minmax(0,1.1fr)
  }
  .purpose-panel{
    padding:18px
  }
}
@media(max-width:760px){
  .purpose-page{
    padding:12px 4px
  }
  .purpose-hero{
    padding:22px
  }
  .purpose-workspace{
    grid-template-columns:1fr
  }
  .purpose-path{
    grid-template-columns:1fr
  }
  .purpose-path li{
    padding:9px 12px
  }
  .purpose-hero h1{
    font-size:28px
  }
  .purpose-options{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:400px){
  .purpose-options{
    grid-template-columns:1fr
  }
}
/* Readable type and comfortable controls for the community collection. */
.purpose-page label {
  font-size: 15px;
}
.purpose-page textarea {
  font-size: 15px;
  line-height: 1.7;
}
.purpose-page button {
  font-size: 14px;
  min-height: 46px;
}
.purpose-table table {
  font-size: 14px;
}
.purpose-table td, .purpose-table th {
  padding: 13px 15px;
}
.purpose-hint {
  font-size: 13px;
}
.purpose-page #purposeNotes {
  font-size: 14px;
}
.purpose-hero h1 {
  line-height: 1.16;
}
.purpose-page [hidden] {
  display: none !important;
}
