/* PureSpot AdminCP â Light Executive theme
   Tokens from PureSpot brand gold + charcoal/black on warm off-white.
   Scoped shell: body.ps-shell. Legacy print/kiosk pages are not affected. */

.ps-shell,
.ps-auth {
  --ps-gold: #d39935;
  --ps-gold-dark: #b87d22;
  --ps-gold-light: #e8b44a;
  --ps-gold-soft: #f6edd8;

  --ps-black: #111111;
  --ps-charcoal: #2c2c2c;

  --ps-bg: #f4f1eb;
  --ps-surface: #ffffff;
  --ps-surface-muted: #faf8f4;

  --ps-text: #1a1a1a;
  --ps-text-muted: #6a645c;
  --ps-text-on-dark: #f7f4ee;

  --ps-border: #e4dfd5;
  --ps-border-strong: #d3ccc0;

  --ps-success: #2f7d4a;
  --ps-success-bg: #e8f5ec;
  --ps-warning: #c47d12;
  --ps-warning-bg: #faf1e0;
  --ps-danger: #b42318;
  --ps-danger-bg: #fdecea;
  --ps-info: #2563a8;
  --ps-info-bg: #e8f1fa;

  --ps-radius-sm: 6px;
  --ps-radius-md: 10px;
  --ps-radius-lg: 14px;

  --ps-shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --ps-shadow-md: 0 6px 18px rgba(17, 17, 17, 0.06);

  --ps-sidebar-width: 260px;
  --ps-sidebar-collapsed: 76px;
  --ps-topbar-height: 60px;
  --ps-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ps-mono: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  font-family: var(--ps-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ps-text);
  background: var(--ps-bg);
  margin: 0;
  min-height: 100%;
}

body.ps-auth {
  overflow-x: hidden;
}

.ps-shell *,
.ps-shell *::before,
.ps-shell *::after,
.ps-auth *,
.ps-auth *::before,
.ps-auth *::after {
  box-sizing: border-box;
}

.ps-shell a,
.ps-auth a {
  color: var(--ps-charcoal);
  text-decoration: none;
}

.ps-shell a:hover,
.ps-auth a:hover {
  color: var(--ps-black);
}

.ps-shell img,
.ps-auth img {
  max-width: 100%;
  height: auto;
}

.ps-shell :focus-visible,
.ps-auth :focus-visible {
  outline: 2px solid var(--ps-gold);
  outline-offset: 2px;
}

.ps-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--ps-black);
  color: #fff;
  padding: 8px 14px;
}

.ps-skip:focus {
  left: 12px;
  top: 12px;
}

/* ----- App grid ----- */

.ps-app {
  display: grid;
  grid-template-columns: var(--ps-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.ps-sidebar {
  background: var(--ps-surface);
  border-right: 1px solid var(--ps-border);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.ps-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 16px;
}

.ps-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.ps-topbar {
  height: var(--ps-topbar-height);
  background: var(--ps-surface);
  border-bottom: 1px solid var(--ps-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ps-content {
  flex: 1;
  padding: 22px 24px 40px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.ps-overlay {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

/* ----- Brand ----- */

.ps-brand {
  padding: 14px 12px 10px;
}

.ps-brand-mark {
  display: block;
  background: #000;
  border-radius: var(--ps-radius-md);
  padding: 10px 12px 8px;
  line-height: 0;
}

.ps-brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.ps-brand-meta {
  margin-top: 8px;
  padding: 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
  font-weight: 600;
}

.ps-sidebar-foot {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--ps-border);
  font-size: 11px;
  color: var(--ps-text-muted);
}

/* ----- Navigation ----- */

.ps-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-nav-item,
.ps-nav-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ps-charcoal);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--ps-radius-sm);
  cursor: pointer;
  min-height: 36px;
}

.ps-nav-item:hover,
.ps-nav-toggle:hover {
  background: var(--ps-surface-muted);
  color: var(--ps-black);
}

.ps-nav-item.is-active {
  background: var(--ps-black);
  color: var(--ps-gold-light);
}

.ps-nav-item.is-active .ps-nav-ico {
  color: var(--ps-gold-light);
}

.ps-nav-toggle.is-current {
  color: var(--ps-black);
  background: var(--ps-gold-soft);
}

.ps-nav-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--ps-text-muted);
}

.ps-nav-item:hover .ps-nav-ico,
.ps-nav-toggle:hover .ps-nav-ico,
.ps-nav-toggle.is-current .ps-nav-ico {
  color: var(--ps-gold-dark);
}

.ps-nav-caret {
  margin-left: auto;
  width: 12px;
  height: 12px;
  color: var(--ps-text-muted);
  transition: transform 0.15s ease;
}

.ps-nav-group[open] > .ps-nav-toggle .ps-nav-caret {
  transform: rotate(90deg);
}

.ps-nav-group > .ps-nav-toggle {
  list-style: none;
}

.ps-nav-group > .ps-nav-toggle::marker,
.ps-nav-group > .ps-nav-toggle::-moz-list-bullet {
  display: none;
  content: "";
}

.ps-nav-group > .ps-nav-toggle::-webkit-details-marker {
  display: none;
}

.ps-nav-sub {
  list-style: none;
  margin: 0 0 6px;
  padding: 2px 0 4px 8px;
}

.ps-nav-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 28px;
  border-radius: var(--ps-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ps-text-muted);
  min-height: 32px;
  position: relative;
}

.ps-nav-sub a::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ps-border-strong);
}

.ps-nav-sub a:hover {
  background: var(--ps-surface-muted);
  color: var(--ps-black);
}

.ps-nav-sub a.is-active {
  background: var(--ps-black);
  color: var(--ps-gold-light);
  font-weight: 600;
}

.ps-nav-sub a.is-active::before {
  background: var(--ps-gold);
}

.ps-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Topbar ----- */

.ps-topbar-left,
.ps-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ps-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ps-border);
  background: var(--ps-surface);
  border-radius: var(--ps-radius-sm);
  color: var(--ps-charcoal);
  cursor: pointer;
  padding: 0;
}

.ps-icon-btn:hover {
  border-color: var(--ps-gold);
  color: var(--ps-black);
}

.ps-topbar-title {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-conf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  min-height: 36px;
  padding: 4px 8px 4px 12px;
  background: var(--ps-surface-muted);
  border: 1px solid var(--ps-border);
  border-radius: 999px;
}

.ps-conf-chip-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
  font-weight: 700;
}

.ps-conf-chip-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--ps-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.ps-conf-chip-action {
  font-size: 12px;
  font-weight: 650;
  color: var(--ps-black);
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.ps-conf-chip-action:hover {
  border-color: var(--ps-gold);
  color: var(--ps-black);
}

.ps-account {
  position: relative;
}

.ps-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ps-border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font: inherit;
  color: var(--ps-text);
}

.ps-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ps-black);
  color: var(--ps-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.ps-account-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-shadow-md);
  padding: 6px;
  z-index: 40;
}

.ps-account.is-open .ps-account-menu {
  display: block;
}

.ps-account-menu a,
.ps-account-menu .ps-account-meta {
  display: block;
  padding: 8px 10px;
  border-radius: var(--ps-radius-sm);
  font-size: 13px;
}

.ps-account-meta {
  color: var(--ps-text-muted);
  border-bottom: 1px solid var(--ps-border);
  margin-bottom: 4px;
}

.ps-account-menu a:hover {
  background: var(--ps-surface-muted);
}

.ps-account-menu a svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 6px;
}

/* ----- Page header ----- */

.ps-pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ps-pagehead h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ps-black);
}

.ps-pagehead .ps-sub {
  margin: 0;
  color: var(--ps-text-muted);
  font-size: 13px;
}

.ps-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  color: var(--ps-text-muted);
}

.ps-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--ps-border-strong);
}

.ps-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ----- Buttons ----- */

.ps-btn,
.ps-shell .btn,
.ps-shell .btnlong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-border-strong);
  background: #fff;
  color: var(--ps-charcoal);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  width: auto;
}

.ps-shell .btnlong {
  min-width: 150px;
}

.ps-btn:hover,
.ps-shell .btn:hover,
.ps-shell .btnlong:hover {
  border-color: var(--ps-gold);
  color: var(--ps-black);
  background: var(--ps-surface-muted);
}

.ps-btn-primary {
  background: var(--ps-black);
  color: var(--ps-text-on-dark);
  border-color: var(--ps-black);
  box-shadow: inset 0 -2px 0 var(--ps-gold);
}

.ps-btn-primary:hover {
  background: #000;
  color: var(--ps-text-on-dark);
  border-color: #000;
}

/* .ps-shell a { color: charcoal } is more specific than .ps-btn-primary on <a> CTAs. */
.ps-shell a.ps-btn,
.ps-auth a.ps-btn,
.ps-shell a.ps-btn:link,
.ps-auth a.ps-btn:link,
.ps-shell a.ps-btn:visited,
.ps-auth a.ps-btn:visited {
  color: var(--ps-charcoal);
  text-decoration: none;
}

.ps-shell a.ps-btn:hover,
.ps-auth a.ps-btn:hover,
.ps-shell a.ps-btn:focus,
.ps-auth a.ps-btn:focus,
.ps-shell a.ps-btn:active,
.ps-auth a.ps-btn:active {
  color: var(--ps-black);
}

.ps-shell a.ps-btn-primary,
.ps-auth a.ps-btn-primary,
.ps-shell a.ps-btn-primary:link,
.ps-auth a.ps-btn-primary:link,
.ps-shell a.ps-btn-primary:visited,
.ps-auth a.ps-btn-primary:visited,
.ps-shell a.ps-btn-primary:hover,
.ps-auth a.ps-btn-primary:hover,
.ps-shell a.ps-btn-primary:focus,
.ps-auth a.ps-btn-primary:focus,
.ps-shell a.ps-btn-primary:focus-visible,
.ps-auth a.ps-btn-primary:focus-visible,
.ps-shell a.ps-btn-primary:active,
.ps-auth a.ps-btn-primary:active {
  color: var(--ps-text-on-dark);
}

.ps-shell a.ps-btn-gold,
.ps-auth a.ps-btn-gold,
.ps-shell a.ps-btn-gold:link,
.ps-auth a.ps-btn-gold:link,
.ps-shell a.ps-btn-gold:visited,
.ps-auth a.ps-btn-gold:visited,
.ps-shell a.ps-btn-gold:hover,
.ps-auth a.ps-btn-gold:hover,
.ps-shell a.ps-btn-gold:focus,
.ps-auth a.ps-btn-gold:focus,
.ps-shell a.ps-btn-gold:active,
.ps-auth a.ps-btn-gold:active {
  color: var(--ps-black);
}

.ps-btn-primary:disabled,
.ps-btn-primary[disabled],
.ps-btn-primary[aria-disabled="true"] {
  color: var(--ps-text-on-dark);
  opacity: 0.55;
  cursor: not-allowed;
}

.ps-btn-gold {
  background: linear-gradient(180deg, var(--ps-gold-light) 0%, var(--ps-gold) 55%, var(--ps-gold-dark) 100%);
  color: var(--ps-black);
  border-color: var(--ps-gold-dark);
}

