/* Font dimensions use output pixels; the renderer scales them with the LED. */
.led-clock b{font-size:var(--clock-font-size,3.25em)}
.led-clock>span{font-size:var(--date-font-size,.75em)}
.led-weather b{font-size:var(--temperature-font-size,2.2em)}
.led-weather div>span{font-size:var(--weather-font-size,.58em)}
.led-layer-widgets .led-layer-background,.led-layer-ticker .led-layer-background{background:#2563eb}
.background-color-control{margin:0 0 20px}
.background-color-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:end;margin:0 0 16px}
.background-color-control .background-color-row label{margin:0;font-size:13px}
.background-color-control input[type=color]{width:52px;height:42px;min-height:42px;padding:3px;cursor:pointer;border-radius:6px}
.background-color-control input[data-color-hex]{font-family:monospace;text-transform:uppercase;font-size:14px}
.background-color-control input.background-hue{appearance:none;-webkit-appearance:none;min-height:16px;height:16px;border:0;border-radius:20px;padding:0!important;margin:6px 0 12px;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);cursor:pointer;width:100%}
.background-hue::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;background:#fff;border:2px solid #73618a;border-radius:50%;box-shadow:0 1px 4px #0004}
.background-hue::-moz-range-thumb{width:18px;height:18px;background:#fff;border:2px solid #73618a;border-radius:50%}
/* LED motion is explicitly selected with "Chay chu" in the saved scene.
   Keep that playback choice when Windows/RDP requests reduced UI motion;
   otherwise the global reduced-motion rule strands text beyond the clip. */
.led-layer-ticker:not(.is-static) .led-ticker>.led-layer-content{animation:ticker 22s linear infinite!important}
.led-layer-ticker.is-static .led-ticker{white-space:normal;padding:0 .5em}
.led-layer-ticker.is-static .led-ticker span{animation:none;padding-left:0;min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.25}
.output-panel.output-panel{flex-direction:column;align-items:stretch;gap:18px}
.output-panel #output-form{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(90px,1fr)) auto;gap:14px;align-items:end}
.output-panel #output-form>label{grid-column:auto;font-size:14px;min-width:0}
.output-panel #output-form input:not([type=checkbox]),.output-panel #output-form select{width:100%!important;min-width:0;min-height:42px;font-size:14px!important}
.output-panel #output-form>.button{grid-column:auto;min-height:42px;font-size:14px}
.output-panel #output-form>.output-scale{grid-column:1/-1;margin:0!important;font-size:14px!important;align-items:center;justify-content:flex-start;flex-direction:row}
.output-panel #output-form input[type=checkbox]{width:16px!important;min-width:16px}
.output-size-hint{grid-column:1/-1;font-size:13px;color:#7c7087;margin:0;line-height:1.6}
.scene-stage-meta #editor-output-size{pointer-events:auto;border:1px solid #667386;background:#202a38d9;color:#e7eef7;border-radius:6px;padding:8px 10px;font-size:13px;white-space:nowrap}
.scene-stage-meta #editor-output-size:hover,.scene-stage-meta #editor-output-size:focus-visible{background:#38455a;outline:2px solid #c3b0ef;outline-offset:2px}
.typography-section textarea,#widget-form textarea{width:100%;resize:vertical;min-height:88px;font:inherit;font-size:14px;color:#493956;border:1px solid #d8cee8;border-radius:6px;padding:10px;line-height:1.6}
.content-icon-picker{margin:4px 0 18px;padding:10px 12px;background:#f8f6fc;border:1px solid #e6dff0;border-radius:7px;font-size:14px;color:#5f4c76}
.content-icon-picker summary{cursor:pointer;font-weight:500;min-height:24px}
.content-icon-picker small{display:block;font-size:12px;line-height:1.5;color:#81728f;margin-top:8px}
.content-icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-top:10px}
.content-icon-grid button{font-size:22px;line-height:1;min-height:38px;min-width:0;padding:5px;border-radius:5px;background:white;border:1px solid #e5deed}
.content-icon-grid button:hover,.content-icon-grid button:focus-visible{background:#e8def8;outline:2px solid #a88acb}
.typography-section .content-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.widget-font-fields{padding:15px;margin:12px 0 20px;border:1px solid #e2d9ee;border-radius:7px}
.widget-font-fields legend{font-size:14px;padding:0 5px;color:#604975}
.widget-font-fields p{font-size:13px;margin:0;color:#81728f}
@media(max-width:1100px){.output-panel #output-form{grid-template-columns:repeat(3,minmax(0,1fr))}.output-panel #output-form>.output-preset{grid-column:1/-1}.output-panel #output-form>.button{grid-column:1/-1}}
@media(max-width:600px){.output-panel #output-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.output-panel #output-form>label:nth-of-type(4){grid-column:1/-1}.scene-stage-meta #editor-output-size{font-size:12px;padding:6px 8px}.content-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
