
dialog.modal--v2 .modal-wood-head + .modal__body { border-top: 0; }
dialog.modal .modal-wood-head { border-bottom-color: #1a0e06; }
/* Default pop-up bed: dotted night slate. Modals with their own scene or parchment out-weigh this. */
dialog.modal .modal__panel.pixel-frame {
  background: var(--modal-bed);
}
dialog.modal .modal__panel.pixel-frame > .modal__body {
  background: transparent;
}
/* Default sunken sub-container for the shared pop-up tiles. */
dialog.modal :is(
  .earn-slot,
  .skill-tile,
  .fc-card-col,
  .steward-stats__tile,
  .record-tile,
  .chron-item,
  .wx-strip,
  .skill-sheet__plate,
  .skill-sheet__equip,
  .skill-stat,
  .skill-flock li
) {
  background-color: var(--inset-bg);
  border: var(--inset-border);
  box-shadow: var(--inset-shadow);
}
dialog.modal--v2 .modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.modal.modal--skills .modal__body,
dialog.modal.modal--chikling .modal__body,
dialog.modal.modal--forecast .modal__body {
  background: transparent;
}
.v2-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.v2-col { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
/* Steward stacks on a phone. Forecast stacks so the slots are not clipped. */
dialog.modal--chikling .v2-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 45rem) {
  dialog.modal--chikling .v2-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
}
@media (max-width: 45rem) {
  dialog.modal--forecast .v2-cols,
  dialog.modal--forecast .v2-cols--forecast {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }
  dialog.modal--forecast .modal__body { gap: 0.55rem; padding: 0.75rem 0.85rem 0.9rem; }
  dialog.modal--forecast .fc-popup-strip .fc-card-col { min-height: 0; }
  dialog.modal--forecast .fc-card-col__bars { margin-top: 0.25rem; }
  dialog.modal--forecast .fc-next-pill { margin-bottom: 0.15rem; }
}
@media (min-width: 45rem) {
  .v2-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
}
.v2-label { margin: 0.1rem 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.steward-stats { display: flex; flex-direction: column; gap: 0.45rem; }
.steward-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.steward-stats__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(14 9 6 / 55%);
  box-shadow: inset 0 3px 9px rgb(0 0 0 / 65%);
}
.steward-stats__tile span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.steward-stats__tile b {
  font-size: 0.98rem;
  line-height: 1.1;
  color: #f6e6c0;
}
.steward-stats__skills { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.steward-stats__skills li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 6px 8px;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(14 9 6 / 55%);
}
.steward-stats__skills b { font-weight: 700; color: #f3cf74; }
.record-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.record-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(14 9 6 / 55%);
  box-shadow: inset 0 3px 9px rgb(0 0 0 / 65%);
}
.record-tile > .icon,
.record-tile > svg {
  flex: none;
  width: 28px;
  height: 28px;
}
.record-tile div { display: flex; flex-direction: column; min-width: 0; }
.record-tile b { font-size: 1.05rem; line-height: 1.1; color: #f6e6c0; }
.record-tile span { font-size: 0.72rem; color: var(--muted); }
dialog.modal--chikling .chikling-idcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(14 9 6 / 45%);
  box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%);
}
dialog.modal--chikling .chikling-idcard__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
dialog.modal--chikling .chikling-name {
  font-size: 1.5rem;
  white-space: normal;
  -webkit-line-clamp: 3;
}
dialog.modal--chikling .chikling-bars { display: flex; flex-direction: column; gap: 8px; }
dialog.modal--chikling .affinity-pair {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgb(214 180 94 / 28%);
}
.v2-viewall { align-self: flex-start; font-size: 0.85rem; color: #f3cf74; text-decoration: none; }
.v2-viewall:hover { text-decoration: underline; }

/* ---------- Suggestions pop-up: wide two columns on desktop, bottom sheet on phones ---------- */
dialog.modal.modal--support { width: min(36rem, calc(100vw - 1.5rem)); max-width: min(36rem, calc(100vw - 1.5rem)); }
.support-form__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.support-form__aside,
.support-form__form {
  border: var(--inset-border, 1px solid #1a0e06);
  border-radius: 3px;
  background: var(--inset-bg, rgb(14 9 6 / 55%));
  box-shadow: var(--inset-shadow, inset 0 3px 9px rgb(0 0 0 / 65%));
}
.support-form__aside { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; padding: 0.75rem; }
.support-form__art { display: none; width: 100%; max-width: 12rem; height: auto; aspect-ratio: 240 / 320; align-self: center; border-radius: 4px; box-shadow: 0 2px 0 #0008, inset 0 0 0 1px #5a78a044; }
.support-form__lead { margin: 0; line-height: 1.4; color: #e8dcc4; }
.support-form__tips { display: none; margin: 0; padding: 0; list-style: none; gap: 0.4rem; }
.support-form__tips li { padding: 0.5rem 0.7rem; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(14 9 6 / 55%); box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%); font-size: 0.88rem; color: #cdbf9f; }
.support-form__tips b { display: block; color: #f3cf74; }
.support-form__form { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; padding: 0.75rem; }
.support-form__who {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f0e2c4;
}
.support-form__who legend { width: 100%; padding: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ecd28e; }
.support-form__who label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.support-form__field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; color: #f0e2c4; }
.support-form__field--grow { flex: 1 1 auto; }
.support-form__field select,
.support-form__field textarea { width: 100%; min-width: 0; padding: 0.6rem 0.7rem; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(14 9 6 / 62%); color: #f6ecd0; font: 400 1rem var(--font-body, Georgia, serif); box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%), 0 1px 0 rgb(255 220 170 / 22%); }
.support-form__field textarea { flex: 1 1 auto; min-height: 9rem; resize: vertical; }
.support-form__field select:focus,
.support-form__field textarea:focus { outline: 2px solid #f3cf74; outline-offset: 1px; }
.support-form__field select option { background: #1a1410; color: #f6ecd0; }
.support-form__status { margin: 0; font-size: 0.88rem; line-height: 1.35; }
.support-form__status[data-ok="1"], .support-form__status.is-ok { color: #6fd08a; }
.support-form__status[data-ok="0"], .support-form__status.is-err { color: #ff8a76; }
.support-form__actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
@media (min-width: 45rem) {
  .support-form__cols { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0.75rem; align-items: stretch; }
  .support-form__art { display: block; }
  .support-form__tips { display: grid; }
}
@media (max-width: 45rem) {
  /* Phones: the form leads; keep the sheet short enough to leave room for the keyboard. */
  .support-form__aside { gap: 0.4rem; }
  .support-form__field textarea { min-height: 7rem; font-size: 1rem; }
  .support-form__actions .btn { flex: 1 1 0; min-height: 44px; }
}

/* Phones: short sheet, no swipe animation. Side inset lives in the 1100px rule below. */
@media (max-width: 45rem) {
  dialog.modal--v2,
  dialog.modal--v2[data-size] {
    height: fit-content;
    max-height: calc(100dvh - 1.5rem);
    margin: 0;
    border-radius: 0.7rem;
    animation: none;
  }
  dialog.modal--v2 .modal__panel {
    max-height: calc(100dvh - 1.5rem);
    overflow: auto;
  }
  dialog.modal--v2.is-dragging { animation: none; transition: none; }
  dialog.modal--v2.is-settling { transition: transform 0.18s ease-out; }
}

/* ---------- Village Chronicle card + pop-up ---------- */
.news-unread-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #d8402a; box-shadow: 0 0 0 2px #1a0e06; }
.news-unread-dot[hidden] { display: none; }
.chron-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chron-item { position: relative; padding: 0.6rem 0.75rem; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(14 9 6 / 55%); box-shadow: inset 0 3px 9px rgb(0 0 0 / 65%); }
.chron-item b { display: block; font-size: 0.98rem; line-height: 1.2; }
.chron-item time { display: block; margin-top: 0.1rem; font-size: 0.76rem; color: var(--muted); }
.chron-item p { margin: 0.3rem 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.chron-item.is-new::after { content: "New"; position: absolute; top: 0.5rem; right: 0.6rem; font-size: 0.68rem; font-weight: 700; color: #1a0e06; background: #f3cf74; padding: 0.05rem 0.35rem; border-radius: 3px; }

/* ---------- Your Skills pop-up ---------- */
.wx-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(14 9 6 / 55%);
  box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%);
  font-size: 0.84rem;
  color: #cdbf9f;
}
.wx-strip__glyph {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}
.wx-strip__glyph svg { width: 100%; height: 100%; }
.wx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  border: 1px solid #1a0e06;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.wx-chip--up { color: #a4e88c; background: rgb(63 138 74 / 22%); }
.wx-chip--down { color: #ff9c86; background: rgb(138 58 42 / 22%); }
.skills-all:active { transform: translateY(1px); }
.skills-all:focus-visible { outline: 3px solid #f3cf74; outline-offset: 2px; }
/* Your Skills caps at 3 columns. Phones use 2. */
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.skill-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgb(255 220 160 / 6%), transparent 40%),
    rgb(12 18 36 / 72%);
  box-shadow: inset 0 0 0 1px rgb(214 180 94 / 35%), inset 0 3px 9px rgb(0 0 0 / 55%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
dialog.modal .skills-grid .skill-tile {
  --skill-color: #e2d9bd;
  align-items: stretch;
  gap: 4px;
  padding: 6px 10px 7px 12px;
  text-align: left;
  background: linear-gradient(180deg, #34437a 0%, #26325f 100%);
  border: 1px solid #070a18;
  box-shadow:
    inset 3px 0 0 var(--skill-color),
    inset 0 1px 0 rgb(255 255 255 / 20%),
    inset 0 -2px 0 rgb(0 0 0 / 32%),
    0 2px 0 #04060f;
}
dialog.modal .skills-grid .skill-tile:hover { filter: brightness(1.12); border-color: #070a18; }
dialog.modal .skills-grid .skill-tile:active {
  transform: translateY(1px);
  box-shadow: inset 3px 0 0 var(--skill-color), inset 0 1px 0 rgb(255 255 255 / 14%), 0 1px 0 #04060f;
}
dialog.modal .skills-grid .skill-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--skill-color, #e2d9bd) 32%, transparent), transparent 70%),
    rgb(5 7 15 / 42%);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 8%);
}
dialog.modal .skills-grid .skill-tile__name {
  font-size: 1rem;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgb(0 0 0 / 60%);
}
dialog.modal .skills-grid .skill-tile__lv { color: #e2d9bd; font-size: 0.8rem; }
dialog.modal .skills-grid .skill-tile__xp { color: #b9b6c8; font-size: 0.74rem; }
dialog.modal .skills-grid .skill-tile__bar { width: 100%; height: 7px; background: #070a18; }
dialog.modal .skills-grid .skill-tile__bar i { background: var(--skill-color); }
.skill-tile:hover { border-color: rgb(214 180 94 / 45%); }
.skill-tile:active { transform: translateY(1px); }
.skill-tile:focus-visible { outline: 3px solid #f3cf74; outline-offset: 2px; }
.skill-tile__top { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.skill-tile__name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-tile__row { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.skill-tile__lv { font-weight: 700; color: #f3cf74; }
.skill-tile__xp { color: var(--muted); }
.skill-tile__bar { height: 6px; border: 1px solid #000; border-radius: 2px; background: #05070f; overflow: hidden; }
.skill-tile__bar i { display: block; height: 100%; background: linear-gradient(180deg, #7ac07a, #3a8a4a); }
@media (max-width: 45rem) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0.16rem;
    padding: 0.35rem 0.4rem;
  }
  .skill-tile__top,
  .skill-tile__row { display: contents; }
  .skill-tile__name,
  dialog.modal .skills-grid .skill-tile__name {
    grid-column: 2 / -1;
    grid-row: 1;
    font-size: 0.82rem;
    line-height: 1.15;
  }
  .skill-icon,
  dialog.modal .skills-grid .skill-icon {
    grid-column: 1;
    grid-row: 1;
    width: 1.15rem;
    height: 1.15rem;
  }
  .skill-tile .skill-icon svg,
  .skill-tile .skill-icon .icon { width: 100%; height: 100%; }
  .skill-tile__lv { grid-column: 1; grid-row: 2; justify-self: start; align-self: center; }
  .skill-tile__bar,
  dialog.modal .skills-grid .skill-tile__bar { grid-column: 2; grid-row: 2; width: auto; align-self: center; }
  .skill-tile__xp,
  dialog.modal .skills-grid .skill-tile__xp { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; font-size: 0.66rem; }
}
dialog.modal .skills-grid .skill-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.4rem;
  row-gap: 0.22rem;
}
dialog.modal .skills-grid .skill-tile__top,
dialog.modal .skills-grid .skill-tile__row { display: contents; }
dialog.modal .skills-grid .skill-icon { grid-column: 1; grid-row: 1; width: 1.45rem; height: 1.45rem; }
dialog.modal .skills-grid .skill-tile__name { grid-column: 2 / -1; grid-row: 1; }
dialog.modal .skills-grid .skill-tile__lv { grid-column: 1; grid-row: 2; align-self: center; }
dialog.modal .skills-grid .skill-tile__bar { grid-column: 2; grid-row: 2; width: auto; align-self: center; }
dialog.modal .skills-grid .skill-tile__xp { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; }
.wx-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.wx-badge--up { color: #8fe07a; }
.wx-badge--down { color: #e08a5a; }

/* Photo banners pulled from the Coop v3 demo headers. */
dialog.modal--forecast .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/forecast.webp") center / cover no-repeat;
}
dialog.modal--skills .modal-wood-head,
dialog.modal--skill-detail .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/skills.webp") center / cover no-repeat;
}
dialog.modal--objectives .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/checkin.webp") center / cover no-repeat;
}
dialog.modal--achievements .modal-wood-head,
dialog.modal--eggpower .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/eggpower.webp") center / cover no-repeat;
}
dialog.modal--chikling .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/chikling.webp") center / cover no-repeat;
}
dialog.modal.player-pop .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/player.webp") center / cover no-repeat;
}
dialog.modal--chronicle .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/chronicle.webp") center / cover no-repeat;
}
dialog.modal.logout-confirm .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/logout.webp") center / cover no-repeat;
}
.modal-wood-head__title-row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.modal-wood-head__sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f6e6c0;
  text-shadow: 0 1px 0 rgb(0 0 0 / 80%);
}
dialog.modal--skills .modal-wood-head__title-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}
.skills-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.skills-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(214 180 94 / 70%);
  background: rgb(18 10 4 / 62%);
  color: #f6e6c0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgb(0 0 0 / 75%);
}

/* Skill detail sheet · level, equipped type, locations. */
.skill-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.85rem 1.15rem;
  align-items: start;
}
.skill-sheet__main { display: flex; flex-direction: column; gap: 0.85rem; }
.skill-sheet__side { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.skill-sheet__plate,
.skill-sheet__equip,
.skill-stat {
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(10 16 32 / 72%);
  box-shadow: inset 0 0 0 1px rgb(214 180 94 / 28%);
}
.skill-sheet__plate { padding: 0.75rem 0.85rem; }
.skill-sheet__plate b { display: block; font-size: 1.15rem; }
.skill-sheet__plate em { float: right; font-style: normal; color: var(--muted); font-size: 0.78rem; }
.skill-sheet__xp { display: flex; justify-content: space-between; margin-top: 0.35rem; font-size: 0.78rem; color: #d8c8a8; }
.skill-sheet__equip { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.65rem 0.8rem; }
.skill-sheet__equip b { display: block; }
.skill-sheet__equip span { color: var(--muted); font-size: 0.78rem; }
.skill-sheet__bonus { color: #8fe07a; font-weight: 800; }
.skill-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0; }
.skill-stat { padding: 0.55rem 0.4rem; text-align: center; }
.skill-stat b { display: block; color: #f3cf74; font-size: 1.05rem; }
.skill-stat span { display: block; margin-top: 0.15rem; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skill-flock { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.skill-flock li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.15rem 0.45rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(10 16 32 / 72%);
}
.skill-flock em { grid-column: 2; font-style: normal; font-size: 0.72rem; color: var(--muted); }
.skill-flock strong { color: #8fe07a; font-size: 0.82rem; }
.skill-back {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: linear-gradient(180deg, #5a3a22, #3a2414);
  color: #f6e6c0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 220 170 / 28%), 0 2px 0 #04060f;
}
.skill-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid #000;
  border-radius: 3px;
  background: linear-gradient(180deg, #222d52, #182041);
  box-shadow: inset 4px 0 0 var(--skill-color, #e2d9bd), inset 0 1px 0 rgb(255 255 255 / 14%), 0 2px 0 #04060f;
}
.skill-hero__icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid #1a0e06;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--skill-color, #e2d9bd) 40%, transparent), rgb(10 6 3 / 78%) 78%);
  box-shadow: inset 0 3px 8px rgb(0 0 0 / 60%);
}
.skill-hero__icon .job-icon,
.skill-loc__icon .job-icon,
dialog.modal .skills-grid .skill-icon .job-icon,
.skill-icon--inline .job-icon {
  width: 78%;
  height: 78%;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.skill-icon--inline .job-icon { width: 1.55rem; height: 1.55rem; }
.skill-hero__main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.skill-hero__lvl { display: flex; justify-content: space-between; align-items: baseline; }
.skill-hero__lvl b { font-size: 1.35rem; color: var(--cream, #f6e7c1); }
.skill-hero__lvl span { color: #d9c9a0; font-size: 0.9rem; }
.skill-locs { display: grid; gap: 8px; }
.skill-loc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #1a0e06;
  border-radius: 3px;
  background: rgb(14 9 6 / 55%);
  box-shadow: inset 0 3px 9px rgb(0 0 0 / 45%);
}
.skill-loc__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--skill-color, #e2d9bd) 32%, transparent), transparent 70%);
}
.skill-loc__text { display: flex; flex-direction: column; min-width: 0; }
.skill-loc__text b { font-size: 0.98rem; }
.skill-loc__text small { font-size: 0.76rem; color: var(--muted); }
.skill-loc__amt { font-size: 1.15rem; font-weight: 700; color: #79d164; }
@media (max-width: 720px) {
  .skill-sheet { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  dialog.modal:not(.modal--start),
  dialog.modal:not(.modal--start)[data-size] {
    top: 50%; left: 0.4rem; right: 0.4rem; bottom: auto;
    width: auto; max-width: none; translate: 0 -50%; margin: 0;
  }
}