.ps-btn-gold:hover {
  filter: brightness(1.04);
  color: var(--ps-black);
}

.ps-btn svg {
  width: 16px;
  height: 16px;
  color: inherit;
  fill: none;
  stroke: currentColor;
}

.ps-btn-danger {
  color: var(--ps-danger);
  border-color: #e8b4b0;
  background: var(--ps-danger-bg);
}

.ps-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-border);
  background: #fff;
  color: var(--ps-charcoal);
  cursor: pointer;
  padding: 0;
}

.ps-icon-action svg {
  width: 16px;
  height: 16px;
}

.ps-icon-action:hover {
  border-color: var(--ps-gold);
  color: var(--ps-black);
}

.ps-icon-action.is-danger {
  color: var(--ps-danger);
}

.ps-icon-action.is-danger:hover {
  background: var(--ps-danger-bg);
  border-color: #e8b4b0;
}

/* ----- Cards / KPIs ----- */

.ps-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-shadow-sm);
  padding: 16px 18px;
}

.ps-card h2,
.ps-card-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ps-black);
}

.ps-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ps-kpi {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-shadow-sm);
  padding: 16px 18px 14px;
  min-height: 108px;
}

.ps-kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ps-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ps-kpi-label .ps-nav-ico {
  color: var(--ps-gold-dark);
}

.ps-kpi-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ps-black);
  line-height: 1.1;
}

.ps-kpi-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ps-text-muted);
}

.ps-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
}

.ps-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ps-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: var(--ps-surface-muted);
  font-weight: 650;
  font-size: 13px;
  color: var(--ps-charcoal);
}

.ps-quick:hover {
  border-color: var(--ps-gold);
  background: #fff;
  color: var(--ps-black);
}

.ps-quick .ps-nav-ico {
  color: var(--ps-gold-dark);
}

.ps-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--ps-surface);
  border: 1px dashed var(--ps-border-strong);
  border-radius: var(--ps-radius-lg);
}

.ps-empty h2 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.ps-empty p {
  margin: 0 0 16px;
  color: var(--ps-text-muted);
}

.ps-meta {
  font-size: 12px;
  color: var(--ps-text-muted);
}

.ps-dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.ps-dl dt {
  color: var(--ps-text-muted);
  font-size: 12px;
  font-weight: 650;
}

.ps-dl dd {
  margin: 0;
  font-weight: 600;
}

.ps-welcome {
  margin-bottom: 18px;
}

.ps-welcome h1 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.ps-gold-rule {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ps-gold-light), var(--ps-gold), var(--ps-gold-dark));
  margin: 10px 0 0;
}

/* ----- Tables (new + legacy bridge) ----- */

.ps-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.ps-shell #mytable,
.ps-shell #mytable40,
.ps-shell #mytable60,
.ps-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--ps-font);
}

.ps-shell #mytable40 {
  width: 100%;
  max-width: 720px;
}

.ps-shell #mytable60 {
  width: 100%;
  max-width: 880px;
}

.ps-shell #mytable th,
.ps-shell #mytable40 th,
.ps-shell #mytable60 th,
.ps-table th {
  background: var(--ps-surface-muted);
  color: var(--ps-charcoal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ps-border-strong);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  line-height: 1.3;
  height: 40px;
}

.ps-shell #mytable td,
.ps-shell #mytable40 td,
.ps-shell #mytable60 td,
.ps-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--ps-border);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font-size: 13px;
  color: var(--ps-text);
  vertical-align: middle;
  line-height: 1.35;
  height: 48px;
}

.ps-shell #mytable tr:hover td,
.ps-shell #mytable40 tr:hover td,
.ps-shell #mytable60 tr:hover td,
.ps-table tbody tr:hover td {
  background: #fbf8f2;
}

.ps-shell #navigator {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

.ps-shell #navigator td,
.ps-shell #navigator th {
  border: 0;
  padding: 6px;
  background: transparent;
}

.ps-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.ps-muted {
  color: var(--ps-text-muted);
}

.ps-hash {
  font-family: var(--ps-mono);
  font-size: 12px;
  color: var(--ps-text-muted);
}

.ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ps-denied {
  color: var(--ps-danger);
  font-weight: 650;
}

.ps-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-border);
  font-size: 13px;
}

.ps-notice-error {
  background: var(--ps-danger-bg);
  border-color: #e8b4b0;
  color: var(--ps-danger);
}

.ps-notice-success {
  background: var(--ps-success-bg);
  border-color: #b7dcc4;
  color: var(--ps-success);
}

.ps-notice-warning {
  background: var(--ps-warning-bg);
  border-color: #ead7a8;
  color: var(--ps-warning);
}

.ps-form-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
  padding: 24px 24px 20px;
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.ps-form-card--wide {
  max-width: 1100px;
}

.ps-form-wrap {
  width: 100%;
}

.ps-form-wrap--compact {
  max-width: 760px;
  margin: 0 auto;
}

.ps-form-wrap--standard {
  max-width: 1040px;
  margin: 0 auto;
}

.ps-form-wrap--complex {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.ps-form-wrap--complex.has-context {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: start;
}

.ps-form-main {
  min-width: 0;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
  padding: 22px 24px 18px;
}

.ps-form-wrap--compact .ps-form,
.ps-form-wrap--standard .ps-form,
.ps-form-wrap--complex > .ps-form {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
  padding: 22px 24px 18px;
}

.ps-form-section {
  margin: 0 0 22px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ps-border);
}

.ps-form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 8px;
}

.ps-form-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ps-form-section-ico {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f7f3eb;
  border: 1px solid var(--ps-border);
  color: var(--ps-charcoal);
  flex: 0 0 auto;
}

.ps-form-section-ico svg {
  width: 16px;
  height: 16px;
}

.ps-form-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--ps-black);
  letter-spacing: 0;
  text-transform: none;
}

.ps-form-section-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ps-text-muted);
}

.ps-form-context {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ps-form-side-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
  padding: 16px;
}

.ps-form-side-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
}

.ps-form-side-body {
  font-size: 13px;
  color: var(--ps-text);
}

.ps-form-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ps-form-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ps-border);
  padding-bottom: 8px;
}

.ps-form-meta-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ps-form-meta-k {
  color: var(--ps-text-muted);
  font-weight: 650;
}

.ps-form-meta-v {
  font-weight: 700;
  color: var(--ps-charcoal);
  text-align: right;
  word-break: break-word;
}

.ps-form-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-form-quick-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  text-decoration: none;
  color: var(--ps-charcoal);
  font-size: 13px;
  font-weight: 650;
  background: #fff;
}

.ps-form-quick-actions a:hover {
  border-color: var(--ps-gold);
  background: #fbf8f2;
}

.ps-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 18px;
}

.ps-form-row,
.ps-field.ps-span-2 {
  grid-column: 1 / -1;
}

.ps-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ps-label,
.ps-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ps-charcoal);
}

.ps-required {
  color: var(--ps-gold-dark);
  margin-left: 2px;
}

.ps-help {
  margin: 0;
  font-size: 12px;
  color: var(--ps-text-muted);
}

.ps-form-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--ps-border);
  border-left: 3px solid var(--ps-gold);
  border-radius: var(--ps-radius-sm);
  background: #fcfbf8;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ps-text-muted);
}

.ps-form-quick-actions .ps-help {
  margin: -2px 0 4px;
  padding: 0 2px;
  line-height: 1.4;
}

.ps-input,
.ps-select,
.ps-textarea,
.ps-form-card input[type="text"],
.ps-form-card input[type="password"],
.ps-form-card input[type="email"],
.ps-form-card input[type="url"],
.ps-form-card input[type="number"],
.ps-form-card input[type="tel"],
.ps-form-card input[type="date"],
.ps-form-card input[type="datetime-local"],
.ps-form-card input[type="file"],
.ps-form-card select,
.ps-form-card textarea,
.ps-form input[type="text"],
.ps-form input[type="password"],
.ps-form input[type="email"],
.ps-form input[type="url"],
.ps-form input[type="number"],
.ps-form input[type="tel"],
.ps-form input[type="date"],
.ps-form input[type="datetime-local"],
.ps-form input[type="file"],
.ps-form select,
.ps-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  color: var(--ps-text);
  font: inherit;
  font-size: 14px;
}

.ps-form-card textarea,
.ps-form textarea,
.ps-textarea {
  min-height: 110px;
  resize: vertical;
}

.ps-form-card input:focus,
.ps-form-card select:focus,
.ps-form-card textarea:focus,
.ps-form input:focus,
.ps-form select:focus,
.ps-form textarea:focus {
  outline: 2px solid var(--ps-gold);
  outline-offset: 1px;
  border-color: var(--ps-gold);
}

.ps-field-error {
  color: var(--ps-danger);
  font-size: 12px;
}

.ps-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ps-border);
}

.ps-form-actions--sticky {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 5;
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 8px;
}

.ps-form-actions .ps-btn-primary {
  order: 2;
}

.ps-form-actions .ps-btn:not(.ps-btn-primary) {
  order: 1;
}

.ps-section {
  margin: 8px 0 4px;
  grid-column: 1 / -1;
}

.ps-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
}

.ps-page {
  overflow-x: hidden;
}

.ps-page form {
  max-width: 100%;
}

.ps-table-scroll,
.ps-report-scroll,
.ps-page table[id^="mytable"],
.ps-page #navigator {
  max-width: 100%;
}

.ps-confirm {
  max-width: 520px;
  text-align: center;
  padding: 32px 24px;
}

.ps-confirm h2 {
  margin: 12px 0 8px;
}

.ps-notice-info {
  background: #eef4fb;
  border-color: #c9daf0;
  color: #1e3a5f;
}

.ps-logo-preview {
  display: block;
  max-width: 100%;
  width: min(400px, 100%);
  height: auto;
  margin-bottom: 10px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
}

.ps-date-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-date-field input {
  flex: 1 1 auto;
}

.ps-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  min-height: 42px;
}

.ps-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  color: var(--ps-text);
  cursor: pointer;
}

.ps-time-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.ps-time-pair select {
  width: auto;
  min-width: 72px;
  flex: 0 0 auto;
}

@media (max-width: 1099px) {
  .ps-form-wrap--complex.has-context {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ps-form-grid {
    grid-template-columns: 1fr;
  }

  .ps-form-card,
  .ps-form-main,
  .ps-form-wrap--compact .ps-form,
  .ps-form-wrap--standard .ps-form,
  .ps-form-wrap--complex > .ps-form {
    padding: 18px 16px 16px;
  }

  .ps-form-actions {
    justify-content: stretch;
  }

  .ps-form-actions .ps-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Legacy Dreamweaver tables/controls inside the modern shell */
.ps-page .bgblue,
.ps-page td.bgblue,
.ps-page th.bgblue {
  background: transparent !important;
  color: var(--ps-charcoal);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  width: 180px;
}

.ps-page table[id^="mytable"] {
  width: 100%;
  max-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
}

.ps-form-card table[id^="mytable"] {
  border: 0;
  box-shadow: none;
  max-width: 100%;
}

.ps-page table[id^="mytable"] td,
.ps-page table[id^="mytable"] th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ps-border);
  vertical-align: middle;
}

