/* أي عنصر عليه hidden يُخفى فعلاً مهما كان تنسيقه */
[hidden] {
  display: none !important;
}

:root {
  --ink: #2b1d1d;
  --red: #b3202a;
  --gold: #c9962e;
  --gold-d: #8f6a1a;
  --bg: #fff;
  --card: #fff;
  --line: #eadfc8;
  --mut: #6b5c5c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Cairo, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
header {
  background: linear-gradient(135deg, #b3202a, #8e1620);
  color: #fff;
  text-align: center;
  padding: 36px 16px;
  border-bottom: 5px solid var(--gold);
}
header img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}
header h1 {
  margin: 10px 0 4px;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
}
header p {
  margin: 0;
  color: #ffe3a3;
}
main {
  max-width: 820px;
  margin: -22px auto 40px;
  padding: 0 14px;
}
.card {
  box-shadow: 0 2px 0 var(--gold);
  background: var(--card);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  border-inline-start: 5px solid var(--red);
  padding-inline-start: 10px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.full {
  grid-column: 1/-1;
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
input.bad,
select.bad {
  border-color: var(--red);
}
.err {
  color: var(--red);
  font-size: 12px;
  min-height: 16px;
}
.ltr {
  direction: ltr;
  text-align: right;
}
.seg {
  display: flex;
  gap: 10px;
}
.seg label {
  flex: 1;
  margin: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  text-align: center;
  cursor: pointer;
}
.seg input {
  display: none;
}
.seg input:checked + span {
  color: #fff;
}
.seg label:has(input:checked) {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.cinfo {
  background: #fbf6ea;
  border: 1px solid #ecdcb4;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 14px;
}
.cinfo b {
  color: var(--red);
}
.btn {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn.alt {
  background: var(--gold-d);
}
.btn.gld {
  background: var(--gold);
  color: var(--ink);
}
.btn.sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.5;
}
.btn.full {
  width: 100%;
  font-size: 17px;
}
#loader {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.4s;
}
#loader.off {
  opacity: 0;
  pointer-events: none;
}
#loader img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  object-fit: contain;
  animation: pl 1.3s ease-in-out infinite;
}
#loader p {
  margin-top: 16px;
  color: #ffe3a3;
}
@keyframes pl {
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 18px #b8892b33;
  }
}
@media (prefers-reduced-motion: reduce) {
  #loader img {
    animation: none;
  }
}
.thanks {
  text-align: center;
  padding: 40px 10px;
}
.thanks .ok {
  font-size: 56px;
  color: var(--gold);
}
#admin {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  overflow: auto;
  display: none;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.bar select,
