:root{--bg:#fffaf6;--ink:#182334;--muted:#6d7684;--accent:#bd5338;--edge:#e9dbd0;--shadow:0 12px 36px rgba(87,50,37,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 88% 18%,#f9e9e0 0,transparent 32%),radial-gradient(circle at 3% 65%,#ebf4eb 0,transparent 30%),var(--bg);color:var(--ink);min-height:100vh}a{color:inherit}.skip-link{position:absolute;left:-9999px;z-index:99}.skip-link:focus{left:10px;top:10px;background:white;padding:12px}.main{width:min(1160px,calc(100% - 48px));margin:auto}.hero{min-height:330px;display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:30px;padding:52px 0 43px}.eyebrow{font-size:10px;letter-spacing:2.2px;text-transform:uppercase;font-weight:800;color:#a15b49}.dot{display:inline-block;background:#c66b4e;width:8px;height:8px;border-radius:50%;margin-right:6px;box-shadow:0 0 0 4px #f6dfd5}.hero h1{font-size:clamp(37px,5.2vw,64px);letter-spacing:-2.9px;line-height:1.09;margin:19px 0;font-weight:850}.hero h1 em{font-style:normal;color:var(--accent)}.lead{color:#647083;line-height:1.85;max-width:590px;font-size:15px}.pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:21px}.pill,.local-chip{font-size:11px;color:#716057;background:#fff;border:1px solid #ede0d6;border-radius:100px;padding:8px 12px;font-weight:650}.hero-decoration{position:relative;height:250px;display:grid;place-items:center}.hero-orb{width:204px;height:204px;border-radius:46px;background:linear-gradient(145deg,#fceae0,#f1d9cb);box-shadow:13px 17px 0 #ead0c4,0 18px 50px #e8c4ad70;display:grid;place-items:center;font-weight:900;font-size:69px;color:#b8583d;transform:rotate(-9deg);position:relative}.hero-orb span{position:absolute;font-size:28px;right:19px;top:13px;color:#dcab70}.mini-chip{position:absolute;right:4%;bottom:6%;background:#fff;border:1px solid #e5d5c7;padding:12px 17px;border-radius:15px;font-size:11px;box-shadow:var(--shadow);color:#7d5b4d;font-weight:700}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:19px 0}.section-heading h2{font-size:32px;letter-spacing:-1.2px;margin:8px 0}.section-heading p:last-child{font-size:12px;color:var(--muted)}.accent{color:var(--accent)}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.tool-card{border:1px solid var(--edge);background:#fffdfb;border-radius:21px;padding:23px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:11px;transition:transform .16s,border-color .16s;min-height:208px;text-decoration:none}.tool-card:hover{transform:translateY(-3px);border-color:#d59b85}.tool-card .mark{display:grid;place-items:center;background:#f8e7dc;border-radius:13px;height:40px;width:40px;color:#ad5037;font-weight:800}.tool-card h3{font-size:18px;letter-spacing:-.4px;margin:4px 0 0}.tool-card p{font-size:12px;line-height:1.7;color:var(--muted);margin:0;flex:1}.tool-card small{font-size:11px;font-weight:750;color:var(--accent)}.app-shell{background:#fffdfb;border:1px solid var(--edge);border-radius:25px;padding:27px;box-shadow:var(--shadow);min-height:330px}.app-title{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #f0e6df;padding-bottom:18px;margin-bottom:23px}.app-title h2{font-size:22px;letter-spacing:-.8px;margin:7px 0}.local-chip{color:#456857;background:#ecf7ed;border-color:#d9e9d9}.app-note{margin-top:26px;font-size:11px;line-height:1.7;color:#8a7480;border-top:1px solid #efe8e2;padding-top:15px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label,.field>span{font-weight:750;font-size:12px;color:#455063}.field input:not([type="checkbox"]):not([type="range"]),.field select,.field textarea{width:100%;border:1px solid #dfd8d3;border-radius:11px;background:#fff;padding:12px;font:inherit;font-size:13px;color:var(--ink);outline:none}.field input[type=file]{padding:11px 9px;font-size:11px}.field textarea{min-height:125px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#c57962;box-shadow:0 0 0 3px #edd2c76e}.field input[type=range]{accent-color:var(--accent);width:100%}.wide{grid-column:1/-1}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:19px;align-items:center}.btn{appearance:none;background:#bb5439;border:1px solid #bb5439;color:white;font:inherit;font-weight:750;font-size:12px;padding:12px 17px;border-radius:11px;cursor:pointer;transition:filter .15s}.btn:hover{filter:brightness(.95)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:#fff;color:#755344;border:1px solid #e7cec3}.muted{color:var(--muted);font-size:12px}.result{margin-top:18px;min-height:40px}.result p{font-size:12px;line-height:1.7;color:#5f6c7a}.result pre{max-height:340px;overflow:auto;border:1px solid #e8ddd7;border-radius:11px;padding:14px;background:#fdf6f1;color:#3e4858;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.preview{margin-top:17px;display:flex;align-items:center;justify-content:center;min-height:120px;background:linear-gradient(135deg,#fcf8f3,#f5eee7);border:1px dashed #e4cfc3;border-radius:16px;padding:15px;overflow:hidden}.preview img,.preview canvas{max-width:100%;max-height:470px;object-fit:contain}.preview canvas{cursor:crosshair}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.info-grid>div{border:1px solid #e9dfd7;border-radius:12px;padding:13px;background:#fff}.info-grid small{font-size:10px;color:#8e7781;display:block}.info-grid strong{display:block;margin-top:6px;font-size:13px;overflow-wrap:anywhere}.color-square{display:inline-block;width:54px;height:54px;border-radius:12px;border:1px solid #dfd6d0;vertical-align:middle}.diff{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.diff>pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font-size:11px;padding:11px;border:1px solid #e6ddd6;border-radius:12px}.diff .removed{background:#fff0ec;color:#a53c35}.diff .added{background:#ebf9ed;color:#32663e}.pdf-page-row{display:flex;gap:10px;align-items:center;border:1px solid #eadcd0;border-radius:11px;padding:9px;margin:8px 0;flex-wrap:wrap}.pdf-page-row span{flex:1;font-size:12px}.pdf-page-row .btn{padding:8px}.compare-frame{position:relative;display:inline-block;max-width:100%;line-height:0;overflow:hidden}.compare-frame img{display:block;max-width:100%;max-height:430px}.compare-top{position:absolute;inset:0;overflow:hidden}.compare-top img{height:100%;width:100%;max-width:none;max-height:none;object-fit:fill}.box-message{background:#f8f0e9;border:1px solid #ebd9cf;border-radius:13px;padding:13px 15px;font-size:12px;line-height:1.7;color:#73594a;margin:15px 0}.status{font-size:12px;line-height:1.6;color:#3b7059}.error{color:#ac473a}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px}.short-help{font-size:11px;color:#788291;line-height:1.7}.checkrow{display:flex;gap:6px;align-items:center}.checkrow label{font-size:12px}.bigoutput{width:100%;min-height:100px;resize:vertical;border:1px solid #e4d6cc;border-radius:10px;font:12px monospace;padding:12px}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatches button{width:30px;height:30px;border:2px solid #fff;border-radius:8px;box-shadow:0 0 0 1px #dccfc5;cursor:pointer}#toast{position:fixed;right:20px;bottom:22px;max-width:390px;border-radius:12px;background:#293b37;color:#fff;padding:12px 16px;font-size:12px;box-shadow:0 8px 24px #0002;opacity:0;pointer-events:none;transition:opacity .2s;z-index:99}#toast.show{opacity:1}footer{margin-top:65px}@media(max-width:900px){.tool-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1.6fr 1fr}.hero-orb{width:160px;height:160px;font-size:55px}}@media(max-width:640px){.main{width:calc(100% - 28px)}.hero{grid-template-columns:1fr;padding:38px 0 26px}.hero-decoration{display:none}.hero h1{letter-spacing:-1.9px}.tool-grid,.field-grid,.field-grid.three,.diff{grid-template-columns:1fr}.app-shell{padding:18px}.app-title{align-items:flex-start}.local-chip{font-size:9px}.info-grid{grid-template-columns:1fr 1fr}}

.back-link{display:inline-block;color:#b2543b;font-size:12px;font-weight:750;margin-bottom:15px;text-decoration:none}.back-link:hover{text-decoration:underline}

/* Grouped family design: official Zrain logo rather than the decorative ZR lettering. */
.hero-logo-frame{width:min(260px,100%);aspect-ratio:1.15;display:grid;place-items:center;
  background:linear-gradient(145deg,#fceae0,#eacdbd);border:1px solid #ebd0bf;
  border-radius:38px;box-shadow:18px 17px 0 #ead4c8,0 20px 50px #ae66521a;transform:rotate(-7deg)}
.hero-logo-frame img{width:min(168px,72%);height:auto;object-fit:contain;filter:drop-shadow(0 8px 11px #00000014)}
.hero-decoration{min-height:230px;display:grid;place-items:center;position:relative}
.hero-orb{display:none}
body[data-view="workspace"] .hero,body[data-view="group"] .hero{padding-top:62px;padding-bottom:46px}
body[data-view="tool"] .hero{padding-top:32px;padding-bottom:30px}
body[data-view="tool"] .hero h1{font-size:clamp(32px,4.2vw,54px)}
body[data-view="tool"] .hero-decoration{min-height:150px}
body[data-view="tool"] .hero-logo-frame{width:160px;border-radius:30px}
body[data-view="tool"] .hero-logo-frame img{width:103px}
body[data-view="tool"] .mini-chip{bottom:0;right:10%}
.group-grid{margin-top:24px}
.group-card{min-height:265px;gap:12px}
.group-card h3{font-size:21px}
.group-card .mark{font-size:21px;width:52px;height:52px}
.tool-count{font-weight:750;font-size:12px;color:#466659;background:#eaf4e9;display:inline-flex;
  border:1px solid #d9eadc;border-radius:40px;padding:7px 12px;align-self:flex-start}
.section-nav{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 29px}
.section-nav a{border:1px solid #e8d5c7;background:#fffdfb;border-radius:100px;text-decoration:none;
  padding:10px 15px;font-size:12px;color:#8a4d3b;font-weight:750}
.section-nav a:hover{border-color:#b95a3e;background:#fff4ec}
.category-section{scroll-margin-top:35px;margin:26px 0 46px}
.category-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;
  border-top:1px solid #eadcd1;padding-top:23px;margin-bottom:17px}
.category-section-heading h3{font-size:25px;letter-spacing:-.9px;margin:0 0 7px}
.category-section-heading p{font-size:13px;color:var(--muted);margin:0;line-height:1.65}
.section-count{font-size:11px;color:#8c6457;border:1px solid #e9d8ca;background:#fff;border-radius:999px;padding:7px 11px;white-space:nowrap}
.tool-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:24px}
.tool-toolbar .back-link{margin:0}
.tool-switch{display:flex;align-items:center;gap:8px}
.tool-switch label{font-weight:700;font-size:12px;color:var(--muted);white-space:nowrap}
.tool-switch select{max-width:240px;background:#fff;padding:9px 12px;border:1px solid var(--edge);border-radius:9px;color:var(--ink);font:inherit;font-size:12px}
@media(max-width:640px){
  .hero{padding-top:30px!important;padding-bottom:24px!important}
  .hero-decoration{display:none!important}
  .tool-toolbar{align-items:stretch;flex-direction:column}
  .tool-switch{justify-content:space-between}
  .tool-switch select{min-width:0;flex:1}
  .category-section-heading{align-items:flex-start}
  .section-count{display:none}
  .group-card{min-height:210px}
}

/* Zrain Tools v1.2 — reusable form controls across all 28 tools. */
.file-control{display:flex;align-items:center;gap:13px;min-height:60px;padding:9px 10px;border:1px dashed #d9ad9c;background:linear-gradient(135deg,#fffdfb,#fcf3ee);border-radius:15px;flex-wrap:wrap}
.file-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden;clip-path:inset(50%);padding:0!important;border:0!important}
.file-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:10px 17px!important;border:1px solid #bb5439!important;border-radius:11px;background:#bb5439;color:#fff!important;font:inherit!important;font-size:12px!important;font-weight:750!important;cursor:pointer;white-space:nowrap;transition:filter .15s,transform .15s}
.file-button:hover{filter:brightness(.94);transform:translateY(-1px)}.file-native:focus-visible+.file-button,.file-button:focus-visible{outline:3px solid #eab09b;outline-offset:3px}
.file-selection{color:#697384;font-size:12px;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-control{position:relative;min-width:0}.select-control:after{content:'';width:9px;height:9px;border-right:2px solid #a3503c;border-bottom:2px solid #a3503c;transform:rotate(45deg);position:absolute;right:18px;top:calc(50% - 7px);pointer-events:none}
.field .select-control select,.tool-switch select{appearance:none;-webkit-appearance:none;width:100%;border-radius:12px;background:linear-gradient(180deg,#fff,#fffaf7);border:1px solid #dec6b9;padding:12px 44px 12px 14px;color:#333b4b;min-height:47px;cursor:pointer;font-size:13px;font-weight:650;box-shadow:0 2px 1px #a0563820}
.select-control select:hover,.tool-switch select:hover{border-color:#bd745b;background:#fff5ef}
.select-control select:focus-visible,.tool-switch select:focus-visible{outline:3px solid #edd2c7;outline-offset:2px}
.tool-switch{gap:10px}.tool-switch label{color:#8c5545;font-size:12px}.tool-switch .select-control{min-width:220px}.tool-switch select{min-height:44px;border-radius:12px;max-width:100%;font-weight:760}
.color-control{display:flex;align-items:center;gap:11px;border:1px solid #e1cabd;border-radius:15px;background:linear-gradient(125deg,#fff,#fffaf7);padding:9px 13px;min-height:65px}
.field .color-control input[type=color]{display:block;flex:none;width:52px!important;height:45px!important;border:1px solid #d6c1b5!important;border-radius:12px!important;padding:3px!important;background:white!important;cursor:pointer;box-shadow:0 2px 6px #4b2e2112}
.field .color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.field .color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:7px}
.field .color-control .hex-input{flex:1;min-width:95px;max-width:148px;font-weight:750;font-size:13px;letter-spacing:.8px;min-height:39px;padding:10px 12px;border:1px solid #eddcd4;background:#fff}
.color-control-hint{color:#927368;font-size:11px;white-space:nowrap}
.tool-guide{border:1px solid #e6d5c8;background:#fcf5ef;border-radius:14px;padding:13px 16px;margin-bottom:21px;color:#634e43}.tool-guide summary{font-size:13px;cursor:pointer;font-weight:800;color:#a75039}.tool-guide p{font-size:12px;line-height:1.8;margin:12px 0 2px;color:#615c60}
.inspector-title{font-size:18px;letter-spacing:-.3px;margin:25px 0 12px}.info-grid strong{font-weight:720;overflow-wrap:anywhere;word-break:break-word}.info-grid>div{background:#fffbf8;border-color:#ead9d0}.info-grid small{color:#855944;font-weight:700;text-transform:none;font-size:11px}
.enhance-compare{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.enhance-compare figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.enhance-compare canvas{max-width:100%;max-height:370px;object-fit:contain;cursor:default}.enhance-compare figcaption{font-size:12px;color:#6b6d72;text-align:center;font-weight:650}
.focus-display{padding:26px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.focus-clock{font-size:clamp(60px,11vw,104px);letter-spacing:-5px;font-weight:900;color:#bd5338;margin:0;font-variant-numeric:tabular-nums}.progress-track{height:10px;width:min(380px,90%);border-radius:20px;background:#f5e2d7;overflow:hidden;margin:12px 0}.progress-fill{height:100%;width:0%;border-radius:20px;background:linear-gradient(90deg,#e0a66d,#bd5338);transition:width .4s}.focus-display .muted{margin:5px}
.field[hidden]{display:none!important}
@media(max-width:680px){.color-control{gap:8px}.color-control-hint{display:none}.enhance-compare{grid-template-columns:1fr}.tool-switch{width:100%;justify-content:space-between}.tool-switch .select-control{flex:1;min-width:0}.file-selection{width:100%;flex:auto}.file-control{align-items:stretch}.tool-switch label{min-width:max-content}}

/* Zrain Tools v1.3: task-first discovery, based on usability research, not copied designs. */
.discovery-root{margin:0 0 45px}.discovery-find{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:24px;padding:28px 30px;background:linear-gradient(110deg,#fffaf7,#f8ece5);border:1px solid #ead9ce;border-radius:24px;margin:12px 0 29px}.discovery-find h2{font-size:clamp(25px,3.4vw,39px);line-height:1.13;letter-spacing:-1.2px;margin:6px 0 9px}.discovery-find p{font-size:13px;color:#697384;line-height:1.6;margin:0}.discovery-search-field{min-width:0}.discovery-search-label{font-size:12px;font-weight:800;color:#775548}.discovery-input-row{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;border:1px solid #d9bcae;padding:0 13px;margin:9px 0 7px;box-shadow:0 7px 20px #b26d4e0c}.discovery-input-row>span{font-size:24px;color:#af543b}.discovery-input-row input{width:100%;min-width:0;border:0!important;background:transparent!important;min-height:54px;font-family:inherit;font-size:14px;color:#253047;outline:none!important;box-shadow:none!important}.discovery-input-row:focus-within{outline:3px solid #efcec0;outline-offset:2px}.discovery-input-row kbd{font-family:inherit;font-size:11px;font-weight:700;color:#9c6d5c;white-space:nowrap;border:1px solid #eadace;padding:6px 7px;border-radius:7px;background:#fff9f5}.discovery-count{font-size:11px!important;color:#7b716c!important}.discovery-results{margin:25px 0 36px}.discovery-results h3{font-size:20px;letter-spacing:-.5px;margin:0 0 14px}.discovery-results h3 small{font-size:11px;font-weight:600;color:#8c7c76;letter-spacing:0;margin-left:10px}.discovery-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.discovery-tile{display:flex;flex-direction:column;min-width:0;border:1px solid #ecd8cc;border-radius:15px;background:#fffdfb;overflow:hidden;box-shadow:0 8px 25px #b47a4a0a;transition:transform .15s,box-shadow .15s}.discovery-tile:hover{transform:translateY(-2px);box-shadow:0 10px 28px #b47a4a15}.discovery-item{text-decoration:none!important;display:flex;flex:1;flex-direction:column;gap:8px;padding:17px;color:#172033!important}.discovery-item strong{font-size:14px}.discovery-item span{font-size:12px;line-height:1.65;color:#657181}.discovery-item small{color:#a5543e;font-size:11px;font-weight:720}.discovery-star{align-self:stretch;text-align:left;background:#fff8f3;border:none;border-top:1px solid #f2e3da;color:#815b4c;font-family:inherit;font-size:12px;font-weight:700;padding:12px 16px;cursor:pointer}.discovery-star:hover{background:#f8e8de}.discovery-star.is-saved{color:#ab5137;background:#ffefe6}.discovery-star:focus-visible,.discovery-open:focus-visible,.discovery-dismiss:focus-visible{outline:3px solid #dba58f;outline-offset:-3px}.discovery-empty{font-size:13px;color:#697384;grid-column:1/-1}.discovery-disclosure{margin:26px 0 15px;border:1px solid #ead8cb;border-radius:16px;background:#fffaf6;padding:16px 20px;color:#776258}.discovery-disclosure summary{font-weight:750;font-size:13px;cursor:pointer;color:#a8523b}.discovery-disclosure p{font-size:12px;line-height:1.8;margin:12px 0 2px}.discovery-toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.discovery-toolbar-actions button{font-family:inherit;font-size:12px;font-weight:700;white-space:nowrap;border:1px solid #dcb8aa;background:#fff8f3;color:#a04e37;border-radius:11px;padding:11px 13px;cursor:pointer}.discovery-toolbar-actions .discovery-star{border:1px solid #dcb8aa;padding:11px 13px}.discovery-dialog{width:min(640px,calc(100% - 26px));max-height:min(720px,82vh);border:1px solid #dbbda8;background:#fffaf7;border-radius:19px;box-shadow:0 25px 95px #28150940;padding:22px;color:#182337}.discovery-dialog::backdrop{background:#14202dcc;backdrop-filter:blur(5px)}.discovery-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.discovery-dialog-head label{font-weight:850;font-size:18px}.discovery-dismiss{border:1px solid #e5cfc2;background:white;padding:9px 12px;border-radius:8px;cursor:pointer}.discovery-dialog input{width:100%;font-family:inherit;font-size:14px;border:1px solid #dcb8a9;border-radius:11px;padding:13px;background:white;margin:6px 0 18px}.discovery-dialog .discovery-command-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:48vh;overflow:auto}.discovery-dialog .discovery-item{padding:12px}.discovery-dialog .discovery-star{padding:8px 12px}.discovery-dialog .discovery-count{margin:14px 0 0}@media(max-width:900px){.discovery-find{grid-template-columns:1fr}.discovery-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.discovery-find{padding:20px 17px;border-radius:18px}.discovery-items,.discovery-dialog .discovery-command-results{grid-template-columns:1fr}.discovery-input-row kbd{display:none}.discovery-toolbar-actions{width:100%}.discovery-toolbar-actions button{flex:1;white-space:normal}.discovery-results h3 small{display:block;margin:6px 0 0}}

/* Zrain Tools v1.4: accessible local previews, upload interactions and explanations. */
.quick-guide{margin:0 0 22px;padding:17px 19px;border-radius:16px;background:linear-gradient(120deg,#ecf6ee,#faf9f4);border:1px solid #d9e8da;color:#284c3b}
.quick-guide strong{display:block;margin-bottom:6px;font-size:13px}.quick-guide p{font-size:12px;line-height:1.75;margin:0;color:#456454}
.field-help{font-size:11.5px!important;font-weight:450!important;line-height:1.6;color:#786c67!important;margin:1px 0 7px;max-width:70ch}
.file-control{cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.file-control:hover,.file-control:focus-visible{border-color:#be795f;background:#fff5ee}
.file-control.is-dragging{outline:3px solid #edc8b8;outline-offset:2px;border-color:#bd5338;background:#fbe6d8;box-shadow:0 0 0 5px #ffe9de}
.drop-hint{font-size:11px;color:#937569;white-space:normal}
.upload-preview[hidden]{display:none!important}
.upload-preview{display:block;margin-top:9px;padding:12px;border-radius:13px;background:#fffdfb;border:1px solid #e8dacf;min-width:0}
.upload-preview-title{display:block;color:#476455;font-size:11px;margin:0 0 10px;letter-spacing:.01em}
.upload-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr));gap:12px}
.upload-preview-item{margin:0;display:flex;flex-direction:column;gap:7px;min-width:0;justify-content:flex-start}
.upload-preview-item img{max-width:100%;width:100%;height:160px;object-fit:contain;border-radius:10px;background:repeating-conic-gradient(#f1eee9 0% 25%,#fff 0% 50%) 50%/18px 18px;border:1px solid #e9dcd4}
.upload-preview-item figcaption{font-size:11px;color:#536372;overflow-wrap:anywhere;line-height:1.6}
.upload-preview-item figcaption span{display:block;color:#58745e}
.upload-pdf{width:100%;height:280px;border:1px solid #e3d9d2;border-radius:9px;background:white}
.upload-document-icon{text-align:center;display:grid;place-items:center;height:92px;background:#f9eee7;border:1px dashed #e4c5b3;border-radius:10px;font-size:35px}
.upload-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;margin:0;background:#faf4ef;padding:10px;border-radius:10px;border:1px solid #eee0d6;color:#425269;font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}
.difference-explainer{margin-top:18px;padding:17px 20px;background:#fff9f5;border:1px solid #edd7ca;border-radius:16px}
.difference-explainer>strong{font-size:15px;color:#663e30}
.difference-explainer>p{font-size:12px;line-height:1.75;color:#6a554b;margin:7px 0}
.difference-swatches{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 8px}
.difference-swatches span{display:inline-flex;gap:8px;align-items:center;font-weight:700;font-size:12px;color:#485263}
.diff-swatch{width:23px;height:23px;display:inline-block;border:1px solid #d9ccc4;border-radius:6px;flex:none}
.diff-swatch.changed{background:#ed503c}.diff-swatch.stable{background:#ebebeb}
[data-tool="image-compare"] #preview{flex-direction:column;gap:12px}
[data-tool="image-compare"] #preview p{margin:0;max-width:64ch;text-align:center}
@media(max-width:680px){.upload-preview-grid{grid-template-columns:1fr}.upload-preview-item img{height:190px}.difference-explainer{padding:14px}.file-control{gap:8px}.drop-hint{flex-basis:100%}}

/* Zrain Tools v1.5 — clear first-use experience for independent public products. */
.workflow-guide{border:1px solid #e5d6c9;border-radius:19px;padding:22px 24px 19px;margin:0 0 27px;background:linear-gradient(115deg,#fffdf9,#f9f1ea);box-shadow:0 8px 28px #754c2f08}
.workflow-guide h3{font-size:19px;font-weight:820;letter-spacing:-.5px;color:#243348;margin:0 0 9px}
.workflow-why{font-size:13px;line-height:1.8;color:#4d6172;margin:0 0 16px}
.workflow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;list-style:none;padding:0;counter-reset:workflow;margin:0 0 17px}
.workflow-steps li{counter-increment:workflow;background:#fff;border:1px solid #ebddd3;border-radius:13px;padding:13px 14px 13px 42px;position:relative;font-size:12px;line-height:1.75;color:#445568}
.workflow-steps li:before{content:counter(workflow);position:absolute;left:12px;top:12px;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;background:#f1d9cb;color:#9e4b32;font-size:11px;font-weight:900}
.workflow-output,.workflow-limit{margin:8px 0 0;padding:10px 13px;border-radius:10px;font-size:12px;line-height:1.75;color:#475e56}
.workflow-output{background:#edf6ee;border:1px solid #d6e7d9}.workflow-output strong{color:#35644a}
.workflow-limit{background:#fff7ed;border:1px solid #f0ddcc;color:#75563c}.workflow-limit strong{color:#945538}
.mode-explainer{font-size:12px!important;line-height:1.7!important;padding:10px 13px;background:#eff6f0;color:#345c4b!important;border:1px solid #d9e9d9;border-radius:10px;margin:2px 0 4px}
.upload-next-step{margin:11px 0 0;font-size:11px;line-height:1.75;color:#416e55;background:#eef6ec;border:1px solid #deebd9;border-radius:9px;padding:9px 12px}
body[data-view="tool"] .hero{min-height:180px;grid-template-columns:minmax(0,1fr) auto;gap:15px;padding:25px 0 22px}
body[data-view="tool"] .hero h1{font-size:clamp(29px,3.4vw,43px);letter-spacing:-1.7px;margin:9px 0 7px}
body[data-view="tool"] .hero .lead{font-size:13px;line-height:1.6;margin:0}
body[data-view="tool"] .hero .pills{margin-top:11px}
body[data-view="tool"] .hero-decoration{height:140px;min-height:120px;width:150px}
body[data-view="tool"] .hero-logo-frame{width:105px;border-radius:23px;box-shadow:8px 9px 0 #ead4c8}
body[data-view="tool"] .hero-logo-frame img{width:66px}
body[data-view="tool"] .mini-chip{display:none}
body[data-view="tool"] .app-shell{scroll-margin-top:22px}
.file-control:focus-within{outline:3px solid #eab09b;outline-offset:2px}
.field .field-help{font-size:12px!important;color:#5f6c76!important;max-width:75ch}
@media(max-width:860px){.workflow-steps{grid-template-columns:1fr}.workflow-guide{padding:17px}.workflow-steps li{padding:12px 13px 12px 40px}}
@media(max-width:640px){body[data-view="tool"] .hero{min-height:unset;display:block;padding:22px 0 18px!important}body[data-view="tool"] .hero h1{font-size:32px}.workflow-guide h3{font-size:17px}.workflow-steps li{font-size:12px}}
@media(prefers-reduced-motion:reduce){.btn,.tool-card,.discovery-tile,.progress-fill{transition:none!important}}