.ps-page table[id^="mytable"] tr:last-child td {
  border-bottom: 0;
}

.ps-page input.flatbox100,
.ps-page input.flatbox220,
.ps-page input.flatbox350,
.ps-page input.flatbox500,
.ps-page select.flatbox100,
.ps-page select.flatbox220,
.ps-page select.flatbox350,
.ps-page select.flatbox500,
.ps-page textarea.flatbox100,
.ps-page textarea.flatbox220,
.ps-page textarea.flatbox350,
.ps-page textarea.flatbox500 {
  width: 100%;
  max-width: 520px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  color: var(--ps-text);
  font: inherit;
  font-size: 14px;
}

.ps-page textarea.flatbox220,
.ps-page textarea.flatbox350 {
  min-height: 96px;
}

.ps-page input.flatbox100,
.ps-page input.flatbox220,
.ps-page input.flatbox350,
.ps-page input.flatbox500,
.ps-page select.flatbox100,
.ps-page select.flatbox220,
.ps-page select.flatbox350,
.ps-page select.flatbox500,
.ps-page textarea.flatbox100,
.ps-page textarea.flatbox220,
.ps-page textarea.flatbox350,
.ps-page textarea.flatbox500 {
  outline: none;
}

.ps-page input.flatbox100:focus,
.ps-page input.flatbox220:focus,
.ps-page input.flatbox350:focus,
.ps-page input.flatbox500:focus,
.ps-page select.flatbox100:focus,
.ps-page select.flatbox220:focus,
.ps-page select.flatbox350:focus,
.ps-page select.flatbox500:focus,
.ps-page textarea.flatbox220:focus,
.ps-page textarea.flatbox350:focus {
  outline: 2px solid var(--ps-gold);
  outline-offset: 1px;
  border-color: var(--ps-gold);
}

.ps-page input.btn,
.ps-page input.btnlong,
.ps-page input.mybutton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-charcoal);
  background: var(--ps-charcoal);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.ps-page input.btn:hover,
.ps-page input.btnlong:hover,
.ps-page input.mybutton:hover {
  border-color: var(--ps-gold-dark);
  box-shadow: 0 0 0 1px var(--ps-gold);
}

.ps-page #navigator {
  margin-top: 12px;
  max-width: 640px;
}

.ps-page #navigator td {
  padding: 6px;
}

.ps-priv-content {
  max-width: 100%;
  overflow-x: auto;
}

.ps-page #tabmenu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  justify-content: flex-start;
}

.ps-page #tabmenu li {
  margin: 0;
}

.ps-page #tabmenu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-border);
  background: var(--ps-surface);
  color: var(--ps-charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ps-page #tabmenu a.active,
.ps-page #tabmenu a.selected {
  border-color: var(--ps-gold);
  box-shadow: 0 0 0 1px var(--ps-gold);
}

.ps-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* ----- Reusable data grid ----- */

.ps-table-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
  overflow: hidden;
}

.ps-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ps-border);
  background: var(--ps-surface-muted);
}

.ps-grid-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
}

.ps-grid-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  display: block;
}

.ps-grid-search-ico {
  position: absolute;
  right: 12px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ps-gold-dark);
  pointer-events: none;
  display: inline-flex;
  z-index: 1;
}

.ps-grid-search-ico .ps-nav-ico {
  width: 16px;
  height: 16px;
  color: var(--ps-gold-dark);
}

.ps-grid-search input[type="search"] {
  width: 100%;
  max-width: none;
  padding-left: 12px;
  padding-right: 36px;
}

.ps-grid-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ps-text-muted);
  white-space: nowrap;
}

.ps-grid-clear:hover {
  color: var(--ps-black);
}

.ps-grid-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ps-grid-count {
  margin: 0;
  font-size: 13px;
  color: var(--ps-text-muted);
  white-space: nowrap;
}

.ps-grid-pagesize select {
  min-height: 36px;
}

.ps-table-card .ps-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.ps-table-card .ps-table {
  margin: 0;
}

.ps-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.ps-col-id {
  width: 72px;
  font-variant-numeric: tabular-nums;
}

.ps-col-flag {
  width: 44px;
  text-align: center;
  vertical-align: middle;
}

.ps-col-code {
  width: 64px;
  vertical-align: middle;
}

.ps-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  line-height: 0;
  vertical-align: middle;
}

.ps-country-flag .fi {
  width: 26px;
  line-height: 20px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.08);
  overflow: hidden;
}

.ps-country-flag--empty {
  color: #a8a29e;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.ps-country-code {
  display: inline-block;
  min-width: 2.2em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--ps-border);
  background: #faf8f5;
  color: var(--ps-charcoal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.ps-country-code--empty {
  background: transparent;
  border-color: transparent;
  color: #a8a29e;
  font-family: inherit;
  font-weight: 600;
  padding-left: 0;
}

.ps-iso-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.ps-iso-input {
  width: 4.5rem !important;
  flex: 0 0 4.5rem;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-align: center;
}

.ps-iso-preview {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.ps-field-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: #78716c;
}

.ps-grid-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ps-grid-filter select {
  height: 38px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  color: var(--ps-charcoal);
  padding: 0 10px;
  font-size: 13px;
}

.ps-col-photo {
  width: 48px;
  vertical-align: middle;
}

.ps-speaker-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  background: #f5f5f4;
  border: 1px solid var(--ps-border);
  vertical-align: middle;
}

.ps-speaker-photo--lg {
  width: 72px;
  height: 72px;
}

.ps-speaker-photo--empty {
  box-shadow: none;
}

.ps-speaker-name {
  font-weight: 650;
}

.ps-speaker-title,
.ps-speaker-affil {
  font-size: 12px;
  color: #78716c;
}

.ps-speaker-country-cell {
  white-space: nowrap;
}

.ps-speaker-country-cell .ps-country-flag {
  margin-right: 6px;
}

.ps-role-badge {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--ps-border);
  background: #faf8f5;
  font-size: 11px;
  font-weight: 650;
  color: var(--ps-charcoal);
}

.ps-form-wrap.ps-speaker-form {
  max-width: 1100px;
}

.ps-speaker-form .ps-form-section {
  margin: 0 0 16px;
  padding-bottom: 4px;
}

.ps-speaker-form .ps-form-section-head {
  margin-bottom: 10px;
}

.ps-speaker-form .ps-form-grid {
  gap: 12px 14px;
}

.ps-speaker-form .ps-form-actions {
  margin-top: 8px;
  padding-top: 12px;
}

.ps-speaker-form textarea.ps-speaker-bio-short {
  min-height: 72px;
}

.ps-speaker-form textarea.ps-speaker-bio-full {
  min-height: 132px;
}

.ps-speaker-form .tox-tinymce {
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
}

.ps-speaker-form .tox .tox-toolbar,
.ps-speaker-form .tox .tox-toolbar__primary {
  background: #fafaf9;
}

.ps-speaker-identity {
  display: grid;
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.14fr) minmax(0, 1.14fr);
  gap: 12px 14px;
}

.ps-speaker-field-display {
  grid-column: 1 / 3;
}

.ps-speaker-field-country {
  grid-column: 3 / 4;
}

.ps-speaker-field-photo {
  grid-column: 1 / -1;
}

.ps-speaker-photo-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ps-speaker-photo-preview {
  width: 72px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid var(--ps-border);
  background: #f5f5f4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #a8a29e;
}

.ps-speaker-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-speaker-photo-img.is-hidden,
.ps-speaker-photo-placeholder.is-hidden {
  display: none;
}

.ps-speaker-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-speaker-photo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ps-speaker-photo-meta .ps-btn {
  cursor: pointer;
}

.ps-speaker-photo-meta .ps-field-help {
  margin: 0;
}

.ps-speaker-roles-panel {
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fafaf9;
  padding: 10px 12px;
}

.ps-speaker-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.ps-speaker-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ps-charcoal);
  min-width: 0;
}

.ps-speaker-display {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
}

.ps-speaker-order {
  max-width: 140px;
}

.ps-speaker-form .ps-speaker-order input[type="number"] {
  width: 120px;
  min-width: 100px;
}

.ps-speaker-form #photo.ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ps-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ps-speaker-country {
  max-width: 100%;
}

.ps-speaker-country select {
  min-width: 220px;
  flex: 1 1 auto;
}

@media (max-width: 1023px) {
  .ps-speaker-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ps-speaker-identity {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ps-speaker-field-last {
    grid-column: 1 / -1;
  }
  .ps-speaker-field-display,
  .ps-speaker-field-country {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .ps-speaker-identity,
  .ps-speaker-roles {
    grid-template-columns: 1fr;
  }
  .ps-speaker-field-title,
  .ps-speaker-field-first,
  .ps-speaker-field-last,
  .ps-speaker-field-display,
  .ps-speaker-field-country,
  .ps-speaker-field-photo {
    grid-column: 1 / -1;
  }
  .ps-speaker-country select {
    min-width: 0;
  }
  .ps-speaker-display {
    flex-direction: column;
    align-items: stretch;
  }
}

.ps-col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.ps-col-date {
  white-space: nowrap;
}

.ps-col-status {
  width: 120px;
}

.ps-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ps-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ps-more {
  position: relative;
  display: inline-flex;
}

.ps-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
}

.ps-more.is-open .ps-more-menu {
  display: block;
}

.ps-more-menu[hidden] {
  display: none !important;
}

.ps-more-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ps-charcoal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ps-more-item:hover {
  background: #fbf8f2;
  color: var(--ps-black);
}

.ps-more-item.is-danger {
  color: var(--ps-danger);
}

.ps-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--ps-border);
  background: #f5f5f4;
  color: var(--ps-charcoal);
  text-decoration: none;
  white-space: nowrap;
}

.ps-badge-yes {
  background: #eef4ee;
  border-color: #c9d7c9;
  color: #355338;
}

.ps-badge-no {
  background: #f6f3f1;
  border-color: #ddd4ce;
  color: #6b5e56;
}

.ps-badge-qr {
  background: #eef4fb;
  border-color: #c9daf0;
  color: #1e3a5f;
}

.ps-badge-qr svg {
  width: 12px;
  height: 12px;
}

.ps-table-card-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--ps-border);
}

.ps-hidden-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

.ps-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px 16px;
}

.ps-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  color: var(--ps-charcoal);
  font-size: 13px;
  font-weight: 650;
}

.ps-page-link:hover {
  border-color: var(--ps-gold);
  color: var(--ps-black);
}

.ps-page-link.is-current {
  background: var(--ps-black);
  border-color: var(--ps-black);
  color: var(--ps-text-on-dark);
  box-shadow: inset 0 -2px 0 var(--ps-gold);
}

.ps-shell a.ps-page-link.is-current,
.ps-shell a.ps-page-link.is-current:link,
.ps-shell a.ps-page-link.is-current:visited,
.ps-shell a.ps-page-link.is-current:hover,
.ps-shell a.ps-page-link.is-current:focus,
.ps-shell a.ps-page-link.is-current:active {
  color: var(--ps-text-on-dark);
}

