.rf2 form{display:block}
.rf2-hidden-field{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important}
.rf2 .rf2-screen[hidden]{display:none!important}
.rf2-block{margin:16px 0}.rf2-block h3{font-size:16px;margin:0 0 8px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}.rf2-block h3 small{font-size:13px;color:var(--muted);font-weight:400}
.rf2-block[data-invalid=true],.rf2-block[data-empty=true][data-invalid=true]{outline:2px solid var(--error,#ffb59b);outline-offset:4px;border-radius:12px}
.rf2-choices{display:grid;gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}.rf2-five .rf2-choices{grid-template-columns:repeat(5,minmax(0,1fr))}.rf2-four .rf2-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
.rf2-choices button,.rf2-strengths button,.rf2-rose button{font:inherit;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:12px;cursor:pointer;min-height:44px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;line-height:1.15;font-size:13px}
.rf2-choices button{min-height:68px}.rf2-height .rf2-choices button{min-height:84px}.rf2-ic{display:grid;place-items:center;min-height:28px}.rf2-height .rf2-ic svg{width:30px;height:46px}.rf2-tx{text-align:center;overflow-wrap:anywhere}
.rf2-choices button[aria-checked=true],.rf2-strengths button[aria-checked=true],.rf2-rose button[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 22%,var(--soft));border-color:var(--accent);outline:2px solid var(--accent);font-weight:700}
.rf2-wind-row{display:flex;gap:12px;align-items:center;direction:rtl}.rf2-strengths{flex:1 1 0;display:flex;flex-direction:column;gap:6px;min-width:0}.rf2-strengths button{flex-direction:row;justify-content:flex-start;gap:8px;padding:6px 10px;font-size:14px}.rf2-strengths i{width:6px;height:24px;border-radius:3px;flex:0 0 auto}
.rf2-rose{position:relative;flex:0 0 auto;width:min(184px,50vw);aspect-ratio:1;border-radius:50%;background:var(--soft);border:1px solid var(--line)}
.rf2-rose button{position:absolute;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;transform:translate(-50%,-50%)}.rf2-rose button:disabled{opacity:.35;cursor:default}
.rf2-rose-center{position:absolute;inset:34%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;text-align:center;color:var(--text);pointer-events:none}.rf2-rose-center small{font-size:13px;color:var(--muted)}
.rf2-s2title{font-size:18px;margin:12px 0 0;display:flex;justify-content:space-between;align-items:baseline}.rf2-s2title small{font-size:13px;color:var(--muted);font-weight:400}
.rf2-time{margin:16px 0}.rf2-pro{margin:16px 0}.rf2-pro summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700}
.rf2-footer{position:sticky;bottom:0;display:flex;gap:8px;padding:10px 0 4px;background:var(--panel,var(--bg));border-top:1px solid var(--line);margin-top:12px;z-index:2}.rf2-footer button{flex:1;min-height:48px;font-size:16px}.rf2-footer [type=submit]{flex:2;font-weight:700}
.rf2 #error{min-height:1em;color:var(--error,#ffb59b);font-size:14px}
@media(max-width:380px){.rf2-choices button{font-size:13px;padding:6px 1px}}
.vis-level{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.vis-level small{font-size:13px;color:var(--muted)}.vis-level b{font-size:15px}.vis-ic{display:grid;place-items:center;color:var(--sand,var(--text))}.vis-ic svg{max-height:34px;width:auto}
.vis-surface svg{width:44px!important;height:26px!important}.vis-body{display:block;margin:4px 0 2px;color:var(--sand,var(--text))}.vis-body svg{width:34px;height:52px}
.report-wave{position:relative}
/* Short steps */
#rfSteps{margin:4px 0 12px}
#rfSteps h3{margin:10px 0 0;font-size:20px!important;color:var(--text)!important;text-align:start}
.rfs-dots{display:flex;gap:4px}
.rfs-dots i{flex:1;height:4px;border-radius:2px;background:var(--line)}
.rfs-dots i.on{background:var(--accent)}
#rfSteps[hidden],#rfSummary[hidden],.rf2-footer [hidden]{display:none!important}
#form[data-step] #rf2s1>.rf2-block{margin:0}
#form[data-step] #rf2s1>.rf2-block>h3{display:none}
#form[data-step=height] #rf2s1>.rf2-block:not(.rf2-height),#form[data-step=wind] #rf2s1>.rf2-block:not(.rf2-wind),#form[data-step=dir] #rf2s1>.rf2-block:not(.rf2-wind),#form[data-step=surface] #rf2s1>.rf2-block:not(.rf2-surface),#form[data-step=jelly] #rf2s1>.rf2-block:not(.rf2-jelly),#form[data-step=summary] #rf2s1>.rf2-block{display:none}
#form:is([data-step=wind],[data-step=dir],[data-step=surface],[data-step=jelly]) #rf2s1>:not(.rf2-block){display:none}
#form[data-step=wind] .rf2-rose,#form[data-step=dir] .rf2-strengths{display:none}
#form[data-step=wind] .rf2-strengths{gap:8px}
#form[data-step=wind] .rf2-strengths button{min-height:58px;font-size:17px}
#form[data-step=dir] .rf2-wind-row{justify-content:center}
#form[data-step=dir] .rf2-rose{width:min(280px,76vw)}
#form[data-step=dir] .rf2-rose button{width:54px;height:54px}
#form[data-step=surface] .rf2-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
#form[data-step=surface] .rf2-choices button{min-height:84px}
#form[data-step=surface] .rf2-choices button:last-child{grid-column:1/-1}
#form[data-step=jelly] .rf2-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
#form[data-step=jelly] .rf2-choices button{min-height:96px}
#rfSummary{margin:8px 0}
.rfs-row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:52px;box-sizing:border-box;margin-bottom:6px;padding:8px 12px;font:inherit;text-align:start;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:10px;cursor:pointer}
.rfs-row span{color:var(--muted)}
.rfs-row b{font-size:16px}
.rf2 #close{min-width:44px}
.rf2-footer{bottom:-1px}
/* Wind step: strength line above a 12-point rose */
.rfs-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.rfw-value{font-size:15px;color:var(--arrow-wind);white-space:nowrap}
.rfw-value small{margin-inline-start:4px;font-size:12px;color:var(--muted)}
#form[data-step] .rf2-wind-row,#form[data-step] .rf2-wind>h3{display:none}
#rfWind{--dot:var(--panel,#0a202c)}
.rfw-line{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:40px}
.rfw-line::before{content:"";position:absolute;inset-inline:8.33%;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:linear-gradient(to left,var(--rating-5),var(--rating-4),var(--rating-3),var(--rating-2),var(--rating-1))}
[dir=ltr] .rfw-line::before{background:linear-gradient(to right,var(--rating-5),var(--rating-4),var(--rating-3),var(--rating-2),var(--rating-1))}
.rfw-line button{all:unset;position:relative;box-sizing:border-box;display:grid;place-items:center;height:40px;cursor:pointer}
.rfw-line i{display:block;box-sizing:border-box;width:18px;height:18px;border-radius:50%;background:var(--dot);border:3px solid var(--c)}
.rfw-line [aria-pressed=true] i{width:30px;height:30px;background:var(--c);border-color:var(--text)}
.rfw-names{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));font-size:12px;line-height:1.1;text-align:center;color:var(--muted)}
.rfw-names .on{font-weight:700;color:var(--text)}
.rfw-rose{display:block;width:100%;max-width:300px;margin:6px auto 0}
.rfw-sea{fill:var(--soft)}
.rfw-land{fill:color-mix(in srgb,var(--sand) 18%,var(--soft))}
.rfw-coast{fill:none;stroke:var(--sand);stroke-width:1.2}
.rfw-tick{stroke:var(--text);stroke-opacity:.3;stroke-width:.8}
.rfw-letter{font-size:12px;fill:var(--text);fill-opacity:.85}
.rfw-pt{cursor:pointer;outline:none}
.rfw-pt .hit{fill:transparent}
.rfw-pt .dot{fill:var(--dot);stroke:var(--text);stroke-width:1.2}
.rfw-pt.on .dot{fill:var(--arrow-wind);stroke:var(--arrow-wind)}
.rfw-pt.off{opacity:.3;cursor:default}
.rfw-pt:focus-visible .dot{stroke:var(--accent);stroke-width:3}
.rfw-center{fill:var(--dot);stroke:var(--text)}
#rfDone{padding:28px 4px 12px;text-align:center}
#rfDone[hidden]{display:none}
#rfDone b{display:block;font-size:22px}
#rfDone p{margin:8px 0 20px;color:var(--muted)}
#rfDone button{display:block;width:100%;min-height:50px;margin-top:8px}
#form[data-done=true] #rf2s1,#form[data-done=true] #rfSteps,#form[data-done=true] .rf2-footer{display:none!important}

