/* Only explicitly selected account/profile/moderation templates use this wrapper. */
.chor-form-layout{min-width:0;max-width:100%;font-size:14px;line-height:1.5}
.chor-form-layout input.textbox,.chor-form-layout input[type=password],.chor-form-layout input[type=email],.chor-form-layout select,.chor-form-layout textarea{box-sizing:border-box;max-width:100%!important;min-width:0;border:1px solid #9eb5c4;border-radius:6px;font-family:inherit;font-size:14px;color:#23313d;background:#fff}
.chor-form-layout input.textbox,.chor-form-layout input[type=password],.chor-form-layout input[type=email],.chor-form-layout select:not([multiple]):not([size]){min-height:36px!important;height:36px!important;padding:6px 9px!important}
.chor-form-layout textarea{padding:9px!important;width:100%!important;height:auto;min-height:110px}
.chor-form-layout input[type=submit],.chor-form-layout button[type=submit]{min-height:32px!important;padding:6px 12px!important;font-size:13px!important;line-height:20px!important;background:#174d6a!important;color:white!important;border:0!important;border-radius:5px!important;font-weight:600}
.chor-form-layout .tcat,.chor-form-layout .tcat a{color:#23313d!important;text-shadow:none!important}
.chor-form-layout .thead,.chor-form-layout .thead a{color:#fff!important;text-shadow:none!important}
.chor-form-layout .thead{background:#174d6a!important}
.chor-layout-fields fieldset{margin:0 0 12px;padding:10px 12px;border:1px solid #d6e1e8;border-radius:7px}
.chor-layout-fields legend{font-size:14px;font-weight:600;padding:0 4px}
.chor-layout-fields .tborder>tbody>tr>td{padding:9px 12px}
.chor-layout-profile td{overflow-wrap:anywhere}
@media(max-width:650px){
.chor-form-layout input.textbox,.chor-form-layout input[type=password],.chor-form-layout input[type=email],.chor-form-layout select,.chor-form-layout textarea{font-size:16px!important}
.chor-layout-fields>table,.chor-layout-fields>table>tbody,.chor-layout-fields>table>tbody>tr,.chor-layout-fields>table>tbody>tr>td,
.chor-layout-fields>form>table,.chor-layout-fields>form>table>tbody,.chor-layout-fields>form>table>tbody>tr,.chor-layout-fields>form>table>tbody>tr>td,
.chor-layout-moderator>table,.chor-layout-moderator>table>tbody,.chor-layout-moderator>table>tbody>tr,.chor-layout-moderator>table>tbody>tr>td,
.chor-layout-profile>table,.chor-layout-profile>table>tbody,.chor-layout-profile>table>tbody>tr,.chor-layout-profile>table>tbody>tr>td{display:block!important;box-sizing:border-box;width:100%!important;min-width:0!important}
.chor-layout-fields .tborder>tbody>tr>td{display:block;box-sizing:border-box;width:100%!important;min-width:0!important;text-align:left!important;padding:7px 10px}
.chor-layout-fields input.textbox,.chor-layout-fields input[type=password],.chor-layout-fields input[type=email]{width:100%!important}
.chor-layout-fields select{max-width:100%!important}
.chor-layout-moderator textarea{width:100%!important}
.chor-layout-moderator .tborder{table-layout:fixed;width:100%!important}.chor-layout-moderator .tborder td{overflow-wrap:anywhere}
.chor-layout-profile .tborder{max-width:100%;table-layout:fixed}
}

/* Full post editors keep their native posting and attachment controls. */
.chor-layout-editor .chor-form-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0}
.chor-layout-editor .chor-form-actions .button{margin:0!important}
.chor-layout-editor .chor-editor-extra{margin:10px 0;text-align:left}
.chor-layout-editor summary{cursor:pointer;color:#174d6a;font-weight:600;padding:6px 0}
.chor-layout-editor .sceditor-container{box-sizing:border-box;max-width:100%!important}
.chor-layout-editor textarea#message{min-height:260px}
@media(max-width:650px){
.chor-layout-editor form[name=input]>.tborder{width:100%;table-layout:fixed}
.chor-layout-editor form[name=input]>.tborder>tbody>tr>td{display:block;box-sizing:border-box;width:100%!important;min-width:0;padding:8px 10px}
.chor-layout-editor input[name=subject]{width:100%!important}
.chor-layout-editor .chor-form-actions>.button{flex:1 1 140px;white-space:normal}
.chor-layout-profile>fieldset{min-width:0;box-sizing:border-box;max-width:100%}
.chor-layout-profile>fieldset table{table-layout:fixed}
.chor-layout-profile img{max-width:100%;height:auto}
}

/* Forum-wide footer: compact credits, with readable navigation links. */
.ch-footer p,.ch-footer p a{font-size:12px!important;line-height:1.55!important;font-weight:400}
.ch-footer p{margin:6px 0!important}
.ch-footer .ch-footer-links a{font-size:13px!important;line-height:1.5!important}
.ch-footer .ch-footer-links{margin-bottom:12px!important}

/* Existing forum is the reference: navy #174d6a, fields 36px, actions 32px. */
html body .ch-photo-field input[type=text],
html body .ch-photo-field select:not([multiple]),
html body .ch-audit-gallery input[type=text],
html body .chor-pm-form input[name=subject],
html body .chor-pm-folder select:not([multiple]){
 box-sizing:border-box!important;height:36px!important;min-height:36px!important;
 padding:6px 9px!important;font-size:14px!important;line-height:22px!important;
}
html body .ch-photo-actions button,
html body .ch-audit-actions button,
html body .ch-gallery .ch-gallery-bottom-actions a{
 box-sizing:border-box!important;min-height:32px!important;padding:6px 12px!important;
 font-family:inherit!important;font-size:13px!important;line-height:20px!important;
 border-radius:5px!important;
}
html body .ch-photo-form h1,html body .ch-audit-gallery h1,
html body .chor-pm-upload h1,html body .chor-pm-upload h2,
html body .ch-gallery .ch-gallery-dark-heading,
html body .ch-gallery .ch-gallery-dark-heading>td,
html body .ch-gallery .ch-gallery-dark-heading>th{
 background:#174d6a!important;color:#fff!important;
}
html body .ch-photo-form h1{font-size:16px!important;line-height:1.4!important;padding:10px 16px!important}
html body .ch-photo-actions button:not([style*="#a52d32"]),
html body .ch-audit-actions button,
html body .ch-gallery a.ch-gallery-nav-button,
html body .ch-gallery .ch-gallery-bottom-actions a,
html body .chor-pm-actions .button,
html body .chor-folder-tools .chor-pm-actions a{
 background:#174d6a!important;border-color:#174d6a!important;color:#fff!important;
}
html body .chor-pm-actions .button:hover,html body .ch-gallery a.ch-gallery-nav-button:hover{background:#123d53!important}
@media(max-width:650px){
 html body .ch-photo-field input[type=text],html body .ch-photo-field select:not([multiple]),
 html body .ch-audit-gallery input[type=text],html body .chor-pm-form input[name=subject],
 html body .chor-pm-folder select:not([multiple]){font-size:16px!important}
}

/* Calendar event form only; dates and recurrence retain native toggle behavior. */
html body a.chor-new-event{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:32px;padding:6px 12px;border:0;border-radius:5px;background:#174d6a;color:#fff!important;font:600 13px/20px Arial,sans-serif;text-decoration:none;white-space:nowrap}
html body a.chor-new-event:hover{background:#123d53}
html body a.chor-new-event:focus-visible{outline:2px solid #dc9718;outline-offset:3px}
.chor-layout-event{max-width:900px;margin:0 auto}
.chor-layout-event form>table{width:100%;table-layout:fixed}
.chor-layout-event form>table>tbody>tr>td{display:block;box-sizing:border-box;width:100%!important;padding:8px 16px;border:0}
.chor-layout-event form>table>tbody>tr>td:first-child:not(.thead){padding-top:14px;padding-bottom:4px;font-weight:600}
.chor-layout-event form>table>tbody>tr>td:last-child:not(.thead){padding-bottom:14px}
.chor-layout-event input[name=name]{width:100%!important}
.chor-layout-event dl dt{margin:8px 0}
.chor-layout-event dl dd{margin:8px 0 14px 0!important;box-sizing:border-box;max-width:100%}
.chor-layout-event select{margin:3px 3px 3px 0;max-width:100%}
.chor-layout-event input[name=start_time],.chor-layout-event input[name=end_time]{width:86px}
.chor-layout-event .chor-editor-extra{margin:6px 0;font-weight:400}
.chor-layout-event summary{cursor:pointer;color:#174d6a;font-size:13px}
.chor-layout-event .sceditor-container{width:100%!important;max-width:100%!important;box-sizing:border-box}
.chor-layout-event .sceditor-container iframe{height:260px!important}
.chor-layout-event textarea#message{min-height:260px;height:260px}
.chor-layout-event .chor-event-actions{display:flex;justify-content:flex-end;gap:10px;margin:12px 0}
@media(max-width:650px){
 .chor-layout-event form>table>tbody>tr>td{padding-left:10px;padding-right:10px}
 .chor-layout-event #ranged_selects>table{table-layout:fixed;width:100%}
 .chor-layout-event #ranged_selects>table>tbody>tr>td{display:block;width:100%!important;box-sizing:border-box;text-align:left!important}
 .chor-layout-event .repeats_type table,.chor-layout-event .repeats_type tbody,.chor-layout-event .repeats_type tr,.chor-layout-event .repeats_type td{display:block;width:100%!important;box-sizing:border-box}
 .chor-layout-event .chor-event-actions input{width:100%}
}

/* Calendar footer: separate action and an aligned month/year row on phones. */
@media(max-width:600px){
 html body .chor-calendar-controls table,html body .chor-calendar-controls tbody,html body .chor-calendar-controls tr,html body .chor-calendar-controls td{display:block;width:100%;box-sizing:border-box}
 html body .chor-calendar-controls table table{border:0;background:transparent;box-shadow:none}
 html body .chor-calendar-controls .chor-calendar-add{padding:0 0 14px;text-align:left}
 html body .chor-calendar-controls .chor-calendar-add:empty{display:none}
 html body .chor-calendar-controls .chor-calendar-jump{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,.65fr) auto;gap:8px;align-items:center;text-align:left;padding:0}
 html body .chor-calendar-jump>span{grid-column:1/-1;font-size:13px;margin:0}
 html body .chor-calendar-jump>br{display:none}
 html body .chor-calendar-jump>select{width:100%;min-width:0;height:38px;margin:0;padding:6px 8px;font-size:16px;box-sizing:border-box}
 html body .chor-calendar-jump>input[type=submit],html body .chor-calendar-jump>button{height:38px;min-height:38px;margin:0;padding:7px 12px;box-sizing:border-box;font-size:13px}
 html body .chor-calendar-jump .chor-calendar-extra{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
 html body .chor-calendar-extra:empty,html body .chor-calendar-extra>br{display:none}
 html body .chor-calendar-extra select{min-width:0;max-width:100%;font-size:16px}
}

/* Dyskretne paski przewijania: strona, pola formularzy i przewijane panele. */
html, body, body * {
 scrollbar-width:thin;
 scrollbar-color:#a6afb5 #f2f4f6;
}
::-webkit-scrollbar {width:10px;height:10px}
::-webkit-scrollbar-track {background:#f2f4f6;border-radius:8px}
::-webkit-scrollbar-thumb {background:#a6afb5;border:2px solid #f2f4f6;border-radius:8px}
::-webkit-scrollbar-thumb:hover {background:#7f8b93}
::-webkit-scrollbar-corner {background:#f2f4f6}
@media (forced-colors:active) {
 html, body, body * {scrollbar-width:auto;scrollbar-color:auto}
}
