/* Explicit format and literal per-language announcement controls. */
#western-format-section{border:1px solid #d2ddce;border-radius:10px;padding:18px;background:#f7f7ef;margin-bottom:18px}
#western-format-section[hidden],.notice-passing-section [hidden]{display:none!important}
.notice-format-columns{border:0;padding:0;margin:16px 0}.notice-format-columns legend{font-size:14px;font-weight:600}.notice-format-columns>div{display:flex;gap:12px;flex-wrap:wrap}.notice-format-columns button{display:grid;justify-items:center;gap:6px;padding:10px 16px;border:1px solid #cdd9c8;border-radius:7px;background:#fffefa;color:#244f42;cursor:pointer}.notice-format-columns button[aria-pressed=true]{outline:2px solid #32624d;outline-offset:1px}.notice-format-columns svg{width:64px;height:64px}.notice-format-columns button:focus-visible{outline:3px solid #846e42}
.notice-passing-section{border-block:1px solid #d9e2d4;padding:14px 0;margin:14px 0}.notice-passing-section textarea{width:100%;box-sizing:border-box;min-height:90px}.notice-passing-review:not(:empty){color:#865326;border-left:3px solid #b89753;padding-left:9px}.notice-passing-section>div+div{margin-top:16px}
#western-format-section .notice-design-picker{display:flex;gap:8px;flex-wrap:wrap}#western-format-section .notice-design-picker button{flex:1 1 120px;min-width:0}#western-format-section .notice-design-picker svg{height:70px;max-width:100%}#western-format-section .notice-design-picker span{font-size:12px;white-space:normal}
#western-length-guidance{background:#f8f1dc;border:1px solid #e1d4af;padding:10px;border-radius:6px;font-size:13px;line-height:1.6}#western-length-guidance[hidden]{display:none!important}
/* Reuse the notice editor's native family-dialog shell and focus behavior. */
#generator-form .notice-label-with-help{display:inline-flex;align-items:center;gap:4px;margin-bottom:4px;min-height:44px}
#generator-form .notice-help-button{position:relative;display:inline-grid;place-items:center;flex:none;width:44px;height:44px;margin:0;border:0;background:transparent;color:#315b50;padding:0;vertical-align:middle;cursor:pointer}
#generator-form .notice-help-button:before{content:"";position:absolute;width:28px;height:28px;border:1px solid #aebdb5;border-radius:50%;background:#fbfaf6}
#generator-form .notice-help-button span{position:relative;font-size:15px;font-weight:600}
#generator-form .form-row:has(.notice-help-button)>.form-group>label{min-height:44px;display:flex;align-items:center;margin-bottom:4px}
.notice-help-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;background:#fbfaf6;overflow:auto}
.notice-help-dialog header,.notice-help-dialog footer{background:#fbfaf6}
.notice-help-dialog h2{margin:0;font-size:1.25rem;color:#214d3e}
.notice-help-dialog p{line-height:1.7;margin:0 0 12px;overflow-wrap:anywhere}
.notice-help-dialog .notice-help-example{padding:12px;border:1px solid #dce3d7;border-radius:8px;background:#f0f3eb}
.notice-help-dialog button{padding:9px 20px;border:1px solid #315b50;border-radius:6px;background:#214d3e;color:#fff;cursor:pointer}
.notice-help-dialog button:focus-visible{outline:3px solid #b99253;outline-offset:3px}

.notice-message-templates article{padding:16px 0;border-top:1px solid #dce3d7}
.notice-message-templates article h3{font-size:1.05rem;line-height:1.5;margin:0 0 8px;color:#214d3e}
.notice-message-templates article button{min-height:44px;max-width:100%;white-space:normal}
.notice-message-templates select{margin-top:8px}
.notice-message-templates [hidden]{display:none!important}
#western-format-section .notice-format-columns>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#western-format-section .notice-format-columns button{min-width:0;padding:12px 8px;gap:5px}
#western-format-section .notice-format-columns small{font-size:12px;line-height:1.4;color:#586d60}
#western-format-section .notice-format-columns svg{height:64px;width:76px}
#notice-template-picker[hidden]{display:none!important}
#western-format-section .notice-format-columns button[hidden]{display:none!important}
@media(min-width:601px){#western-format-section .notice-format-columns>div{grid-template-columns:repeat(3,minmax(0,1fr))}}
#western-format-section .notice-format-columns>div:has([data-western-legacy-only]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){#western-format-section .notice-format-columns>div:not(:has([data-western-legacy-only]:not([hidden]))) [data-western-format=portrait1]{grid-column:1/-1}}
/* The preview header owns its zoom action; guidance describes only the rendered model. */
#notice-preview-panel .preview-title-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:10px}
#notice-preview-panel #notice-open-zoom{width:auto!important;margin:0!important;padding:8px 0!important;font-size:13px;line-height:1.5;white-space:normal;text-align:right}
#preview-lunar-status{grid-column:1/-1}
body[data-notice-design=western] #preview-lunar-status{display:none}
#notice-use-portrait{width:auto!important;display:inline-block;margin:0 0 10px}
#notice-use-portrait[hidden]{display:none!important}
@media(max-width:600px){#notice-preview-panel .preview-title{font-size:16px}#notice-preview-panel #notice-open-zoom{font-size:12px;max-width:165px}}
