/* Lefty-only trial journal v2; styles are not included in the customer template. */
#leftyTrialV2{box-sizing:border-box;width:min(1050px,calc(100vw - 28px));max-width:1050px;max-height:calc(100dvh - 28px);margin:auto;padding:0;border:1px solid #c7d4c9;border-radius:21px;background:#fafaf6;color:#193b2a;box-shadow:0 28px 100px #11261d75;font:14px/1.5 system-ui,-apple-system,sans-serif;overscroll-behavior:contain}
#leftyTrialV2::backdrop{background:#0d2019b5;backdrop-filter:blur(3px)}
#leftyTrialV2 *{box-sizing:border-box}
#leftyTrialV2 button,#leftyTrialV2 input,#leftyTrialV2 select,#leftyTrialV2 textarea{font:inherit}
#leftyTrialV2 button{cursor:pointer;min-height:40px;touch-action:manipulation}
#leftyTrialV2 button:focus-visible,#leftyTrialV2 input:focus-visible,#leftyTrialV2 select:focus-visible,#leftyTrialV2 textarea:focus-visible{outline:3px solid #a88e52;outline-offset:2px}
#leftyTrialV2 .ltv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:19px clamp(16px,3vw,30px);background:linear-gradient(120deg,#183c2b,#336349);color:#fff;position:sticky;top:0;z-index:5}
#leftyTrialV2 .ltv-head h2{font:500 clamp(25px,3vw,35px)/1.2 Georgia,serif;margin:3px 0 5px;color:#fff}
#leftyTrialV2 .ltv-head p{color:#e7eee6;margin:0;font-size:13px}
#leftyTrialV2 .ltv-head small{color:#b7d5bc;font-size:10px;font-weight:800;letter-spacing:.11em}
#leftyTrialV2 .ltv-icon{width:40px;height:40px;border:1px solid #ffffff52;border-radius:12px;color:#fff;background:#ffffff16;font-size:28px;line-height:1}
#leftyTrialV2 #ltvNotice{font-size:13px;margin:0;padding:0 clamp(16px,3vw,30px);color:#1b6542}
#leftyTrialV2 #ltvNotice:not(:empty){padding-top:10px;padding-bottom:10px;border-bottom:1px solid #d6e1d3}
#leftyTrialV2 #ltvNotice.ltv-error{color:#9e342a;background:#fff2ee}
#leftyTrialV2 .ltv-body{padding:clamp(14px,3vw,27px);display:grid;gap:16px}
#leftyTrialV2 .ltv-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#leftyTrialV2 .ltv-tabs button,#leftyTrialV2 .ltv-actions button,#leftyTrialV2 .ltv-slip button,#leftyTrialV2 .ltv-event button,#leftyTrialV2 .ltv-draft button{background:#f2f5ee;color:#254431;border:1px solid #c7d6c5;border-radius:11px;padding:9px 14px;font-weight:650}
#leftyTrialV2 .ltv-tabs button.active{background:#dce9d9;border-color:#8db297}
#leftyTrialV2 .ltv-primary,#leftyTrialV2 .ltv-tabs .ltv-primary{background:#245a3a;color:white;border:1px solid #245a3a;border-radius:11px;padding:9px 17px;font-weight:750}
#leftyTrialV2 .ltv-primary:hover{background:#2c7047}
#leftyTrialV2 .ltv-tabs .ltv-primary{margin-left:auto}
#leftyTrialV2 .ltv-filters,#leftyTrialV2 .ltv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#leftyTrialV2 .ltv-filters{grid-template-columns:repeat(3,minmax(0,1fr));padding:14px;border:1px solid #d8e1d4;background:#f3f6f0;border-radius:13px}
#leftyTrialV2 .ltv-field{display:grid;gap:5px;color:#2c4536;font-size:13px;font-weight:650;min-width:0}
#leftyTrialV2 .ltv-field>span{display:block}
#leftyTrialV2 .ltv-field small{font-size:11px;font-weight:400;color:#59705e}
#leftyTrialV2 input:not([type=checkbox]),#leftyTrialV2 select,#leftyTrialV2 textarea{width:100%;max-width:100%;min-height:43px;border-radius:10px;padding:10px 11px;color:#203728;background:#fff;border:1px solid #b8cbb9}
#leftyTrialV2 textarea{min-height:76px;resize:vertical;line-height:1.5}
#leftyTrialV2 input[type=checkbox]{accent-color:#275d3c;width:17px;height:17px}
#leftyTrialV2 .ltv-check{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;background:#f1f4ed;border-radius:10px;border:1px solid #dce6db;margin:7px 5px 0 0}
#leftyTrialV2 .ltv-honours{border:1px solid #d5e0d4;border-radius:12px;margin:14px 0;padding:8px}
#leftyTrialV2 .ltv-honours legend{font-weight:650;padding:0 8px}
#leftyTrialV2 .ltv-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#leftyTrialV2 .ltv-kpis>div{min-width:0;background:#fff;border:1px solid #d7e0d3;border-radius:13px;padding:14px;display:grid;gap:3px}
#leftyTrialV2 .ltv-kpis small{font-size:11px;color:#67796c}
#leftyTrialV2 .ltv-kpis strong{font:500 25px/1.2 Georgia,serif;color:#1f4b32}
#leftyTrialV2 .ltv-panel{background:#fff;border:1px solid #d5e0d1;border-radius:15px;padding:clamp(14px,2.5vw,22px);min-width:0}
#leftyTrialV2 .ltv-panel h3{font:500 23px Georgia,serif;margin:0 0 12px;color:#244b35}
#leftyTrialV2 .ltv-panel h4{margin:17px 0 6px}
#leftyTrialV2 .ltv-muted{color:#66776a;font-size:12px;line-height:1.6;margin:6px 0 12px}
#leftyTrialV2 .ltv-row{border:0;border-top:1px solid #e4e9e2;background:transparent;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 5px;text-align:left;color:#294533;width:100%}
#leftyTrialV2 .ltv-row:hover{background:#f6f8f3}
#leftyTrialV2 .ltv-row span{display:grid;gap:3px}
#leftyTrialV2 .ltv-row small{color:#6f7e72;font-size:11px}
#leftyTrialV2 .ltv-row strong{font-size:15px}
#leftyTrialV2 .ltv-row b{text-align:right;white-space:normal;flex:none}
#leftyTrialV2 .ltv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
#leftyTrialV2 .ltv-section{display:block;background:#fff;border:1px solid #d5e0d1;border-radius:15px;padding:15px;min-width:0}
#leftyTrialV2 .ltv-section summary{font-size:16px;font-weight:750;color:#214e32;cursor:pointer;padding:4px 0}
#leftyTrialV2 .ltv-section[open]>summary{margin-bottom:11px;border-bottom:1px solid #e1e8dd;padding-bottom:11px}
#leftyTrialV2 #ltvForm{display:grid;gap:14px}
#leftyTrialV2 .ltv-slip{background:#f5f7f1;border:1px solid #d8e2d5;border-radius:14px;padding:13px;margin:15px 0}
#leftyTrialV2 .ltv-slip-top,#leftyTrialV2 .ltv-event-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
#leftyTrialV2 .ltv-slip h4,#leftyTrialV2 .ltv-event b{margin:0;color:#235237}
#leftyTrialV2 .ltv-event{background:#fff;padding:12px;border:1px solid #d2ded1;border-radius:12px;margin:13px 0;display:grid;gap:9px}
#leftyTrialV2 .ltv-event .ltv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#leftyTrialV2 .ltv-apport{margin:12px 0;padding:13px;border:1px solid #dae3d7;background:#f9faf7;border-radius:13px;display:grid;gap:10px}
#leftyTrialV2 .ltv-apport h4{margin:0}
#leftyTrialV2 .ltv-secondary,#leftyTrialV2 .ltv-section .ltv-secondary{background:#e4ede1;color:#265d3a;border:1px dashed #80aa87;border-radius:10px;padding:10px 16px;font-weight:700;width:100%}
#leftyTrialV2 .ltv-draft{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px;border:1px solid #b8c7a9;background:#eef4e7;border-radius:12px}
#leftyTrialV2 .ltv-draft-label{font-size:13px;color:#697a6c}
#leftyTrialV2 .ltv-save{position:sticky;bottom:0;background:#fafaf6;border-top:1px solid #dbe4d8;padding:13px 0 5px;z-index:4}
#leftyTrialV2 .ltv-save span{color:#6c7a6c;font-size:11px}
#leftyTrialV2 .ltv-preserve{white-space:pre-wrap;overflow-wrap:anywhere}
#leftyTrialV2 .ltv-table-scroll{overflow-x:auto}
#leftyTrialV2 table{width:100%;border-collapse:collapse;font-size:13px}
#leftyTrialV2 th,#leftyTrialV2 td{text-align:left;border-bottom:1px solid #dce6dc;padding:10px}
#leftyTrialV2 th small{display:block;font-weight:400;color:#65836d}
#leftyTrialV2 td small{color:#748074}
#leftyTrialV2 .ltv-year{display:grid;grid-template-columns:50px 1fr 130px;gap:10px;align-items:center;margin:12px 0;font-size:12px}
#leftyTrialV2 .ltv-year b{text-align:right;font-size:12px}
#leftyTrialV2 .ltv-bar{height:12px;background:#e5ebe2;border-radius:12px;overflow:hidden}
#leftyTrialV2 .ltv-bar i{display:block;height:100%;background:#568d66;border-radius:12px}
@media(max-width:700px){
 #leftyTrialV2{width:100vw;max-height:100dvh;height:100dvh;border-radius:0;border:0}
 #leftyTrialV2 .ltv-body{padding:14px}
 #leftyTrialV2 .ltv-head{padding:15px}
 #leftyTrialV2 .ltv-filters,#leftyTrialV2 .ltv-grid{grid-template-columns:minmax(0,1fr)}
 #leftyTrialV2 .ltv-event .ltv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #leftyTrialV2 .ltv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 #leftyTrialV2 .ltv-tabs .ltv-primary{margin-left:0}
 #leftyTrialV2 .ltv-year{grid-template-columns:42px 1fr 105px}
 #leftyTrialV2 .ltv-row b{max-width:95px}
}
@media(max-width:420px){
 #leftyTrialV2 .ltv-event .ltv-grid{grid-template-columns:1fr}
 #leftyTrialV2 .ltv-row{align-items:flex-start}
 #leftyTrialV2 .ltv-save{gap:7px}
}

