/* SoyaTools online viewers. Works with /style.css and /nav.css. */
.tool-main{max-width:1060px}
.tool-main>p,.tool-main>ul{max-width:76ch}
.privacy-line{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;color:var(--muted);background:#edf2ee;border:1px solid #d5dfd7;border-radius:10px;padding:12px 16px;max-width:76ch}
.privacy-line:before{content:"";flex:0 0 auto;width:7px;height:12px;margin:4px 4px 0 3px;border:solid var(--accent);border-width:0 2px 2px 0;transform:rotate(45deg)}
.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-height:190px;margin:26px 0 12px;padding:28px 20px;background:#fff;border:2px dashed #b9c9c2;border-radius:14px;cursor:pointer;transition:border-color .15s,background .15s}
.dropzone:hover,.dropzone.is-over{border-color:var(--product);background:#f3f7f4}
.dropzone:focus-within{outline:3px solid #cf8a24;outline-offset:4px}
.dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.dropzone strong{font-size:1.08rem;font-weight:650}
.dropzone .formats{margin:2px 0 0}
.dropzone .choose{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;padding:10px 20px;border-radius:7px;background:var(--accent);color:#fff;font-size:.88rem;font-weight:650}
.dropzone small{color:var(--muted)}
.tool-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;font-size:.85rem;color:var(--muted);margin:0 0 8px}
.tool-options label{display:flex;align-items:center;gap:8px}
.tool-options select{font:inherit;font-size:.85rem;min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--fg);max-width:100%}
.tool-status{margin:14px 0;min-height:0}
.tool-status:empty{display:none}
.progress{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 18px}
.progress p{margin:0 0 8px;font-size:.88rem}
.progress .bar{height:8px;border-radius:4px;background:#e5ece8;overflow:hidden}
.progress .bar i{display:block;height:100%;width:0;background:var(--product);transition:width .1s}
.progress.indeterminate .bar i{width:30%;animation:slide 1.1s ease-in-out infinite}
@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}}
@media(prefers-reduced-motion:reduce){.progress.indeterminate .bar i{animation:none;width:100%;opacity:.45}}
.tool-error{border-left:3px solid #b5462f;background:#fbefeb;padding:16px 20px;border-radius:0 10px 10px 0}
.tool-error strong{display:block;margin-bottom:4px}
.tool-error p{margin:0;font-size:.9rem}
.tool-error p+p{margin-top:8px}
.tool-result{margin:20px 0 10px}
.tool-result[hidden]{display:none}
.result-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;margin:0 0 12px}
.result-head h2{margin:0;font-size:1.25rem;overflow-wrap:anywhere}
.result-head .meta{margin:0}
.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 22px;margin:14px 0}
.panel h3{margin:0 0 12px;font-size:1rem}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:0;font-size:.9rem}
.kv dt{color:var(--muted);font-weight:600}
.kv dd{margin:0;overflow-wrap:anywhere;min-width:0}
.notice{font-size:.85rem;color:#5b4a1d;background:#fbf4e2;border:1px solid #efdfb4;border-radius:8px;padding:10px 14px;margin:12px 0}
.mail-frame{display:block;width:100%;height:min(70vh,720px);min-height:320px;border:1px solid var(--line);border-radius:10px;background:#fff;resize:vertical}
.mail-text{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.65 var(--font);margin:0;max-height:70vh;overflow:auto}
.file-list{list-style:none;padding:0;margin:0}
.file-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 0;margin:0;border-top:1px solid var(--line)}
.file-list li:first-child{border-top:0}
.file-list .name{flex:1 1 220px;min-width:0;overflow-wrap:anywhere;font-weight:600;font-size:.9rem}
.file-list .size{font-size:.8rem;color:var(--muted);white-space:nowrap}
.tag{display:inline-block;font-size:.68rem;font-weight:650;letter-spacing:.02em;padding:2px 7px;border-radius:5px;background:#eef2ef;color:#41575c;margin-left:6px;vertical-align:middle}
.tag.warn{background:#fbe9e3;color:#8d3420}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid #b9c9c2;border-radius:7px;background:#fff;color:var(--accent);font:inherit;font-size:.82rem;font-weight:650;cursor:pointer;text-decoration:none}
.btn:hover{border-color:var(--accent);background:#f3f7f4}
.btn:focus-visible{outline:3px solid #cf8a24;outline-offset:3px}
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.tabs button{min-height:40px;padding:6px 14px;border:1px solid var(--line);border-radius:7px;background:#fff;font:inherit;font-size:.82rem;cursor:pointer;color:var(--fg)}
.tabs button[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.data-scroll{max-width:100%;max-height:70vh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff;overscroll-behavior:contain}
.data-table{min-width:0;width:auto;font-size:.8rem;line-height:1.45}
.data-table th,.data-table td{padding:6px 10px;white-space:nowrap;max-width:360px;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #edf0ec;border-right:1px solid #f0f3ef}
.data-table thead th{position:sticky;top:0;z-index:1;background:#edf2ee}
.data-table th.rownum,.data-table td.rownum{color:var(--muted);text-align:right;background:#f7f9f6;font-weight:500}
.data-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.data-table .type{display:block;font:500 .66rem/1.3 Consolas,monospace;color:var(--muted)}
.data-table td.memo{color:var(--muted);font-style:italic}
.preview-img{display:block;max-width:100%;max-height:75vh;margin:0 auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.thumbs figure{margin:0;background:#f7f9f6;border:1px solid var(--line);border-radius:8px;padding:8px;min-width:0}
.thumbs img{width:100%;height:110px;object-fit:contain;background:#fff;border-radius:4px}
.thumbs figcaption{font-size:.7rem;color:var(--muted);overflow-wrap:anywhere;margin:6px 0 4px;line-height:1.4}
.gantt{position:relative;display:block;width:220px;height:14px;background:repeating-linear-gradient(90deg,#f1f4f0 0 1px,transparent 1px 22px)}
.gantt i{position:absolute;top:3px;height:8px;min-width:2px;border-radius:2px;background:var(--product)}
.gantt i.done{background:#7d9a8f}
.gantt i.mile{width:9px!important;height:9px;top:2px;min-width:0;border-radius:1px;transform:rotate(45deg);background:#b5462f}
.app-box{border:1px solid var(--line);border-top:3px solid var(--product);background:#fff;border-radius:12px;padding:22px 26px;margin:34px 0}
.app-box h2{margin:0 0 6px;font-size:1.15rem}
.app-box>p{font-size:.9rem;color:var(--muted)}
.app-box ul{font-size:.9rem;margin-bottom:18px}
.app-box .app-line{display:flex;align-items:center;gap:14px;margin:0 0 12px}
.app-box .app-line img{border-radius:10px;flex:0 0 auto}
.app-box .app-line p{margin:0;font-weight:650}
.app-box .store-row{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;margin:0}
.result-cta{font-size:.88rem;color:var(--muted);margin:10px 0 0}
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:28px 0}
.tool-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-top:3px solid var(--product);border-radius:12px;padding:22px 24px}
.tool-card h2{font-size:1.1rem;margin:0 0 6px}
.tool-card h2 a{color:var(--fg);text-decoration:none}
.tool-card h2 a:hover{color:var(--accent);text-decoration:underline}
.tool-card .formats{margin:0 0 10px}
.tool-card p{font-size:.88rem;color:var(--muted);margin:0 0 12px}
.tool-card .more{margin-top:auto;font-size:.82rem;font-weight:600}
.license-list .panel h2{margin:0 0 4px;font-size:1.1rem}
.license-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.55 Consolas,monospace;background:#f7f9f6;border:1px solid var(--line);border-radius:8px;padding:14px;max-height:340px;overflow:auto}
.license-list details summary{cursor:pointer;font-size:.88rem;font-weight:600;min-height:40px;display:flex;align-items:center}
@media(max-width:700px){.tool-grid{grid-template-columns:1fr}.panel{padding:16px}.app-box{padding:20px}.kv{grid-template-columns:1fr;gap:0}.kv dt{margin-top:8px}.kv dt:first-child{margin-top:0}.dropzone{min-height:170px}.mail-frame{height:60vh}.gantt{width:160px}}
