/* System pages reuse Garry Cool tokens. No global form, editor or Bootstrap resets. */
.gc-system,.gc-system-notice,.gc-system-heading{min-width:0;overflow-wrap:anywhere;color:var(--gc-text)}
.gc-system :where(h1,h2,h3),.gc-system-heading h1{font-family:var(--gc-heading);font-weight:500;line-height:1.3}
.gc-system h1,.gc-system-heading h1{font-size:clamp(27px,4vw,38px);margin:0 0 24px}.gc-system h2{font-size:24px}.gc-system h3{font-size:19px}
.gc-system :where(a):hover,.gc-system-notice a:hover{text-decoration:underline;text-underline-offset:4px}
.gc-system-heading{margin-bottom:24px}.gc-system-heading p{color:var(--gc-muted);margin:0 0 16px}
.gc-system .serv__subtitle{font:500 21px/1.4 var(--gc-heading);margin:26px 0 14px}.gc-system .serv__title{margin-top:0}
.gc-system .serv__section{margin-bottom:24px;padding:20px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}
.gc-system .form{min-width:0}.gc-system .form__row{margin:0 0 20px;min-width:0}.gc-system .form__row:last-child{margin-bottom:0}
.gc-system .form__row>label:not(.checkbox),.gc-system .form__caption{display:block;font-weight:600;font-size:14px;margin-bottom:8px}
.gc-system .form__row>:where(input:not([type="hidden"],[type="checkbox"],[type="radio"]),textarea,select){display:block;width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 12px;background:var(--gc-surface);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);font:inherit;color:var(--gc-text)}
.gc-system .form__row>textarea{min-height:130px;resize:vertical}.gc-system :where(input[type="checkbox"],input[type="radio"]){width:20px;height:20px;flex:none;accent-color:var(--gc-accent);vertical-align:middle}
.gc-system .checkbox,.gc-system .form-check-label{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;max-width:100%}
.gc-system .form__row--submit{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.gc-system :where(.form__row--submit button,.form__find-related),.gc-system .pmessages__links a,.gc-system .us__btn a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);background:var(--gc-surface);color:var(--gc-text);font:600 14px/1.4 var(--gc-body);cursor:pointer;text-decoration:none}
.gc-system .form__row--submit button[type="submit"]{background:var(--gc-accent);border-color:var(--gc-accent);color:var(--gc-on-accent)}
.gc-system :where(.form__row--submit button,.form__find-related):hover,.gc-system .pmessages__links a:hover{background:var(--gc-elevated)}.gc-system .form__row--submit button[type="submit"]:hover{background:var(--gc-accent-light)}
.gc-system :where(.form__row--submit button,.form__find-related):active{transform:translateY(1px)}.gc-system :where(button,input,select,textarea):disabled{opacity:.55;cursor:not-allowed}
.gc-system .form__find-related{margin-top:10px}.gc-system .form__sec-code{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.gc-system .form__sec-code>input{min-height:44px;max-width:100%;padding:10px;color:var(--gc-text);background:var(--gc-surface);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius)}
.gc-system :where(.form__table,.form__table table){width:100%;table-layout:fixed;border-collapse:collapse}.gc-system .form__table td{padding:12px 6px;vertical-align:top;overflow-wrap:anywhere}.gc-system .form__table td:first-child{width:32%}
.gc-system .form__table :where(input:not([type="hidden"],[type="checkbox"],[type="radio"]),select){max-width:100%;min-width:0;min-height:44px;background:var(--gc-surface);color:var(--gc-text);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);padding:8px}
.gc-system :where(.form__table img,iframe){max-width:100%}.gc-system .message-info,.gc-system-notice{padding:20px;margin-bottom:24px;border:1px solid var(--gc-border);border-inline-start:3px solid var(--gc-accent);border-radius:var(--gc-radius);background:var(--gc-surface);line-height:1.6}
.gc-system-notice .message-info__title{font:500 21px/1.4 var(--gc-heading);margin-bottom:8px}.gc-system-notice .message-info__content{overflow-wrap:anywhere}.gc-system-notice :where(p,ul){margin-block:8px}
.gc-system-register>.form,.gc-system-feedback>.form,.gc-system-lostpassword{max-width:800px}.gc-system-register .serv__social{display:flex;flex-wrap:wrap;gap:12px}.gc-system-register .serv__social a{display:grid;place-items:center;width:44px;height:44px;background:var(--gc-elevated);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}.gc-system-register .serv__social img{width:24px;height:24px}
.gc-profile{display:grid;gap:24px;padding:24px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}
.gc-profile .us__one{display:grid;grid-template-columns:80px minmax(0,1fr);gap:6px 18px;align-items:center}.gc-profile .us__name{grid-column:2;grid-row:1;margin:0;font-size:28px}.gc-profile .us__name>span{display:block;font:400 12px/1.5 var(--gc-body);text-transform:uppercase;letter-spacing:.06em;color:var(--gc-muted)}
.gc-profile .us__img{grid-column:1;grid-row:1/3;width:80px;height:80px;overflow:hidden;border-radius:50%;background:var(--gc-elevated)}.gc-profile .us__img img{width:100%;height:100%;object-fit:cover;display:block}
.gc-profile .us__status{grid-column:2;grid-row:2;color:var(--gc-muted);font-size:13px}.gc-profile .us__status.on{color:var(--gc-positive)}
.gc-profile .us__two{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding-block:16px;border-block:1px solid var(--gc-border)}.gc-profile .us__info{display:flex;flex-direction:column;min-width:100px;gap:4px}.gc-profile .us__info-desc{font:500 27px/1.2 var(--gc-heading)}.gc-profile .us__info-caption{color:var(--gc-muted);font-size:13px}.gc-profile .us__btn{display:flex;flex-wrap:wrap;gap:10px}
.gc-profile .us__list{list-style:none;padding:0;margin:0;display:grid;gap:14px}.gc-profile .us__list>li{display:flex;flex-wrap:wrap;gap:6px 16px;min-width:0}.gc-profile .us__list>li>span:first-child{color:var(--gc-muted);min-width:140px}.gc-profile .gc-profile-edit{margin-top:24px}
.gc-profile-options{padding:24px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}.gc-system-popup{padding:16px;max-width:100%}.gc-system-popup .us__one{grid-template-columns:64px minmax(0,1fr)}.gc-system-popup .us__img{width:64px;height:64px}
.gc-site .ui-dialog:has(.gc-system){background:var(--gc-surface);color:var(--gc-text);border-color:var(--gc-border);max-width:calc(100vw - 24px)}.gc-site .ui-dialog:has(.gc-system) .ui-dialog-titlebar{background:var(--gc-elevated);color:var(--gc-text);border-color:var(--gc-border)}
.gc-pm .pmessages__links{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:12px}.gc-pm .pmessages__links li{flex:1;min-width:140px}.gc-pm .pmessages__links a{width:100%}.gc-pm .pm_progress_bar{height:12px;background:var(--gc-elevated);border-radius:20px;overflow:hidden;margin-bottom:12px}.gc-pm .pm_progress_bar>span{display:block;height:100%;background:var(--gc-accent);font-size:0}
.gc-pm .serv__table{min-width:0}.gc-pm :where(.pm,.pm_navigation){width:100%;table-layout:fixed;border-collapse:collapse}.gc-pm .pm th,.gc-pm .pm td{padding:14px 10px;border-bottom:1px solid var(--gc-border);text-align:left;vertical-align:top;overflow-wrap:anywhere}.gc-pm .pm .pm_icon{width:64px}.gc-pm .pm .pm_checkbox{width:52px;text-align:center}.gc-pm .pm .pm_last_user{width:150px}.gc-pm .pm th{color:var(--gc-muted);font-size:12px}.gc-pm .pm-unread-image{color:var(--gc-accent)}.gc-pm .pm_last_message,.gc-pm .pm_last_date{font-size:12px;color:var(--gc-muted);margin-top:6px}.gc-pm .pm_subj a{font-weight:600}
.gc-pm .pm_navigation td{padding:16px 0}.gc-pm .pm_navigation :where(select,button){max-width:100%;min-height:44px;padding:8px;border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);background:var(--gc-surface);color:var(--gc-text)}
.gc-pm .pmessages-item{display:flex;gap:14px;padding:18px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}.gc-pm .pmessages-item__img{width:44px;height:44px;flex:none;border-radius:50%;overflow:hidden}.gc-pm .pmessages-item__img img{width:100%;height:100%;object-fit:cover}.gc-pm .pmessages-item__desc{min-width:0;flex:1}.gc-pm .pmessages-item__meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--gc-muted);font-size:13px}.gc-pm .pmessages-item__meta a{display:inline-flex;align-items:center;min-height:44px}.gc-pm .pmessages-item__text{margin-block:12px;overflow-wrap:anywhere}.gc-pm .pmessages-item__text img{max-width:100%;height:auto}.gc-pm blockquote{margin:12px 0;padding:12px;border-inline-start:3px solid var(--gc-accent);background:var(--gc-elevated)}
.gc-system-stats :where(.stats__latest,.stats__list){list-style:none;padding:20px;margin:0}.gc-system-stats .stats__latest{display:grid;gap:12px}.gc-system-stats .stats__common{display:grid;gap:16px!important;padding:0;background:transparent;border:0}.gc-system-stats .stats__list{background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}.gc-system-stats .stats__list li{margin-bottom:10px}.gc-system-stats .stats__list .serv__subtitle{margin-top:0}
.gc-system-card{display:flex;gap:18px;padding:20px;margin-bottom:16px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}.gc-system-card-image{position:relative;display:grid;place-items:center;flex:0 0 144px;align-self:flex-start;aspect-ratio:16/9;overflow:hidden;border-radius:var(--gc-radius);background:var(--gc-elevated)}.gc-system-card-catalog .gc-system-card-image{flex-basis:80px;aspect-ratio:2/3}.gc-system-card-image img{width:100%;height:100%;object-fit:cover;display:block}.gc-system-card-body{min-width:0;flex:1}.gc-system-card h2{font-size:21px;margin:4px 0 8px}.gc-system-card-kind,.gc-system-card-original,.gc-system-card-meta{font-size:13px;color:var(--gc-muted);margin:0 0 8px}.gc-system-card-meta{display:flex;flex-wrap:wrap;gap:4px 12px}.gc-system-card-play{position:absolute;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgb(0 0 0 / .7);color:#fff}
.gc-system-card-actions a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;background:var(--gc-elevated);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);font-size:13px}.gc-system-card-actions a>*{display:none}.gc-system-card-actions a[href*="doaction=add"]::after{content:"В избранное"}.gc-system-card-actions a[href*="doaction=del"]::after{content:"Убрать из избранного"}
.gc-system-comments .comm__title{font:500 22px/1.35 var(--gc-heading);margin-bottom:16px}.gc-system-comments .comm__title a{display:inline-block;min-height:44px}.gc-system-comments .gc-article-comment{margin-bottom:20px}
.gc-system :is(.pagination,.navigation){display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-block:24px}.gc-system .pagination__pages{display:flex;flex-wrap:wrap;gap:8px}.gc-system :is(.pagination,.navigation) :is(a,span){display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:6px;border:1px solid var(--gc-border);border-radius:var(--gc-radius)}.gc-system .pagination__btn--prev::before{content:"←"}.gc-system .pagination__btn--next::before{content:"→"}
.gc-system-tags .cloud-tags a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;margin:4px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius)}
.gc-system-static>.full-text{line-height:1.75}.gc-system-static :where(img,video,iframe){max-width:100%;height:auto}.gc-system-static .full-text a{color:var(--gc-text);text-decoration:underline}.gc-system-static blockquote{padding:16px;margin-inline:0;border-inline-start:3px solid var(--gc-accent);background:var(--gc-surface)}
.gc-system-vote,.gc-system-poll{padding:20px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius);overflow-wrap:anywhere}.gc-system-vote .voter__title,.gc-system-poll .polltitle{font:500 21px/1.4 var(--gc-heading)}.gc-system-vote .voter__caption{font-size:13px;color:var(--gc-muted);margin-block:8px 16px}.gc-system-vote button,.gc-system-poll button{min-height:44px;padding:10px;margin:4px;border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);font:inherit;background:var(--gc-surface);color:var(--gc-text)}
.gc-system-attachment{display:block;padding:18px;margin-block:16px;background:var(--gc-surface);border:1px solid var(--gc-border);border-radius:var(--gc-radius);overflow-wrap:anywhere}.gc-system-attachment .fdl-btn-title{font-weight:700}.gc-system-attachment :is(.fdl-btn-size,.fdl-btn-footer){color:var(--gc-muted);font-size:13px}.gc-system-attachment .fdl-btn-icon{margin-top:12px}
@media(min-width:768px){.gc-system-stats .stats__common{grid-template-columns:repeat(3,minmax(0,1fr))}.gc-profile .us__btn{margin-left:auto}}
@media(max-width:767px){.gc-system .serv__section,.gc-profile,.gc-profile-options{padding:16px}.gc-system .form__table,.gc-system .form__table tbody,.gc-system .form__table tr,.gc-system .form__table td{display:block;width:100%!important}.gc-system .form__table td{padding-inline:0}.gc-pm .pm thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.gc-pm .pm,.gc-pm .pm tbody{display:block}.gc-pm .pm tr{display:grid;grid-template-columns:24px minmax(0,1fr) 44px;padding:12px 0;border-bottom:1px solid var(--gc-border)}.gc-pm .pm td{padding:4px;border:0;width:auto!important}.gc-pm .pm td.pm_icon{grid-column:1;grid-row:1}.gc-pm .pm td.pm_subj{grid-column:2;grid-row:1}.gc-pm .pm td.pm_checkbox{grid-column:3;grid-row:1/3}.gc-pm .pm td.pm_last_user{grid-column:2;grid-row:2}.gc-pm .pm_navigation,.gc-pm .pm_navigation tbody,.gc-pm .pm_navigation tr,.gc-pm .pm_navigation td{display:block;width:100%;text-align:left}.gc-system-card{gap:12px;padding:14px}.gc-system-card-image{flex-basis:100px}.gc-system-card-catalog .gc-system-card-image{flex-basis:65px}.gc-system-card h2{font-size:18px}}

