.survival-dashboard {
    --dash-yellow: #d5a368;
    --dash-ink: #241b15;
    --dash-sidebar: #1a1510;
    --dash-bg: #f2ebe2;
    --dash-paper: #fdf9f3;
    --dash-line: #dfd2c1;
    --dash-muted: #67574a;
    --dash-radius: .85rem;
    --dash-gap: clamp(.85rem, 1.65vw, 1.5rem);
    --dash-display: "Archivo Black", Arial, sans-serif;
    --dash-body: "Instrument Sans", Arial, sans-serif;
    --dash-coast: url("eon-dashboard.webp");
    margin: 0;
    min-width: 0;
    min-height: 100svh;
    background: var(--dash-bg);
    color: var(--dash-ink);
    font: 400 1rem/1.5 var(--dash-body);
    color-scheme: light;
}

.survival-dashboard *,
.survival-dashboard *::before,
.survival-dashboard *::after { box-sizing: border-box; }

.survival-dashboard [hidden] { display: none !important; }
.survival-dashboard h1, .survival-dashboard h2, .survival-dashboard h3,
.survival-dashboard h4, .survival-dashboard p, .survival-dashboard dl,
.survival-dashboard dd { margin: 0; }
.survival-dashboard a { color: inherit; text-decoration: none; }
.survival-dashboard img { display: block; max-width: 100%; }
.survival-dashboard small { color: var(--dash-muted); font-size: .83rem; }
.survival-dashboard :focus-visible { outline: 2px solid #81512c; outline-offset: 3px; }
.survival-dashboard :disabled { cursor: not-allowed; opacity: .52; }

.dashboard-skip {
    position: fixed;
    z-index: 5;
    top: .65rem;
    left: .65rem;
    padding: .65rem 1rem;
    transform: translateY(-160%);
    border-radius: .4rem;
    background: var(--dash-yellow);
    color: var(--dash-ink);
    font-weight: 700;
}

.dashboard-skip:focus { transform: none; }

.dashboard-shell {
    display: grid;
    grid-template-columns: clamp(12.5rem, 17vw, 15rem) minmax(0, 1fr);
    min-height: 100svh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.55rem;
    height: 100svh;
    padding: 1.65rem 1rem 1rem;
    overflow: auto;
    background: var(--dash-sidebar);
    color: #f9f8ed;
    box-shadow: inset -1px 0 0 #3c2d21;
}

.dashboard-logo {
    display: inline-block;
    align-self: start;
    margin-inline: .55rem;
}

.dashboard-logo img { width: clamp(7rem, 11vw, 9.5rem); height: auto; }
.dashboard-nav { display: grid; gap: 1.1rem; }
.dashboard-nav-group { display: grid; gap: .2rem; min-width: 0; }

.dashboard-nav-group > span {
    margin: 0 .65rem .32rem;
    color: #c4b09b;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 2.7rem;
    padding: .58rem .66rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    color: #eee3d4;
    font-size: .91rem;
    font-weight: 650;
}

.dashboard-nav a:hover { background: #332519; color: #fff; }

.dashboard-nav a[aria-current="page"] {
    border-color: var(--dash-yellow);
    background: var(--dash-yellow);
    color: var(--dash-ink);
    font-weight: 800;
}

.dashboard-icon { flex: none; width: 1.2em; height: 1.2em; vertical-align: middle; }
.dashboard-nav .dashboard-icon { width: 1.15rem; height: 1.15rem; }
.sidebar :focus-visible { outline-color: #d5a368; }

.sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #443224;
}

.dashboard-profile { display: flex; align-items: center; gap: .48rem; min-width: 0; }
.dashboard-profile > div { min-width: 0; line-height: 1.28; }

.dashboard-profile strong {
    display: block;
    overflow: hidden;
    font-size: .83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-profile small { display: block; color: #c7b49d; font-size: .74rem; }

.dashboard-profile:has(.dashboard-steam-id) strong {
    white-space: normal;
    overflow-wrap: anywhere;
}

.dashboard-profile .dashboard-steam-id {
    display: block;
    color: #e1e5d3;
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.profile-icon svg { width: 1.07rem; height: 1.07rem; }

.profile-icon, .dashboard-logout {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #383d30;
    border-radius: .5rem;
    background: #2c2119;
    color: var(--dash-yellow);
}

.dashboard-logout { width: 2rem; height: 2rem; font: inherit; cursor: pointer; }
.dashboard-logout:hover { background: #4d3626; }

.portal-main {
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap);
    width: 100%;
    max-width: 105rem;
    min-width: 0;
    margin-inline: auto;
    padding: clamp(1rem, 2.85vw, 3.2rem);
}

.portal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem 1.5rem;
    padding-bottom: clamp(.55rem, 1vw, .9rem);
}

.portal-top h1 {
    font: 400 clamp(1.95rem, 3.65vw, 3.8rem)/1.05 var(--dash-display);
    letter-spacing: -.06em;
    text-wrap: balance;
}

.top-metrics, .top-metric { display: flex; align-items: center; }
.top-metrics { flex: none; gap: .55rem; flex-wrap: wrap; }

.top-metric {
    gap: .58rem;
    min-height: 3.1rem;
    padding: .5rem .78rem;
    border: 1px solid var(--dash-line);
    border-radius: .65rem;
    background: var(--dash-paper);
}

.top-metric.coins:hover { border-color: #86582d; background: #f4e6d1; }
.top-metric.coins .dashboard-icon { width: 1.22rem; height: 1.22rem; color: #625100; }
.top-metric div { display: grid; line-height: 1.15; }
.top-metric small { font-size: .69rem; font-weight: 650; }
.top-metric strong { margin-top: .16rem; font-size: .95rem; font-weight: 750; }

.live-dot { width: .58rem; height: .58rem; flex: none; border-radius: 50%; background: #a96820; }
.live-dot.active { background: #267b48; box-shadow: 0 0 0 .2rem #e3f2e8; }

.surface {
    min-width: 0;
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    background: var(--dash-paper);
    box-shadow: 0 2px 8px #17191608;
}

.block { padding: clamp(1rem, 2.05vw, 1.55rem); }
.block h2, .skin-controls h2 { font-size: clamp(1.16rem, 1.65vw, 1.5rem); line-height: 1.2; letter-spacing: -.032em; }
.block > h2 + *, .block > p + form { margin-top: .8rem; }
.block p, .command-intro p, .collection-info p { color: var(--dash-muted); }
.block h3, .collection-info h3 { font-size: 1.08rem; line-height: 1.25; }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: .9rem;
}

.section-heading h2 { overflow-wrap: anywhere; }
.section-heading p { margin-top: .38rem; }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--dash-gap); }
.overview-columns { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }

.survival-dashboard .text-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #365b44;
    font-size: .88rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .22em;
}

.survival-dashboard .text-link:hover { color: var(--dash-ink); }

.survival-dashboard .button,
.survival-dashboard .provider {
    display: inline-flex;
    gap: .55rem;
    justify-content: center;
    align-items: center;
    min-height: 2.65rem;
    padding: .52rem .86rem;
    border: 1px solid transparent;
    border-radius: .52rem;
    background: #f2f3eb;
    color: var(--dash-ink);
    font: 750 .875rem/1.25 var(--dash-body);
    text-align: center;
}

.survival-dashboard .button:not(:disabled),
.survival-dashboard .provider:not(:disabled) { cursor: pointer; }

.survival-dashboard .button.primary { background: var(--dash-yellow); border-color: #b4834f; }
.survival-dashboard .button.primary:hover:not(:disabled) { background: #e9bf89; }
.survival-dashboard .button.secondary { background: #f7efe4; border-color: #dbccba; }
.survival-dashboard .button.secondary:hover:not(:disabled) { background: #f1e5d6; border-color: #a8af99; }
.survival-dashboard .button.danger { background: #982e23; border-color: #982e23; color: #fff; }
.survival-dashboard .button.danger:hover:not(:disabled) { background: #802417; }
.survival-dashboard .provider { border-color: #dbccba; justify-content: flex-start; }
.survival-dashboard .provider:hover:not(:disabled) { background: #e9ebdf; }
.survival-dashboard .provider svg, .icon-square svg { width: 1.2rem; height: 1.2rem; }

.notice {
    padding: .72rem .9rem;
    border: 1px solid #bfdac6;
    border-radius: .6rem;
    background: #e8f4e9;
    color: #205b37;
    font-weight: 650;
}

.notice.warning { border-color: #e1c4a7; background: #fff0df; color: #823c12; }

.empty {
    padding: .8rem .85rem;
    border: 1px dashed #cbd0c0;
    border-radius: .55rem;
    background: #f6f7ef;
    color: var(--dash-muted);
    font-size: .91rem;
}

.dino-console {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(22rem, 32vw, 29rem);
    overflow: hidden;
    border: 1px solid #694b33;
    border-radius: calc(var(--dash-radius) + .16rem);
    background: linear-gradient(95deg,#1a120d 2%,#20150fea 29%,#38241955 61%,#30201522 100%),
        var(--dash-coast) right center / cover no-repeat #2a1c13;
    color: #ffffff;
}

.dino-art {
    position: absolute;
    inset: 4% 3% 4% 42%;
    display: grid;
    place-items: center;
    min-width: 0;
    pointer-events: none;
}

.dino-portrait {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1.1rem 1.05rem #001318b5);
}

.dino-art .dino-portrait {
    max-width: 38rem;
    object-position: center bottom;
}

.dino-info {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: .65rem;
    width: min(52%, 37rem);
    padding: clamp(1.15rem, 3vw, 3.15rem);
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    width: max-content;
    max-width: 100%;
    padding: .31rem .52rem;
    border: 1px solid #ffffff51;
    border-radius: .42rem;
    color: #f6f2c8;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.hero-location .dashboard-icon { color: var(--dash-yellow); }

.dino-info h2 {
    font: 400 clamp(1.8rem, 3.8vw, 4.4rem)/1 var(--dash-display);
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
}

.dino-info .reading { color: #e7edf0; font-size: .87rem; }
.dino-stats { display: grid; gap: .65rem; margin-top: .18rem; }
.growth-meter { display: grid; gap: .25rem; }
.growth-meter > span { display: flex; justify-content: space-between; gap: .5rem; color: #eaf0ed; font-size: .87rem; }
.growth-meter strong { color: var(--dash-yellow); }

.growth-meter progress {
    appearance: none;
    display: block;
    width: 100%;
    height: .48rem;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: #ffffff35;
    accent-color: var(--dash-yellow);
}

.growth-meter progress::-webkit-progress-bar { background: #ffffff35; }
.growth-meter progress::-webkit-progress-value { background: var(--dash-yellow); }
.growth-meter progress::-moz-progress-bar { background: var(--dash-yellow); }

.dino-vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .32rem; }

.dino-vitals > div {
    padding: .36rem .45rem;
    border: 1px solid #ffffff2f;
    border-radius: .48rem;
    background: #231810c2;
}

.dino-vitals dt { color: #dbe6e8; font-size: .69rem; }
.dino-vitals dd { color: #fff; font-size: clamp(.78rem, 1.18vw, 1rem); font-weight: 750; }
.hero-actions { margin-top: .45rem; }
.hero-actions .button .dashboard-icon { width: 1.1rem; height: 1.1rem; }

.quick-grid, .command-grid, .admin-actions {
    display: grid;
    gap: var(--dash-gap);
    min-width: 0;
}

.quick-grid, .admin-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.command-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.quick-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    padding: .78rem;
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    background: var(--dash-paper);
}

.quick-tile:hover { border-color: #969f79; background: #fffde9; }
.quick-tile strong, .quick-tile small { display: block; line-height: 1.25; }
.quick-tile strong { font-weight: 790; }
.quick-tile small { margin-top: .2rem; font-size: .76rem; }
.quick-tile > .dashboard-icon { color: #667051; }

.icon-square {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid #dfe3d1;
    border-radius: .55rem;
    background: #edf0df;
    color: #364b35;
}

.quick-tile:first-child .icon-square { background: #f5e1c5; border-color: #e2c69f; color: #63401f; }

.grow-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.45rem, 4vw, 3.2rem);
    border: 1px solid #614129;
    border-radius: var(--dash-radius);
    background: linear-gradient(90deg,#22170fee,#2c1f17c9 55%,#39291eaa),
        var(--dash-coast) center 67% / cover no-repeat #322218;
    color: #fff;
}

.grow-intro h2 { font: 400 clamp(1.55rem, 3vw, 3rem)/1.05 var(--dash-display); letter-spacing: -.055em; }
.grow-intro p { max-width: 36rem; margin-top: .55rem; color: #f0e1cb; }
.grow-intro > strong { color: var(--dash-yellow); font: 400 clamp(2.6rem, 7.5vw, 6.4rem)/.92 var(--dash-display); letter-spacing: -.09em; white-space: nowrap; }
.grow-intro > strong span { margin-left: .08em; font-size: .6em; }

.event {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .75rem;
    border: 1px solid var(--dash-line);
    border-radius: .6rem;
    background: #f8f9f1;
}

.event + .event { margin-top: .55rem; }
.event-mark { display: grid; grid-auto-flow: column; place-content: center; width: 3.1rem; height: 2.65rem; border-radius: .45rem; background: var(--dash-yellow); font-weight: 850; }
.event-mark span { font-size: .75em; }
.event-info { overflow-wrap: anywhere; }
.event-info small, .event-action small { display: block; }
.event-action { text-align: right; }
.event-action small { margin-top: .25rem; }

.command-intro { display: flex; gap: .6rem 1rem; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.command-card { display: flex; flex-direction: column; gap: .65rem; min-width: 0; }
.command-card > h2 + *, .command-card > p + form { margin-top: 0; }
.command-card form { display: grid; align-content: start; justify-items: start; gap: .58rem; width: 100%; }
.command-grid .command-card form { margin-top: auto; }
.command-grid .command-card label { width: 100%; }
.command-grid #command-teleport {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    align-items: center;
    gap: .35rem 1.4rem;
}
.command-grid #command-teleport form {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin: 0;
}
#command-teleport .command-state { grid-column: 1 / -1; }
#command-teleport .button.secondary:not(:disabled) { background: var(--dash-yellow); border-color: #b4834f; }
#command-teleport .button.secondary:hover:not(:disabled) { background: #e9bf89; }
.command-heading { display: flex; align-items: center; gap: .65rem; }
.command-heading h2 { overflow-wrap: anywhere; }
.command-state { align-self: start; color: var(--dash-muted); }

.command-danger { border-color: #e3c6bd; background: #fff9f4; }
.command-danger .icon-square { border-color: #e8c8c1; background: #f9e5dd; color: #8a2c21; }
.command-danger .slay-confirm { display: flex; flex-direction: row; align-items: center; gap: .52rem; font-weight: 550; }
.slay-confirm input { width: 1.05rem; height: 1.05rem; accent-color: #982e23; }
.action-empty { display: grid; justify-items: start; gap: .64rem; padding-block: 2rem; }
.action-empty > h2 + * { margin-top: 0; }

.history-tools, .history-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.history-tools { justify-content: space-between; margin-bottom: .95rem; }
.history-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: .39rem .7rem;
    border: 1px solid var(--dash-line);
    border-radius: .52rem;
    background: var(--dash-paper);
    color: var(--dash-muted);
    font-size: .88rem;
    font-weight: 750;
}

.history-tabs a:hover { background: #e8ecde; color: var(--dash-ink); }
.history-tabs a[aria-current="page"] { background: var(--dash-yellow); border-color: #b4834f; color: var(--dash-ink); }
.history-print-heading { margin-bottom: 1rem; }

.table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.table-wrap > table { width: 100%; border-collapse: collapse; font-size: .89rem; text-align: left; }
.history-table > table { min-width: 33rem; }

.table-wrap th, .table-wrap td {
    padding: .58rem .65rem;
    border-bottom: 1px solid #e1e4d8;
    vertical-align: middle;
}

.table-wrap th {
    background: #f2f4e9;
    color: #404a38;
    font-size: .71rem;
    font-weight: 790;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.table-wrap td:first-child, .table-wrap th:first-child { padding-left: .62rem; }
.table-wrap td small { display: block; }
.table-wrap tbody tr:hover { background: #f9faef; }

.state {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .23rem .5rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    background: #eff0e9;
    color: #3f4a3c;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.18;
}

.state.applied { border-color: #cee3d3; background: #e7f3e9; color: #215d3c; }
.state.queued, .state.leased, .state.uncertain { border-color: #e8dbad; background: #fff4d0; color: #69500a; }
.state.failed { border-color: #e6c3b9; background: #f9e7e1; color: #842f24; }

.species-inline { display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle; }
.species-inline img { width: 2.8rem; height: 1.7rem; object-fit: contain; }

.skin-banner-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .58rem .85rem;
    border: 1px solid var(--dash-line);
    border-radius: .55rem;
    background: #e9eddf;
    color: #344733;
    font-size: .89rem;
    font-weight: 660;
}

.skin-banner-result > span { display: inline-flex; align-items: center; gap: .45rem; }
.skin-banner-result strong:empty, [data-job-kind]:empty { display: none; }

.skin-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
    min-height: clamp(22rem, 32vw, 29rem);
    overflow: hidden;
}

.skin-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 20rem;
    padding: 1.1rem 1.3rem 4.35rem;
    background: linear-gradient(0deg,#21150ed9,transparent 45%,#583d2635),
        var(--dash-coast) 63% center / cover no-repeat #2b1d12;
}

.skin-stage .dino-portrait { position: absolute; inset: 7% 5% 15%; width: 90%; height: 78%; object-position: center bottom; }
.skin-stage-caption { position: absolute; bottom: .85rem; left: .85rem; display: grid; gap: .13rem; padding: .57rem .72rem; border-radius: .45rem; background: #251810e6; color: white; }
.skin-stage-caption strong { font-size: 1.1rem; }
.skin-stage-caption small { color: #edddc8; }
.skin-controls { display: grid; align-content: center; gap: 1.05rem; padding: clamp(1rem, 2vw, 1.65rem); }
.simple-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
.skin-region { display: grid; gap: .35rem; min-width: 0; padding: .57rem; border: 1px solid var(--dash-line); border-radius: .64rem; background: #f7f7ef; }
.skin-region-fields { display: grid; grid-template-columns: 2.35rem minmax(0,1fr); align-items: stretch; gap: .35rem; }
.skin-workbench-actions { display: grid; gap: .65rem; }
.skin-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .46rem; }
.skin-actions .button { flex: 1 1 9.5rem; }

.collection-grid, .species-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.4rem), 1fr));
    gap: .75rem;
}

.collection-card, .species-tile {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--dash-line);
    border-radius: .65rem;
    background: var(--dash-paper);
}

.collection-card { display: flex; flex-direction: column; }
.collection-info { display: flex; flex: 1; flex-direction: column; gap: .4rem; min-width: 0; padding: .78rem; overflow-wrap: anywhere; }
.collection-info p { font-size: .85rem; }
.collection-info form { margin-top: auto; }

.collection-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16/9;
    padding: .32rem;
    background: radial-gradient(ellipse at center, #e9f0e7, #d5dfd0);
    color: #637761;
}

.collection-art img { width: 100%; height: 100%; object-fit: contain; }
.collection-art .dashboard-icon { width: 2rem; height: 2rem; }

.collection-swatches { display: flex; gap: .22rem; margin: .18rem 0 .34rem; }
.collection-swatches span { flex: 1; min-height: .9rem; border: 1px solid #17191621; border-radius: .24rem; background: #e8eadf; }
.preset-card > .collection-swatches { margin: 0; gap: 0; }
.preset-card > .collection-swatches span { min-height: clamp(3.2rem, 6vw, 5.6rem); border: 0; border-radius: 0; }

.species-tile { display: flex; flex-direction: column; }

.species-tile .species-tile-art {
    position: relative;
    aspect-ratio: 3 / 2;
    padding: 0;
    overflow: hidden;
}

.species-tile-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: .48rem;
    object-fit: contain;
    object-position: center;
}

.species-no-image { display: grid; justify-items: center; gap: .35rem; font-size: .83rem; font-weight: 700; }
.species-tile-meta { display: grid; gap: .25rem; padding: .58rem .65rem .4rem; min-width: 0; }
.species-tile-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem; }
.species-tile-name h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.survival-dashboard .species-copy-name {
    width: 1.9rem;
    min-height: 1.9rem;
    padding: .28rem;
}

.survival-dashboard .species-copy-image {
    justify-self: start;
    gap: .35rem;
    min-height: 2.05rem;
    margin-top: .2rem;
    padding: .28rem .52rem;
    font-size: .79rem;
}

.species-tile form { display: grid; justify-items: start; gap: .45rem; margin-top: auto; padding: .42rem .65rem .7rem; }
.species-tile form label { width: 100%; }
.species-tile-meta small { font-size: .77rem; }
.species-search { flex: 0 1 15rem; }

.species-copy-feedback {
    position: fixed;
    z-index: 8;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: .65rem .85rem;
    border: 1px solid #383d30;
    border-radius: .58rem;
    background: var(--dash-sidebar);
    color: #fdf9f3;
    font-size: .88rem;
    font-weight: 700;
}

.species-copy-feedback:has([data-species-copy-status]:empty) { opacity: 0; pointer-events: none; }
.species-copy-feedback a { color: var(--dash-yellow); text-decoration: underline; }

/* Ficha de jogador */
.account-sheet-page {
    --dash-bg: #f1f0e6;
    --dash-paper: #fdfcf7;
    --dash-line: #dcded0;
    --dash-ink: #202721;
    --dash-muted: #58655c;
    --dash-sidebar: #1b211a;
    --dash-yellow: #f6dd58;
}

.account-sheet-page .portal-top { padding-bottom: 0; }
.account-sheet-page .account-intro { margin-top: .5rem; color: var(--dash-muted); font-size: .92rem; }

.account-sheet-layout {
    display: grid;
    grid-template-columns: minmax(15rem, .85fr) minmax(0, 1.5fr);
    gap: var(--dash-gap);
}
.account-profile-sheet, .account-connections { border-radius: 1.15rem; }
.account-profile-sheet { display: flex; flex-direction: column; overflow: hidden; }
.account-sheet-coast {
    width: 100%;
    height: 11.125rem;
    object-fit: cover;
    object-position: center 60%;
}
.account-profile-details { padding: 0 clamp(1rem, 2vw, 1.55rem) 1.35rem; }
.account-profile-details .account-profile-avatar {
    position: relative;
    width: 3.95rem;
    height: 3.95rem;
    margin: -1.75rem 0 1rem;
    border: 3px solid var(--dash-paper);
    border-radius: .95rem;
    background: #dce6cf;
    color: #26342a;
}
.account-profile-avatar svg { width: 1.75rem; height: 1.75rem; }
.account-label {
    color: var(--dash-muted);
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.account-profile-details h2 {
    margin: .3rem 0 .65rem;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}
.account-role {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .27rem .5rem;
    border: 1px solid #d8e1cc;
    border-radius: .38rem;
    background: #e7eddd;
    color: #365538;
    font-size: .76rem;
    font-weight: 700;
}
.account-access-note {
    display: flex;
    align-items: center;
    gap: .67rem;
    margin: auto clamp(1rem, 2vw, 1.55rem) 1.35rem;
    padding-top: .95rem;
    border-top: 1px solid var(--dash-line);
    font-size: .79rem;
}
.account-access-note p { color: var(--dash-muted); font-size: .72rem; }

.account-connections { min-width: 0; border: 1px solid #dedfcf; padding: 1.35rem; background: #e9e9db; }
.account-connections h2, .account-summary h2, .account-activity h2 {
    font-size: clamp(1.15rem, 1.7vw, 1.44rem);
    line-height: 1.22;
    letter-spacing: -.035em;
}
.account-connections > h2, .account-summary > h2 { margin-bottom: .83rem; }
.account-service { padding: 1.2rem 1.06rem; }
.account-service + .account-service { margin-top: .8rem; }
.account-service-heading, .account-icon-title { display: flex; align-items: center; gap: .66rem; min-width: 0; }
.account-service-heading { justify-content: space-between; flex-wrap: wrap; }
.account-icon-title > div { min-width: 0; overflow-wrap: anywhere; }
.account-service-heading h3 { font-size: 1.28rem; line-height: 1.15; letter-spacing: -.034em; }
.account-service-heading p { margin-top: .18rem; color: var(--dash-muted); font-size: .76rem; }
.account-service-icon { width: 2.7rem; height: 2.7rem; flex: none; }
.account-service-icon.steam { background: #e4ecf4; color: #203d54; border-color: #dbe6ee; }
.account-service-icon.discord { background: #eeedf9; color: #4c51a6; border-color: #e6e2f4; }
.account-link-state:not(.applied) { border-color: var(--dash-line); color: var(--dash-muted); }
.account-service-details { display: grid; align-items: center; gap: .75rem; margin-top: .9rem; }
.account-service-details.with-nickname { grid-template-columns: minmax(0, .8fr) minmax(11rem, 1.4fr); }
.account-steam-nick .account-label { display: block; font-size: .64rem; }
.account-steam-nick strong { display: block; font-size: 1.1rem; line-height: 1.28; overflow-wrap: anywhere; }
.account-provider-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    min-width: 0;
    padding: .4rem .55rem .4rem .68rem;
    border: 1px solid var(--dash-line);
    border-radius: .5rem;
    background: #f0f0e7;
}
.account-provider-id > div { min-width: 0; }
.account-provider-id small, .account-provider-id code { display: block; }
.account-provider-id small { font-size: .66rem; }
.account-provider-id code { font-size: .8rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }
.account-sheet-page .account-copy-button {
    flex: none;
    min-width: 2rem;
    min-height: 2rem;
    padding: .26rem;
    border-color: var(--dash-line);
    background: var(--dash-paper);
}
.account-copy-button:hover { outline: 1px solid #a7ab9b; }
.account-copy-status { color: var(--dash-muted); font-size: .75rem; }
.account-copy-status:not(:empty) { margin-top: .35rem; }
.account-service-connect { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.account-service-connect p { color: var(--dash-muted); font-size: .82rem; }
.account-sheet-page .account-service-connect .provider { min-height: 2.4rem; }
.account-sheet-page .provider.discord { background: #3945a2; color: #fff; border-color: #3945a2; }
.account-sheet-page .provider.discord:hover:not(:disabled) { background: #303986; }

.account-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; }
.account-summary-card { padding: 1rem 1.06rem; display: flex; flex-direction: column; align-items: flex-start; }
.account-summary-card h3, .account-activity-row strong { font-size: .94rem; }
.account-summary-card .icon-square, .account-activity-row .icon-square {
    width: 2.18rem;
    height: 2.18rem;
    flex: none;
    border-color: #e7e1d2;
    background: #f3eee1;
    color: #625324;
}
.account-summary-value { margin: .65rem 0 .78rem; overflow-wrap: anywhere; }
.account-summary-value strong { display: block; font-size: 1.52rem; letter-spacing: -.04em; line-height: 1.18; }
.account-summary-value p, .account-summary-value small { margin-top: .25rem; color: var(--dash-muted); font-size: .77rem; }
.account-summary-card > .account-action, .account-benefits { margin-top: auto; }
.account-sheet-page .account-action { min-height: 2rem; padding: .28rem .62rem; font-size: .77rem; }
.account-benefits summary { list-style: none; cursor: pointer; }
.account-benefits summary::-webkit-details-marker { display: none; }
.account-benefits p { margin-top: .55rem; color: var(--dash-muted); font-size: .82rem; }
.account-benefits .text-link { display: inline-block; margin-top: .38rem; font-size: .8rem; }

.account-activity-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; padding: .8rem 1.06rem; }
.account-activity-list { margin: 0; padding: 0; list-style: none; }
.account-activity-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) clamp(8.5rem, 13vw, 12rem) minmax(6rem, 8.5rem);
    align-items: center;
    gap: .65rem;
    padding: .62rem 1.06rem;
    border-top: 1px solid var(--dash-line);
}
.account-activity-row .state { justify-self: start; }
.account-activity-row .state.applied { border-color: #e7e1d2; background: #f5f0e4; color: #625324; }
.account-activity-row p, .account-activity-row time, .account-activity-empty { color: var(--dash-muted); font-size: .77rem; }
.account-activity-empty { padding: 0 1.06rem .82rem; }

@media (max-width: 1120px) {
    .account-connections { padding: 1rem; }
}
@media (max-width: 720px) {
    .account-sheet-layout, .account-summary-grid { grid-template-columns: minmax(0,1fr); }
    .account-sheet-coast { height: clamp(7rem, 27vw, 11rem); }
    .account-sheet-page .portal-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 465px) {
    .account-connections { padding: .75rem; }
    .account-service { padding: .8rem .68rem; }
    .account-service-details.with-nickname { grid-template-columns: minmax(0,1fr); }
    .account-activity-row { grid-template-columns: minmax(0,1fr) minmax(0,auto); gap: .28rem .6rem; }
    .account-activity-row time { grid-row: 2; grid-column: 1 / -1; padding-left: 2.84rem; }
    .account-activity-row .state { max-width: 7.4rem; }
}

.survival-dashboard label {
    display: grid;
    gap: .29rem;
    color: inherit;
    font-size: .84rem;
    font-weight: 700;
}

.survival-dashboard input, .survival-dashboard select, .survival-dashboard button { font-family: var(--dash-body); }

.survival-dashboard input:not([type=checkbox]):not([type=hidden]), .survival-dashboard select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 2.55rem;
    padding: .41rem .61rem;
    border: 1px solid #bdc6b2;
    border-radius: .43rem;
    background: #fdf9f3;
    color: var(--dash-ink);
    font-size: .89rem;
    font-weight: 550;
}

.survival-dashboard .skin-region input[type=color] { padding: .16rem; cursor: pointer; }
.survival-dashboard .skin-region input[data-palette-hex] { padding-inline: .35rem; font-family: ui-monospace, monospace; font-size: .8rem; }
.survival-dashboard input[type=file] { padding: .28rem; font-size: .74rem; }

.survival-dashboard input::file-selector-button {
    margin-right: .35rem;
    padding: .27rem .32rem;
    border: 1px solid #d5dac8;
    border-radius: .28rem;
    background: #f2f3ea;
    color: var(--dash-ink);
    font: inherit;
    cursor: pointer;
}

.fields { display: grid; justify-items: start; gap: .6rem; }
.fields label { width: 100%; }
.admin-actions section > form { margin-top: 1rem; }

.settings-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem),1fr));
    align-items: end;
    gap: .65rem;
}

.destination-fields { grid-template-columns: minmax(10rem, 1.25fr) repeat(3,minmax(6rem,1fr)) auto; }
.interval-fields { grid-template-columns: repeat(3, minmax(0,1fr)); }
.settings-submit { grid-column: 1 / -1; padding-top: .25rem; }
.destination, .admin-event { padding: .82rem; border: 1px solid var(--dash-line); border-radius: .6rem; background: #f7f8f0; }
.destination + .destination { margin-top: .65rem; }
.destination > form + form { margin-top: .55rem; }
.admin-event { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; }
.admin-event + .admin-event { margin-top: .52rem; }
.admin-event small { display: block; }

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--dash-line);
    color: var(--dash-muted);
    font-size: .8rem;
    font-weight: 620;
}

.site-footer div { display: flex; gap: .72rem; flex-wrap: wrap; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 1250px) {
    .destination-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .destination-fields label:first-child { grid-column: 1 / -1; }
    .overview-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1320px) {
    .dashboard-profile:has(.dashboard-steam-id) .profile-icon { display: none; }
}

@media (max-width: 940px) {
    .dashboard-shell { grid-template-columns: minmax(0,1fr); }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: auto minmax(0,1fr);
        gap: .72rem;
        height: auto;
        padding: .65rem .85rem .5rem;
        overflow: visible;
    }

    .dashboard-logo { margin: .13rem 0; align-self: center; }
    .dashboard-logo img { width: 5.35rem; }
    .sidebar-bottom { grid-area: 1 / 2; justify-content: flex-end; margin: 0; padding: 0; border: 0; }
    .dashboard-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem; padding-bottom: .22rem; }
    .dashboard-nav-group { display: flex; flex-wrap: wrap; gap: .23rem; }
    .dashboard-nav-group > span { display: none; }
    .dashboard-nav a { min-height: 2.13rem; padding: .4rem .49rem; font-size: .82rem; white-space: nowrap; }
    .dashboard-nav .dashboard-icon { width: .95rem; height: .95rem; }
    .dashboard-profile { max-width: min(100%, 13rem); }
    .dashboard-profile .profile-icon { display: none; }
    .portal-main { padding: .9rem max(.9rem, 3vw) 1.25rem; }
    .portal-top { flex-wrap: wrap; }
}

@media (max-width: 710px) {
    .portal-top { align-items: flex-start; padding-bottom: .15rem; }
    .top-metrics { gap: .35rem; }
    .top-metric { min-height: 2.3rem; padding: .36rem .47rem; }
    .top-metric strong { font-size: .78rem; }
    .top-metric small { font-size: .62rem; }

    .dino-console {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        background: linear-gradient(0deg,#0c252d 10%,#0c252dcf 50%,#0c252d22 100%),
            var(--dash-coast) 70% 48% / cover no-repeat #2a1c13;
    }

    .dino-art { position: relative; inset: auto; height: clamp(9.25rem, 40vw, 17rem); padding: .44rem .8rem 0; }
    .dino-art:has(img[hidden]) { height: clamp(5.5rem, 24vw, 9rem); }
    .dino-info { width: 100%; padding: .85rem 1rem 1.15rem; }
    .dino-info h2 { font-size: clamp(1.75rem, 7vw, 3.25rem); }
    .dino-vitals dd { font-size: .93rem; }
    .quick-grid, .skin-workbench, .dashboard-columns { grid-template-columns: minmax(0,1fr); }
    .command-grid { grid-template-columns: minmax(0,1fr); }
    .command-grid #command-teleport { display: flex; }
    .command-grid #command-teleport form { grid-template-columns: minmax(0, 1fr) auto; }
    .quick-tile { padding: .6rem; }
    .quick-tile .icon-square { width: 2.1rem; height: 2.1rem; }
    .admin-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .skin-stage { min-height: clamp(13rem, 52vw, 22rem); }
    .library-heading { flex-wrap: wrap; }
    .species-search { flex-basis: 100%; }
}

@media (max-width: 465px) {
    .portal-top { gap: .6rem; }
    .portal-top h1 { width: 100%; }
    .command-grid, .admin-actions { grid-template-columns: minmax(0,1fr); }
    .destination-fields, .interval-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .destination-fields .button { grid-column: 1 / -1; justify-self: start; }
    .section-heading { flex-wrap: wrap; }
    .grow-intro { align-items: start; }
    .grow-intro p { font-size: .88rem; }
    .event { grid-template-columns: auto minmax(0,1fr); }
    .event-action { grid-column: 2; text-align: left; }

    .history-summary table, .history-summary tbody { display: block; }
    .history-summary thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    .history-summary tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .52rem; padding: .65rem 0; border-bottom: 1px solid var(--dash-line); }
    .history-summary td, .history-summary td:first-child { display: grid; justify-items: start; gap: .18rem; padding: 0; border: 0; }
    .history-summary td::before { content: attr(data-label); color: var(--dash-muted); font-size: .71rem; font-weight: 720; }
}

@media print {
    @page { margin: 13mm; }
    .history-print, .history-print .dashboard-shell, .history-print .portal-main,
    .history-print .history-panel { display: block; margin: 0; padding: 0; background: white; color: #111; }
    .history-print .history-panel { border: 0; box-shadow: none; }
    .history-print .sidebar, .history-print .portal-top, .history-print .site-footer,
    .history-print .history-tools, .history-print .notice, .history-print .dashboard-skip,
    .history-print .species-inline img { display: none; }
    .history-print .history-table { overflow: visible; }
    .history-print .history-table table { min-width: 0; }
    .history-print .state { background: transparent; color: inherit; border: 0; padding: 0; }
    .history-print th, .history-print td { background: white; color: #111; border-bottom-color: #bbb; }
    .history-print thead { display: table-header-group; }
    .history-print tr { break-inside: avoid; }
}

.dino-action-status {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.dino-action-status p { margin: 0; }
.dino-action-status form { margin: 0; }
.hero-actions form { margin: 0; }
.hero-actions form .button.secondary { background: var(--dash-paper); }
.dino-diet { margin: .95rem 0 0; }
.coins-hero > strong { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.coins-hero strong span { font-size: .35em; }
.coins-hero .hero-location { margin-bottom: .5rem; }
.coins-hero h2 { margin: 0; }
.portal-action-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.garage-grid .collection-art img { object-fit: contain; width: 100%; height: 100%; }
.account-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.admin-overview-grid, .population-layout {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: var(--dash-gap);
    align-items: start;
}
.admin-overview-card h3 { margin: 0; }
.admin-overview-card > strong { display: block; font: 400 clamp(1.4rem,2.7vw,2.75rem)/1.12 var(--dash-display); }
.admin-overview-card > p { margin: 0 0 .65rem; }
.population-layout { grid-template-columns: minmax(0, 2.25fr) minmax(13rem,1fr); }
.population-map { margin: 0; min-width: 0; }
.population-map img { display: block; width: 100%; height: auto; border-radius: .58rem; }
.population-map [hidden], .dino-diet[hidden] { display: none; }
.population-map figcaption { margin-top: .7rem; color: var(--dash-muted); font-size: .85rem; }
.population-map figcaption a { color: var(--dash-ink); text-decoration: underline; margin-left: .45rem; }
.population-species { margin: 0; padding: 0; list-style: none; }
.population-species li { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--dash-line); }
.population-species li:last-child { border-bottom: 0; }
.diet-selection { border: 1px solid var(--dash-line); border-radius: .58rem; margin: .5rem 0 .7rem; padding: .45rem .65rem; }
.diet-selection legend { padding: 0 .25rem; color: var(--dash-muted); }
.survival-dashboard .diet-selection label { display: flex; align-items: center; gap: .45rem; padding: .22rem 0; }
.survival-dashboard .diet-selection input { width: auto; min-height: 0; margin: 0; accent-color: #a98700; }
@media (max-width: 780px) {
    .population-layout, .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
.hero-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .6rem; }
.coins-hero > strong { white-space: normal; }