.ps-page-link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ps-page-ellipsis {
  padding: 0 4px;
  color: var(--ps-text-muted);
}

.ps-empty-state {
  text-align: center;
  padding: 48px 24px;
}

.ps-empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ps-empty-state p {
  margin: 0 0 12px;
  color: var(--ps-text-muted);
}

/* ----- Reports (not CRUD grids) ----- */

.ps-report {
  min-width: 0;
  max-width: 100%;
}

.ps-report-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ps-text-muted);
}

.ps-report-card {
  background: #fff;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-md);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.ps-report-scroll {
  overflow: auto;
  max-width: 100%;
  max-height: min(70vh, calc(100vh - 240px));
  background:
    linear-gradient(to left, #fff, rgba(255, 255, 255, 0)) 100% 0 / 36px 100% local no-repeat,
    linear-gradient(to left, rgba(28, 25, 23, 0.14), transparent) 100% 0 / 20px 100% scroll no-repeat,
    #fff;
  scrollbar-width: thin;
  scrollbar-color: #c8c0b4 #f7f4ee;
}

.ps-report-scroll::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.ps-report-scroll::-webkit-scrollbar-track {
  background: #f7f4ee;
}

.ps-report-scroll::-webkit-scrollbar-thumb {
  background: #c8c0b4;
  border-radius: 8px;
  border: 2px solid #f7f4ee;
}

.ps-report-scroll::-webkit-scrollbar-thumb:hover {
  background: #b3aa9c;
}

.ps-report-scroll:focus {
  outline: 2px solid var(--ps-gold);
  outline-offset: -2px;
}

.ps-report-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-family: var(--ps-font);
}

.ps-report-table.ps-report-table--compact {
  min-width: 0;
}

.ps-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--ps-black);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ps-border-strong);
  line-height: 1.3;
  height: 40px;
  white-space: nowrap;
  background-color: var(--ps-surface-muted);
}

.ps-report-table td,
.ps-report-table tbody th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ps-border);
  font-size: 13px;
  color: var(--ps-text);
  vertical-align: middle;
  line-height: 1.35;
  background-color: #fff;
}

.ps-report-table tbody th {
  font-weight: 700;
  text-align: left;
}

.ps-report-table thead th.ps-report-col-number,
.ps-report-table thead th.ps-report-col-duration {
  text-align: right;
}

.ps-report-table tbody tr:last-child td,
.ps-report-table tbody tr:last-child th {
  border-bottom: 0;
}

.ps-report-table tbody tr:hover td,
.ps-report-table tbody tr:hover th {
  background-color: #fcfaf6;
}

.ps-report-table tbody tr.ps-report-total:hover td,
.ps-report-table tbody tr.ps-report-total:hover th {
  background: var(--ps-surface-muted);
}

.ps-report-sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 var(--ps-border);
}

.ps-report-table thead th.ps-report-sticky-col {
  z-index: 4;
  background-color: var(--ps-surface-muted);
  box-shadow: 1px 0 0 var(--ps-border-strong);
}

.ps-report-table tbody td.ps-report-sticky-col {
  z-index: 3;
  background-color: #fff;
}

.ps-report-table tbody tr:hover td.ps-report-sticky-col {
  background-color: #fcfaf6;
}

.ps-report-col-barcode {
  min-width: 100px;
  width: 108px;
  white-space: nowrap;
  font-family: var(--ps-mono);
  font-variant-numeric: tabular-nums;
}

.ps-report-col-name {
  min-width: 180px;
  font-weight: 600;
}

.ps-report-col-phone {
  min-width: 110px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ps-report-col-email {
  min-width: 180px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-report-col-long {
  min-width: 160px;
}

.ps-report-col-text {
  min-width: 120px;
  white-space: nowrap;
}

.ps-report-col-status {
  min-width: 72px;
  width: 88px;
  text-align: center;
  white-space: nowrap;
}

.ps-report-col-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ps-report-col-duration {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: var(--ps-mono);
}

.ps-report-col-gift {
  min-width: 96px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ps-report-table.ps-report-matrix {
  min-width: 1280px;
}

.ps-report-col-yn {
  min-width: 76px;
  max-width: 112px;
  text-align: center;
  white-space: nowrap;
}

.ps-report-table thead th.ps-report-col-yn {
  text-align: center;
  white-space: normal;
  height: auto;
  min-height: 40px;
  vertical-align: bottom;
  line-height: 1.25;
}

.ps-report-col-notes {
  min-width: 180px;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ps-report-group td,
.ps-report-group th {
  background: var(--ps-surface-muted);
  font-weight: 650;
}

.ps-report-subtotal td,
.ps-report-subtotal th {
  background: var(--ps-gold-soft);
  font-weight: 650;
}

.ps-report-total td,
.ps-report-total th {
  border-top: 2px solid var(--ps-charcoal);
  box-shadow: inset 0 2px 0 var(--ps-gold);
  font-weight: 700;
  background: var(--ps-surface-muted);
}

.ps-report-empty {
  padding: 36px 24px;
  text-align: center;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
}

.ps-report-empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-charcoal);
}

.ps-report-empty p {
  margin: 0;
  color: var(--ps-text-muted);
}

.ps-report-context {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  background: var(--ps-surface);
}

.ps-report-context-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.ps-report-context-row + .ps-report-context-row {
  margin-top: 6px;
}

.ps-report-context dt {
  margin: 0;
  font-weight: 650;
  color: var(--ps-charcoal);
}

.ps-report-context dd {
  margin: 0;
  color: var(--ps-text);
}

.ps-gift-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.ps-gift-groups label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .ps-grid-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-grid-search-field {
    max-width: none;
  }

  .ps-grid-search input[type="search"] {
    max-width: none;
  }

  .ps-grid-meta {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .ps-grid-count {
    white-space: normal;
  }
}

/* ----- Legacy form controls inside shell ----- */

.ps-shell .flatbox,
.ps-shell .flatbox100,
.ps-shell .flatbox220,
.ps-shell .flatbox350,
.ps-shell .flatbox400,
.ps-shell .flatbox500,
.ps-shell .flatbox650,
.ps-shell input[type="text"],
.ps-shell input[type="password"],
.ps-shell input[type="email"],
.ps-shell input[type="url"],
.ps-shell input[type="search"],
.ps-shell input[type="number"],
.ps-shell input[type="datetime-local"],
.ps-shell select,
.ps-shell textarea {
  font-family: var(--ps-font);
  font-size: 13px;
  color: var(--ps-text);
  background: #fff;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
  padding: 7px 10px;
  min-height: 36px;
}

.ps-shell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ps-gold-dark);
}

.ps-shell .bgblue {
  background: var(--ps-gold-soft);
  color: var(--ps-charcoal);
  font-weight: 650;
}

.ps-shell .divscroll960,
.ps-shell .divscroll200 {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
}

/* ----- Mobile / tablet ----- */

.ps-sidebar-toggle {
  display: none;
}

@media (max-width: 1099px) {
  .ps-app {
    grid-template-columns: 1fr;
  }

  .ps-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, var(--ps-sidebar-width));
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--ps-shadow-md);
  }

  .ps-shell.ps-nav-open .ps-sidebar {
    transform: translateX(0);
  }

  .ps-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.42);
    z-index: 40;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .ps-shell.ps-nav-open .ps-overlay {
    display: block;
  }

  .ps-sidebar-toggle {
    display: inline-flex;
  }

  .ps-kpi-row,
  .ps-grid-2,
  .ps-actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ps-conf-chip-name {
    max-width: 110px;
  }
}

@media (max-width: 767px) {
  .ps-content {
    padding: 16px 14px 32px;
  }

  .ps-topbar {
    padding: 0 12px;
  }

  .ps-kpi-row,
  .ps-grid-2,
  .ps-actions-grid {
    grid-template-columns: 1fr;
  }

  .ps-pagehead {
    flex-direction: column;
  }

  .ps-account-name,
  .ps-conf-chip-label {
    display: none;
  }

  .ps-conf-chip {
    max-width: 160px;
    padding-left: 8px;
  }

  .ps-pagehead h1,
  .ps-welcome h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-sidebar,
  .ps-nav-caret {
    transition: none;
  }
}

/* ----- Pre-auth / conference select (index.php, chooseconference.php) ----- */

.ps-auth {
  min-height: 100vh;
}

.ps-auth-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: 100vh;
}

.ps-auth-brand {
  background: var(--ps-black);
  color: var(--ps-text-on-dark);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ps-auth-brand-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 64%;
  z-index: 0;
  pointer-events: none;
}

.ps-auth img.ps-auth-brand-scene {
  max-width: none;
  height: 100%;
}

.ps-auth-brand--scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.96) 0%,
    rgba(17, 17, 17, 0.88) 30%,
    rgba(17, 17, 17, 0.62) 68%,
    rgba(17, 17, 17, 0.40) 100%
  );
}

.ps-auth-brand::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 153, 53, 0.28) 0%, rgba(211, 153, 53, 0) 70%);
  pointer-events: none;
  z-index: 2;
}

.ps-auth-brand-inner {
  position: relative;
  z-index: 3;
  max-width: 360px;
}

.ps-auth-logo {
  display: block;
  background: #000;
  border-radius: var(--ps-radius-md);
  padding: 12px 14px 10px;
  line-height: 0;
  max-width: 240px;
}

.ps-auth-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.ps-auth-kicker {
  margin: 28px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ps-gold-light);
}

.ps-auth-brand h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.ps-auth-brand p {
  margin: 0;
  color: rgba(247, 244, 238, 0.78);
  font-size: 14px;
  max-width: 28ch;
}

.ps-auth-rule {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ps-gold-light), var(--ps-gold), var(--ps-gold-dark));
  margin: 18px 0 0;
}

.ps-auth-brand-foot {
  position: relative;
  z-index: 3;
  font-size: 12px;
  color: rgba(247, 244, 238, 0.55);
}

.ps-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 40px 48px;
  background:
    radial-gradient(720px 240px at 80% -10%, rgba(232, 180, 74, 0.16), transparent 60%),
    var(--ps-bg);
}

.ps-auth-panel-tools {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
}

.ps-auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-md);
  padding: 32px 32px 28px;
}

.ps-auth-card--select {
  max-width: 480px;
}

.ps-auth-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ps-black);
}

.ps-auth-card .ps-auth-kicker {
  color: var(--ps-gold-dark);
  margin-top: 0;
}

.ps-auth-card .ps-auth-help {
  margin: 0 0 22px;
  color: var(--ps-text-muted);
  font-size: 13px;
}

.ps-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ps-auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ps-charcoal);
}

.ps-auth-field input[type="text"],
.ps-auth-field input[type="password"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
  background: #fff;
  color: var(--ps-text);
  font: inherit;
  font-size: 14px;
}

.ps-auth-password {
  position: relative;
}

.ps-auth-password input {
  padding-right: 44px;
}

.ps-auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ps-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--ps-radius-sm);
}