/* Coverage and reliable cloud refresh: don't present missing scores as zeros. */
#leftyTrialV2 .ltv-coverage{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid #c9d9bf;border-radius:15px;background:#eef4e8;padding:18px 20px;color:#244932}
#leftyTrialV2 .ltv-coverage>div{flex:1;min-width:min(100%,240px)}
#leftyTrialV2 .ltv-coverage h3{font-size:17px;line-height:1.3;font-weight:750;margin:0 0 6px;color:#245337}
#leftyTrialV2 .ltv-coverage p{font-size:13px;line-height:1.65;margin:0 0 9px}
#leftyTrialV2 .ltv-coverage-count{font-size:11px;color:#556f5a;font-weight:650;display:block}
#leftyTrialV2 .ltv-coverage .ltv-secondary{width:auto;flex-shrink:0;border-style:solid;white-space:normal}
#leftyTrialV2 .ltv-tabs .ltv-refresh{margin-left:auto;background:transparent;border:1px solid #ced8ca;border-radius:11px;color:#30573d;font-size:12px}
#leftyTrialV2 .ltv-tabs .ltv-refresh:hover{background:#eaf2e7}
#leftyTrialV2 .ltv-tabs .ltv-refresh+.ltv-primary{margin-left:0}
#leftyTrialV2 .ltv-panel.ltv-empty{background:#fbfcf9;border-style:dashed}
#leftyTrialV2 .ltv-panel.ltv-empty p{color:#607268;line-height:1.7;font-size:13px}
#leftyTrialV2 .ltv-more-stats{margin-top:15px;border-top:1px solid #e0e8db;padding-top:10px}
#leftyTrialV2 .ltv-more-stats summary{font-weight:700;color:#2c6343;cursor:pointer}
#leftyTrialV2 .ltv-more-stats .ltv-kpis{margin-top:13px}
@media(max-width:700px){
 #leftyTrialV2 .ltv-coverage{padding:15px;align-items:stretch}
 #leftyTrialV2 .ltv-coverage .ltv-secondary{width:100%}
 #leftyTrialV2 .ltv-tabs .ltv-refresh{margin-left:0}
}
.ltv-history-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.ltv-row .ltv-grade-line{flex:1;display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:center}
.ltv-grade-line>span{min-width:42px;text-align:center;padding:3px 5px;border-radius:7px;background:#eff3eb}.ltv-grade-line em{font:600 15px Georgia,serif;color:#274b36}
.trial-extra .trial-share-opts{display:flex;flex-wrap:wrap;gap:8px 16px}.trial-share-opts label{display:flex;align-items:center;gap:5px}.trial-extra input[readonly]{width:100%;box-sizing:border-box}.trial-extra td{white-space:pre-line;vertical-align:top}

#leftyTrialV2 .ltv-row {
 display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2.7fr) minmax(80px,.8fr);
 align-items:center;gap:12px;
}
#leftyTrialV2 .ltv-row .ltv-summary {display:flex;align-items:center;gap:10px;min-width:0;overflow-wrap:anywhere}
.ltv-history-photo {width:52px;height:52px;border-radius:9px;object-fit:cover;flex:none}
#leftyTrialV2 .ltv-row .ltv-grade-line {
 display:grid;grid-auto-flow:column;grid-auto-columns:72px;
 justify-content:start;overflow-x:auto;gap:4px;padding-bottom:3px;
}
#leftyTrialV2 .ltv-grade-line>span {min-width:0;align-content:center}
#leftyTrialV2 .ltv-row>b {grid-column:3;color:#254933;font:600 18px Georgia,serif}
.trial-extra [hidden] {display:none!important}
.trial-modes,.trial-photo-picker {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.trial-extra button[aria-pressed=true] {background:#214634;color:#fff4d9;border-color:#214634}
.trial-extra .trial-share-opts img,.trial-photo-picker img {width:54px;height:42px;border-radius:6px;object-fit:cover}
.trial-photo-picker button {display:inline-flex;align-items:center;gap:6px}
.trial-extra .trial-share-opts h4 {flex-basis:100%;margin-bottom:0}
.trial-image-panel canvas {display:block;margin:0 auto}
.trial-image-panel .ltv-actions {justify-content:center}
@media(max-width:680px){
 #leftyTrialV2 .ltv-row {grid-template-columns:minmax(0,1fr) auto}
 #leftyTrialV2 .ltv-row>b {grid-column:2;grid-row:1}
 #leftyTrialV2 .ltv-row .ltv-grade-line {grid-column:1/-1;grid-row:2}
}

.ltv-history-entry {display:flex;align-items:center;gap:8px;border-top:1px solid #e4e9e2}
#leftyTrialV2 .ltv-history-entry .ltv-row {min-width:0;flex:1;border-top:0}
#leftyTrialV2 .ltv-row-share {flex:none;border:1px solid #c7d4c9;border-radius:9px;padding:6px 12px;color:#244834;background:#eff4ec}
@media(max-width:680px){
 .ltv-history-entry {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px}
}

.trial-link-preview{width:min(100%,400px,84vh);margin:16px 0}
.trial-link-preview h4{margin:0 0 7px}
.trial-link-miniature{background:#17392d;color:#fff4da;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px #ccd6ca}
.trial-link-miniature>div:last-child{padding:8px 13px;font:600 19px/1.25 Georgia,serif;overflow-wrap:anywhere}
.trial-link-photo-area{position:relative}
.trial-link-photo-area img{max-height:min(245px,40vh)!important}
.trial-link-photo-area:has(img:active)::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 33%,#ffffff80 33%,#ffffff80 33.35%,transparent 33.35%,transparent 66.4%,#ffffff80 66.4%,#ffffff80 66.75%,transparent 66.75%),linear-gradient(0deg,transparent 33%,#ffffff80 33%,#ffffff80 33.55%,transparent 33.55%,transparent 66.4%,#ffffff80 66.4%,#ffffff80 66.95%,transparent 66.95%)}
.trial-link-preview small{display:block;margin:7px 0;color:#455b4e}

.trial-extra .trial-edit-thumb{display:flex;gap:7px;align-items:center;border:1px solid #becdc1;border-radius:8px;background:#fffdf7;color:#264634;padding:4px 8px}
.trial-extra .trial-edit-thumb[aria-pressed=true]{background:#244833;color:#fff4dd;outline:2px solid #bd9857}
.trial-edit-thumb+label{font-size:13px;margin-top:3px}

/* Keep the share dialog inside the viewport even when a long link or option is present. */
#leftyTrialV2 dialog.trial-extra[aria-label="Del prøve"]{
 position:fixed;inset:0;margin:auto;transform:none;box-sizing:border-box;
 width:min(52rem,calc(100% - 16px));min-width:0;max-width:calc(100% - 16px);
 max-height:calc(100dvh - 16px);padding:0;overflow-y:auto;border-radius:14px;
}
#leftyTrialV2 .trial-extra[aria-label="Del prøve"] .ltv-body{grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}
#leftyTrialV2 .trial-extra[aria-label="Del prøve"] :is(section,label,input,select,button,.ltv-actions,.trial-share-opts,.trial-modes,.trial-photo-picker){
 min-width:0;max-width:100%;box-sizing:border-box
}
#leftyTrialV2 .trial-extra[aria-label="Del prøve"] :is(label,button){white-space:normal}
#leftyTrialV2 .trial-extra[aria-label="Del prøve"] input[type="checkbox"]{flex-shrink:0}

.trial-link-photo-area{overflow:hidden}.trial-extra .trial-edit-thumb{touch-action:none;user-select:none;cursor:grab}.trial-extra .trial-edit-thumb:active{cursor:grabbing}.trial-extra .trial-edit-thumb.trial-drop-target{outline:3px solid #bb9653}.trial-share-opts>small{flex-basis:100%}
