/* Jay's Tool Privy Line Sheet v123 - single authoritative enhancement layer */
:root{--v123-panel-w:430px;--v123-thumbs-w:132px;--v123-panel-scale:1}
body.v123-linesheet .app{grid-template-columns:var(--v123-panel-w) minmax(0,1fr)!important;gap:0!important}
body.v123-linesheet .panel{width:var(--v123-panel-w)!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;font-size:calc(13px * var(--v123-panel-scale))!important;position:relative!important}
body.v123-linesheet .panel button{font-size:calc(12px * var(--v123-panel-scale))!important;min-height:calc(34px * var(--v123-panel-scale))!important;padding:calc(8px * var(--v123-panel-scale)) calc(11px * var(--v123-panel-scale))!important}
body.v123-linesheet .panel input,body.v123-linesheet .panel select,body.v123-linesheet .panel textarea{font-size:calc(12px * var(--v123-panel-scale))!important}
body.v123-linesheet #panelWidthResizer{position:fixed!important;left:calc(var(--v123-panel-w) - 9px)!important;top:0!important;width:18px!important;height:100vh!important;z-index:99999!important;cursor:col-resize!important;pointer-events:auto!important;touch-action:none!important;background:linear-gradient(90deg,transparent 36%,rgba(34,197,94,.55) 47%,rgba(34,197,94,.55) 53%,transparent 64%)!important}
body.v123-linesheet #panelWidthResizer:hover,body.v123-linesheet.is-resizing-panel #panelWidthResizer{background:linear-gradient(90deg,transparent 28%,rgba(22,163,74,.95) 47%,rgba(22,163,74,.95) 53%,transparent 72%)!important}
body.v123-linesheet #previewShell{grid-template-columns:var(--v123-thumbs-w) 12px minmax(0,1fr)!important}
body.v123-linesheet #thumbs{width:var(--v123-thumbs-w)!important;min-width:var(--v123-thumbs-w)!important;max-width:var(--v123-thumbs-w)!important;box-sizing:border-box!important}
body.v123-linesheet #thumbResizer{width:12px!important;min-width:12px!important;cursor:col-resize!important;pointer-events:auto!important;touch-action:none!important;z-index:9999!important;background:linear-gradient(90deg,transparent 34%,rgba(245,158,11,.55) 47%,rgba(245,158,11,.55) 53%,transparent 66%)!important}
/* Critical: never force only thumbnail width. The app's inline width+height are a matched aspect-ratio pair. */
body.v123-linesheet .thumb-viewport{max-width:100%!important;overflow:visible!important;margin:0 auto!important}
body.v123-linesheet .thumb-viewport .thumb-scale{transform-origin:top left!important}
body.v123-linesheet .thumb-item{height:auto!important;min-height:0!important;padding:6px 0!important}

