:root {
  font-family: "Open Sans", system-ui, sans-serif;
  --brand-blue: #004f9e;
  --brand-orange: #e86a10;
  --brand-gold: #fdba12;
  --brand-night: #060a11;
  color: #151827;
  background: #f4f6fa;
  line-height: 1.4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.brand {
  padding: 15vh 8vw;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-night) 45%, var(--brand-blue));
}
.brand span,
.eyebrow {
  color: var(--brand-orange);
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.brand h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}
.panel {
  margin: auto;
  width: min(500px, 90%);
  padding: 2.2rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 20px 60px #0f172a20;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px 1fr;
}
.shell aside {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.6rem;
  background: var(--brand-night);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.logo {
  display: block;
}
.logo img,
.login-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}
.login-logo {
  width: min(360px, 80%);
  max-height: 120px;
  margin-bottom: 2rem;
}
.shell nav {
  display: grid;
  gap: 0.35rem;
}
.shell nav strong {
  color: var(--brand-gold);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin-top: 0.7rem;
  text-transform: uppercase;
}
:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
}
.shell nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
}
.shell nav a:hover {
  background: #ffffff16;
}
.shell aside small {
  color: #9ca3af;
}
.shell aside > #identity {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.shell aside > #identity span {
  display: grid;
}
.shell aside > #identity small {
  font-size: 0.7rem;
}
main#app {
  padding: clamp(1.3rem, 3vw, 2.7rem);
  max-width: 1600px;
  width: 100%;
  overflow: hidden;
}
h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.15rem 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.muted {
  color: #697386;
}
.toolbar,
.row-actions,
.inline-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar {
  padding: 0.9rem;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}
.toolbar input {
  min-width: 280px;
  max-width: 430px;
}
.toolbar select {
  width: auto;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 7px 25px #1118270a;
}
.table-wrap.inner {
  box-shadow: none;
  margin-top: 1rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
}
th,
td {
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #eceef2;
  vertical-align: middle;
}
th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #788195;
  background: #fafbfc;
}
td {
  font-size: 0.87rem;
}
td small {
  display: block;
  color: #778196;
  margin-top: 0.2rem;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar.tiny {
  width: 34px;
  height: 34px;
}
.event-thumb {
  display: block;
  width: 82px;
  height: 52px;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #111;
}
.event-thumb.placeholder {
  font-size: 0.65rem;
  color: #8b93a3;
  display: grid;
  place-items: center;
  background: #edf0f4;
}
button,
.button {
  border: 0;
  border-radius: 0.58rem;
  background: #181b25;
  color: #fff;
  padding: 0.62rem 0.9rem;
  font-weight: 750;
  cursor: pointer;
}
.primary {
  background: var(--brand-blue);
  color: #fff;
}
.secondary {
  background: var(--brand-night);
  color: #fff;
}
.ghost {
  background: #f0f2f6;
  color: #343945;
}
.small {
  padding: 0.43rem 0.65rem;
  font-size: 0.76rem;
}
.danger-link {
  background: #fff0f0;
  color: #b42318;
}
.badge {
  display: inline-flex;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #eceef3;
  color: #4d5567;
}
.badge.active,
.status-published {
  background: #e8f7ee;
  color: #167443;
}
.badge.inactive,
.status-cancelled {
  background: #feecec;
  color: #a62727;
}
.badge.role,
.status-pending {
  background: #fff2df;
  color: #9a5200;
}
.status-past-event,
.status-archived {
  background: #ebedf1;
  color: #596173;
}
label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
}
label > span {
  display: block;
  margin-bottom: 0.3rem;
  color: #4b5565;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid #ccd1da;
  border-radius: 0.55rem;
  background: #fff;
  color: #171923;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px #004f9e22;
  outline: none;
}
.settings-form {
  display: grid;
  gap: 1rem;
}
.settings-form .form-grid {
  align-items: end;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.credential-status {
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  background: #004f9e12;
  color: var(--brand-blue);
}
.layout-create {
  width: 100%;
  margin: 0 0 1rem;
}
.compact-panel {
  width: 100%;
  margin: 0;
}
.seat-preview {
  position: relative;
  width: 100%;
  max-height: 45vh;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #ccd1da;
  border-radius: 0.75rem;
  background: linear-gradient(#f7f8fa 1px, transparent 1px),
    linear-gradient(90deg, #f7f8fa 1px, transparent 1px);
  background-size: 20px 20px;
}
.seat-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--brand-blue);
}
textarea {
  min-height: 82px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 1rem;
}
.form-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check input {
  width: auto;
}
.form-section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eceef2;
}
.form-section h3 {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.92rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #10131b99;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  display: flex;
  flex-direction: column;
  width: min(1100px, 96vw);
  max-height: 94vh;
  overflow: hidden;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 90px #0004;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e7e9ee;
}
.modal-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
}
.icon-close {
  background: transparent;
  color: #343945;
  font-size: 1.7rem;
  padding: 0.1rem 0.5rem;
}
.modal-body {
  overflow: auto;
  padding: 1rem 1.25rem;
}
.modal > form {
  overflow: auto;
  padding: 1rem 1.25rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e7e9ee;
}
.modal-actions.sticky {
  background: #fff;
}
.tabs {
  display: flex;
  padding: 0 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.tabs button {
  border-radius: 0;
  background: transparent;
  color: #687184;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #111827;
  border-color: #f97316;
}
.form-error {
  margin: 0.8rem 1.25rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.55rem;
  background: #fff0f0;
  color: #a62727;
  font-size: 0.83rem;
}
.avatar-picker {
  border: 0;
  margin: 1rem 0 0;
  padding: 0;
}
.avatar-picker legend {
  font-weight: 750;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}
.avatar-picker {
  display: flex;
  gap: 0.65rem;
}
.avatar-picker label {
  position: relative;
}
.avatar-picker input {
  position: absolute;
  opacity: 0;
}
.avatar-picker img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
}
.avatar-picker input:checked + img {
  border-color: #f97316;
  box-shadow: 0 0 0 2px #ffedd5;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.image-slot {
  padding: 0.85rem;
  border: 1px solid #e2e5ea;
  border-radius: 0.8rem;
}
.image-slot > div {
  height: 150px;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #f0f2f5;
}
.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: #8a93a4;
}
.image-slot h3 {
  margin: 0.75rem 0 0.2rem;
}
.image-slot p {
  min-height: 36px;
  margin: 0.2rem 0 0.7rem;
  color: #6b7280;
  font-size: 0.78rem;
}
.image-drop {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: 0.7rem 0;
  padding: 0.75rem;
  border: 2px dashed #cbd1db;
  border-radius: 0.65rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.image-drop:hover,
.image-drop:focus,
.image-drop.dragging {
  border-color: #f97316;
  background: #fff7ed;
  outline: none;
}
.image-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.image-drop span {
  font-size: 0.78rem;
}
.image-drop small {
  color: #697386;
  font-weight: 600;
}
.zone-form {
  padding: 0.9rem;
  border: 1px solid #e1e4ea;
  border-radius: 0.8rem;
}
.inline-actions {
  margin-top: 0.75rem;
}
.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
  background: #17221b;
  color: #fff;
  box-shadow: 0 10px 35px #0003;
}
.toast-error {
  background: #9f2525;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .shell aside {
    height: auto;
    position: static;
  }
  .form-grid.compact,
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .login {
    grid-template-columns: 1fr;
  }
  .brand {
    padding: 3rem 2rem;
  }
  .page-head {
    align-items: start;
  }
  .form-grid,
  .form-grid.compact,
  .image-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 0;
  }
  .modal {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .wide {
    grid-column: auto;
  }
}
