/* Steal An Egg Database – front-end only */
.sae-db,.sae-profile{--sae-green:#5aa9c4;--sae-green-dark:#244b5b;--sae-green-soft:#eef9fd;--sae-border:#d4eaf3;--sae-line:#e2eff4;--sae-text:#203740;--sae-muted:#6f838b;--sae-card:#fff;--sae-shadow:0 8px 24px rgba(55,111,132,.08);font-family:inherit;color:var(--sae-text);box-sizing:border-box}
.sae-db *,.sae-profile *{box-sizing:border-box}
.sae-db button,.sae-db input,.sae-db select,.sae-profile button{font:inherit}

/* Tabs */
.sae-tabs{display:inline-flex;gap:4px;padding:7px;background:#eaf6fb;border:1px solid var(--sae-border);border-radius:16px;margin:0 0 24px;box-shadow:0 2px 8px rgba(55,111,132,.03)}
.sae-tab{min-width:150px;border:0;background:transparent;color:#66818c;font-weight:700;padding:15px 24px;border-radius:12px;cursor:pointer;transition:.18s ease;letter-spacing:.02em}
.sae-tab:hover{background:rgba(255,255,255,.55)}
.sae-tab.is-active{background:#fff;color:#2d6f87;box-shadow:0 6px 16px rgba(55,111,132,.10)}
.sae-tab-icon{margin-right:8px;font-size:1.08em}

/* Filter */
.sae-filter-panel{display:grid;grid-template-columns:minmax(280px,1fr) 220px 180px 210px auto;gap:12px;align-items:stretch;margin-bottom:18px}
.sae-search-wrap{position:relative;display:block}
.sae-search-icon{position:absolute;left:20px;top:50%;transform:translateY(-50%);font-size:30px;line-height:1;color:#7393a0;pointer-events:none}
.sae-search,.sae-select{width:100%;min-height:58px;border:1px solid var(--sae-border)!important;background:#fff!important;color:var(--sae-text)!important;border-radius:13px!important;padding:0 18px!important;outline:none;box-shadow:none!important}
.sae-search{padding-left:58px!important;font-size:17px}
.sae-search::placeholder{color:#81959d}
.sae-search:focus,.sae-select:focus{border-color:#79bdd4!important;box-shadow:0 0 0 3px rgba(90,169,196,.12)!important}
.sae-select{cursor:pointer;font-weight:600}
.sae-reset{border:1px solid var(--sae-border);background:#f7fbfd;color:#627982;border-radius:13px;padding:0 18px;cursor:pointer;font-weight:700;white-space:nowrap}
.sae-reset:hover{background:#e8f5fa}
.sae-result-text{margin:0 0 42px;color:#70868e;font-size:14px}

/* Group */
.sae-group{margin:0 0 56px}
.sae-group[hidden]{display:none!important}
.sae-group-kicker{color:#5a9fba;font-weight:800;font-size:13px;letter-spacing:.05em;margin-bottom:8px}
.sae-group-title{font-size:30px!important;line-height:1.25!important;color:#203740!important;margin:0 0 22px!important;padding:0 0 22px!important;border-bottom:1px solid var(--sae-border)!important;font-weight:800!important}
.sae-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}

/* Card */
.sae-card{position:relative;min-width:0;border:1px solid #d6e5eb;border-top:4px solid #a7b9c0;border-radius:16px;overflow:hidden;background:var(--sae-card);box-shadow:0 2px 12px rgba(38,83,101,.04);transition:transform .18s ease,box-shadow .18s ease}
.sae-card:hover{transform:translateY(-3px);box-shadow:var(--sae-shadow)}
.sae-card[hidden]{display:none!important}
.sae-card-link{display:block;text-decoration:none!important;color:inherit!important;height:100%}
.sae-index-badge{position:absolute;z-index:3;left:13px;top:13px;padding:4px 8px;border:1px solid var(--sae-border);border-radius:7px;background:rgba(255,255,255,.92);font-size:12px;font-weight:800;color:#6f96a5}
.sae-card-media{height:230px;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(145deg,#fff 0%,#f8fcfe 65%,#eaf7fc 100%)}
.sae-card-media img{display:block;max-width:88%;max-height:188px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 9px 11px rgba(33,71,86,.13))}
.sae-card-body{padding:18px 18px 17px;border-top:1px solid #e7f0f4}
.sae-card-body h3{font-size:18px!important;line-height:1.35!important;margin:0 0 10px!important;color:#284651!important;font-weight:800!important;word-break:break-word}
.sae-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#6f848c;font-size:12px;font-weight:700}
.sae-card-meta span:last-child{text-align:right}

/* rarity accents */
.sae-rarity-common{border-top-color:#a2aaa2}.sae-rarity-uncommon{border-top-color:#48aa66}.sae-rarity-rare{border-top-color:#318fe8}.sae-rarity-epic{border-top-color:#9a5ce1}.sae-rarity-legendary{border-top-color:#f2a62b}.sae-rarity-mythic{border-top-color:#ee5c88}.sae-rarity-cosmic{border-top-color:#08c86f}.sae-rarity-secret{border-top-color:#e75656}.sae-rarity-eternal{border-top-color:#8b67ee}.sae-rarity-divine{border-top-color:#f0cf38}

.sae-placeholder{width:100%;height:100%;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#829aa4;gap:7px}
.sae-placeholder span{font-size:46px;filter:grayscale(.25)}
.sae-placeholder small{font-size:11px;font-weight:700}
.sae-empty{padding:30px;text-align:center;border:1px dashed var(--sae-border);border-radius:14px;background:#f8fcfe;color:#70868e;font-weight:700}
.sae-note{margin:26px 0 0;padding:15px 18px;border-radius:11px;background:#f4fafd;color:#72858d;font-size:12px;line-height:1.8}

/* Individual profile */
.sae-profile{border:1px solid var(--sae-border);border-radius:22px;overflow:hidden;background:#fff;margin:22px 0 34px}
.sae-profile>.sae-tabs{display:flex;border:0;border-bottom:1px solid var(--sae-border);border-radius:0;margin:0;padding:15px;background:#edf8fc}
.sae-profile>.sae-tabs .sae-tab{min-width:220px}
.sae-profile-panel{padding:36px}
.sae-profile-panel[hidden]{display:none!important}
.sae-profile-main{display:grid;grid-template-columns:minmax(300px,42%) 1fr;gap:38px;align-items:stretch}
.sae-profile-media{min-height:460px;border-radius:18px;background:linear-gradient(145deg,#f7fcfe,#eaf7fc);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:34px;overflow:hidden}
.sae-profile-media img{max-width:92%;max-height:355px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(38,79,95,.12))}
.sae-profile-media .sae-placeholder{min-height:320px}
.sae-profile-media small{margin-top:22px;color:#6c94a3;font-weight:700;letter-spacing:.02em}
.sae-profile-info{padding:28px 8px 12px}
.sae-profile-kicker{font-size:14px;color:#418ca8;font-weight:900;letter-spacing:.04em;margin-bottom:26px}
.sae-profile-heading{font-size:34px!important;line-height:1.25!important;margin:0 0 34px!important;color:#203740!important;font-weight:850!important}
.sae-stat-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;padding:17px 0;border-bottom:1px solid var(--sae-line);color:#72858d}
.sae-stat-row span{font-size:16px}.sae-stat-row strong{color:#2d6f87;font-size:16px;text-align:right}
.sae-profile-summary{margin:24px 0 0;color:#6f838b;line-height:1.9;font-size:14px}
.sae-obtain{margin:30px 0 0;padding:22px 24px;background:#f3fafd;border:1px solid var(--sae-border);border-radius:16px}
.sae-obtain .sae-section-heading{font-size:20px!important;line-height:1.35!important;margin:0 0 10px!important;color:#264c5b!important;font-weight:800!important;white-space:nowrap;max-width:100%}
.sae-obtain p{margin:0;line-height:1.75;color:#637a83;font-size:14px}

@media (max-width:1200px){
 .sae-filter-panel{grid-template-columns:1fr 1fr 1fr}.sae-search-wrap{grid-column:1/-1}.sae-reset{min-height:52px}
 .sae-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
 .sae-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}.sae-tab{min-width:0;padding:13px 10px}
 .sae-filter-panel{grid-template-columns:1fr 1fr}.sae-search-wrap{grid-column:1/-1}.sae-reset{grid-column:1/-1;min-height:48px}
 .sae-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .sae-card-media{height:190px;padding:18px}.sae-card-media img{max-height:150px}.sae-card-body{padding:14px}.sae-card-body h3{font-size:16px!important}
 .sae-profile>.sae-tabs .sae-tab{min-width:0}.sae-profile-panel{padding:18px}.sae-profile-main{grid-template-columns:1fr;gap:16px}.sae-profile-media{min-height:300px}.sae-profile-media img{max-height:235px}.sae-profile-info{padding:8px 2px}.sae-profile-heading{font-size:26px!important;margin-bottom:20px!important}
}
@media (max-width:560px){
 .sae-filter-panel{display:grid;grid-template-columns:1fr}.sae-search-wrap,.sae-reset{grid-column:auto}.sae-search,.sae-select{min-height:52px}.sae-search{font-size:15px}.sae-result-text{margin-bottom:30px}
 .sae-group{margin-bottom:42px}.sae-group-title{font-size:25px!important}.sae-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sae-card{border-radius:13px}.sae-card-media{height:145px;padding:12px}.sae-card-media img{max-height:118px}.sae-index-badge{left:8px;top:8px;font-size:10px}.sae-card-body{padding:11px}.sae-card-body h3{font-size:14px!important;margin-bottom:8px!important}.sae-card-meta{display:block;font-size:10px}.sae-card-meta span{display:block}.sae-card-meta span+span{margin-top:3px;text-align:left}
 .sae-profile{border-radius:14px;margin:12px 0 24px}.sae-profile>.sae-tabs{padding:8px;margin:0;gap:4px}.sae-profile>.sae-tabs .sae-tab{padding:11px 8px;font-size:14px}.sae-tab-icon{margin-right:5px}.sae-profile-panel{padding:12px}.sae-profile-main{gap:12px}.sae-profile-media{min-height:220px;padding:14px;border-radius:14px}.sae-profile-media img{max-height:180px;max-width:88%}.sae-profile-media small{margin-top:12px;font-size:11px}.sae-profile-info{padding:6px 1px 2px}.sae-profile-kicker{font-size:11px;margin-bottom:12px}.sae-profile-heading{font-size:22px!important;line-height:1.3!important;margin-bottom:14px!important}.sae-stat-row{padding:11px 0;gap:10px}.sae-stat-row span,.sae-stat-row strong{font-size:13px}.sae-profile-summary{margin-top:16px;font-size:12.5px;line-height:1.7}.sae-obtain{margin-top:18px;padding:14px 14px;border-radius:13px}.sae-obtain .sae-section-heading{font-size:17px!important;line-height:1.3!important;margin-bottom:8px!important;white-space:nowrap}.sae-obtain p{font-size:13.5px;line-height:1.7}
}


/* v1.0.4: aligned pet/egg cards, compact income units and mutation artwork */
.sae-view-panel[hidden],.sae-card-link[hidden]{display:none!important}
.sae-egg-group-hero{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:center;margin:0 0 30px;padding:24px;border:1px solid var(--sae-border);border-radius:18px;background:#f3fafd}
.sae-egg-group-image{height:180px;display:flex;align-items:center;justify-content:center}.sae-egg-group-image img{max-width:100%;max-height:170px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(31,45,28,.12))}
.sae-egg-group-hero h2{font-size:30px!important;line-height:1.3!important;margin:5px 0 10px!important;color:#203740!important}.sae-egg-group-hero p{margin:0;color:#6f838b;font-size:14px;line-height:1.8}
.sae-mutations{margin:28px 0 0}.sae-mutations .sae-section-heading{font-size:21px!important;line-height:1.35!important;margin:0 0 14px!important;color:#264c5b!important}.sae-mutation-scroll{overflow-x:auto;border:1px solid #d5e7ef;border-radius:14px;background:#fff;-webkit-overflow-scrolling:touch}
.sae-mutations table{width:100%;min-width:520px;border-collapse:collapse;margin:0!important}.sae-mutations th,.sae-mutations td{padding:13px 16px;border-bottom:1px solid #e2eef3;text-align:left;font-size:14px}.sae-mutations th{background:#191d35;color:#fff;font-weight:800}.sae-mutations th:nth-child(2),.sae-mutations td:nth-child(2){text-align:center}.sae-mutations td:last-child strong{color:#1685a7}.sae-mutations tbody tr:last-child td{border-bottom:0}.sae-egg-card .sae-card-media{background:linear-gradient(145deg,#f8fcfe 0%,#fff 55%,#edf8fc 100%)}
@media (max-width:560px){
 .sae-egg-group-hero{grid-template-columns:96px 1fr;gap:14px;padding:14px;margin-bottom:20px}.sae-egg-group-image{height:92px}.sae-egg-group-image img{max-height:88px}.sae-egg-group-hero h2{font-size:19px!important;margin:2px 0 6px!important}.sae-egg-group-hero p{font-size:12px;line-height:1.55}
 .sae-mutations{margin-top:20px}.sae-mutations .sae-section-heading{font-size:17px!important;margin-bottom:10px!important}.sae-mutations table{min-width:430px}.sae-mutations th,.sae-mutations td{padding:10px 11px;font-size:12.5px}
}


/* v1.0.4 alignment */
.sae-card{height:100%}.sae-card-link{display:flex;flex-direction:column}.sae-card-body{display:flex;flex-direction:column;min-height:104px}.sae-card-body h3{min-height:48px}.sae-card-meta{margin-top:auto}
.sae-mutation-label{display:flex;align-items:center;gap:10px;min-width:0}.sae-mutation-thumb{width:36px;height:36px;flex:0 0 36px;object-fit:contain;border-radius:7px;background:#f3f9fc}.sae-mutation-thumb-empty{display:inline-block;border:0;background:transparent}
@media (max-width:560px){
 .sae-card-body{min-height:92px}.sae-card-body h3{min-height:38px}
 .sae-mutation-label{gap:7px}.sae-mutation-thumb{width:28px;height:28px;flex-basis:28px;border-radius:6px}
 .sae-mutations table{min-width:0;table-layout:fixed}.sae-mutations th,.sae-mutations td{padding:9px 7px;font-size:11.5px}.sae-mutations th:first-child,.sae-mutations td:first-child{width:44%}.sae-mutations th:nth-child(2),.sae-mutations td:nth-child(2){width:20%}.sae-mutations th:nth-child(3),.sae-mutations td:nth-child(3){width:36%}
}


/* v1.0.5: pale-aqua palette + theme-safe headings */
.sae-db .sae-group-title,
.sae-db .sae-egg-group-hero h2,
.sae-profile .sae-profile-heading,
.sae-profile .sae-section-heading{
  background:transparent!important;
  background-image:none!important;
  color:var(--sae-text)!important;
  border-left:0!important;
  border-right:0!important;
  border-top:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
  transform:none!important;
  opacity:1!important;
  -webkit-text-fill-color:currentColor!important;
}
.sae-db .sae-group-title::before,.sae-db .sae-group-title::after,
.sae-db .sae-egg-group-hero h2::before,.sae-db .sae-egg-group-hero h2::after,
.sae-profile .sae-profile-heading::before,.sae-profile .sae-profile-heading::after,
.sae-profile .sae-section-heading::before,.sae-profile .sae-section-heading::after{
  content:none!important;display:none!important;
}
.sae-db .sae-group-title{
  border-bottom:1px solid var(--sae-border)!important;
}
.sae-profile .sae-section-heading{
  padding:0!important;
  border-bottom:0!important;
}
.sae-profile .sae-profile-heading{
  padding:0!important;
  border-bottom:0!important;
}

.sae-db,.sae-profile{accent-color:#5aa9c4}
.sae-tabs{background:#eaf7fc!important;border-color:#d4eaf3!important}
.sae-filter-panel .sae-search,.sae-filter-panel .sae-select{border-color:#d4eaf3!important}
.sae-card-media,.sae-profile-media{background:linear-gradient(145deg,#ffffff 0%,#f7fcfe 60%,#eaf7fc 100%)!important}
.sae-obtain,.sae-egg-group-hero,.sae-note{background:#f2fafe!important}