.gc-system .gc-system-warning{margin-top:10px;font-size:13px;color:var(--gc-error)}
.gc-system-static .full-text table{display:block;max-width:100%;overflow-x:auto}

.gc-system .form__row>label>select{display:block;margin-top:8px;min-height:44px;width:100%;max-width:100%;padding:10px;color:var(--gc-text);background:var(--gc-surface);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);font:inherit}
.gc-system-stats .serv__table-resp{max-width:100%;overflow-x:auto}.gc-system-stats .serv__table-resp table{width:100%;border-collapse:collapse}.gc-system-stats .serv__table-resp :is(th,td){padding:12px;border-bottom:1px solid var(--gc-border);text-align:left;overflow-wrap:anywhere}
.gc-system .form__table textarea{max-width:100%;min-height:100px;padding:10px;background:var(--gc-surface);color:var(--gc-text);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);font:inherit}
.gc-system-register .serv__social:not(:has(a)){display:none}

.gc-system :is(.pagination__btn--prev,.pagination__btn--next){font-family:var(--gc-body);font-style:normal}
.gc-system input[type="file"]::file-selector-button{min-height:32px;padding:6px 10px;margin-right:10px;border:1px solid var(--gc-border);border-radius:var(--gc-radius);background:var(--gc-elevated);color:var(--gc-text);font:inherit;cursor:pointer}
.gc-pm .pmessages-item__text pre,.gc-system-static .full-text pre,.gc-system-comments .comm__main pre{max-width:100%;overflow-x:auto}

