/* Pyrk enterprise photo contest page - design hardening patch */
.photo-contest-enterprise-page.container,
.photo-command-page.container{
  max-width:min(1880px,97vw)!important;
  width:97vw!important;
  padding-left:18px;
  padding-right:18px;
}
.photo-contest-enterprise-page *{box-sizing:border-box;min-width:0}
.photo-contest-enterprise-page select,
.photo-contest-enterprise-page input,
.photo-contest-enterprise-page textarea{
  max-width:100%;
}
.photo-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center}
.hero-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.hero-select-label{display:grid;gap:7px;font-weight:900;color:#0f172a;min-width:360px;font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.hero-select-label select{min-width:360px;background:#fff}
.photo-kpi-grid{margin:22px 0}.photo-kpi-grid .stat{min-height:120px;border:1px solid rgba(148,163,184,.2);box-shadow:0 18px 48px rgba(15,23,42,.06)}
.photo-kpi-grid .stat strong{font-size:34px;line-height:1}

/* New control center layout */
.contest-control-panel{
  border:1px solid rgba(37,99,235,.13);
  box-shadow:0 24px 80px rgba(15,23,42,.08);
  overflow:hidden;
  margin-bottom:22px;
}
.contest-control-head{padding-bottom:18px;border-bottom:1px solid #e5e7eb;margin-bottom:20px}
.contest-settings-form{display:block}.contest-settings-form.is-disabled{opacity:.78}
.contest-settings-grid{display:grid;grid-template-columns:1.05fr .95fr 1fr;gap:18px;align-items:stretch}
.settings-card{border:1px solid #e2e8f0;border-radius:24px;background:linear-gradient(180deg,#fff,#fbfdff);padding:18px;box-shadow:0 16px 42px rgba(15,23,42,.045)}
.settings-card-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.settings-card-title h3{margin:0;font-size:19px}.settings-card-title p{margin:4px 0 0}.settings-card-title .pill{margin-left:auto;white-space:nowrap}
.settings-icon{width:38px;height:38px;border-radius:14px;background:#eef6ff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.settings-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-field-grid label,.rules-note-field{display:grid;gap:7px;font-weight:900;color:#0f172a}.settings-field-grid input,.settings-field-grid select,.rules-note-field textarea{width:100%}.settings-field-grid label:nth-child(3),.self-vote-card{grid-column:span 1}.nice-check{display:flex!important;align-items:center;gap:12px;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.nice-check input{width:auto!important;flex:0 0 auto}.nice-check span{line-height:1.25}.rules-note-field{margin-top:14px}
.contest-example-stack{display:grid;gap:10px;margin:12px 0 14px}.contest-example-stack div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;align-items:start;padding:11px 12px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}.contest-example-stack strong{color:#0f172a}.contest-example-stack span{color:#475569;font-weight:700;line-height:1.25}
.contest-action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.contest-action-row .btn{flex:1 1 auto;white-space:nowrap}.settings-card-summary .notice{margin-bottom:0}
.contest-group-selector{margin:0;background:linear-gradient(180deg,#fff,#f8fbff)}.contest-group-selector.is-needed{border-color:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.08)}.contest-group-selector.is-disabled{opacity:.72}.search-box.mini{min-height:46px;border-radius:16px}.search-box.mini input{font-size:15px;padding:11px 12px}.contest-group-results{display:grid;gap:10px;max-height:340px;overflow:auto;margin-top:12px;padding:0 4px 0 0}.contest-group-option{display:flex!important;align-items:center;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;cursor:pointer;transition:.18s ease}.contest-group-option:hover{border-color:#93c5fd;box-shadow:0 12px 30px rgba(37,99,235,.08)}.contest-group-option.selected{border-color:#22c55e;background:#f0fdf4}.contest-group-option input{width:auto!important}.group-avatar{width:40px;height:40px;border-radius:15px;display:grid;place-items:center;background:#0f766e;color:#fff;font-weight:900;flex:0 0 auto}.group-copy{display:grid;line-height:1.2}.group-copy small{color:#64748b;font-weight:700;margin-top:3px}.empty-state.mini{padding:18px;text-align:center;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc}

/* Photo workspace */
.photo-workspace-panel{overflow:hidden}.photo-workspace-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:18px}.view-switch{display:inline-flex;align-items:center;gap:8px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:17px;padding:5px}.view-switch .btn.active{background:#0f8a5f;color:#fff;box-shadow:0 12px 28px rgba(15,138,95,.22)}
.photo-filter-bar{display:grid;grid-template-columns:minmax(320px,2.2fr) repeat(5,minmax(155px,1fr));gap:12px;align-items:center;padding:14px;border:1px solid #e2e8f0;border-radius:24px;background:#f8fafc;margin-bottom:14px}.photo-filter-bar select,.photo-filter-bar input{height:48px;background:#fff}.photo-search-box{min-height:48px;background:#fff}.photo-status-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7;margin:4px 0 12px}.photo-status-tabs button{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:10px 18px;font-weight:900;color:#334155;cursor:pointer}.photo-status-tabs button.active{background:#0f8a5f;color:#fff;border-color:#0f8a5f}.photo-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dbeafe;background:linear-gradient(90deg,#f8fbff,#fff);border-radius:18px;padding:14px 16px;margin:12px 0 18px}.photo-bulk-bar strong{font-size:17px}
.enterprise-photo-grid.contest-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px;align-items:start}.enterprise-photo-card{border:1px solid #e2e8f0;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.08);transition:.18s ease}.enterprise-photo-card:hover{transform:translateY(-2px);box-shadow:0 24px 60px rgba(15,23,42,.12)}.enterprise-photo-card.winner{outline:3px solid rgba(245,158,11,.35)}.enterprise-photo-thumb{position:relative;height:230px;background:#0f172a;cursor:pointer;overflow:hidden}.enterprise-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.2s ease}.enterprise-photo-thumb:hover img{transform:scale(1.03)}.photo-status-chip{position:absolute;top:12px;left:12px}.photo-vote-chip{position:absolute;right:12px;bottom:12px;background:rgba(15,23,42,.88);color:#fff;border-radius:999px;padding:8px 11px;font-weight:900;font-size:13px;backdrop-filter:blur(8px)}.enterprise-photo-body{padding:16px}.photo-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.photo-title-row h3{margin:0;font-size:18px;line-height:1.2}.photo-caption{color:#64748b;margin:8px 0 12px;line-height:1.35;min-height:38px}.photo-member-line{display:flex;align-items:center;gap:10px;padding:10px;border-radius:16px;background:#f8fafc}.photo-member-line small{display:block;color:#64748b;font-weight:700}.contest-rule-strip{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.contest-rule-strip span:not(.pill){padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:800}.photo-card-actions{display:flex;gap:8px;flex-wrap:wrap}.photo-card-actions .btn{flex:1 1 auto}.photo-table-wrap{border-radius:24px;border:1px solid #e2e8f0;overflow:auto;max-width:100%}.photo-pro-table{min-width:1120px}.photo-table-photo{display:flex;align-items:center;gap:12px;cursor:pointer}.photo-table-photo img{width:62px;height:62px;object-fit:cover;border-radius:16px;background:#0f172a}.photo-table-photo small,.photo-pro-table small{display:block;color:#64748b;font-weight:700;margin-top:3px}.contest-table-rules{display:grid;gap:5px}.contest-table-rules small{display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-weight:800}.photo-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px}.empty-state{grid-column:1/-1;padding:42px;text-align:center;border:1px dashed #cbd5e1;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fafc)}

/* Modal preview */
.photo-preview-modal{width:min(1320px,94vw)}.photo-preview-layout{display:grid;grid-template-columns:minmax(0,1.45fr) 400px;gap:22px}.photo-preview-image{width:100%;max-height:72vh;object-fit:contain;border-radius:24px;background:#0f172a}.photo-preview-side{min-width:0}.photo-preview-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.photo-preview-meta div{padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}.photo-preview-meta span{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.photo-preview-meta strong{display:block;color:#0f172a;margin-top:4px}.contest-rule-card{border:1px solid #e2e8f0;border-radius:18px;padding:14px;background:#f8fafc;margin:12px 0}.contest-rule-card p{margin:7px 0;color:#475569}

@media (max-width:1450px){.contest-settings-grid{grid-template-columns:1fr 1fr}.settings-card-summary{grid-column:1/-1}.photo-filter-bar{grid-template-columns:minmax(280px,1.6fr) repeat(3,minmax(150px,1fr))}.photo-filter-bar select:nth-of-type(4),.photo-filter-bar select:nth-of-type(5){grid-column:auto}}
@media (max-width:1100px){.photo-hero-grid,.photo-workspace-head{grid-template-columns:1fr}.hero-actions{justify-content:flex-start}.hero-select-label,.hero-select-label select{min-width:0;width:100%}.contest-settings-grid{grid-template-columns:1fr}.settings-field-grid{grid-template-columns:1fr}.photo-filter-bar{grid-template-columns:1fr}.photo-preview-layout{grid-template-columns:1fr}.photo-preview-meta{grid-template-columns:1fr}.photo-bulk-bar{align-items:flex-start;flex-direction:column}.enterprise-photo-grid.contest-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}}
@media (max-width:680px){.photo-contest-enterprise-page.container{width:100%!important;padding-left:12px;padding-right:12px}.enterprise-photo-grid.contest-gallery-grid{grid-template-columns:1fr}.contest-action-row .btn{width:100%}.photo-kpi-grid.grid.five{grid-template-columns:1fr}.enterprise-photo-thumb{height:210px}}

/* Current per-walk voting configuration visibility fix */
.contest-current-config{margin:0 0 18px}.current-config-empty{border:1px dashed #bfdbfe;background:linear-gradient(135deg,#f8fbff,#fff);border-radius:22px;padding:18px 20px;display:grid;gap:5px;color:#0f172a}.current-config-empty.bad{border-color:#fecaca;background:#fff7f7;color:#991b1b}.current-config-empty.is-loading{border-style:solid;background:#f8fafc}.current-config-card{border:1px solid #dbeafe;border-radius:26px;background:linear-gradient(135deg,#ffffff,#f8fbff);padding:20px;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:18px;box-shadow:0 18px 48px rgba(15,23,42,.06)}.current-config-card.open{border-color:rgba(15,138,95,.28)}.current-config-card.closed{border-color:rgba(220,38,38,.28);background:linear-gradient(135deg,#fff,#fff7f7)}.current-config-main h3{margin:12px 0 6px;font-size:24px}.current-config-main p{margin:0}.current-config-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.current-config-metrics div{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:13px 14px;min-width:0}.current-config-metrics span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#64748b;font-weight:900;margin-bottom:6px}.current-config-metrics strong{display:block;color:#0f172a;font-weight:950;line-height:1.25;overflow-wrap:anywhere}.contest-settings-form.is-disabled .settings-card{opacity:.72}.contest-settings-form.is-disabled .settings-card-summary{opacity:1}.contest-action-row #saveContestSettingsBtn[disabled]{opacity:.5;cursor:not-allowed}
@media (max-width:1150px){.current-config-card{grid-template-columns:1fr}.current-config-metrics{grid-template-columns:1fr 1fr}}@media (max-width:680px){.current-config-metrics{grid-template-columns:1fr}.current-config-card{padding:16px}}
