:root {
  --desk: #3b6ea5;
  --body-bg: #f4f7fc;
  --panel-bg: #ffffff;
  --panel-line: #d4dbe8;
  --tile-bg: #e1e9f6;
  --ink: #1a1f26;
  --ink-soft: #55606d;
  --ink-faint: #8a94a3;
  --accent: #1e395b;
  --link: #0a5ea8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px 40px;
  min-height: 100vh;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background-color: var(--desk);
  background-image: url("bg.gif");
  background-size: 75px 75px;
  background-attachment: fixed;
}

::selection {
  background: var(--desk);
  color: #fff;
}


.page {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.window-body {
  padding: 14px;
  background-color: var(--body-bg);
  color: var(--ink);
}

.rule {
  border: none;
  border-top: 1px solid var(--panel-line);
  margin: 12px 0;
}

.mono {
  font-family: "Consolas", "Courier New", monospace;
}

.unset {
  color: var(--ink-faint);
  font-style: italic;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
}

.hint {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
}

#gb-name:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.gb-name-feedback {
  margin: 5px 0 0;
  min-height: 14px;
}

.gb-username-input,
#gb-msg {
  display: block;
  width: 100%;
}

#gb-msg {
  min-height: 78px;
  resize: vertical;
}

.gb-owner-access {
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid var(--panel-line);
  background: var(--panel-bg);
}

.gb-owner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

#gb-owner-feedback {
  min-height: 14px;
  margin: 6px 0 0;
}


.header-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 4px;
  border: 1px solid #a0a0a0;
  box-shadow:
    inset 0 0 3px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  image-rendering: pixelated;
}

.display-name {
  margin: 14px 0 2px;
  font-size: 22px;
}

.tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: italic;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
}

.meta-row .chip {
  padding: 2px 8px;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  background: var(--panel-bg);
  color: var(--ink-soft);
}

.mood-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.mood-row img {
  display: block;
}

.badge-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.badge-wall img {
  width: 88px;
  height: 31px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
}

.badge-wall a:hover img {
  filter: brightness(1.12);
}


.about p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.about p + p {
  margin-top: 8px;
}


.link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  color: var(--ink) !important;
  cursor: pointer;
  border: 1px solid #707070;
  border-radius: 3px;
  background: linear-gradient(180deg, #f2f2f2 0%, #ebebeb 50%, #dddddd 51%, #cfcfcf 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.link-btn:hover {
  text-decoration: none;
  border-color: #3c7fb1;
  background: linear-gradient(180deg, #eaf6fd 0%, #d9f0fc 50%, #bee6fd 51%, #a7d9f5 100%);
}

.link-btn:active {
  border-color: #2c628b;
  background: linear-gradient(180deg, #e5f4fc 0%, #c4e5f6 50%, #98d1ef 51%, #68b3db 100%);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.25);
}

.link-btn .glyph {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.link-btn .label {
  font-weight: 600;
}

.link-btn .handle {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.details-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--panel-line);
  vertical-align: top;
}

.details-table tr:last-child td {
  border-bottom: none;
}

.details-table td:first-child {
  width: 32%;
  background-color: var(--tile-bg);
  color: var(--accent);
  border-right: 1px solid var(--panel-line);
  white-space: nowrap;
  font-weight: bold;
}

.details-table td:last-child {
  background-color: var(--panel-bg);
}


#discord-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-container {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

#avatar {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid #999;
  background: var(--tile-bg);
  display: block;
}

#avatar-decoration {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  display: none;
  pointer-events: none;
}

.user-info {
  min-width: 0;
}

#username {
  font-weight: bold;
  font-size: 16px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

#status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7f8c8d;
  flex-shrink: 0;
}

#activities {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

#activity-window {
  display: flex;
  flex-direction: column;
}

#activity-window > .window-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.activity-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.activity {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  border-radius: 3px;
}

.img-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.activity-image {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  display: block;
  object-fit: cover;
}