.ps-auth-eye:hover {
  color: var(--ps-black);
}

.ps-auth-eye svg {
  width: 18px;
  height: 18px;
}

.ps-auth-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--ps-black);
  border-radius: var(--ps-radius-sm);
  background: var(--ps-black);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--ps-gold);
}

.ps-auth-submit:hover {
  background: #000;
  box-shadow: inset 0 -2px 0 var(--ps-gold-light);
}

.ps-auth-card-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ps-text-muted);
}

.ps-auth-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(720px 280px at 50% -20%, rgba(232, 180, 74, 0.18), transparent 62%),
    var(--ps-bg);
}

.ps-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
}

.ps-auth-bar .ps-auth-logo {
  max-width: 168px;
}

.ps-auth-signout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ps-charcoal);
  border: 1px solid var(--ps-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
}

.ps-auth-signout:hover {
  border-color: var(--ps-gold);
  color: var(--ps-black);
}

.ps-auth-signout svg {
  width: 16px;
  height: 16px;
}

.ps-auth-center-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px 48px;
}

.ps-auth-center .ps-auth-card {
  max-width: 480px;
}

.ps-auth-user {
  font-size: 13px;
  color: var(--ps-text-muted);
  margin: 0 0 16px;
}

.ps-auth-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 10px 12px;
  background: var(--ps-surface-muted);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
}

.ps-auth-identity svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--ps-gold-dark);
}

.ps-auth-identity-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--ps-text-muted);
}

.ps-auth-identity-name {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ps-black);
}

.ps-auth-identity-user {
  color: var(--ps-text-muted);
  font-weight: 500;
}

.ps-auth-user strong {
  color: var(--ps-black);
  font-weight: 650;
}

.ps-auth-select {
  width: 100%;
  min-height: 42px;
}

.ps-auth-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

body.ps-auth .select2-container {
  width: 100% !important;
  max-width: 100%;
}

body.ps-auth .select2-container--default .select2-selection--single {
  min-height: 42px;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
  background: #fff;
}

body.ps-auth .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 12px;
  color: var(--ps-charcoal);
  font-size: 14px;
}

body.ps-auth .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}

body.ps-auth .select2-container--default.select2-container--focus .select2-selection--single,
body.ps-auth .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ps-gold);
  box-shadow: 0 0 0 2px rgba(211, 153, 53, 0.28);
}

body.ps-auth .select2-dropdown {
  border-color: var(--ps-border-strong);
  border-radius: var(--ps-radius-sm);
}

body.ps-auth .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--ps-black);
  color: var(--ps-gold-light);
}

