:root {
  font-family: 'DM Sans', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
  color: #21322b;
  background: #f6f7f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #21322b;
  --muted: #718079;
  --line: #e7eae5;
  --green: #1c513e;
  --bright: #c8f3d8;
  --soft: #f5f8f3;
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f6f7f3; }
button, input, select, textarea { font: inherit; }
button, select, input[type="radio"], label[for="product-photo"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .upload-box:focus-visible { outline: 3px solid #9bd8b3; outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; background: #fff; border-bottom: 1px solid #ebeee9; display: flex; align-items: center; justify-content: space-between; padding: 0 max(36px, calc((100vw - 1350px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 39px; height: 39px; color: #1d5941; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font: 800 16px/1 'Manrope', sans-serif; letter-spacing: -.5px; }
.brand-name span { display: block; margin-top: 5px; color: #929e97; font: 600 9px/1 'DM Sans', sans-serif; letter-spacing: 1.35px; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.mode-pill { font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: 1px; color: #4c6558; padding: 9px 11px; background: #f0f6ef; border: 1px solid #e5ede3; border-radius: 99px; display: flex; align-items: center; gap: 7px; }
.mode-pill span { width: 6px; height: 6px; border-radius: 50%; background: #4ea879; box-shadow: 0 0 0 3px #dff3e5; }
.avatar { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: #e8efe7; color: #395747; font-size: 13px; font-weight: 700; }
.page-wrap { width: min(1320px, calc(100% - 72px)); margin: 0 auto; }
.intro-row { display: flex; justify-content: space-between; align-items: end; padding: 41px 0 26px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #7b8981; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow-line { display: inline-block; width: 23px; height: 1px; background: #9eaaa1; }
.eyebrow-dot { color: #8fc7a2; font-size: 13px; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 12px; font: 700 clamp(28px, 3.3vw, 40px)/1.16 'Manrope', sans-serif; letter-spacing: -1.55px; color: #20352b; }
h1 span { color: #5e9873; }
.intro-copy { margin-top: 9px; color: #758179; font-size: 13px; }
.demo-note { display: flex; align-items: center; gap: 11px; color: #738078; font-size: 10px; line-height: 1.55; padding: 10px 13px; border: 1px solid #e8ece6; border-radius: 12px; background: #fbfcf9; margin-bottom: 3px; }
.demo-note strong { color: #354a3e; font-size: 11px; font-weight: 700; }
.sparkle { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #4b8b66; background: #e9f5ec; font-size: 18px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.74fr) minmax(290px, .76fr); gap: 21px; align-items: start; }
.primary-column { min-width: 0; display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid #e8ebe6; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(42, 62, 49, .025); }
.product-panel { padding: 22px 24px 0; }
.panel-heading { display: flex; align-items: center; gap: 12px; }
.heading-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #518668; background: #eef6ef; flex: none; }
.heading-icon svg { width: 21px; height: 21px; }
.panel-heading h2 { font: 700 15px/1.2 'Manrope', sans-serif; letter-spacing: -.25px; }
.panel-heading p { margin-top: 4px; font-size: 10px; color: #929d95; }
.step-tag { margin-left: auto; color: #a1aaa4; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.product-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 24px; padding: 23px 0 21px; }
.field-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #394b41; font-size: 10px; font-weight: 700; }
.optional { color: #a7b0a9; font-size: 8px; font-weight: 600; letter-spacing: .75px; }
.required { color: #c57c57; }
.upload-box { position: relative; display: flex; min-height: 202px; width: 100%; cursor: pointer; overflow: hidden; align-items: center; justify-content: center; border: 1px dashed #cbd8cc; border-radius: 12px; background: #f9fbf7; transition: background .18s, border-color .18s; }
.upload-box:hover, .upload-box.dragover { border-color: #71aa85; background: #f2f8f2; }
.upload-empty { display: flex; align-items: center; flex-direction: column; color: #88958c; font-size: 10px; }
.upload-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 11px; background: #edf5ed; color: #5b9571; }
.upload-icon svg { width: 21px; height: 21px; }
.upload-empty strong { color: #53645a; font-size: 10px; font-weight: 700; }
.upload-empty > span:not(.upload-icon) { margin-top: 4px; }
.browse-link { color: #367b52; text-decoration: underline; text-underline-offset: 2px; }
.upload-empty small { margin-top: 15px; color: #a2aca4; font-size: 8px; }
.photo-preview { display: block; width: 100%; height: 100%; min-height: 202px; max-height: 270px; object-fit: cover; }
.photo-preview[hidden] { display: none; }
.photo-change { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 99px; color: #fff; background: rgba(27, 55, 40, .8); white-space: nowrap; font-size: 9px; font-weight: 600; }
.privacy-note { display: flex; align-items: center; gap: 5px; color: #9ba59e; font-size: 9px; margin-top: 9px; }
.privacy-note svg { width: 13px; height: 13px; }
.form-fields { min-width: 0; display: grid; gap: 14px; }
.field-group { min-width: 0; }
.field-group input, .field-group select, .field-group textarea { width: 100%; border: 1px solid #e4e9e3; border-radius: 8px; color: #34463c; background: #fff; font-size: 11px; transition: border-color .16s, box-shadow .16s; }
.field-group input, .field-group select { height: 38px; padding: 0 11px; }
.field-group select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2388978d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
.field-group textarea { resize: vertical; min-height: 74px; padding: 10px 11px; line-height: 1.55; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #b0b9b2; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: #87b99a; box-shadow: 0 0 0 3px rgba(135, 185, 154, .13); outline: none; }
.field-hint { display: block; margin-top: 5px; color: #9ca69f; font-size: 9px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hint-row { display: flex; justify-content: space-between; gap: 8px; }
.language-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.language-row .field-label { margin: 0; }
.language-options { display: flex; gap: 4px; padding: 3px; background: #f4f6f2; border: 1px solid #e9ece7; border-radius: 8px; }
.language-choice { position: relative; cursor: pointer; }
.language-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.language-choice span { display: block; padding: 6px 10px; border-radius: 6px; color: #849087; font-size: 9px; font-weight: 600; }
.language-choice input:checked + span { background: #fff; color: #356d4b; box-shadow: 0 1px 3px rgba(23, 52, 35, .1); }
.language-choice input:focus-visible + span { outline: 2px solid #9bd8b3; outline-offset: 1px; }
.form-footer { margin: 0 -24px; padding: 14px 24px; min-height: 63px; border-top: 1px solid #edf0ec; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-message { max-width: 55%; color: #929e96; font-size: 9px; line-height: 1.5; }
.form-message.error { color: #b85949; }
.form-actions { display: flex; align-items: center; gap: 8px; }
.button { border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.button:active { transform: translateY(1px); }
.button-quiet { padding: 10px 12px; border-radius: 8px; background: transparent; color: #6e7e73; font-size: 10px; font-weight: 600; }
.button-quiet:hover { background: #f5f7f3; color: #355c43; }
.button-primary { min-height: 38px; display: inline-flex; align-items: center; gap: 11px; padding: 0 14px; border-radius: 8px; background: #245b43; color: #fff; box-shadow: 0 3px 8px rgba(36, 91, 67, .15); font-size: 10px; font-weight: 700; }
.button-primary:hover { background: #184b36; box-shadow: 0 5px 13px rgba(36, 91, 67, .2); }
.button-primary svg { width: 16px; height: 16px; }
.results-panel { min-height: 245px; padding: 20px 24px 22px; }
.result-icon { color: #8c7641; background: #faf5e8; }
.result-icon svg { width: 22px; height: 22px; }
.result-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.draft-label { margin-right: 2px; color: #a0aaa2; font-size: 8px; font-weight: 700; letter-spacing: .75px; }
.icon-button, .button-copy-all, .copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #718278; background: #fff; border: 1px solid #e6ebe5; cursor: pointer; transition: background .15s, color .15s; }
.icon-button { width: 30px; height: 30px; border-radius: 7px; }
.icon-button svg, .button-copy-all svg { width: 15px; height: 15px; }
.icon-button:hover:not(:disabled), .button-copy-all:hover:not(:disabled), .copy-button:hover { color: #2c6947; background: #f5faf5; border-color: #cee3d1; }
.icon-button:disabled, .button-copy-all:disabled { opacity: .45; cursor: not-allowed; }
.button-copy-all { min-height: 30px; padding: 0 9px; border-radius: 7px; font-size: 9px; font-weight: 600; }
.results-empty { min-height: 157px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9aa59d; text-align: center; }
.empty-art { display: flex; align-items: center; justify-content: center; gap: 9px; width: 104px; height: 50px; margin-bottom: 9px; border-radius: 11px; background: linear-gradient(135deg, #f7f9f4, #f1f6ee); }
.empty-spark { color: #89ba96; font-size: 23px; }
.empty-lines { display: grid; gap: 4px; }
.empty-lines i { display: block; width: 34px; height: 3px; border-radius: 4px; background: #dce7db; }
.empty-lines i:nth-child(2) { width: 28px; }
.empty-lines i:nth-child(3) { width: 21px; }
.results-empty strong { color: #67766c; font-size: 10px; }
.results-empty > span { margin-top: 5px; font-size: 9px; }
.results-content { padding-top: 19px; }
.output-card { padding: 13px 14px 12px; margin-bottom: 9px; background: #fbfcfa; border: 1px solid #edf0eb; border-radius: 10px; }
.output-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.output-top h3 { color: #718077; font-size: 9px; text-transform: uppercase; font-weight: 700; letter-spacing: .8px; }
.copy-button { min-width: 48px; height: 24px; border-radius: 6px; font-size: 9px; font-weight: 600; }
.output-title { color: #304b3a; font-size: 12px; line-height: 1.55; font-weight: 600; }
.output-meta { display: flex; justify-content: space-between; margin-top: 7px; padding-top: 7px; border-top: 1px solid #edf0eb; color: #a1aaa3; font-size: 8px; }
.output-description { color: #65746b; white-space: pre-line; font-size: 10px; line-height: 1.7; }
.keyword-list { color: #56765f; font-size: 10px; line-height: 1.8; }
.highlights-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.highlights-list li { position: relative; padding-left: 13px; color: #65746b; font-size: 10px; line-height: 1.45; }
.highlights-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #85b495; }
.demo-disclaimer { display: flex; align-items: center; gap: 7px; color: #929e96; font-size: 9px; line-height: 1.5; margin-top: 12px; }
.disclaimer-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #d8a05e; }
.calculator-panel { position: sticky; top: 20px; padding: 22px; }
.calculator-topline { display: flex; justify-content: space-between; align-items: center; color: #99a49a; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.calculator-spark { font-size: 17px; color: #79aa86; }
.calculator-heading-row { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.calculator-heading-row h2 { color: #273d30; font: 700 17px/1.25 'Manrope', sans-serif; letter-spacing: -.5px; }
.calculator-heading-row p { margin-top: 5px; color: #8c9890; font-size: 10px; }
.calculator-icon { width: 39px; height: 39px; flex: none; display: grid; place-items: center; color: #4f8c67; background: #edf6ee; border-radius: 11px; }
.calculator-icon svg { width: 22px; height: 22px; }
.calc-fields { display: grid; gap: 0; margin-top: 22px; }
.calc-field { min-height: 43px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #eff1ed; color: #69776e; font-size: 10px; }
.calc-field:first-child { border-top: 1px solid #eff1ed; }
.money-input { min-width: 82px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: #a0aaa2; }
.money-input input { width: 66px; padding: 5px 4px; border: 0; outline: 0; border-radius: 4px; background: transparent; color: #364a3d; text-align: right; font-size: 11px; font-weight: 600; }
.money-input input:focus { background: #f4f8f3; box-shadow: inset 0 0 0 1px #d7e9d9; }
.money-input input::-webkit-inner-spin-button, .money-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.money-input input[type=number] { -moz-appearance: textfield; }
.fee-input { min-width: 67px; }
.fee-input input { width: 45px; }
.profit-card { margin-top: 18px; padding: 15px 15px 12px; border-radius: 12px; color: #f6fbf5; background: #214d3b; overflow: hidden; }
.profit-label { display: flex; justify-content: space-between; align-items: center; color: #b6d2bf; font-size: 8px; font-weight: 700; letter-spacing: .95px; }
.profit-status { color: #b6d2bf; font-size: 7px; }
.profit-amount { margin-top: 6px; font: 700 29px/1.15 'Manrope', sans-serif; letter-spacing: -.8px; }
.profit-meter { height: 4px; margin-top: 12px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.16); }
.profit-meter span { display: block; height: 100%; width: 38.6%; border-radius: inherit; background: #9fe0b4; transition: width .2s, background .2s; }
.profit-details { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: #c2d8c8; font-size: 8px; }
.profit-card.loss .profit-amount { color: #ffd0be; }
.profit-card.loss .profit-meter span { background: #ed9a7c; }
.calc-formula { display: flex; gap: 8px; margin-top: 16px; color: #8e9991; }
.formula-icon { display: grid; place-items: center; width: 14px; height: 14px; flex: none; border: 1px solid #aab3ac; border-radius: 50%; font-size: 9px; font-weight: 700; font-family: Georgia, serif; }
.calc-formula p { font-size: 9px; line-height: 1.55; }
.calculator-foot { display: flex; align-items: center; gap: 6px; padding-top: 13px; margin-top: 14px; border-top: 1px solid #edf0ec; color: #a0aaa2; font-size: 8px; line-height: 1.45; }
.calculator-lock { display: flex; flex: none; color: #95a49a; }
.calculator-lock svg { width: 13px; height: 13px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 2px 28px; color: #98a29a; font-size: 9px; }
.footer-separator { margin: 0 4px; color: #bdc5bd; }
.footer-heart { color: #8ab797; font-size: 10px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 10px 15px; border-radius: 9px; color: #fff; background: #254d3b; box-shadow: 0 8px 24px rgba(21, 43, 30, .2); font-size: 11px; transition: opacity .2s, transform .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .page-wrap { width: min(100% - 48px, 760px); }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .calculator-panel { position: static; }
  .calculator-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .calculator-topline, .calculator-heading-row, .calc-fields, .profit-card, .calc-formula, .calculator-foot { grid-column: 1 / -1; }
  .calculator-heading-row { margin-top: 5px; }
  .calc-fields { grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 18px; }
  .calc-field:nth-child(2) { border-top: 1px solid #eff1ed; }
  .profit-card { margin-top: 18px; }
  .calculator-foot { margin-top: 13px; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; padding: 0 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .topbar-right { gap: 10px; }
  .mode-pill { padding: 8px 9px; font-size: 8px; }
  .avatar { width: 29px; height: 29px; }
  .page-wrap { width: calc(100% - 30px); }
  .intro-row { display: block; padding: 29px 0 18px; }
  h1 { margin-top: 10px; font-size: 30px; letter-spacing: -1.1px; }
  .intro-copy { max-width: 360px; font-size: 11px; line-height: 1.55; }
  .demo-note { display: none; }
  .workspace-grid { gap: 15px; }
  .primary-column { gap: 15px; }
  .product-panel { padding: 17px 16px 0; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 18px 0 17px; }
  .photo-column { max-width: none; }
  .upload-box { min-height: 160px; }
  .photo-preview { min-height: 160px; max-height: 240px; }
  .form-fields { gap: 13px; }
  .form-footer { margin: 0 -16px; padding: 12px 16px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .form-message { max-width: none; }
  .form-actions { width: 100%; justify-content: flex-end; }
  .button-quiet { margin-right: auto; }
  .results-panel { padding: 16px; }
  .results-heading { flex-wrap: wrap; }
  .results-heading > div:nth-child(2) { flex: 1; }
  .result-actions { width: 100%; justify-content: flex-end; margin-top: 3px; }
  .draft-label { margin-right: auto; }
  .results-empty { min-height: 145px; }
  .highlights-list { grid-template-columns: 1fr; gap: 7px; }
  .calculator-panel { display: block; padding: 17px 16px; }
  .calculator-heading-row { margin-top: 7px; }
  .calc-fields { grid-template-columns: 1fr; column-gap: 0; margin-top: 18px; }
  .calc-field:nth-child(2) { border-top: 0; }
  .profit-card { margin-top: 16px; }
  .page-footer { flex-direction: column; gap: 7px; padding: 19px 1px 24px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