.small-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: #fff;
}

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-type {
  font-size: 10px;
  font-weight: bold;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.activity-title {
  font-weight: 600;
  font-size: 13px;
  margin-top: 2px;
}

.activity-details {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.rpc-time-text {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  color: var(--ink-soft);
}

.idle-note {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.socket-note {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--ink-faint);
  font-family: "Consolas", "Courier New", monospace;
}

[role="progressbar"].is-paused > div {
  background: linear-gradient(
    to bottom,
    #ffeb9c 0%,
    #f3b110 40%,
    #e09900 60%,
    #b87b00 100%
  ) !important;
  background-color: #f3b110 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[role="progressbar"].animate.is-paused > div::after,
[role="progressbar"].animate.is-paused::after {
  animation: none !important;
  display: none !important;
}


.entries-container {
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-entry {
  background: var(--panel-bg);
  padding: 6px 8px;
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--accent);
  position: relative;
}

.gb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-right: 18px;
}

.gb-name {
  font-weight: bold;
  color: var(--accent);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.gb-unverified {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 4px;
  border: 1px solid #a78a5e;
  color: #755a32;
  font-size: 9px;
  font-weight: normal;
  text-transform: uppercase;
  vertical-align: 1px;
}

.gb-time {
  font-size: 10px;
  color: var(--ink-faint);
  font-family: "Consolas", "Courier New", monospace;
  white-space: nowrap;
}

.gb-msg {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.gb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  min-width: 0;
  box-shadow: none;
}

.gb-del:hover {
  color: #c0392b;
}

.gb-empty {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}


.footer {
  text-align: center;
  color: #eaf1fb;
  font-size: 12px;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.footer em {
  color: #fff;
}

.footer .sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: #cfdff2;
  cursor: pointer;
}


@media (max-width: 480px) {
  body {
    padding: 14px 10px 30px;
  }

  .link-btn .handle {
    display: none;
  }
}

.custom-status-text {
  font-size: 16px;
  color: #444;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-emoji {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

#last-update {
    color: black;
}
.mod-window {
  position: relative;
}

#downloads-window.has-visible-splash {
  position: relative;
  z-index: 9999;
}

.splash {
  position: absolute;
  top: 24px;
  right: 80px;
  z-index: 2;
  max-width: 60%;
  color: #ffff00;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  text-shadow: 1px 1px 0 #000000;
  white-space: nowrap;
  user-select: none;
  transform: translate(50%, -50%) rotate(20deg);
  animation: splash-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes splash-pulse {
  from { transform: translate(50%, -50%) rotate(20deg) scale(1); }
  to   { transform: translate(50%, -50%) rotate(20deg) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .splash { animation: none; }
}

/* The desktop: the original Windows 7 wallpaper, with Explorer-like panes. */
:root {
  --desk: #155a87;
  --body-bg: #f6f9fc;
  --panel-bg: #ffffff;
  --panel-line: #c4d2df;
  --tile-bg: #edf3f9;
  --ink: #1b2732;
  --ink-soft: #536675;
  --ink-faint: #758796;
  --accent: #1b527d;
  --link: #075da5;
}

body {
  padding: 26px 18px 42px;
  background-color: #155a87;
  background-image:
    linear-gradient(180deg, rgba(7, 35, 59, 0.04), rgba(5, 25, 42, 0.18)),
    url("bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

::selection {
  background: #17669d;
  color: #fff;
}

.page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: min(1100px, calc(100% - 36px));
  max-width: none;
  margin: 24px auto 26px;
}

.page > .window {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.interest-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.interest-stack > .window {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
}

.interest-stack > .window > .window-body {
  overflow: auto;
}

#profile-window,
.footer {
  grid-column: 1 / -1;
}

#about-window { grid-column: span 8; }
#visits-window { grid-column: span 4; }
#links-window { grid-column: span 5; }
#photography-window { grid-column: span 7; }
#downloads-window,
#activity-window { grid-column: span 6; }
.interest-stack { grid-column: span 6; }
#guestbook-window { grid-column: span 7; }

.title-bar {
  min-height: 28px;
}

.title-bar-text {
  font-size: 13px;
  font-weight: 600;
}

.window-body {
  min-width: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.97));
}

.header-body {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "avatar tagline"
    "avatar meta"
    "avatar mood"
    "avatar badges"
    "nav nav";
  align-items: center;
  column-gap: 20px;
  row-gap: 3px;
  min-height: 204px;
  padding: 20px 26px 16px;
  text-align: left;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 252, 0.96) 72%, rgba(220, 239, 250, 0.93));
}

.profile-avatar {
  grid-area: avatar;
  align-self: center;
  width: 132px;
  height: 132px;
  border: 1px solid #91a9bd;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(28, 56, 78, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.78);
  image-rendering: auto;
}

.display-name {
  grid-area: name;
  margin: 0;
  color: #183b56;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
}

.tagline {
  grid-area: tagline;
  margin: 0;
  color: #526879;
  font-size: 13px;
  font-style: normal;
}

.meta-row {
  grid-area: meta;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 3px;
}

.meta-row .chip {
  padding: 2px 7px;
  border: 1px solid #bfd0df;
  border-radius: 2px;
  background: linear-gradient(#fff, #edf4fa);
  color: #435e73;
}

.mood-row {
  grid-area: mood;
  margin-top: 2px;
}

.badge-wall {
  grid-area: badges;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 5px;
}

.quick-links {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(117, 151, 178, 0.34);
  font-size: 12px;
}

.quick-links a {
  color: var(--link);
  text-decoration: none;
}

.quick-links a:hover {
  color: #003f73;
  text-decoration: underline;
}

.quick-links a:focus-visible,
.link-btn:focus-visible {
  outline: 1px dotted #174f78;
  outline-offset: 2px;
}

.about p {
  font-size: 13px;
  line-height: 1.6;
}

#site-visitors {
  display: flex;
  align-items: center;
  min-height: 54px;
  color: #324c62;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
}

.link-list {
  gap: 6px;
}

.link-btn {
  min-height: 33px;
  padding: 7px 10px;
  border: 1px solid #8c9eaf;
  border-radius: 2px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f2f5f7 48%, #e6eaee 51%, #edf0f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 1px rgba(42, 64, 82, 0.08);
  color: var(--ink) !important;
  font-size: 12px;
}

.link-btn:hover {
  border-color: #62a0c8;
  background: linear-gradient(180deg, #f8fdff 0%, #e8f6fc 48%, #d3edf9 51%, #e2f3fa 100%);
}

.link-btn:active {
  border-color: #4f88ad;
  background: linear-gradient(180deg, #d6ebf7, #b9ddef);
  box-shadow: inset 0 1px 3px rgba(35, 75, 102, 0.2);
}

.link-btn .label {
  font-weight: 600;
}

.link-btn .handle {
  color: #5b6c79;
}

#photography-window .window-body > p:first-child {
  margin-top: 0;
}

.details-table {
  font-size: 12px;
}

.details-table td {
  padding: 7px 9px;
  border-bottom-color: #d4dfe8;
}

.details-table td:first-child {
  background: linear-gradient(90deg, #edf3f8, #f4f7fa);
  color: #375a75;
  border-right-color: #d4dfe8;
}

.details-table td:last-child {
  background: rgba(255, 255, 255, 0.88);
}

#avatar {
  border-color: #aab9c6;
  border-radius: 50%;
}

.activity {
  padding: 8px;
  border-color: #d1dce5;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.activity-type {
  color: #3f657f;
  letter-spacing: 0.5px;
}

.entries-container {
  min-height: 300px;
  max-height: 500px;
}

.gb-entry {
  border-color: #d3dee7;
  border-left-color: #5987a9;
  background: rgba(255, 255, 255, 0.92);
}

.gb-name {
  color: #315b78;
}

.footer {
  padding: 7px 10px;
  border: 1px solid rgba(234, 245, 252, 0.42);
  border-radius: 3px;
  background: rgba(15, 54, 82, 0.58);
  color: #f2f8fc;
  font-size: 11px;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

#last-update {
  color: inherit;
}

.footer .sound-toggle {
  color: #e1eff8;
}

@media (max-width: 760px) {
  .page {
    width: min(100%, 620px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
  }

  .interest-stack > .window {
    flex: 0 1 auto;
    min-height: auto;
  }

  #profile-window,
  #about-window,
  #visits-window,
  #links-window,
  #photography-window,
  #downloads-window,
  #activity-window,
  .interest-stack,
  #guestbook-window,
  .footer {
    grid-column: 1 / -1;
  }

  .header-body {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar tagline"
      "avatar meta"
      "avatar mood"
      "avatar badges"
      "nav nav";
    column-gap: 15px;
    padding: 17px 19px 14px;
  }

  .profile-avatar {
    width: 104px;
    height: 104px;
  }

  .display-name {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px 7px 24px;
    background-attachment: scroll;
    background-position: center top;
  }

  .page {
    width: 100%;
    gap: 10px;
    margin: 8px auto 16px;
  }

  .window-body {
    padding: 12px;
  }

  .header-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "avatar"
      "name"
      "tagline"
      "meta"
      "mood"
      "badges"
      "nav";
    justify-items: center;
    row-gap: 7px;
    padding: 17px 13px 13px;
    text-align: center;
  }

  .profile-avatar {
    width: 112px;
    height: 112px;
  }

  .display-name {
    font-size: 25px;
  }

  .meta-row,
  .badge-wall {
    justify-content: center;
  }

  .quick-links {
    justify-content: center;
    gap: 10px 15px;
  }

  .footer {
    padding: 6px 8px;
  }
}

.interest-stack { grid-column: span 6; }
#guestbook-window { grid-column: span 6; }

.photo-carousel {
  margin: 0 0 11px;
  padding: 7px;
  border: 1px solid #b7c7d5;
  background: linear-gradient(180deg, #f8fafc, #e8eef3);
  box-shadow: inset 0 1px 0 #fff;
}

.photo-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #9eafbd;
  background: #dbe6ee;
}

#photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#photo-preview.slide-from-right {
  animation: photo-slide-from-right 360ms ease-out both;
}

#photo-preview.slide-from-left {
  animation: photo-slide-from-left 360ms ease-out both;
}

@keyframes photo-slide-from-right {
  from { opacity: 0.55; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes photo-slide-from-left {
  from { opacity: 0.55; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}

.photo-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  min-height: 25px;
  padding: 5px 2px 2px;
  color: #314e65;
  font-size: 11px;
}

#photo-position {
  color: #687c8c;
  font-family: "Consolas", "Courier New", monospace;
  white-space: nowrap;
}

.photo-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.photo-controls button {
  min-width: 0;
  flex: 1 1 0;
  padding: 3px 4px;
}

#interests-window .details-table td {
  padding: 11px 12px;
  line-height: 1.5;
}

#interests-window .details-table td:first-child {
  width: 30%;
}

