.avTopicNotice, .fr-element .avTopicNoticeEditor { --av-topic-accent: #bd5326; --av-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='16'/%3E%3Cpath d='M18 18h2v11m-3 0h6M20 11v1'/%3E%3C/svg%3E"); box-sizing: border-box; position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 100%; min-width: 0; margin: 12px 0; padding: 16px; border: 1px solid #ead2bd; border-left: 3px solid var(--av-topic-accent); border-radius: 8px; background: #fff9f1; color: #49382c; font: inherit; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.avTopicNotice--tip, .fr-element .avTopicNoticeEditor[data-avnotice="tip"] { --av-topic-accent: #395e81; --av-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 27c0-6-6-7-6-14a13 13 0 0 1 26 0c0 7-6 8-6 14v3H13zM14 33h12l-3 5h-6z'/%3E%3C/svg%3E"); }
.avTopicNotice--warning, .fr-element .avTopicNoticeEditor[data-avnotice="warning"] { --av-topic-accent: #b87b1b; --av-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.4 5.5a3 3 0 0 1 5.2 0l15 26A3 3 0 0 1 35 36H5a3 3 0 0 1-2.6-4.5zM20 14v10m0 5v1'/%3E%3C/svg%3E"); }
.avTopicNotice--conditions, .fr-element .avTopicNoticeEditor[data-avnotice="conditions"] { --av-topic-accent: #705038; --av-topic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6H7a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h26a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-6M16 2h8l3 7H13zM12 23l6 6 11-12'/%3E%3C/svg%3E"); }
.avTopicNotice-icon, .fr-element .avTopicNoticeEditor::before { content: ''; display: block; flex: 0 0 24px; width: 24px; height: 28px; margin-top: 1px; background: var(--av-topic-accent); -webkit-mask: var(--av-topic-icon) center / contain no-repeat; mask: var(--av-topic-icon) center / contain no-repeat; }
.avTopicNotice-content { min-width: 0; flex: 1 1 auto; }
.avTopicNotice-title, .fr-element .avTopicNoticeEditor-title { margin: 0 0 4px; color: var(--av-topic-accent); font-size: 16px; font-weight: 600; line-height: 1.4; }
.avTopicNotice-body, .fr-element .avTopicNoticeEditor-body { min-width: 0; color: #49382c; }
.avTopicNotice-body > :first-child, .fr-element .avTopicNoticeEditor-body > :first-child { margin-top: 0; }
.avTopicNotice-body > :last-child, .fr-element .avTopicNoticeEditor-body > :last-child { margin-bottom: 0; }
.avTopicNotice-body img, .fr-element .avTopicNoticeEditor-body img { max-width: 100%; height: auto; }
.fr-element .avTopicNoticeEditor { display: block; padding-left: 52px; }
.fr-element .avTopicNoticeEditor::before { position: absolute; top: 16px; left: 16px; }
.fr-element .avTopicNoticeEditor-title { cursor: default; -webkit-user-select: none; user-select: none; }
.avTopicTable, .fr-element .avTopicTableEditor { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 16px 0; color: inherit; font: inherit; line-height: 1.45; }
.avTopicTable-scroll, .fr-element .avTopicTableEditor { overflow-x: auto; border: 1px solid #e0ccbb; border-radius: 8px; background: #fff; scrollbar-color: #baa696 #f4ede7; scrollbar-width: thin; }
.avTopicTable-scroll > .bbTable { border: 0; margin: 0; width: auto; max-width: none; overflow: visible; }
.avTopicTable-scroll table, .fr-element .avTopicTableEditor > table { width: 100%; min-width: 420px; margin: 0; border: 0; border-spacing: 0; border-collapse: collapse; table-layout: auto; font: inherit; }
.avTopicTable-scroll table > :is(tbody, thead, tfoot) > tr > :is(td, th), .fr-element .avTopicTableEditor > table > :is(tbody, thead, tfoot) > tr > :is(td, th) { box-sizing: border-box; min-width: 128px; padding: 12px 14px; border: 1px solid #e8dbd0; color: inherit; background: #fff; vertical-align: top; line-height: 1.45; }
.avTopicTable-scroll table > :is(tbody, thead, tfoot) > tr > th, .fr-element .avTopicTableEditor > table > :is(tbody, thead, tfoot) > tr > th { background: #f7e6d3; color: inherit; font-weight: 600; text-align: left; }
.avTopicTable-scroll table > :is(tbody, thead, tfoot) > tr > :is(td, th):first-child, .fr-element .avTopicTableEditor > table > :is(tbody, thead, tfoot) > tr > :is(td, th):first-child { border-left: 0; }
.avTopicTable-scroll table > :is(tbody, thead, tfoot) > tr > :is(td, th):last-child, .fr-element .avTopicTableEditor > table > :is(tbody, thead, tfoot) > tr > :is(td, th):last-child { border-right: 0; }
.avTopicTable-scroll table > :first-child > tr:first-child > :is(td, th), .fr-element .avTopicTableEditor > table > :first-child > tr:first-child > :is(td, th) { border-top: 0; }
.avTopicTable-scroll table > :last-child > tr:last-child > :is(td, th), .fr-element .avTopicTableEditor > table > :last-child > tr:last-child > :is(td, th) { border-bottom: 0; }
.avTopicTable--striped table > tbody > tr:nth-child(even) > td, .fr-element .avTopicTableEditor[data-avtable="striped"] > table > tbody > tr:nth-child(even) > td { background: #fcf9f5; }
.avTopicTable--compare table > :is(tbody, thead, tfoot) > tr > :is(td, th):not(:first-child), .fr-element .avTopicTableEditor[data-avtable="compare"] > table > :is(tbody, thead, tfoot) > tr > :is(td, th):not(:first-child) { text-align: center; }
.avTopicTable--compare table > :is(tbody, thead, tfoot) > tr > td:last-child, .fr-element .avTopicTableEditor[data-avtable="compare"] > table > :is(tbody, thead, tfoot) > tr > td:last-child { background: #fff3e7; font-weight: 600; }
.avTopicTable-hint { margin-top: 8px; color: #89705e; font-size: 13px; line-height: 1.4; }
.avTopicTable-hint[hidden], .avTopicStyling-dialog [hidden] { display: none !important; }
.avTopicTable-scroll:focus-visible { outline: 2px solid #ba6630; outline-offset: 2px; }
.avTopicStyling-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e7d5c6; background: #fffaf5; }
.avTopicStyling-insert.button { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.avTopicStyling-toolIcon { display: inline-block; width: 16px; height: 18px; flex: 0 0 16px; }
.avTopicStyling-toolIcon svg { display: block; width: 100%; height: 100%; }
.avTopicStyling-insert.button .avTopicStyling-toolIcon svg, .avTopicStyling-insert.button .avTopicStyling-toolIcon svg *, .avTopicStyling-dialog .avTopicStyling-close svg, .avTopicStyling-dialog .avTopicStyling-close svg * { fill: none !important; stroke: currentColor !important; }
.avTopicStyling-dialog { box-sizing: border-box; width: 570px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; margin: auto; padding: 24px; border: 1px solid #dec2ad; border-radius: 12px; color: #49382c; background: #fffcf8; box-shadow: 0 18px 60px #0003; font-family: inherit; font-size: 14px; line-height: 1.5; }
.avTopicStyling-dialog::backdrop { background: #23180f70; }
.avTopicStyling-dialogHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.avTopicStyling-dialogHeader h2 { margin: 4px 0 0; color: #49382c; font-size: 22px; font-weight: 600; line-height: 1.3; }
.avTopicStyling-dialog button { font: inherit; cursor: pointer; }
.avTopicStyling-close { width: 44px; height: 44px; padding: 12px; border: 1px solid #dec2ad; border-radius: 6px; color: #705038; background: #fffcf8; flex: 0 0 44px; }
.avTopicStyling-close svg { display: block; width: 18px; height: 18px; }
.avTopicStyling-field { display: block; margin: 0 0 16px; color: #49382c; font-weight: 600; }
.avTopicStyling-field > .input { box-sizing: border-box; display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 1px solid #d9bda6; border-radius: 6px; background-color: #fff; color: #49382c; font: inherit; font-weight: 400; line-height: 1.4; }
.avTopicStyling-field > textarea.input { min-height: 100px; max-height: 40vh; resize: vertical; }
.avTopicStyling-field > select.input { padding-right: 28px; }
.avTopicStyling-fieldGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.avTopicStyling-dialog .avTopicStyling-fieldGrid .avTopicStyling-field { min-width: 0; }
.avTopicStyling-dialog .avTopicStyling-fieldGrid .avTopicStyling-field > input.input[type="number"] { width: 100% !important; min-width: 0 !important; max-width: none !important; }
.avTopicStyling-checkbox { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; font-weight: 400; }
.avTopicStyling-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: #bf6a32; }
.avTopicStyling-help { margin: 4px 0 16px; color: #89705e; font-size: 13px; }
.avTopicStyling-previewSection { min-width: 0; margin-top: 20px; padding-top: 16px; border-top: 1px solid #ead2bd; }
.avTopicStyling-previewSection h3 { margin: 0 0 10px; color: #49382c; font-size: 15px; font-weight: 600; }
.avTopicStyling-preview { min-width: 0; max-height: 280px; overflow: auto; }
.avTopicStyling-preview .avTopicNotice, .avTopicStyling-preview .avTopicTable { margin: 0; }
.avTopicStyling-preview .avTopicTable td { height: 38px; }
.avTopicStyling-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 24px -24px -24px; padding: 16px 24px; border-top: 1px solid #ead2bd; }
.avTopicStyling-actions .button { min-height: 44px; padding: 9px 18px; border: 1px solid #ba6630; border-radius: 6px; background: #fff; color: #80502f; font: inherit; }
.avTopicStyling-dialog .avTopicStyling-actions .button.button--primary { border-color: #ba6630 !important; background: #bf6a32 !important; color: #fff !important; }
.avTopicStyling-actions .avTopicStyling-remove { margin-right: auto; padding-left: 0; padding-right: 8px; border-color: transparent; background: transparent; color: #89705e; }
.avTopicStyling-dialog .avTopicStyling-error { margin: 10px 0 0; color: #a6392e; }
.avTopicStyling-dialog button:focus-visible, .avTopicStyling-dialog .input:focus-visible, .avTopicStyling-insert:focus-visible { outline: 2px solid #ba6630; outline-offset: 2px; }
.avTopicStyling-toast { box-sizing: border-box; position: fixed; z-index: 10000; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 11px 16px; border-radius: 8px; color: #fff; background: #4b7351; font-family: inherit; font-size: 14px; line-height: 1.4; pointer-events: none; }
.avTopicStyling-toast.is-error { background: #84533a; }
.avTopicStyling-toolbar { container-name: avEditorTools; container-type: inline-size; box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border-bottom: 1px solid #e7d5c6; background: #fffaf5; }
.avTopicStyling-toolbarActions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; min-width: 0; }
.avTopicStyling-toolbar .avelonItemEditor-tools, .avTopicStyling-toolbar .avThreadTimer-tools, .avTopicStyling-toolbar .avCopyText-tools, .avTopicStyling-toolbar .avTopicStyling-tools { display: contents !important; }
.avTopicStyling-toolbar .avelonItemEditor-tools > span { display: none !important; }
.avTopicStyling-toolbar .button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto; gap: 8px; min-width: 0; max-width: 100%; min-height: 40px !important; margin: 0; padding: 8px 12px; border: 1px solid #dec2ad !important; border-radius: 6px; background: #fff !important; color: #80502f !important; font-family: inherit !important; font-size: 14px !important; font-weight: 400; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; order: 100; }
.avTopicStyling-toolbar .button:hover { background: #fff3e6 !important; border-color: #c99b76 !important; }
.avTopicStyling-toolbar .button { transition: none !important; transform: none !important; box-shadow: none !important; }
.avTopicStyling-toolbar .button:focus-visible { outline: 2px solid #ba6630; outline-offset: 2px; }
.avTopicStyling-toolbar .button[data-avtopic-action="item"] { order: 10; }
.avTopicStyling-toolbar .button[data-avtopic-action="timer"] { order: 20; }
.avTopicStyling-toolbar .button[data-avtopic-action="copy"] { order: 30; }
.avTopicStyling-toolbar .button[data-avtopic-action="notice"] { order: 40; }
.avTopicStyling-toolbar .button[data-avtopic-action="table"] { order: 50; }
.avTopicStyling-toolbar .avTopicStyling-toolLabel { min-width: 0; }
.avTopicStyling-toolbar .avTopicStyling-itemIcon, .avTopicStyling-toolbar .avTopicStyling-toolIcon, .avTopicStyling-toolbar .avThreadTimer-buttonClock { box-sizing: border-box; display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; }
.avTopicStyling-toolbar .avTopicStyling-itemIcon svg, .avTopicStyling-toolbar .avTopicStyling-toolIcon svg { display: block; width: 16px; height: 16px; }
.avTopicStyling-toolbar .avTopicStyling-itemIcon svg, .avTopicStyling-toolbar .avTopicStyling-itemIcon svg *, .avTopicStyling-toolbar .avTopicStyling-toolIcon svg, .avTopicStyling-toolbar .avTopicStyling-toolIcon svg * { fill: none !important; stroke: currentColor !important; }
.avTopicStyling-toolbar .avCopyText-buttonIcon { flex: 0 0 12px; width: 12px; height: 14px; margin: 2px 0 0 3px; }
@container avEditorTools (max-width: 640px) {
    .avTopicStyling-toolbarActions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avTopicStyling-toolbar .button { width: 100%; min-height: 44px !important; white-space: normal; }
    .avTopicStyling-toolbar[data-avtopic-odd="true"] .button[data-avtopic-last="true"] { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .avTopicNotice, .fr-element .avTopicNoticeEditor { padding: 14px; }
    .fr-element .avTopicNoticeEditor { padding-left: 50px; }
    .fr-element .avTopicNoticeEditor::before { top: 14px; left: 14px; }
    .avTopicStyling-insert.button { min-height: 40px; }
    .avTopicStyling-dialog { padding: 16px; }
    .avTopicStyling-dialogHeader h2 { font-size: 21px; }
    .avTopicStyling-actions { margin: 20px -16px -16px; padding: 14px 16px; }
    .avTopicStyling-actions .button { flex: 1 1 auto; }
    .avTopicStyling-actions .avTopicStyling-remove { flex-basis: 100%; margin-right: 0; }
    .avTopicStyling-toolbarActions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avTopicStyling-toolbar .button { width: 100%; min-height: 44px !important; white-space: normal; }
    .avTopicStyling-toolbar[data-avtopic-odd="true"] .button[data-avtopic-last="true"] { grid-column: 1 / -1; }
}
