.twitch-profile-tool{
  --tp-night:#0d0914;
  --tp-ink:#191220;
  --tp-violet:#6544d8;
  --tp-violet-bright:#a98cf7;
  --tp-lime:#ceff68;
  --tp-coral:#ff6b5d;
  --tp-paper:#fbf9ff;
  --tp-panel:#fff;
  --tp-line:#d8d0e5;
  --tp-muted:#685d74;
  accent-color:var(--tp-violet);
  background:
    radial-gradient(circle at 84% 12%,rgba(101,68,216,.08),transparent 22rem),
    #fdfcff;
}
.twitch-profile-tool [hidden]{display:none!important}
.twitch-profile-tool .article-reading article>.profile-answer{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:22px 30px;
  margin-top:4px;
  padding:28px 30px 26px;
  border:1px solid #cfc4df;
  border-radius:10px;
  background:
    linear-gradient(135deg,rgba(101,68,216,.06),transparent 42%),
    var(--tp-panel);
  box-shadow:0 18px 50px rgba(32,18,52,.07);
}
.twitch-profile-tool .answer-copy{min-width:0;align-self:center}
.twitch-profile-tool .profile-answer h1,
.twitch-profile-tool h2,
.twitch-profile-tool h3{
  font-family:Georgia,"Times New Roman",serif;
}
.twitch-profile-tool .profile-answer h1{
  max-width:14ch;
  margin:0;
  color:var(--tp-ink);
  font-size:clamp(42px,5.3vw,68px);
  line-height:1.01;
  letter-spacing:-.052em;
}
.twitch-profile-tool .profile-answer h1 span{color:var(--tp-violet)}
.twitch-profile-tool .profile-answer .article-meta{
  margin:12px 0 15px;
  color:var(--tp-muted);
  font-size:13px;
}
.twitch-profile-tool .profile-answer .lead{
  max-width:68ch;
  margin:0;
  color:#382f40;
  font-size:17px;
  line-height:1.72;
}
.twitch-profile-tool .profile-answer .lead strong{
  color:var(--tp-ink);
  font-size:1.08em;
}
.twitch-profile-tool .answer-note{
  max-width:68ch;
  margin:11px 0 0;
  color:#5d5268;
  font-size:13.5px;
  line-height:1.65;
}
.twitch-profile-tool .hero-upload{
  display:flex;
  position:relative;
  align-items:center;
  gap:12px;
  min-height:58px;
  margin-top:17px;
  padding:11px 16px;
  border:1px solid #9e86d0;
  border-radius:7px;
  background:#f4efff;
  color:var(--tp-ink);
  cursor:pointer;
  max-width:430px;
}
.twitch-profile-tool .hero-upload:hover{border-color:var(--tp-violet)}
.twitch-profile-tool .hero-upload:focus-within{
  outline:3px solid rgba(101,68,216,.28);
  outline-offset:2px;
}
.twitch-profile-tool .hero-upload-mark{
  display:grid;
  flex:0 0 36px;
  width:36px;
  height:36px;
  place-items:center;
  border-radius:50%;
  background:var(--tp-violet);
  color:#fff;
  font:700 18px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.twitch-profile-tool .hero-upload strong{
  display:block;
  font-size:14px;
}
.twitch-profile-tool .hero-upload small{
  display:block;
  margin-top:2px;
  color:#675b73;
  font-size:11px;
  line-height:1.4;
}
.twitch-profile-tool .file-input{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
}
.twitch-profile-tool .size-ticket{
  position:relative;
  display:flex;
  min-height:230px;
  flex-direction:column;
  justify-content:space-between;
  padding:20px;
  border-radius:8px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    var(--tp-night);
  background-size:24px 24px,24px 24px,auto;
  color:#fff;
  overflow:hidden;
}
.twitch-profile-tool .size-ticket::after{
  content:"MAX";
  position:absolute;
  right:-12px;
  bottom:-21px;
  color:rgba(255,255,255,.045);
  font:800 94px/1 ui-sans-serif,system-ui,sans-serif;
  letter-spacing:-.08em;
}
.twitch-profile-tool .ticket-kicker{
  position:relative;
  z-index:1;
  margin:0;
  color:var(--tp-lime);
  font:700 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.twitch-profile-tool .ticket-number{
  position:relative;
  z-index:1;
  margin:18px 0 10px;
  color:#fff;
  font-size:36px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.055em;
}
.twitch-profile-tool .ticket-copy{
  position:relative;
  z-index:1;
  margin:0;
  max-width:23ch;
  color:#c8bdd6;
  font-size:12px;
  line-height:1.55;
}
.twitch-profile-tool .surface-strip{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr;
  gap:9px;
  margin-top:0;
}
.twitch-profile-tool .surface-row{
  min-width:0;
  padding:13px 14px;
  border:1px solid var(--tp-line);
  border-radius:6px;
  background:#fff;
  color:#51455d;
  font-size:12px;
  line-height:1.55;
}
.twitch-profile-tool .surface-row:first-child{
  border-color:#ad96dc;
  background:#f6f1ff;
}
.twitch-profile-tool .surface-row span{
  display:block;
  color:var(--tp-violet);
  font:700 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.twitch-profile-tool .surface-row strong{
  display:block;
  margin:5px 0 3px;
  color:var(--tp-ink);
  font-size:14px;
}
.twitch-profile-tool .surface-row a{color:#4c2caa}
.twitch-profile-tool .article-reading .article-jumps{
  grid-column:1/-1;
  margin:2px 0 0;
}
.twitch-profile-tool .article-jumps a{color:#4d2dab}
.twitch-profile-tool .table-scroll{
  width:100%;
  max-width:100%;
  margin:22px 0;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
}
.twitch-profile-tool .table-scroll:focus-visible{
  outline:2px solid var(--tp-violet);
  outline-offset:3px;
}
.twitch-profile-tool .table-scroll table{
  min-width:1040px;
  margin:0;
  table-layout:fixed;
}
.twitch-profile-tool .table-scroll th:nth-child(1){width:16%}
.twitch-profile-tool .table-scroll th:nth-child(2){width:25%}
.twitch-profile-tool .table-scroll th:nth-child(3){width:14%}
.twitch-profile-tool .table-scroll th:nth-child(4){width:15%}
.twitch-profile-tool .table-scroll th:nth-child(5){width:23%}
.twitch-profile-tool .table-scroll th:nth-child(6){width:7%}
.twitch-profile-tool .scope-note{
  margin:18px 0;
  padding:16px 18px;
  border-left:4px solid var(--tp-coral);
  border-radius:0 6px 6px 0;
  background:#fff1ee;
  color:#593630;
  font-size:13.5px;
  line-height:1.7;
}
.twitch-profile-tool .upload-checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin:21px 0 0;
  padding:0;
  list-style:none;
  counter-reset:tp-check;
}
.twitch-profile-tool .upload-checklist li{
  position:relative;
  min-width:0;
  padding:16px 17px 15px 52px;
  border:1px solid var(--tp-line);
  border-radius:6px;
  background:var(--tp-panel);
  color:#554960;
  font-size:13px;
  line-height:1.65;
  counter-increment:tp-check;
}
.twitch-profile-tool .upload-checklist li::before{
  content:counter(tp-check,decimal-leading-zero);
  position:absolute;
  top:15px;
  left:14px;
  display:grid;
  width:26px;
  height:26px;
  place-items:center;
  border-radius:5px;
  background:var(--tp-night);
  color:var(--tp-lime);
  font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.twitch-profile-tool .upload-checklist strong{color:var(--tp-ink)}
.twitch-profile-tool .profile-workspace{
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  align-items:start;
  gap:24px;
  margin-top:24px;
}
.twitch-profile-tool .editor{
  border-color:var(--tp-line);
  border-radius:7px;
  background:var(--tp-panel);
}
.twitch-profile-tool .editor h2{margin-top:0}
.twitch-profile-tool .drop-zone{
  display:block;
  margin-top:8px;
  padding:14px;
  border:1px dashed #a58bcb;
  border-radius:6px;
  background:#f7f3ff;
}
.twitch-profile-tool .drop-zone.drag{
  border-color:var(--tp-violet);
  background:#eee6ff;
}
.twitch-profile-tool .drop-zone strong{display:block;color:var(--tp-ink)}
.twitch-profile-tool .drop-zone small{display:block;margin-top:4px;color:var(--tp-muted);font-size:11px;line-height:1.5}
.twitch-profile-tool .choose-again{
  margin-top:9px;
  min-height:38px;
  border-color:#bda9dd;
  background:#fff;
  color:#3c276c;
}
.twitch-profile-tool .editor>label:not(.drop-zone),
.twitch-profile-tool .control-pair label{
  display:block;
  color:var(--tp-ink);
  font-size:12px;
  font-weight:700;
}
.twitch-profile-tool .control-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}
.twitch-profile-tool .editor select{
  border-color:#c8bdd6;
  border-radius:5px;
}
.twitch-profile-tool .editor input:focus-visible,
.twitch-profile-tool .editor select:focus-visible,
.twitch-profile-tool .editor button:focus-visible{
  outline-color:var(--tp-violet);
}
.twitch-profile-tool .editor input:disabled,
.twitch-profile-tool .editor select:disabled{
  cursor:not-allowed;
  opacity:.48;
}
.twitch-profile-tool .tool-hint{
  margin:9px 0 0;
  color:var(--tp-muted);
  font-size:11.5px;
  line-height:1.55;
}
.twitch-profile-tool .results{min-width:0}
.twitch-profile-tool .result-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.twitch-profile-tool .result-head p{margin:0;color:var(--tp-muted);font-size:12px}
.twitch-profile-tool .shape-toggle{
  display:flex;
  gap:4px;
  padding:3px;
  border:1px solid var(--tp-line);
  border-radius:6px;
  background:#f4f0f8;
}
.twitch-profile-tool .shape-toggle button{
  min-height:32px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#5e5269;
  font-size:11px;
  font-weight:700;
}
.twitch-profile-tool .shape-toggle button[aria-pressed="true"]{
  background:var(--tp-night);
  color:#fff;
}
.twitch-profile-tool .preview-shell{
  display:grid;
  min-height:318px;
  place-items:center;
  padding:18px;
  border:1px solid var(--tp-line);
  border-radius:7px;
  background:
    linear-gradient(45deg,#e8e2ef 25%,transparent 25%) 0 0/18px 18px,
    linear-gradient(-45deg,#e8e2ef 25%,transparent 25%) 0 9px/18px 18px,
    linear-gradient(45deg,transparent 75%,#e8e2ef 75%) 9px -9px/18px 18px,
    linear-gradient(-45deg,transparent 75%,#e8e2ef 75%) -9px 0/18px 18px,
    #faf8fd;
}
.twitch-profile-tool .preview-shell[data-shape="circle"]{
  background:
    radial-gradient(circle at center,transparent 0 47%,rgba(25,18,32,.12) 47.3% 47.7%,transparent 48%),
    linear-gradient(45deg,#e8e2ef 25%,transparent 25%) 0 0/18px 18px,
    linear-gradient(-45deg,#e8e2ef 25%,transparent 25%) 0 9px/18px 18px,
    linear-gradient(45deg,transparent 75%,#e8e2ef 75%) 9px -9px/18px 18px,
    linear-gradient(-45deg,transparent 75%,#e8e2ef 75%) -9px 0/18px 18px,
    #faf8fd;
}
.twitch-profile-tool .preview-shell img{
  display:block;
  width:min(256px,100%);
  height:auto;
  image-rendering:auto;
}
.twitch-profile-tool .preview-shell[data-shape="circle"] img{border-radius:50%}
.twitch-profile-tool .preview-shell p{margin:0;color:var(--tp-muted)}
.twitch-profile-tool #status{
  margin:12px 0 4px;
  color:var(--tp-ink);
  font-size:13px;
  font-weight:700;
}
.twitch-profile-tool #area,
.twitch-profile-tool #size-note,
.twitch-profile-tool #view-note{
  margin:6px 0;
  color:var(--tp-muted);
  font-size:12px;
  line-height:1.55;
}
.twitch-profile-tool .button-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:13px 0;
}
.twitch-profile-tool button{
  min-height:42px;
  padding:0 16px;
  border:1px solid #a88ed0;
  border-radius:5px;
  background:#f3edff;
  color:#352059;
  font:700 12px/1 ui-sans-serif,system-ui,sans-serif;
  cursor:pointer;
}
.twitch-profile-tool button:disabled{
  cursor:not-allowed;
  opacity:.45;
}
.twitch-profile-tool #download{
  border-color:var(--tp-violet);
  background:var(--tp-violet);
  color:#fff;
}
.twitch-profile-tool .display-check{
  margin-top:17px;
  padding-top:14px;
  border-top:1px solid var(--tp-line);
}
.twitch-profile-tool .display-check h3{margin:0 0 4px;font-size:16px}
.twitch-profile-tool .display-check>p{margin:0 0 12px;color:var(--tp-muted);font-size:12px;line-height:1.55}
.twitch-profile-tool .display-row{
  display:flex;
  align-items:flex-end;
  gap:18px;
}
.twitch-profile-tool .display-item{
  display:flex;
  flex:0 0 auto;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.twitch-profile-tool .display-frame{
  display:grid;
  flex:0 0 auto;
  place-items:center;
  overflow:hidden;
  border:1px solid #c9bed5;
  border-radius:4px;
  background:transparent;
}
.twitch-profile-tool .display-frame[data-shape="circle"]{border-radius:50%}
.twitch-profile-tool .display-frame img{display:block;width:100%;height:100%;object-fit:cover}
.twitch-profile-tool .display-frame[data-shape="circle"] img{border-radius:50%}
.twitch-profile-tool .display-frame.size-128{width:128px;height:128px}
.twitch-profile-tool .display-frame.size-64{width:64px;height:64px}
.twitch-profile-tool .display-frame.size-32{width:32px;height:32px}
.twitch-profile-tool .display-item>span{
  color:var(--tp-muted);
  font:700 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.twitch-profile-tool .checks{
  margin-top:18px;
  padding:15px 16px;
  border:1px solid var(--tp-line);
  border-radius:6px;
  background:#fff;
}
.twitch-profile-tool .checks h2{margin:0 0 8px;font-size:16px}
.twitch-profile-tool .checks ul{margin:0;padding:0;list-style:none}
.twitch-profile-tool .checks li{
  margin:7px 0;
  color:#564b61;
  font-size:12px;
  line-height:1.55;
}
.twitch-profile-tool .checks li.ok::before,
.twitch-profile-tool .checks li.warn::before,
.twitch-profile-tool .checks li.neutral::before{
  content:"•";
  display:inline-block;
  width:14px;
  color:var(--tp-violet);
}
.twitch-profile-tool .checks li.ok::before{color:#18835e}
.twitch-profile-tool .checks li.warn::before{color:var(--tp-coral)}
.twitch-profile-tool .study-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:23px 0;
}
.twitch-profile-tool .study-card{
  min-width:0;
  margin:0;
  padding:13px;
  border:1px solid var(--tp-line);
  border-radius:7px;
  background:#fff;
}
.twitch-profile-tool .study-card img{
  display:block;
  width:min(256px,100%);
  height:auto;
  margin:0 auto;
  border-radius:0;
  background:
    linear-gradient(45deg,#e8e2ef 25%,transparent 25%) 0 0/16px 16px,
    linear-gradient(-45deg,#e8e2ef 25%,transparent 25%) 0 8px/16px 16px,
    linear-gradient(45deg,transparent 75%,#e8e2ef 75%) 8px -8px/16px 16px,
    linear-gradient(-45deg,transparent 75%,#e8e2ef 75%) -8px 0/16px 16px,
    #faf8fd;
}
.twitch-profile-tool .study-card figcaption{
  margin:10px 0 0;
  color:var(--tp-muted);
  font-size:11.5px;
  line-height:1.55;
}
.twitch-profile-tool .preview-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:20px 0;
}
.twitch-profile-tool .preview-strip figure{
  margin:0;
  padding:10px;
  border:1px solid var(--tp-line);
  background:#fff;
}
.twitch-profile-tool .preview-strip img{
  display:block;
  width:auto;
  height:auto;
  max-width:128px;
  margin:0 auto;
  border-radius:0;
}
.twitch-profile-tool .preview-strip figcaption{
  margin:7px 0 0;
  color:var(--tp-muted);
  font-size:10.5px;
  line-height:1.45;
  text-align:center;
}
.twitch-profile-tool .formula{
  overflow-wrap:anywhere;
  padding:11px 13px;
  border-radius:5px;
  background:#f4f0f8;
  color:#3e3348;
  font:600 12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.twitch-profile-tool .source-list{
  padding-left:20px;
}
.twitch-profile-tool .source-list li{
  margin:10px 0;
  color:#564b61;
  font-size:13px;
  line-height:1.6;
}
@media(max-width:820px){
  .twitch-profile-tool .article-reading article>.profile-answer{grid-template-columns:minmax(0,1fr)}
  .twitch-profile-tool .size-ticket{min-height:150px}
  .twitch-profile-tool .surface-strip{grid-template-columns:1fr}
  .twitch-profile-tool .profile-workspace{grid-template-columns:1fr}
}
@media(max-width:600px){
  .twitch-profile-tool .article-reading article>.profile-answer{
    padding:22px 18px;
    border-radius:7px;
  }
  .twitch-profile-tool .profile-answer h1{font-size:clamp(38px,12vw,54px)}
  .twitch-profile-tool .upload-checklist{grid-template-columns:1fr}
  .twitch-profile-tool .result-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .twitch-profile-tool .shape-toggle{width:100%}
  .twitch-profile-tool .shape-toggle button{flex:1}
  .twitch-profile-tool .display-row{gap:11px}
  .twitch-profile-tool .study-grid{grid-template-columns:1fr}
  .twitch-profile-tool .preview-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
}
