/* Messaging surfaces inherit the approved seasonal chrome; content remains legible. */
.th-policy{padding:13px 16px;margin:8px 0 14px;border:1px solid #cbd8e6;border-left:4px solid #b37a30;background:#fffaf0;border-radius:10px;color:#334155;font-size:.86rem;line-height:1.6}
.th-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.th-workspace{display:grid;grid-template-columns:minmax(230px,29%) minmax(0,1fr);height:min(670px,72dvh);min-height:430px;border:1px solid #cfd8e5;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 8px 24px #10203a0c}
.th-rooms{border-right:1px solid #d9e2ed;overflow-y:auto;background:#f5f8fc;min-width:0}.th-search{display:block;padding:16px;font-size:12px;font-weight:650;color:#48617e}.th-search input{margin-top:6px;width:100%}.th-room{display:flex;gap:10px;align-items:center;border:0;border-bottom:1px solid #e0e7ef;border-left:3px solid transparent;background:transparent;width:100%;padding:15px 12px;text-align:left;color:#17324f;cursor:pointer}.th-room:hover{background:#eaf0f7}.th-room.selected{background:#e9f1fa;border-left-color:var(--season-accent,#245794)}.th-room>span:nth-child(2){min-width:0;flex:1}.th-room strong{display:block;overflow-wrap:anywhere;font-size:14px}.th-room small{display:block;margin-top:4px;color:#596e88;font-size:11px}.th-room-avatar{background:#dfe9f5;border-radius:11px;width:35px;height:35px;display:grid;place-items:center;flex-shrink:0}.th-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.th-thread-head{display:flex;align-items:center;gap:9px;padding:14px 18px;border-bottom:1px solid #dce4ef;background:#f9fbfd}.th-thread-head>div{flex:1;min-width:0}.th-thread-head h2{font-size:17px;margin:0;overflow-wrap:anywhere}.th-thread-head p{font-size:11px;color:#5d7088;margin:3px 0 0;max-height:36px;overflow:auto;overflow-wrap:anywhere}.th-back{display:none}.th-message-log{min-height:100px;flex:1;overflow-y:auto;padding:16px;background:linear-gradient(145deg,#f7f9fc,#edf2f8);overscroll-behavior:contain}.th-message{margin-bottom:16px;max-width:90%;width:fit-content}.th-own{margin-left:auto}.th-message-meta{font-size:11px;color:#65758b;display:flex;gap:9px;flex-wrap:wrap;margin-bottom:4px}.th-message-meta strong{color:#2c4664}.th-bubble{border:1px solid #d9e3ef;border-radius:2px 14px 14px;background:#fff;color:#1c334f;padding:11px 14px;box-shadow:0 2px 4px #15254004}.th-own .th-bubble{border-radius:14px 2px 14px 14px;background:#deedfc;border-color:#c2d7ee}.th-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55}.th-translation{font-size:10px;line-height:1.5;color:#5c6d84;padding:4px 2px}.th-translation>span{display:inline-block;margin-right:8px}.th-translation details{margin-top:3px}.th-translation summary{cursor:pointer;color:#1f5d9e;font-weight:600}.th-translation p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0;padding:8px;border-left:2px solid #afc2da;background:#f6f9fc;color:#354b67}.th-compose{padding:12px 16px;background:white;border-top:1px solid #dce4ef;margin:0}.th-source{display:flex;gap:8px;align-items:center;font-size:11px;color:#516581;margin-bottom:7px}.th-source select{padding:4px 8px;font-size:12px;min-height:30px;width:auto;max-width:200px}.th-compose-row{display:flex;gap:9px;align-items:stretch}.th-compose textarea{resize:vertical;max-height:140px;min-height:45px;flex:1;width:0;margin:0;font:14px/1.45 system-ui,sans-serif}.th-compose-row button{min-width:65px}.th-compose>small{font-size:10px;color:#66758c;display:block;margin-top:7px}.th-empty{padding:30px;text-align:center;color:#5f718b;line-height:1.6}.th-empty h2{font-size:19px;color:#203b59}.th-empty>.ui-icon{height:42px;width:42px}.th-popup{position:fixed;z-index:180;right:18px;top:85px;width:min(470px,calc(100vw - 24px));display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border:1px solid #b5c7df;border-left:5px solid #426590;border-radius:14px;box-shadow:0 14px 40px #102a5040;color:#223d5f}.th-popup>div{flex:1;min-width:0}.th-popup strong,.th-popup span{display:block}.th-popup strong{font-size:14px}.th-popup span{font-size:11px;color:#60728a;margin-top:4px}.th-popup>.ui-icon{color:#426590}.th-swap-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.th-swap-steps span{font-size:12px;background:#eef4fb;border:1px solid #d7e2ef;padding:13px 11px;border-radius:9px;color:#315173}.th-swaps{display:grid;gap:14px}.th-swap-card{border:1px solid #d3dfed;border-radius:13px;padding:18px;background:#fff;min-width:0}.th-swap-card>header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.th-swap-card header small{font-size:12px;color:#5a6e86}.th-swap-pair{display:grid;grid-template-columns:1fr 40px 1fr;gap:12px;align-items:center}.th-swap-pair section{background:#f4f8fc;padding:13px;border:1px solid #dfe7f0;border-radius:10px;min-width:0}.th-swap-pair strong,.th-swap-pair span{display:block;overflow-wrap:anywhere}.th-swap-pair section span{font-size:13px;margin-top:8px;color:#4b6684}.th-swap-arrow{text-align:center;font-size:25px;color:#6b87a8}.th-swap-card>footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.th-swap-card>footer>small{margin-left:auto;font-size:11px}.th-thread>.note{margin:0;border-radius:0;font-size:12px}.th-workspace .btn:focus-visible,.th-room:focus-visible{outline:3px solid #4273af;outline-offset:-3px}
@media(max-width:780px){.th-workspace{display:block;height:min(680px,70dvh);min-height:470px}.th-rooms{height:100%;border-right:0}.th-thread{display:none;height:100%}.th-has-room .th-rooms{display:none}.th-has-room .th-thread{display:flex}.th-back{display:block;font-size:24px}.th-thread-head{padding:10px}.th-compose{padding:10px}.th-message-log{padding:12px}.th-policy{font-size:11px;padding:10px 12px}.th-message{max-width:95%}.th-popup{right:12px;top:72px;padding:12px;gap:8px}.th-popup .btn{padding:8px 10px;min-height:40px}.th-swap-steps{grid-template-columns:1fr 1fr}.th-swap-steps span{font-size:11px;padding:9px}.th-swap-card{padding:12px}.th-swap-pair{grid-template-columns:1fr}.th-swap-arrow{font-size:18px;line-height:1}.th-swap-card>footer>small{margin-left:0;width:100%}.th-swap-pair section span{font-size:12px}.th-tabs{gap:5px}.th-tabs .btn{font-size:11px}.th-room{min-height:65px}.th-compose textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.th-popup{transition:none;animation:none}}
@media print{.th-popup{display:none!important}}

.th-policy>summary{cursor:pointer;font-weight:650}.th-policy>p{margin:8px 0 0}
@media(max-width:780px){
 body.team-message-page #season-banner .season-hero{height:62px!important;min-height:62px!important;max-height:62px!important}
 body.team-message-page #season-banner .season-approved-art{height:62px!important;min-height:62px!important;object-fit:cover;object-position:center 44%}
 body.team-message-page #season-footer{display:none}
 body.team-message-page #content{padding-top:9px;padding-bottom:10px}
 body.team-message-page .page-head{display:block;padding-bottom:8px!important;margin-bottom:8px}
 body.team-message-page .page-head h1{font-size:20px;line-height:1.2;margin:0 0 8px}
 body.team-message-page .page-head p{display:none}
 body.team-message-page .page-head .actions{display:flex;flex-wrap:wrap;gap:5px}
 body.team-message-page .page-head .btn{font-size:11px;min-height:34px;padding:6px 9px}
 body.team-message-page .th-policy{padding:8px 10px;margin:6px 0;font-size:11px}
 body.team-message-page .th-tabs{margin:7px 0}
 body.team-message-page .th-tabs .btn{min-height:32px;padding:6px 9px}
 body.team-message-page .th-workspace{height:calc(100dvh - 357px);min-height:345px;max-height:720px}
 body.team-message-page .th-thread-head{min-height:52px}
 body.team-message-page .th-source{font-size:10px}
 body.team-message-page .th-compose>small{font-size:9px;line-height:1.35}
 body.team-message-page .th-compose textarea{min-height:45px}
}
@media(max-width:780px){
 body.team-message-page #content .page-head{display:block!important;min-height:0!important}
 body.team-message-page #content .page-head h1{font-size:20px!important;margin:0 0 8px!important}
 body.team-message-page #content .page-head .actions{width:100%!important;justify-content:flex-start!important;flex-wrap:wrap!important}
 body.team-message-page #season-banner .season-approved-art{object-position:center 0%!important}
}