.bar input {
  width: auto;
  min-width: 140px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
th {
  background: var(--red);
  color: #fff;
  position: sticky;
  top: 0;
}
.tw {
  overflow: auto;
  max-height: 62vh;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.nm {
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
}
.tag {
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.t-p {
  background: #f7f0df;
}
.t-a {
  background: #fbecc4;
  color: #7a5a10;
}
.t-r {
  background: #fbe1e3;
  color: var(--red);
}
#modal {
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}
#modal .box {
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  padding: 22px;
}
.pf {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
}
.pf img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: #ddd;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  font-size: 14px;
}
.kv span {
  color: var(--mut);
}
@media (max-width: 640px) {
  .pf,
  .kv {
    grid-template-columns: 1fr;
  }
}
.crit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.crit select {
  width: 90px;
}
.dec {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.dec label {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  margin: 0;
}
.dec label:has(input:checked) {
  color: #fff;
}
.dec .a:has(input:checked) {
  background: var(--gold-d);
}
.dec .r:has(input:checked) {
  background: var(--red);
}
.dec input {
  display: none;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.tabs button {
  background: none;
  border: 0;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tabs button.on {
  color: var(--red);
  border-color: var(--red);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
}
.kpi:nth-child(even) {
  border-top-color: var(--red);
}
.kpi b {
  display: block;
  font-size: 26px;
  line-height: 1.3;
}
.kpi span {
  font-size: 13px;
  color: var(--mut);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 760px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 8px auto;
  display: grid;
  place-items: center;
}
.donut div {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.3;
}
.lg {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
}
.lg i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-inline-end: 5px;
}
.br {
  display: grid;
  grid-template-columns: 100px 1fr 34px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 7px 0;
}
.bt {
  background: #f7f0df;
  border-radius: 5px;
  height: 14px;
  overflow: hidden;
}
.bt .fl {
  height: 100%;
  background: var(--gold);
}
.rk {
  display: grid;
  grid-template-columns: 26px 104px 1fr 34px 48px 48px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.rk.h {
  color: var(--mut);
  font-weight: 600;
}
.sg {
  display: flex;
  height: 100%;
}
.sg i {
  height: 100%;
}
.sg .m {
  background: var(--gold);
}
.sg .f {
  background: var(--red);
}
.hl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.hl div {
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.hl .lo {
  border-inline-start-color: var(--red);
}
.hl b {
  font-size: 18px;
}

input[type="checkbox"] {
  width: auto;
}
.card-spaced {
  margin-top: 16px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--mut);
}
.muted-link {
  color: var(--mut);
  font-size: 13px;
}
.plain-title {
  border: 0;
  font-size: 24px;
}
.brand-note {
  color: var(--gold);
  font-weight: 800;
}
.admin-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
}
.login-card {
  max-width: 380px;
  margin: 60px auto;
}
.mt-8 {
  margin-top: 8px;
}
.grow-title {
  margin: 0;
  flex: 1;
}
.btn-file {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid #ffffff66;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-btn:hover {
  background: #ffffff26;
}
.nav-btn.active {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.nav-staff,
.nav-staff:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.nav-staff:hover {
  background: #dba83a;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--red);
  background: #fff;
  color: var(--red);
  border-radius: 8px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-ghost:hover {
  background: var(--red);
  color: #fff;
}
.btn-ghost.sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn-ghost.full {
  width: 100%;
  margin-top: 10px;
}
.text-link {
  color: var(--red);
  font-weight: 600;
}
.result-card {
  max-width: 560px;
  margin: 0 auto 16px;
}
.result-card .bar {
  margin-top: 12px;
}
.result-card .bar input {
  flex: 1;
  min-width: 200px;
}
.res {
  margin-top: 16px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--line);
  text-align: center;
}
.res h3 {
  margin: 10px 0 2px;
  font-size: 20px;
}
.res p {
  margin: 4px 0;
}
.res-t-a {
  border-top-color: var(--gold);
}
.res-t-r {
  border-top-color: var(--red);
}
.res .tag {
  font-size: 15px;
  padding: 4px 18px;
}

html {
  -webkit-text-size-adjust: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid #c9962e33;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f6a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat left 12px center/14px;
  padding-left: 36px;
}
input[type="date"] {
  min-height: 44px;
  text-align: right;
}
#f {
  counter-reset: step;
}
#f .card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
}
#f .card h2::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  flex: none;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px 28px;
  color: var(--mut);
  font-size: 13px;
}
.staff-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--mut);
  opacity: 0.35;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.staff-icon:hover,
