.admin-wrap{
  max-width:1380px;
  width:min(100%, 1380px);
  min-height:calc(100vh - 30px);
  margin:0 auto;
  padding:8px 10px 10px;
  display:flex;
  flex-direction:column;
}

i,
em {
  font-style: normal;
}

body {
  min-height:100vh;
  background:#0d1715;
}

.brand-logo{ height:44px; width:auto; display:block; margin-bottom:22px; }

/* ---------- Login ---------- */
.login-card{
  max-width:400px;
  margin:80px auto;
  background:rgba(16, 22, 26, 0.9);
  border:1px solid rgba(82, 153, 39, 0.35);
  border-radius:22px;
  box-shadow:0 20px 50px rgba(0, 0, 0, 0.28);
  padding:36px 32px;
  text-align:center;
}
.login-card .brand-logo{ margin:0 auto 22px; }
.login-card h1{
  font-family:'Space Grotesk', sans-serif;
  font-size:22px;
  margin:0 0 8px;
}
.hint{ color:var(--ink-soft); font-size:13.5px; margin:0 0 22px; }
.login-card .field{ margin-bottom:16px; }
.login-card input{
  width:100%;
  font-family:'IBM Plex Mono', monospace;
  font-size:14.5px;
  padding:11px 12px;
  border:1px solid #33403E;
  background:#0D1315;
  color:var(--ink);
  border-radius:999px;
}
.login-card input:focus{ outline:2px solid var(--teal); outline-offset:1px; border-color:var(--teal); }
.error-msg{
  color:var(--danger);
  font-size:12.5px;
  margin-top:12px;
  min-height:16px;
}