/* Image title editor */
.v123-title-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 9px}.v123-title-head strong{font-size:14px}.v123-title-head span{font-size:10px;color:#667085;font-weight:700}
.v123-title-options{display:grid;grid-template-columns:minmax(112px,auto) repeat(3,minmax(90px,1fr));gap:7px;margin-bottom:10px}.v123-option-check,.v123-check{display:flex!important;align-items:center!important;gap:7px!important;cursor:pointer!important;font-weight:800!important;color:#27364a!important}.v123-option-check input,.v123-check input,.v123-title-row>input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;opacity:1!important;position:static!important;accent-color:#315f98!important}
.v123-title-help{font-size:11px;color:#667085;line-height:1.45;margin:6px 0 10px}.v123-title-list{border:1px solid #dfe5ee;border-radius:11px;background:#fff;max-height:470px;overflow:auto}.v123-title-row{display:grid;grid-template-columns:18px 128px minmax(115px,1fr) 86px;gap:7px;align-items:center;padding:8px;border-bottom:1px solid #edf1f5}.v123-title-row:last-child{border-bottom:0}.v123-title-row:hover{background:#f8fbff}.v123-title-label{font-size:10px;font-weight:800;color:#344054;line-height:1.25}.v123-title-input{width:100%!important;min-width:0!important;padding:7px 8px!important}.v123-file{position:relative;display:block;border:1px solid #d0d7e2;border-radius:7px;background:#fff;text-align:center;padding:7px 4px;font-size:9px;font-weight:800;overflow:hidden;cursor:pointer}.v123-file input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}.v123-file.has-image{background:#eef7ff;border-color:#79a7d8}.v123-apply{width:100%!important;margin-top:9px!important;background:#315f98!important;color:#fff!important;border-color:#315f98!important}.v123-empty{padding:18px;text-align:center;color:#667085;font-size:11px}
/* modals */
.v123-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:100000;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(4px)}.v123-modal{width:min(920px,95vw);max-height:88vh;background:#fff;border-radius:16px;box-shadow:0 28px 80px rgba(15,23,42,.3);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.v123-modal-head,.v123-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 16px;border-bottom:1px solid #e5e7eb}.v123-modal-foot{justify-content:flex-end;border-top:1px solid #e5e7eb;border-bottom:0}.v123-modal-body{padding:15px;overflow:auto}.v123-modal h3{margin:0;font-size:16px}.v123-modal button{border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:8px 11px;font-weight:800;cursor:pointer}.v123-modal button.primary{background:#315f98;color:#fff;border-color:#315f98}.v123-page-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:7px;margin:10px 0 14px}.v123-page-check{border:1px solid #e1e6ed;border-radius:8px;padding:8px;background:#fff}.v123-selector-list{border:1px solid #e1e6ed;border-radius:10px;max-height:390px;overflow:auto;margin-top:10px}.v123-selector-row{display:grid;grid-template-columns:20px 135px minmax(0,1fr);gap:8px;align-items:center;padding:8px;border-bottom:1px solid #eef1f5}.v123-selector-row:last-child{border-bottom:0}.v123-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.v123-controls.two{grid-template-columns:repeat(2,minmax(0,1fr))}.v123-controls label{font-size:10px;font-weight:800;color:#475467}.v123-controls input,.v123-controls select{width:100%!important;margin-top:4px!important;box-sizing:border-box!important}.v123-selectbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.v123-status{font-size:10px;color:#667085}
/* header/footer */
.v123-divider-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.v123-footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v123-footer-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.v123-footer-grid label{font-size:10px;font-weight:800;color:#475467}.v123-footer-grid input,.v123-footer-grid select,.v123-footer-text{width:100%!important;box-sizing:border-box!important}.v123-footer-text{min-height:70px;resize:vertical}.v123-divider-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 92px 130px;gap:9px;align-items:end}.v123-divider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.v123-divider-card{background:#fff!important;color:#17263a!important;border:1px solid #d8e0eb!important;border-radius:8px!important;min-height:72px!important;padding:6px!important}.v123-divider-card.selected{outline:2px solid #315f98!important;background:#f4f8fd!important}.v123-divider-card svg{width:100%;height:38px;display:block;background:#fff}.v123-divider-card span{font-size:9px;display:block;margin-top:3px}.v123-divider-nav{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:10px;font-size:10px;color:#667085}
/* Background */
#v123RemoveBackground{width:100%!important;margin-top:7px!important;background:#fff!important;color:#344054!important;border:1px solid #cfd8e5!important}
/* True zero outer margin mode: don't add editor-only outer padding around auto pages. */
body.v123-zero-outer .page-wrap{padding-top:0!important;padding-bottom:0!important}
@media(max-width:900px){body.v123-linesheet .app{grid-template-columns:1fr!important}body.v123-linesheet #panelWidthResizer{display:none!important}.v123-title-options{grid-template-columns:1fr 1fr}.v123-title-row{grid-template-columns:18px 100px minmax(90px,1fr)}.v123-file{grid-column:3}.v123-controls,.v123-controls.two,.v123-footer-grid,.v123-footer-grid.four,.v123-divider-toolbar{grid-template-columns:1fr 1fr}.v123-divider-toolbar>input[type=search]{grid-column:1/-1}.v123-divider-grid{grid-template-columns:1fr 1fr}}

/* v155 Line Sheet branding controls */
.v155-header-sizing{margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb}
.v155-section-title{font-size:12px;font-weight:700;color:#334155;margin-bottom:8px}
.v155-header-size-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v155-header-size-grid label{font-size:10px;font-weight:600;color:#64748b}
.v155-header-size-grid input{width:100%;min-height:36px;border:1px solid #d8dee7;border-radius:9px;padding:7px 9px;background:#fff;color:#111827}
.v123-divider-actions.single{grid-template-columns:1fr!important;margin-top:10px}
.v123-divider-toolbar.simple{grid-template-columns:minmax(150px,1fr) 110px;max-width:420px}
.v123-divider-simple-head .v123-status{margin:0 0 10px}
.v123-divider-grid.v155-one-per-style{grid-template-columns:repeat(3,minmax(0,1fr));max-height:56vh;overflow:auto;padding:2px 4px 8px 2px}
.v123-divider-grid.v155-one-per-style .v123-divider-card{min-height:76px!important}
@media(max-width:900px){.v155-header-size-grid{grid-template-columns:1fr 1fr}.v123-divider-grid.v155-one-per-style{grid-template-columns:repeat(2,minmax(0,1fr))}}
