.u-header .u-sheet.u-sheet-1 {
  position: relative;
}

.auth-header-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -59px 0 40px auto;
  width: fit-content;
  max-width: 100%;
}

.auth-header-cluster .u-menu-1 {
  margin: 0 !important;
  width: auto !important;
}

.auth-header-cluster .auth-header-actions {
  position: static;
  top: auto;
  right: auto;
  margin: 0;
}

.auth-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1;
  z-index: 20;
}

.auth-header-actions .auth-chip,
.auth-header-actions .auth-chip:link,
.auth-header-actions .auth-chip:visited {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid #2cccab;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.auth-header-actions .auth-chip-primary,
.auth-header-actions .auth-chip-primary:link,
.auth-header-actions .auth-chip-primary:visited {
  background: #2cccab !important;
  color: #ffffff !important;
}

.auth-header-actions .auth-chip-primary:hover {
  background: #28b89b !important;
  border-color: #28b89b !important;
  color: #ffffff !important;
}

.auth-header-actions .auth-chip-secondary,
.auth-header-actions .auth-chip-secondary:link,
.auth-header-actions .auth-chip-secondary:visited {
  background: #ffffff !important;
  color: #2cccab !important;
}

.auth-header-actions .auth-chip-secondary:hover {
  background: #e9fffa !important;
  color: #2cccab !important;
}

.auth-header-actions-static {
  position: static;
  margin: 0;
  justify-content: flex-end;
}

#sec-auth-header .u-sheet.u-sheet-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
}

#sec-auth-header .u-image-1 {
  margin: 0;
  flex-shrink: 0;
}

#sec-auth-header .auth-header-actions-static {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  #sec-auth-header .u-sheet.u-sheet-1 {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 12px 0;
  }
}

.auth-card {
  max-width: 560px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.auth-card-wide {
  max-width: 980px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form label {
  font-weight: 700;
}

.auth-form input {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #2cccab;
}

.auth-btn {
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: #2cccab;
  color: #fff;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
}

.auth-btn:hover {
  background: #28b89b;
}

a.auth-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.admin-panel-tools {
  margin-top: 20px;
  background: #f6fcfb;
  border: 1px solid #d6f0ea;
}

.admin-panel-cta {
  margin-top: 10px;
}

.auth-alert {
  margin: 12px 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.auth-alert-success {
  background: #e9fffa;
  color: #0f6b5a;
}

.auth-alert-warning {
  background: #fff7df;
  color: #7d5b00;
}

.auth-alert-error {
  background: #ffe9ec;
  color: #8c2332;
}

.auth-switch {
  margin-top: 16px;
}

.admin-nav-links {
  margin-bottom: 8px;
}

.admin-nav-links a {
  font-weight: 700;
  color: #2cccab;
}

.panel-tea-card {
  margin-top: 20px;
}

.panel-tea-title {
  color: #2cccab;
  margin-bottom: 12px;
}

.panel-tea-lead {
  font-size: 1.05rem;
  line-height: 1.55;
}

.panel-tea-cta-label {
  margin-top: 18px;
}

.panel-tea-btn {
  margin-top: 8px;
}

.panel-tea-done {
  margin-top: 14px;
}

.auth-hint {
  margin: -4px 0 8px;
  font-size: 0.9rem;
  color: #546e7a;
}

.admin-stripe-form .auth-btn {
  margin-top: 14px;
}

.admin-stripe-sep {
  margin: 28px 0 18px;
  border: none;
  border-top: 1px solid #e7ecef;
}

.panel-subscribe-banner {
  border: 2px solid #0f6b5a;
  background: linear-gradient(135deg, #f6fffd 0%, #ffffff 100%);
}

.panel-subscribe-actions {
  margin-top: 16px;
}

.panel-subscribe-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-badge-ok {
  background: #e9fffa;
  color: #0f6b5a;
}

.admin-badge-off {
  background: #f0f4f5;
  color: #546e7a;
}

.panel-tea-files {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.panel-tea-file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e7ecef;
}

.panel-tea-file-item:last-child {
  border-bottom: none;
}

.panel-tea-file-meta {
  flex: 1;
  min-width: 200px;
}

.panel-tea-file-desc {
  display: block;
  margin-top: 6px;
  color: #546e7a;
  font-size: 0.95rem;
  line-height: 1.45;
}

.panel-tea-file-size {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #78909c;
}

.panel-tea-dl {
  align-self: center;
}

.panel-tea-empty {
  margin-top: 12px;
}

.admin-tea-desc {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #546e7a;
  font-weight: 400;
}

.admin-tea-list-card {
  margin-top: 20px;
}

.admin-inline-form {
  display: inline;
  margin: 0;
}

.admin-tea-actions-col {
  min-width: 120px;
  text-align: center;
}

.admin-delete-form {
  margin: 0;
  display: flex;
  justify-content: center;
}

.admin-delete-submit {
  cursor: pointer;
  border: 1px solid #e57373;
  border-radius: 8px;
  background: #fff;
  color: #c62828;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
}

.admin-delete-submit:hover {
  background: #ffebee;
}

.admin-delete-btn {
  cursor: pointer;
  border: 1px solid #cfd8dc;
  background: #fff;
  color: #c62828 !important;
}

.admin-delete-btn:hover {
  background: #ffebee !important;
}

.admin-tea-upload-form textarea {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.admin-panel-tools-games {
  margin-top: 16px;
}

.panel-games-card {
  margin-top: 20px;
}

.panel-game-mini-list {
  margin-top: 12px;
}

.admin-sub-actions {
  white-space: nowrap;
}

.admin-sub-btn {
  cursor: pointer;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #546e7a;
}

.admin-sub-btn-on {
  border-color: #2cccab;
  color: #0f6b5a;
}

.admin-sub-btn:hover {
  background: #f5f5f5;
}

.panel-game-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.panel-game-card {
  border: 1px solid #e7ecef;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.panel-game-desc {
  font-size: 0.95rem;
  color: #546e7a;
  margin: 8px 0 12px;
}

.auth-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.auth-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.auth-table th,
.auth-table td {
  border: 1px solid #e7ecef;
  padding: 10px;
  text-align: left;
  font-size: 0.95rem;
}

.auth-table th {
  background: #f3faf8;
}

@media (max-width: 767px) {
  .auth-header-cluster .auth-header-actions {
    gap: 6px;
  }

  .auth-header-cluster .auth-chip {
    font-size: 0.78rem;
    padding: 6px 9px;
  }

  .auth-card {
    margin: 18px auto;
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .auth-header-cluster .auth-header-actions {
    gap: 4px;
  }

  .auth-header-cluster .auth-chip {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
}
