/* Competition v1.31 – separate from regular archery scores. */
.competition-shell{width:100%;min-width:0}.competition-loading{padding:60px 20px;text-align:center;color:#627b66}
.competition-heading{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:18px;margin:0 0 24px}
.competition-heading h1{font-size:clamp(24px,4vw,34px);margin:0 0 6px;color:#133c2b;letter-spacing:-.7px;overflow-wrap:anywhere}
.competition-heading p{font-size:13px;margin:6px 0 0}.competition-back{border:0;background:none;color:#29694b;font-size:12px;font-weight:700;margin:0 0 15px;padding:0;min-height:34px}
.competition-heading .eyebrow{color:#ad842f!important;letter-spacing:1.5px;font-size:10px!important}
.competition-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,315px),1fr));gap:18px}
.competition-card{background:#fff;border:1px solid #dfe8de;border-top:3px solid #d5b45b;box-shadow:0 8px 25px rgba(11,46,30,.035);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:16px;min-height:260px}
.competition-card-symbol{width:52px;height:52px;border:1px solid #d6e8cf;border-radius:13px;background:#f0f7eb;display:grid;place-items:center;font-size:26px}
.competition-card h2{font-size:20px;line-height:1.3;margin:7px 0 5px;color:#143c27;overflow-wrap:anywhere}
.competition-card p{font-size:12px;color:#6c786e;margin:0}.competition-category-count{font-size:10px;font-weight:700;color:#98732a;letter-spacing:.8px;text-transform:uppercase}
.competition-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.competition-card-actions .btn.primary{flex:1}
.competition-empty{padding:52px 24px;text-align:center;border:1px dashed #d8e2d0;border-radius:15px;background:#fbfcf8;color:#607460}
.competition-empty h1,.competition-empty h2{color:#214a32}.competition-empty p{max-width:460px;margin:8px auto 18px}.competition-empty-icon{font-size:36px}
.competition-board{background:#fff;border:1px solid #dfe4d8;border-radius:15px;overflow:hidden;box-shadow:0 10px 24px #154f1b0b}
.competition-board-head{background:#e9f3f8;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #d3e8ef}
.competition-board-head h2{font-size:20px;color:#0b5e83;margin:0 0 5px}.competition-board-head p{margin:0;font-size:12px;color:#566f77}
.competition-category-picker{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:18px 22px;background:#fbfdfd;border-bottom:1px solid #ecf0ed}
.competition-category-picker label{margin:0;color:#355b4a;font-weight:700}.competition-category-picker select{margin:0;width:min(100%,320px);min-height:43px;font-size:14px}
.competition-table-head{display:grid;grid-template-columns:minmax(175px,1fr) repeat(3,75px) 90px 95px;gap:10px;padding:12px 22px;background:#087dad;color:white;font-size:11px;font-weight:750;text-align:center;align-items:center}
.competition-table-head span:first-child{text-align:left}
.competition-ranking-list{overflow:hidden}
.competition-rank-row{display:grid;grid-template-columns:minmax(175px,1fr) repeat(3,75px) 90px 95px;gap:10px;align-items:center;padding:15px 22px;background:white;border-bottom:1px solid #dfe5e7}
.competition-rank-row:nth-child(odd){background:#f2f5f6}.competition-rank-row.competition-podium{box-shadow:inset 3px 0 0 #cfae52}
.competition-rank-row:last-child{border-bottom:0}.competition-identity{display:flex;align-items:center;gap:13px;min-width:0}
.competition-position{height:38px;min-width:38px;display:grid;place-items:center;background:#dceef4;border:1px solid #bad9e5;border-radius:10px;font-size:19px;font-weight:800;color:#075979}
.competition-rank-row.competition-podium .competition-position{background:#faedc6;border-color:#e5d28d;color:#876309}
.competition-person{min-width:0;display:flex;flex-direction:column}.competition-person strong{font-size:14px;line-height:1.4;color:#163d35;overflow-wrap:anywhere}.competition-person small{color:#65767a;font-size:11px;line-height:1.4}.competition-person em{font-size:9px;color:#27854b;font-style:normal;font-weight:750}
.competition-round{text-align:center;font-size:14px;color:#394953;font-variant-numeric:tabular-nums}.competition-total{text-align:center;color:#0e5946;font-weight:800;font-size:24px;font-variant-numeric:tabular-nums}
.competition-entry-actions{grid-column:1/-1;display:flex;gap:15px;justify-content:flex-end}.competition-action-link{border:0;background:none;color:#17683a;font-size:12px;font-weight:700;padding:4px;min-height:30px}.competition-action-link.danger{color:#b6434c}
.competition-ranking-note{margin:15px 2px;color:#6f7e70;font-size:11px}
.competition-history-list{display:flex;flex-direction:column}.competition-history-link{display:flex;align-items:center;justify-content:space-between;padding:15px 21px;gap:10px;border-bottom:1px solid #edf0e9;text-decoration:none}.competition-history-link:last-child{border-bottom:0}
.competition-history-link strong{color:#175e39;display:block;font-size:13px}.competition-history-link small{display:block;color:#768374;font-size:10px;margin-top:2px}.competition-history-total{font-size:11px;font-weight:700;color:#b17a24;white-space:nowrap}
.competition-student-field{position:relative;margin-bottom:16px}.competition-student-field label{margin-bottom:6px}.competition-student-field>small{font-size:11px;color:#6b7a70}
.competition-student-suggestions{position:absolute;z-index:5;top:75px;left:0;right:0;max-height:220px;overflow:auto;border:1px solid #bcdac8;border-radius:10px;background:#fff;box-shadow:0 12px 28px #0002}
.competition-student-suggestions button{width:100%;border:0;border-bottom:1px solid #e7eee5;background:white;text-align:left;padding:11px 13px;display:flex;flex-direction:column;gap:2px}.competition-student-suggestions button:hover,.competition-student-suggestions button:focus{background:#e8f4e8}
.competition-student-suggestions strong{font-size:13px}.competition-student-suggestions small{font-size:10px;color:#728171}
.competition-round-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.competition-round-form label{min-width:0}.competition-round-form label span{font-size:10px;color:#7f8a80}
.competition-total-preview{background:#e9f3e7;color:#1b5434;border:1px solid #c5dfc4;padding:13px;border-radius:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-weight:650}.competition-total-preview strong{font-size:25px}.competition-total-preview small{width:100%;font-size:10px}
.competition-public-shortcut{margin-top:10px}.competition-public-shortcut .btn{width:100%;max-width:260px}
@media(max-width:720px){
 .competition-heading{align-items:stretch}.competition-heading>.btn{width:100%}.competition-board-head{padding:15px 13px}.competition-board-head h2{font-size:16px}
 .competition-category-picker{padding:13px;gap:8px}.competition-category-picker select{width:100%}
 .competition-table-head,.competition-rank-row{grid-template-columns:minmax(110px,1fr) repeat(3,32px) 47px;gap:5px;padding-left:9px;padding-right:9px}
 .competition-table-head{font-size:9px;min-height:52px;padding-top:8px;padding-bottom:8px}.competition-table-head span:not(:first-child){font-size:0}
 .competition-table-head span:nth-child(2):after{content:'R1';font-size:10px}.competition-table-head span:nth-child(3):after{content:'R2';font-size:10px}.competition-table-head span:nth-child(4):after{content:'R3';font-size:10px}.competition-table-head span:nth-child(5):after{content:'Total';font-size:10px}
 .competition-rank-row{padding-top:15px;padding-bottom:15px;min-height:84px}.competition-identity{gap:5px}.competition-position{min-width:27px;width:27px;height:30px;border-radius:7px;font-size:14px}.competition-person strong{font-size:12px}.competition-person small{font-size:9px}.competition-person em{font-size:8px}
 .competition-round{font-size:12px}.competition-total{font-size:17px}.competition-entry-actions{justify-content:flex-end}.competition-entry-actions button{font-size:10px}
 .competition-round-form{gap:7px}.competition-round-form input{padding:8px 6px}
}
@media(max-width:370px){.competition-table-head,.competition-rank-row{grid-template-columns:minmax(90px,1fr) repeat(3,26px) 40px;gap:3px;padding-left:6px;padding-right:6px}.competition-position{min-width:24px;width:24px;font-size:12px}.competition-person strong{font-size:11px}.competition-round{font-size:11px}.competition-total{font-size:16px}}
@media print{.competition-entry-actions,.competition-back,.competition-heading>.btn,.competition-category-picker{display:none!important}.competition-board{border:0;box-shadow:none}.competition-rank-row{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.competition-official{text-align:center;font-weight:750;color:#4e6270;font-size:15px;font-variant-numeric:tabular-nums}


/* v1.31.2 — Compact, tappable category grid. Only the selected table is visible. */
.competition-category-overview{padding:15px 18px 17px;background:#fcfdfb;border-bottom:1px solid #e3eadd}
.competition-board-head>.tag{white-space:nowrap;flex-shrink:0}
.competition-category-intro{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:11px}
.competition-category-intro h3{margin:0 0 2px;font-size:14px;color:#173f2d}
.competition-category-intro p{font-size:11px;margin:0;color:#6e7c70}
.competition-active-summary{font-size:10px;font-weight:750;color:#19633d;background:#e8f4e8;padding:5px 10px;border-radius:999px;white-space:nowrap}
.competition-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.competition-category-tile{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;min-width:0;min-height:56px;padding:9px 11px;border-radius:10px;border:1px solid #e1e7dc;background:#fff;color:#1c4134;cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.competition-category-tile.has-results{background:#f5fbf4;border-color:#badbc2}
.competition-category-tile.is-active{background:#e7f5e9;border-color:#218451;box-shadow:inset 3px 0 0 #218451}
.competition-category-tile:hover{border-color:#418958;background:#eef6ef}
.competition-category-tile:focus-visible{outline:3px solid #d4ae53;outline-offset:2px}
.competition-category-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.competition-category-name{font-size:12px;font-weight:750;line-height:1.3;color:#1c4134;overflow-wrap:break-word}
.competition-category-tile.no-results .competition-category-name{color:#617369}
.competition-category-status{font-size:10px;font-weight:650;line-height:1.3;color:#788278}
.competition-category-status.filled{color:#1b7449}
.competition-category-chevron{font-size:20px;line-height:1;font-weight:500;color:#54816a;flex-shrink:0}
.competition-category-sections{padding:15px 18px;min-width:0}
.competition-category-placeholder{text-align:center;padding:16px 12px;color:#78867a;font-size:12px;background:#fafbf8;border:1px dashed #dfe9dd;border-radius:10px}
.competition-category-section{scroll-margin-top:20px;background:white;border:1px solid #dfe8df;border-top:3px solid #218451;border-radius:11px;overflow:hidden}
.competition-category-section.is-empty{background:#f9faf7;border-color:#e4e8e0;border-top-color:#ddd}
.competition-category-section-head{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 14px;background:#f6f9f5;border-bottom:1px solid #e4ece3}
.competition-category-section.is-empty .competition-category-section-head{border-bottom:0}
.competition-category-section-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.competition-category-section-label h3{margin:0;font-size:15px;line-height:1.3;color:#164532}
.competition-category-count-label{background:#e4efe4;color:#1b6340;border-radius:99px;padding:3px 8px;font-size:10px;font-weight:750;white-space:nowrap}
.competition-category-add{white-space:nowrap;min-height:34px!important}
.competition-category-empty-note{font-size:12px;color:#768476;margin:0;padding:0 14px 12px}
.competition-category-section .competition-table-head,.competition-category-section .competition-rank-row{padding-left:12px;padding-right:12px}
@media(max-width:960px){.competition-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.competition-category-overview{padding:12px 10px}.competition-category-intro{align-items:flex-start}.competition-category-intro h3{font-size:13px}.competition-category-intro p{font-size:10px}.competition-active-summary{font-size:9px}.competition-category-grid{gap:6px}.competition-category-tile{min-height:52px;padding:7px 9px;gap:5px}.competition-category-name{font-size:11px}.competition-category-status{font-size:9px}.competition-category-chevron{font-size:17px}.competition-category-sections{padding:10px}.competition-category-section-head{padding:10px}.competition-category-section-label{gap:6px}.competition-category-section-label h3{font-size:13px}.competition-category-section .competition-table-head,.competition-category-section .competition-rank-row{padding-left:7px;padding-right:7px}.competition-category-add{font-size:10px;padding:7px 9px}}
@media(max-width:360px){.competition-category-tile{min-height:55px;padding:6px}.competition-category-name{font-size:10px}.competition-category-status{font-size:9px}}
@media print{.competition-category-overview,.competition-category-placeholder,.competition-category-add{display:none!important}.competition-category-sections{padding:0}.competition-category-section{break-inside:avoid}}

/* v1.31.4: compact phone score grid; official position stays next to total. */
.competition-round,.competition-total,.competition-official{display:grid;place-items:center;min-width:0;text-align:center}
@media(max-width:720px){
 .competition-category-section .competition-table-head,
 .competition-category-section .competition-rank-row{
   grid-template-columns:minmax(95px,1fr) repeat(3,minmax(25px,31px)) minmax(40px,49px) minmax(42px,51px);
   gap:4px;padding-left:7px;padding-right:7px;
 }
 .competition-table-head span:last-child{display:block!important;font-size:0;line-height:1.15}
 .competition-table-head span:last-child:after{content:'Comp. Rank';font-size:10px}
 .competition-table-head span:nth-child(5):after{content:'Jumlah'}
 .competition-round{font-size:12px;justify-self:center;width:100%}
 .competition-total{font-size:19px;justify-self:center;width:100%}
 .competition-official{display:grid!important;font-size:19px;font-weight:850;color:#384b5b;justify-self:center;width:100%;line-height:1.1}
}
@media(max-width:370px){
 .competition-category-section .competition-table-head,
 .competition-category-section .competition-rank-row{
   grid-template-columns:minmax(83px,1fr) repeat(3,minmax(20px,25px)) minmax(35px,42px) minmax(36px,44px);
   gap:3px;padding-left:5px;padding-right:5px;
 }
 .competition-round{font-size:11px}
 .competition-total,.competition-official{font-size:17px}
 .competition-table-head span:last-child:after{font-size:9px}
}


/* v1.31.6: same width and height for both homepage shortcuts on all devices. */
.portal-simple .portal-search-form .portal-search-shortcuts,
.portal-simple .portal-search-form .competition-public-shortcut{
  display:flex;
  width:100%;
  min-width:0;
}
.portal-simple .portal-search-form .portal-search-shortcuts > .portal-ranking-shortcut,
.portal-simple .portal-search-form .competition-public-shortcut > .btn{
  box-sizing:border-box;
  display:inline-flex;
  flex:1 1 auto;
  width:100%;
  max-width:none;
  min-width:0;
  min-height:46px;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 15px;
}

/* v1.32.3 — one active editor; horizontal draft picker on phones, sidebar on PC. */
.competition-workspace,.competition-workspace-closed{margin:0 0 18px;border:1px solid #d7e7da;background:#f7faf5;border-radius:14px;padding:18px;scroll-margin-top:12px;min-width:0}
.competition-workspace-closed{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.competition-workspace-closed span{font-size:12px;color:#607b68}
.competition-workspace-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.competition-workspace-head h2{margin:0 0 3px;font-size:18px;color:#16432e}
.competition-workspace-head p{font-size:12px;margin:0;color:#718172}
.competition-editor-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;align-items:start}
.competition-draft-sidebar,.competition-drafts{min-width:0}
.competition-workspace-tools{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.competition-workspace-tools .btn{width:100%;min-height:40px;font-size:12px;padding:8px 12px}
.competition-workspace-tools .btn.small{min-height:32px;background:transparent;border-color:transparent;font-size:11px}
.competition-draft-filters{display:flex;gap:4px;border-bottom:1px solid #dce6d8;padding-bottom:8px;margin-bottom:8px}
.competition-draft-filters button{flex:1;min-height:36px;border:0;background:transparent;color:#68786c;border-radius:7px;padding:6px;font-size:11px;font-weight:700;cursor:pointer}
.competition-draft-filters button[aria-pressed=true]{color:#175735;background:#e4efdf}
.competition-draft-nav{display:flex;flex-direction:column;gap:6px;max-height:370px;overflow:auto;overscroll-behavior:contain;padding:2px;position:relative}
.competition-draft-tab{display:flex;align-items:center;gap:9px;flex-shrink:0;min-height:54px;width:100%;border:1px solid transparent;background:transparent;border-radius:9px;padding:9px;text-align:left;color:#284b34;cursor:pointer;min-width:0}
.competition-draft-tab:hover{background:#edf4e9}
.competition-draft-tab.is-active{background:#fff;border-color:#9fbea3;box-shadow:0 2px 6px #18452009}
.competition-tab-number{display:grid;place-items:center;min-width:28px;height:28px;border-radius:7px;background:#e5eee0;color:#346245;font-weight:750;font-size:12px}
.competition-draft-tab.is-active .competition-tab-number{background:#245b37;color:#fff}
.competition-draft-tab>span:last-child{min-width:0;display:grid;gap:3px}
.competition-draft-tab strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.competition-draft-tab small{font-size:10px;color:#788174}
.competition-draft-tab.is-saved .competition-tab-number{background:#dbeedc;color:#21613a}
.competition-nav-empty{font-size:12px;color:#748171;padding:8px;margin:0}
.competition-draft-card{background:#fff;border:1px solid #d8e3d3;border-radius:11px;min-width:0;overflow:visible}
.competition-draft-card.is-saved{border-color:#a8d2ad}
.competition-draft-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;text-align:left;border:0;border-radius:10px;padding:10px 16px;background:#fdfefb;color:#193d2c;cursor:pointer}
.competition-draft-header:focus-visible,.competition-draft-tab:focus-visible,.competition-draft-filters button:focus-visible{outline:3px solid #bc9b46;outline-offset:2px}
.competition-draft-title{display:flex;flex-direction:column;min-width:0;gap:2px}
.competition-draft-title strong{font-size:13px;overflow-wrap:anywhere}
.competition-draft-title small{font-size:10px;color:#738173;line-height:1.3}
.competition-draft-chevron{font-size:20px;color:#398356;flex-shrink:0}
.competition-draft-card form{border-top:1px solid #e7ece6;padding:16px;display:grid;gap:10px}
.competition-draft-card form[hidden]{display:none!important}
.competition-draft-card fieldset{border:0;padding:0;margin:0;min-width:0}
.competition-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
.competition-draft-card label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0;margin:0;font-weight:650}
.competition-draft-card input,.competition-draft-card select{width:100%;max-width:100%;min-width:0;height:42px;min-height:42px;margin:0;padding:8px 10px;font-size:15px;line-height:1.25;border-radius:8px}
.competition-field-category{grid-column:1;grid-row:1}
.competition-field-school{grid-column:2;grid-row:1}
.competition-entry-grid>.competition-student-field{grid-column:1/-1;grid-row:2;margin:0;min-width:0}
.competition-draft-card .competition-student-field label{margin:0}
.competition-draft-card .competition-student-field>small{display:block;margin-top:4px;font-size:10px;line-height:1.3;color:#75816e}
.competition-entry-grid>.competition-round-form{grid-column:1/-1;grid-row:3;gap:10px}
.competition-result-fields{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.competition-draft-card .competition-total-preview{margin:0;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #d9e5cf;background:#edf4e5;border-radius:9px;font-size:11px}
.competition-draft-card .competition-total-preview strong{font-size:27px;line-height:1.2;font-variant-numeric:tabular-nums}
.competition-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:3px}
.competition-draft-actions>.btn{min-height:44px}
.competition-draft-actions>.btn.primary{min-width:180px}
.competition-draft-actions>.btn.small{background:transparent;border-color:transparent;color:#8c4a43}
.competition-draft-card .form-error:empty{display:none}
.competition-draft-saved{color:#237741;font-size:12px;font-weight:700;margin:0}
.competition-editor-empty{padding:40px 20px;border:1px dashed #cfddc8;border-radius:10px;color:#71806a;font-size:13px;text-align:center}
.competition-workspace-hint{margin:10px 0 0;font-size:10px;color:#728372;line-height:1.4}
.competition-delete-button{color:#a4343d!important;border-color:#f0cad0!important}
.competition-delete-info{width:100%;font-size:10px;color:#99606b}
/* Suggestions overlay the next fields instead of making every keystroke grow the page. */
.competition-draft-card .competition-student-suggestions,.competition-edit-modal .competition-student-suggestions{position:absolute!important;top:64px!important;left:0!important;right:0!important;margin:0;max-height:168px;overflow:auto;z-index:30;border-radius:8px;overscroll-behavior:contain}
.competition-student-suggestions[hidden]{display:none!important}
.competition-student-suggestions button{min-height:44px;padding:8px 11px}
/* Use the same compact field rhythm for editing a saved participant. */
.competition-edit-modal{width:min(740px,96vw);max-width:740px}
.competition-edit-modal form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.competition-edit-modal form>label,.competition-edit-modal .competition-round-form label{margin:0;display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}
.competition-edit-modal input,.competition-edit-modal select{margin:0;height:42px;min-width:0;max-width:100%;padding:8px 10px}
.competition-edit-modal .competition-student-field{grid-column:1/-1;margin:0;grid-row:2}
.competition-edit-modal .competition-round-form{grid-column:1/-1}
.competition-edit-modal .competition-total-preview{padding:10px;align-self:stretch;margin:0;align-content:center}
.competition-edit-modal .form-error,.competition-edit-modal .modal-actions{grid-column:1/-1;margin:0}
.competition-edit-modal .form-error:empty{display:none}
.competition-edit-modal form>label:has([name=official_position]) small{display:none}
@media(max-width:1000px) and (min-width:761px){.competition-editor-layout{grid-template-columns:170px minmax(0,1fr);gap:12px}.competition-workspace{padding:14px}.competition-entry-grid{column-gap:10px}}
@media(max-width:760px){
 .competition-workspace,.competition-workspace-closed{padding:10px;margin-bottom:12px;border-radius:11px}
 .competition-workspace-head{margin-bottom:8px;gap:6px}
 .competition-workspace-head h2{font-size:15px;margin:0}
 .competition-workspace-head p{display:none}
 .competition-workspace-head>.btn{min-height:36px;padding:6px 8px;font-size:11px}
 .competition-editor-layout{grid-template-columns:minmax(0,1fr);gap:8px}
 .competition-workspace-tools{flex-wrap:nowrap;gap:6px;margin-bottom:5px}
 .competition-workspace-tools .btn{width:auto;min-height:38px;font-size:11px;flex:1;padding:7px 8px}
 .competition-workspace-tools .btn.small{flex:0 1 auto;min-height:38px;padding:7px}
 .competition-draft-filters{margin:0 0 4px;padding-bottom:4px;gap:6px;border:0}
 .competition-draft-filters button{flex:0 1 auto;padding:5px 12px;min-height:32px;font-size:10px}
 .competition-draft-nav{flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;gap:6px;padding:2px 1px 5px;scrollbar-width:thin}
 .competition-draft-tab{width:148px;min-height:46px;padding:6px;gap:7px}
 .competition-draft-tab strong{font-size:11px}.competition-draft-tab small{font-size:9px}
 .competition-tab-number{min-width:25px;height:25px;font-size:11px}
 .competition-draft-header{padding:8px 10px;min-height:44px}
 .competition-draft-title strong{font-size:12px}.competition-draft-title small{font-size:9px}
 .competition-draft-card form{padding:10px;gap:8px}
 .competition-entry-grid{grid-template-columns:minmax(0,1fr);gap:9px}
 .competition-field-category,.competition-field-school,.competition-entry-grid>.competition-student-field,.competition-entry-grid>.competition-round-form{grid-column:1;grid-row:auto}
 .competition-draft-card label{gap:3px;font-size:11px}
 .competition-draft-card input,.competition-draft-card select{height:40px;min-height:40px;font-size:16px;padding:7px 8px}
 .competition-entry-grid>.competition-round-form{gap:7px}
 .competition-round-form input::placeholder{font-size:12px}
 .competition-result-fields{gap:8px}
 .competition-draft-card .competition-total-preview{padding:7px 10px;flex-direction:column;justify-content:center;gap:1px;font-size:10px}
 .competition-draft-card .competition-total-preview strong{font-size:24px}
 .competition-draft-actions{padding:0;gap:7px}
 .competition-draft-actions>.btn{font-size:12px;min-height:42px;padding:8px 12px}
 .competition-draft-actions>.btn.primary{flex:1;min-width:0}
 .competition-draft-card .competition-student-suggestions{top:59px!important}
 .competition-workspace-hint{font-size:9px;margin-top:8px}
 .competition-edit-modal .modal-head{padding:12px 14px}
 .competition-edit-modal .modal-body{padding:12px}
 .competition-edit-modal form{gap:9px}
 .competition-edit-modal form>label:has([name=category]),.competition-edit-modal form>label:has([name=school_name]){grid-column:1/-1}
 .competition-edit-modal .competition-student-field>small{font-size:10px;display:block;line-height:1.3}
 .competition-edit-modal input,.competition-edit-modal select{font-size:16px;height:40px;min-height:40px}
 .competition-edit-modal .competition-total-preview small{display:none}
 .competition-edit-modal .competition-total-preview strong{font-size:24px}
}
@media print{.competition-workspace,.competition-workspace-closed{display:none!important}}

.competition-add-short{display:none}
@media(max-width:760px){.competition-draft-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;align-items:center}.competition-workspace-tools{grid-column:2;grid-row:1;margin:0}.competition-workspace-tools .btn.small{display:none}.competition-workspace-tools .btn.primary{min-height:36px;padding:7px 10px}.competition-add-short{display:inline}.competition-add-long{display:none}.competition-draft-filters{grid-column:1;grid-row:1;margin:0;padding:0;gap:3px}.competition-draft-filters button{padding:5px 8px;white-space:nowrap}.competition-draft-nav{grid-column:1/-1}.competition-edit-modal .competition-total-preview{display:flex;flex-direction:column;justify-content:center;gap:2px;font-size:10px}}

/* ===== v1.34 — Key-in peserta dalam popup (seperti Key-in Skor) ===== */
.competition-workspace-modal{width:min(980px,96vw);max-width:980px;max-height:92dvh;display:flex;flex-direction:column;overflow:hidden}
.competition-workspace-modal .modal-head{flex-shrink:0}
.competition-workspace-modal .modal-body{overflow:auto;min-height:0;padding:18px;background:#f5f8f3;overscroll-behavior:contain}
.competition-workspace-modal .competition-workspace{margin:0;border:0;background:transparent;padding:0;border-radius:0}
.competition-workspace-intro{margin:0 0 12px;font-size:12px;color:#718172}
.competition-workspace-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:10px 14px;border:1px solid #e6d79b;background:#fff8dc;border-radius:11px;font-size:13px;color:#6a5413}
.competition-workspace-strip .btn{min-height:36px}
.competition-upgrade-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.competition-upgrade-banner .btn{flex-shrink:0}
@media(max-width:600px){
  .competition-workspace-modal{width:100%;max-width:100%;height:min(100dvh,100%);max-height:100dvh;border-radius:0}
  .competition-workspace-modal .modal-head{padding:9px 14px;min-height:46px}
  .competition-workspace-modal .modal-head h2{font-size:15px;margin:0}
  .competition-workspace-modal .modal-body{padding:8px 9px 14px}
  .competition-workspace-intro{display:none}
}

/* ===== v1.34 — Tambah peserta bulk (tampal dari Excel) ===== */
.competition-heading-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.competition-bulk-modal{width:min(1240px,98vw);max-width:1240px;max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}
.competition-bulk-modal .modal-head{flex-shrink:0}
.competition-bulk-modal .modal-body{overflow:auto;min-height:0;padding:18px;background:#f5f8f3;overscroll-behavior:contain}
.cbulk{min-width:0}
.cbulk [hidden]{display:none!important}
.cbulk button:disabled,.cbulk input:disabled,.cbulk select:disabled{opacity:.62;cursor:not-allowed}
.cbulk .bulk-intro{padding:14px 18px}
.cbulk .bulk-intro-heading{margin-bottom:12px}
.cbulk .bulk-intro-heading h2{font-size:17px;margin:0 0 4px}
.cbulk .bulk-intro-heading p{font-size:12px;margin:0}
.cbulk .bulk-tools{margin-top:12px;padding-top:12px}
.cbulk-defaults{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:16px;align-items:start}
.cbulk-defaults label{margin:0;font-size:12px}
.cbulk-defaults label small{display:block;font-size:11px;color:#7c866e;margin-top:6px;font-weight:400}
.cbulk-defaults select,.cbulk-defaults input:not([type=checkbox]){margin-bottom:0;margin-top:6px;width:100%}
.cbulk-check{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;background:#f1f5eb;border:1px solid #e4eadb;border-radius:10px}
.cbulk-check input{width:18px;min-width:18px;height:18px;margin:2px 0 0;accent-color:#24553d}
.cbulk-check span{font-weight:600;line-height:1.45}
.cbulk #cb-message{font-size:12px;font-weight:600;color:#6a6c36;line-height:1.7}
.cbulk .bulk-history [data-action=cbulk-undo] .icon{transform:rotate(180deg)}
.cbulk .bulk-grid-wrap{max-height:56vh}
.cbulk .bulk-grid{min-width:1130px}
.cbulk .bulk-grid td:nth-child(2){min-width:168px}
.cbulk .bulk-grid td:nth-child(3){min-width:150px}
.cbulk .bulk-grid td:nth-child(4),.cbulk .bulk-grid td:nth-child(5),.cbulk .bulk-grid td:nth-child(6){min-width:76px}
.cbulk .bulk-grid td:nth-child(7){min-width:92px}
.cbulk .bulk-grid td:nth-child(8){min-width:196px}
.cbulk .bulk-grid td:nth-child(9){min-width:58px}
.cbulk .bulk-grid td:nth-child(10){min-width:130px}
.cbulk .bulk-grid td.cbulk-total{padding-top:19px;text-align:center;font-size:14px;color:#2d6235}
.cbulk .bulk-grid td.cbulk-total b{font-weight:700}
.cbulk .bulk-save-bar{position:sticky;bottom:-18px;z-index:3}
@media(max-width:900px){.cbulk-defaults{grid-template-columns:1fr}}
@media(max-width:600px){
  .competition-bulk-modal{width:100%;max-width:100%;height:min(100dvh,100%);max-height:100dvh;border-radius:0}
  .competition-bulk-modal .modal-head{padding:9px 14px;min-height:46px}
  .competition-bulk-modal .modal-head h2{font-size:15px;margin:0}
  .competition-bulk-modal .modal-body{padding:8px 9px 14px}
  .cbulk .bulk-grid{min-width:0}
  .cbulk .bulk-grid td:nth-child(3){grid-column:1/-1}
  .cbulk .bulk-grid td.cbulk-total{padding-top:0;text-align:left}
  .cbulk .bulk-save-bar{bottom:-14px}
  .cbulk .bulk-save-bar p{display:none}
  .competition-heading-actions{width:100%}.competition-heading-actions .btn{flex:1}
}

/* v1.34.2: explicit external participant, compact on phone and desktop. */
.competition-student-field label.competition-external-check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;margin:8px 0 0;padding:9px 10px;border:1px solid #d9e5d4;border-radius:8px;background:#f5f9f2;cursor:pointer;font-size:12px;line-height:1.4;font-weight:500}
.competition-student-field .competition-external-check input[type=checkbox]{appearance:auto;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:#265606}
.competition-external-check span{min-width:0}
.competition-external-check small{display:block;margin-top:2px;font-size:11px;font-weight:400;color:#596a50;line-height:1.35}
.competition-external-check:has(input:checked){border-color:#83a96c;background:#edf5e6}
