/* Shared Eylan identity: warm paper, black type and two clean coral silhouettes. */
.tools-page main{max-width:1240px;padding-top:58px;padding-bottom:100px}
.tool-heading{max-width:900px;margin-bottom:30px}
.tool-heading h1{font-weight:800;font-size:clamp(38px,5.4vw,68px);letter-spacing:-.055em;margin-top:0}
.tool-heading p{max-width:620px;font-size:16px}
.tool-nav{gap:0;width:fit-content;max-width:100%;margin:30px auto 46px;padding:5px;border:1px solid var(--line);border-radius:100px;background:var(--paper)}
.tool-nav a{border:0;background:transparent;padding:13px 21px;font-size:12px}
.tool-nav a[aria-current]{background:#171717;color:#fff;box-shadow:0 4px 12px #17171712}
.tool-stage{position:relative;isolation:isolate;padding:22px 20px 24px;margin:0 0 20px}
.tool-stage:before,.tool-stage:after{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0;border-radius:52px 30px 48px 30px}
.tool-stage:before{background:linear-gradient(115deg,#ff6249,#ff9870 65%,#ffc595);clip-path:polygon(0 5%,97% 0,100% 94%,3% 100%)}
.tool-stage:after{inset:8px -9px -8px 12px;z-index:-2;background:linear-gradient(125deg,#ffd5b5,#ffb991);border-radius:35px 55px 38px 48px;clip-path:polygon(2% 0,100% 5%,97% 100%,0 93%)}
.tool-stage>.tool-card{padding:32px;border-radius:22px;border:1px solid #dfc6b8;background:var(--paper);box-shadow:0 15px 35px #64351c0b}
.tool-card input:not([type=file]),.tool-card textarea,.tool-card select{background:#fff;border-color:#e8ded7;border-radius:12px;transition:border-color .2s,box-shadow .2s}
.tool-card input:focus,.tool-card textarea:focus,.tool-card select:focus{outline:none;border-color:#ed9474;box-shadow:0 0 0 3px #ff98701a}
.tool-stats{gap:12px;margin-bottom:26px}
.tool-stat{background:transparent;border:1px solid #e8ded7;border-radius:14px;padding:19px 22px}
.tool-stat:first-child{background:#171717;border-color:#171717}
.tool-stat:first-child strong{color:#fff}.tool-stat:first-child span{color:#ffc6a5}
.tool-stat strong{font:750 38px var(--heading);letter-spacing:-.045em}
.tool-stat span{color:#746b65}
.tool-card textarea{min-height:235px}
.tool-meta{border-bottom:1px solid var(--line);padding-bottom:20px;gap:14px 24px}
.tool-btn{padding:14px 22px}.tool-btn.secondary{background:transparent}
.calculator-card .calc-tabs{gap:7px;padding-bottom:20px;margin-bottom:24px}
.calculator-card .calc-tabs button{border-radius:100px;padding:11px 18px}
.calculator-card .calc-tabs button[aria-selected=true]{background:linear-gradient(115deg,#ff674c,#ffb587);color:#171717;font-weight:600}
.calculator-card .calc-layout{grid-template-columns:1.08fr 1fr;gap:34px;align-items:start}
.calculator-card .calc-fields{gap:20px 16px;align-content:start;align-self:start}
.calculator-card .calc-result{background:var(--paper);color:var(--ink);border:1px solid #e1cdbf;border-radius:17px;box-shadow:0 8px 24px #633e2510;padding:23px;isolation:isolate;position:relative;margin:8px 6px 8px 0}
.calculator-card .calc-result:before,.calculator-card .calc-result:after{content:'';display:block;position:absolute;pointer-events:none;border-radius:24px 16px 23px 17px;z-index:-2}
.calculator-card .calc-result:before{inset:-8px 5px 5px -8px;background:linear-gradient(115deg,#ff7959,#ffbd8e);transform:none;opacity:1}
.calculator-card .calc-result:after{inset:5px -8px -8px 8px;background:linear-gradient(115deg,#ffb891,#ffdec2);z-index:-3}
/* An opaque inner surface keeps the coloured layers outside the reading area. */
.calculator-card .calc-result{background:none;padding:0;border:0}
.result-surface{padding:23px;background:var(--paper);border:1px solid #e1cdbf;border-radius:17px}
.calculator-card .calc-result h3{position:relative;color:var(--ink);font:650 17px var(--heading);letter-spacing:-.02em;padding-bottom:14px;margin:0;border-bottom:1px solid var(--line)}
.calculator-card .result-list{position:relative;background:var(--paper);padding-top:16px}
.calculator-card .result-list>div:first-child{border-bottom:2px solid #ffb58d;padding-bottom:16px}
.calculator-card .result-list>div:first-child dd{font-size:36px}
.calculator-card .result-list dt{font-size:11px;color:#746b65}.calculator-card .result-list dd{font-size:21px}
.image-drop{background:#fff7f1;border:1px dashed #d4a187;border-radius:16px;min-height:285px}
.image-drop>span{font-size:35px;color:#f26645}.image-drop strong{font:700 24px var(--heading);letter-spacing:-.03em}
.image-drop input::file-selector-button{border:0;border-radius:100px;padding:10px 15px;background:#171717;color:white;cursor:pointer;margin-right:10px}
.color-preview{height:110px;border-radius:20px 12px 19px 12px}.color-code{padding:15px 0}.swatch{border-radius:10px 7px 10px 7px;width:38px;height:38px;transition:transform .2s}.swatch:hover{transform:translateY(-3px)}
[data-theme=dark] .tool-stage>.tool-card{border-color:#605044}
[data-theme=dark] .tool-stat{background:transparent;border-color:#514339}[data-theme=dark] .tool-stat strong{color:#f5f1ed}[data-theme=dark] .tool-stat span{color:#c3b2a6}[data-theme=dark] .tool-stat:first-child{background:#ffb58d}[data-theme=dark] .tool-stat:first-child strong,[data-theme=dark] .tool-stat:first-child span{color:#171717}
[data-theme=dark] .tool-card input:not([type=file]),[data-theme=dark] .tool-card select,[data-theme=dark] .tool-card textarea{background:#222;border-color:#50443c}
[data-theme=dark] .calculator-card .calc-result{background:none;color:#f5f1ed;border-color:#665447}[data-theme=dark] .calculator-card .result-list dt{color:#c3b2a6}
[data-theme=dark] .calculator-card .calc-tabs button[aria-selected=true]{background:linear-gradient(115deg,#ff7959,#ffbd8e);color:#171717}
[data-theme=dark] .result-surface{border-color:#605044}
@media(max-width:950px){.calculator-card .calc-layout{grid-template-columns:1fr;gap:25px}}
@media(max-width:760px){.tools-page main{padding:35px 18px 65px}.tool-heading h1{font-size:38px}.tool-nav{border-radius:18px;justify-content:center;margin-bottom:30px}.tool-nav a{padding:11px 12px;font-size:11px}.tool-stage{padding:12px 10px 14px}.tool-stage:after{inset:6px -4px -5px 7px}.tool-stage>.tool-card{padding:20px 17px;border-radius:17px}.tool-stat{padding:14px}.tool-stat strong{font-size:31px}.calculator-card .calc-tabs button{padding:10px 12px}.calculator-card .calc-result{margin:8px 4px;padding:0}.image-drop{min-height:235px}.calculator-card .result-list{gap:0 14px}}
.tools-page .tool-stage{padding:0;margin-bottom:20px}
.tools-page .tool-stage:before,.tools-page .tool-stage:after{display:none}
.tools-page .tool-stage>.tool-card{border:0;box-shadow:none;padding:26px 8px;background:transparent}
.tools-page .result-shapes{position:relative;isolation:isolate;box-shadow:none;background:none;border:0}
.tools-page .result-shapes:before,.tools-page .result-shapes:after{content:'';display:block;position:absolute;pointer-events:none;opacity:1}
.tools-page .result-shapes:before{inset:-12px -8px -13px;z-index:-1;border-radius:48px 28px 42px 27px;background:linear-gradient(115deg,#ff664b,#ffa178 64%,#ffd2a7);transform:rotate(-5deg) skew(-4deg)}
.tools-page .result-shapes:after{inset:2px -16px -3px 8px;z-index:-2;border-radius:35px 48px 32px 42px;background:linear-gradient(140deg,#ffcfaa,#ffead7);transform:rotate(4deg) skew(3deg)}
.tools-page .calculator-card .calc-result{margin:20px 16px 24px 12px;padding:0}
.tools-page .result-surface,.color-result-surface{position:relative;background:var(--paper);border:1px solid #dfc6b8;border-radius:10px;padding:24px;box-shadow:0 16px 32px #6c321e15}
.tools-page .calculator-card .calc-layout{gap:48px}
.word-results{margin:20px 15px 38px;padding:0}
.word-results .tool-stats{position:relative;background:var(--paper);border:1px solid #dfc6b8;border-radius:12px;padding:14px;margin:0;gap:0}
.word-results .tool-stat{border:0;border-radius:0;background:transparent;border-right:1px solid var(--line)}
.word-results .tool-stat:last-child{border:0}
.word-results .tool-stat:first-child{background:transparent;border-color:var(--line)}
.word-results .tool-stat:first-child strong{color:var(--ink)}
.word-results .tool-stat:first-child span{color:#746b65}
.color-results{align-self:start;margin:20px 14px 24px 10px}
.tools-page .image-layout{gap:45px;align-items:start}
[data-theme=dark] .word-results .tool-stat{background:transparent}
[data-theme=dark] .word-results .tool-stat:first-child strong{color:var(--ink)}
[data-theme=dark] .word-results .tool-stat:first-child span{color:#c3b2a6}
[data-theme=dark] .color-result-surface,[data-theme=dark] .word-results .tool-stats{border-color:#605044}
@media(max-width:760px){.tools-page .tool-stage>.tool-card{padding:15px 0}.tools-page .calculator-card .calc-layout{gap:24px}.tools-page .result-shapes:before{inset:-8px -4px -9px;transform:rotate(-3deg) skew(-3deg);border-radius:30px 20px}.tools-page .result-shapes:after{inset:2px -8px -3px 5px;transform:rotate(3deg);border-radius:25px}.tools-page .calculator-card .calc-result,.color-results{margin:16px 10px 22px}.word-results{margin:16px 8px 28px}.word-results .tool-stats{padding:10px}.word-results .tool-stat:nth-child(2){border-right:0}.tools-page .result-surface,.color-result-surface{padding:20px}}

/* Simple orange result strip for the word counter only. */
.tools-page .word-results{margin:0 0 26px;padding:0}.tools-page .word-results:before,.tools-page .word-results:after{display:none}.tools-page .word-results .tool-stats{background:#f46b45;border:0;border-radius:16px;padding:18px 12px;box-shadow:none}.tools-page .word-results .tool-stat,.tools-page .word-results .tool-stat:first-child{background:transparent;border-color:#ffffff45}.tools-page .word-results .tool-stat strong,.tools-page .word-results .tool-stat:first-child strong,.tools-page .word-results .tool-stat span,.tools-page .word-results .tool-stat:first-child span{color:#fff}@media(max-width:760px){.tools-page .word-results .tool-stats{padding:12px 8px}.tools-page .word-results .tool-stat{padding:12px}}

/* Align the result panel with the calculator heading on desktop. */
@media(min-width:951px){.tools-page .calculator-card .calc-result{margin-top:-48px}}

/* Source page layout: upload, image with sidebar, then three explanations. */
.tools-page .tool-stage>.image-tool-card{padding:36px;background:var(--paper);border:1px solid #dfc6b8;border-radius:24px;box-shadow:0 14px 38px #64351c09}
.image-tool-card .image-drop{position:relative;min-height:250px;padding:45px 24px;background:#fff2e8;border:2px dashed #eec5aa;transition:border-color .2s,background .2s}
.image-tool-card .image-drop:hover{border-color:#f46b45;background:#ffeadc}.image-tool-card .image-drop svg{margin:0 auto 8px;color:#f46b45}.image-tool-card .image-drop strong{font-size:20px}.image-tool-card .image-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}.image-tool-card .image-drop:focus-within{outline:3px solid var(--coral-dark);outline-offset:4px}
.image-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}.canvas-wrap{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#f3eee8}.canvas-wrap .image-canvas{margin:0;border-radius:0;width:100%;max-height:none}.image-close{position:absolute;right:10px;top:10px;z-index:3;background:#171717b3;color:white;width:32px;height:32px;border-radius:50%;font-size:23px;display:grid;place-items:center}.image-close:hover{background:#171717}.image-sidebar{display:flex;flex-direction:column;gap:20px}.picked-panel{padding:18px;background:#fff2e8;border:1px solid #eed6c5;border-radius:16px}.picked-panel .color-preview{height:56px;border-radius:10px;margin-bottom:12px}.picked-panel .color-code{gap:8px;border:0;padding:3px 0}.picked-panel .color-code>span{font-size:10px;width:30px;color:#7f6c5f}.picked-panel .color-code strong{flex:1;font:500 12px monospace;background:var(--paper);border:1px solid var(--line);padding:9px 6px;border-radius:8px;text-align:center}.image-sidebar .palette-heading{font:600 11px Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;margin:0 0 12px}.image-sidebar .swatches{margin:0;gap:8px}.image-sidebar #dominant-colors{display:grid;grid-template-columns:repeat(3,1fr)}.image-sidebar #dominant-colors .swatch{position:relative;width:100%;height:66px;border-radius:10px;overflow:hidden;padding:0}.image-sidebar #dominant-colors .swatch span{position:absolute;bottom:0;left:0;right:0;background:var(--paper);padding:7px 2px;font:10px monospace;color:var(--ink)}.palette-chip{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;padding:4px;gap:2px;background:var(--paper)}.palette-chip .swatch{width:auto;height:26px;display:flex;align-items:center;padding:0 0 0 28px;border:0;border-radius:5px}.palette-chip .swatch span{background:var(--paper);height:100%;display:grid;align-items:center;font:10px monospace;color:var(--ink);padding:0 5px}.palette-remove{background:transparent;font-size:15px;padding:2px 4px}.image-sidebar .tool-actions{margin-top:10px;gap:8px}.image-sidebar .tool-btn{padding:9px 14px;font-size:11px}.image-loupe{position:absolute;width:64px;height:64px;border:3px solid white;border-radius:50%;box-shadow:0 4px 20px #0003;pointer-events:none;transform:translateX(-50%);z-index:5}.image-loupe span{position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);background:#171717;color:#fff;padding:5px 7px;border-radius:6px;font:11px monospace}.image-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:26px}.image-benefits section{border:1px solid var(--line);border-radius:18px;padding:26px 22px;text-align:center}.image-benefits section>span{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 14px;border-radius:13px;background:linear-gradient(120deg,#ffede0,#ffd1b4);color:#ac492c;font-size:22px}.image-benefits h2{font:650 18px var(--heading);margin:0 0 10px}.image-benefits p{font-size:13px;line-height:1.7;opacity:.7;margin:0}.image-tool-card #image-status:empty{display:none}
[data-theme=dark] .picked-panel{background:#2d241f;border-color:#605044}[data-theme=dark] .image-tool-card .image-drop{background:#2d241f;color:#f5f1ed;border-color:#8b6650}[data-theme=dark] .picked-panel .color-code>span{color:#c5b4a7}
@media(max-width:800px){.image-workspace{grid-template-columns:1fr}.image-benefits{grid-template-columns:1fr}.tools-page .tool-stage>.image-tool-card{padding:20px 16px}.image-tool-card .image-drop{min-height:220px;padding:30px 18px}}
