:root{
  --bg:#fbfaf7;
  --ink:#151712;
  --green:#344C34;
  --line:#e5ddd4;
  --panel:#fffdf9;
}
*{box-sizing:border-box}
html{width:100%;min-width:1640px;margin:0;background:var(--bg)}
body{width:100%;min-width:1640px;margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button{cursor:pointer}
.site{width:1640px;margin:0 auto;background:var(--bg);overflow:hidden}


/* MAIN / FERN */
main{position:relative;padding:14px 36px 18px}
main::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:640px;
  height:1988px;
  background:url("../images/Fern_Artwork.png") left top / auto 1988px no-repeat;
  opacity:.34;
  pointer-events:none;
}
main>*{position:relative;z-index:1}
.panel{
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.88);
}

/* TITLE */
.studio-title.panel{width:1568px;margin:0 auto 16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.75)}
.studio-title{height:108px;display:grid;grid-template-columns:80px 1fr auto;align-items:center;padding:0 20px}
.title-icon{width:65px;height:65px;border-radius:11px;background:#fff0f6;display:grid;place-items:center}
.title-icon img{width:65px;height:65px;object-fit:contain}
.studio-title h1{font-size:22px;margin:0 0 6px;font-weight:700;color:#344C34;}
.studio-title p{font-size:14px;margin:0}
.how-button{border:1px solid var(--line);border-radius:8px;padding:12px 15px;background:#fff;font-weight:700;font-size:14px}

/* 3-COLUMN WORKSPACE */
.workspace{
  width:1568px;
  margin:0 auto 16px;
  display:grid;
  grid-template-columns:355px 405px 790px;
  gap:9px;
  align-items:start;
}
.left-stack,.middle-stack,.right-stack{display:grid;gap:12px}
.workflow-panel{padding:21px 18px}
.workflow-panel h2,.preview-panel h2,.output-panel h2,.info-panel h2{
  font-size:17px;
  margin:0 0 8px;
  color:#344C34;
}
.workflow-panel p,.preview-panel p{
  font-size:14px;
  line-height:1.45;
  margin:0 0 14px;
  color:#4d4e49;
}
.divider{height:1px;background:#e8e1d9;margin:18px 0}

/* LEFT */
.describe-step textarea{
  width:100%;
  height:182px;
  resize:none;
  border:1px solid #d8d1c9;
  border-radius:7px;
  background:#fff;
  padding:13px;
  font-size:14px;
  outline:none;
}
.green-button{
  width:100%;
  min-height:42px;
  margin-top:16px;
  border:0;
  border-radius:5px;
  background:var(--green);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:14px;
  font-weight:700;
}
.green-button img{width:18px;height:18px;object-fit:contain}

.style-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.style-option{
  height:76px;
  border:1px solid #d9d2ca;
  border-radius:6px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:14px;
  line-height:1.15;
}
.style-option img{width:27px;height:27px;object-fit:contain}
.strength-row{margin-top:16px}
.strength-label{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:7px}
.strength-label b{font-weight:400;color:#666}
.strength-row input[type="range"]{
  width:100%;
  accent-color:var(--green);
}

/* MIDDLE */
.prompt-panel{height:680px;display:flex;flex-direction:column}
.prompt-panel textarea{
  width:100%;
  flex:1;
  resize:none;
  border:1px solid #d8d1c9;
  border-radius:9px;
  background:#fff;
  padding:13px;
  font-size:14px;
  outline:none;
}
.regenerate{margin-top:16px}
.small-step{min-height:165px}
.large-action{margin-top:20px}

/* PREVIEW */
.preview-panel{padding:21px 18px 18px;height:820px}
.preview-heading{height:62px}
.preview-heading h2{margin-bottom:7px}
.preview-heading p{margin:0}
.preview-area{
  height:714px;
  display:grid;
  grid-template-columns:1fr 106px;
  gap:15px;
}
.preview-frame{
  border:1px solid #d8d1c9;
  background:#fff;
  min-width:0;
}
.preview-tools{
  display:grid;
  grid-template-rows:repeat(5,1fr);
}
.preview-tools button{
  position:relative;
  border:0;
  border-top:1px solid #ddd6ce;
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
}
.preview-tools button:last-child{border-bottom:1px solid #ddd6ce}
.preview-tools img{width:29px;height:29px;object-fit:contain}

.bottom-right{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:12px;
}
.output-panel,.info-panel{height:135px;padding:20px 18px}
.output-panel .green-button{margin-top:21px}
.info-panel h2{font-size:17px}
.info-panel p{font-size:14px;line-height:1.5;margin:0;color:#333}

/* FOOTER */
footer{
  position:relative;
  height:500px;
  background:#f8f5ef;
  border-top:1px solid #eee7df;
  overflow:hidden;
}
.leaf{
  position:absolute;
  top:0;
  bottom:0;
  width:320px;
  background:url("../images/Fern_Artwork.png") center/cover no-repeat;
  opacity:.30;
}
.leaf-left{left:0}
.leaf-right{right:0;transform:scaleX(-1)}

.footer-grid{
  position:relative;
  z-index:1;
  width:1420px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr .62fr .86fr .58fr .72fr 1fr;
  gap:42px;
  padding-top:46px;
}
.footer-brand img{width:175px}
.footer-brand p{font-size:14px;line-height:1.7;margin-top:26px}
.footer-col{display:flex;flex-direction:column;align-items:flex-start}
.footer-grid h3{font-family:Georgia,serif;font-size:17px;margin:0 0 17px}
.footer-col h3:after{content:"";display:block;width:27px;height:2px;background:#c28a42;margin-top:9px}
.footer-col a{font-size:14px;margin-bottom:13px}
.tools-col a{display:flex;align-items:center;gap:7px}
.tools-col a img{width:24px;height:24px;object-fit:contain}
.support-box h3 span{color:#c28a42}
.support-box p{font-size:14px;line-height:1.5;margin:0 0 12px}
.support-box small{font-size:14px;color:#666}

.footer-bottom{
  position:absolute;
  left:74px;
  right:74px;
  bottom:0;
  height:73px;
  border-top:1px solid #ddd6ce;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  font-size:14px;
  z-index:2;
}
.copyright{white-space:nowrap}
.footer-trust{display:flex;align-items:center;justify-content:center;gap:20px;white-space:nowrap}
.footer-trust span{display:flex;align-items:center;gap:8px;font-size:14px}
.footer-trust img{width:27px;height:27px;object-fit:contain}
.footer-trust i{font-style:normal}
.footer-payments{display:flex;align-items:center;gap:8px}
.footer-payments img{height:29px;width:auto;max-width:54px;object-fit:contain}


/* =========================================================
   CREATE IMAGE PAGE — CLEAN ROW ALIGNMENT
   Top row is shared across all 3 columns.
   Bottom row is shared across all 3 columns.
   ========================================================= */

.workspace{
  align-items:stretch !important;
}

.left-stack,
.middle-stack,
.right-stack{
  display:grid !important;
  grid-template-rows:760px 165px !important;
  gap:12px !important;
  align-items:stretch !important;
}

/* Top row panels */
.left-main,
.prompt-panel,
.preview-panel{
  height:760px !important;
  min-height:760px !important;
  overflow:hidden !important;
}

/* Bottom row panels */
.small-step,
.bottom-right{
  height:165px !important;
  min-height:165px !important;
}

.bottom-right{
  display:grid !important;
  grid-template-columns:1fr 1.2fr !important;
  gap:12px !important;
  align-items:stretch !important;
}

.output-panel,
.info-panel{
  height:165px !important;
  min-height:165px !important;
}

/* Left column: keep the style controls and strength slider inside section 1/2 */
.left-main{
  display:block !important;
}

.style-step{
  padding-bottom:0 !important;
}

.strength-row{
  margin-top:13px !important;
  margin-bottom:0 !important;
  position:relative !important;
  z-index:2 !important;
}

.strength-label{
  margin-bottom:5px !important;
}

.strength-row input[type="range"]{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  position:relative !important;
  z-index:2 !important;
}

/* Middle prompt fills its top-row panel cleanly */
.prompt-panel{
  display:flex !important;
  flex-direction:column !important;
}

.prompt-panel textarea{
  flex:1 1 auto !important;
  min-height:0 !important;
}

/* Preview resized to the same top-row height */
.preview-panel{
  padding:21px 18px 18px !important;
}

.preview-area{
  height:654px !important;
}

/* Bottom buttons stay vertically consistent */
.small-step{
  padding:21px 18px !important;
}

.large-action{
  margin-top:20px !important;
}
