/* Reusable display widgets, kept independent of commands and dashboard layout. */
.nh-state-widget{--widget-color:currentColor;--widget-background:transparent;--widget-size:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;max-width:100%;color:var(--widget-color);background:var(--widget-background);border-radius:10px;padding:5px;overflow-wrap:anywhere;line-height:1.2;text-align:center}
.wg-assets-dialog{width:min(850px,94vw);max-width:94vw;max-height:88vh;overflow:auto;border:1px solid #cdded3;border-radius:18px;padding:24px;background:#fbfdfb;color:#204333}.wg-assets-dialog::backdrop{background:#0b211bd0;backdrop-filter:blur(3px)}.wg-assets-dialog h2{font-size:19px;margin:0}.wg-assets-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.wg-asset{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #dbe7de;border-radius:12px;background:#fff;min-width:0}.wg-asset-thumbnail{width:100%;height:110px;object-fit:contain;background:#f5f8f5;border-radius:8px}.wg-asset-name{font-size:12px;line-height:1.45;overflow-wrap:anywhere}.wg-asset-usage{font-size:10px;color:#7a7254;line-height:1.5;margin:0}.wg-asset>.wg-button{margin-top:auto}.wg-assets-dialog .wg-help{color:#718277}.wg-list-code{font:600 16px ui-monospace,monospace;display:flex;align-items:center;justify-content:center;color:#557a68}
@media(max-width:600px){.wg-assets-dialog{padding:16px}.wg-assets-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wg-asset{padding:10px}.wg-asset-thumbnail{height:85px}}
.nh-state-widget[hidden]{display:none!important}.nh-widget-icon{display:inline-flex;width:var(--widget-size);height:var(--widget-size);max-width:100%;align-items:center;justify-content:center;flex:none}.nh-widget-icon svg{display:block;width:100%;height:100%;fill:currentColor}.nh-widget-icon-missing{font-size:var(--widget-size)}.nh-widget-caption{font-size:13px;line-height:1.4}.nh-widget-text{font-size:var(--widget-size);font-weight:650;max-width:100%}.nh-widget-image{max-width:100%;max-height:180px;object-fit:contain;display:block}.nh-widget-html{width:100%;height:160px;min-height:80px;border:0;display:block;pointer-events:none;background:transparent}.nh-widget-placeholder{font-size:12px;color:#6b8178}.touch-widget-visual{flex:1;min-height:0;min-width:0;max-width:100%;width:100%}.touch-inline-head>.touch-widget-visual{flex:0 1 auto;width:auto;max-width:42%}.touch-widget-visual .nh-widget-image{max-height:120px}.touch-widget-visual .nh-widget-html{height:150px}.touch-preview .nh-widget-html{pointer-events:none}
.widgets-workspace{--wg-ink:#183d34;--wg-muted:#6e8179;--wg-line:#dce6df;--wg-panel:#fff;--wg-accent:#266d55;color:var(--wg-ink);max-width:1580px;margin:0 auto}.widgets-workspace *,.wg-icon-dialog *{box-sizing:border-box}.widgets-workspace [hidden]{display:none!important}.wg-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin:0 0 26px}.wg-heading h1{font-size:32px;letter-spacing:-.04em;margin:5px 0 9px;color:var(--wg-ink)}.wg-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:750;color:var(--wg-muted);margin:0 0 7px}.wg-intro{color:var(--wg-muted);font-size:13px;line-height:1.7;max-width:660px;margin:0}.wg-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wg-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 13px;border:1px solid var(--wg-line,#dce6df);border-radius:9px;background:#fff;color:var(--wg-ink,#183d34);font:inherit;font-size:12px;font-weight:650;cursor:pointer;line-height:1.4}.wg-primary{background:var(--wg-accent,#266d55);border-color:var(--wg-accent,#266d55);color:#fff}.wg-secondary{background:#f4f8f5}.wg-danger{color:#a34c48}.wg-button:disabled{opacity:.5;cursor:default}.wg-button:hover:not(:disabled){box-shadow:0 2px 9px #143f3312;border-color:#8ab5a1}.wg-button:focus-visible,.wg-link:focus-visible,.wg-icon-button:focus-visible,.wg-icon-cell:focus-visible,.wg-list-item:focus-visible{outline:3px solid #81bca6;outline-offset:2px}.wg-link{border:0;background:transparent;color:var(--wg-accent,#266d55);font:inherit;font-size:11px;text-decoration:underline;padding:7px;cursor:pointer}.wg-workbench{display:grid;grid-template-columns:240px minmax(0,1fr) 250px;gap:20px;align-items:start}.wg-library,.wg-editor,.wg-preview-column{background:var(--wg-panel);border:1px solid var(--wg-line);border-radius:16px;min-width:0}.wg-library{padding:15px;position:sticky;top:20px;max-height:calc(100vh - 175px);overflow:auto}.wg-library>input{width:100%;margin-bottom:14px}.wg-list{display:flex;flex-direction:column;gap:7px}.wg-list-item{display:flex;align-items:center;gap:9px;min-height:72px;padding:10px;width:100%;border:1px solid transparent;background:#f7f9f7;border-radius:10px;text-align:left;cursor:pointer;color:var(--wg-ink)}.wg-list-item[aria-pressed=true]{border-color:#8bbba5;background:#edf6f0;box-shadow:inset 3px 0 #34795d}.wg-list-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.wg-list-copy strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.wg-list-copy small{font-size:10px;color:var(--wg-muted)}.wg-list-visual{width:40px;max-height:44px;overflow:hidden;flex:none;padding:0;--widget-size:28px!important}.wg-list-visual .nh-widget-caption{display:none}.wg-list-visual .nh-widget-image{max-height:36px}.wg-list-visual .nh-widget-html{height:40px;min-height:40px}.wg-editor{padding:22px}.wg-editor-bar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;border-bottom:1px solid var(--wg-line);padding-bottom:17px;margin-bottom:20px}.wg-save-status{font-size:11px;color:var(--wg-muted);margin-right:auto}.wg-save-status[data-dirty=true]{color:#9b741f}.wg-fields{border:0;padding:0;margin:0;min-width:0}.wg-form{border:0;padding:0;margin:0;min-width:0}.wg-field{display:flex;flex-direction:column;gap:7px;margin:0 0 16px;min-width:0}.wg-label{font-size:12px;font-weight:650;color:var(--wg-ink)}.wg-help{font-size:11px;line-height:1.65;color:var(--wg-muted);margin:6px 0 12px;font-weight:400}.wg-field>.wg-help{margin:0}.widgets-workspace input,.widgets-workspace select,.widgets-workspace textarea,.wg-icon-dialog input{background:#fbfdfb;border:1px solid #d4e0d8;border-radius:8px;padding:10px 11px;min-height:40px;font:inherit;font-size:12px;color:#1f4236;width:100%;max-width:100%;outline-color:#6ca68d}.widgets-workspace textarea{resize:vertical;min-height:75px}.widgets-workspace input[type=file]{padding:8px}.widgets-workspace input:disabled,.widgets-workspace select:disabled,.widgets-workspace textarea:disabled{opacity:.66}.wg-html-source{font-family:ui-monospace,monospace!important;line-height:1.55}.wg-section{border-top:1px solid var(--wg-line);padding-top:24px;margin-top:24px}.wg-section h2,.wg-preview-column h2{font-size:17px;letter-spacing:-.02em;margin:0 0 8px;color:var(--wg-ink)}.wg-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.wg-section-heading h2{margin:0}.wg-style-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wg-icon-choice{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wg-icon-selected{display:inline-flex;width:40px;height:40px;color:#517367}.wg-icon-selected svg{width:100%;height:100%}.wg-rule{background:#f7faf7;border:1px solid #dce6df;border-left:3px solid #87ae98;border-radius:11px;margin:18px 0;padding:16px}.wg-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:14px;font-size:13px}.wg-rule-tools{display:flex;align-items:center;gap:5px}.wg-icon-button{width:32px;height:32px;border:1px solid #d5e1d8;border-radius:7px;background:#fff;color:#325a49;cursor:pointer}.wg-icon-button:disabled{opacity:.35;cursor:default}.wg-rule-display{border-top:1px dashed #d3dfd4;padding-top:13px;margin-top:12px}.wg-rule-display>summary{font-size:12px;font-weight:650;cursor:pointer;padding:4px 0 13px}.wg-rule-display .wg-display-editor{padding-top:5px}.wg-preview-column{position:sticky;top:20px;padding:19px}.wg-live-preview{min-height:200px;border:1px dashed #bed3c7;background:#f6faf6;border-radius:13px;margin:20px 0 12px;padding:18px}.wg-preview-status{font-size:11px;color:#476d5b;line-height:1.5;font-weight:650}.wg-usage{margin-top:28px;padding-top:19px;border-top:1px solid var(--wg-line)}.wg-usage h3{font-size:12px;margin:0 0 8px}.wg-usage p{font-size:11px;line-height:1.7;color:var(--wg-muted);margin:0}.wg-empty{padding:70px 24px;text-align:center;color:var(--wg-muted);line-height:1.8;font-size:13px}.wg-empty-rules{font-size:12px;color:var(--wg-muted);padding:18px;border:1px dashed #cfdfd3;border-radius:9px}.wg-error,.wg-notice{padding:14px 17px;border:1px solid #e4c3b8;border-radius:10px;background:#fff2ec;color:#873f34;margin:0 0 18px;font-size:12px;line-height:1.65}.wg-notice{background:#fff9e9;border-color:#e1d1a2;color:#806322}.wg-icon-dialog{width:min(920px,94vw);max-width:94vw;max-height:88vh;overflow:auto;border:1px solid #cdded3;border-radius:18px;padding:24px;background:#fbfdfb;color:#204333}.wg-icon-dialog::backdrop{background:#0b211bd0;backdrop-filter:blur(3px)}.wg-icon-dialog h2{font-size:19px;margin:0}.wg-icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-bottom:18px}.wg-icon-cell{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:12px 5px;min-height:90px;background:#fff;border:1px solid #dce7df;border-radius:9px;cursor:pointer;color:#325747;overflow:hidden}.wg-icon-cell[aria-pressed=true]{background:#e2f3e9;border-color:#4e9b73}.wg-icon-cell svg{width:29px;height:29px}.wg-icon-cell span{font-size:9px;line-height:1.25;overflow-wrap:anywhere;max-width:100%}
@media(max-width:1200px){.wg-workbench{grid-template-columns:200px minmax(0,1fr)}.wg-preview-column{grid-column:2;position:static}.wg-library{grid-row:1/3}.wg-preview-column .wg-live-preview{max-width:460px}.wg-heading{flex-wrap:wrap}.wg-style-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.wg-workbench{display:flex;flex-direction:column;gap:14px}.wg-library,.wg-editor,.wg-preview-column{width:100%;position:static;max-height:none}.wg-library{padding:12px}.wg-list{max-height:240px;overflow:auto}.wg-editor{padding:16px}.wg-preview-column{order:2;padding:16px}.wg-heading h1{font-size:28px}.wg-heading{gap:15px;margin-bottom:18px}.wg-heading>.wg-actions{width:100%}.wg-heading>.wg-actions .wg-button{flex:1}.wg-style-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.wg-editor-bar>.wg-actions{order:3;width:100%}.wg-rule{padding:13px}.wg-section-heading{flex-wrap:wrap}.wg-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.wg-icon-dialog{padding:16px}.wg-icon-dialog .wg-section-heading{flex-wrap:nowrap}}
