.kp-easy {
  --easy-ink: #171820;
  --easy-muted: #68645e;
  --easy-line: #d9d2c6;
  --easy-blue: #0877f9;
  --easy-blue-dark: #075bc2;
  --easy-blue-soft: #edf5ff;
  --easy-lime: #d7ff45;
  --easy-lime-soft: #f4ffd4;
  color: var(--easy-ink);
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 22px 68px;
  font-family: "Noto Sans Thai", sans-serif;
}

.kp-easy * { box-sizing: border-box; }
.kp-easy button,
.kp-easy input,
.kp-easy textarea,
.kp-easy select { font: inherit; }
.kp-easy [hidden] { display: none !important; }
.kp-easy :focus-visible { outline: 3px solid rgba(8, 119, 249, .38); outline-offset: 3px; }
.kp-easy a { color: var(--easy-blue-dark); }

.easy-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--easy-line);
  border-radius: 14px;
  padding: 4px;
  background: #fffdf8;
  margin: 0 0 20px;
}
.easy-switch a {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 16px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--easy-ink);
}
.easy-switch a[aria-current] { background: var(--easy-blue); color: #fff; }
.easy-switch a span { font-size: 14px; font-weight: 700; }
.easy-switch a small { font: 700 9px/1.2 ui-monospace, monospace; letter-spacing: .08em; opacity: .72; }

.easy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: end;
  border-top: 1px solid var(--easy-ink);
  padding: 34px 0 48px;
}
.easy-eyebrow {
  margin: 0 0 10px;
  color: var(--easy-blue-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.easy-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
}
.easy-intro {
  max-width: 650px;
  margin: 22px 0 24px;
  font-size: clamp(21px, 2.6vw, 31px);
  line-height: 1.45;
}
.easy-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.easy-hero-actions a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.easy-hero-actions a:last-child { padding: 8px 2px; border-bottom: 1px solid currentColor; }
.easy-hero-anchor {
  padding: 10px 16px;
  border: 1px solid var(--easy-blue);
  border-radius: 9px;
  color: var(--easy-blue-dark);
  background: transparent;
}
.easy-hero-anchor:hover,
.easy-hero-anchor:focus-visible { background: var(--easy-blue-soft); }

.easy-hero-note {
  padding: 22px;
  border: 1px solid #badc33;
  border-radius: 16px;
  background: var(--easy-lime);
}
.easy-note-number { font: 750 12px/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.easy-hero-note p { display: grid; gap: 4px; margin: 15px 0 20px; font-size: 18px; line-height: 1.45; }
.easy-hero-note small { display: block; padding-top: 12px; border-top: 1px solid rgba(23, 24, 32, .25); line-height: 1.5; }

.easy-work { border-top: 1px solid var(--easy-line); padding: 36px 0 50px; }
.easy-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.easy-section-head h2,
.easy-examples h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
.easy-section-head > span { color: var(--easy-muted); font-size: 13px; }

.easy-tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.easy-task {
  min-width: 0;
  min-height: 150px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--easy-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .82);
  color: var(--easy-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.easy-task:hover,
.easy-task:focus-visible { border-color: var(--easy-blue); background: var(--easy-blue-soft); transform: translateY(-1px); }
.easy-task.is-selected { border-color: #a8c91f; background: var(--easy-lime-soft); box-shadow: inset 0 0 0 1px #a8c91f; }
.easy-task-number { color: var(--easy-blue-dark); font: 750 11px/1 ui-monospace, monospace; }
.easy-task strong { display: block; font-size: 19px; line-height: 1.35; }
.easy-task small { display: block; margin-top: 7px; color: var(--easy-muted); font-size: 13px; line-height: 1.5; }

.easy-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  gap: 18px;
  padding: 40px 0 54px;
  border-top: 1px solid var(--easy-ink);
}
.easy-form-panel,
.easy-preview { border: 1px solid var(--easy-line); border-radius: 16px; padding: 24px; }
.easy-form-panel { background: #fffdf8; }
.easy-preview { align-self: start; position: sticky; top: 18px; background: #0b2d5c; color: #fff; }
.easy-form-panel h2,
.easy-preview h2 { margin: 7px 0 18px; font-size: 25px; line-height: 1.35; }

.easy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.easy-steps li { padding-top: 8px; border-top: 2px solid var(--easy-line); color: #8c8780; font-size: 12px; }
.easy-steps li b { font: 750 11px/1 ui-monospace, monospace; }
.easy-steps li span { display: block; margin-top: 4px; }
.easy-steps li.is-done { border-color: var(--easy-lime); color: #607010; }
.easy-steps li.is-current { border-color: var(--easy-blue); color: var(--easy-blue-dark); font-weight: 700; }

.easy-form-panel label { display: block; margin: 18px 0 7px; font-weight: 700; }
.easy-form-panel label small { display: block; margin-top: 1px; color: var(--easy-blue-dark); font: 700 9px/1.4 ui-monospace, monospace; letter-spacing: .07em; }
.easy-form-panel textarea,
.easy-form-panel input,
.easy-form-panel select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #aaa49a;
  border-radius: 9px;
  background: #fff;
  color: var(--easy-ink);
  line-height: 1.55;
}
.easy-form-panel textarea:focus,
.easy-form-panel input:focus,
.easy-form-panel select:focus { border-color: var(--easy-blue); outline: 3px solid rgba(8, 119, 249, .15); }
.easy-example { min-height: 40px; padding: 7px 0; border: 0; background: transparent; color: var(--easy-blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.easy-help { margin: 7px 0 0; color: var(--easy-muted); font-size: 13px; line-height: 1.55; }
.easy-error { min-height: 1.5em; margin: 10px 0 0; color: #a52424; font-weight: 700; }

.easy-advanced { margin: 20px 0 0; border-top: 1px solid var(--easy-line); border-bottom: 1px solid var(--easy-line); }
.easy-advanced summary { min-height: 48px; display: flex; align-items: center; color: var(--easy-blue-dark); font-weight: 750; cursor: pointer; }
.easy-advanced-grid { padding: 0 0 20px; }
.easy-advanced-field { margin: 0; }
.easy-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.easy-generate,
.easy-copy {
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9px;
  font-weight: 750;
  cursor: pointer;
}
.easy-generate { background: var(--easy-blue); color: #fff; }
.easy-generate:hover,
.easy-generate:focus-visible { background: var(--easy-blue-dark); }
.easy-text { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--easy-blue-dark); font-weight: 700; cursor: pointer; }

.easy-preview .easy-eyebrow { color: #9ac8ff; }
.easy-preview-head { display: flex; justify-content: space-between; gap: 16px; }
.easy-preview-head > span:last-child { height: max-content; padding: 4px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 11px; }
.easy-preview pre { min-height: 78px; max-height: 330px; overflow: auto; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.72 "Noto Sans Thai", sans-serif; }
.easy-preview #easy-result-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.easy-copy { width: 100%; background: var(--easy-lime); color: #172000; }
.easy-copy:hover,
.easy-copy:focus-visible { background: #e4ff7e; }
.easy-copy-note { margin: 11px 0 12px; color: #dbeaff; font-size: 13px; line-height: 1.55; }
.easy-ai-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.easy-ai-links a { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; background: #fff; color: #161620; text-decoration: none; font-size: 12px; font-weight: 700; }
.easy-ai-links a:hover,
.easy-ai-links a:focus-visible { background: var(--easy-blue-soft); border-color: #9ac8ff; }
.easy-ai-links img { width: 21px; height: 21px; object-fit: contain; flex: 0 0 21px; }
#easy-copy-status { min-height: 1.4em; margin: 10px 0 0; color: var(--easy-lime); font-size: 13px; font-weight: 700; }
.easy-preview .easy-reset { color: #fff; }

.easy-examples { padding: 38px 0; border-top: 1px solid var(--easy-line); }
.easy-examples > h2 { margin-bottom: 20px; }
.easy-examples #easy-example-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--easy-line); }
.easy-examples button { min-height: 86px; display: grid; gap: 4px; padding: 16px 6px; border: 0; border-bottom: 1px solid var(--easy-line); background: transparent; color: var(--easy-ink); text-align: left; cursor: pointer; }
.easy-examples button:nth-child(odd) { padding-right: 22px; }
.easy-examples button:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--easy-line); }
.easy-examples button:hover,
.easy-examples button:focus-visible { background: var(--easy-blue-soft); }
.easy-examples button strong { font-size: 16px; }
.easy-examples button span { color: var(--easy-muted); font-size: 13px; }

@media (max-width: 900px) {
  .easy-hero { grid-template-columns: 1fr minmax(220px, .6fr); gap: 28px; }
  .easy-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .easy-composer { grid-template-columns: 1fr; }
  .easy-preview { position: static; }
}

@media (max-width: 620px) {
  .kp-easy { padding: 10px 16px 48px; }
  .easy-switch { width: 100%; margin-bottom: 12px; }
  .easy-switch a { min-width: 0; padding: 8px 6px; }
  .easy-hero { grid-template-columns: 1fr; gap: 18px; padding: 24px 0 30px; }
  .easy-hero h1 { font-size: 50px; }
  .easy-intro { margin: 16px 0 18px; font-size: 20px; }
  .easy-hero-actions { gap: 7px 16px; }
  .easy-hero-note { padding: 15px 16px; }
  .easy-hero-note p { grid-template-columns: repeat(3, auto); justify-content: start; gap: 7px 13px; margin: 10px 0 12px; font-size: 14px; }
  .easy-hero-note p span:not(:last-child)::after { content: "·"; margin-left: 13px; color: #6f8217; }
  .easy-hero-note small br { display: none; }
  .easy-work { padding: 28px 0 36px; }
  .easy-section-head { align-items: start; margin-bottom: 18px; }
  .easy-section-head > span { display: none; }
  .easy-tasks { grid-template-columns: 1fr; gap: 7px; }
  .easy-task { min-height: 100px; grid-template-columns: 34px 1fr; grid-template-rows: 1fr; align-items: center; gap: 8px; padding: 14px; }
  .easy-task strong { font-size: 17px; }
  .easy-task small { margin-top: 3px; }
  .easy-composer { gap: 12px; padding: 30px 0 40px; }
  .easy-form-panel,
  .easy-preview { padding: 18px; border-radius: 13px; }
  .easy-form-panel h2,
  .easy-preview h2 { font-size: 22px; }
  .easy-steps li span { font-size: 11px; }
  .easy-form-actions { align-items: stretch; flex-direction: column; }
  .easy-generate { width: 100%; }
  .easy-ai-links { grid-template-columns: 1fr; }
  .easy-ai-links a { justify-content: flex-start; padding-inline: 13px; }
  .easy-examples #easy-example-list { grid-template-columns: 1fr; }
  .easy-examples button,
  .easy-examples button:nth-child(odd),
  .easy-examples button:nth-child(even) { min-height: 76px; padding: 14px 4px; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .easy-task { transition: none; }
}
