/* CSAUTOMIX corrections, 13.10.2026, revision 2. */
/* Calm left edge; tournament metadata does not replace the score. */
html body .wapper .content .gma-match.gma-training-match{border-left:3px solid #6fb7bf!important}
html body .wapper .content .gma-match.gma-tournament-match{border-left:3px solid #c6a566!important}
html body .gma-training-label{display:block!important;width:fit-content!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:linear-gradient(100deg,#e8f1f3,#85cbd1)!important;background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;color:#acd7dc!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
html body .gma-match-detail-hint{display:block!important;margin-top:3px!important;line-height:1.4!important}
html body .gma-match-detail-hint>.gma-match-toggle{display:inline!important;margin:0!important;padding:0!important;font-size:12px!important;white-space:nowrap!important}
html body .gma-match-meta>.gma-match-kd:after{content:none!important}
@media(min-width:651px){
 html body .wapper .content .gma-match>.gma-match-head[class]:not(.am-tour-match-summary){display:grid!important;grid-template-columns:minmax(0,1fr) auto auto 12px!important;grid-template-rows:auto!important;gap:8px 14px!important;align-items:center!important}
 html body .wapper .content .gma-match>.gma-match-head[class]:not(.am-tour-match-summary)>.gma-match-main{grid-column:1!important;grid-row:1!important;display:flex!important;min-width:0!important;align-items:center!important}
 html body .wapper .content .gma-match>.gma-match-head[class]:not(.am-tour-match-summary)>.gma-match-main>div{min-width:0!important}
 html body .wapper .content .gma-match>.gma-match-head[class]:not(.am-tour-match-summary)>.gma-match-score{grid-column:2!important;grid-row:1!important}
 html body .wapper .content .gma-match>.gma-match-head[class]:not(.am-tour-match-summary)>.gma-match-result{grid-column:3!important;grid-row:1!important}
 html body .wapper .content details.gma-match>summary.gma-match-head[class]:not(.am-tour-match-summary)::after{grid-column:4!important;grid-row:1!important;justify-self:end!important;margin:0!important}
 html body .wapper .content .gma-match>.gma-match-head[class].gma-has-training>.gma-training-label{grid-column:1/-1!important;grid-row:1!important}
 html body .wapper .content .gma-match>.gma-match-head[class].gma-has-training>:is(.gma-match-main,.gma-match-score,.gma-match-result){grid-row:2!important}
 html body .wapper .content details.gma-match>summary.gma-match-head[class].gma-has-training::after{grid-row:2!important}
 html body .wapper .content details.gma-live-match>summary.gma-match-head[class]>.gma-match-main{display:block!important}
}
@media(max-width:650px){
 html.am-mobile-layout body .wapper .content .gma-match>.gma-match-head[class].gma-has-training>.gma-training-label{grid-column:1/-1!important;grid-row:1!important;font-size:12px!important}
 html.am-mobile-layout body .wapper .content .gma-match>.gma-match-head[class].gma-has-training>.gma-match-main{grid-column:1!important;grid-row:2/4!important;min-width:0!important}
 html.am-mobile-layout body .wapper .content .gma-match>.gma-match-head[class].gma-has-training>.gma-match-score{grid-column:2!important;grid-row:2!important}
 html.am-mobile-layout body .wapper .content .gma-match>.gma-match-head[class].gma-has-training>.gma-match-result{grid-column:2!important;grid-row:3!important}
 html.am-mobile-layout body .wapper .content details.gma-match>summary.gma-match-head[class].gma-has-training::after{grid-row:4!important}
 html.am-mobile-layout body .wapper .content details.gma-live-match>summary.gma-match-head[class]>.gma-match-main{display:block!important}
}
/* All five monitoring headers use the same subtle gradient and clear dividers. */
html body .modal table.am-monitor-scroll[class]:has(>tbody[id^="server-players"]){border-collapse:collapse!important;background:#111923!important}
html body .modal table.am-monitor-scroll[class]:has(>tbody[id^="server-players"])>thead>tr>th:nth-child(n){background:linear-gradient(180deg,#1c2734,#151f2b)!important;border:1px solid #344251!important;border-bottom:2px solid #4a5b6c!important;color:#d9c38e!important;box-shadow:none!important}
html body .modal table.am-monitor-scroll[class]:has(>tbody[id^="server-players"])>tbody>tr>td:nth-child(n):not([colspan]){background:linear-gradient(110deg,#141d28,#111923)!important;border:1px solid #303d4d!important;box-shadow:none!important}
html body .modal table.am-monitor-scroll[class]:has(>tbody[id^="server-players"])>tbody>tr:hover>td:nth-child(n):not([colspan]){background:#1b2734!important}
/* Keep the PC statistics selector above navigation. Mobile rules stay intact. */
@media(min-width:992px){
 html body .wapper .content .automix-stat-sidebar{display:flex!important;flex-direction:column!important}
 html body .wapper .content .automix-stat-sidebar>.block.automix-stat-nav{display:block!important;order:0!important}
 html body .wapper .content .automix-stat-sidebar>.block.automix-main-nav{order:1!important}
 html body .wapper .content .automix-stat-sidebar>.block.automix-online{order:2!important}
}
/* Chat: consistent text size; the pinned-message layout is untouched. */
html body #chat #chat_messages .chat_message .with_code,html body #chat #chat_messages .chat_message .with_code>span{font-size:16px!important;line-height:1.5!important;overflow-wrap:anywhere}
html body #chat #chat_messages .chat_message .info .author{font-size:16px!important;line-height:1.4!important}
html body #chat .am-chat-compose #message_input{font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.5!important;color:#cad6e1!important;-webkit-text-fill-color:#cad6e1!important;border-radius:9px!important;background:#13202c!important;box-sizing:border-box!important}
html body #chat .am-chat-compose #send_button{font-family:inherit!important;font-size:16px!important;line-height:1.4!important;border:1px solid #b59a65!important;border-radius:9px!important;background:linear-gradient(110deg,#304b5d,#203342)!important;color:#ead7aa!important;font-weight:600!important;box-shadow:none!important}
html body #chat .am-chat-compose #send_button:hover{background:linear-gradient(110deg,#3b596b,#294253)!important}
@media(min-width:651px){
 html body #chat .input-group.am-chat-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 140px!important;align-items:stretch!important;gap:10px!important;flex-wrap:nowrap!important}
 html body #chat .am-chat-compose>.smile_input{min-width:0!important;width:auto!important;max-width:100%!important;margin:0!important;position:relative!important}
 html body #chat .am-chat-compose #message_input{width:100%!important;height:52px!important;min-height:52px!important;max-height:52px!important;resize:none!important;padding:12px 44px 12px 14px!important;margin:0!important}
 html body #chat .am-chat-compose>.input-group-btn{display:block!important;width:auto!important;margin:0!important}
 html body #chat .am-chat-compose #send_button{display:block!important;width:100%!important;height:52px!important;min-height:52px!important;margin:0!important;padding:10px 14px!important}
}
/* Email notice keeps the existing activation action. */
html body .noty-block#activate_user{margin-top:12px!important;padding:15px 18px!important;border:1px solid #40576a!important;border-left:3px solid #78b9c6!important;border-radius:8px!important;background:linear-gradient(110deg,#1c3040,#172330)!important;color:#ccd8e3!important}
html body .noty-block#activate_user p{margin:0!important;line-height:1.5!important}
html body .noty-block#activate_user a{color:#a6dce3!important;white-space:normal!important}
/* Friends: contained search and a finished sidebar panel. */
html body .wapper .content .block.am-friends-card{min-width:0!important}
html body .wapper .content .am-friends-card>.input-search{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;box-sizing:border-box!important;width:auto!important;max-width:100%!important;margin:18px 24px!important;padding:0 14px!important;border:1px solid #425b70!important;border-radius:9px!important;background:#162532!important}
html body .wapper .content .am-friends-card>.input-search>i{position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;width:20px!important;color:#91bbc9!important;cursor:pointer}
html body .wapper .content .am-friends-card>.input-search>#search_login{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;height:48px!important;margin:0!important;padding:10px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;font-size:16px!important}
html body .wapper .content .block.am-friends-lists{padding-bottom:0!important;border:1px solid #2a3b4c!important;border-radius:8px!important;overflow:hidden!important}
html body .wapper .content .am-friends-lists>.vertical-navigation{padding:0 20px!important;background:none!important}
html body .wapper .content .am-friends-lists>.vertical-navigation ul{margin:0!important;padding:0!important}
html body .wapper .content .am-friends-lists>.vertical-navigation li{margin:0!important;border-bottom:1px solid #344252!important}
html body .wapper .content .am-friends-lists>.vertical-navigation li>a{display:block!important;padding:13px 4px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:650px){html body .wapper .content .am-friends-card>.input-search{margin:14px!important;padding:0 10px!important}}
/* Compact public award summary; catalog artwork remains unchanged. */
html body .gma-match-awards{margin-top:14px!important;padding-top:12px!important;border-top:1px solid #354859!important;color:#cad7e2!important}
html body .gma-match-awards>summary{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;cursor:pointer!important;list-style:none!important;font-size:14px!important;color:#d4bd87!important}
html body .gma-match-awards>summary::-webkit-details-marker{display:none}
html body .gma-award-icons{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html body .gma-award-mini{display:inline-flex;align-items:center;gap:3px}
html body .gma-award-mini img{display:block;width:30px;height:30px;object-fit:contain}
html body .gma-awards-hint{margin-left:auto;font-size:12px;color:#9bb0c1}
html body .gma-award-recipients{display:grid;gap:9px;padding:12px 0 2px}
html body .gma-award-recipient-row{display:grid;grid-template-columns:minmax(130px,180px) minmax(0,1fr);gap:10px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
html body .gma-award-recipient-row>b{color:#d6be87}
html body .gma-award-recipient-row a{color:#b1d8df}
@media(max-width:650px){html body .gma-award-recipient-row{grid-template-columns:minmax(0,1fr);gap:3px}}
/* Only decision text changes; existing fill and borders are preserved. */
html body .ban-application button.btn-success[onclick*="close_ban"]{color:#96d1ac!important;-webkit-text-fill-color:#96d1ac!important}
html body .ban-application button.btn-warning[onclick*="close_ban"]{color:#df9b9b!important;-webkit-text-fill-color:#df9b9b!important}

/* Small gold glyphs, exactly the style used by personal match awards. */
html body .gma-match-awards .gma-award-icons.gma-match-head-awards{display:inline-flex!important;gap:9px!important;margin:0!important;padding:0!important}
html body .gma-match-awards .gma-award-mini.gma-match-award-badge{display:inline-flex!important;gap:3px!important;width:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#d7bb79!important}
html body .gma-match-awards .gma-match-award-badge i{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:15px!important;height:15px!important;flex:0 0 15px!important;line-height:1!important;color:#d7bb79!important;font-size:14px;font-style:normal!important}
html body .gma-award-label-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Preserve user line breaks, while ignoring whitespace of the template wrapper. */
html body #chat #chat_messages .chat_message .message [id^="message_text_"]:not(textarea){white-space:normal!important;text-indent:0!important;padding-left:0!important;margin-left:0!important}
html body #chat #chat_messages .chat_message .with_code>span{white-space:pre-wrap!important;text-indent:0!important}
html body #chat #fixed_message .fixed_chat_message .message .info .author,html body #chat #fixed_message .fixed_chat_message .message .info .author *,html body #chat #chat_messages .chat_message .message .info .author,html body #chat #chat_messages .chat_message .message .info .author *{font-size:16px!important;line-height:1.4!important}
html body .wapper .content .am-friends-lists>.am-friends-list-footer{display:block!important;box-sizing:border-box!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;background:none!important}
/* Symmetric tournament scoreboards on a darker graphite canvas. */
html body .wapper .content .automix .gma-match.am-tour-card{background:#121a25!important;border-top:1px solid #3b4b5d!important;border-right:1px solid #3b4b5d!important;border-bottom:1px solid #3b4b5d!important;border-radius:9px!important;margin-bottom:14px!important}
html body .wapper .content .automix .gma-match.am-tour-card>.gma-match-head[class].am-tour-match-summary{display:grid!important;grid-template-columns:100px minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;align-items:center!important;gap:9px 20px!important;padding:14px 18px!important;background:linear-gradient(115deg,#192330,#141d28)!important;border:0!important;border-radius:8px!important;min-height:0!important;box-sizing:border-box!important}
html body .wapper .content .automix .am-tour-match-summary>.am-tour-type{grid-column:1/-1!important;grid-row:1!important;text-align:left!important;font-size:13px!important}
html body .am-tour-official-label{color:#dac18a!important}
html body .wapper .content .automix .am-tour-match-summary>.am-tour-server{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;color:#e4cc92!important;font-size:16px!important;line-height:1.4!important;font-weight:600!important}
html body .wapper .content .automix .am-tour-match-summary>.am-tour-map{grid-column:1!important;grid-row:3!important;text-align:center!important;min-width:0!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-map img{display:block!important;width:100px!important;height:66px!important;object-fit:cover!important;max-width:100%!important;border-radius:6px!important;margin:0!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-map small{display:block!important;margin:6px 0 0!important;color:#aabbce!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
html body .wapper .content .automix .am-tour-match-summary>.am-tour-match-versus{grid-column:2!important;grid-row:3!important;display:grid!important;grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-width:0!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-team{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important;text-align:center!important;color:#d6e1eb!important;font-size:17px!important;font-weight:600!important;line-height:1.35!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-team>img{width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover!important;border:1px solid #4d6176!important;flex:none!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-team>span{font-size:inherit!important;overflow-wrap:anywhere!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-score-column{text-align:center!important;min-width:0!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-score{display:block!important;color:#e8ce8f!important;font-size:26px!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-score-column>small{display:block!important;color:#aebed0!important;margin-top:6px!important;font-size:13px!important;line-height:1.4!important}
html body .wapper .content .automix .am-tour-match-summary>.am-tour-match-meta{grid-column:1/-1!important;grid-row:4!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:7px 16px!important;padding:10px 0 0!important;margin:1px 0 0!important;border-top:1px solid #344355!important;color:#a9b9cb!important;font-size:13px!important;line-height:1.4!important;min-width:0!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-match-meta>.gma-match-toggle{display:inline!important;margin-left:auto!important;font-size:12px!important}
html body .wapper .content .automix details.am-tour-card>summary.gma-match-head[class].am-tour-match-summary::after{display:none!important;content:none!important}
html body .wapper .content .automix .am-tour-card[open]>.am-tour-match-summary{border-bottom:1px solid #344355!important;border-radius:8px 8px 0 0!important}
@media(max-width:650px){
 html body .wapper .content .automix .gma-match.am-tour-card>.gma-match-head[class].am-tour-match-summary{grid-template-columns:64px minmax(0,1fr)!important;padding:12px!important;gap:8px 10px!important}
 html body .wapper .content .automix .am-tour-match-summary .am-tour-map img{width:64px!important;height:44px!important}
 html body .wapper .content .automix .am-tour-match-summary>.am-tour-match-versus{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)!important;gap:6px!important}
 html body .wapper .content .automix .am-tour-match-summary .am-tour-team{font-size:13px!important}
 html body .wapper .content .automix .am-tour-match-summary .am-tour-team>img{width:30px!important;height:30px!important}
 html body .wapper .content .automix .am-tour-match-summary .am-tour-score{font-size:20px!important}
 html body .wapper .content .automix .am-tour-match-summary .am-tour-score-column>small{font-size:11px!important}
 html body .wapper .content .automix .am-tour-match-summary>.am-tour-server{font-size:14px!important}
}

/* Contain floated authors so message text starts directly below the name. */
@media(min-width:651px){html body #chat #chat_messages .chat_message .message .info{display:flow-root!important;height:auto!important;min-height:24px!important}}
html body .gma-match-awards{display:block!important}
html body .wapper .content .am-friends-lists>.vertical-navigation{margin:0!important;padding:0!important}
html body .wapper .content .am-friends-lists>.vertical-navigation ul.nav>li{margin:0!important;padding:0!important;border-left:0!important}
html body .wapper .content .am-friends-lists>.vertical-navigation ul.nav>li>a,html body .wapper .content .am-friends-lists>.vertical-navigation ul.nav>li>a.active{margin:0!important;padding:13px 20px!important;height:auto!important;border-top:0!important;border-left:0!important}
html body .wapper .content .am-friends-lists>.vertical-navigation ul.nav>li>a.active::before{content:none!important}

@media(max-width:500px){
 html body .wapper .content .automix .am-tour-match-summary>.am-tour-map{grid-column:1/-1!important;grid-row:3!important;justify-self:center!important}
 html body .wapper .content .automix .am-tour-match-summary .am-tour-map img{width:90px!important;height:60px!important}
 html body .wapper .content .automix .am-tour-match-summary>.am-tour-match-versus{grid-column:1/-1!important;grid-row:4!important;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)!important}
 html body .wapper .content .automix .am-tour-match-summary>.am-tour-match-meta{grid-row:5!important}
}

html body .wapper .content .automix .am-tour-match-summary .am-tour-team{align-self:start!important}
html body .wapper .content .automix .am-tour-match-summary .am-tour-team>span{display:block!important;min-height:2.7em!important}
@media(max-width:500px){html body .wapper .content .automix .am-tour-match-summary .am-tour-team{font-size:12px!important}}

/* Keep the approved mobile disclosure wording; avoid a second duplicate hint. */
@media(max-width:650px){html body .gma-match-detail-hint{display:none!important}}