/* DLE 21 renders additional fields as div rows, not table cells. */
.gc-addnews .gc-addnews-xfields{min-width:0}
.gc-addnews .gc-addnews-xfields .xfieldsrow{margin-bottom:22px;min-width:0}
.gc-addnews .gc-addnews-xfields .xfieldsrow:last-child{margin-bottom:0}
.gc-addnews .gc-addnews-xfields .xfieldscolleft{margin-bottom:8px;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.gc-addnews .gc-addnews-xfields .xfieldscolright{min-width:0;max-width:100%}
.gc-addnews .gc-addnews-xfields .xfieldscolright> :is(input:not([type="hidden"],[type="checkbox"],[type="radio"],[type="file"]),select,textarea){display:block;width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);background:var(--gc-surface);color:var(--gc-text);font:inherit;line-height:1.5}
.gc-addnews .gc-addnews-xfields .xfieldscolright>textarea{min-height:120px;resize:vertical}
.gc-addnews .gc-addnews-xfields .xfieldscolright>select[multiple]{min-height:140px}
.gc-addnews .gc-addnews-xfields .xfieldsnote{margin-top:8px;color:var(--gc-muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.gc-addnews .gc-addnews-xfields .clipboard-copy-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;vertical-align:middle;color:var(--gc-muted);border-radius:var(--gc-radius)}
.gc-addnews .gc-addnews-xfields .qq-uploader{min-width:0;max-width:100%}
.gc-addnews .gc-addnews-xfields .qq-upload-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:44px;padding:10px 16px;border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);background:var(--gc-elevated);color:var(--gc-text);font:600 14px/1.5 var(--gc-body);text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.gc-addnews .gc-addnews-xfields :is(.qq-upload-button,.clipboard-copy-link):hover{background:var(--gc-elevated);color:var(--gc-text);border-color:var(--gc-accent)}
.gc-addnews .gc-addnews-xfields :is(input:not([type="hidden"]),select,textarea,.clipboard-copy-link,.qq-upload-button):focus-visible,.gc-addnews .gc-addnews-xfields .qq-upload-button:focus-within{outline:2px solid var(--gc-accent);outline-offset:3px}
.gc-addnews .gc-addnews-xfields :is(input,textarea,select,.qq-upload-button):is(:disabled,[disabled],[aria-disabled="true"]){opacity:.55;cursor:not-allowed}
.gc-addnews .gc-addnews-xfields :is(img,video){max-width:100%;height:auto}
