/* Settings and stock use the existing theme and controls. */
#panel-settings .settings-card{border-radius:14px!important;min-width:0;}
#panel-settings #avito-settings-card .avito-store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
#panel-settings #avito-settings-card .avito-store{min-width:0;padding:0;border:0;background:transparent;}
#panel-settings #avito-settings-card .avito-store + .avito-store{margin:0;padding:0 0 0 24px;border:0;border-left:1px solid var(--border);}
#panel-settings #avito-settings-card .avito-store-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
#panel-settings #avito-settings-card .avito-store-actions button{width:auto;min-height:38px;padding:8px 14px;border-radius:9px;}
#panel-settings #avito-settings-card .avito-store-state{font-size:12px;padding:9px 10px;line-height:1.5;}
#panel-settings .settings-card .auth-btn{border-radius:9px;}
#panel-settings .settings-card input:not([type=checkbox]),#panel-settings .settings-card textarea{border-radius:9px;}
/* Different settings sections remain vertically ordered at every width. */
.layout-transfer #panel-settings>.panel-body{display:block;}
.layout-transfer #panel-settings .settings-card{width:100%;max-width:1100px;margin:0 auto 20px;box-sizing:border-box;}
.layout-transfer #panel-settings .settings-section-description{width:100%;max-width:1100px;margin:0 auto 18px;box-sizing:border-box;}

#panel-redeem #redeem-stock-manage .redeem-inventory-grid{gap:24px;align-items:start;padding-top:18px;}
#panel-redeem #redeem-stock-manage .redeem-inventory-block{padding:0;border:0;border-radius:0;background:transparent;gap:10px;}
#panel-redeem #redeem-stock-manage .redeem-inventory-block p{min-height:0;line-height:1.6;}
#panel-redeem #redeem-stock-manage .redeem-inventory-block textarea{min-height:132px;padding:12px;border-radius:9px;white-space:pre;overflow:auto;}
#panel-redeem #redeem-stock-manage .redeem-inventory-block>button{margin:2px 0 0;min-height:38px;border-radius:9px;padding:8px 14px;}
#panel-redeem #redeem-stock-manage .redeem-stock-region-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;}
#panel-redeem #redeem-stock-manage .redeem-stock-region-label select{flex:1;min-width:160px;margin:0;min-height:38px;border-radius:9px;}
#panel-redeem #redeem-stock-manage summary:focus:not(:focus-visible){outline:none;}
#panel-redeem #redeem-stock-manage summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:9px;}
#panel-redeem .stock-refill>summary>span:last-child{font-size:0;transform:none;}
#panel-redeem .stock-refill>summary>span:last-child::after{content:'⌄';font-size:18px;}
#panel-redeem .stock-refill[open]>summary>span:last-child::after{content:'⌃';}
@media(max-width:900px){
 #panel-settings #avito-settings-card .avito-store-grid{grid-template-columns:1fr;gap:22px;}
 #panel-settings #avito-settings-card .avito-store + .avito-store{padding:22px 0 0;border:0;border-top:1px solid var(--border);}
}
@media(max-width:760px){
 #panel-redeem #redeem-stock-manage .redeem-inventory-grid{grid-template-columns:1fr;gap:22px;}
 #panel-redeem #redeem-stock-manage .redeem-inventory-block+.redeem-inventory-block{padding-top:20px;border-top:1px solid var(--border);}
}
#panel-redeem #redeem-stock-manage .stock-refill .redeem-inventory-block{border:0;padding:0;margin:0;}
#panel-redeem #redeem-stock-manage .redeem-stock-region-label{flex-direction:row;justify-content:flex-start;align-items:center;text-align:left;}
#panel-redeem #redeem-stock-manage .stock-refill>summary>span:last-child{transform:none!important;}
@media(max-width:760px){#panel-redeem #redeem-stock-manage .stock-refill .redeem-inventory-block+.redeem-inventory-block{padding-top:20px;border-top:1px solid var(--border);}}

/* Use the available settings-card width for all three store connections. */
#panel-settings #avito-settings-card {container-type:inline-size;container-name:avito-connections;}
#panel-settings #avito-settings-card .avito-store-grid {grid-template-columns:minmax(0,1fr);gap:22px;}
#panel-settings #avito-settings-card .avito-store + .avito-store {padding:22px 0 0;border-left:0;border-top:1px solid var(--border);}
@container avito-connections (min-width:900px) {
 #panel-settings #avito-settings-card .avito-store-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
 #panel-settings #avito-settings-card .avito-store + .avito-store {padding:0 0 0 20px;border-top:0;border-left:1px solid var(--border);}
}
