.panel-page .panel-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.panel-overview article{display:flex;flex-direction:column;gap:8px;padding:24px;background:#101115;border:1px solid #292b32;border-radius:14px}
.panel-overview article:first-child{border-top:2px solid #dc1820}
.panel-overview span,.panel-overview small,.panel-state small{color:#a9adb8;font-size:13px}
.panel-overview strong{font-size:32px;line-height:1.2;color:#f3f4f6}
.panel-page .panel-library{padding:24px;border:1px solid #292b32;border-radius:14px;background:#0d0e12}
.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 24px;color:#a9adb8;font-size:13px}
.panel-toolbar label{display:flex;align-items:center;gap:12px}.panel-toolbar select{width:auto;max-width:100%;min-height:40px}
.panel-page .panel-table-head,.panel-page .panel-list-row{grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) 90px minmax(260px,1fr);gap:16px}
.panel-page .panel-list-row{padding:20px 16px;border-radius:12px}
.panel-page .panel-list-row[hidden],.panel-page [hidden]{display:none!important}
.panel-info,.panel-info>div,.panel-state{min-width:0}.panel-info strong,.panel-info span{overflow-wrap:anywhere}
.panel-state{display:flex;flex-direction:column;gap:8px}.panel-page .panel-status{display:inline-flex;font-size:13px;color:#d9dce4}
.panel-page .panel-open-count{display:block;font-size:20px}.panel-open-count small{display:block;font-size:11px;font-weight:400;color:#a9adb8}
.panel-page .panel-row-actions{flex-wrap:wrap;min-width:0!important}
.panel-page .panel-row-actions form{width:auto!important;height:auto!important}
.panel-page .panel-action-button,.panel-text-action{width:auto!important;height:auto!important;min-height:36px!important;padding:8px 10px!important;border-radius:7px!important;border:1px solid #30323b;background:#15161c;color:#d9dce4;font-family:inherit;font-size:12px;font-weight:500;line-height:1.3;text-decoration:none;cursor:pointer}
.panel-page .panel-text-action:hover{border-color:#dc1820;color:white}
.panel-page .wizard-form-card,.panel-page .message-builder__fields,.panel-page .publish-card{border:1px solid #292b32;border-radius:14px}
.panel-page .field input,.panel-page .field select,.panel-page .field textarea{font-size:14px;min-width:0}
.panel-page .discord-embed{overflow-wrap:anywhere}.panel-page .discord-embed p{white-space:pre-wrap}
.panel-page .wizard-heading p{line-height:1.6}.panel-page .wizard-actions{gap:12px}
@media(max-width:1200px){.panel-page .panel-table-head{display:none}.panel-page .panel-list-row{grid-template-columns:minmax(0,1fr) auto}.panel-row-actions{grid-column:1/-1;justify-content:flex-start!important}.panel-state{grid-column:1}.panel-open-count{grid-column:2;grid-row:2}.panel-toolbar{flex-wrap:wrap}}
@media(max-width:620px){.panel-page .panel-overview{grid-template-columns:1fr;gap:8px}.panel-overview article{padding:16px;display:grid;grid-template-columns:1fr auto}.panel-overview strong{grid-column:2;grid-row:1/3}.panel-page .panel-library{padding:14px}.panel-page .panel-page-head>.btn-primary{display:inline-flex}.panel-toolbar label{align-items:flex-start;flex-direction:column}.panel-page .number-grid,.panel-page .per-type-grid{grid-template-columns:1fr}.panel-page .per-type-grid .wide{grid-column:auto}.panel-page .panel-list-row{gap:12px}.panel-page .panel-info{grid-column:1/-1}.panel-page .wizard-actions{flex-wrap:wrap}}

.published-channels{margin-bottom:24px}.published-channel-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #292d38}.published-channel-row>div{min-width:0}.published-channel-row strong,.published-channel-row p{overflow-wrap:anywhere}.published-channel-row p{margin:5px 0;color:#a5a9b5}.published-channel-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.published-channel-actions a{color:#c5c9d4}@media(max-width:640px){.published-channel-row{align-items:flex-start;flex-direction:column}.published-channel-actions{width:100%;justify-content:space-between}}

/* The shared dashboard styles the native checkbox as a switch. Hide the
   legacy decorative track so ticket settings show one control, aligned right. */
.panel-page #panel-wizard-form>.wizard-step,
.panel-page .advanced-ticket-settings,
.panel-page .settings-stack,
.panel-page .settings-stack>section{min-width:0;max-width:100%;box-sizing:border-box}
.panel-page .settings-stack{grid-template-columns:minmax(0,1fr)}
.app main.content.panel-page .settings-stack label.setting-toggle.nc-switch-row{
  flex-direction:row!important;
  width:100%;
  box-sizing:border-box;
  margin:0 0 16px!important;
}
.app main.content.panel-page .settings-stack label.setting-toggle.nc-switch-row>span{
  min-width:0;
  text-align:left;
}
.app main.content.panel-page .settings-stack label.setting-toggle.nc-switch-row>i{
  display:none!important;
}
@media(max-width:620px){
  .app main.content.panel-page .panel-compact-editor #panel-wizard-form{grid-template-columns:minmax(0,1fr)!important}
  .app main.content.panel-page #panel-wizard-form>.wizard-step{min-width:0!important}
  .panel-page .settings-stack .permission-columns{grid-template-columns:minmax(0,1fr)}
}
