.avThreadTimer { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; width: 100%; margin: 16px 0; padding: 20px; border: 1px solid #ead2bd; border-radius: 10px; background: #fff9f1; color: #49382c; text-align: left; font-size: 15px; line-height: 1.4; }
.avThreadTimer [hidden], .avThreadTimer-dialog [hidden] { display: none !important; }
.avThreadTimer-info { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 260px; }
.avThreadTimer-copy { min-width: 0; }
.avThreadTimer-icon { position: relative; width: 40px; height: 40px; box-sizing: border-box; border: 2px solid #c97739; border-radius: 50%; flex: 0 0 40px; }
.avThreadTimer-icon:before { content: ''; position: absolute; width: 2px; height: 11px; left: 17px; top: 7px; background: #c97739; }
.avThreadTimer-icon:after { content: ''; position: absolute; width: 9px; height: 2px; left: 17px; top: 17px; background: #c97739; }
.avThreadTimer-kicker { color: #9c6c4d; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 4px; }
.avThreadTimer-title { font-size: 20px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.avThreadTimer-date { display: block; color: #826855; font-size: 13px; margin-top: 6px; }
.avThreadTimer-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; flex: 0 1 288px; min-width: 260px; }
.avThreadTimer-units > span { display: flex; flex-direction: column; align-items: center; padding: 9px 7px 7px; min-width: 0; background: #fffdfa; border: 1px solid #eddbc9; border-radius: 7px; }
.avThreadTimer-units b { font-size: 25px; line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; color: #b7642d; }
.avThreadTimer-units b.avThreadTimer-smallDigits { font-size: 17px; line-height: 1.7; }
.avThreadTimer-units small { font-size: 10px; line-height: 1.4; color: #94745c; margin-top: 5px; }
.avThreadTimer-ended { color: #3d7454; background: #eff6ef; border: 1px solid #d5e4d6; padding: 10px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; }
.avThreadTimer.is-ended { background: #fafbf7; border-color: #dbe3d6; }
.avThreadTimer.is-ended .avThreadTimer-kicker { color: #6d8263; }
.avThreadTimer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e7d5c6; background: #fffaf5; }
.avThreadTimer-insert.button { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.avThreadTimer-buttonClock { position: relative; display: inline-block; box-sizing: border-box; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; }
.avThreadTimer-buttonClock:before { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.avThreadTimer-dialog { box-sizing: border-box; width: 610px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; margin: auto; padding: 24px; border: 1px solid #e0c9b6; border-radius: 12px; color: #49382c; background: #fffcf8; box-shadow: 0 18px 60px #0003; font-family: inherit; font-size: 14px; line-height: 1.5; }
.avThreadTimer-dialog::backdrop { background: #23180f70; }
.avThreadTimer-dialogHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avThreadTimer-dialogHeader h2 { margin: 0; font-size: 22px; font-weight: 600; color: #583c29; }
.avThreadTimer-close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #856c5c; cursor: pointer; font-size: 28px; flex: 0 0 44px; }
.avThreadTimer-help { margin: 6px 0 20px; color: #826855; }
.avThreadTimer-dialog label { display: block; margin: 14px 0 6px; font-weight: 600; }
.avThreadTimer-dialog .input { box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d5bda9; border-radius: 6px; background: #fff; color: #49382c; font: inherit; }
.avThreadTimer-dialog input:focus-visible, .avThreadTimer-dialog button:focus-visible { outline: 2px solid #d98946; outline-offset: 2px; }
.avThreadTimer-hint { margin: 6px 0 20px; color: #856c5c; font-size: 12px; }
.avThreadTimer-previewLabel { color: #856c5c; font-size: 12px; }
.avThreadTimer-preview .avThreadTimer { margin: 8px 0 20px; padding: 16px; gap: 16px; }
.avThreadTimer-preview .avThreadTimer-title { font-size: 18px; }
.avThreadTimer-preview .avThreadTimer-units { flex-basis: 100%; }
.avThreadTimer-error { color: #a6392e; padding: 10px 12px; background: #fff1ec; border-radius: 6px; }
.avThreadTimer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.avThreadTimer-actions .button { min-height: 44px; padding: 9px 16px; font: inherit; cursor: pointer; border: 1px solid #dec2ad; border-radius: 6px; background: #fff; color: #865330; }
.avThreadTimer-actions .button--primary { border-color: #ba6630; background: #bf6a32; color: #fff; }
@media (max-width: 480px) {
    .avThreadTimer { padding: 16px; gap: 16px; }
    .avThreadTimer-info { gap: 12px; flex-basis: 100%; }
    .avThreadTimer-title { font-size: 18px; }
    .avThreadTimer-units { min-width: 0; flex-basis: 100%; width: 100%; gap: 6px; }
    .avThreadTimer-units > span { padding: 9px 3px 7px; }
    .avThreadTimer-units b { font-size: 23px; }
    .avThreadTimer-dialog { padding: 16px; }
    .avThreadTimer-dialogHeader h2 { font-size: 20px; }
    .avThreadTimer-actions .button { flex: 1 1 auto; }
    .avThreadTimer-insert.button { min-height: 40px; }
}
