/* Crop Desk – shared UI for the 2026-11-15 global tools (OCR, Sign PDF, Word to PDF, CSV to Excel, Metadata). */
.gt-box{display:flex;flex-direction:column;gap:14px}
.gt-row{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end}
.gt-row label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.95rem;min-width:0}
.gt-row select,.gt-row input[type=text]{min-height:44px;padding:8px 10px;border:1px solid var(--cd-border,#d1d5db);border-radius:10px;font:inherit;background:#fff;max-width:100%}
.gt-chk{flex-direction:row!important;align-items:center;gap:8px!important;font-weight:500!important;min-height:44px}
.gt-chk input{width:20px;height:20px;accent-color:var(--cd-primary,#4f46e5)}
.gt-fs{border:0;padding:0;margin:0}.gt-fs legend{font-weight:600;font-size:.95rem;margin-bottom:2px;padding:0}
.gt-l{display:block;font-weight:600;margin:4px 0}
.gt-box textarea{width:100%;box-sizing:border-box;min-height:220px;padding:12px;border:1px solid var(--cd-border,#d1d5db);border-radius:12px;font:15px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.gt-box .btn{min-height:44px}
.gt-box .btn[disabled]{opacity:.5;cursor:not-allowed}
.gt-box .cd-status{min-height:1.4em;font-weight:600}
.gt-box .cd-status.err{color:#b91c1c}
.gt-box progress{width:100%;height:10px}
.gt-prev{margin:0}.gt-prev img{display:block;max-width:100%;max-height:340px;border-radius:12px;border:1px solid var(--cd-border,#e5e7eb);background:#f8fafc}
.gt-file{position:relative;overflow:hidden}.gt-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.gt-tabs{display:flex;gap:6px;border-bottom:1px solid var(--cd-border,#e5e7eb);margin-bottom:10px}
.gt-tabs [role=tab]{min-height:44px;padding:8px 16px;border:0;background:none;font:inherit;font-weight:600;color:var(--cd-muted,#64748b);border-bottom:3px solid transparent;cursor:pointer}
.gt-tabs [role=tab][aria-selected=true]{color:var(--cd-primary,#4f46e5);border-bottom-color:var(--cd-primary,#4f46e5)}
.gt-tabs [role=tab]:focus-visible{outline:3px solid var(--cd-focus,#93c5fd);outline-offset:2px}
/* Sign PDF */
.sp-sig{border:1px solid var(--cd-border,#e5e7eb);border-radius:14px;padding:12px;background:#fff}
.sp-pad{display:block;width:100%;height:170px;border:2px dashed #cbd5e1;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}
.sp-sigbox{margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.95rem}
.sp-sigbox img{max-height:56px;max-width:260px;background:repeating-conic-gradient(#f1f5f9 0 25%,#fff 0 50%) 0 0/12px 12px;border-radius:6px;padding:4px}
.sp-nav{align-items:center}
.sp-stage{position:relative;max-width:900px;margin:0 auto;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#f8fafc;box-shadow:0 4px 18px rgba(15,23,42,.08)}
.sp-stage canvas{display:block;width:100%;height:auto}
.sp-layer{position:absolute;inset:0;cursor:copy;touch-action:none}
.sp-mark{position:absolute;outline:2px dashed rgba(79,70,229,.0);cursor:move;touch-action:none}
.sp-mark img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.sp-mark.on,.sp-mark:focus{outline:2px dashed #4f46e5;outline-offset:2px}
.sp-h{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;border-radius:50%;background:#4f46e5;border:2px solid #fff;cursor:nwse-resize;display:none}
.sp-x{position:absolute;right:-12px;top:-12px;width:26px;height:26px;border-radius:50%;border:0;background:#ef4444;color:#fff;font-weight:700;line-height:1;cursor:pointer;display:none}
.sp-mark.on .sp-h,.sp-mark.on .sp-x,.sp-mark:focus .sp-h,.sp-mark:focus .sp-x,.sp-mark:focus-within .sp-x{display:block}
@media (pointer:coarse){.sp-h{width:26px;height:26px;right:-13px;bottom:-13px}}
/* Word to PDF */
.wp-view{overflow:hidden;background:#e5e7eb;border-radius:12px;padding:12px 4px}
.wp-pages{display:flex;flex-direction:column;align-items:center}
.wp-page{background:#fff;box-sizing:border-box;box-shadow:0 2px 10px rgba(15,23,42,.18);transform-origin:top center;overflow:hidden;flex:none}
.wp-body{font:12pt/1.5 Georgia,"Times New Roman",serif;color:#111;overflow-wrap:anywhere}
.wp-body h1{font-size:20pt;margin:0 0 10pt}.wp-body h2{font-size:16pt;margin:12pt 0 8pt}.wp-body h3{font-size:13pt;margin:10pt 0 6pt}
.wp-body p{margin:0 0 8pt}.wp-body img{max-width:100%;height:auto}.wp-body table{border-collapse:collapse;width:100%;margin:0 0 8pt}
.wp-body td,.wp-body th{border:1px solid #999;padding:3pt 5pt;vertical-align:top}.wp-body a{color:#1d4ed8}
/* CSV to Excel */
.cx-prev{max-height:420px;overflow:auto;border:1px solid var(--cd-border,#e5e7eb);border-radius:10px;background:#fff}
.cx-prev table{border-collapse:collapse;font-size:.88rem;min-width:100%}
.cx-prev th,.cx-prev td{border:1px solid #e5e7eb;padding:5px 8px;white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis;text-align:left}
.cx-prev thead th{position:sticky;top:0;background:#eef2ff;z-index:1}.cx-prev tbody th{background:#f8fafc;color:#64748b;font-weight:500}
.cx-prev td.n{text-align:right;font-variant-numeric:tabular-nums}
/* Metadata */
.rm-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.rm-item{border:1px solid var(--cd-border,#e5e7eb);border-radius:12px;padding:12px;background:#fff}
.rm-h{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;margin-bottom:6px;overflow-wrap:anywhere}
.rm-gps{background:#fef2f2;color:#b91c1c;border-radius:999px;padding:2px 10px;font-size:.82rem;font-weight:700}
.rm-t{border-collapse:collapse;width:100%;font-size:.9rem}.rm-t th{text-align:left;color:#475569;font-weight:600;padding:3px 10px 3px 0;white-space:nowrap;vertical-align:top}.rm-t td{padding:3px 0;overflow-wrap:anywhere}
.rm-after{background:#ecfdf5;color:#065f46;border-radius:8px;padding:8px 10px;font-weight:600;font-size:.92rem}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){.gt-box *{transition:none!important;animation:none!important}}