@media (max-width: 900px) {
  .ps-auth-split {
    grid-template-columns: 1fr;
  }

  .ps-auth-brand {
    padding: 22px 20px 18px;
    min-height: auto;
  }

  .ps-auth-logo {
    max-width: 176px;
    padding: 8px 10px 7px;
  }

  .ps-auth-kicker {
    margin: 14px 0 6px;
  }

  .ps-auth-brand h1 {
    font-size: 22px;
  }

  .ps-auth-brand-foot {
    display: none;
  }

  .ps-auth-brand-scene,
  .ps-auth-brand--scene::before {
    display: none;
  }

  .ps-auth-panel-tools {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

  .ps-auth-panel {
    padding: 24px 16px 40px;
    align-items: stretch;
  }

  .ps-auth-card {
    padding: 24px 20px 22px;
  }
}

.ps-gm-panel {
  background: #fff;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1rem;
}
.ps-gm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.ps-gm-panel-title,
.ps-gm-studio-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ps-charcoal, #2b2724);
}
.ps-gm-studio-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;
}
.ps-gm-panel-sub,
.ps-gm-studio-sub {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--ps-muted, #6b645c);
}
.ps-gm-studio-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}
.ps-gm-register.ps-form-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.ps-gm-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.75rem;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 8px;
  background: #faf8f4;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ps-gm-select-count {
  margin: 0;
  font-weight: 650;
  color: var(--ps-charcoal, #2b2724);
}
.ps-gm-select-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ps-gm-studio {
  background: #fff;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  padding: 0.75rem 0.9rem 0.85rem;
  min-width: 0;
  max-width: 100%;
}
.ps-gm-studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ps-border, #e6e1d8);
  min-width: 0;
}
.ps-gm-studio-title {
  flex: 1 1 auto;
  min-width: 0;
}
.ps-gm-studio-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.ps-nt-back {
  padding: 0.28rem 0.65rem;
  min-height: 32px;
  font-size: 13px;
  font-weight: 550;
}
.ps-nt-selected-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--ps-border, #e6e1d8);
  background: #faf8f4;
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-charcoal, #2b2724);
  white-space: nowrap;
}
.ps-nt-config {
  max-width: 1120px;
}
.ps-nt-block {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ps-border, #eee8df);
}
.ps-nt-block:last-child {
  margin-bottom: 0;
}
.ps-nt-block-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ps-charcoal, #2b2724);
}
.ps-nt-filters-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.ps-nt-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ps-muted, #6b645c);
}
.ps-nt-config .ps-nt-field input[type="text"],
.ps-nt-config .ps-nt-field select {
  width: 100%;
  max-width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 0.55rem;
  font-size: 13px;
  box-sizing: border-box;
}
.ps-nt-flag-inputs {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ps-nt-multiselect {
  position: relative;
}
.ps-nt-multiselect-native {
  width: 100%;
  min-height: 36px;
  max-height: 7.5rem;
  padding: 0.25rem 0.4rem;
  font-size: 13px;
  box-sizing: border-box;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 8px;
  background: #fff;
}
.ps-nt-multiselect.is-enhanced .ps-nt-multiselect-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ps-nt-multiselect-control {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 36px;
  max-height: 4.75rem;
  padding: 4px 6px 4px 8px;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}
.ps-nt-multiselect-control:focus,
.ps-nt-ms-filter:focus,
.ps-nt-option.is-active {
  outline: 2px solid rgba(184, 148, 70, 0.45);
  outline-offset: 1px;
}
.ps-nt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-height: 4.25rem;
  overflow: auto;
  align-content: flex-start;
}
.ps-nt-chips-empty {
  font-size: 13px;
  color: var(--ps-muted, #6b645c);
  padding: 4px 2px;
}
.ps-nt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 1px 4px 1px 8px;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 999px;
  background: #faf8f4;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  color: var(--ps-charcoal, #2b2724);
}
.ps-nt-chip-x {
  border: 0;
  background: transparent;
  color: var(--ps-muted, #6b645c);
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  border-radius: 999px;
}
.ps-nt-chip-x:hover,
.ps-nt-chip-x:focus {
  color: var(--ps-charcoal, #2b2724);
  background: #efe8dc;
}
.ps-nt-ms-toggle {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ps-muted, #6b645c);
  font-size: 12px;
  line-height: 1;
  padding: 6px 4px;
  cursor: pointer;
}
.ps-nt-dropdown[hidden] {
  display: none !important;
}
.ps-nt-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 16rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
}
.ps-nt-ms-filter {
  width: 100%;
  height: 34px;
  border: 0;
  border-bottom: 1px solid var(--ps-border, #e6e1d8);
  padding: 0 0.65rem;
  font-size: 13px;
  box-sizing: border-box;
}
.ps-nt-ms-options {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow: auto;
  max-height: 13rem;
}
.ps-nt-option {
  padding: 0.35rem 0.7rem 0.35rem 1.55rem;
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.ps-nt-option:hover,
.ps-nt-option.is-active {
  background: #faf8f4;
}
.ps-nt-option.is-selected::before {
  content: "â";
  position: absolute;
  left: 0.5rem;
  color: #b89446;
  font-size: 11px;
}
.ps-nt-option.is-empty {
  cursor: default;
  color: var(--ps-muted, #6b645c);
  padding-left: 0.7rem;
}
.ps-nt-head-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--ps-border, #e6e1d8);
  flex: 0 0 auto;
}
.ps-nt-field--top {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}
.ps-gm-studio .ps-nt-field--top label {
  display: inline;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ps-muted, #6b645c);
  white-space: nowrap;
}
.ps-nt-top-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.ps-gm-studio .ps-form .ps-nt-field--top input[type="text"] {
  width: 56px;
  max-width: 64px;
  min-height: 32px;
  height: 32px;
  padding: 0 0.4rem;
  font-size: 13px;
  box-sizing: border-box;
}
.ps-nt-top-unit {
  font-size: 12px;
  color: var(--ps-muted, #6b645c);
  white-space: nowrap;
}
.ps-nt-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.ps-nt-action-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ps-nt-scope-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-muted, #6b645c);
}
.ps-nt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.ps-nt-action-bar .ps-btn {
  min-height: 34px;
  padding: 0.28rem 0.7rem;
  font-size: 13px;
}
.ps-nt-preview-block {
  margin-top: 16px;
}
.ps-nt-preview {
  margin-top: 0;
  max-height: min(62vh, 640px);
  overflow: auto;
}
@media (max-width: 1199px) {
  .ps-nt-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .ps-nt-field-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ps-nt-filters-grid { grid-template-columns: 1fr; }
  .ps-gm-studio-head { align-items: flex-start; }
  .ps-nt-action-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .ps-gm-panel-head,
  .ps-gm-studio-head { flex-direction: column; align-items: stretch; }
  .ps-gm-studio-head-tools { justify-content: flex-start; }
  .ps-nt-field-groups { grid-template-columns: 1fr; }
  .ps-gm-select-bar { position: static; }
}

@media (max-width: 480px) {
  .ps-auth-bar {
    padding: 12px 14px;
  }

  .ps-auth-bar .ps-auth-logo {
    max-width: 132px;
  }
}

.ps-col-speakers {
  min-width: 8rem;
  max-width: 18rem;
  white-space: normal;
  line-height: 1.35;
}
.ps-session-people {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.ps-session-people-native {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
}
.ps-session-people.is-enhanced .ps-session-people-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  appearance: none !important;
  pointer-events: none !important;
}
.ps-session-people-control {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 40px;
  padding: 4px 6px 4px 8px;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  cursor: text;
}
.ps-session-people-control:focus,
.ps-session-people-search:focus,
.ps-session-people-option.is-active {
  outline: 2px solid rgba(184, 148, 70, 0.45);
  outline-offset: 1px;
}
.ps-session-people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  align-content: flex-start;
}
.ps-session-people-placeholder {
  font-size: 13px;
  color: var(--ps-muted, #6b645c);
  padding: 6px 2px;
  line-height: 1.3;
}
.ps-session-people-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  padding: 2px 2px 2px 8px;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 999px;
  background: #faf8f4;
  color: var(--ps-charcoal, #2b2724);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.ps-session-people-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}
.ps-session-people-chip-x,
.ps-session-people-toggle {
  border: 0;
  background: transparent;
  color: var(--ps-muted, #6b645c);
  cursor: pointer;
}
.ps-session-people-chip-x {
  font-size: 15px;
  line-height: 1;
  padding: 0 5px;
  border-radius: 999px;
}
.ps-session-people-chip-x:hover,
.ps-session-people-chip-x:focus {
  color: var(--ps-charcoal, #2b2724);
  background: #efe8dc;
}
.ps-session-people-toggle {
  flex: 0 0 auto;
  align-self: center;
  font-size: 12px;
  line-height: 1;
  padding: 6px 4px;
}
.ps-session-people-dropdown[hidden] {
  display: none !important;
}
.ps-session-people-dropdown {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: min(18rem, 70vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
  box-sizing: border-box;
}
.ps-session-people-dropdown.is-above {
  top: auto;
  bottom: calc(100% + 4px);
}
.ps-session-people-search {
  width: 100%;
  height: 36px;
  border: 0;
  border-bottom: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 0;
  padding: 0 0.7rem;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: none;
}
.ps-session-people-options {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow: auto;
  max-height: 14rem;
}
.ps-session-people-option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.4rem 0.75rem 0.4rem 1.7rem;
  font-size: 13px;
  color: var(--ps-charcoal, #2b2724);
  cursor: pointer;
  position: relative;
  background: #fff;
}
.ps-session-people-option:hover,
.ps-session-people-option.is-active {
  background: #faf8f4;
}
.ps-session-people-option.is-selected::before {
  content: "â";
  position: absolute;
  left: 0.5rem;
  top: 0.45rem;
  color: #b89446;
  font-size: 12px;
}
.ps-session-people-option.is-empty {
  cursor: default;
  color: var(--ps-muted, #6b645c);
  padding-left: 0.75rem;
}
.ps-session-people-name {
  font-weight: 600;
  line-height: 1.3;
}
.ps-session-people-meta {
  color: var(--ps-muted, #6b645c);
  font-size: 12px;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .ps-session-people-chip-label {
    max-width: 12rem;
  }
  .ps-session-people-dropdown {
    max-height: min(16rem, 60vh);
  }
  .ps-col-speakers {
    max-width: 12rem;
  }
}

.ps-venue-form .ps-form {
  max-width: 1080px;
}

.ps-venue-legacy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: var(--ps-surface-muted);
  font-size: 13px;
}

.ps-venue-legacy-k {
  font-weight: 650;
  color: var(--ps-charcoal);
}

.ps-venue-legacy-v {
  font-weight: 600;
}

.ps-venue-legacy-note {
  color: var(--ps-muted, #6b645c);
}

.ps-venue-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 18px;
}

.ps-venue-file {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-venue-preview {
  width: 120px;
  height: 84px;
  flex: 0 0 120px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: var(--ps-surface-muted);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-venue-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-venue-preview-img.is-hidden,
.ps-venue-preview-ph.is-hidden {
  display: none;
}

.ps-venue-preview-ph {
  font-size: 12px;
  color: var(--ps-muted, #6b645c);
}

.ps-venue-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ps-venue-card,
.ps-venue-place {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  background: #fff;
}

.ps-venue-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--ps-surface-muted);
}

.ps-venue-card-fields label,
.ps-venue-place label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ps-muted, #6b645c);
}

.ps-venue-card-fields label:first-child,
.ps-venue-place .ps-field label {
  margin-top: 0;
}

.ps-venue-order {
  width: 88px;
  max-width: 100%;
}

.ps-venue-add {
  margin-top: 4px;
}

.ps-venue-empty {
  margin: 0 0 12px;
  color: var(--ps-muted, #6b645c);
  font-size: 13px;
}

.ps-venue-places {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-venue-place {
  grid-template-columns: 140px minmax(160px, 1fr) minmax(160px, 1.2fr) 88px auto;
}

.ps-venue-place.is-new {
  background: var(--ps-surface-muted);
}

.ps-venue-form textarea.ps-venue-full {
  min-height: 180px;
}

@media (max-width: 900px) {
  .ps-venue-media,
  .ps-venue-place {
    grid-template-columns: 1fr;
  }

  .ps-venue-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

.ps-form-wrap.ps-sponsor-form,
.ps-form-wrap.ps-sponsor-tier-form {
  max-width: 980px;
}

.ps-sponsor-form textarea {
  min-height: 120px;
}

.ps-sponsor-publish {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
}

.ps-sponsor-order {
  max-width: 160px;
}

.ps-sponsor-form #logo.ps-sr-only,
.ps-sponsor-logo-meta .ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ps-sponsor-logo-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ps-sponsor-logo-preview {
  width: 120px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--ps-border);
  background:
    linear-gradient(45deg, #f5f5f4 25%, transparent 25%),
    linear-gradient(-45deg, #f5f5f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f5f4 75%),
    linear-gradient(-45deg, transparent 75%, #f5f5f4 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ps-sponsor-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ps-sponsor-logo-img.is-hidden,
.ps-sponsor-logo-placeholder.is-hidden {
  display: none;
}

.ps-sponsor-logo-placeholder {
  font-size: 12px;
  color: #78716c;
}

.ps-sponsor-logo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ps-sponsor-logo-meta .ps-btn {
  cursor: pointer;
}

.ps-sponsor-logo-meta .ps-field-help,
.ps-sponsor-form .ps-field-help,
.ps-sponsor-defaults .ps-field-help {
  margin: 8px 0 0;
}

.ps-col-logo {
  width: 68px;
  vertical-align: middle;
}

.ps-sponsor-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  background: #f5f5f4;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
}

.ps-sponsor-logo--empty {
  box-shadow: none;
}

.ps-sponsor-name {
  font-weight: 650;
}

.ps-sponsor-domain,
.ps-sponsor-web {
  font-size: 12px;
  color: #78716c;
}

.ps-sponsor-web {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-sponsor-web a {
  color: inherit;
}

.ps-sponsor-table {
  min-width: 720px;
}

.ps-sponsor-defaults {
  margin-top: 12px;
}

@media (max-width: 639px) {
  .ps-sponsor-publish {
    flex-direction: column;
    align-items: stretch;
  }
  .ps-sponsor-order {
    max-width: none;
  }
}

.ps-form-wrap.ps-exhibitor-form {
  max-width: 980px;
}

.ps-exhibitor-form textarea {
  min-height: 120px;
}

.ps-exhibitor-publish {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
}

.ps-exhibitor-order {
  max-width: 160px;
}

.ps-exhibitor-form #logo.ps-sr-only,
.ps-exhibitor-logo-meta .ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ps-exhibitor-logo-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ps-exhibitor-logo-preview {
  width: 120px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--ps-border);
  background:
    linear-gradient(45deg, #f5f5f4 25%, transparent 25%),
    linear-gradient(-45deg, #f5f5f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f5f4 75%),
    linear-gradient(-45deg, transparent 75%, #f5f5f4 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ps-exhibitor-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ps-exhibitor-logo-img.is-hidden,
.ps-exhibitor-logo-placeholder.is-hidden {
  display: none;
}

.ps-exhibitor-logo-placeholder {
  font-size: 12px;
  color: #78716c;
}

.ps-exhibitor-logo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ps-exhibitor-logo-meta .ps-btn {
  cursor: pointer;
}

.ps-exhibitor-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  background: #f5f5f4;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
}

.ps-exhibitor-logo--empty {
  box-shadow: none;
}

.ps-exhibitor-name {
  font-weight: 650;
}

.ps-exhibitor-meta,
.ps-exhibitor-web {
  font-size: 12px;
  color: #78716c;
}

.ps-exhibitor-web {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-exhibitor-web a {
  color: inherit;
}

.ps-exhibitor-table {
  min-width: 760px;
}

@media (max-width: 639px) {
  .ps-exhibitor-publish {
    flex-direction: column;
    align-items: stretch;
  }
  .ps-exhibitor-order {
    max-width: none;
  }
}

.ps-form-wrap.ps-announcement-form {
  max-width: 980px;
}

.ps-announcement-form textarea {
  min-height: 160px;
}

.ps-announcement-publish {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
  margin-top: 8px;
}

.ps-announcement-order {
  max-width: 160px;
}

.ps-announcement-form #image.ps-sr-only,
.ps-announcement-image-meta .ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ps-announcement-image-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ps-announcement-image-preview {
  width: 144px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid var(--ps-border);
  background: #f5f5f4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ps-announcement-image-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ps-announcement-image-img.is-hidden,
.ps-announcement-image-placeholder.is-hidden {
  display: none;
}

.ps-announcement-image-placeholder {
  font-size: 12px;
  color: #78716c;
}

.ps-announcement-image-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ps-announcement-image-meta .ps-btn {
  cursor: pointer;
}

.ps-announcement-thumb {
  width: 72px;
  height: 48px;
  object-fit: contain;
  display: block;
  background: #f5f5f4;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
}

.ps-announcement-thumb--empty {
  box-shadow: none;
}

.ps-announcement-title {
  font-weight: 650;
}

.ps-announcement-meta,
.ps-announcement-window {
  font-size: 12px;
  color: #78716c;
}

.ps-announcement-window {
  white-space: nowrap;
}

.ps-announcement-table {
  min-width: 760px;
}

@media (max-width: 639px) {
  .ps-announcement-publish {
    flex-direction: column;
    align-items: stretch;
  }
  .ps-announcement-order {
    max-width: none;
  }
}

/* RBAC V2 management */
.ps-kpi-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ps-rbac-onboard {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-shadow-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.ps-rbac-onboard h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.ps-rbac-onboard p {
  margin: 0 0 12px;
  color: var(--ps-text-muted);
  font-size: 13px;
}
.ps-rbac-panel {
  padding: 16px 18px 8px;
  margin-bottom: 16px;
}
.ps-rbac-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ps-rbac-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}
.ps-rbac-code {
  font-size: 11px;
  color: var(--ps-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ps-rbac-id-name {
  font-weight: 700;
}
.ps-rbac-id-meta,
.ps-rbac-tech {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ps-text-muted);
}
.ps-rbac-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.ps-rbac-layout > .ps-rbac-side:first-child {
  order: 2;
}
.ps-rbac-layout > .ps-rbac-main {
  order: 1;
}

/* Roles management page: full-width grid first, compact create form below. */
.ps-rbac-manage-section {
  margin: 0 0 20px;
}
.ps-rbac-manage-heading {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ps-black);
}
.ps-rbac-manage-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ps-text-muted);
}
.ps-rbac-manage-section--form {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  padding: 14px 16px 16px;
  max-width: 560px;
}
.ps-rbac-create-form .ps-field + .ps-field,
.ps-rbac-create-form .ps-help + .ps-field,
.ps-rbac-create-form .ps-field + .ps-help {
  margin-top: 10px;
}
.ps-rbac-create-form .ps-btn-primary {
  margin-top: 12px;
}
.ps-rbac-side .ps-form-section {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.ps-inline-form {
  display: inline-flex;
}
.ps-stack-form {
  margin-top: 10px;
}
.ps-rbac-danger {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ps-border);
}
.ps-rbac-danger h3 {
  margin: 0 0 6px;
  font-size: 13px;
}
.ps-rbac-danger p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ps-text-muted);
}
.ps-badge-warn {
  background: #f8ead0;
  border-color: #e4c27a;
  color: #6b4e16;
}
.ps-rbac-assign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ps-rbac-assign {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  padding: 10px 12px;
}
.ps-rbac-assign-form {
  background: var(--ps-surface-muted);
  border: 1px dashed var(--ps-border);
  border-radius: var(--ps-radius-md);
  padding: 14px;
}
.ps-rbac-assign-heading {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 650;
}
.ps-rbac-assign-table td {
  vertical-align: middle;
}
.ps-rbac-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ps-text-muted);
}
.ps-rbac-matrix-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}
.ps-rbac-matrix th,
.ps-rbac-matrix td {
  text-align: center;
  vertical-align: middle;
}
.ps-rbac-matrix th:first-child,
.ps-rbac-matrix td:first-child {
  text-align: left;
  white-space: nowrap;
}
.ps-rbac-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
}
.ps-rbac-na {
  color: var(--ps-text-muted);
}
.ps-rbac-count,
.ps-rbac-dirty {
  font-size: 12px;
  color: var(--ps-text-muted);
  margin: 0;
}
.ps-rbac-dirty {
  color: #8a5a12;
  font-weight: 650;
}
.ps-btn-tiny {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}
.ps-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 8px 0 12px;
}
.ps-empty-copy {
  margin: 0 0 12px;
  color: var(--ps-text-muted);
  font-size: 13px;
}
.ps-rbac-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ps-text-muted);
}
.ps-rbac-details pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  font-size: 11px;
  max-width: 280px;
}
.ps-rbac-conf-filter {
  margin-bottom: 6px;
}
@media (max-width: 1099px) {
  .ps-kpi-row--5 {
    grid-template-columns: 1fr 1fr;
  }
  .ps-rbac-layout {
    grid-template-columns: 1fr;
  }
  .ps-rbac-layout > .ps-rbac-side:first-child,
  .ps-rbac-layout > .ps-rbac-main {
    order: 0;
  }
  .ps-rbac-assign {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .ps-kpi-row--5 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile Content P1  Polls & Session Q&A
   ========================================================================== */

.ps-badge-open {
  background: #eef4ee;
  border-color: #c9d7c9;
  color: #355338;
}

.ps-form-wrap.ps-poll-form {
  max-width: 980px;
}

.ps-poll-title {
  font-weight: 600;
  color: var(--ps-charcoal);
}

.ps-poll-session,
.ps-poll-visibility {
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
}

.ps-poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-poll-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: #fff;
}

.ps-poll-option.is-locked {
  background: #faf9f7;
}

.ps-poll-option-form {
  display: flex;
  flex: 1 1 340px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ps-poll-option-form input[type="text"] {
  flex: 1 1 220px;
}

.ps-poll-option-order {
  width: 84px;
}

.ps-poll-option-add {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ps-poll-option-add input[type="text"] {
  flex: 1 1 220px;
}

.ps-inline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ps-poll-results {
  max-width: 860px;
}

.ps-poll-results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px 4px;
  flex-wrap: wrap;
}

.ps-poll-results-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-charcoal);
  margin: 0 0 4px;
}

.ps-poll-results-meta {
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
  margin: 0;
}

.ps-poll-results-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.ps-poll-results-total-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--ps-charcoal);
}

.ps-poll-results-total-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ps-muted, #6b7280);
}

.ps-question-body,
.ps-question-answer {
  max-width: 420px;
}

.ps-question-session,
.ps-question-date {
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
  white-space: nowrap;
}

.ps-question-fullbody {
  margin: 6px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: #faf9f7;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ps-charcoal);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ps-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 767px) {
  .ps-poll-results-head {
    flex-direction: column;
  }
  .ps-poll-results-total {
    align-items: flex-start;
  }
  .ps-question-body,
  .ps-question-answer {
    max-width: none;
  }
}

/* ==========================================================================
   Native Conference Evaluation V1 (Phase 2G) — presentation only.
   Reuses polls/Q&A primitives (ps-poll-*, ps-table, ps-badge) wherever the
   semantics match; the classes below only cover evaluation-specific layout.
   ========================================================================== */

.ps-eval-workspace-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.ps-eval-workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.ps-eval-subrow > td {
  padding-top: 0;
  background: rgba(249, 250, 251, 0.6);
}

.ps-eval-options {
  margin: 0;
  padding: 2px 0 6px 18px;
  display: grid;
  gap: 4px;
}

.ps-eval-options li {
  font-size: 13px;
  color: var(--ps-text, #1f2937);
}

.ps-eval-result-question {
  padding: 18px 0 6px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.ps-eval-result-question:first-of-type {
  border-top: 0;
  padding-top: 6px;
}

.ps-eval-result-question-head {
  margin-bottom: 10px;
}

.ps-eval-result-question-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ps-text, #1f2937);
}

.ps-eval-result-question-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-rating-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.ps-eval-rating-average {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ps-text, #1f2937);
}

.ps-eval-rating-average-label {
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-free-text-list {
  margin: 0;
  padding: 0 0 6px 18px;
  display: grid;
  gap: 8px;
}

.ps-eval-free-text-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ps-text, #1f2937);
  overflow-wrap: anywhere;
}

.ps-eval-option-inputs {
  display: grid;
  gap: 10px;
}

/* EVAL-3C ? Evaluation Builder + Landing Dashboard */
.ps-eval-builder,
.ps-eval-dash {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.ps-eval-builder-header,
.ps-eval-overview,
.ps-eval-workflow,
.ps-eval-readiness,
.ps-eval-status-section,
.ps-eval-inline-panel,
.ps-eval-qcard {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.ps-eval-builder-header {
  padding: 16px 18px;
}

.ps-eval-builder-title,
.ps-eval-overview-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ps-text, #1f2937);
  letter-spacing: -0.01em;
}

.ps-eval-builder-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ps-muted, #6b7280);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.ps-badge-draft {
  background: rgba(180, 140, 60, 0.12);
  color: #8a6a1f;
}

.ps-badge-closed {
  background: rgba(31, 41, 55, 0.08);
  color: #4b5563;
}

.ps-eval-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(31, 41, 55, 0.04);
  border-radius: 10px;
  flex-wrap: wrap;
}

.ps-eval-tab {
  flex: 1 1 auto;
  min-width: 96px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-muted, #6b7280);
  text-decoration: none;
  border: 1px solid transparent;
}

.ps-eval-tab:hover {
  color: var(--ps-text, #1f2937);
  background: rgba(255, 255, 255, 0.7);
}

.ps-eval-tab.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: inset 0 -2px 0 var(--ps-gold, #b8922a);
}

.ps-eval-panel {
  display: grid;
  gap: 16px;
}

.ps-eval-readiness {
  padding: 14px 18px;
}

.ps-eval-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ps-eval-readiness-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.ps-eval-readiness-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.ps-eval-readiness-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-readiness-list li.is-ok {
  color: var(--ps-text, #1f2937);
}

.ps-eval-readiness-mark {
  width: 1.1em;
  text-align: center;
  font-weight: 700;
  color: var(--ps-gold, #b8922a);
}

.ps-eval-builder-questions-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ps-eval-builder-questions-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ps-eval-qcard-list {
  display: grid;
  gap: 12px;
}

.ps-eval-qcard {
  padding: 14px 16px;
}

.ps-eval-qcard.is-editing {
  border-color: rgba(184, 146, 42, 0.45);
  box-shadow: 0 0 0 3px rgba(184, 146, 42, 0.1);
}

.ps-eval-qcard.is-inactive-q {
  opacity: 0.78;
}

.ps-eval-qcard-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ps-eval-qcard-identity {
  display: flex;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ps-eval-qcard-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-eval-qcard-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ps-text, #1f2937);
  overflow-wrap: anywhere;
}

.ps-eval-qcard-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 12px;
}

.ps-eval-qcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  flex: 0 0 auto;
}

.ps-eval-qcard-actions .ps-icon-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ps-eval-preview {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
}

.ps-eval-preview-rating,
.ps-eval-preview-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ps-eval-preview-choice-list {
  flex-direction: column;
  gap: 6px;
}

.ps-eval-preview-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ps-text, #1f2937);
  cursor: default;
}

.ps-eval-preview-choice input {
  margin: 0;
  pointer-events: none;
}

.ps-eval-preview-text {
  width: 100%;
  resize: none;
  background: rgba(31, 41, 55, 0.03);
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-qcard-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-inline-panel {
  padding: 16px 18px 8px;
}

.ps-eval-inline-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ps-eval-inline-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ps-eval-status-section {
  padding: 4px 16px 12px;
}

.ps-eval-publish-status {
  margin: 0 0 10px;
}

.ps-eval-option-inputs {
  display: grid;
  gap: 8px;
}

.ps-eval-option-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ps-eval-option-row input[type='text'] {
  flex: 1;
}

.ps-eval-option-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 10px;
}

.ps-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

#ps-eval-options-section.is-hidden-for-type {
  display: none;
}

/* Landing dashboard */
.ps-eval-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr);
  gap: 18px;
  padding: 18px 20px;
}

