:root{--tug-bg:#071019;--tug-panel:#101d2a;--tug-panel2:#162738;--tug-text:#eef8ff;--tug-muted:#9db1c4;--tug-cyan:#38d7ff;--tug-purple:#aa6cff;--tug-danger:#ff647c;--tug-good:#66e0a3}
.tug-app,.tug-card{box-sizing:border-box;color:var(--tug-text);background:linear-gradient(145deg,rgba(16,29,42,.98),rgba(7,16,25,.98));border:1px solid rgba(56,215,255,.25);border-radius:18px;padding:22px;box-shadow:0 20px 50px rgba(0,0,0,.28);font-family:system-ui,-apple-system,Segoe UI,sans-serif}.tug-app *{box-sizing:border-box}.tug-toolbar,.tug-grid,.tug-form-row,.tug-tabs{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.tug-toolbar{justify-content:space-between;margin-bottom:18px}.tug-grid{align-items:stretch}.tug-product{width:min(280px,100%);flex:1 1 240px;background:var(--tug-panel2);border:1px solid rgba(170,108,255,.22);border-radius:14px;padding:16px}.tug-product h3{margin:0 0 7px}.tug-price{color:var(--tug-cyan);font-weight:800}.tug-muted{color:var(--tug-muted)}.tug-button,button.tug-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:10px 16px;background:linear-gradient(90deg,var(--tug-cyan),var(--tug-purple));color:#061019!important;font-weight:800;text-decoration:none;cursor:pointer}.tug-button.secondary{background:var(--tug-panel2);color:var(--tug-text)!important;border:1px solid rgba(56,215,255,.4)}.tug-button.danger{background:var(--tug-danger);color:#19040a!important}.tug-button:disabled{opacity:.45;cursor:not-allowed}.tug-input,.tug-select,.tug-textarea{width:100%;max-width:420px;padding:10px 12px;border-radius:9px;border:1px solid rgba(157,177,196,.35);background:#09141f;color:var(--tug-text)}.tug-textarea{min-height:90px}.tug-balance{font-size:1.08rem;font-weight:800}.tug-cart{position:sticky;bottom:12px;margin-top:20px;background:#0b1722;border:1px solid rgba(56,215,255,.5);border-radius:14px;padding:15px}.tug-table-wrap{overflow:auto}.tug-table{width:100%;border-collapse:collapse}.tug-table th,.tug-table td{text-align:left;padding:10px;border-bottom:1px solid rgba(157,177,196,.18);white-space:nowrap}.tug-status{display:inline-block;border-radius:999px;padding:4px 9px;background:#24384a}.tug-status.completed_confirmed{background:rgba(102,224,163,.2);color:var(--tug-good)}.tug-status.failed_uncertain,.tug-status.manual_review{background:rgba(255,100,124,.2);color:#ff9bad}.tug-notice{padding:12px;border-radius:10px;background:rgba(56,215,255,.12);margin:12px 0}.tug-error{background:rgba(255,100,124,.14);color:#ffd6dd}.tug-tabs button{background:transparent;color:var(--tug-text);border:1px solid rgba(157,177,196,.3);padding:8px 12px;border-radius:9px;cursor:pointer}.tug-tabs button.active{border-color:var(--tug-cyan);color:var(--tug-cyan)}.tug-section{margin-top:24px}.tug-login{text-align:center;max-width:620px;margin:30px auto}.tug-loading{color:var(--tug-muted)}@media(max-width:650px){.tug-app{padding:14px}.tug-product{flex-basis:100%}.tug-toolbar{align-items:stretch}.tug-toolbar>*{width:100%}}


/* RC4: dedicated page shell for themes whose fallback template omits the page content. */
.tug-store-page{min-height:calc(100vh - 160px);padding:58px 0 80px;background:radial-gradient(circle at 12% 10%,rgba(56,215,255,.09),transparent 28rem),radial-gradient(circle at 88% 4%,rgba(170,108,255,.10),transparent 26rem)}
.tug-store-page-shell{width:min(1220px,calc(100% - 36px));margin:0 auto}
.tug-store-page-head{text-align:center;margin:0 auto 28px;max-width:820px}
.tug-store-page-kicker{margin:0 0 8px;color:var(--tug-cyan);font-size:12px;font-weight:900;letter-spacing:.2em;text-transform:uppercase}
.tug-store-page-title{margin:0;color:var(--tug-text);font-size:clamp(2rem,5vw,4rem);line-height:1.04;text-transform:uppercase}
.tug-store-page-content{width:100%}
@media(max-width:650px){.tug-store-page{padding:34px 0 58px}.tug-store-page-shell{width:min(100% - 22px,1220px)}}

/* RC5: account/admin action grouping and theme navigation integration. */
.tug-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:650px){.tug-toolbar-actions{width:100%;justify-content:stretch}.tug-toolbar-actions .tug-button{flex:1 1 160px}}

/* RC6: owner-only Discord role mapping controls. */
.tug-owner-perms{display:grid;gap:8px;margin-top:14px}.tug-owner-check{display:flex;gap:8px;align-items:center;color:var(--tug-text)}.tug-owner-check input{width:auto}

/* RC12: category-first storefront, full alphabetical catalogs, image management. */
.tug-category-grid,.tug-product-grid,.tug-setup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;align-items:stretch}
.tug-category-card,.tug-product-card,.tug-setup-card{background:var(--tug-panel2);border:1px solid rgba(170,108,255,.24);border-radius:15px;overflow:hidden;min-width:0}
.tug-category-card{display:flex;flex-direction:column}.tug-category-body,.tug-product-body,.tug-setup-card{padding:16px}.tug-product-card{display:flex;flex-direction:column}.tug-product-card .tug-product-body{display:flex;flex-direction:column;flex:1}.tug-product-card .tug-button{margin-top:auto;align-self:flex-start}
.tug-image-wrap{height:180px;background:#09141f;display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid rgba(157,177,196,.18)}.tug-image{width:100%;height:100%;object-fit:contain;padding:10px}.tug-image-placeholder{font-size:2rem;font-weight:900;letter-spacing:.08em;color:rgba(238,248,255,.38);background:radial-gradient(circle at 50% 35%,rgba(56,215,255,.15),transparent 55%),#09141f}
.tug-category-body h3,.tug-product-body h3{margin:8px 0}.tug-category-body p,.tug-product-body p{min-height:2.5em}.tug-category-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:auto}.tug-delivery-badge,.tug-product-category{display:inline-block;font-size:.76rem;font-weight:800;border-radius:999px;padding:4px 9px;background:rgba(56,215,255,.13);color:var(--tug-cyan)}.tug-product-category{color:#d8c5ff;background:rgba(170,108,255,.12)}
.tug-section-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:22px 0 14px}.tug-section-head h3{margin:8px 0}.tug-category-mini{width:110px;height:110px;object-fit:contain;border-radius:14px;background:#09141f;padding:8px;border:1px solid rgba(157,177,196,.2)}
.tug-category-header{display:grid;gap:12px;justify-items:start;margin:8px 0 18px}.tug-category-topbar,.tug-category-hero,.tug-category-copy{display:flex;align-items:flex-start;justify-content:flex-start}.tug-category-topbar{width:100%}.tug-category-hero{gap:18px;flex-wrap:wrap}.tug-category-copy{flex-direction:column;gap:8px;max-width:760px}.tug-category-copy h3{margin:0}.tug-category-copy p{margin:0;min-height:0;text-align:left}
.tug-setup-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.tug-setup-card{display:grid;gap:10px}.tug-setup-card .tug-image-wrap{border:1px solid rgba(157,177,196,.18);border-radius:12px;height:160px}.tug-setup-card label{display:grid;gap:6px;color:var(--tug-muted);font-size:.9rem}.tug-setup-card .tug-input,.tug-setup-card .tug-select,.tug-setup-card .tug-textarea{max-width:none}
@media(max-width:650px){.tug-category-grid,.tug-product-grid,.tug-setup-grid{grid-template-columns:1fr}.tug-section-head{align-items:flex-start}.tug-category-mini{width:82px;height:82px}.tug-category-footer{align-items:stretch;flex-direction:column}.tug-category-hero{gap:12px}.tug-category-copy{max-width:none}}
.tug-product-card{width:auto;flex:none}

/* RC13: locked cluster storefronts and destructive owner controls. */
.tug-shop-choice{display:block;text-decoration:none;color:var(--tug-text)!important;min-height:130px}.tug-shop-choice:hover{border-color:var(--tug-cyan);transform:translateY(-1px)}.tug-new-item{width:100%;max-width:none}.tug-button.danger{border:1px solid rgba(255,100,124,.55)}

/* RC16: align top-level category list header under search on locked cluster storefronts. */
.tug-category-list-header{margin:8px 0 18px}

/* RC17: owner-only checkout phase controls. */
.tug-owner-wide{width:100%;max-width:none}

/* v1.0 coordinated player/admin/migration tooling. */
.tug-big-code{display:inline-block;font-size:1.35rem;letter-spacing:.08em;padding:4px 8px;border-radius:8px;background:#09141f;color:var(--tug-cyan)}
.tug-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.tug-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tug-profile-head h3{margin-bottom:4px}.tug-identity-row{padding:7px 0;border-top:1px solid rgba(157,177,196,.14);word-break:break-word}.tug-player-result{width:100%;display:flex;justify-content:space-between;gap:16px;text-align:left;align-items:center;background:var(--tug-panel2);color:var(--tug-text);border:1px solid rgba(157,177,196,.22);border-radius:12px;padding:12px 14px;margin:8px 0;cursor:pointer}.tug-player-result:hover{border-color:var(--tug-cyan)}
.tug-mass-images{display:grid;gap:8px;padding:12px;border:1px dashed rgba(56,215,255,.3);border-radius:12px;background:rgba(56,215,255,.04)}.tug-image-match-list{max-height:260px;overflow:auto;background:#09141f;border-radius:10px;padding:10px;margin:8px 0;font-size:.86rem}.tug-image-match-list>div{padding:5px 0;border-bottom:1px solid rgba(157,177,196,.12)}
.tug-audit-json{max-width:480px;max-height:280px;overflow:auto;white-space:pre-wrap;word-break:break-word;color:var(--tug-text);background:#09141f;padding:10px;border-radius:8px}.tug-owner-wide{width:100%;max-width:none}.tug-table details summary{cursor:pointer;color:var(--tug-cyan)}
@media(max-width:650px){.tug-profile-grid{grid-template-columns:1fr}.tug-player-result{align-items:flex-start;flex-direction:column}.tug-audit-json{max-width:76vw}}


/* v1.0.0-rc2: balanced account dashboard summary cards. */
.tug-account-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch;margin:18px 0 26px}
.tug-account-summary-grid.tug-account-summary-shared{grid-template-columns:repeat(2,minmax(0,1fr))}
.tug-account-summary-grid.tug-account-summary-single{grid-template-columns:minmax(0,1fr)}
.tug-account-summary-card{min-width:0;min-height:218px;background:var(--tug-panel2);border:1px solid rgba(170,108,255,.24);border-radius:15px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
.tug-account-summary-single .tug-account-summary-card{min-height:0}
.tug-account-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.tug-account-card-head h3{margin:0}
.tug-account-player-id{margin:0 0 12px}
.tug-account-summary-card p{min-height:0;margin:8px 0}
.tug-account-status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;padding:4px 9px;background:rgba(56,215,255,.12);color:var(--tug-cyan);font-size:.74rem;font-weight:800}
.tug-account-status-good{background:rgba(102,224,163,.14);color:var(--tug-good)}
.tug-account-status-pending{background:rgba(255,196,92,.12);color:#ffd17a}
.tug-account-balance{margin-top:22px;font-size:clamp(1.8rem,3vw,2.35rem);line-height:1;font-weight:900;color:var(--tug-cyan)}
.tug-account-balance span{font-size:.9rem;color:var(--tug-muted);font-weight:700}
.tug-verify-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:auto}
.tug-verify-buttons .tug-button{width:100%}
.tug-account-identity-card #tug-identity-code:empty{display:none}
@media(max-width:900px){.tug-account-summary-grid,.tug-account-summary-grid.tug-account-summary-shared{grid-template-columns:1fr}.tug-account-summary-card{min-height:0}}
@media(max-width:520px){.tug-account-card-head{align-items:flex-start;flex-direction:column}.tug-verify-buttons{grid-template-columns:1fr}}

/* RC4: account-link recovery cannot dead-end the logged-in user. */
.tug-account-recovery-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0}.tug-account-recovery-actions .tug-button{min-width:180px}@media(max-width:650px){.tug-account-recovery-actions{align-items:stretch;flex-direction:column}.tug-account-recovery-actions .tug-button{width:100%}}

/* RC10: permanent identity/profile layout hardening. */
.tug-profile-grid>*{min-width:0}.tug-profile-grid .tug-product{width:100%;max-width:none;min-width:0}.tug-profile-identity-card,.tug-profile-identity-card p,.tug-profile-identity-card code,.tug-long-id{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}.tug-identity-row code{display:inline;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}

/* RC11: readable ARK identity metadata inside player/account cards. */
.tug-game-profile-block{margin:12px 0;padding:10px 12px;border:1px solid rgba(157,177,196,.18);border-radius:10px;background:rgba(5,18,28,.28);line-height:1.55}
.tug-game-profile-block .tug-muted{overflow-wrap:anywhere}

/* v1.1 major feature UI */
.tug-product-labels{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.tug-label-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;border:1px solid rgba(76,216,255,.35);font-size:.78rem;font-weight:700}.tug-random-badge{border-color:rgba(193,105,255,.55)}.tug-limit-badge{border-color:rgba(255,191,71,.55)}
.tug-cart-stack{display:grid;gap:12px}.tug-cart-character{display:grid;gap:6px;max-width:760px}.tug-cart-checkout-row{display:flex;justify-content:flex-end}.tug-account-activity-grid,.tug-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tug-character-line,.tug-note,.tug-tribe-log-row,.tug-tribe-membership,.tug-entitlement-row{padding:10px 0;border-bottom:1px solid rgba(157,177,196,.18)}.tug-online{display:inline-block;padding:2px 7px;border-radius:999px;background:rgba(54,220,120,.16);font-weight:700}.tug-private-badge{display:inline-block;padding:4px 8px;border-radius:8px;border:1px solid rgba(193,105,255,.4);margin-bottom:8px;font-size:.8rem;font-weight:700}.tug-tribe-log-list{max-height:420px;overflow:auto}.tug-mini-stats{margin:10px 0}.tug-pack-pool{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:440px;overflow:auto;padding:10px 0}.tug-pack-pool-row{display:grid;grid-template-columns:auto 1fr 90px;gap:8px;align-items:center}.tug-compact-json{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;border-radius:10px;background:#09141f}.tug-action-stack{display:flex;flex-wrap:wrap;gap:6px}.tug-action-stack .tug-button{white-space:nowrap}
@media(max-width:800px){.tug-account-activity-grid,.tug-feature-grid,.tug-pack-pool{grid-template-columns:1fr}.tug-cart-checkout-row{justify-content:stretch}.tug-cart-checkout-row .tug-button{width:100%}}
.tug-category-topbar{gap:12px;align-items:center;flex-wrap:wrap}.tug-inline-filter{display:flex;gap:8px;align-items:center;font-weight:600}.tug-inline-filter .tug-select{min-width:170px}

/* v1.1.0-rc2: dedicated player-detail view and full-width admin profile layout. */
.tug-player-profile-view{width:100%;min-width:0;scroll-margin-top:110px}
.tug-player-profile-view>.tug-product,.tug-player-profile-view>.tug-section.tug-product{width:100%;max-width:none;min-width:0}
.tug-player-profile-view .tug-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tug-player-profile-view .tug-profile-grid>.tug-product{width:100%;max-width:none;min-width:0}
.tug-player-profile-view .tug-table-wrap{width:100%;max-width:100%}
.tug-player-profile-view .tug-profile-head{margin:8px 0 18px;padding-bottom:14px;border-bottom:1px solid rgba(157,177,196,.16)}
.tug-profile-nav{display:flex;align-items:center;justify-content:flex-start;margin:0 0 14px}
.tug-profile-nav-bottom{margin:24px 0 0;padding-top:18px;border-top:1px solid rgba(157,177,196,.16)}
@media(max-width:900px){.tug-player-profile-view .tug-profile-grid{grid-template-columns:1fr}}

/* RC3: full-width guided reward automation builder. */
.tug-automation-builder,.tug-automation-list,.tug-automation-row{width:100%;max-width:none;min-width:0;flex:none}
.tug-automation-builder .tug-input,.tug-automation-builder .tug-select,.tug-automation-builder .tug-textarea{max-width:none}
.tug-automation-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;align-items:stretch}
.tug-automation-step{min-width:0;background:rgba(9,20,31,.58);border:1px solid rgba(157,177,196,.18);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px}
.tug-automation-step label{display:grid;gap:6px;min-width:0}
.tug-automation-step-title{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(157,177,196,.16)}
.tug-automation-step-title>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:999px;background:linear-gradient(90deg,var(--tug-cyan),var(--tug-purple));color:#061019;font-weight:900}
.tug-automation-step-title>div{display:grid;gap:2px}.tug-automation-step-title small{color:var(--tug-muted)}
.tug-automation-dynamic{display:grid;gap:10px}.tug-automation-help{margin:0;font-size:.9rem;line-height:1.45}
.tug-automation-explainer{padding:12px;border-radius:10px;background:rgba(56,215,255,.08);border:1px solid rgba(56,215,255,.18);line-height:1.45}
.tug-automation-mini-note{margin:0;font-size:.88rem;line-height:1.45}
.tug-inline-number{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.tug-inline-number span{color:var(--tug-muted);white-space:nowrap}
.tug-automation-summary{margin-top:16px;padding:14px 16px;border-radius:12px;background:rgba(170,108,255,.09);border:1px solid rgba(170,108,255,.24);display:grid;gap:5px;line-height:1.45}
.tug-automation-create-row{margin-top:14px;justify-content:flex-end}.tug-automation-create-row .tug-button{min-width:190px}
.tug-automation-scope-note{line-height:1.5}
.tug-automation-list>.tug-toolbar{margin-top:4px}
.tug-automation-row{margin:0 0 14px}.tug-automation-readable{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 14px}
.tug-automation-readable>div{min-width:0;padding:12px;border-radius:10px;background:rgba(9,20,31,.55);border:1px solid rgba(157,177,196,.14);display:grid;gap:4px}
.tug-automation-readable small{color:var(--tug-muted);font-weight:800;letter-spacing:.06em}.tug-automation-readable strong{overflow-wrap:anywhere}
.tug-automation-technical{margin:0 0 12px}.tug-automation-technical summary{cursor:pointer;color:var(--tug-muted)}
@media(max-width:1050px){.tug-automation-step-grid{grid-template-columns:1fr 1fr}.tug-automation-step:last-child{grid-column:1/-1}.tug-automation-readable{grid-template-columns:1fr 1fr}.tug-automation-readable>div:last-child{grid-column:1/-1}}
@media(max-width:700px){.tug-automation-step-grid,.tug-automation-readable{grid-template-columns:1fr}.tug-automation-step:last-child,.tug-automation-readable>div:last-child{grid-column:auto}.tug-automation-create-row{justify-content:stretch}.tug-automation-create-row .tug-button{width:100%}}

/* RC4: full-width random pack builder + direct Blueprint item entry. */
.tug-random-pack-create,.tug-random-pack-list,.tug-pack-editor{width:100%;max-width:none;min-width:0;flex:none}
.tug-random-pack-create .tug-input,.tug-random-pack-create .tug-select,.tug-random-pack-create .tug-textarea,.tug-pack-editor .tug-input,.tug-pack-editor .tug-select,.tug-pack-editor .tug-textarea{max-width:none}
.tug-pack-editor{margin:0 0 18px}
.tug-pack-settings{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;align-items:end}
.tug-pack-settings>label{display:grid;gap:6px;min-width:0}
.tug-pack-pool-box,.tug-pack-direct-add{margin:16px 0;padding:16px;border-radius:12px;background:rgba(9,20,31,.55);border:1px solid rgba(157,177,196,.16)}
.tug-pack-pool-box h4,.tug-pack-direct-add h4{margin:0 0 6px}
.tug-pack-pool-tools{margin-bottom:8px}.tug-pack-pool-tools .rp-pool-search{flex:1 1 340px}
.tug-pack-pool{grid-template-columns:repeat(3,minmax(0,1fr));max-height:560px;gap:8px;padding:6px 0}
.tug-pack-pool-row{padding:9px;border-radius:9px;background:rgba(255,255,255,.025);border:1px solid rgba(157,177,196,.1)}
.tug-pack-pool-row>span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.tug-pack-pool-row small{color:var(--tug-muted);font-size:.77rem}
.tug-direct-item-grid{display:grid;grid-template-columns:1.1fr 3fr .7fr .8fr 1fr;gap:10px;align-items:end;margin:10px 0 12px}
.tug-direct-item-grid>label{display:grid;gap:6px;min-width:0}

/* RC5: fixed-bundle automations get a true wide editor instead of compressing six fields into the WHAT column. */
.tug-automation-bundle-mode .tug-automation-step-grid{grid-template-columns:1fr}
.tug-automation-bundle-mode .tug-automation-step{grid-column:1/-1;width:100%}
.tug-automation-bundle-mode .tug-automation-step:nth-child(2){padding:18px}
.tug-automation-bundle-head{max-width:100%}.tug-automation-bundle-head p{margin:6px 0 0;max-width:980px}
.tug-automation-bundle-items{display:grid;gap:12px}
.tug-automation-bundle-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;align-items:end;padding:14px;border:1px solid rgba(157,177,196,.16);border-radius:12px;background:rgba(255,255,255,.028)}
.tug-automation-bundle-row>label{display:grid;gap:5px;min-width:0}
.tug-automation-bundle-row .tug-input,.tug-automation-bundle-row .tug-select{width:100%;min-width:0;max-width:none}
.tug-automation-bundle-row .tug-bundle-name-field{grid-column:1 / span 4}
.tug-automation-bundle-row .tug-bundle-path{grid-column:5 / -1}
.tug-automation-bundle-row .tug-bundle-qty-field{grid-column:1 / span 2}
.tug-automation-bundle-row .tug-bundle-quality-field{grid-column:3 / span 2}
.tug-automation-bundle-row .tug-bundle-type-field{grid-column:5 / span 4}
.tug-automation-bundle-row .au-bundle-remove{grid-column:9 / -1;width:100%;min-height:42px;padding:10px 12px}
.tug-automation-bundle-mode #au-bundle-add{width:100%;margin-top:2px;min-height:44px}
@media(max-width:1150px){.tug-pack-pool{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-direct-item-grid{grid-template-columns:1fr 2fr 1fr 1fr}.tug-direct-item-grid>label:last-child{grid-column:auto}}
@media(max-width:850px){.tug-pack-settings,.tug-direct-item-grid,.tug-pack-pool{grid-template-columns:1fr}.tug-automation-bundle-row{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-automation-bundle-row .tug-bundle-name-field,.tug-automation-bundle-row .tug-bundle-path{grid-column:1/-1}.tug-automation-bundle-row .tug-bundle-qty-field,.tug-automation-bundle-row .tug-bundle-quality-field,.tug-automation-bundle-row .tug-bundle-type-field,.tug-automation-bundle-row .au-bundle-remove{grid-column:auto}}
@media(max-width:560px){.tug-automation-bundle-row{grid-template-columns:1fr}.tug-automation-bundle-row .tug-bundle-name-field,.tug-automation-bundle-row .tug-bundle-path,.tug-automation-bundle-row .tug-bundle-qty-field,.tug-automation-bundle-row .tug-bundle-quality-field,.tug-automation-bundle-row .tug-bundle-type-field,.tug-automation-bundle-row .au-bundle-remove{grid-column:auto}}

/* v1.1.0-rc6: mixed fixed-bundle rewards including cryopodded tames */
.tug-automation-bundle-row .tug-bundle-name-field{grid-column:1 / span 5}
.tug-automation-bundle-row .tug-bundle-kind-field{grid-column:6 / span 3}
.tug-automation-bundle-row .au-bundle-remove{grid-column:9 / -1}
.tug-bundle-item-fields,.tug-bundle-dino-fields{grid-column:1/-1;min-width:0}
.tug-bundle-item-fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;align-items:end}
.tug-bundle-item-fields>label,.tug-bundle-dino-fields>label{display:grid;gap:5px;min-width:0}
.tug-bundle-item-fields .tug-bundle-path{grid-column:1 / span 6}
.tug-bundle-item-fields .tug-bundle-qty-field{grid-column:7 / span 2}
.tug-bundle-item-fields .tug-bundle-quality-field{grid-column:9 / span 2}
.tug-bundle-item-fields .tug-bundle-type-field{grid-column:11 / -1}
.tug-bundle-dino-fields .au-bundle-dino-command{width:100%;min-height:92px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.tug-bundle-dino-fields p{margin:7px 0 0}
@media(max-width:850px){.tug-automation-bundle-row .tug-bundle-name-field,.tug-automation-bundle-row .tug-bundle-kind-field,.tug-automation-bundle-row .au-bundle-remove{grid-column:1/-1}.tug-bundle-item-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-bundle-item-fields .tug-bundle-path{grid-column:1/-1}.tug-bundle-item-fields .tug-bundle-qty-field,.tug-bundle-item-fields .tug-bundle-quality-field,.tug-bundle-item-fields .tug-bundle-type-field{grid-column:auto}}
@media(max-width:560px){.tug-bundle-item-fields{grid-template-columns:1fr}.tug-bundle-item-fields .tug-bundle-path,.tug-bundle-item-fields .tug-bundle-qty-field,.tug-bundle-item-fields .tug-bundle-quality-field,.tug-bundle-item-fields .tug-bundle-type-field{grid-column:auto}}
.tug-bundle-item-fields[hidden],.tug-bundle-dino-fields[hidden]{display:none!important}

/* RC7: editable automations + human-readable saved reward details. */
.tug-automation-create-row{gap:10px;flex-wrap:wrap}
.tug-automation-saved-details{display:grid;gap:12px;margin-top:10px;padding:12px;border:1px solid rgba(157,177,196,.14);border-radius:12px;background:rgba(9,20,31,.38)}
.tug-automation-saved-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tug-automation-saved-meta>div{display:grid;gap:3px;padding:10px;border-radius:9px;background:rgba(255,255,255,.025);min-width:0}
.tug-automation-saved-meta small{color:var(--tug-muted);font-weight:800;letter-spacing:.05em}
.tug-automation-saved-items{display:grid;gap:8px;max-height:520px;overflow:auto;padding-right:3px}
.tug-automation-saved-item{display:grid;gap:6px;padding:10px;border:1px solid rgba(157,177,196,.12);border-radius:9px;background:rgba(255,255,255,.018);min-width:0}
.tug-automation-saved-item>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tug-automation-saved-item span{color:var(--tug-muted)}
.tug-automation-saved-item code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;padding:8px 10px;border-radius:8px;background:rgba(0,0,0,.22);font-size:.82rem;line-height:1.35}
@media(max-width:700px){.tug-automation-saved-meta{grid-template-columns:1fr}.tug-automation-create-row #au-cancel-edit,.tug-automation-create-row #au-create{width:100%}}


/* RC8: Random Shop Packs live under Shop Setup instead of the top-level admin navigation. */
.tug-shop-setup-subnav{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 20px}
.tug-shop-setup-subnav .tug-shop-setup-current{cursor:default}
@media(max-width:650px){.tug-shop-setup-subnav>*{flex:1 1 180px}}

/* v1.1.0-rc9: Random Shop Pack quick-add supports normal items/Blueprints and cryopodded tames. */
.tug-direct-reward-head{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:10px;margin:10px 0 12px;align-items:end}
.tug-direct-reward-head>label,.tug-direct-dino-fields>label{display:grid;gap:6px;min-width:0}
.tug-direct-dino-fields{margin:10px 0 12px}
.tug-direct-dino-fields .rp-direct-dino-command{width:100%;min-height:104px;max-width:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.tug-direct-dino-fields p{margin:7px 0 0}
.rp-direct-item-fields[hidden],.rp-direct-dino-fields[hidden]{display:none!important}
@media(max-width:850px){.tug-direct-reward-head{grid-template-columns:1fr}}


/* v1.1.0-rc10: readable Automation Run Log; backend run history already existed. */
.tug-automation-run-log{margin-top:28px}
.tug-automation-run-log .tug-table td{vertical-align:top}
.tug-automation-run-detail{display:grid;gap:8px;min-width:260px}
.tug-automation-run-detail code{display:block;max-width:520px;overflow-wrap:anywhere;white-space:normal}
.tug-automation-run-log .au-run-order-log{margin-top:8px;padding:7px 10px}

/* RC11 global map safety + live activity diagnostics */
.tug-feature-global{grid-column:1/-1;width:100%}
.tug-automation-destination-rule{margin-top:16px;padding:16px;border:1px solid rgba(111,145,180,.28);border-radius:14px;background:rgba(8,25,38,.48)}
.tug-error-text{font-weight:800;color:#ff7d82}
#pl-live-activity .tug-toolbar{align-items:flex-start}
#pl-live-activity .tug-notice{overflow-wrap:anywhere}

/* v1.1.0-rc13: secure map-separated tribe logs + subscriber Discord Forum feed. */
.tug-tribe-log-groups{display:grid;gap:16px;margin-top:12px}
.tug-tribe-log-group{border:1px solid rgba(105,145,180,.25);border-radius:14px;background:rgba(5,18,29,.42);overflow:hidden}
.tug-tribe-log-group-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:15px 16px;border-bottom:1px solid rgba(105,145,180,.18);background:rgba(255,255,255,.025)}
.tug-tribe-log-group-head h4{margin:4px 0 0}
.tug-kicker{display:block;color:var(--tug-muted);font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tug-tribe-log-group .tug-tribe-log-list{display:grid;gap:0}
.tug-tribe-log-group .tug-tribe-log-row{padding:12px 16px;border-bottom:1px solid rgba(105,145,180,.12)}
.tug-tribe-log-group .tug-tribe-log-row:last-child{border-bottom:0}
.tug-tribe-webhook-card{margin-top:18px;padding:16px;border:1px solid rgba(94,201,255,.28);border-radius:14px;background:rgba(14,35,52,.55)}
.tug-tribe-webhook-card h4{margin:0 0 4px}
.tug-webhook-row{align-items:stretch;margin-top:12px}
.tug-webhook-row .tug-input{flex:1 1 520px;min-width:240px}
.tug-webhook-row .tug-button{flex:0 0 auto}
@media(max-width:760px){.tug-tribe-log-group-head{flex-direction:column}.tug-webhook-row .tug-input,.tug-webhook-row .tug-button{width:100%;flex-basis:auto}}
.tug-tribe-log-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:4px;flex-wrap:wrap}.tug-tribe-history{border-top:1px solid rgba(105,145,180,.18);padding:12px 16px}.tug-tribe-history>summary{cursor:pointer;font-weight:800}.tug-tribe-history .tug-tribe-log-list{margin:10px -16px -12px}.tug-tribe-history .tug-tribe-log-row{padding-left:16px;padding-right:16px}
.tug-time-hover{cursor:help;text-decoration:underline dotted rgba(180,200,220,.55);text-underline-offset:3px}

/* RC21 Players cluster/filter clarity */
.tug-player-filters{align-items:flex-end}.tug-filter-field{display:grid;gap:5px;min-width:180px}.tug-filter-field>span{font-size:.78rem;font-weight:800;color:var(--tug-muted);text-transform:uppercase;letter-spacing:.04em}.tug-filter-help{margin-top:7px;font-size:.86rem}.tug-player-result-main{min-width:0;flex:1}.tug-player-result-title{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.tug-cluster-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.76rem;font-weight:800;border:1px solid rgba(56,215,255,.4);background:rgba(56,215,255,.1)}.tug-cluster-badge.is-8man{border-color:rgba(193,105,255,.45);background:rgba(193,105,255,.12)}.tug-player-wallets{text-align:right;white-space:nowrap;min-width:190px}.tug-player-wallets small{color:var(--tug-muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}@media(max-width:650px){.tug-player-wallets{text-align:left;min-width:0;white-space:normal}.tug-filter-field{width:100%}}


/* RC22 live cluster online counters */
.tug-online-counts{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin-left:12px;align-self:flex-end}
.tug-online-count{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-width:126px;padding:7px 11px;border:1px solid rgba(56,215,255,.42);border-radius:11px;background:rgba(56,215,255,.08);line-height:1.05}
.tug-online-count.is-8man{border-color:rgba(193,105,255,.48);background:rgba(193,105,255,.10)}
.tug-online-count>span{grid-column:1;font-size:.72rem;font-weight:800;color:var(--tug-muted);text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.tug-online-count>strong{grid-column:2;grid-row:1 / span 2;font-size:1.35rem;line-height:1;text-align:right}
.tug-online-count>small{grid-column:1;font-size:.74rem;color:var(--tug-good);font-weight:800}
.tug-online-count-placeholder{align-self:center;color:var(--tug-muted);font-size:.84rem}
@media(max-width:900px){.tug-online-counts{margin-left:0;width:100%}.tug-online-count{flex:1 1 140px}}
@media(max-width:650px){.tug-online-counts{width:100%}.tug-online-count{min-width:0}}


/* RC24: standalone admin panels must use the full content width instead of inheriting the 280px shop-card width. */
.tug-automation-run-log,.tug-owner-wallet-panel{width:100%;max-width:none;min-width:0;flex:none}
.tug-automation-run-log .tug-table-wrap{width:100%;max-width:100%}
.tug-automation-run-log .tug-form-row{align-items:flex-end}
.tug-automation-run-log .tug-select{flex:1 1 240px;max-width:360px}
.tug-owner-wallet-panel .tug-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.tug-owner-wallet-panel .tug-grid>div{min-width:0;padding:12px;border:1px solid rgba(157,177,196,.14);border-radius:10px;background:rgba(9,20,31,.28)}
.tug-owner-wallet-panel .tug-notice{max-width:none}
.tug-owner-wallet-panel label{display:grid;gap:6px;max-width:520px}
@media(max-width:800px){.tug-owner-wallet-panel .tug-grid{grid-template-columns:1fr}.tug-automation-run-log .tug-select{max-width:none;flex-basis:100%}}


/* RC25: Automation Run Log uses responsive run cards instead of an 8-column horizontal-scroll table. */
.tug-automation-run-cards{display:grid;gap:14px;width:100%;margin-top:14px}
.tug-automation-run-card{min-width:0;border:1px solid rgba(105,145,180,.28);border-radius:14px;background:rgba(5,18,29,.34);overflow:hidden}
.tug-automation-run-card-head{display:grid;grid-template-columns:minmax(155px,.8fr) minmax(190px,1fr) minmax(120px,.65fr) minmax(150px,.75fr);gap:14px;padding:14px 16px;border-bottom:1px solid rgba(105,145,180,.18);background:rgba(255,255,255,.018)}
.tug-automation-run-card-head>div,.tug-automation-run-card-body>section{display:grid;align-content:start;gap:4px;min-width:0}
.tug-automation-run-card small{display:block;color:var(--tug-muted);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.tug-automation-run-card-head strong,.tug-automation-run-card-head span,.tug-automation-run-card-body div{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.tug-automation-run-card-head span{font-size:.84rem;color:var(--tug-muted)}
.tug-automation-run-card-body{display:grid;grid-template-columns:minmax(240px,1.05fr) minmax(230px,1fr);gap:0}
.tug-automation-run-card-body>section{padding:14px 16px;border-bottom:1px solid rgba(105,145,180,.14)}
.tug-automation-run-card-body>section:nth-child(odd){border-right:1px solid rgba(105,145,180,.14)}
.tug-automation-run-card-body>section:nth-last-child(-n+2){border-bottom:0}
.tug-automation-run-card-body .au-run-order-log{width:max-content;max-width:100%}
.tug-automation-run-card details>summary{cursor:pointer;color:#45d7ff;font-weight:800;width:max-content;max-width:100%}
.tug-automation-run-card .tug-automation-run-detail{min-width:0;margin-top:10px}
.tug-automation-run-card .tug-audit-json{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.tug-run-status{width:max-content;max-width:100%}
.tug-run-error{color:#ff9a9d;font-size:.84rem;overflow-wrap:anywhere}
.tug-automation-run-pages{margin-top:14px}
@media(max-width:900px){.tug-automation-run-card-head{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.tug-automation-run-card-head,.tug-automation-run-card-body{grid-template-columns:1fr}.tug-automation-run-card-body>section{border-right:0!important;border-bottom:1px solid rgba(105,145,180,.14)!important}.tug-automation-run-card-body>section:last-child{border-bottom:0!important}}


/* RC26: global responsive-card treatment for wide Owner/Admin tables.
   The JS enhancer applies this only to admin tables with 7+ columns. */
.tug-responsive-record-wrap{overflow:visible!important;width:100%;max-width:100%}
.tug-responsive-record-table{display:block;width:100%;border-collapse:separate;border-spacing:0}
.tug-responsive-record-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tug-responsive-record-table tbody{display:grid;gap:14px;width:100%}
.tug-responsive-record-table tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;min-width:0;border:1px solid rgba(105,145,180,.28);border-radius:14px;background:rgba(5,18,29,.34);overflow:hidden}
.tug-responsive-record-table tbody td{display:grid;align-content:start;gap:4px;min-width:0;padding:12px 14px!important;border:0!important;border-right:1px solid rgba(105,145,180,.12)!important;border-bottom:1px solid rgba(105,145,180,.12)!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
.tug-responsive-record-table tbody td::before{content:attr(data-label);display:block;color:var(--tug-muted);font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;line-height:1.2;margin-bottom:2px}
.tug-responsive-record-table tbody td[data-label=""]::before{display:none}
.tug-responsive-record-table tbody td.tug-responsive-record-full{grid-column:1/-1;border-right:0!important}
.tug-responsive-record-table tbody td code,.tug-responsive-record-table tbody td small,.tug-responsive-record-table tbody td strong,.tug-responsive-record-table tbody td span{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.tug-responsive-record-table tbody td details,.tug-responsive-record-table tbody td .tug-audit-json{max-width:100%;min-width:0}
.tug-responsive-record-table .tug-action-stack{align-items:flex-start}
@media(max-width:1050px){.tug-responsive-record-table tbody tr{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.tug-responsive-record-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tug-responsive-record-table tbody tr{grid-template-columns:1fr}.tug-responsive-record-table tbody td{border-right:0!important}}


/* RC27: corrected wide-admin responsive rules.
   RC26 accidentally shipped literal backslash-n text in this block, which changed
   selectors to n.tug-* and prevented the responsive card styles from matching. */
#tug-admin-app .tug-responsive-record-wrap{overflow-x:hidden!important;overflow-y:visible!important;width:100%;max-width:100%;min-width:0}
#tug-admin-app table.tug-responsive-record-table{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important}
#tug-admin-app table.tug-responsive-record-table>thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
#tug-admin-app table.tug-responsive-record-table>tbody{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;width:100%!important;min-width:0!important}
#tug-admin-app table.tug-responsive-record-table>tbody>tr{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;min-width:0!important;border:1px solid rgba(105,145,180,.28)!important;border-radius:14px!important;background:rgba(5,18,29,.34)!important;overflow:hidden!important}
#tug-admin-app table.tug-responsive-record-table>tbody>tr>td{display:grid!important;align-content:start!important;gap:4px!important;min-width:0!important;max-width:100%!important;padding:12px 14px!important;border:0!important;border-right:1px solid rgba(105,145,180,.12)!important;border-bottom:1px solid rgba(105,145,180,.12)!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;vertical-align:top!important}
#tug-admin-app table.tug-responsive-record-table>tbody>tr>td::before{content:attr(data-label);display:block;color:var(--tug-muted);font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;line-height:1.2;margin-bottom:2px}
#tug-admin-app table.tug-responsive-record-table>tbody>tr>td[data-label=""]::before{display:none}
#tug-admin-app table.tug-responsive-record-table>tbody>tr>td.tug-responsive-record-full{grid-column:1/-1!important;border-right:0!important}
#tug-admin-app table.tug-responsive-record-table>tbody>tr>td *{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
#tug-admin-app table.tug-responsive-record-table .tug-action-stack{display:flex;flex-wrap:wrap;gap:7px;align-items:flex-start}
#tug-admin-app table.tug-responsive-record-table .tug-action-stack .tug-button{white-space:normal!important}
@media(max-width:1050px){#tug-admin-app table.tug-responsive-record-table>tbody>tr{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:820px){#tug-admin-app table.tug-responsive-record-table>tbody>tr{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){#tug-admin-app table.tug-responsive-record-table>tbody>tr{grid-template-columns:1fr!important}#tug-admin-app table.tug-responsive-record-table>tbody>tr>td{border-right:0!important}}

/* RC28: organize the manual Add New Item editor into clear full-width sections. */
.tug-new-item-editor{display:grid;gap:16px;width:100%;max-width:none;min-width:0;padding:18px}
.tug-new-item-editor .tug-new-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:4px}
.tug-new-item-editor .tug-new-item-head h3{margin:0 0 5px}
.tug-new-item-editor .tug-new-item-head p{margin:0;max-width:820px;line-height:1.45}
.tug-new-item-section{display:grid;gap:12px;min-width:0;padding:15px;border:1px solid rgba(157,177,196,.16);border-radius:12px;background:rgba(9,20,31,.38)}
.tug-new-item-section-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding-bottom:9px;border-bottom:1px solid rgba(157,177,196,.13)}
.tug-new-item-section-title strong{font-size:.98rem;color:var(--tug-text)}
.tug-new-item-section-title span{font-size:.84rem;color:var(--tug-muted)}
.tug-new-item-grid{display:grid;gap:12px;align-items:start;min-width:0}
.tug-new-item-grid-four{grid-template-columns:minmax(180px,1.35fr) minmax(170px,1fr) minmax(130px,.72fr) minmax(110px,.55fr)}
.tug-new-item-grid-three{grid-template-columns:minmax(220px,1.4fr) minmax(140px,.7fr) minmax(140px,.7fr)}
.tug-new-item-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tug-new-item-editor label{display:grid;gap:6px;min-width:0;color:var(--tug-muted);font-size:.88rem}
.tug-new-item-editor .tug-input,.tug-new-item-editor .tug-select,.tug-new-item-editor .tug-textarea{width:100%;max-width:none;min-width:0}
.tug-new-item-full{width:100%;max-width:none}
.tug-new-item-command{min-height:150px;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.86rem;line-height:1.45}
.tug-new-item-editor label>small{color:var(--tug-muted);font-size:.78rem;line-height:1.4}
.tug-new-item-upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;min-width:0}
.tug-new-item-upload-row input[type="file"]{display:block;width:100%;max-width:100%;padding:9px;border:1px solid rgba(157,177,196,.28);border-radius:9px;background:#09141f;color:var(--tug-text)}
.tug-new-item-upload-row .tug-button{min-height:40px;white-space:nowrap}
.tug-new-item-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:2px}
.tug-new-item-visible{font-weight:700;color:var(--tug-text)!important}
.tug-new-item-save{min-width:160px}
@media(max-width:1050px){.tug-new-item-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-new-item-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.tug-new-item-grid-four,.tug-new-item-grid-three,.tug-new-item-grid-two,.tug-new-item-upload-row{grid-template-columns:1fr}.tug-new-item-upload-row .tug-button{width:100%}.tug-new-item-footer{align-items:stretch;flex-direction:column}.tug-new-item-save{width:100%}}

/* RC32: connected Player / Tribe / Character admin directory. */
.tug-directory-head{margin-bottom:6px}
.tug-directory-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px;padding:6px;border:1px solid rgba(157,177,196,.16);border-radius:12px;background:rgba(9,20,31,.34)}
.tug-directory-tabs button{appearance:none;border:1px solid transparent;border-radius:9px;padding:9px 15px;background:transparent;color:var(--tug-muted);font:inherit;font-weight:800;cursor:pointer}
.tug-directory-tabs button:hover{color:var(--tug-text);border-color:rgba(56,215,255,.22)}
.tug-directory-tabs button.active{color:var(--tug-text);border-color:rgba(56,215,255,.42);background:rgba(56,215,255,.09)}
.tug-directory-browser[hidden]{display:none!important}
.tug-directory-results{margin-top:14px}
.tug-directory-grid,.tug-character-directory-grid,.tug-directory-link-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.tug-directory-card{display:grid;gap:6px;width:100%;min-width:0;padding:14px 16px;text-align:left;border:1px solid rgba(105,145,180,.24);border-radius:13px;background:rgba(5,18,29,.34);color:var(--tug-text);font:inherit;cursor:pointer;overflow-wrap:anywhere}
.tug-directory-card:hover{border-color:rgba(56,215,255,.48);background:rgba(56,215,255,.055)}
.tug-directory-card.is-current{border-color:rgba(56,215,255,.52);box-shadow:inset 0 0 0 1px rgba(56,215,255,.12)}
.tug-directory-card-title{font-size:1rem;font-weight:900;line-height:1.25}
.tug-directory-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.tug-directory-card small{color:var(--tug-muted);line-height:1.45;overflow-wrap:anywhere}
.tug-entity-link{appearance:none;border:0;padding:0;background:transparent;color:#45d7ff;font:inherit;font-weight:850;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(69,215,255,.35);text-underline-offset:3px;overflow-wrap:anywhere}
.tug-entity-link:hover{color:#8be7ff;text-decoration-color:currentColor}
.tug-directory-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 12px;color:var(--tug-muted);font-size:.86rem}
.tug-directory-breadcrumb strong{color:var(--tug-text)}
.tug-directory-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;flex-wrap:wrap;width:100%;max-width:none}
.tug-directory-hero h2{margin:2px 0 4px}
.tug-directory-summary{display:flex;gap:10px;flex-wrap:wrap}
.tug-directory-summary>span{display:grid;gap:3px;min-width:130px;padding:10px 12px;border:1px solid rgba(157,177,196,.15);border-radius:10px;background:rgba(9,20,31,.32)}
.tug-directory-summary small,.tug-directory-facts small{color:var(--tug-muted);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.tug-directory-summary strong{font-size:1.06rem;overflow-wrap:anywhere}
.tug-member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.tug-member-card{display:grid;gap:12px;min-width:0;padding:14px 16px;border:1px solid rgba(105,145,180,.24);border-radius:13px;background:rgba(5,18,29,.31)}
.tug-member-card.is-former{opacity:.84}
.tug-member-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.tug-member-card-head h4{margin:2px 0 0}
.tug-directory-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;min-width:0}
.tug-directory-facts>span{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.tug-directory-facts em{display:block;color:var(--tug-muted);font-size:.78rem;font-style:normal}
.tug-directory-history>summary{cursor:pointer;font-weight:900;margin-bottom:12px}
.tug-directory-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.tug-owner-chain{border-color:rgba(56,215,255,.28)}
.tug-tribe-filter-field{min-width:250px}
@media(max-width:900px){.tug-directory-grid,.tug-character-directory-grid,.tug-member-grid,.tug-directory-two-col{grid-template-columns:1fr}.tug-directory-facts{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.tug-directory-facts{grid-template-columns:1fr}.tug-directory-summary{width:100%}.tug-directory-summary>span{flex:1 1 100%;min-width:0}.tug-directory-tabs{display:grid;grid-template-columns:1fr}.tug-tribe-filter-field{min-width:0;width:100%}}


/* RC33: directory polish + clear tribe navigation. */
.tug-player-profile-view{width:100%;max-width:none;min-width:0}
.tug-open-tribe-button{white-space:nowrap;min-width:132px}
.tug-open-tribe-button.has-selection{border-color:rgba(56,215,255,.68);box-shadow:0 0 0 1px rgba(56,215,255,.08) inset}

/* Keep directory detail pages compact even when the WordPress theme styles <section>. */
.tug-player-profile-view section.tug-directory-hero{
  width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;height:auto!important;
  display:grid!important;grid-template-columns:minmax(0,1fr);gap:16px;padding:20px 22px;margin-top:14px;
  align-items:start;overflow:hidden
}
.tug-directory-hero>div:first-child{min-width:0;width:100%}
.tug-directory-hero .tug-kicker{display:block;margin-bottom:5px;color:var(--tug-muted);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em}
.tug-directory-hero h2{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 7px;font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.15}
.tug-directory-hero p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.tug-directory-summary{width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tug-directory-summary>span{min-width:0!important;padding:12px 14px!important;border-radius:11px!important}
.tug-directory-summary small{display:block}
.tug-directory-summary strong{display:block;margin-top:2px;line-height:1.3}

/* The generic .tug-product rule caps cards at 280px. Directory detail panels must fill their grid tracks instead. */
.tug-directory-two-col{width:100%;grid-template-columns:repeat(2,minmax(320px,1fr));gap:16px;margin-top:16px;align-items:stretch}
.tug-directory-two-col>section.tug-product,
.tug-directory-two-col>.tug-product{
  width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;height:auto!important;
  margin-top:0!important;padding:18px 20px;align-self:stretch
}
.tug-directory-two-col h3{margin:0 0 12px;font-size:1.08rem}
.tug-directory-two-col .tug-muted{margin:0 0 14px;line-height:1.5}
.tug-owner-chain{background:linear-gradient(145deg,rgba(13,31,45,.88),rgba(11,25,38,.96));border-color:rgba(56,215,255,.34)!important}

/* Make identity values scan like an admin record instead of a wall of wrapped text. */
.tug-directory-two-col .tug-directory-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tug-directory-two-col .tug-directory-facts>span{
  min-width:0;padding:11px 12px;border:1px solid rgba(157,177,196,.13);border-radius:10px;
  background:rgba(5,18,29,.28);line-height:1.42;overflow-wrap:anywhere;word-break:break-word
}
.tug-directory-two-col .tug-directory-facts>span small{margin-bottom:1px}
.tug-directory-two-col .tug-entity-link{max-width:100%;overflow-wrap:anywhere;word-break:break-word}

/* Give related characters and tribe history a balanced card layout. */
.tug-player-profile-view>.tug-section:not(.tug-directory-hero){min-width:0}
.tug-player-profile-view .tug-character-directory-grid,
.tug-player-profile-view .tug-directory-link-list{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.tug-player-profile-view .tug-directory-card{height:100%}

/* Tribe detail: compact identity banner, readable stats, and member cards. */
.tug-player-profile-view .tug-member-grid{grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:12px}
.tug-player-profile-view .tug-member-card{height:100%;padding:16px 17px}
.tug-player-profile-view .tug-member-card .tug-directory-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
.tug-player-profile-view .tug-member-card .tug-directory-facts>span{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.tug-directory-breadcrumb{margin-top:10px;margin-bottom:10px}
.tug-profile-nav+.tug-directory-breadcrumb{margin-top:12px}

@media(max-width:900px){
  .tug-directory-two-col{grid-template-columns:1fr}
  .tug-directory-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-directory-summary>span:last-child{grid-column:1/-1}
}
@media(max-width:620px){
  .tug-directory-summary{grid-template-columns:1fr}
  .tug-directory-summary>span:last-child{grid-column:auto}
  .tug-directory-two-col .tug-directory-facts,.tug-player-profile-view .tug-member-card .tug-directory-facts{grid-template-columns:1fr}
  .tug-player-profile-view .tug-member-grid{grid-template-columns:1fr}
  .tug-open-tribe-button{width:100%}
}


/* RC36: Operations & Safety Center. */
.tug-ops-shell{display:grid;gap:16px;min-width:0}
.tug-ops-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px;border:1px solid rgba(56,215,255,.24);border-radius:16px;background:linear-gradient(145deg,rgba(19,40,57,.92),rgba(11,27,40,.96))}
.tug-ops-hero h3{margin:4px 0 7px;font-size:1.45rem}.tug-ops-hero p{margin:0;max-width:760px}
.tug-ops-live-pill{display:grid;gap:3px;min-width:220px;padding:11px 13px;border-radius:12px;border:1px solid rgba(157,177,196,.2);background:rgba(5,18,29,.45)}
.tug-ops-live-pill strong{font-size:.92rem}.tug-ops-live-pill span{font-size:.78rem;color:var(--tug-muted)}
.tug-ops-live-pill.is-ok{border-color:rgba(102,224,163,.4);background:rgba(102,224,163,.08)}
.tug-ops-live-pill.is-critical{border-color:rgba(255,100,124,.55);background:rgba(255,100,124,.12)}
.tug-ops-live-pill.is-warning{border-color:rgba(255,209,122,.45);background:rgba(255,209,122,.09)}
.tug-ops-nav{display:flex;gap:8px;flex-wrap:wrap;padding:8px;border:1px solid rgba(157,177,196,.18);border-radius:14px;background:rgba(6,18,28,.38)}
.tug-ops-nav button{border:1px solid transparent;background:transparent;color:var(--tug-muted);font-weight:800;border-radius:9px;padding:9px 11px;cursor:pointer}
.tug-ops-nav button:hover{color:var(--tug-text);border-color:rgba(157,177,196,.22)}
.tug-ops-nav button.active{color:var(--tug-cyan);background:rgba(56,215,255,.09);border-color:rgba(56,215,255,.36)}
.tug-ops-view{min-width:0}.tug-ops-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:4px 0 14px}
.tug-ops-section-head h3,.tug-ops-panel h4{margin:0 0 5px}.tug-ops-section-head p{margin:0;max-width:820px}
.tug-ops-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.tug-ops-stat-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.tug-ops-stat{appearance:none;text-align:left;color:var(--tug-text);background:var(--tug-panel2);border:1px solid rgba(157,177,196,.18);border-radius:13px;padding:15px;display:grid;gap:5px;min-width:0}
button.tug-ops-stat{cursor:pointer}.tug-ops-stat:hover{border-color:rgba(56,215,255,.48)}
.tug-ops-stat span{font-size:.78rem;color:var(--tug-muted);font-weight:800;text-transform:uppercase;letter-spacing:.035em}.tug-ops-stat strong{font-size:1.25rem;overflow-wrap:anywhere}.tug-ops-stat small{color:var(--tug-muted)}
.tug-ops-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.tug-ops-panel{min-width:0;padding:16px;border:1px solid rgba(157,177,196,.18);border-radius:14px;background:rgba(17,36,52,.74)}
.tug-ops-panel-head,.tug-ops-order-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tug-ops-panel-head h4{margin:0}
.tug-link-button{appearance:none;background:none;border:0;color:var(--tug-cyan);font-weight:800;cursor:pointer;padding:2px}
.tug-ops-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tug-ops-facts>div{display:grid;gap:3px;min-width:0;padding:10px;border:1px solid rgba(157,177,196,.12);border-radius:9px;background:rgba(4,14,23,.27)}
.tug-ops-facts>div.wide{grid-column:1/-1}.tug-ops-facts span{font-size:.75rem;color:var(--tug-muted);font-weight:800;text-transform:uppercase}.tug-ops-facts strong{font-size:.88rem;overflow-wrap:anywhere;word-break:break-word}
.tug-ops-alert-list{display:grid;gap:9px}.tug-ops-alert{display:flex;justify-content:space-between;gap:12px;padding:13px;border-radius:11px;border:1px solid rgba(157,177,196,.17);background:rgba(6,18,28,.35)}
.tug-ops-alert.is-critical{border-color:rgba(255,100,124,.45);background:rgba(255,100,124,.08)}.tug-ops-alert.is-warning{border-color:rgba(255,209,122,.32);background:rgba(255,209,122,.05)}
.tug-ops-alert p{margin:5px 0 0}.tug-ops-alert-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tug-ops-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:.7rem;font-weight:900;background:rgba(157,177,196,.14);color:var(--tug-text);white-space:nowrap}
.tug-ops-badge.is-ok{background:rgba(102,224,163,.14);color:var(--tug-good)}.tug-ops-badge.is-warning{background:rgba(255,209,122,.13);color:#ffd17a}.tug-ops-badge.is-critical{background:rgba(255,100,124,.16);color:#ff9bad}.tug-ops-badge.is-muted{color:var(--tug-muted)}
.tug-good-text{color:var(--tug-good)}.tug-error-text{color:#ff9bad}
.tug-ops-event-list,.tug-ops-card-list,.tug-ops-health-grid{display:grid;gap:10px}
.tug-ops-event{display:grid;grid-template-columns:auto auto minmax(140px,.6fr) minmax(220px,1.6fr);align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid rgba(157,177,196,.13)}
.tug-ops-event>span,.tug-ops-event>time{color:var(--tug-muted);font-size:.8rem}.tug-ops-event p{margin:0;min-width:0;overflow-wrap:anywhere}.tug-ops-event details{grid-column:1/-1}.tug-ops-event pre{white-space:pre-wrap;word-break:break-word;background:#09141f;padding:10px;border-radius:8px;max-height:260px;overflow:auto}
.tug-ops-searchbar{display:flex;gap:10px;align-items:center;margin:12px 0 15px}.tug-ops-searchbar .tug-input{max-width:none;flex:1}.tug-ops-search-group{display:grid;gap:8px;margin:16px 0}.tug-ops-search-group h4{margin:0}.tug-ops-search-group h4 span{color:var(--tug-muted);font-size:.8rem}
.tug-ops-result-card,.tug-ops-order-card,.tug-ops-case-card,.tug-ops-restriction-card,.tug-ops-admin-card,.tug-ops-backup-card,.tug-ops-health-card{min-width:0;border:1px solid rgba(157,177,196,.17);border-radius:13px;padding:14px 15px;background:rgba(19,39,56,.74)}
.tug-ops-result-card,.tug-ops-backup-card,.tug-ops-restriction-card{display:flex;justify-content:space-between;gap:12px;align-items:center}.tug-ops-result-card p,.tug-ops-order-card p,.tug-ops-case-card p,.tug-ops-restriction-card p,.tug-ops-admin-card p,.tug-ops-backup-card p{margin:4px 0;color:var(--tug-muted);overflow-wrap:anywhere}
.tug-ops-order-card.needs-attention{border-color:rgba(255,100,124,.42)}.tug-ops-order-main h4{margin:2px 0}.tug-ops-order-main>div:last-child{display:grid;justify-items:end;gap:5px;text-align:right}
.tug-ops-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px}.tug-ops-inline-detail{margin-top:10px}
.tug-ops-timeline{display:grid;gap:0;border-top:1px solid rgba(157,177,196,.14)}.tug-ops-timeline>div{display:grid;grid-template-columns:150px auto minmax(120px,.5fr) minmax(220px,1.4fr);gap:9px;padding:9px 0;border-bottom:1px solid rgba(157,177,196,.12)}.tug-ops-timeline p{margin:0}
.tug-ops-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tug-ops-form-grid label{display:grid;gap:6px;color:var(--tug-muted);font-size:.86rem}.tug-ops-form-grid label.wide{grid-column:1/-1}.tug-ops-form-grid .tug-input,.tug-ops-form-grid .tug-select,.tug-ops-form-grid .tug-textarea{max-width:none}
.tug-switch-line{display:flex!important;grid-auto-flow:column;justify-content:start;align-items:center;gap:8px!important;color:var(--tug-text)!important}.tug-switch-line input{width:auto}
.tug-ops-notes{display:grid;gap:8px;margin:10px 0}.tug-ops-notes>div{padding:10px;border-radius:9px;background:rgba(5,18,29,.35);border:1px solid rgba(157,177,196,.12)}.tug-ops-notes time{display:block;color:var(--tug-muted);font-size:.75rem}.tug-ops-notes p{margin:4px 0}
.tug-ops-health-summary{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:11px;border:1px solid rgba(157,177,196,.2);margin-bottom:12px}.tug-ops-health-summary.is-ok{border-color:rgba(102,224,163,.35)}.tug-ops-health-summary.is-critical{border-color:rgba(255,100,124,.48);background:rgba(255,100,124,.07)}
.tug-ops-health-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr))}.tug-ops-health-card.has-error{border-color:rgba(255,100,124,.34)}
.tug-ops-change-preview{margin:13px 0;padding:14px;border-radius:12px;border:1px solid rgba(170,108,255,.4);background:rgba(170,108,255,.08)}.tug-ops-change-preview>strong{display:block;margin-bottom:8px}
.tug-ops-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tug-ops-preview-grid>div{display:grid;gap:3px;padding:9px;background:rgba(5,18,29,.35);border-radius:8px}.tug-ops-preview-grid span{font-size:.75rem;color:var(--tug-muted)}
.tug-ops-restriction-card.inactive{opacity:.68}.tug-ops-backup-card{align-items:flex-start}.tug-ops-backup-card .tug-ops-actions{margin-top:0}
.tug-kicker{font-size:.72rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase;color:var(--tug-muted)}
@media(max-width:980px){.tug-ops-stat-grid,.tug-ops-stat-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-ops-two-col{grid-template-columns:1fr}.tug-ops-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-ops-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tug-ops-event,.tug-ops-timeline>div{grid-template-columns:120px auto 1fr}.tug-ops-event p,.tug-ops-timeline p{grid-column:1/-1}}
@media(max-width:650px){.tug-ops-hero,.tug-ops-section-head,.tug-ops-health-summary,.tug-ops-result-card,.tug-ops-backup-card,.tug-ops-restriction-card{flex-direction:column}.tug-ops-live-pill{min-width:0;width:100%}.tug-ops-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tug-ops-stat-grid,.tug-ops-stat-grid.compact,.tug-ops-form-grid,.tug-ops-preview-grid{grid-template-columns:1fr}.tug-ops-form-grid label.wide{grid-column:auto}.tug-ops-searchbar{align-items:stretch;flex-direction:column}.tug-ops-searchbar>*{width:100%}.tug-ops-event,.tug-ops-timeline>div{grid-template-columns:1fr}.tug-ops-event p,.tug-ops-timeline p{grid-column:auto}.tug-ops-order-main{flex-direction:column}.tug-ops-order-main>div:last-child{justify-items:start;text-align:left}}

/* RC36: linked player/tribe operations context. */
.tug-ops-player-snapshot{display:grid;gap:14px}
.tug-ops-chip-row{display:flex;flex-wrap:wrap;gap:8px}
.tug-ops-mini-list{display:grid;gap:8px}
.tug-ops-mini-list>div{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 11px;border:1px solid rgba(157,177,196,.14);border-radius:10px;background:rgba(7,18,29,.22)}
.tug-ops-mini-list small{color:var(--tug-muted);text-align:right}
@media(max-width:650px){.tug-ops-mini-list>div{align-items:flex-start;flex-direction:column}.tug-ops-mini-list small{text-align:left}}

/* RC38: coordinated admin layout polish for Maps & Chat, Moderation, Promotions/VIP and Announcements. */
#tug-admin-app>.tug-tabs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  gap:8px;
  align-items:stretch;
}
#tug-admin-app>.tug-tabs button{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
}
#tug-admin-content{min-width:0}
.tug-admin-page{display:grid;gap:18px;min-width:0}
.tug-admin-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.tug-admin-page-head h3{margin:0 0 7px;font-size:1.35rem}
.tug-admin-page-head p{margin:0;max-width:900px}
.tug-admin-panel{
  min-width:0;
  padding:18px;
  border:1px solid rgba(157,177,196,.18);
  border-radius:14px;
  background:rgba(17,36,52,.62);
}
.tug-admin-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}
.tug-admin-panel-head h3,.tug-admin-panel-head h4{margin:0 0 5px}
.tug-admin-panel-head p{margin:0;max-width:900px}
.tug-panel-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.tug-panel-table{margin-top:14px;border:1px solid rgba(157,177,196,.12);border-radius:11px}
.tug-panel-table .tug-table th,.tug-panel-table .tug-table td{padding:11px 12px}
.tug-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:5px 10px;border-radius:999px;background:rgba(56,215,255,.1);border:1px solid rgba(56,215,255,.25);color:var(--tug-cyan);font-size:.78rem;font-weight:800;white-space:nowrap}

.tug-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.tug-form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tug-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tug-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tug-form-grid>label,.tug-limit-pair>label{display:grid;gap:6px;min-width:0;color:var(--tug-muted);font-size:.84rem;font-weight:700}
.tug-form-grid label.wide,.tug-form-grid .wide,.tug-span-full{grid-column:1/-1}
.tug-form-grid .tug-span-2{grid-column:span 2}
.tug-form-grid .tug-input,.tug-form-grid .tug-select,.tug-form-grid .tug-textarea{max-width:none;min-width:0}
.tug-label-note{font-size:.75rem;font-weight:500;color:var(--tug-muted)}
.tug-grid-spacer{min-height:1px}
.tug-code-textarea{min-height:118px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;line-height:1.45}
.tug-limit-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}

.tug-proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.tug-check-grid{display:grid;gap:10px;margin-top:14px}
.tug-check-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tug-check-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tug-check-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.tug-check-line,.tug-check-card{
  display:flex!important;
  align-items:center;
  gap:9px!important;
  min-width:0;
  color:var(--tug-text)!important;
  font-size:.84rem!important;
  font-weight:700!important;
}
.tug-check-line{padding:9px 10px;border:1px solid rgba(157,177,196,.14);border-radius:9px;background:rgba(5,18,29,.24)}
.tug-check-card{align-items:flex-start;padding:12px 13px;border:1px solid rgba(157,177,196,.16);border-radius:11px;background:rgba(5,18,29,.3)}
.tug-check-line input,.tug-check-card input{width:auto;flex:0 0 auto;margin:2px 0 0}
.tug-check-card span{display:grid;gap:3px;min-width:0}
.tug-check-card strong{color:var(--tug-text);font-size:.87rem}
.tug-check-card small{color:var(--tug-muted);font-weight:500;line-height:1.35}
.tug-field-title{display:block;margin-bottom:8px;color:var(--tug-muted);font-size:.82rem;font-weight:800}
.tug-target-row{margin-top:14px}

.tug-coord-alert{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0}
.tug-chat-settings-panel .tug-form-grid{margin-top:2px}
.tug-map-registry-panel .tug-ops-card-list{gap:12px}
.tug-map-card{padding:15px 16px}
.tug-map-card h4{margin:3px 0 4px}
.tug-map-card p{margin:0}
.tug-map-actions{margin-top:12px}
.tug-map-details{margin-top:12px;border-top:1px solid rgba(157,177,196,.13);padding-top:10px}
.tug-map-details summary{cursor:pointer;color:var(--tug-cyan);font-weight:800;margin-bottom:12px}
.tug-map-details .tug-check-grid{margin:13px 0}
.tug-map-cap-summary{margin-top:9px!important;line-height:1.6}

.tug-search-grid{display:grid;gap:10px;align-items:end;margin-bottom:12px}
.tug-search-grid-action{grid-template-columns:minmax(220px,1fr) auto}
.tug-search-grid-chat{grid-template-columns:minmax(240px,1.5fr) minmax(180px,.8fr) minmax(180px,.8fr) auto}
.tug-search-grid .tug-input,.tug-search-grid .tug-select{max-width:none}
.tug-moderation-page #mod-list,.tug-moderation-page #chat-list{min-width:0}
.tug-moderation-page .tug-table-wrap{border:1px solid rgba(157,177,196,.12);border-radius:11px}

.tug-commerce-page .tug-admin-panel{padding:18px}
.tug-commerce-page .tug-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tug-commerce-lower-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}
.tug-goal-check{margin-top:13px;max-width:max-content}
.tug-goal-summary{margin:13px 0 0;color:var(--tug-muted);line-height:1.55}
.tug-goal-summary strong{color:var(--tug-text)}

.tug-announcements-page .tug-admin-panel:first-of-type .tug-textarea{min-height:105px}
.tug-announcements-page #an-list .tug-table-wrap{border:1px solid rgba(157,177,196,.12);border-radius:11px}

@media(max-width:1100px){
  .tug-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-check-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tug-check-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-commerce-lower-grid{grid-template-columns:1fr}
  .tug-search-grid-chat{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-search-grid-chat .tug-button{justify-self:start}
}
@media(max-width:820px){
  #tug-admin-app>.tug-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tug-form-grid,.tug-form-grid-2,.tug-form-grid-3,.tug-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-proof-grid{grid-template-columns:1fr}
  .tug-check-grid-3,.tug-check-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-grid-spacer{display:none}
}
@media(max-width:600px){
  #tug-admin-app>.tug-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tug-admin-panel{padding:14px}
  .tug-admin-page-head,.tug-admin-panel-head{flex-direction:column}
  .tug-form-grid,.tug-form-grid-2,.tug-form-grid-3,.tug-form-grid-4,.tug-check-grid-3,.tug-check-grid-4,.tug-check-grid-5,.tug-search-grid-action,.tug-search-grid-chat{grid-template-columns:1fr}
  .tug-form-grid .tug-span-2{grid-column:auto}
  .tug-limit-pair{grid-template-columns:1fr 1fr}
  .tug-search-grid .tug-button{width:100%}
}
@media(max-width:980px){.tug-form-grid.tug-ops-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.tug-form-grid.tug-ops-form-grid{grid-template-columns:1fr}}
