/* /admin — organisers' admin, on top of styles.css (same theme) */

.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.adm-out { min-height: 44px; padding: 0 18px; font-size: .8rem; }

/* sign in */
.adm-login { max-width: 520px; padding-bottom: 60px; }
.adm-login__form { display: grid; gap: 16px; padding: 24px 20px; }
.adm-login__help { margin: 0; font-size: .9rem; }

.adm { padding-bottom: 80px; }

/* section tabs */
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter) 2px; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button {
  position: relative;
  flex: none;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: #d8d8d8;
  font: 700 .82rem var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.adm-tabs button:hover { border-color: #555; color: #fff; }
.adm-tabs button[aria-selected="true"] { border-color: var(--orange); background: rgba(241, 89, 42, .14); color: #fff; }
.adm-tabs button.is-dirty::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.adm-panel { display: grid; gap: 18px; align-content: start; }

/* the bar on top of each section */
.adm-bar { display: grid; gap: 12px; padding: 18px 20px; }
.adm-bar p { margin: 0; }
.adm-bar__title { font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.adm-bar__help { color: var(--grey); max-width: 80ch; }
.adm-bar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-bar .btn, .adm-form .btn, .adm-req .btn, .adm-item__add .btn, .adm-more { min-height: 44px; padding: 0 16px; font-size: .78rem; }
.adm .btn:disabled { opacity: .4; cursor: default; transform: none; }
.adm-bar__publish { margin-left: auto; min-width: 140px; }
.adm-bar__tools > input, .adm-bar__tools > select, .adm-row select, .adm-form select {
  min-height: 44px;
  padding: 0 14px;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font: 400 1rem var(--font);
}
.adm-bar__tools > input { flex: 1 1 240px; min-width: 0; }
.adm-bar__tools > input:focus, .adm-bar__tools > select:focus { outline: 0; border-color: var(--orange); }
.adm-bar__status { min-height: 1.4em; color: #9fd9b8; font-weight: 600; }
.adm-bar__status.is-bad { color: #ffb3a8; }

/* compact form fields */
.adm .field { gap: 6px; }
.adm .field > span { font-size: .7rem; }
.adm .field input, .adm .field select { min-height: 44px; font-size: 1rem; }
.adm .field textarea { min-height: 0; padding: 10px 14px; font-size: 1rem; line-height: 1.45; }
.adm-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adm-row > .field { flex: 1 1 140px; }
.adm-row > .adm-grow { flex: 3 1 260px; }
.adm-link { padding: 0; border: 0; background: none; color: var(--orange); font: 600 .9rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adm-link:hover { color: #ff8a5f; }
.adm-danger.btn { border-color: #6b2b24; color: #ffb3a8; }
.adm-danger.btn:hover { border-color: #ff5a5a; color: #fff; }
.adm-link.adm-danger { color: #ff8f80; }

/* 2026 stands editor */
.adm-map .tmap__info { display: none; }
.adm-form { display: grid; gap: 14px; padding: 18px; }
.adm-form p { margin: 0; }
.adm-form__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.adm-form__title { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.adm-form__hint { font-size: .92rem; }
.adm-form__sub { margin-top: 6px !important; font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.adm-form__area { color: var(--grey); font-size: .92rem; }
.adm-form__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.adm-form__actions .btn { margin-top: 8px; }
.adm-step { flex: 0 1 110px !important; }
.adm-pad { display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; }
.adm-pad__btn, .adm-iconbtn {
  width: 44px;
  height: 44px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: 700 1.1rem var(--font);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.adm-pad__btn:hover, .adm-iconbtn:hover { border-color: var(--orange); background: #1c0d07; }
.adm-standlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 60vh; overflow: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.adm-standlist__btn { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: #0f0f0f; color: #fff; font: 600 .95rem var(--font); text-align: left; cursor: pointer; }
.adm-standlist__btn:hover { border-color: var(--orange); }
.adm-standlist__btn small { color: var(--grey-2); font-weight: 400; white-space: nowrap; }

/* kiosk link */
.adm-kiosk { display: grid; gap: 12px; padding: 18px 20px; }
.adm-kiosk p { margin: 0; }
.adm-kiosk__url { display: block; padding: 10px 14px; border: 1px solid #333; border-radius: 8px; background: #000; color: #ffc2ad; font: 500 .95rem ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }

/* 2027 plan: the editor's own password box is not needed here */
.page-admin .editbar__key { display: none; }

/* lists */
.adm-summary { margin: 0; color: #dcdcdc; font-weight: 600; }
.adm-cards { display: grid; gap: 14px; }
.adm-req { display: grid; gap: 14px; padding: 18px; border-left: 4px solid var(--orange); }
.adm-req.is-contacted { border-left-color: #55b7ec; }
.adm-req.is-confirmed { border-left-color: #43c493; }
.adm-req.is-cancelled { border-left-color: #555; opacity: .75; }
.adm-req__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.adm-req__head p { margin: 0; }
.adm-req__company { font-weight: 700; font-size: 1.25rem; }
.adm-req__when { color: var(--grey); font-size: .9rem; }
.adm-req__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-pill { flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(241, 89, 42, .16); color: #ffc2ad; font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.adm-req.is-contacted .adm-pill { background: rgba(85, 183, 236, .16); color: #b6e2fa; }
.adm-req.is-confirmed .adm-pill { background: rgba(67, 196, 147, .16); color: #aee9d0; }
.adm-req.is-cancelled .adm-pill { background: #1c1c1c; color: #aaa; }
.adm-dl { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.adm-dl dt { color: var(--grey-2); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.adm-dl dd { margin: 0; color: #eee; overflow-wrap: anywhere; }
.adm-dl a { color: #fff; text-underline-offset: 3px; }
.adm-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #1c1c1c; color: #c9c9c9; font-size: .78rem; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chip { padding: 2px 10px; border: 1px solid #3a3a3a; border-radius: 999px; font-size: .85rem; }
.adm-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.adm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm-table th, .adm-table td { padding: 10px 12px; border-bottom: 1px solid #1c1c1c; text-align: left; vertical-align: top; white-space: nowrap; }
.adm-table th { position: sticky; top: 0; background: #111; color: var(--grey); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.adm-table td:nth-child(5), .adm-table td:nth-child(6) { white-space: normal; min-width: 160px; }
.adm-table a { color: #fff; }
.adm-table tbody tr:hover { background: #111; }
.adm-more { justify-self: start; }

/* agenda */
.adm-subtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-subtab { display: grid; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: #fff; font: 400 .9rem var(--font); text-align: left; cursor: pointer; }
.adm-subtab b { font-size: 1rem; }
.adm-subtab span { color: var(--grey); }
.adm-subtab.is-on { border-color: var(--orange); background: rgba(241, 89, 42, .12); }
.adm-agenda { display: grid; gap: 12px; }
.adm-item { display: grid; gap: 12px; padding: 16px; }
.adm-item.is-break, .adm-item.is-tba { background: #070707; border-style: dashed; }
.adm-time { flex: 0 1 170px !important; }
.adm-item__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.adm-item__add { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-people { display: grid; gap: 10px; padding-top: 4px; }
.adm-people__add { display: flex; gap: 18px; }
.adm-person { display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; align-items: center; padding: 10px; border: 1px solid #1e1e1e; border-radius: 10px; background: #050505; }
.adm-person__pic { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: #1c1c1c; color: var(--orange); font-weight: 700; }
.adm-person__pic img { width: 100%; height: 100%; object-fit: cover; }
.adm-person__fields { display: grid; gap: 8px; }
.adm-person__fields input { min-height: 40px; padding: 0 12px; background: #000; border: 1px solid #333; border-radius: 8px; color: #fff; font: 400 .98rem var(--font); min-width: 0; }
.adm-person__fields input:focus { outline: 0; border-color: var(--orange); }
.adm-person__tools { grid-column: 2; display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 760px) {
  .adm-person { grid-template-columns: 48px 1fr auto; }
  .adm-person__fields { grid-template-columns: 1.1fr 1fr 1fr; }
  .adm-person__tools { grid-column: auto; }
}

/* texts and prices */
.adm-prices, .adm-texts { display: grid; gap: 14px; padding: 18px; }
.adm-prices p, .adm-texts p { margin: 0; }
.adm-ptable { border-collapse: collapse; width: 100%; max-width: 620px; }
.adm-ptable th, .adm-ptable td { padding: 6px 8px; text-align: left; }
.adm-ptable tr:first-child th { color: var(--grey); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.adm-ptable tr[class] th { border-left: 4px solid var(--c); padding-left: 12px; font-weight: 600; white-space: nowrap; }
.adm-ptable input { width: 100%; min-width: 100px; min-height: 42px; padding: 0 12px; background: #000; border: 1px solid #333; border-radius: 8px; color: #fff; font: 400 1rem var(--font); font-variant-numeric: tabular-nums; }
.adm-ptable input:focus { outline: 0; border-color: var(--orange); }
.adm-prices > .adm-link { justify-self: start; }
.adm-text { position: relative; }
.adm-text.is-changed > span::after { content: " · changed"; color: var(--orange); }
.adm-text > .adm-link { justify-self: start; font-size: .82rem; }

/* status messages */
.adm-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  max-width: min(92vw, 560px);
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #2c5d46;
  border-radius: 10px;
  background: #07140e;
  color: #c9f1dd;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.adm-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.adm-toast.is-bad { border-color: #6b2b24; background: #1c0b08; color: #ffb3a8; }

@media (min-width: 900px) {
  .adm-mapgrid { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .adm-mapgrid .tmap { max-width: 720px; justify-self: center; width: 100%; }
  .adm-mapgrid .mapside { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
}
