/* Demo controls only. Operational screens keep their existing visual design. */
:root { --demo-tools-height: 56px; }
.demo-tools { position: sticky; top: 0; z-index: 30; box-sizing: border-box; background: #f0f2fc; border-bottom: 1px solid #dce1f2; color: #35437c; font: 500 13px/1.4 system-ui, sans-serif; }
.demo-tools-inner { display: flex; align-items: center; gap: 12px; min-height: 56px; max-width: 1800px; margin: 0 auto; padding: 6px 24px; box-sizing: border-box; }
.demo-info { flex: none; position: relative; }
.demo-info summary { list-style: none; cursor: pointer; border: 1px solid #e4ce81; border-radius: 5px; background: #fff6d9; color: #795817; padding: 6px 8px; font-size: 11px; font-weight: 750; letter-spacing: .06em; }
.demo-info summary::-webkit-details-marker { display: none; }
.demo-info-content { position: absolute; top: calc(100% + 12px); left: 0; width: min(320px, calc(100vw - 40px)); padding: 18px; box-sizing: border-box; border: 1px solid #dce1ee; border-radius: 10px; background: #fff; color: #4b5568; box-shadow: 0 8px 28px #2334671a; font-size: 13px; line-height: 1.6; }
.demo-info-content strong { color: #26345e; }
.demo-info-content p { margin: 10px 0 0; font-size: inherit; color: inherit; }
.demo-tools-caption { white-space: nowrap; }
.demo-profile-slot { margin-left: auto; min-width: 0; }
.demo-profile-control { display: flex; align-items: center; gap: 8px; }
.demo-profile-control label { white-space: nowrap; font-size: 12px; color: #536084; margin: 0; }
.demo-tools select { box-sizing: border-box; width: 180px; max-width: 100%; min-height: 40px; padding: 7px 28px 7px 10px; margin: 0; border: 1px solid #cdd4eb; border-radius: 6px; background-color: #fff; color: #28365f; font: 600 13px system-ui, sans-serif; cursor: pointer; }
.demo-feedback-slot { flex: none; }
.demo-feedback-button { min-height: 40px; padding: 8px 12px; border: 1px solid #cdd4eb; border-radius: 6px; background: transparent; color: #35437c; font: 600 13px system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.demo-feedback-button:hover { background: #fff; border-color: #8c9dd6; }
dialog .demo-feedback-header { position: sticky; top: 0; z-index: 6; background: #fff; }
.demo-feedback-header > :first-child:not(button) { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.demo-feedback-header > button { flex: none; }
.demo-feedback-toolbar { display: flex; justify-content: flex-end; padding: 8px 0; margin-bottom: 12px; }
.demo-feedback-button:focus-visible { outline: 3px solid #536dd3; outline-offset: 3px; }
.demo-tools :is(button, select, summary):focus-visible { outline: 3px solid #536dd3; outline-offset: 3px; }
.demo-tools [role="alert"]:empty { display: none; }
.demo-tools [role="alert"] { padding: 0 24px 10px; color: #a12626; }
body:has(.demo-tools) .sidebar { top: var(--demo-tools-height); height: calc(100dvh - var(--demo-tools-height)); }
body:has(.demo-tools) .topbar { top: var(--demo-tools-height); }
@media (min-width: 1000px) { body:has(.demo-tools) #module-nav { top: calc(var(--demo-tools-height) + 20px); } }
.demo-feedback-dialog { width: min(540px, calc(100vw - 32px)); max-height: 85dvh; box-sizing: border-box; border: 1px solid #dce1ee; border-radius: 12px; padding: 24px; color: #303437; background: #fff; box-shadow: 0 18px 70px #17284c33; }
.demo-feedback-dialog::backdrop { background: #17284c66; }
.demo-feedback-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.demo-feedback-dialog p { font-size: 14px; line-height: 1.6; }
.demo-feedback-dialog textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0 16px; }
.demo-feedback-dialog .demo-feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-feedback-dialog details { margin-top: 20px; border-top: 1px solid #e4e7ef; padding-top: 16px; }
.demo-feedback-dialog summary { cursor: pointer; }
.demo-feedback-dialog [data-items] { overflow-wrap: anywhere; }
#nav>a[hidden],#module-nav>a[hidden],#mobile-navigation nav>a[hidden],#psk-private[hidden],[data-psk][hidden] { display: none; }
@media (max-width: 700px) {
  .demo-tools-inner { gap: 8px; padding: 6px 12px; }
  .demo-tools-caption { display: none; }
  .demo-profile-slot { flex: 1; }
  .demo-profile-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .demo-tools select { width: 100%; min-height: 44px; font-size: 16px; }
  .demo-feedback-button { min-height: 44px; padding: 8px; font-size: 12px; }
  dialog .demo-feedback-header:not(.demo-feedback-toolbar) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .demo-feedback-header:not(.demo-feedback-toolbar) > .demo-feedback-button { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media print { .demo-feedback-button, .demo-feedback-toolbar { display: none !important; } }

.demo-feedback-slot { display: flex; align-items: center; gap: 8px; }
.demo-feedback-list-button { display: flex; align-items: center; gap: 6px; background: #fff; }
.demo-feedback-list-icon { font-size: 20px; line-height: 1; }
.demo-feedback-list-button [data-count] { font-size: 11px; border-radius: 20px; background: #e9edff; color: #344da0; min-width: 18px; padding: 1px 4px; }
.demo-feedback-center { width: min(980px, calc(100vw - 32px)); max-height: 92dvh; }
.demo-feedback-center-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.demo-feedback-center-heading h2 { margin-top: 7px; }
.demo-feedback-center .demo-feedback-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 20px 0; }
.demo-feedback-summary > div { padding: 16px; background: #f5f6fb; border: 1px solid #e5e8f2; border-radius: 8px; }
.demo-feedback-summary strong { display: block; font-size: 25px; color: #28365f; }
.demo-feedback-summary span { font-size: 12px; color: #687086; }
.demo-feedback-center :is(input,select) { box-sizing: border-box; width: 100%; min-height: 40px; margin: 5px 0 0; }
.demo-feedback-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.demo-feedback-center label { font-size: 12px; color: #687086; display: block; }
.demo-feedback-filters label { flex: 1; min-width: 130px; }
.demo-feedback-filters label:first-child { flex: 1.7; }
.demo-feedback-card { border: 1px solid #e2e6ef; border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.demo-feedback-card > header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-feedback-card time { margin-left: auto; font-size: 12px; color: #778096; }
.demo-feedback-card-meta { color: #687086; font-size: 12px; margin-top: 14px; }
.demo-feedback-card h3 { font-size: 17px; margin: 7px 0; }
.demo-feedback-card .demo-feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; }
.demo-feedback-screen { display: inline-block; font-size: 12px; overflow-wrap: anywhere; }
.demo-feedback-review { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: end; gap: 10px; padding-top: 18px; margin-top: 15px; border-top: 1px solid #edf0f6; }
.demo-feedback-review [role=status] { grid-column: 1/-1; margin: 0; }
.demo-feedback-center details { margin-top: 12px; padding-top: 12px; font-size: 13px; }
.demo-feedback-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 13px; }
@media(max-width:700px) {
  .demo-feedback-list-label { display: none; }
  .demo-feedback-slot { gap: 5px; }
  .demo-feedback-list-button { gap: 3px; }
  .demo-feedback-center { padding: 16px; width: calc(100vw - 16px); }
  .demo-feedback-center .demo-feedback-summary { grid-template-columns: repeat(2,1fr); }
  .demo-feedback-card { padding: 14px; }
  .demo-feedback-card time { width: 100%; margin: 0; }
  .demo-feedback-review { grid-template-columns: 1fr; }
}
@media(max-width:390px) {
  .demo-tools-inner { gap: 5px; padding-left: 8px; padding-right: 8px; }
  .demo-tools select { font-size: 13px; padding-left: 7px; padding-right: 18px; }
  .demo-feedback-list-icon { display: none; }
}
@media(max-width:700px) {
  .demo-feedback-list-icon { display: none; }
  .demo-feedback-list-button::before { content: 'Lista'; font-size: 12px; }
}