#links-window,
#interests-window,
#pc-setup-window,
#guestbook-window {
  display: flex;
  flex-direction: column;
}

#links-window > .window-body,
#interests-window > .window-body,
#pc-setup-window > .window-body,
#guestbook-window > .window-body {
  flex: 1;
  min-height: 0;
}

#links-window > .window-body {
  display: flex;
  flex-direction: column;
}

#links-window .link-list {
  flex: 1;
  justify-content: space-between;
}

#interests-window .window-body {
  display: flex;
}

#interests-window .details-table,
#pc-setup-window .details-table {
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  #photo-preview.slide-from-right,
  #photo-preview.slide-from-left {
    animation: none;
  }
}

/* Give the Modrinth promo a deliberate layout without changing its window. */
#downloads-window {
  display: flex;
  flex-direction: column;
}

#downloads-window .mod-window {
  display: flex;
  flex: 1;
  min-height: 0;
}

#mod-stats {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.mod-promo {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid #c5d4df;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff 0%, #f6f9fb 100%);
  box-shadow: inset 0 1px 0 #fff;
  color: var(--ink);
}

.mod-promo-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.mod-icon-frame {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 3px;
  border: 1px solid #c9d6df;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7fafc, #e7eef3);
  box-shadow: inset 0 1px 0 #fff;
}