.ps-eval-overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.ps-eval-overview-conf {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-overview-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ps-text, #1f2937);
}

.ps-eval-overview-ready {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.03);
  border: 1px solid rgba(31, 41, 55, 0.06);
}

.ps-eval-ready-value {
  margin: 4px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-text, #1f2937);
}

.ps-eval-ready-value.is-ok {
  color: #1f6b3a;
}

.ps-eval-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ps-eval-metric {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.ps-eval-metric-num,
.ps-eval-metric-status {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ps-text, #1f2937);
  letter-spacing: -0.02em;
}

.ps-eval-metric-label {
  font-size: 12px;
  color: var(--ps-muted, #6b7280);
}

.ps-eval-workflow {
  padding: 14px 18px;
}

.ps-eval-workflow-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.ps-eval-workflow-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ps-text, #1f2937);
}

.ps-eval-empty {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 12px;
  padding: 28px 22px;
}

@media (max-width: 900px) {
  .ps-eval-overview {
    grid-template-columns: 1fr;
  }

  .ps-eval-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ps-eval-builder-header,
  .ps-eval-qcard-head,
  .ps-eval-builder-questions-head,
  .ps-eval-inline-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-eval-qcard-actions {
    justify-content: flex-start;
  }

  .ps-eval-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .ps-eval-tab {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .ps-eval-metrics {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Phase 2I — Persistent Notifications
   ========================================================================== */

.ps-notification-target {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ps-border-strong, #d1d5db);
  border-radius: var(--ps-radius-sm, 6px);
  background: #fff;
  font-size: 14px;
  color: var(--ps-text, #1f2937);
  cursor: pointer;
  margin: 0 8px 8px 0;
}

.ps-notification-target input[type='radio'] {
  margin: 0;
}

.ps-notification-registered-target {
  display: contents;
}

.ps-notification-registered-target.is-disabled .ps-field {
  opacity: 0.55;
}

.ps-notification-registered-target.is-disabled .ps-notification-target {
  background: #f3f4f6;
  color: var(--ps-muted, #6b7280);
  border-color: var(--ps-border, #e5e7eb);
  cursor: not-allowed;
}

.ps-notification-registered-target.is-disabled select,
.ps-notification-registered-target.is-disabled input[type='radio'] {
  cursor: not-allowed;
}

.ps-notification-target-panel[hidden] {
  display: none;
}

.ps-notification-search {
  display: grid;
  gap: 10px;
}

.ps-notification-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ps-notification-search-row input[type='search'] {
  min-width: 280px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--ps-border-strong, #d1d5db);
  border-radius: var(--ps-radius-sm, 6px);
  font: inherit;
  font-size: 14px;
}

.ps-notification-finder {
  margin-bottom: 18px;
  padding: 14px 16px;
}

.ps-notification-summary {
  margin-bottom: 18px;
}

.ps-notification-summary table tbody th {
  width: 220px;
  text-align: left;
  font-weight: 600;
  vertical-align: top;
}

.ps-notification-summary-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--ps-border, #e5e7eb);
}

.ps-notification-title {
  font-weight: 600;
  color: var(--ps-text, #1f2937);
}

.ps-notification-meta {
  font-size: 12.5px;
  color: var(--ps-muted, #6b7280);
}

/* Hero Banners V1 */
.ps-form-wrap.ps-banner-form {
  max-width: 920px;
}

.ps-banner-action-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.ps-banner-image-control {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.ps-banner-image-preview {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ps-border, #e5e7eb);
  border-radius: 8px;
  background: #f8f7f4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-banner-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-banner-image-img.is-hidden,
.ps-banner-image-placeholder.is-hidden {
  display: none;
}

.ps-banner-image-placeholder {
  font-size: 13px;
  color: var(--ps-muted, #6b7280);
}

.ps-banner-image-meta {
  flex: 1;
  min-width: 200px;
}

.ps-banner-image-meta .ps-btn {
  display: inline-block;
  cursor: pointer;
}

.ps-banner-form #image.ps-sr-only,
.ps-banner-image-meta .ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ps-banner-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--ps-border, #e5e7eb);
  background: #f8f7f4;
  display: block;
}

.ps-banner-thumb--empty {
  display: inline-block;
}

.ps-banner-table .ps-col-logo {
  width: 110px;
}

/* ==========================================================================
   Mobile App Settings
   ========================================================================== */

.ps-mas {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-mas-header {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
}

.ps-mas-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ps-charcoal, #1f1f1f);
}

.ps-mas-sub {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ps-text-muted, #6b7280);
}

.ps-mas-confid {
  margin-left: 8px;
  color: var(--ps-text-muted, #6b7280);
  font-weight: 500;
}

.ps-mas-help {
  margin: 0;
  font-size: 12px;
  color: var(--ps-text-muted, #6b7280);
  max-width: 62ch;
}

.ps-mas-header-meta {
  text-align: right;
  min-width: 200px;
}

.ps-mas-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--ps-border, #e5e7eb);
  margin-bottom: 6px;
}

.ps-mas-status--ok {
  background: #f7f3e8;
  border-color: #e2d4a8;
  color: #5c4a1a;
}

.ps-mas-status--default {
  background: #f4f4f2;
  border-color: #e5e7eb;
  color: #4b5563;
}

.ps-mas-meta {
  font-size: 12px;
  color: var(--ps-text-muted, #6b7280);
  margin-top: 2px;
}

.ps-mas-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ps-border, #e5e7eb);
  padding: 0 2px;
}

.ps-mas-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ps-text-muted, #6b7280);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 14px;
  margin-bottom: -1px;
}

.ps-mas-tab:hover {
  color: var(--ps-charcoal, #1f1f1f);
}

.ps-mas-tab.is-active {
  color: var(--ps-charcoal, #1f1f1f);
  border-bottom-color: var(--ps-gold, #c4a35a);
}

.ps-mas-form.ps-form-wrap {
  max-width: none;
}

.ps-mas-panel[hidden] {
  display: none !important;
}

.ps-mas-card {
  padding: 18px 20px;
}

.ps-mas-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ps-mas-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ps-charcoal, #1f1f1f);
}

.ps-mas-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ps-text-muted, #6b7280);
  max-width: 60ch;
}

.ps-mas-bulk {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ps-mas-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-mas-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ps-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}

.ps-mas-section.is-hidden {
  background: #fafaf8;
  opacity: 0.92;
}

.ps-mas-section-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ps-charcoal, #1f1f1f);
}

.ps-mas-section-desc {
  font-size: 12px;
  color: var(--ps-text-muted, #6b7280);
  margin-top: 2px;
}

.ps-mas-section-key {
  margin-top: 4px;
}

.ps-mas-section-key code {
  font-size: 11px;
  color: #6b7280;
  background: #f4f4f2;
  border: 1px solid #e8e6e1;
  border-radius: 4px;
  padding: 1px 6px;
}

.ps-mas-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.ps-mas-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ps-mas-switch-ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d4d0c8;
  border: 1px solid #c5c0b6;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ps-mas-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.ps-mas-switch input:checked + .ps-mas-switch-ui {
  background: var(--ps-charcoal, #1f1f1f);
  border-color: var(--ps-charcoal, #1f1f1f);
}

.ps-mas-switch input:checked + .ps-mas-switch-ui::after {
  transform: translateX(18px);
}

.ps-mas-switch input:focus-visible + .ps-mas-switch-ui {
  outline: 2px solid var(--ps-gold, #c4a35a);
  outline-offset: 2px;
}

.ps-mas-switch input:disabled + .ps-mas-switch-ui {
  opacity: 0.55;
}

.ps-mas-switch-text {
  font-size: 12px;
  font-weight: 650;
  min-width: 52px;
  color: var(--ps-charcoal, #1f1f1f);
}

.ps-mas-section.is-hidden .ps-mas-switch-text {
  color: var(--ps-text-muted, #6b7280);
}

.ps-mas-version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ps-mas .ps-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .ps-mas-header {
    flex-direction: column;
  }
  .ps-mas-header-meta {
    text-align: left;
  }
  .ps-mas-version-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ps-mas-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .ps-mas-card-head {
    flex-direction: column;
  }
  .ps-mas-tabs {
    overflow-x: auto;
  }
}
/* ----- Firebase Projects (Access Control) ----- */
.ps-fp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ps-fp-card {
  margin: 0;
}

.ps-fp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ps-border, #e6e1d8);
  background: var(--ps-surface-muted, #faf8f5);
}

.ps-fp-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ps-charcoal, #2b2724);
  line-height: 1.3;
}

.ps-fp-card-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--ps-muted, #6b645c);
  line-height: 1.35;
}

.ps-fp-card-sub code,
.ps-fp-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  background: #f3f0ea;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--ps-charcoal, #2b2724);
}

.ps-fp-name {
  font-weight: 600;
  color: var(--ps-charcoal, #2b2724);
}

.ps-fp-conf-meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--ps-muted, #6b645c);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-fp-table {
  min-width: 920px;
}

.ps-fp-table th,
.ps-fp-table td {
  vertical-align: middle;
}

.ps-fp-col-name { min-width: 9rem; width: 16%; }
.ps-fp-col-id { min-width: 8.5rem; width: 14%; }
.ps-fp-col-type { width: 6.5rem; }
.ps-fp-col-status { width: 6.5rem; }
.ps-fp-col-creds { width: 7.5rem; }
.ps-fp-col-conf { min-width: 7rem; width: 12%; }
.ps-fp-col-date { width: 9.5rem; white-space: nowrap; }
.ps-fp-col-actions { width: 1%; white-space: nowrap; }

.ps-fp-actions {
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.ps-fp-btn {
  min-height: 30px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
}

.ps-fp-inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.ps-fp-card--form .ps-fp-form-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.ps-fp-card--form .ps-fp-form-wrap > .ps-form {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 0.9rem 1.1rem 0.85rem;
}

.ps-fp-form-grid {
  gap: 0.75rem 1rem;
  margin: 0;
}

.ps-fp-card--form .ps-field {
  margin: 0;
}

.ps-fp-card--form .ps-field label {
  margin-bottom: 0.3rem;
}

.ps-fp-card--form .ps-help {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.ps-fp-card--form .ps-form-actions {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  gap: 0.5rem;
}

.ps-badge-warn {
  background: #fbf3e6;
  border-color: #e8d3b0;
  color: #7a5520;
}

@media (max-width: 900px) {
  .ps-fp-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ps-fp-col-actions {
    text-align: left;
  }

  .ps-fp-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ps-fp-card-head {
    padding: 0.75rem 0.9rem;
  }

  .ps-fp-card--form .ps-fp-form-wrap > .ps-form {
    padding: 0.75rem 0.9rem 0.8rem;
  }

  .ps-fp-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Notification send confirmation modal ----- */
body.ps-nt-modal-open {
  overflow: hidden;
}

.ps-nt-modal[hidden] {
  display: none !important;
}

.ps-nt-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ps-nt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ps-nt-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ps-border, #e6e1d8);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(28, 25, 23, 0.18);
  outline: none;
}

.ps-nt-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--ps-border, #e6e1d8);
}

.ps-nt-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ps-charcoal, #2b2724);
}

.ps-nt-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ps-muted, #6b645c);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.ps-nt-modal-close:hover,
.ps-nt-modal-close:focus {
  background: #f5f1ea;
  color: var(--ps-charcoal, #2b2724);
  outline: none;
}

.ps-nt-modal-body {
  padding: 0.9rem 1.1rem 0.35rem;
}

.ps-nt-modal-meta {
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.ps-nt-modal-meta > div {
  display: grid;
  gap: 0.15rem;
}

.ps-nt-modal-meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-muted, #6b645c);
}

.ps-nt-modal-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ps-charcoal, #2b2724);
  word-break: break-word;
}

.ps-nt-modal-lead {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ps-text, #3f3a36);
}

.ps-nt-modal-extra {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--ps-muted, #6b645c);
  line-height: 1.4;
}

.ps-nt-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem 1.05rem;
  border-top: 1px solid var(--ps-border, #e6e1d8);
  background: var(--ps-surface-muted, #faf8f5);
}

.ps-nt-modal-actions .ps-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 480px) {
  .ps-nt-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .ps-nt-modal-dialog {
    width: 100%;
    border-radius: 12px 12px 0 0;
  }

  .ps-nt-modal-actions {
    flex-direction: column-reverse;
  }

  .ps-nt-modal-actions .ps-btn {
    width: 100%;
  }
}

/* ----- Notification send result recipient table ----- */
.ps-nt-result-block {
  padding: 0.85rem 1rem 0.25rem;
  border-top: 1px solid var(--ps-border, #e6e1d8);
}

.ps-nt-result-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ps-charcoal, #2b2724);
}

.ps-nt-result-note {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ps-muted, #6b645c);
}

.ps-nt-result-table {
  margin: 0;
}

.ps-nt-result-table th,
.ps-nt-result-table td {
  vertical-align: middle;
}

.ps-nt-result-name {
  font-weight: 600;
  color: var(--ps-charcoal, #2b2724);
  white-space: nowrap;
}

.ps-nt-result-detail {
  font-size: 0.8125rem;
  color: var(--ps-muted, #6b645c);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .ps-nt-result-name {
    white-space: normal;
  }
}