button.primary, button.secondary, button.danger{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:14.5px;
  border:none;
  padding:11px 22px;
  cursor:pointer;
  border-radius:999px;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
}
button.primary{ 
  background:var(--color-primary-dark); 
  color:#fff; 
  width:100%;
  box-shadow:0 12px 24px rgba(23, 99, 38, 0.24);
}
button.primary:hover{ background:var(--color-primary); box-shadow:0 16px 28px rgba(23, 99, 38, 0.28); }
button.secondary{
  background:transparent;
  color:var(--teal);
  border:1px solid var(--teal-deep);
}
button.secondary:hover{ background:#0E1A18; }
button.danger{
  background:transparent;
  color:var(--danger);
  border:1px solid var(--danger);
}
button.danger:hover{ background:#2A1512; }
button:active{ transform:translateY(1px); }
button:disabled{ opacity:.5; cursor:default; }

/* ---------- Panel ---------- */
.admin-header{ 
  border-bottom:1px solid rgba(233,237,233,0.14); 
  padding-bottom:12px; 
  margin-bottom:10px; 
}
.admin-header h1{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:28px;
  margin:0 0 6px;
  letter-spacing:-.04em;
}

/* ---------- Tabs ---------- */
.tabs{
  display:flex;
  gap:8px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(233,237,233,0.14);
  flex-wrap:wrap;
}
.tab-btn{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:14px;
  background:transparent;
  border:none;
  color:rgba(233,237,233,0.75);
  padding:10px 14px;
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  border-radius:10px 10px 0 0;
  transition:all .2s ease;
}
.tab-btn.active{ color:#d9f7f0; border-bottom-color:var(--teal); background:rgba(76,194,166,0.08); box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); }
.tab-btn:hover{ color:var(--ink); background:rgba(255,255,255,0.025); }
.tab-panel{ display:none; }
.tab-panel.active{ display:flex; flex-direction:column; min-height:calc(100vh - 280px); }

.client-rodadas-list{ display:flex; flex-direction:column; gap:10px; margin:18px 0; max-height:280px; overflow:auto; }
.client-rodada-option{ display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--grid); cursor:pointer; }
.client-rodada-option input{ width:auto; flex:none; }
.client-rodada-option span{ display:flex; flex-direction:column; gap:2px; }
.client-rodada-option small{ color:var(--muted); font-size:12px; }
.rodada-item-row{ margin-bottom:14px; border:1px solid var(--grid); }
.rodada-item-tab{ width:100%; text-align:left; border:0; border-bottom:1px solid var(--grid); background:#162021; color:var(--ink); padding:14px 16px; font-family:'Space Grotesk',sans-serif; font-size:16px; cursor:pointer; }
.rodada-item-panel{ display:none; padding:16px; }
.rodada-item-row.active .rodada-item-panel{ display:block; }
.rodada-item-fields{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rodada-item-fields input,.rodada-opcao-row input,.rodada-ponto-head input,.rodada-opcao-row select{ min-width:0; padding:10px 12px; border:1px solid #33403E; background:#0D1315; color:var(--ink); border-radius:var(--radius); font-family:'IBM Plex Mono',monospace; }
.rodada-multi-label{ display:flex; align-items:center; gap:8px; margin:16px 0; color:var(--ink); }
.rodada-multi-label input{ width:auto; }
.rodada-options-title{ color:var(--teal); font-family:'IBM Plex Mono',monospace; font-size:12px; margin-bottom:8px; }
.rodada-opcoes-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.rodada-opcao-row{ display:grid; grid-template-columns:1fr 140px 110px 140px auto; gap:8px; align-items:center; }
.rodada-pontos-wrap[hidden],.rodada-item-opcoes-diretas[hidden]{ display:none; }
.rodada-ponto-panel{ border-top:1px solid var(--grid); padding:14px 0; }
.rodada-ponto-head{ display:flex; gap:8px; margin-bottom:10px; }
.rodada-ponto-head input{ flex:1; }
.rodada-item-opcoes-diretas + .rodada-pontos-wrap{ margin-top:8px; }
@media(max-width:700px){ .rodada-item-fields,.rodada-opcao-row{ grid-template-columns:1fr; } .rodada-ponto-head{ flex-wrap:wrap; } }

.toolbar{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.toolbar input{
  flex:1;
  min-width:180px;
  font-family:'IBM Plex Sans', sans-serif;
  font-size:13.5px;
  padding:10px 14px;
  border:1px solid rgba(233,237,233,0.1);
  background:rgba(13,19,21,0.9);
  color:var(--ink);
  border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}
.toolbar input:focus{ outline:2px solid rgba(76,194,166,0.7); outline-offset:1px; border-color:var(--teal); }
.toolbar .count{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--ink-soft);
  white-space:nowrap;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(233,237,233,0.08);
}

.table-wrap{
  border:1px solid rgba(233,237,233,0.08);
  background:#111819;
  overflow-x:auto;
  border-radius:16px;
  box-shadow:0 18px 36px rgba(0,0,0,0.12);
  flex:1 1 auto;
  min-height:380px;
}
table{ width:100%; border-collapse:separate; border-spacing:0; font-size:13.5px; }
thead th{
  text-align:left;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(233,237,233,0.72);
  padding:16px 18px;
  border-bottom:1px solid rgba(233,237,233,0.08);
  white-space:nowrap;
  background:rgba(255,255,255,0.02);
}
tbody td{
  padding:15px 18px;
  border-bottom:1px solid rgba(233,237,233,0.08);
  white-space:nowrap;
  color:rgba(233,237,233,0.95);
}
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:rgba(255,255,255,0.02); }
td.codigo{ font-family:'IBM Plex Mono', monospace; color:var(--teal); font-weight:700; }
td.muted{ color:var(--ink-soft); }
td.actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width:230px;
}
.rodada-pdf-cell{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  min-width:250px;
  white-space:normal;
}
.rodada-pdf-cell input[type=file]{
  max-width:240px;
  color:var(--ink-soft);
  font-size:11px;
}
.rodada-pdf-name{
  max-width:250px;
  overflow-wrap:anywhere;
  color:var(--ink);
}
.pdf-upload-table-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:250px;
  max-width:380px;
  white-space:normal;
}
.pdf-upload-table-actions .pdf-upload-current-name{
  flex-basis:100%;
}
.pdf-upload-table-actions .pdf-upload-status{
  flex-basis:100%;
}
.rodada-pdf-status{
  color:var(--danger);
  font-size:12px;
  white-space:normal;
}
.pdf-upload{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:min(100%, 360px);
  white-space:normal;
}
.pdf-upload-optional{
  margin:0;
  color:var(--ink-soft);
  font-size:12px;
  line-height:1.5;
}
.confirm-modal-extra{
  width:100%;
  margin:2px 0 16px;
}
.confirm-modal-extra[hidden]{ display:none; }
.pdf-upload-current-name{
  overflow:hidden;
  max-width:100%;
  color:var(--ink);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pdf-upload-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}
.pdf-upload-dropzone{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:160px;
  padding:24px 18px;
  border:1.5px dashed rgba(76,194,166,.36);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:var(--ink);
  text-align:center;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}
.pdf-upload-dropzone:hover,
.pdf-upload-dropzone:focus-visible{
  border-color:var(--teal);
  background:rgba(76,194,166,.06);
  outline:none;
}
.pdf-upload-dropzone:focus-visible{
  box-shadow:0 0 0 3px rgba(76,194,166,.16);
}
.pdf-upload-dropzone.is-dragging{
  border:1.5px solid var(--teal);
  background:rgba(76,194,166,.08);
  transform:scale(1.01);
}
.pdf-upload-dropzone.is-dragging strong{
  font-size:0;
}
.pdf-upload-dropzone.is-dragging strong::after{
  content:"Solte para selecionar";
  font-size:14px;
}
.pdf-upload-dropzone.has-error{
  border-color:var(--danger);
  background:rgba(240,121,108,.06);
}
.pdf-upload-icon{
  width:32px;
  height:32px;
  color:var(--teal);
  transition:color .2s ease;
}
.pdf-upload-dropzone strong{
  font-family:'Space Grotesk',sans-serif;
  font-size:13px;
  font-weight:600;
}
.pdf-upload-dropzone strong span{ color:var(--teal); }
.pdf-upload-dropzone small{
  color:var(--ink-soft);
  font-size:11px;
}
.pdf-upload-selected{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:14px;
  border:1px solid rgba(76,194,166,.25);
  border-radius:12px;
  background:rgba(76,194,166,.045);
}
.pdf-upload [hidden]{ display:none; }
.pdf-upload-file-icon{
  display:grid;
  flex:none;
  place-items:center;
  width:42px;
  height:48px;
  border:1px solid rgba(76,194,166,.35);
  border-radius:8px;
  background:rgba(76,194,166,.1);
  color:var(--teal);
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  font-weight:700;
}
.pdf-upload-file-info{
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  gap:4px;
  color:var(--ink-soft);
  font-size:11px;
}
.pdf-upload-file-info strong{
  overflow:hidden;
  color:var(--ink);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pdf-upload-remove-selection{
  flex:none;
  width:36px;
  height:36px;
  border:1px solid rgba(240,121,108,.45);
  border-radius:50%;
  background:transparent;
  color:var(--danger);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.pdf-upload-status{
  min-height:0;
  color:var(--ink-soft);
  font-size:12px;
  white-space:normal;
}
.pdf-upload-status:empty{ display:none; }
.pdf-upload-status[data-state="success"]{ color:#b5f7dc; }
.pdf-upload-status[data-state="error"]{ color:var(--danger); }
.pdf-upload-status[data-state="loading"]{ color:var(--teal); }
table{ min-width:900px; }
.table-wrap{ padding-right:1px; }

.pdf-btn, .xlsx-btn, .view-btn{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:#fff;
  background:#2d8d7f;
  border:none;
  padding:8px 14px;
  cursor:pointer;
  border-radius:999px;
  white-space:nowrap;
  box-shadow:0 10px 18px rgba(45,141,127,0.18);
}
.pdf-btn:hover, .xlsx-btn:hover, .view-btn:hover{ filter:brightness(1.08); }
.xlsx-btn{ background:#4f89c9; box-shadow:0 10px 18px rgba(79,137,201,0.18); }
.view-btn{ background:transparent; color:var(--teal); border:1px solid rgba(76,194,166,0.5); box-shadow:none; }
.view-btn:hover{ background:rgba(76,194,166,0.07); }
.del-btn{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--danger);
  background:transparent;
  border:1px solid rgba(240,121,108,0.7);
  padding:8px 14px;
  cursor:pointer;
  border-radius:999px;
  white-space:nowrap;
}
.del-btn:hover{ background:rgba(240,121,108,0.08); }
button:disabled{ opacity:.5; cursor:default; }

.badge{
  display:inline-block;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid currentColor;
  font-weight:700;
}
.badge.ok{ color:#b5f7dc; background:rgba(76,194,166,0.14); border-color:rgba(76,194,166,0.5); }
.badge.warn{ color:#ffd98a; background:rgba(197,136,22,0.14); border-color:rgba(197,136,22,0.5); }
.badge.off{ color:rgba(233,237,233,0.7); background:rgba(233,237,233,0.04); border-color:rgba(233,237,233,0.14); }

.empty-state{
  padding:60px 20px;
  text-align:center;
  color:var(--ink-soft);
  font-size:14px;
}

/* ---------- New client form ---------- */
.new-client-card{
  border:1px solid rgba(233,237,233,0.14);
  background:#111719;
  padding:22px 24px;
  margin-bottom:22px;
  border-radius:18px;
  box-shadow:0 16px 36px rgba(0,0,0,0.08);
}
.new-client-card h3{
  font-family:'Space Grotesk', sans-serif;
  font-size:16px;
  margin:0 0 14px;
}
.new-client-form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.new-client-form .field{ display:flex; flex-direction:column; gap:6px; flex:1; min-width:180px; }
.new-client-form label{ font-size:12px; color:var(--ink-soft); }
.new-client-form input{
  font-family:'IBM Plex Mono', monospace;
  font-size:14px;
  padding:10px 14px;
  border:1px solid #33403E;
  background:#0D1315;
  color:var(--ink);
  border-radius:999px;
}
.new-client-form input:focus{ outline:2px solid var(--teal); outline-offset:1px; border-color:var(--teal); }
.new-client-form button{ flex:none; }

/* ---------- Modal ---------- */
.modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(6,10,11,0.72);
  z-index:50;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal-backdrop.show{ display:flex; }
.confirm-modal-backdrop{ z-index:80; }
.confirm-modal-backdrop.show .confirm-modal{
  animation:confirmModalIn .2s ease-out both;
}
.modal-box{
  background:#111819;
  border:1px solid rgba(233,237,233,0.14);
  max-width:640px;
  width:100%;
  max-height:85vh;
  overflow-y:auto;
  padding:28px 26px;
  border-radius:20px;
  box-shadow:0 24px 50px rgba(0,0,0,0.25);
}
.confirm-modal{
  position:relative;
  max-width:460px;
  border-color:rgba(240,121,108,0.34);
}
.confirm-modal .modal-close{ position:absolute; top:18px; right:18px; float:none; }
.confirm-modal-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:18px;
  border:1px solid rgba(240,121,108,0.55);
  border-radius:50%;
  background:rgba(240,121,108,0.12);
  color:var(--danger);
  font-family:'Space Grotesk',sans-serif;
  font-size:24px;
  font-weight:700;
}
.confirm-modal h2{ padding-right:28px; }
.confirm-modal .modal-sub{ line-height:1.6; }
.confirm-modal-text-wrap{ margin:20px 0 14px; }
.confirm-modal-text-wrap[hidden]{ display:none; }
.confirm-modal-text-wrap label{
  display:block;
  margin-bottom:8px;
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.6;
}
.confirm-modal-text-wrap label strong{ color:var(--danger); font-weight:700; }
.confirm-modal-text-wrap input{
  width:100%;
  padding:12px 14px;
  border:1px solid #40514e;
  border-radius:10px;
  outline:none;
  background:#0b1112;
  color:var(--ink);
  font:14px 'IBM Plex Mono',monospace;
}
.confirm-modal-text-wrap input:focus{
  border-color:var(--danger);
  box-shadow:0 0 0 3px rgba(240,121,108,.14);
}
.confirm-modal-error{
  margin:10px 0;
  color:#ffb2a8;
  font-size:13px;
}
.confirm-modal-error[hidden]{ display:none; }
.confirm-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:24px;
}
.confirm-modal-actions button{ width:auto; min-width:120px; }
.confirm-modal-actions .danger{
  background:var(--danger);
  color:#160b0a;
  border:1px solid var(--danger);
  box-shadow:0 10px 20px rgba(240,121,108,.16);
}
.confirm-modal-actions .danger:hover{ filter:brightness(1.08); }
.confirm-modal-actions .secondary{ width:auto; }
@keyframes confirmModalIn{
  from{ opacity:0; transform:scale(.96); }
  to{ opacity:1; transform:scale(1); }
}
.modal-box h2{
  font-family:'Space Grotesk', sans-serif;
  font-size:20px;
  margin:0 0 6px;
}
.modal-box .modal-sub{ color:var(--ink-soft); font-size:13px; margin:0 0 18px; }
.modal-close{
  float:right;
  background:transparent;
  border:none;
  color:var(--ink-soft);
  font-size:20px;
  cursor:pointer;
  line-height:1;
}
.modal-close:hover{ color:var(--ink); }

.temp-pw-box{
  font-family:'IBM Plex Mono', monospace;
  font-size:20px;
  letter-spacing:.06em;
  text-align:center;
  background:#0D1315;
  border:1px dashed var(--teal);
  color:var(--teal);
  padding:16px;
  margin:16px 0;
  border-radius:var(--radius);
}

.detail-section{ margin-bottom:18px; }
.detail-section h4{
  font-family:'Space Grotesk', sans-serif;
  font-size:14px;
  color:var(--teal);
  margin:0 0 8px;
}
.detail-table{ width:100%; border-collapse:collapse; font-size:13px; }
.detail-table td{ padding:6px 8px; border-bottom:1px solid var(--grid); }
.detail-table td:first-child{ color:var(--ink-soft); width:55%; }

@media (min-width:1200px){
  .admin-wrap{ padding-top:18px; }
  .table-wrap{ min-height:460px; }
}

@media (min-width:1600px){
  .admin-wrap{
    max-width:1600px;
    padding:18px 18px 14px;
  }

  .admin-header h1{
    font-size:34px;
  }

  .tab-btn{
    font-size:15px;
    padding:12px 18px;
  }

  .toolbar input{
    font-size:14px;
    padding:12px 18px;
  }

  thead th{
    font-size:12px;
    padding:18px 22px;
  }

  tbody td{
    font-size:14px;
    padding:17px 22px;
  }

  .pdf-btn, .xlsx-btn, .view-btn, .del-btn{
    font-size:13px;
    padding:9px 16px;
  }

  .table-wrap{
    min-height:560px;
  }
}

@media (max-width:640px){
  .admin-wrap{ padding:32px 16px 60px; min-height:auto; }
  .admin-header h1{ font-size:24px; }
  .tab-panel.active{ min-height:auto; }
  .toolbar{ align-items:stretch; }
  .toolbar input{ width:100%; min-width:0; }
  .tab-btn{ flex:1 1 calc(50% - 8px); text-align:center; }
  td.actions{ flex-direction:column; }
  .new-client-form{ flex-direction:column; }
  .new-client-form button{ width:100%; }
  .confirm-modal-backdrop{ padding:12px; }
  .confirm-modal{ width:100%; max-width:none; padding:24px 20px; }
  .confirm-modal-actions{ flex-direction:column-reverse; }
  .confirm-modal-actions button{ width:100%; }
  .pdf-upload{ width:100%; }
}

@media (prefers-reduced-motion:reduce){
  .confirm-modal-backdrop.show .confirm-modal{ animation:none; }
  .pdf-upload-dropzone,
  .pdf-upload-icon{ transition:none; }
}

#roundSelectionView[hidden],
#submissionsView[hidden]{
  display:none;
}

.admin-rounds-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:16px;
  margin:8px 0 20px;
}
.admin-round-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  padding:22px;
  border:1px solid #50605d;
  background:#121a1b;
  box-shadow:0 16px 32px rgba(0,0,0,.16);
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
.admin-round-card:hover{
  transform:translateY(-3px);
  border-color:var(--teal);
  box-shadow:0 20px 38px rgba(0,0,0,.24);
}
.admin-round-badges{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.admin-round-badges .badge{
  font-size:10px;
}
.admin-round-card h2{
  margin:14px 0 0;
  font:600 19px 'Space Grotesk',sans-serif;
  overflow-wrap:anywhere;
}
.admin-round-items-title{
  display:block;
  margin-top:20px;
  color:#b8c8c3;
  font:11px 'IBM Plex Mono',monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.admin-round-items{
  display:grid;
  gap:7px;
  width:100%;
  margin:8px 0 18px;
  padding:0;
  list-style:none;
}
.admin-round-items li{
  padding-bottom:7px;
  border-bottom:1px solid #30403d;
  color:var(--ink-soft);
  overflow-wrap:anywhere;
}
.admin-round-items li::before{
  content:'+';
  margin-right:8px;
  color:var(--teal);
}
.admin-round-no-items{
  margin:8px 0 18px;
  color:var(--ink-soft);
  font-size:13px;
}
.admin-round-open{
  margin-top:auto;
  padding:8px 0 0;
  border:0;
  background:transparent;
  color:var(--teal);
  font:600 12px 'IBM Plex Mono',monospace;
  cursor:pointer;
}
.admin-round-open:hover{ text-decoration:underline; }
.round-submissions-header{
  display:flex;
  align-items:center;
  gap:18px;
  margin:4px 0 16px;
}
.round-submissions-header > div{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex-wrap:wrap;
}
.round-submissions-header h2{
  margin:0;
  font:600 22px 'Space Grotesk',sans-serif;
  overflow-wrap:anywhere;
}
.round-submissions-header .secondary{
  flex:none;
  padding:9px 14px;
}
#submissionsTable{
  min-width:0;
  table-layout:fixed;
}
#submissionsTable th:nth-child(1){ width:16%; }
#submissionsTable th:nth-child(2){ width:29%; }
#submissionsTable th:nth-child(3){ width:21%; }
#submissionsTable th:nth-child(4){ width:24%; }
#submissionsTable th:nth-child(5){ width:10%; }
#submissionsTable th,
#submissionsTable td{
  padding:13px 10px;
}
#submissionsTable td{
  white-space:normal;
  overflow-wrap:anywhere;
}
#submissionsTable td.actions{
  display:table-cell;
  min-width:0;
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
}
.submission-menu-trigger{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0 0 5px;
  border:1px solid rgba(76,194,166,.48);
  border-radius:50%;
  background:rgba(76,194,166,.08);
  color:var(--teal);
  font:700 23px/1 'IBM Plex Sans',sans-serif;
  cursor:pointer;
}
.submission-menu-trigger:hover,
.submission-menu-trigger[aria-expanded="true"]{
  background:rgba(76,194,166,.18);
}
.submission-action-menu{
  position:fixed;
  z-index:120;
  display:flex;
  flex-direction:column;
  width:210px;
  padding:6px;
  border:1px solid rgba(76,194,166,.32);
  border-radius:12px;
  background:#111819;
  box-shadow:0 18px 38px rgba(0,0,0,.45);
}
.submission-action-menu[hidden]{ display:none; }
.submission-action-menu button{
  width:100%;
  padding:10px 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  text-align:left;
  font:500 13px 'IBM Plex Sans',sans-serif;
  cursor:pointer;
}
.submission-action-menu button:hover{ background:rgba(76,194,166,.1); }
.submission-action-menu button.danger-action{ color:var(--danger); }
.submission-action-menu button.danger-action:hover{ background:rgba(240,121,108,.1); }
.submission-menu-separator{
  height:1px;
  margin:5px 4px;
  background:rgba(233,237,233,.12);
}
.move-submission-modal{ max-width:480px; }
.move-submission-label{
  display:block;
  margin:18px 0 8px;
  color:var(--ink-soft);
  font-size:13px;
}
#moveSubmissionRound{
  width:100%;
  padding:12px 14px;
  border:1px solid #40514e;
  border-radius:10px;
  background:#0b1112;
  color:var(--ink);
  font:14px 'IBM Plex Sans',sans-serif;
}
#moveSubmissionRound:focus{
  outline:2px solid rgba(76,194,166,.55);
  outline-offset:1px;
}
.admin-toast{
  position:fixed;
  z-index:130;
  right:22px;
  bottom:22px;
  max-width:min(420px,calc(100vw - 32px));
  padding:13px 18px;
  border:1px solid rgba(76,194,166,.48);
  border-radius:12px;
  background:#14211e;
  color:#b5f7dc;
  box-shadow:0 16px 36px rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .2s,transform .2s;
}
.admin-toast.show{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:640px){
  .admin-rounds-grid{ grid-template-columns:1fr; }
  .round-submissions-header{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .round-submissions-header h2{ font-size:19px; }
  #submissionsTable th,
  #submissionsTable td{
    padding:11px 6px;
    font-size:11.5px;
  }
  #submissionsTable th{ font-size:9px; letter-spacing:.04em; }
  #submissionsTable th:nth-child(1){ width:17%; }
  #submissionsTable th:nth-child(2){ width:26%; }
  #submissionsTable th:nth-child(3){ width:20%; }
  #submissionsTable th:nth-child(4){ width:25%; }
  #submissionsTable th:nth-child(5){ width:12%; }
  .submission-menu-trigger{ width:32px; height:32px; }
  .move-submission-modal .confirm-modal-actions{ flex-direction:column-reverse; }
  .move-submission-modal .confirm-modal-actions button{ width:100%; }
  .admin-toast{ right:16px; bottom:16px; }
}
