/* HOSTIMG Compact — custom CSS, no frameworks or external assets. */
:root{color-scheme:light;--bg:#f6f8f7;--surface:#fff;--text:#223832;--muted:#6f7e78;--line:#e3e9e6;--accent:#168267;--accent-hover:#106a53;--tint:#edf6f1;--aside:#eff5f1;--soft:#f9fbfa;--white:#fff;--error:#ac3434;--error-bg:#fff1f0;--shadow:0 5px 22px #203e2b04}
:root[data-theme=dark]{color-scheme:dark;--bg:#101916;--surface:#18241f;--text:#e5eee9;--muted:#a0b2a8;--line:#2c3b33;--accent:#79d6b6;--accent-hover:#9ae6cc;--tint:#203c30;--aside:#1b2d24;--soft:#17221d;--white:#12271e;--error:#ffadab;--error-bg:#3b2525;--shadow:none}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{color:inherit}button:not(:disabled),summary{cursor:pointer}a{color:inherit;text-decoration:none}p,h1,h2,h3{margin:0}button{border:0}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,label:focus-visible{outline:3px solid var(--accent);outline-offset:4px}img{max-width:100%;display:block}svg{flex-shrink:0}button,a{touch-action:manipulation}[hidden]{display:none!important}
.shell{width:min(1040px,calc(100% - 48px));margin-inline:auto}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:12px;top:-80px;z-index:20;background:var(--surface);padding:12px;border:1px solid var(--accent);border-radius:8px}.skip-link:focus{top:12px}
.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;height:77px;gap:40px}.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}.brand-mark{display:grid;place-items:center;background:var(--accent);color:var(--white);width:35px;height:35px;border-radius:11px;transform:rotate(-4deg)}.brand-mark .icon{width:24px;height:24px}.wordmark{font-size:23px;font-weight:750;line-height:1;letter-spacing:-.9px}.wordmark>span,.footer-brand>span{color:var(--accent)}.wordmark small{font-weight:400;font-size:10px;display:block;letter-spacing:.1px;color:var(--muted);margin-top:6px}
.main-nav{display:flex;align-items:center;gap:25px;height:100%;margin-left:12px}.main-nav a{font-size:12px;color:var(--muted);position:relative;height:100%;display:flex;align-items:center}.main-nav a:hover,.main-nav .active{color:var(--accent)}.main-nav .active{font-weight:650}.main-nav .active::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.header-actions{display:flex;gap:12px;align-items:center;margin-left:auto}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:9px 14px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.35;transition:background .15s,border-color .15s;white-space:nowrap;cursor:pointer}.button .icon{width:16px;height:16px}.button-primary{background:var(--accent);color:var(--white);border:1px solid var(--accent)}.button-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.button-quiet{background:var(--surface);border:1px solid var(--line)}.button-quiet:hover{background:var(--tint);border-color:var(--accent)}.icon-button{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:transparent}.icon-button:hover{background:var(--tint);color:var(--accent)}.count{font-size:10px;background:var(--tint);color:var(--accent);border-radius:4px;min-width:18px;padding:1px 4px}.sun-icon{display:none}[data-theme=dark] .sun-icon{display:block}[data-theme=dark] .moon-icon{display:none}
.intro{display:flex;align-items:center;justify-content:space-between;padding:36px 0 27px;gap:20px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:650;display:flex;align-items:center;gap:7px;color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}h1{font-size:32px;font-weight:650;line-height:1.2;letter-spacing:-1px;margin-top:9px}h1>span{color:var(--accent)}.intro p{color:var(--muted);font-size:13px;margin-top:8px}.intro-label{display:flex;gap:10px;align-items:center;font-size:11px;line-height:1.6;color:var(--muted);margin-right:5px}.intro-label .icon{color:var(--accent);width:23px;height:23px}.intro-label strong{font-weight:500;color:var(--text)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:18px;align-items:stretch;scroll-margin-top:24px}.upload-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 22px 19px;box-shadow:var(--shadow);min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;height:61px;gap:8px}.upload-modes{display:flex;gap:7px}.mode{display:flex;align-items:center;gap:7px;font-size:11px;padding:7px 10px;background:transparent;border-radius:6px;color:var(--muted);font-weight:500}.mode .icon{width:15px;height:15px}.mode.active{background:var(--tint);color:var(--accent);font-weight:600}.mode:not(.active):hover{background:var(--soft)}.limit-label{color:var(--muted);font-size:10px;white-space:nowrap}
.dropzone{border:1.5px dashed #b6d2c4;border-radius:10px;background:var(--soft);position:relative;transition:background .15s,border-color .15s;min-height:254px;display:flex;align-items:center;justify-content:center}.dropzone.dragging{background:var(--tint);border-color:var(--accent)}.dropzone:focus-within{outline:2px solid var(--accent);outline-offset:3px}[data-theme=dark] .dropzone{border-color:#3e6652}.drop-content{padding:19px 12px 16px;text-align:center;width:100%}.upload-art{height:64px;width:90px;position:relative;margin:0 auto 15px}.photo-back{display:block;width:64px;height:49px;border:1px solid #d0e3d8;background:#e4f0e9;position:absolute;left:8px;top:3px;transform:rotate(-15deg);border-radius:8px}.photo-front{position:absolute;width:67px;height:51px;border:1px solid #9ec8b3;border-radius:8px;background:var(--surface);left:18px;top:10px;transform:rotate(7deg);display:grid;place-items:center;color:#7da98f;box-shadow:0 3px 6px #162d2010}.photo-front .icon{width:51px;height:42px;stroke-width:2}.upload-bubble{position:absolute;right:-3px;bottom:-2px;display:grid;place-items:center;width:27px;height:27px;border:3px solid var(--soft);border-radius:50%;background:var(--accent);color:var(--white)}.upload-bubble .icon{width:17px;height:17px;stroke-width:2.4}[data-theme=dark] .photo-back{background:#254635;border-color:#3e6652}[data-theme=dark] .photo-front{border-color:#5d9275}.drop-content h2{font-size:16px;font-weight:600;letter-spacing:-.2px}.drop-content>p{font-size:12px;color:var(--muted);margin-top:4px}.choose-button{margin-top:15px;min-height:37px;padding:8px 13px;font-size:11px}.drop-content .paste-hint{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;margin-top:12px}kbd{font-family:inherit;font-size:9px;background:var(--surface);border:1px solid var(--line);border-bottom-width:2px;min-width:17px;height:18px;border-radius:4px;padding:0 4px;line-height:15px;color:var(--text)}
.file-types{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;letter-spacing:.25px;margin:10px 0 17px}.file-types>span{display:flex;align-items:center;gap:5px}.file-types .icon{width:12px;height:12px}.upload-bottom{border-top:1px solid var(--line);padding-top:15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.upload-bottom>p{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:9px;line-height:1.7}.upload-bottom>p>.icon{width:19px;height:19px;color:#8ba698}.text-button{padding:0;background:none;font-size:inherit;color:inherit;text-align:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}.text-button:hover{color:var(--accent)}.submit-button{min-height:40px;font-size:11px;padding:10px 14px;gap:10px}.submit-button>.icon{width:16px;height:16px}
.how-card{background:var(--aside);border:1px solid var(--line);border-radius:14px;padding:24px 22px 20px;display:flex;flex-direction:column}.aside-kicker{font-size:9px;letter-spacing:1.5px;color:var(--accent);font-weight:600}.how-card h2{font-size:21px;font-weight:550;line-height:1.3;letter-spacing:-.45px;margin-top:10px}.steps{margin:23px 0 24px;padding:0;list-style:none;display:flex;flex-direction:column;gap:18px}.steps li{display:flex;gap:12px;position:relative}.steps li:not(:last-child)::after{content:"";position:absolute;top:29px;left:12px;bottom:-16px;border-left:1px solid #cfded4}.step-number{flex-shrink:0;display:grid;place-items:center;width:26px;height:26px;border:1px solid #cbded1;border-radius:50%;font-size:9px;color:var(--accent);font-weight:600}.steps strong{font-size:12px;font-weight:650;display:block;margin-top:2px}.steps p{font-size:11px;color:var(--muted);line-height:1.6;margin-top:3px}.aside-tip{border-top:1px solid #d7e4da;padding-top:15px;display:flex;gap:9px;align-items:center;margin-top:auto}.aside-tip>.icon{width:20px;height:20px;color:var(--accent)}.aside-tip p{font-size:10px;line-height:1.7;color:var(--muted)}.aside-tip strong{font-weight:500;color:var(--text)}[data-theme=dark] .step-number,[data-theme=dark] .steps li::after,[data-theme=dark] .aside-tip{border-color:#3b5445}
.features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:25px 0 26px;border-bottom:1px solid var(--line);gap:27px}.feature{display:flex;align-items:flex-start;gap:11px}.feature-icon{display:grid;place-items:center;width:33px;height:33px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--accent);flex-shrink:0}.feature-icon .icon{width:17px;height:17px}.feature h2{font-size:12px;font-weight:650;margin-bottom:4px}.feature p{font-size:11px;color:var(--muted);line-height:1.7;max-width:230px}
.info-section{display:grid;grid-template-columns:1fr 1.4fr;gap:64px;padding:30px 0 32px;align-items:start}.about-copy .eyebrow{font-size:8px;letter-spacing:1.2px}.about-copy h2{font-size:20px;font-weight:550;line-height:1.35;letter-spacing:-.45px;margin-top:9px}.about-copy p{font-size:11px;color:var(--muted);line-height:1.85;margin-top:11px;max-width:330px}.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-size:10px;font-weight:600;margin-top:15px}.back-link .icon{width:13px;height:13px}.faq>h2{font-size:14px;font-weight:600;margin-bottom:9px}.faq>h2>span{font-size:10px;font-weight:400;color:var(--muted);margin-left:7px}.faq details{border-bottom:1px solid var(--line)}.faq summary{display:flex;align-items:center;justify-content:space-between;gap:15px;list-style:none;font-size:12px;font-weight:500;padding:13px 0;min-height:43px}.faq summary::-webkit-details-marker{display:none}.faq summary .icon{width:13px;height:13px;color:var(--muted);transition:transform .15s}.faq details[open] summary{color:var(--accent)}.faq details[open] summary .icon{transform:rotate(45deg)}.faq details>p{font-size:12px;color:var(--muted);line-height:1.8;padding:0 24px 13px 0}
.site-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding:18px 0 24px;color:var(--muted);font-size:9px}.site-footer>div{display:flex;align-items:center;gap:19px}.footer-brand{font-weight:750;font-size:16px;letter-spacing:-.6px;color:var(--text)}.footer-top{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:6px}.footer-top .icon{width:13px;height:13px}
.selected-file{display:flex;flex-direction:column;align-items:center;padding:16px;width:100%;min-width:0}.selected-file>img{max-height:126px;max-width:85%;object-fit:contain;border-radius:6px}.selected-info{max-width:100%;text-align:center;margin-top:8px}.selected-info>strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.selected-info>span{font-size:10px;color:var(--muted)}.selected-file>.button{margin-top:9px;min-height:30px;font-size:10px;padding:5px 9px}.remove-file{position:absolute;top:8px;right:8px;background:var(--surface);border:1px solid var(--line);width:27px;height:27px}.remove-file .icon{width:14px;height:14px}.upload-error{background:var(--error-bg);color:var(--error);font-size:11px;border-radius:7px;padding:10px 12px;margin-bottom:12px;overflow-wrap:anywhere}.progress{margin-bottom:15px}.progress-label{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-bottom:5px}progress{width:100%;height:5px;border:0;display:block;border-radius:8px;overflow:hidden;background:var(--line);accent-color:var(--accent)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.noscript-note{font-size:11px;padding-top:12px}
.result-panel{padding-top:5px}.result-panel:focus{outline:0}.result-title{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:15px;font-size:11px}.result-title>span{display:flex;align-items:center;gap:8px;color:var(--accent)}.result-content{display:flex;align-items:center;gap:18px;margin:20px 0}.result-content>img{width:145px;height:115px;object-fit:contain;background:var(--soft);border:1px solid var(--line);border-radius:9px}.result-content p{font-size:11px;color:var(--muted);white-space:pre-line}.result-content a{font-size:11px;display:inline-flex;align-items:center;gap:6px;color:var(--accent);margin-top:9px}.result-content a>.icon{width:12px;height:12px}.link-types{display:flex;gap:15px;border-bottom:1px solid var(--line);margin-bottom:12px}.link-type{background:none;font-size:11px;padding:8px 0;color:var(--muted);border-bottom:2px solid transparent}.link-type.active{color:var(--accent);border-color:var(--accent)}.copy-row{display:flex;gap:8px}.copy-row input{min-width:0;flex:1;width:100%;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--text);padding:9px 10px;font-size:11px}.copy-row .button{font-size:11px}.result-note{font-size:10px;color:var(--muted);margin-top:11px}
.modal{width:min(510px,calc(100% - 30px));max-height:85dvh;overflow-y:auto;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--text);padding:24px;box-shadow:0 20px 100px #0002}.modal::backdrop{background:#10271d65;backdrop-filter:blur(4px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-heading h2{font-size:21px;font-weight:600;letter-spacing:-.5px}.modal-heading .eyebrow{margin-bottom:5px}.modal-description{color:var(--muted);font-size:12px;margin-top:12px}.modal-footnote{font-size:10px;color:var(--muted);padding-top:15px;border-top:1px solid var(--line);margin-top:16px}.history-empty{padding:30px 15px;text-align:center;display:flex;align-items:center;gap:9px;flex-direction:column}.history-empty>.icon{width:32px;height:32px;color:var(--accent)}.history-empty>strong{font-size:13px}.history-empty>span{font-size:11px;color:var(--muted);max-width:260px}.history-list{display:grid;gap:10px;margin-top:17px}.history-item{display:flex;gap:12px;align-items:center;border:1px solid var(--line);padding:10px;border-radius:9px}.history-item>img{width:48px;height:48px;object-fit:cover;border-radius:5px;background:var(--soft)}.history-item>div{flex:1;min-width:0}.history-item a{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--accent)}.history-item small{font-size:10px;color:var(--muted)}.history-item button{font-size:10px;padding:6px 8px;min-height:32px}.rules-modal>p,.rules-modal li{font-size:12px;color:var(--muted);line-height:1.8}.rules-modal>p{margin-top:16px}.rules-modal ul{padding-left:18px;margin:13px 0 20px}.rules-modal li+li{margin-top:8px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;padding:12px 18px;background:var(--text);color:var(--surface);border-radius:9px;box-shadow:0 5px 20px #0002;font-size:12px;z-index:50;text-align:center}
@media(min-width:1400px){.intro{padding-top:41px}}
@media(max-width:900px){.header-inner{gap:22px}.main-nav{gap:18px;margin-left:0}.workspace{grid-template-columns:minmax(0,1fr) 235px;gap:14px}.upload-card{padding-inline:17px}.how-card{padding:23px 18px}.upload-bottom{align-items:stretch;flex-direction:column}.upload-bottom>p{justify-content:center}.upload-bottom>p br{display:none}.upload-bottom>p .text-button{margin-left:3px}.how-card h2{font-size:20px}.steps{gap:22px;margin-top:27px}.info-section{gap:35px}.intro-label{font-size:10px}.features{gap:20px}}
@media(max-width:720px){.shell{width:calc(100% - 32px);max-width:520px}.header-inner{height:auto;min-height:72px;flex-wrap:wrap;gap:0}.brand{padding:14px 0}.header-actions{gap:5px}.main-nav{order:3;width:100%;height:37px;justify-content:space-between;border-top:1px solid var(--line);gap:22px}.main-nav a{font-size:11px;padding:0 5px}.history-toggle{font-size:11px;gap:6px;padding:8px 10px;min-height:35px}.history-toggle .icon{width:15px;height:15px}.intro{padding:27px 0 22px}.intro-label{display:none}.intro h1{font-size:29px;letter-spacing:-1px}.intro p{font-size:12px;max-width:290px}.eyebrow{font-size:8px;letter-spacing:1.4px}.workspace{grid-template-columns:1fr;gap:13px}.upload-card{padding:0 16px 17px}.card-heading{height:58px}.mode{font-size:11px;padding:6px 8px}.dropzone{min-height:259px}.drop-content h2{font-size:15px}.drop-content>p{font-size:11px}.upload-bottom{flex-direction:column-reverse;gap:13px;padding-top:13px}.submit-button{min-height:43px;font-size:12px}.upload-bottom>p{font-size:9px}.file-types{font-size:8px;margin-bottom:14px}.how-card{padding:17px 18px}.aside-kicker{font-size:8px}.how-card h2{font-size:17px;margin-top:6px}.how-card h2 br{display:none}.steps{flex-direction:row;gap:13px;margin:17px 0 0}.steps li{flex:1;display:block;min-width:0}.steps li:not(:last-child)::after{top:13px;left:34px;width:calc(100% - 32px);border-left:0;border-top:1px solid #cfded4;height:0}.step-number{margin-bottom:8px}.steps strong{font-size:10px}.steps p{font-size:9px}.aside-tip{display:none}.features{grid-template-columns:1fr;gap:16px;padding:23px 0}.feature{align-items:center;gap:12px}.feature h2{font-size:12px;margin-bottom:1px}.feature p{font-size:11px;max-width:none}.feature-icon{width:34px;height:34px}.info-section{grid-template-columns:1fr;gap:27px;padding:26px 0}.about-copy h2{font-size:21px}.about-copy h2 br{display:none}.about-copy p{max-width:none;font-size:12px}.back-link{font-size:11px;margin-top:11px}.faq>h2{font-size:16px}.faq summary{font-size:12px;padding-block:14px}.faq details>p{font-size:12px}.site-footer{align-items:flex-start;gap:15px;padding-top:17px}.site-footer>div{gap:9px;flex-wrap:wrap}.site-footer>div:first-child{flex-direction:column;align-items:flex-start;gap:3px}.site-footer>div:last-child{justify-content:flex-end;gap:12px}.footer-brand{font-size:17px}.footer-top{display:none}.modal{padding:20px}.modal-heading h2{font-size:20px}.copy-row .button{padding:8px 11px}.copy-row .button>span{display:none}.copy-row .button .icon{width:18px;height:18px}.result-content>img{width:120px;height:100px}}
@media(max-width:360px){.shell{width:calc(100% - 24px)}.history-toggle .icon{display:none}.header-actions{gap:2px}.wordmark{font-size:21px}.brand-mark{width:31px;height:31px}.brand{gap:7px}.intro h1{font-size:26px}.upload-card{padding-inline:12px}.mode{font-size:10px;gap:5px}.limit-label{font-size:9px}.mode .icon{width:13px;height:13px}.drop-content h2{font-size:14px}.how-card{padding-inline:15px}.steps{gap:9px}.steps strong{font-size:9px}.site-footer{font-size:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
