#timbreSection {color:var(--ts-text,#20242b);padding:clamp(16px,3vw,32px);}
.timbre-heading,.timbre-history-heading {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;}
.timbre-heading h1 {font-size:28px;margin:0 0 8px;}.timbre-heading p,.timbre-help {color:var(--ts-muted,#626973);line-height:1.5;}
#timbreConnection {white-space:nowrap;font-size:13px;color:#886014;}#timbreConnection.online {color:var(--ts-success,#23754c);}
.timbre-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;max-width:1200px;}
.timbre-card {background:var(--ts-surface,#fff);border:1px solid var(--ts-border,#e2e5e9);border-radius:var(--ts-radius-panel,8px);padding:24px;min-width:0;align-self:start;}
.timbre-card h2 {font-size:19px;margin:0 0 20px;}.timbre-history-heading h2 {margin:0;}.timbre-card label {display:block;font-weight:600;margin-bottom:8px;}
#timbreRecipient {width:100%;min-height:50px;border:1px solid var(--ts-border,#e2e5e9);border-radius:6px;background:white;color:inherit;padding:12px;font:inherit;}
#timbreSection .timbre-send,.timbre-popup .timbre-play {display:block;width:100%;min-height:64px;font-size:18px;font-weight:700;background:var(--ts-brand,#d94708);color:white;border:0;border-radius:8px;cursor:pointer;margin-top:22px;}
#timbreSection .timbre-send:disabled {opacity:.5;cursor:not-allowed;}#timbreResult {min-height:24px;line-height:1.5;margin-bottom:0;}
.timbre-history {list-style:none;padding:0;margin:0;}.timbre-history li {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:15px 0;border-bottom:1px solid var(--ts-border,#e2e5e9);overflow-wrap:anywhere;}
.timbre-history li:last-child {border-bottom:0;}.timbre-history time {font-size:13px;color:var(--ts-muted,#626973);white-space:nowrap;}.timbre-history small {flex-basis:100%;color:var(--ts-muted,#626973);}
dialog.timbre-popup {position:fixed;inset:0;margin:auto;box-sizing:border-box;border:1px solid #e2e5e9;border-radius:24px;padding:30px;width:min(500px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;background:#fff;color:#20242b;box-shadow:0 20px 70px #0003;text-align:center;font-family:var(--ts-font,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);}
dialog.timbre-popup::backdrop {background:rgb(22 28 37 / .36);}
.timbre-popup h2 {margin:8px 20px 22px;font-size:30px;font-weight:800;}.timbre-close {position:absolute;right:10px;top:8px;width:44px;height:44px;border:0;background:transparent;color:#626973;font-size:30px;cursor:pointer;border-radius:50%;}
.timbre-media {border-radius:18px;overflow:hidden;background:#fff1e9;aspect-ratio:4/3;}.timbre-media video {display:block;width:100%;height:100%;object-fit:contain;}.timbre-media audio {display:none;}
#timbreSender {font-size:19px;font-weight:600;overflow-wrap:anywhere;margin:22px 0 0;}.timbre-popup [hidden] {display:none!important;}
#timbreSection :is(button,select,textarea):focus-visible,.timbre-popup button:focus-visible {outline:2px solid #d94708;outline-offset:3px;}
@media(max-width:700px){.timbre-grid{grid-template-columns:1fr;gap:16px;}.timbre-heading{align-items:flex-start;flex-direction:column;gap:4px;}.timbre-card{padding:20px;}.timbre-popup{padding:22px!important;}.timbre-popup h2{font-size:26px;}}
@media(max-height:550px) and (orientation:landscape){dialog.timbre-popup{width:min(680px,calc(100vw - 28px));padding:18px 24px;}.timbre-media{max-height:180px;aspect-ratio:auto;}.timbre-popup h2{font-size:23px;margin:0 30px 10px;}#timbreSender{margin-top:10px;font-size:17px;}.timbre-popup .timbre-play{min-height:44px;margin-top:10px;}}

.timbre-bell {width:24px;height:24px;vertical-align:middle;display:inline-block;flex-shrink:0;}
#timbreSection #timbreSend {min-height:64px!important;font-size:18px!important;}
#timbreSection .timbre-history-heading button {width:auto!important;flex:none;padding:10px 12px;}
/* Real kitten card: scoped to Timbre, preserving the TSIGNS shell. */
dialog.timbre-popup {padding:0!important;border-radius:20px;width:min(480px,calc(100vw - 28px));border:0;}
.timbre-kitten-scene {position:relative;isolation:isolate;overflow:hidden;background:#f4ede3;}
.timbre-kitten-scene .timbre-media {aspect-ratio:1/1;border-radius:0;background:#f4ede3;}
.timbre-kitten-scene video {object-fit:cover;object-position:65% 50%;}
.timbre-kitten-scene::after {content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#faf5ebdd,transparent 30%,transparent 60%,#17202b88);z-index:1;}
.timbre-popup #timbreTitle {position:absolute;z-index:2;top:18px;left:20px;right:20px;margin:0;font-family:'Marker Felt','Chalkboard SE','Comic Sans MS','Arial Rounded MT Bold',sans-serif;font-size:clamp(36px,9vw,56px);font-weight:900;letter-spacing:2px;color:#182936;transform:rotate(-3deg);text-shadow:0 1px 6px #fff9;}
.timbre-popup .timbre-close {position:absolute;z-index:5;right:10px;top:10px;color:white;background:#243340a6;font-size:27px;width:38px;height:38px;}
.timbre-kitten-message {position:absolute;z-index:2;bottom:16px;left:22px;right:22px;margin:0;color:white;font-family:'Marker Felt','Chalkboard SE','Comic Sans MS','Arial Rounded MT Bold',sans-serif;font-size:clamp(20px,5.5vw,29px);text-shadow:0 2px 6px #0008;}
.timbre-heart {position:absolute;z-index:2;color:#f2a4b3;pointer-events:none;animation:timbre-heart-float 3.2s ease-in-out infinite;}
.timbre-heart svg {width:100%;height:100%;fill:currentColor;stroke:currentColor;stroke-width:1;}
.heart-one {width:32px;height:36px;left:6%;top:23%;transform:rotate(-17deg);}
.heart-two {width:38px;height:44px;right:6%;top:28%;animation-delay:-1s;}.heart-two svg {fill:none;stroke-width:3;}
.heart-three {width:23px;height:28px;right:10%;top:66%;animation-delay:-1.8s;}
.heart-four {width:28px;height:32px;left:7%;bottom:15%;animation-delay:-2.4s;color:#fff;}.heart-four svg {fill:none;stroke-width:3;}
.timbre-popup-footer {padding:17px 24px 20px;background:#fff;}
.timbre-popup #timbreSender {font-size:16px;margin:0;font-weight:700;}
.timbre-good-day {margin:8px 0 0;color:#56616e;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;}
.timbre-popup .timbre-play {min-height:42px!important;margin-top:14px;font-size:14px!important;border-radius:8px;background:#fff1e9;color:#b93806;}
.timbre-popup .timbre-play.needs-gesture {background:#ff5d19;color:white;min-height:52px!important;font-size:16px!important;}
#timbreMediaStatus:empty {display:none;}#timbreMediaStatus {font-size:12px;margin:8px 0 0;}
#timbreSection .timbre-listen-option {display:flex;align-items:center;gap:10px;line-height:1.4;font-size:14px;font-weight:500;margin:18px 0 12px;}
#timbreListenHere {width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;accent-color:#d94708;}
.timbre-sound-actions {display:flex;flex-wrap:wrap;gap:8px;}.timbre-sound-actions button {width:auto!important;min-height:42px!important;}
#timbreSection [hidden] {display:none!important;}#timbreLocalStatus:empty {display:none;}
#timbreSection .timbre-message-label {margin-top:20px;}
#timbreMessage {box-sizing:border-box;width:100%;min-height:90px;resize:vertical;font:inherit;font-size:16px;line-height:1.5;border:1px solid var(--ts-border,#e2e5e9);border-radius:8px;padding:12px;color:inherit;background:white;}
.timbre-message-count {text-align:right;display:block;color:#626973;font-size:12px;margin:4px 0 10px;}
.timbre-history .timbre-history-message {color:#394551;font-style:italic;white-space:pre-wrap;}
@keyframes timbre-heart-float {0%,100%{translate:0 0;}50%{translate:0 -6px;}}
@media(prefers-reduced-motion:reduce){.timbre-heart{animation:none;}}
@media(max-height:650px) and (orientation:landscape){dialog.timbre-popup{width:min(680px,calc(100vw - 28px));}.timbre-kitten-scene .timbre-media{aspect-ratio:16/8;max-height:250px;}.timbre-popup #timbreTitle{font-size:34px;top:10px;}.timbre-kitten-message{font-size:22px;bottom:12px;}.timbre-popup-footer{padding:12px 20px;}}
