.humanizer-wrap{
  --bg: #f9fbff;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: rgba(15, 23, 42, .12);
  --shadow: 0 10px 28px rgba(2, 8, 23, .10);
  --shadow-soft: 0 6px 18px rgba(2, 8, 23, .08);
  --accent: #0b63ce;
  --btn-accent: #6aa8ff;
  --accent-ink: #06224a;
  --accent-soft: rgba(11, 99, 206, .08);
  --radius: 18px;
}

.humanizer-wrap *{box-sizing:border-box}
.humanizer-wrap{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
}

.humanizer-wrap .shell{
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 46px;
}

.humanizer-wrap header{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
}

.humanizer-wrap header h1{
  margin:0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  letter-spacing: -0.02em;
}

.humanizer-wrap header .sub{
  color: var(--text-muted);
  font-size: 0.98rem;
}

.humanizer-wrap .card{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow:hidden;
}

.humanizer-wrap form{margin:0}
.humanizer-wrap .grid{
  display:flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.humanizer-wrap label{
  display:block;
  font-weight: 650;
  font-size: 0.93rem;
  color: var(--accent-ink);
  margin: 6px 0 8px;
}

.humanizer-wrap textarea, .humanizer-wrap select, .humanizer-wrap input[type="range"]{
  width:100%;
  font: inherit;
  color: var(--text);
}

.humanizer-wrap textarea{
  min-height: 260px;
  resize: vertical;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  outline: none;
}

.humanizer-wrap textarea[readonly]{
  background: var(--surface-2);
}

.humanizer-wrap .field-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

.humanizer-wrap .btn-copy{
  appearance:none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}

.humanizer-wrap .btn-copy:hover{
  color: var(--accent-ink);
  border-color: rgba(11,99,206,.45);
  box-shadow: 0 0 0 3px rgba(11,99,206,.12);
}

.humanizer-wrap .btn-copy.copied{
  color: var(--accent-ink);
  border-color: var(--accent);
}

.humanizer-wrap textarea:focus, .humanizer-wrap select:focus{
  border-color: rgba(11,99,206,.45);
  box-shadow: 0 0 0 4px rgba(11,99,206,.14);
}

.humanizer-wrap .btn-primary{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.humanizer-wrap .btn-submit{
  box-sizing: border-box;
  display: block;
  background: inherit;
  color: var(--text-muted);
  font-family: inherit;
  line-height: 1.4;
  margin: 0;
  padding: 19px 14px;
}

.humanizer-wrap .btn-primary:hover,
.humanizer-wrap .btn-primary:focus-visible{
  color: var(--accent-ink);
  border-color: rgba(11,99,206,.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,99,206,.12);
}

.humanizer-wrap .controls-row{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.humanizer-wrap .control-block{
  flex: 1;
  min-width: 260px;
}

.humanizer-wrap .slider-wrap{
  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
}

.humanizer-wrap .slider-label{
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.humanizer-wrap .slider-track{
  display: flex;
  align-items: center;
  gap: 10px;
}

.humanizer-wrap .slider-track span{
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.humanizer-wrap .slider-track{
  width: 100%;
}

.humanizer-wrap .slider-track input[type="range"]{
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  accent-color: var(--accent);
}


.humanizer-wrap .persona-wrap{
  display:flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
}

.humanizer-wrap .persona-wrap > span{
  display:block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.humanizer-wrap .action-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
}

.humanizer-wrap select{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline:none;
}

.humanizer-wrap .btn-submit{
  width: 100%;
}

.humanizer-wrap .output-wrapper textarea{
  min-height: 260px;
}

.humanizer-wrap .persona-details{
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 8px;
  flex-wrap: wrap;
}

.humanizer-wrap .info-card{
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  min-width: 320px;
}

.humanizer-wrap .card-title{
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-ink);
}

.humanizer-wrap .persona-legend{
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 520px;
}

.humanizer-wrap .persona-legend strong{
  color: var(--accent-ink);
  font-weight: 700;
}

.humanizer-wrap .rule-legend{
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.45;
  color: var(--text-muted);
  font-size: 0.78rem;
  max-width: 540px;
}

.humanizer-wrap .rule-legend li{
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.humanizer-wrap .rule-label{
  flex: 1;
}

.humanizer-wrap .rule-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: help;
  line-height: 1;
  flex-shrink: 0;
  border: 1px solid var(--border);
  position: relative;
  transition: transform .12s ease;
}

.humanizer-wrap .rule-icon:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.humanizer-wrap .rule-icon:hover,
.humanizer-wrap .rule-icon:focus-visible{
  transform: translateY(-1px);
}

.humanizer-wrap .rule-icon::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  width: 240px;
  max-width: 72vw;
  font-size: 0.76rem;
  line-height: 1.35;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 4;
}

.humanizer-wrap .rule-icon:hover::after,
.humanizer-wrap .rule-icon:focus-visible::after{
  opacity: 1;
  transform: translate(-50%, -2px);
}

.humanizer-wrap .page-footnote{
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.humanizer-wrap .page-footnote a{
  color: inherit;
}
