:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142c28;background:#f2f5f4;font-synthesis:none;line-height:1.5}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,textarea{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #78bf8e;outline-offset:3px}
.boot{padding:3rem;color:#48625a}
.topbar{height:76px;border-bottom:1px solid #d5e0dc;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1300px)/2));gap:20px}
.page-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:18px;letter-spacing:-.02em;line-height:1.2;margin:0}
.top-right{display:flex;align-items:center;gap:22px;color:#51665e;font-size:14px;flex-shrink:0}
.top-right .email{overflow:hidden;text-overflow:ellipsis;max-width:230px}
.link-button{border:0;background:none;color:#315d4c;padding:5px 0;font-weight:600}
.shell{max-width:1300px;margin:0 auto;padding:52px 28px 90px}
.main{min-width:0;max-width:950px;margin:0 auto}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.04em;margin-bottom:10px;font-weight:700}
h2{font-size:1.35rem;letter-spacing:-.025em;margin-bottom:10px}
p{color:#536a61}
.button{border:1px solid transparent;background:#176d48;color:white;border-radius:9px;padding:12px 19px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px;white-space:nowrap;min-height:48px}
.button:hover{background:#105538}
.button:disabled{opacity:.55;cursor:wait}
.button.secondary{color:#254c3d;background:white;border-color:#cddbd4}
.button.secondary:hover{background:#eaf1ed}
.intro{background:#dcece3;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:12px;margin-bottom:34px}
.intro p{margin:4px 0 0;max-width:55ch}
.intro strong{font-size:17px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 12px}
.section-head h2{margin:0}
.muted{color:#63796f;font-size:14px}
.list{border-top:1px solid #cbd9d1}
.product-row{display:grid;grid-template-columns:1fr auto auto;gap:24px;align-items:center;padding:21px 2px;border-bottom:1px solid #d3ded8}
.product-row:hover .product-name{color:#176d48}
.product-name{font-weight:700;font-size:17px;overflow-wrap:anywhere}
.product-preview{font-size:14px;color:#63796f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:54ch;margin-top:3px}
.status{font-size:13px;font-weight:650;padding:5px 10px;border-radius:20px;background:#e3eee8;color:#285d43;white-space:nowrap}
.status.question{background:#f8ecd5;color:#79520f}
.status.pending{background:#e6eceb;color:#526960}
.status.processing{background:#e0eee6;color:#285d43}
.status.failed{background:#fff0ed;color:#9e332d}
.arrow{font-size:20px;color:#7a9185}
.empty{padding:65px 20px;text-align:center;border-bottom:1px solid #d3ded8}
.empty-symbol{display:grid;place-items:center;margin:0 auto 18px;width:55px;height:55px;border:1px solid #a9c5b5;border-radius:16px;color:#367253;font-size:25px}
.empty h2{margin-bottom:6px}
.empty p{max-width:42ch;margin:0 auto 22px}
.dashboard .main{max-width:none}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.catalog-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #d5e1d9;border-radius:12px;overflow:hidden;transition:border-color .18s ease,transform .18s ease}
.catalog-card:hover{border-color:#8bb89d;transform:translateY(-3px)}
.catalog-cover{height:142px;position:relative;overflow:hidden;background:#d8e9df;color:#255a3e}
.cover-1{background:#e5e9d8;color:#526434}
.cover-2{background:#dce9e9;color:#315d5c}
.cover-initial{position:absolute;left:20px;bottom:-27px;font-size:150px;line-height:1;font-weight:700;letter-spacing:-.04em;opacity:.22}
.cover-mark{position:absolute;right:19px;top:15px;font-size:21px}
.cover-line{position:absolute;right:20px;bottom:20px;width:42px;height:1px;background:currentColor;opacity:.5}
.catalog-card-body{display:flex;flex:1;flex-direction:column;padding:20px}
.catalog-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}
.catalog-card .status{white-space:normal}
.catalog-arrow{color:#617d6e;font-size:20px;line-height:1}
.catalog-card h2{margin:0 0 8px;font-size:19px;line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere}
.catalog-excerpt{margin:0;color:#5a7065;font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.catalog-meta{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:24px;color:#60786b;font-size:12px}
.catalog-add{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:290px;padding:25px;border:1px dashed #a9c5b4;border-radius:12px;color:#315c46;transition:background .18s ease,border-color .18s ease}
.catalog-add:hover{background:#e8f1eb;border-color:#629a76}
.catalog-add-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:18px;border:1px solid #a9c5b4;border-radius:50%;font-size:24px}
.catalog-add strong{font-size:17px}
.catalog-add>span:last-child{font-size:14px;color:#5d7869;margin-top:5px}
.back{display:inline-block;color:#4f6b5d;font-weight:600;font-size:14px;margin-bottom:27px}
.back:hover{text-decoration:underline}
.sheet{background:#fff;border:1px solid #dbe5df;border-radius:14px;padding:36px}
.sheet + .sheet{margin-top:18px}
.sheet h2{margin-bottom:7px}
.create-shell{padding-top:32px}
.create-shell .main{max-width:1060px}
.create-shell .back{margin-bottom:18px}
.product-editor{--editor-pad:clamp(20px,4vw,48px);display:grid;grid-template-columns:minmax(0,1.95fr) minmax(0,1fr);background:#fff;border:1px solid #cddcd4;border-radius:16px;box-shadow:0 12px 30px -20px #284f3b55}
.editor-writing{padding:var(--editor-pad)}
.editor-writing h2{font-size:clamp(1.75rem,4vw,2.65rem);line-height:1.13;letter-spacing:-.04em;margin-bottom:12px}
.editor-writing>p{max-width:45ch;margin-bottom:28px}
.editor-writing .field:last-child{margin-bottom:0}
.editor-writing input,.editor-writing textarea{background:#f8faf9}
.editor-writing input::placeholder,.editor-writing textarea::placeholder{color:#5d7468}
.editor-writing textarea{min-height:154px}
.editor-attachments{padding:var(--editor-pad) clamp(20px,3vw,34px);background:#e2eee6;border-radius:0 15px 0 0}
.editor-photo{display:block;width:min(100%,220px);height:auto;margin:0 auto 20px}
.editor-attachments h2{margin-bottom:6px}
.editor-attachments p{font-size:14px;color:#405f50;margin-bottom:18px}
.editor-attachments input{width:100%;font-size:13px;color:#345345}
.editor-attachments input::file-selector-button{margin-inline-end:8px;padding:10px 12px;border:1px solid #8eaf9d;border-radius:7px;background:#fafcf9;color:#244b39;font-weight:650;cursor:pointer}
.editor-attachments input::file-selector-button:hover{background:#f0f7f2;border-color:#629a76}
.editor-attachments .help{margin-top:10px;color:#405f50}
.editor-footer{grid-column:1/-1;border-top:1px solid #d5e0dc;padding:18px var(--editor-pad)}
.editor-footer .actions{gap:20px}
.editor-footer .link-button{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:720px){
  .create-shell{padding-top:22px}
  .product-editor{grid-template-columns:minmax(0,1fr)}
  .editor-attachments{border-radius:0;border-top:1px solid #d5e0dc}
  .editor-photo{display:none}
}
.field{display:block;margin-bottom:24px}
.field span{display:block;font-weight:700;margin-bottom:8px;font-size:14px}
input[type=text],input[type=email],input[type=password],textarea{width:100%;border:1px solid #b8cbc0;background:#fff;border-radius:8px;padding:12px 14px;color:#142c28}
input::placeholder,textarea::placeholder{color:#70867b}
textarea{resize:vertical;min-height:150px;line-height:1.55}
.help{display:block;color:#5a7165;font-size:13px;margin-top:8px;font-weight:400}
.actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.error{color:#9e332d;background:#fff2f0;padding:12px 14px;border-radius:8px;margin-bottom:20px}
.result{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;color:#263f35;max-width:75ch}
.question-title{font-size:1.3rem;line-height:1.4;margin:0 0 22px;overflow-wrap:anywhere}
.options{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:24px}
.option{border:1px solid #b8ccc0;background:#fff;color:#284d3c;padding:10px 14px;border-radius:8px;text-align:left}
.option:hover,.option.selected{background:#e2f1e7;border-color:#348658}
.detail-shell{padding-top:32px}
.detail-shell .main{max-width:1120px}
.detail-shell .back{margin-bottom:16px}
.detail-cover{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:clamp(22px,4vw,48px);background:#193e35;color:#f5faf7;border-radius:14px 14px 4px 4px}
.detail-cover h1{max-width:28ch;margin:0;overflow-wrap:anywhere}
.detail-cover .status{flex:none;margin-top:3px}
.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;gap:16px;margin-top:16px}
.detail-sheet{padding:clamp(20px,4vw,44px);background:#fff;border:1px solid #d5e0dc;border-radius:4px 4px 14px 14px;box-shadow:0 12px 30px -23px #284f3b55;overflow-wrap:anywhere}
.detail-sheet h2,.processing-copy h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.16}
.detail-sheet .detail-caption{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #d5e0dc;font-size:14px}
.detail-sheet .question-title{margin-top:18px}
.detail-sheet .option{min-height:44px;max-width:100%;overflow-wrap:anywhere}
.detail-sheet textarea{min-height:122px}
.detail-source{padding:clamp(20px,3vw,30px);background:#e2eee6;border:1px solid #d5e0dc;border-radius:4px 4px 14px 14px}
.detail-source h2{font-size:1.15rem;line-height:1.25;margin-bottom:14px}
.detail-source .result{font-size:14px}
.detail-image-count{display:flex;align-items:center;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #b9d1c3;font-size:13px;color:#405f50}
.detail-image-count svg{width:20px;height:20px;flex:none}
.detail-history{margin-top:14px;border-top:1px solid #b9d1c3}
.detail-history summary{cursor:pointer;padding:12px 0;font-weight:650;font-size:14px}
.detail-history summary span{color:#405f50}
.history-item{margin-top:14px;font-size:14px}
.history-item strong{display:block;color:#405f50;overflow-wrap:anywhere}
.history-item span{display:block;margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere}
.processing-panel{background:#fff;border:1px solid #dbe5df;border-radius:14px;min-height:370px;display:grid;grid-template-columns:minmax(200px, 42%) 1fr;align-items:center;overflow:hidden}
.processing-art{position:relative;display:grid;place-items:center;min-height:370px;background:#e3f0e8;overflow:hidden}
.processing-page{width:128px;height:165px;border:1px solid #abc8b6;border-radius:8px;background:#fff;box-shadow:10px 12px 0 #c9ded0;transform:rotate(-5deg);padding:40px 22px}
.processing-page i{display:block;height:5px;border-radius:4px;background:#c9ded0;margin:0 0 11px}
.processing-page i:first-child{width:68%;background:#7eb996}
.processing-page i:last-child{width:55%}
.processing-scan{position:absolute;width:162px;height:2px;background:#176d48;transform:translateY(-76px);opacity:.8}
.processing-spark{position:absolute;top:24%;left:69%;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#176d48;color:white;font-size:23px}
.processing-copy{padding:42px}
.processing-copy>p{max-width:43ch}
.processing-note{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;color:#285d43;margin-top:28px}
.processing-dot{height:8px;width:8px;border-radius:50%;background:#2c9863}
.processing-copy .processing-hint{font-size:13px;margin:9px 0 0;color:#526b5e}
.poll-error:not(:empty){font-size:13px;color:#9e332d;margin:12px 0 0}
.page-hidden .processing-scan,.page-hidden .processing-spark{animation-play-state:paused}
.detail-grid .processing-panel{grid-template-columns:minmax(145px,32%) 1fr;min-height:300px;border-radius:4px 4px 14px 14px}
.detail-grid .processing-art{min-height:300px;align-self:stretch}
.detail-grid .processing-copy{padding:clamp(20px,3vw,36px)}
.detail-grid .processing-spark{left:auto;right:10%}
@media(max-width:820px){
  .detail-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){
  .detail-cover{flex-direction:column;gap:12px}
  .detail-grid .processing-panel{grid-template-columns:minmax(0,1fr)}
  .detail-grid .processing-art{min-height:180px}
  .detail-grid .processing-scan{width:120px}
}
.auth-layout{min-height:calc(100vh - 76px);display:grid;grid-template-columns:1fr 1fr}
.auth-story{background:#193e35;color:white;padding:clamp(40px,7vw,100px);display:flex;flex-direction:column;justify-content:center}
.auth-story h1{max-width:12ch;font-size:clamp(2.5rem,5vw,4.5rem)}
.auth-story p{color:#c3d9cb;max-width:42ch;font-size:18px}
.story-line{margin-top:45px;padding-top:20px;border-top:1px solid #66877a;color:#c3d9cb;font-size:14px}
.auth-form{padding:60px 30px;display:grid;place-items:center}
.auth-box{width:100%;max-width:390px}
.auth-box h1{font-size:2rem}
.auth-box .button{width:100%}
.auth-switch{margin-top:20px;font-size:14px}
#notice:not(:empty){position:fixed;bottom:24px;right:24px;background:#193e35;color:#fff;padding:13px 18px;border-radius:8px;max-width:calc(100vw - 48px)}
@media(max-width:760px){.topbar{height:64px;padding:0 20px}.top-right{gap:12px}.top-right .email{max-width:120px}.shell{padding:32px 20px 60px}.sheet{padding:24px 20px}.product-row{gap:10px;grid-template-columns:minmax(0,1fr) auto}.product-row .arrow{display:none}.product-preview{max-width:42vw}.auth-layout{display:block;min-height:0}.auth-story{padding:42px 25px}.auth-story h1{font-size:2.6rem;max-width:15ch}.auth-story p{font-size:16px}.story-line{margin-top:20px}.auth-form{padding:45px 24px}.intro{align-items:flex-start;flex-direction:column}.processing-page{transform:rotate(-5deg) scale(.8)}.processing-spark{top:18%}}
@media(max-width:1050px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.topbar{padding:0 12px;gap:8px}.top-right{gap:10px}.top-right .email{display:none}.page-title{font-size:16px}.catalog-grid{grid-template-columns:1fr}.catalog-cover{height:125px}.catalog-add{min-height:180px}}
@media(prefers-reduced-motion:no-preference){.sheet,.intro{animation:appear .35s ease-out both}.processing-scan{animation:scan 3s ease-in-out infinite alternate}.processing-spark{animation:spark 3s ease-in-out infinite alternate}@keyframes appear{from{opacity:.7;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes scan{from{transform:translateY(-76px);opacity:.35}to{transform:translateY(76px);opacity:1}}@keyframes spark{from{transform:rotate(-15deg)}to{transform:rotate(35deg)}}}