.staff-icon:focus-visible {
  opacity: 1;
  background: #f7f0df;
}
input[type="file"] {
  padding: 6px 8px;
  background: #fff;
}
input[type="file"]::file-selector-button {
  margin-inline-end: 12px;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.donut-svg {
  width: 170px;
  height: 170px;
  display: block;
  margin: 8px auto;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 6px 16px 6px 10px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.switch .track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--red);
  transition: background 0.2s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start 0.2s;
}
.switch.on .track {
  background: var(--gold-d);
}
.switch.on .track::after {
  inset-inline-start: 21px;
}
.btn.btn-danger {
  background: #6d0d14;
}
.btn-ghost.btn-danger {
  border-color: #6d0d14;
  color: #6d0d14;
}
.btn-ghost.btn-danger:hover {
  background: #6d0d14;
  color: #fff;
}
.spin .ico {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(-360deg);
  }
}
.thanks .ok .ico {
  width: 56px;
  height: 56px;
}
.pdf-root {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1000px;
  padding: 24px;
  background: #fff;
  direction: rtl;
  font-family: Cairo, sans-serif;
  color: #2b1d1d;
}
.pdf-root > * {
  margin-bottom: 12px;
}
.pdf-head {
  background: linear-gradient(135deg, #b3202a, #8e1620);
  border-bottom: 6px solid #c9962e;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  color: #fff;
}
.pdf-head h1 {
  margin: 0;
  font-size: 28px;
}
.pdf-head p {
  margin: 6px 0 0;
  color: #ffe3a3;
}

.donut-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
.donut-svg {
  margin: 0;
}
.pdf-root .kpis {
  grid-template-columns: repeat(7, 1fr);
}

.btn,
.btn-ghost {
  white-space: nowrap;
}

.transfer {
  background: #fbf6ea;
  border: 1px solid #ecdcb4;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
.transfer .bar {
  margin: 6px 0 0;
}
.transfer .bar select {
  flex: 1;
}
.tnote {
  font-size: 13px;
  margin: 8px 0 0;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.filterbar #fq {
  flex: 1 1 260px;
  min-width: 0;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
}
.btn-ghost[aria-expanded="true"] {
  background: var(--red);
  color: #fff;
}
.btn-ghost[aria-expanded="true"] .badge {
  background: #fff;
  color: var(--red);
}
.fpanel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px 14px;
}
.ff label {
  font-size: 13px;
  color: var(--mut);
  margin-bottom: 3px;
}
.msel {
  position: relative;
}
.msel summary {
  list-style: none;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 36px 9px 12px;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
.msel summary::-webkit-details-marker {
  display: none;
}
.msel summary::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid var(--gold-d);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
}
.msel[open] summary {
  border-color: var(--gold);
}
.mlist {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px #0002;
  padding: 8px;
}
.mitems {
  max-height: 220px;
  overflow: auto;
}
.mi {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.mi:hover {
  background: #fbf6ea;
}
.msearch {
  margin-bottom: 6px;
}
.mfoot {
  padding-top: 4px;
  text-align: left;
}
.link {
  background: none;
  border: 0;
  color: var(--red);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.rng {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rng input {
  min-width: 0;
}
.rng span {
  color: var(--mut);
  font-size: 13px;
}
.fact {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.colgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2px 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 12px;
  border: 1px solid #ecdcb4;
  border-radius: 99px;
  background: #fbf0d4;
  color: #6b4e10;
  font-size: 13px;
  font-weight: 600;
}
.chip button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 761px) {
  .ff.wide {
    grid-column: span 2;
  }
}

.res-msg {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ecdcb4;
  background: #fbf6ea;
  animation: pop 0.45s ease-out;
}
.res-msg .ico {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}
.res-msg p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}
.res-t-a .res-msg {
  background: linear-gradient(135deg, #fbecc4, #fff8e6);
  border-color: var(--gold);
}
.res-t-a .res-msg .ico {
  color: var(--gold-d);
}
.res-t-r .res-msg .ico {
  color: var(--red);
}
.res .reason {
  margin-top: 12px;
  font-size: 14px;
  color: var(--mut);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .res-msg {
    animation: none;
  }
}

.trow + .trow {
  margin-top: 12px;
}

#toast {
  position: fixed;
  inset-inline: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: 420px;
  margin-inline: auto;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--gold-d);
  color: #fff;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px #0003;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#toast.show {
  opacity: 1;
  transform: none;
}
.trow select[data-ta] {
  max-width: 190px;
}

.mailbtn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--gold-d);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.mailbtn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.mailbtn.done {
  background: #fbf0d4;
  border-color: var(--gold);
}
#inviteModal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  background: #0009;
}
#inviteModal .box {
  width: 100%;
  max-width: 640px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
}
.mailpreview {
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #ecdcb4;
  border-radius: 10px;
  background: #fbf6ea;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.notice {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fbe1e3;
  color: var(--red);
}

#assignModal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  background: #0009;
}
#assignModal .box {
  width: 100%;
  max-width: 560px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
}
.modes {
  flex-wrap: wrap;
}
.modes label {
  flex: 1 1 40%;
}
.assignbox {
  margin: 14px 0;
}
.assignbox .chips {
  margin: 6px 0 10px;
}
.assignbox .bar {
  margin: 0;
}
.vbars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 150px;
  padding: 8px 0;
}
.vb {
  flex: 1;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
}
.vb.hi {
  background: var(--red);
}
.vlabels {
  display: flex;
  justify-content: space-between;
  color: var(--mut);
  font-size: 12px;
}
.note {
  margin: 10px 0 0;
  color: var(--mut);
  font-size: 13px;
}
.note b {
  color: var(--ink);
}
.br.wide {
  grid-template-columns: 170px 1fr 44px;
}
.sg .p {
  background: #d9d2c3;
}
.cm {
  display: grid;
  grid-template-columns: 150px 1fr 40px 80px;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  font-size: 13px;
}
.cm.h,
.hw.h {
  color: var(--mut);
  font-weight: 600;
}
.hw {
  display: grid;
  grid-template-columns: 110px 1fr 56px 50px 50px;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  font-size: 13px;
}