.mod-icon-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.mod-promo-copy {
  min-width: 0;
}

.mod-promo-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5d7181;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.mod-promo-led {
  width: 7px;
  height: 7px;
  border: 1px solid #5e8e55;
  border-radius: 50%;
  background: linear-gradient(180deg, #b8e7a0, #73b65c);
  box-shadow: 0 0 0 2px #edf5e9;
}

.mod-promo-title {
  margin: 3px 0 2px;
  color: #213f58;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
}

.mod-promo-description {
  margin: 0;
  color: #556b7b;
  font-size: 12px;
  line-height: 1.4;
}

.mod-promo-hook {
  margin: 0 0 0 85px;
  padding-left: 10px;
  border-left: 2px solid #b7c8d4;
  color: #536879;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.mod-promo-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #d6e0e7;
}

.mod-promo-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid #d4dfe6;
  background: linear-gradient(180deg, #f5f8fa, #ebf1f5);
  box-shadow: inset 0 1px 0 #fff;
}

.mod-promo-stat strong {
  color: #274c69;
  font-size: 14px;
  line-height: 1.15;
}

.mod-promo-stat span {
  margin-top: 2px;
  color: #667b8b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.mod-promo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 122px;
  padding: 0 11px;
  border: 1px solid #9cb5c7;
  border-radius: 3px;
  background: linear-gradient(180deg, #fbfeff 0%, #e6f2f9 48%, #d6eaf5 51%, #e4f1f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #244e6d;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mod-promo-cta:hover {
  border-color: #6e9ab7;
  background: linear-gradient(180deg, #fff, #d7edf8);
  color: #173d5a;
}

.mod-promo-cta:focus-visible {
  outline: 2px solid #286f9d;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .mod-promo {
    padding: 11px;
  }

  .mod-icon-frame {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .mod-promo-main {
    gap: 10px;
  }

  .mod-promo-title {
    font-size: 17px;
  }

  .mod-promo-hook {
    margin-left: 70px;
  }

  .mod-promo-footer {
    gap: 6px;
  }

  .mod-promo-stat {
    padding: 4px 6px;
  }

  .mod-promo-cta {
    min-width: 108px;
    gap: 6px;
    padding: 0 8px;
    font-size: 11px;
  }
}
