/* SantoStefano P6.4 · guild chat */
.gcchat-shell{color:#e9d6c5;font:12px 'Segoe UI',Arial,sans-serif;min-height:70vh}
.gcchat-heading{border:1px solid #85545a;border-radius:9px;padding:15px 19px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(115deg,#2e1b25,#160d16);margin-bottom:13px}
.gcchat-heading small{color:#d9aa7c;font-size:10px;letter-spacing:1.2px;font-weight:800}
.gcchat-heading h1{font:700 29px Georgia,serif;color:#f4d1a1;margin:5px 0}
.gcchat-heading p{color:#c3a4af;margin:0;font-size:11px}
.gcchat-refresh,.gcchat-tools button,.gcchat-older{border:1px solid #92685a;border-radius:6px;background:#35232d;color:#efcfa5;padding:8px 10px;cursor:pointer;font-size:11px}
.gcchat-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:12px;align-items:stretch}
.gcchat-channels,.gcchat-room{border:1px solid #80505a;border-radius:9px;background:linear-gradient(135deg,#271925,#180f19);overflow:hidden}
.gcchat-channels{padding:13px;min-height:560px}
.gcchat-channels h3{font:700 15px Georgia,serif;color:#e8bf91;margin:7px 6px 11px}
.gcchat-channels h3:not(:first-child){margin-top:23px;border-top:1px solid #5d3e49;padding-top:15px}
.gcchat-channels>button{display:flex;gap:9px;align-items:center;text-align:left;width:100%;background:transparent;border:1px solid transparent;color:#e4c5c1;border-radius:7px;padding:10px 8px;font-size:12px;cursor:pointer;margin:3px 0}
.gcchat-channels>button:hover{background:#3c2933}
.gcchat-channels>button.is-selected{background:linear-gradient(90deg,#69363f,#432533);border-color:#b7776b;color:#ffdeac}
.gcchat-channels>button span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.gcchat-channels>button small{display:block;color:#b4a1a6;font-size:10px;margin-top:3px}
.gcchat-avatar{display:grid;place-items:center;width:30px;height:30px;border:1px solid #9c7058;border-radius:8px;flex:none;color:#ebc68b;font-weight:800}
.gcchat-count{display:inline-block;border-radius:12px;background:#a75f60;color:#fff;padding:2px 6px;font-size:10px;font-weight:800}
.gcchat-room{display:flex;flex-direction:column;min-height:610px;max-height:780px}
.gcchat-room-head{padding:14px 17px;border-bottom:1px solid #64424c;background:#372430;display:flex;justify-content:space-between;align-items:center;gap:10px}
.gcchat-room-head h2{font:700 19px Georgia,serif;color:#f2cc97;margin:0 0 4px}
.gcchat-room-head small{color:#bfa7b0;font-size:11px}
.gcchat-room-tag{color:#d7a777;font-size:10px}
.gcchat-pins{padding:8px 13px;background:#39252a;border-bottom:1px solid #7b5557}
.gcchat-pins[hidden]{display:none}
.gcchat-pins b{color:#e6bd8e;font-size:11px}
.gcchat-pins p{color:#d4bcb6;font-size:11px;margin:4px 0;max-height:32px;overflow:hidden}
.gcchat-messages{overflow-y:auto;flex:1;min-height:250px;padding:17px;scrollbar-color:#88545d #271921}
.gcchat-message{border:1px solid #57414b;border-radius:9px;padding:11px 12px;background:#2b1d28;max-width:85%;margin:0 0 11px}
.gcchat-message.gcchat-mine{margin-left:auto;background:#392633;border-color:#85566a}
.gcchat-message-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.gcchat-message-top b{color:#f2c78d}.gcchat-message-top small{color:#ac98a1;font-size:10px}
.gcchat-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#ead1c8;font-size:12px;margin:9px 0 5px}
.gcchat-message-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:7px}
.gcchat-message-actions button{cursor:pointer;border:0;background:none;color:#c9ab9b;font-size:10px;padding:3px}
.gcchat-message-actions button:hover{color:#ffdbab;text-decoration:underline}
.gcchat-item{margin:10px 0 5px;display:flex;align-items:center;flex-wrap:wrap;gap:7px;border:1px solid #9b754f;border-radius:6px;background:#463123;padding:11px;color:#f6d5a6}
.gcchat-item small{color:#c2ada9}
.gcchat-image{display:block;max-width:min(100%,360px);max-height:280px;object-fit:contain;margin-top:8px;border:1px solid #805f66;border-radius:7px}
.gcchat-deleted{font-style:italic;color:#97868d}
.gcchat-older{display:block;margin:0 auto 15px}
.gcchat-compose{border-top:1px solid #68454f;padding:12px;background:#261922}
.gcchat-compose form{display:block}
.gcchat-compose textarea{display:block;width:100%;box-sizing:border-box;min-height:63px;border:1px solid #8e655b;border-radius:7px;padding:10px;background:#1e141d;color:#f1d5bc;font:12px/1.5 'Segoe UI',Arial,sans-serif;resize:vertical}
.gcchat-compose textarea:focus{outline:2px solid #9c7452;outline-offset:1px}
.gcchat-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:10px}
.gcchat-tools .gcchat-send{margin-left:auto;background:linear-gradient(90deg,#c08b59,#ecc38c);color:#2a1720;border-color:#e9c08e;font-weight:800;padding:10px 15px}
.gcchat-upload{cursor:pointer;padding:8px 10px;border:1px solid #91685c;border-radius:6px;color:#e8c2a0;font-size:11px}
.gcchat-upload:hover{background:#49303b}
.gcchat-muted{font-size:10px;color:#ad9aab}
.gcchat-attachment{display:inline-flex;align-items:center;gap:8px;padding:5px 9px;border:1px solid #8c6555;background:#3d2a31;border-radius:7px;color:#e5c3a0;margin:0 6px 8px 0;font-size:11px}
.gcchat-attachment button{border:0;background:none;color:#ffb9a8;cursor:pointer}
.gcchat-empty{padding:32px;text-align:center;color:#b8a2ad}
@media(max-width:850px){.gcchat-layout{grid-template-columns:190px minmax(0,1fr)}.gcchat-channels{padding:7px}.gcchat-message{max-width:95%}}
@media(max-width:650px){.gcchat-layout{grid-template-columns:minmax(0,1fr)}.gcchat-channels{min-height:0;max-height:190px;overflow:auto}
.gcchat-room{min-height:440px;max-height:650px}.gcchat-heading{padding:12px}.gcchat-message{max-width:100%}.gcchat-tools .gcchat-muted{display:none}}

/* P6.4.1: Discord navigation + Telegram-density conversation, SantoStefano colors. */
.gcchat-v2{--chat-muted:#bda9b5;--chat-gold:#f1c68e;--chat-line:#68464e;color:#f0ded4}
.gcchat-v2 .gcchat-heading{padding:13px 18px;margin-bottom:10px}
.gcchat-v2 .gcchat-heading h1{font-size:25px}
.gcchat-v2 .gcchat-heading p{color:#d2afb6;font-size:11px}
.gcchat-heading-actions{display:flex;align-items:center;gap:8px;color:#bca5aa;font-size:10px}
.gcchat-live-dot{background:#83cda0;border-radius:50%;height:7px;width:7px;box-shadow:0 0 8px #83cda065}
.gcchat-v2 .gcchat-layout{grid-template-columns:220px minmax(0,1fr) 225px;gap:0;border:1px solid #774a55;border-radius:10px;overflow:hidden;background:#160f19;min-height:605px}
.gcchat-v2 .gcchat-layout.gcchat-details-hidden{grid-template-columns:220px minmax(0,1fr)}
.gcchat-v2 .gcchat-channels,.gcchat-v2 .gcchat-room,.gcchat-v2 .gcchat-info{border:none;border-radius:0;min-width:0}
.gcchat-v2 .gcchat-channels{padding:0;border-right:1px solid #61434b;min-height:0;background:linear-gradient(160deg,#261824,#1b131d)}
.gcchat-sidebar-head{padding:17px 14px 11px;display:grid;gap:4px;border-bottom:1px solid #563945}
.gcchat-sidebar-head b{color:#efd09c;font-size:11px;letter-spacing:1px}
.gcchat-sidebar-head span{font-size:9px;color:#b79fa8;letter-spacing:.6px}
.gcchat-contact-search{display:flex;align-items:center;gap:5px;border:1px solid #65434e;border-radius:6px;margin:12px 10px;padding:6px 9px;background:#1e151e;color:#dfb88d}
.gcchat-contact-search span{font-size:19px}
.gcchat-contact-search input{flex:1;width:100%;min-width:0;border:none!important;outline:none!important;background:transparent!important;padding:3px 0!important;min-height:0!important;color:#f1dfd3;font-size:11px}
.gcchat-contact-search input::placeholder{color:#a48f9a}
.gcchat-channel-list{max-height:610px;overflow-y:auto;padding:0 8px 12px;scrollbar-color:#7b5761 #231723;scrollbar-width:thin}
.gcchat-v2 .gcchat-channel-list h3{font:800 10px 'Segoe UI',Arial,sans-serif;letter-spacing:1.1px;color:#d6a579;display:flex;justify-content:space-between;margin:14px 6px 7px;padding:0;border:0}
.gcchat-v2 .gcchat-channel-list h3 small{font-size:9px;color:#a18d99;letter-spacing:0}
.gcchat-channel-list button.gcchat-channel,.gcchat-channel-list button.gcchat-contact{width:100%;border:1px solid transparent;border-radius:6px;display:flex;align-items:center;gap:8px;background:transparent;color:#dfc7c4;text-align:left;padding:9px 8px;margin:2px 0;cursor:pointer;font-size:12px}
.gcchat-channel-list button:hover{background:#3a2834}
.gcchat-channel-list button.is-selected{background:#69333e;border-color:#ad6065;color:#ffe0b0}
.gcchat-channel-icon{font:bold 18px Georgia,serif;color:#c29f91;width:24px;text-align:center;flex:none}
.gcchat-channel-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gcchat-channel-text strong{font-size:11px;color:#eed1bf;display:block;overflow:hidden;text-overflow:ellipsis}
.gcchat-channel-text small{display:block;color:#ae9ba2;font-size:9px;margin-top:3px;overflow:hidden;text-overflow:ellipsis}
.gcchat-channel-list .gcchat-avatar-wrap{position:relative;flex:none}
.gcchat-avatar-wrap .gcchat-avatar{width:30px;height:30px;font-size:12px;border-radius:50%;border-color:#946c60;background:linear-gradient(150deg,#714143,#412735);color:#ffe0ab}
.gcchat-status-dot{position:absolute;bottom:-1px;right:-1px;width:9px;height:9px;border:2px solid #231723;background:#91858c;border-radius:50%}
.gcchat-status-dot.is-online{background:#77d5a3}
.gcchat-status-dot.is-afk{background:#e7b56d}
.gcchat-status-dot.is-dnd{background:#dd7c84}
.gcchat-count{flex:none}
.gcchat-no-contacts{padding:8px}
.gcchat-v2 .gcchat-room{min-height:605px;max-height:760px;background:radial-gradient(ellipse at 50% 30%,#271921 0%,#1b121b 70%);display:flex;flex-direction:column}
.gcchat-v2 .gcchat-room-head{min-height:67px;box-sizing:border-box;padding:11px 16px;background:#2c1b27}
.gcchat-room-title{display:flex;gap:12px;align-items:center;min-width:0}
.gcchat-room-symbol{border:1px solid #8e6059;border-radius:9px;width:38px;height:38px;display:grid;place-items:center;color:#f5c691;font-size:22px;background:#482b35;flex:none}
.gcchat-v2 .gcchat-room-head h2{font-size:16px;margin:0 0 4px}
.gcchat-room-actions{display:flex;gap:5px}
.gcchat-room-actions button{width:32px;height:32px;display:grid;place-items:center;font-size:20px;color:#edc99d;background:#392633;border:1px solid #77515b;border-radius:7px;cursor:pointer}
.gcchat-room-actions button:hover{background:#5b3945}
.gcchat-searchbar{display:flex;gap:8px;padding:9px 12px;background:#30202b;border-bottom:1px solid #654650}
.gcchat-searchbar[hidden]{display:none}
.gcchat-searchbar input{flex:1;min-width:0;border:1px solid #8d615f;border-radius:6px;padding:7px 9px;background:#20141d;color:#f6d9bd;font-size:12px}
.gcchat-searchbar button{background:#4a3039;border:1px solid #7d535d;color:#f4d9b6;border-radius:6px;cursor:pointer}
.gcchat-v2 .gcchat-pins{display:flex;align-items:center;gap:9px;background:#35232c;padding:9px 14px}
.gcchat-v2 .gcchat-pins[hidden]{display:none}
.gcchat-pins-icon{font-size:14px}
.gcchat-v2 .gcchat-pins>div{flex:1;min-width:0}
.gcchat-v2 .gcchat-pins b{font-size:10px;color:#edc28c}
.gcchat-v2 .gcchat-pins p{font-size:10px;margin:3px 0 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gcchat-pin-count{font-size:10px;color:#dab290}
.gcchat-stream{position:relative;min-height:0;flex:1;display:flex}
.gcchat-v2 .gcchat-messages{min-width:0;min-height:0;flex:1;padding:14px 13px 20px;overflow:auto}
.gcchat-v2 .gcchat-message{max-width:none;display:flex;gap:11px;align-items:flex-start;padding:4px 8px;margin:0 0 3px;border:none;border-radius:6px;background:none}
.gcchat-v2 .gcchat-message.gcchat-mine{margin-left:0;background:#4d2b3644;border:none}
.gcchat-v2 .gcchat-message:hover{background:#55364155}
.gcchat-v2 .gcchat-message.gcchat-grouped{padding-top:2px;padding-bottom:2px}
.gcchat-v2 .gcchat-message-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:linear-gradient(135deg,#895349,#443045);font-size:13px}
.gcchat-message-gutter{flex:0 0 32px;width:32px;text-align:center;color:#988792;font-size:8px;padding-top:4px;opacity:0}
.gcchat-message:hover .gcchat-message-gutter{opacity:1}
.gcchat-message-body{min-width:0;flex:1;position:relative}
.gcchat-v2 .gcchat-message-top{justify-content:flex-start;gap:10px;line-height:1.15;margin:1px 0 2px}
.gcchat-v2 .gcchat-message-top b{font-size:12px;color:#f2c58a}
.gcchat-v2 .gcchat-message-top small{font-size:9px;color:#ab9aa1}
.gcchat-v2 .gcchat-text{font-size:12px;line-height:1.5;margin:3px 0 0;color:#f0d8cd}
.gcchat-v2 .gcchat-message-actions{position:absolute;right:0;top:-6px;display:none;gap:3px;background:#382632;border:1px solid #805863;border-radius:7px;padding:2px;box-shadow:0 4px 12px #0006}
.gcchat-message:hover .gcchat-message-actions,.gcchat-message:focus-within .gcchat-message-actions{display:flex}
.gcchat-v2 .gcchat-message-actions button{font-size:15px;color:#e8c5ab;padding:3px 7px}
.gcchat-v2 .gcchat-item{display:flex;width:max-content;max-width:100%;gap:10px;margin:7px 0 3px;padding:8px 12px;border-color:#ab7a55;background:#483129}
.gcchat-item-symbol{font-size:22px}
.gcchat-v2 .gcchat-item>span:last-child{display:grid;gap:4px}
.gcchat-v2 .gcchat-item small{display:block;font-size:10px}
.gcchat-v2 .gcchat-image{max-width:min(100%,300px);max-height:210px;margin-top:5px}
.gcchat-date-divider{display:flex;justify-content:center;margin:13px 0}
.gcchat-date-divider span{border:1px solid #64434d;background:#32202c;color:#dbb896;padding:5px 14px;border-radius:20px;font-size:10px}
.gcchat-unread-divider{text-align:center;color:#f0ac9d;border-top:1px solid #b56c75;line-height:0;margin:14px 0}
.gcchat-unread-divider span{background:#251823;padding:0 12px;font-size:10px}
.gcchat-scroll-bottom{position:absolute;bottom:14px;right:16px;width:35px;height:35px;border:1px solid #b38769;border-radius:50%;background:#503340;color:#fbe0bb;font-size:21px;cursor:pointer;box-shadow:0 3px 14px #0008}
.gcchat-scroll-bottom[hidden]{display:none}
.gcchat-v2 .gcchat-empty{display:grid;justify-items:center;gap:7px;margin:55px auto;padding:18px;color:#c7b1b0}
.gcchat-empty-mark{font-size:38px;color:#d4aa7e;border:1px solid #855b61;border-radius:50%;width:75px;height:75px;display:grid;place-items:center}
.gcchat-empty h3{font:700 19px Georgia,serif;color:#f1ca96;margin:8px 0 0}
.gcchat-empty p{font-size:11px;margin:0}
.gcchat-v2 .gcchat-compose{padding:10px 14px;background:#2a1c28}
.gcchat-v2 .gcchat-compose textarea{min-height:44px;max-height:120px;padding:11px 12px;border-radius:9px;font-size:12px}
.gcchat-v2 .gcchat-tools{margin-top:8px}
.gcchat-v2 .gcchat-tools button,.gcchat-v2 .gcchat-upload{font-size:11px}
.gcchat-v2 .gcchat-tools .gcchat-send{border-radius:7px}
.gcchat-info{border-left:1px solid #63434a;background:linear-gradient(155deg,#251822,#1d141f);overflow-y:auto;max-height:760px;scrollbar-color:#77535d #241721}
.gcchat-info[hidden]{display:none}
.gcchat-info-header{padding:17px 13px 13px;border-bottom:1px solid #61434a}
.gcchat-info-header small{color:#c99871;font-size:9px;letter-spacing:1px}
.gcchat-info-header h3{font:700 16px Georgia,serif;color:#e8c393;margin:6px 0 0}
.gcchat-info-section{padding:14px 12px;border-bottom:1px solid #503942}
.gcchat-section-title{font-size:10px;font-weight:800;letter-spacing:.6px;color:#dcaa7d;margin-bottom:13px}
.gcchat-info-empty{font-size:10px;color:#ab929e;line-height:1.5}
.gcchat-info-pin{border-left:2px solid #c89669;padding:5px 8px;margin-bottom:8px;background:#38242f}
.gcchat-info-pin b{font-size:10px;color:#e8be8e}
.gcchat-info-pin p{font-size:10px;line-height:1.5;color:#c8b1b6;overflow-wrap:anywhere;margin:5px 0 0;max-height:56px;overflow:hidden}
.gcchat-person{display:flex;gap:9px;align-items:center;margin:12px 0}
.gcchat-person .gcchat-avatar{width:27px;height:27px;font-size:11px}
.gcchat-person>span:last-child{display:grid;gap:3px;min-width:0}
.gcchat-person b{font-size:11px;color:#e9c9b6;overflow:hidden;text-overflow:ellipsis}
.gcchat-person small{font-size:9px;color:#a995a0}
.gcchat-site-note{font-size:9px;color:#a694a0;line-height:1.5;padding:10px 14px}
@media(max-width:1250px){
 .gcchat-v2 .gcchat-layout{grid-template-columns:205px minmax(0,1fr)}
 .gcchat-v2 .gcchat-info{display:none}
 .gcchat-v2 .gcchat-layout.gcchat-details-hidden{grid-template-columns:205px minmax(0,1fr)}
}
@media(max-width:700px){
 .gcchat-v2 .gcchat-layout,.gcchat-v2 .gcchat-layout.gcchat-details-hidden{grid-template-columns:minmax(0,1fr)}
 .gcchat-v2 .gcchat-channels{min-height:0;border-right:0;border-bottom:1px solid #64444c}
 .gcchat-v2 .gcchat-channel-list{max-height:165px}
 .gcchat-sidebar-head{display:none}
 .gcchat-v2 .gcchat-contact-search{margin:7px 10px}
 .gcchat-v2 .gcchat-room{min-height:470px;max-height:650px}
 .gcchat-v2 .gcchat-heading h1{font-size:22px}
 .gcchat-heading-actions span:not(.gcchat-live-dot){display:none}
 .gcchat-v2 .gcchat-message{padding:5px 3px;gap:8px}
 .gcchat-v2 .gcchat-message-actions{display:flex;position:static;margin:4px 0 0;background:transparent;box-shadow:none;border:none}
 .gcchat-v2 .gcchat-message-actions button{font-size:13px;padding:2px 6px}
}

.gcchat-v2 .gcchat-image-preview{display:inline-flex;max-width:100%;gap:10px;padding:7px}
.gcchat-image-preview img{width:46px;height:46px;max-height:46px;object-fit:cover;border:1px solid #ad806a;border-radius:5px}
.gcchat-image-preview span{color:#f3d4b8;font-size:11px}
.gcchat-image-preview button{font-size:13px}
.gcchat-v2 .gcchat-compose:focus-within{border-top-color:#ac7969}
.gcchat-v2 .gcchat-compose{transition:border-color .15s}
.gcchat-v2 .gcchat-message-actions button:focus-visible,
.gcchat-v2 button:focus-visible{outline:2px solid #e1b17c;outline-offset:2px}

/* P6.4.2: full available viewport, compact conversation and unified composer */
.gcchat-v2{height:calc(100dvh - 45px);min-height:560px;display:flex;flex-direction:column}
.gcchat-v2 .gcchat-heading{flex:none;padding:11px 16px}
.gcchat-v2 .gcchat-layout,.gcchat-v2 .gcchat-layout.gcchat-details-hidden{
 flex:1;min-height:0;height:auto;max-height:none;overflow:hidden
}
.gcchat-v2 .gcchat-room{min-height:0;height:100%;max-height:none}
.gcchat-v2 .gcchat-channels,.gcchat-v2 .gcchat-info{min-height:0;height:100%;max-height:none;overflow-y:auto}
.gcchat-v2 .gcchat-messages{height:100%;overflow:auto;overscroll-behavior:contain}
.gcchat-v2 .gcchat-message{padding:3px 7px;margin:0}
.gcchat-v2 .gcchat-message.gcchat-mine{background:transparent}
.gcchat-v2 .gcchat-message:hover{background:#51323b55}
.gcchat-v2 .gcchat-message-top b{font-size:13px}
.gcchat-v2 .gcchat-text{font-size:13px;line-height:1.55}
.gcchat-v2 .gcchat-message-top small{font-size:10px}
.gcchat-v2 .gcchat-info-section{padding:11px}
.gcchat-v2 .gcchat-compose{padding:9px 12px;position:relative}
.gcchat-v2 .gcchat-tools{position:relative;gap:8px}
.gcchat-v2 .gcchat-tools .gcchat-add{width:33px;height:33px;border-radius:50%;font-size:20px;padding:0;line-height:1}
.gcchat-v2 .gcchat-attach-menu{position:absolute;left:0;bottom:42px;z-index:5;display:flex;gap:7px;align-items:center;background:#35242f;padding:9px;border:1px solid #a37367;border-radius:9px;box-shadow:0 6px 25px #0008}
.gcchat-v2 .gcchat-attach-menu[hidden]{display:none}
.gcchat-v2 .gcchat-compose textarea{min-height:42px;resize:vertical;border-radius:11px}
.gcchat-v2 .gcchat-message-avatar{background:linear-gradient(150deg,#90604b,#593242)}
.gcchat-quote{display:grid;gap:2px;max-width:480px;border-left:3px solid #dbac74;background:#4c303a66;padding:6px 9px;border-radius:3px;margin:5px 0;color:#ead3c1}
.gcchat-quote b{font-size:11px;color:#ffd499}
.gcchat-quote span{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gcchat-compose-reply{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#3c2934;border-left:3px solid #d3a374;padding:8px 10px;border-radius:5px;margin:0 0 9px}
.gcchat-compose-reply span{display:flex;flex-direction:column;gap:3px;min-width:0}
.gcchat-compose-reply b{color:#eac088;font-size:11px}
.gcchat-compose-reply small{font-size:10px;color:#d0b5b6;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gcchat-compose-reply button{border:0;background:none;color:#e8c59f;cursor:pointer}
.gcchat-reactions{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0}
.gcchat-reactions button{border:1px solid #745460;border-radius:14px;background:#3b2a36;color:#f3d4b3;padding:3px 8px;cursor:pointer;font-size:12px}
.gcchat-reactions button.is-mine{background:#60413f;border-color:#d4a46a}
.gcchat-emoji-menu{display:flex;gap:3px;padding:5px;border:1px solid #9e7063;border-radius:7px;width:max-content;max-width:100%;background:#382630}
.gcchat-emoji-menu button{cursor:pointer;border:0;background:none;font-size:17px;padding:4px}
.gcchat-image-button{padding:0;border:0;background:none;display:block;cursor:zoom-in}
.gcchat-lightbox{position:fixed;inset:0;z-index:20000;background:#08050bef;display:grid;place-items:center;padding:42px;box-sizing:border-box}
.gcchat-lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.gcchat-lightbox-close{position:absolute;right:24px;top:20px;border:1px solid #b48a72;border-radius:7px;background:#3a2630;color:#ffd7ab;cursor:pointer;font-size:20px;padding:9px 13px}
@media(max-width:1250px){
 .gcchat-v2 .gcchat-layout{grid-template-columns:220px minmax(0,1fr)}
 .gcchat-v2 .gcchat-info{display:none}
}
@media(max-width:700px){
 .gcchat-v2{height:calc(100dvh - 26px);min-height:560px}
 .gcchat-v2 .gcchat-layout,.gcchat-v2 .gcchat-layout.gcchat-details-hidden{grid-template-columns:minmax(0,1fr)}
 .gcchat-v2 .gcchat-channels{height:auto;max-height:170px;flex:none}
 .gcchat-v2 .gcchat-room{height:auto;flex:1;min-height:0;max-height:none}
 .gcchat-v2 .gcchat-heading p{font-size:10px}
 .gcchat-v2 .gcchat-message-actions{position:static;display:flex}
}

/* P6.4.3 · crisp readable typography and precisely centered header icons */
.gcchat-v2 .gcchat-heading h1,
.gcchat-v2 .gcchat-room-head h2,
.gcchat-v2 .gcchat-info-header h3,
.gcchat-v2 .gcchat-channel-list h3,
.gcchat-v2 .gcchat-section-title{
 color:#f9d49e;
 text-shadow:0 1px 1px rgba(0,0,0,.88),0 0 9px rgba(255,185,106,.13);
 -webkit-text-stroke:.18px rgba(52,20,19,.42);
}
.gcchat-v2 .gcchat-channel-text strong,
.gcchat-v2 .gcchat-message-top b,
.gcchat-v2 .gcchat-sidebar-head b{
 color:#f6ce9a;
 text-shadow:0 1px 1px rgba(0,0,0,.72),0 0 6px rgba(246,189,114,.10);
}
.gcchat-v2 .gcchat-heading p,
.gcchat-v2 .gcchat-room-head small,
.gcchat-v2 .gcchat-channel-text small,
.gcchat-v2 .gcchat-info-empty,
.gcchat-v2 .gcchat-site-note,
.gcchat-v2 .gcchat-muted{
 color:#d6bdc3;
}
.gcchat-v2 .gcchat-text{color:#f2ddd4}
.gcchat-v2 .gcchat-channel-list button.is-selected .gcchat-channel-text{
 color:#ffdfae;
 text-shadow:0 1px 1px rgba(0,0,0,.6);
}
.gcchat-v2 .gcchat-room-actions{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:7px;
 flex:none;
}
.gcchat-v2 .gcchat-room-actions button{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:0 0 34px;
 width:34px;
 height:34px;
 min-width:34px;
 min-height:34px;
 box-sizing:border-box;
 padding:0!important;
 margin:0;
 line-height:1;
 vertical-align:middle;
 border:1px solid #86616a;
 border-radius:8px;
 background:#392731;
 color:#f0c898;
 cursor:pointer;
}
.gcchat-v2 .gcchat-room-actions button svg{
 display:block;
 width:17px;
 height:17px;
 min-width:17px;
 min-height:17px;
 fill:none;
 stroke:currentColor;
 stroke-width:1.9;
 stroke-linecap:round;
 stroke-linejoin:round;
 pointer-events:none;
}
.gcchat-v2 .gcchat-room-actions button:hover{background:#583943;border-color:#c9986f}
.gcchat-v2 .gcchat-room-actions button:focus-visible{outline:2px solid #e9bb87;outline-offset:2px}

/* P6.4.6 · voice notes, SantoStefano gold & burgundy */
.gcchat-voice-controls{margin-top:8px;min-height:30px}
.gcchat-voice-controls button{border:1px solid #91665a;background:#3a2731;color:#f5d4a6;border-radius:7px;padding:7px 11px;cursor:pointer;font-weight:700;font-size:11px}
.gcchat-voice-controls button:disabled{opacity:.6;cursor:wait}
.gcvoice-mic{display:inline-flex;align-items:center;gap:6px}
.gcvoice-live{display:inline-flex;align-items:center;gap:8px;color:#f9b4af;font-size:12px;font-weight:700;margin-right:10px}
.gcvoice-live i{width:9px;height:9px;background:#ff6464;box-shadow:0 0 10px #ff646477;border-radius:50%;animation:gcvoiceblink 1.2s infinite}
@keyframes gcvoiceblink{50%{opacity:.25}}
.gcchat-voice-controls .gcvoice-stop{background:#865050;color:#ffe2c5}
.gcvoice-preview{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.gcvoice-preview audio{height:36px;width:min(310px,100%);min-width:180px}
.gcvoice-preview span{color:#f0c595;font-size:11px}
.gcchat-voice-controls .gcvoice-send{background:linear-gradient(95deg,#ce9a64,#ecc48d);color:#2c1720;border-color:#e8c18f}
.gcvoice-message{display:flex;align-items:center;gap:7px;max-width:410px;margin:5px 0;padding:6px 9px;border:1px solid #896353;border-radius:12px;background:#37232d}
.gcvoice-message .gcvoice-mark{flex:none;font-size:18px}
.gcvoice-message audio{height:34px;min-width:0;flex:1;width:215px}
.gcvoice-message .gcvoice-speed{flex:none;border:1px solid #9b7264;border-radius:12px;background:#523643;color:#f4d1a3;cursor:pointer;font-size:10px;padding:5px}
.gcvoice-message .gcvoice-time{flex:none;color:#c9a8a7;font-size:10px}
@media(max-width:700px){.gcvoice-message{max-width:100%}.gcvoice-message audio{width:145px}.gcvoice-preview audio{min-width:150px}}

/* P6.4.7 · Telegram-style inline microphone next to Send */
.gcchat-v2 .gcchat-tools{
 display:flex;
 align-items:center;
 gap:9px;
 flex-wrap:wrap;
}
.gcchat-v2 .gcchat-voice-controls{
 display:flex;
 align-items:center;
 justify-content:flex-end;
 gap:7px;
 margin:0 0 0 auto;
 min-height:38px;
 flex:0 1 auto;
 min-width:0;
}
.gcchat-v2 .gcchat-tools .gcchat-send{margin-left:0;min-height:38px}
.gcchat-v2 .gcchat-voice-controls .gcvoice-mic-icon{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:38px;
 height:38px;
 min-width:38px;
 min-height:38px;
 box-sizing:border-box;
 padding:0;
 margin:0;
 background:#3a2731;
 border:1px solid #987064;
 border-radius:9px;
 cursor:pointer;
 color:#f5d4a6;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-mic-icon svg{
 width:19px;
 height:19px;
 display:block;
 fill:none;
 stroke:currentColor;
 stroke-width:1.8;
 stroke-linecap:round;
 stroke-linejoin:round;
 pointer-events:none;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-mic-icon:hover{
 background:#563641;
 border-color:#dfaa7a;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-mic-icon:focus-visible{
 outline:2px solid #ecc18e;
 outline-offset:2px;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-inline-btn{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:none;
 box-sizing:border-box;
 width:34px;
 height:34px;
 padding:0;
 border:1px solid #987064;
 border-radius:8px;
 font-size:13px;
 line-height:1;
 background:#422b35;
 color:#f2d2a5;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-live{margin:0 2px 0 0;white-space:nowrap}
.gcchat-v2 .gcchat-voice-controls .gcvoice-stop{background:#75434b}
.gcchat-v2 .gcchat-voice-controls .gcvoice-preview{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 justify-content:flex-end;
 gap:6px;
 max-width:100%;
 min-width:0;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-preview audio{
 width:170px;
 min-width:125px;
 max-width:100%;
 height:34px;
}
.gcchat-v2 .gcchat-voice-controls .gcvoice-send{
 background:linear-gradient(100deg,#cd9862,#efc88e);
 color:#291720;
 border-color:#f0c58c;
}
@media(max-width:700px){
 .gcchat-v2 .gcchat-tools{gap:7px}
 .gcchat-v2 .gcchat-voice-controls{margin-left:auto}
 .gcchat-v2 .gcchat-voice-controls.gcvoice-has-preview{
  flex:1 1 100%;
  justify-content:flex-end;
  order:2;
 }
 .gcchat-v2 .gcchat-voice-controls .gcvoice-preview audio{width:145px}
}
