.ticket-greeting-admin { min-width: 0; }
.tga-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tga-intro p, .tga-rule { color: var(--muted); line-height: 1.65; }
.tga-intro .tag { flex-shrink: 0; }
.tga-rule { max-width: 900px; margin: 20px 0 26px; font-size: .875rem; }
.tga-rule strong { color: var(--text); }
.ticket-greeting-admin h3 { margin: 0 0 18px; }
.tga-add-row, .tga-search-row { display: flex; gap: 10px; align-items: stretch; }
.tga-add-row input, .tga-search-row input { flex: 1; min-width: 0; }
.tga-add-row button { flex-shrink: 0; }
.tga-error { margin: 0; min-height: 23px; color: var(--danger); font-size: .8125rem; line-height: 1.6; }
.ticket-greeting-admin [aria-invalid="true"] { border-color: var(--danger); }
.tga-filter { margin: 18px 0; max-width: 650px; }
.tga-search-row button { width: 46px; min-height: 44px; padding: 10px; }
.tga-custom-list { margin: 0; padding: 0; list-style: none; max-height: 380px; overflow: auto; scrollbar-gutter: stable; }
.tga-custom-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.tga-custom-list li > span { min-width: 0; overflow-wrap: anywhere; }
.tga-custom-list button { flex-shrink: 0; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.tga-builtins, .tga-preview { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--stroke); border-radius: var(--radius-md); background: var(--panel-surface, var(--surface)); }
.ticket-greeting-admin summary { min-height: 28px; cursor: pointer; font-weight: 700; font-size: .9rem; padding: 8px 0; }
.ticket-greeting-admin summary:hover { color: var(--primary); }
.ticket-greeting-admin summary:active { color: var(--text); }
.ticket-greeting-admin details[open] > summary { margin-bottom: 14px; }
.tga-builtins ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 10px 20px; margin: 16px 0 0; padding: 0; list-style: none; max-height: 320px; overflow: auto; scrollbar-gutter: stable; }
.tga-builtins li { overflow-wrap: anywhere; font-size: .875rem; line-height: 1.5; }
.tga-preview textarea { min-height: 96px; resize: none; }
.tga-preview [data-tga-sample-result] { min-height: 25px; margin: 0; line-height: 1.6; font-size: .875rem; }
.tga-savebar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--stroke); }
.tga-savebar > p { min-height: 26px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.tga-savebar > p[data-tone="error"] { color: var(--danger); }
.tga-savebar > p[data-tone="success"] { color: var(--success); }
.tga-savebar > div { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 10px; }
.ticket-greeting-admin :is(button,summary):focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 900px) { .tga-savebar { flex-direction: column; align-items: flex-start; gap: 16px; } }
@media (max-width: 560px) { .tga-intro { flex-direction: column; gap: 12px; } .tga-add-row { flex-wrap: wrap; } .tga-add-row input { flex-basis: 100%; } .tga-builtins, .tga-preview { padding: 14px; } .tga-savebar > div { width: 100%; } .tga-savebar button { flex: 1 1 180px; } .tga-custom-list button span { display: none; } .tga-custom-list button { min-width: 44px; justify-content: center; } }
@media (forced-colors: active) { .ticket-greeting-admin :is(button,summary):focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } .ticket-greeting-admin [aria-invalid="true"] { outline: 2px solid Mark; } }