/* Height step: two scales beside the line figure */
#form[data-step=height] .rf2-height>h3,#form[data-step=height] .rf2-height .rf2-choices{display:none}
#rfHeight{--rfh-row:44px;margin-top:6px}
.rfh-cols{display:grid;grid-template-columns:58px 40px 40px;font-size:11px;line-height:1.2;text-align:center;margin-bottom:4px}
#rfHeight .rfh-g{color:var(--accent)}#rfHeight .rfh-s{color:#d69a00}
html.dark #rfHeight .rfh-s,body:not(.light) #rfHeight .rfh-s{color:#ffc72c}
.rfh-body{display:grid;grid-template-columns:58px 40px 40px minmax(0,1fr);height:calc(9 * var(--rfh-row))}
.rfh-names{display:grid;grid-auto-rows:var(--rfh-row)}
.rfh-names span{line-height:var(--rfh-row);font-size:12.5px;color:var(--muted);white-space:nowrap}
.rfh-names span.rfh-g,.rfh-names span.rfh-s{font-weight:700}
.rfh-scale{position:relative;touch-action:none;cursor:pointer;display:grid;grid-auto-rows:var(--rfh-row);border-radius:8px}
.rfh-scale:focus-visible{outline:2px solid var(--accent)}
.rfh-scale i{position:absolute;inset-inline-start:50%;display:block}
.rfh-track{top:calc(var(--rfh-row)/2);bottom:calc(var(--rfh-row)/2);width:3px;margin-inline-start:-1.5px;border-radius:2px;background:var(--line)}
.rfh-fill{bottom:calc(var(--rfh-row)/2);width:3px;margin-inline-start:-1.5px;background:currentColor;transition:height .18s}
.rfh-tick{width:12px;height:1px;margin-inline-start:-6px;background:var(--muted);opacity:.5}
.rfh-scale .rfh-tick:nth-child(3){top:calc(var(--rfh-row)*.5)}.rfh-scale .rfh-tick:nth-child(4){top:calc(var(--rfh-row)*1.5)}.rfh-scale .rfh-tick:nth-child(5){top:calc(var(--rfh-row)*2.5)}.rfh-scale .rfh-tick:nth-child(6){top:calc(var(--rfh-row)*3.5)}.rfh-scale .rfh-tick:nth-child(7){top:calc(var(--rfh-row)*4.5)}.rfh-scale .rfh-tick:nth-child(8){top:calc(var(--rfh-row)*5.5)}.rfh-scale .rfh-tick:nth-child(9){top:calc(var(--rfh-row)*6.5)}.rfh-scale .rfh-tick:nth-child(10){top:calc(var(--rfh-row)*7.5)}.rfh-scale .rfh-tick:nth-child(11){top:calc(var(--rfh-row)*8.5)}
.rfh-scale b{position:absolute;inset-inline-start:50%;margin-inline-start:-12px;top:calc(var(--rfh-row)*var(--row,0) + var(--rfh-row)/2 - 12px);width:24px;height:24px;box-sizing:border-box;border-radius:50%;background:var(--panel,#0a202c);border:2.5px solid currentColor;transition:top .18s}
.rfh-scale b[hidden]{display:none}
.rfh-art{width:100%;height:100%;color:var(--text);overflow:visible}
.rfh-line{stroke:var(--accent);stroke-width:3.5;stroke-linecap:round;transition:transform .3s cubic-bezier(.25,.9,.3,1),opacity .15s}
line.rfh-s{stroke:#ffc72c}
.rfh-value{margin:8px 0 0;font-size:15px;font-weight:700;min-height:22px}.rfh-value.empty{font-weight:400;font-size:13px;color:var(--muted)}
#rfNext[disabled]{opacity:.45}
@media(prefers-reduced-motion:reduce){.rfh-line,.rfh-fill,.rfh-scale b{transition:none}}
.rfh-body{grid-template-rows:calc(9 * var(--rfh-row))}
.rfh-art{height:calc(9 * var(--rfh-row));max-width:100%}
.rfh-scale{height:calc(9 * var(--rfh-row))}
/* The height step always fits one screen: the location shrinks to one row and the scales share what is left */
#rfHeight{--rfh-used:426px;--rfh-row:clamp(23px,calc((100vh - var(--rfh-used))/9),44px);--rfh-row:clamp(23px,calc((100dvh - var(--rfh-used))/9),44px);margin-top:0}
#formDialog:has(#reportTestBanner:not([hidden])) #rfHeight{--rfh-used:468px}
.rfh-value{margin-top:4px}
#form[data-step=height] #reportLocationStatus{display:none}
#form[data-step=height] .rf-top{margin-bottom:2px;grid-template-columns:minmax(0,1fr)}
#form[data-step=height] .rf-top>:first-child{position:relative;min-height:44px}
#form[data-step=height] .rf-location-actions{position:absolute;inset-block-start:2px;inset-inline-end:0;width:auto}
#form[data-step=height] .rf-location-actions button{min-height:38px;padding-block:4px}
@media(prefers-reduced-motion:reduce){.rfh-line,.rfh-fill,.rfh-scale b{transition:none}}
/* Location and time in one line under the title (12.11): the old location row is hidden, the point-name field lives in the location picker */
#formDialog .rf-head{display:flex;flex-direction:column;align-items:stretch;flex:1;min-width:0;line-height:1.15}
/* The location line is a field: border, pin, name · time, "שינוי" (14.11). The whole field opens the picker. */
#formDialog #reportLocationLine{display:flex;align-items:center;gap:10px;width:100%;max-width:100%;height:52px;min-height:52px;margin:10px 0 0;padding:0 14px;box-sizing:border-box;border:1px solid var(--line)!important;border-radius:var(--r-ctl,12px)!important;background:var(--panel)!important;box-shadow:none!important;color:var(--text);font:inherit;font-size:15px;font-weight:600;text-align:start;cursor:pointer}
#formDialog #reportLocationLine .rfl-pin,#formDialog #reportLocationLine .rfl-spin{flex:0 0 auto;color:var(--accent)}
#formDialog #reportLocationLine .rfl-spin{display:none;color:var(--muted)}
#formDialog #reportLocationLine .rfl-text{flex:1;display:flex;gap:6px;min-width:0;overflow:hidden;white-space:nowrap}
#formDialog #reportLocationLine .rfl-name{flex:0 0 auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#formDialog #reportLocationLine .rfl-time:not(:empty)::before{content:"·";margin-inline-end:6px}
#formDialog #reportLocationLine .rfl-time{flex:0 4 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-weight:400}
#formDialog #reportLocationLine .rfl-change{flex:0 0 auto;color:var(--accent);font-size:14px;font-weight:600}
#formDialog #reportLocationLine[data-pending=true] .rfl-name{color:var(--muted);font-weight:400}
#formDialog #reportLocationLine[data-pending=true] .rfl-pin{display:none}
#formDialog #reportLocationLine[data-pending=true] .rfl-spin{display:block;animation:rfl-spin 1s linear infinite}
@keyframes rfl-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#formDialog #reportLocationLine[data-pending=true] .rfl-spin{animation:none}}
#formDialog #reportLocationLine:disabled{cursor:default;opacity:1}
#formDialog #reportLocationLine:disabled .rfl-change{display:none}
#formDialog .rfl-note{margin:6px 4px 0;font-size:13px;line-height:1.3;color:var(--muted)}
#formDialog .rfl-note[hidden]{display:none}
#formDialog .rfl-note[data-warn=true]{color:#E9B872}
body.light #formDialog .rfl-note[data-warn=true]{color:#8A5310}
#formDialog .rfl-note[data-warn=true]::before{content:"ⓘ";margin-inline-end:5px}
#formDialog #rf2s1>.rf-top,#formDialog #rf2s1>#coords{display:none}
#reportLocationDialog .rfl-namebox{margin:10px 0}
#reportLocationDialog .rfl-namebox label{display:block;font-size:13px;color:var(--muted);margin-bottom:4px}
#reportLocationDialog .rfl-namebox input{width:100%;box-sizing:border-box}
#reportLocationDialog .rfl-namebox[hidden]{display:none}
/* Location picker: "אישור המיקום" stays visible without scrolling (14.11). The map gives up height first. */
#reportLocationDialog[open]{display:flex;flex-direction:column;box-sizing:border-box}
#reportLocationDialog[open]>*{flex-shrink:0}
#reportLocationDialog[open]>#reportLocationMap{flex:0 1 52dvh;height:auto;min-height:150px}
/* break character (15.11): five text chips, optional note for "mixed" */
.rf2-shape .rf2-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.rf2-shape .rf2-choices button{min-height:44px}
.rf2-shape-note{margin-top:8px}.rf2-shape-note[hidden]{display:none}.rf2-shape-note textarea{width:100%;box-sizing:border-box;font:inherit;font-size:14px;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:8px 10px;resize:none}
.rf2-shape-note small{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:4px}
