/* 共用編輯配色：外層紅框、內層青綠標題與目前欄位黃底。 */
body details:not(.guide){border-color:#dc2626;background:#f7f8f7;overflow:hidden}
body details:not(.guide)[open]{background:#fff8f5}
body details:not(.guide)>summary{background:#f7f8f7}
body details:not(.guide)[open]>summary{background:#fee9e7;border-bottom-color:#efb8b3;box-shadow:inset 4px 0 #dc2626}
body details details:not(.guide){border-color:#d1d5db}
/* 內層功能在展開與收合時維持同色，內容沿用各功能原本底色。
   活動編輯另含 ID 選擇器，因此一併覆寫，避免被舊的淡紅樣式蓋過。 */
body details details:not(.guide)>summary,
body details details:not(.guide)[open]>summary,
body #eventForm details:not(.guide)>summary,
body #eventForm details:not(.guide)[open]>summary{background:#dcece7;border-left-color:#6b9689;border-bottom-color:#b8d2c7;box-shadow:inset 4px 0 #6b9689;color:#153d3a}
/* 第三層（例如 e1、e2、e3）改用淡杏黃，與青綠父層區隔。
   依巢狀層級套用，亦涵蓋動態建立的子功能。 */
body details details details:not(.guide)>summary,
body details details details:not(.guide)[open]>summary,
body #eventForm details details:not(.guide)>summary,
body #eventForm details details:not(.guide)[open]>summary{background:#f5dfb3;border-left-color:#b58a45;border-bottom-color:#dec18d;box-shadow:inset 4px 0 #b58a45;color:#153d3a}
body form:not(#eventForm){border:1px solid #dc2626;border-radius:14px;background:#fff8f5}
body input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),
body select,body textarea{background:#fff;border-color:#b8bec5}
body input:not([type=checkbox]):not([type=radio]):focus,
body select:focus,body textarea:focus{background:#fff8db;border-color:#b45309;outline:2px solid #b45309;outline-offset:1px;box-shadow:none}
body #eventForm>details input:not([type=checkbox]):not([type=radio]):focus,
body #eventForm>details select:focus,body #eventForm>details textarea:focus{background:#fff8db}
