/* Contact, portfolio content and classic application interfaces. */
.msn-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) 1fr;
  gap: 1rem;
}

/* Content-heavy apps start large enough to be useful without taking over the desktop. */
#contactWindow {
  width: min(68rem, calc(100vw - 2rem));
  height: min(42rem, calc(100dvh - 5.25rem));
}

#cvWindow,
#notesWindow {
  width: min(58rem, calc(100vw - 2rem));
  height: min(32rem, calc(100dvh - 5.25rem));
}

#mediaWindow {
  width: min(56rem, calc(100vw - 2rem));
  height: min(32.5rem, calc(100dvh - 5.25rem));
}

#searchWindow {
  width: min(44rem, calc(100vw - 2rem));
  height: min(24rem, calc(100dvh - 5.25rem));
}

.profile-bubble {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.contact-facts {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #c7d8f0;
}

.plain-list,
.timeline-list {
  margin: 0;
  padding-left: 1.15rem;
}

.plain-list li + li,
.timeline-list li + li {
  margin-top: 0.45rem;
}

.timeline-list li {
  display: grid;
  gap: 0.18rem;
}

.timeline-list span {
  color: #435773;
}

.chat-log {
  min-height: 13rem;
  max-height: min(18rem, 44vh);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.72rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem;
  border: 1px solid #b8cdee;
  border-radius: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 255, 0.9)),
    radial-gradient(circle at 12% 0, rgba(141, 192, 255, 0.22), transparent 34%);
  box-shadow:
    inset 0 1px 2px rgba(20, 61, 123, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.82);
}

.chat-message {
  --chat-avatar-size: 2.35rem;
  display: grid;
  align-items: end;
  gap: 0.45rem;
  max-width: min(88%, 43rem);
  line-height: 1.28;
}

.chat-message.system {
  justify-self: center;
  display: block;
  width: min(100%, 36rem);
  max-width: 92%;
  color: #5b6e8f;
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
}

.chat-message.self {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) var(--chat-avatar-size);
}

.chat-message.other {
  justify-self: start;
  grid-template-columns: var(--chat-avatar-size) minmax(0, 1fr);
}

.chat-status {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(127, 157, 205, 0.32);
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.76);
}

.chat-bubble {
  position: relative;
  display: block;
  padding: 0.62rem 0.78rem;
  border-radius: 0.86rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(18, 61, 128, 0.1);
}

.chat-message.self .chat-bubble {
  grid-column: 1;
  border: 1px solid #91c87d;
  border-bottom-right-radius: 0.25rem;
  background:
    linear-gradient(180deg, #ebffe4, #cdf0be);
}

.chat-message.self .chat-bubble::after {
  content: "";
  position: absolute;
  right: -0.42rem;
  bottom: 0.48rem;
  border-width: 0.42rem 0 0.42rem 0.46rem;
  border-style: solid;
  border-color: transparent transparent transparent #cdf0be;
}

.chat-message.other .chat-bubble {
  grid-column: 2;
  border: 1px solid #f0cf69;
  border-bottom-left-radius: 0.25rem;
  background:
    linear-gradient(180deg, #fff8cf, #ffe99b);
}

.chat-message.other .chat-bubble::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  bottom: 0.48rem;
  border-width: 0.42rem 0.46rem 0.42rem 0;
  border-style: solid;
  border-color: transparent #ffe99b transparent transparent;
}

.chat-avatar {
  width: var(--chat-avatar-size);
  height: var(--chat-avatar-size);
  border: 1px solid rgba(54, 92, 151, 0.38);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #f9fcff, #d6e8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 1px 2px rgba(15, 45, 96, 0.16);
}

.chat-avatar--jordi {
  overflow: hidden;
}

.chat-avatar--jordi img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-avatar--guest {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, #f8fbff 0 16%, transparent 17%),
    linear-gradient(180deg, #eef6ff, #c9ddf8);
}

.chat-avatar--guest::before,
.chat-avatar--guest::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8da8cf, #5d789f);
}

.chat-avatar--guest::before {
  top: 0.48rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
}

.chat-avatar--guest::after {
  bottom: 0.42rem;
  width: 1.35rem;
  height: 0.86rem;
  border-radius: 50% 50% 0.35rem 0.35rem;
}

.chat-form {
  display: flex;
  gap: 0.6rem;
}

.msn-formoid-bridge {
  padding: 0.75rem;
  border: 1px solid #9eb8e2;
  border-radius: 0.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(225, 238, 255, 0.86)),
    radial-gradient(circle at 0 0, rgba(105, 161, 242, 0.22), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(18, 61, 128, 0.12);
}

.chat-form--stacked {
  flex-direction: column;
}

.chat-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.chat-form__field {
  display: grid;
  gap: 0.24rem;
  margin: 0;
  color: #204477;
  font-weight: 700;
  font-size: 0.86rem;
}

.chat-form__field span {
  padding-left: 0.1rem;
}

.contact-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.contact-board span {
  padding: 0.24rem 0.55rem;
  border: 1px solid #a2bde7;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdfefe, #e4efff);
  color: #1d4b91;
  font-size: 0.82rem;
}

.chat-form input,
.chat-form textarea,
.search-panel input {
  flex: 1;
  border: 1px solid #7fa0d9;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  padding: 0.7rem;
  font: inherit;
  box-shadow:
    inset 0 1px 2px rgba(9, 42, 104, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: 2px solid rgba(73, 134, 236, 0.32);
  border-color: #346fd2;
}

.chat-form textarea {
  min-height: 5.2rem;
  resize: vertical;
}

.msn-form-alert {
  padding: 0.52rem 0.68rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.25;
}

.msn-form-alert[hidden] {
  display: none;
}

.msn-form-alert.alert-success {
  border: 1px solid #8fca7c;
  background: linear-gradient(180deg, #e7f9df, #d3efc6);
  color: #235a1f;
}

.msn-form-alert.alert-danger {
  border: 1px solid #d58d8d;
  background: linear-gradient(180deg, #fff0ed, #ffd2cb);
  color: #8d241d;
}

.chat-form .btn-loading {
  cursor: wait;
  filter: saturate(0.86);
  opacity: 0.82;
}

.chat-form .btn-loading::after {
  content: "...";
  min-width: 1.1rem;
  margin-left: 0.2rem;
}

.cv-header-card {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.cv-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cv-panel {
  padding: 0.9rem;
}

.cv-panel h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.xp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid #204f96;
  border-radius: 0.42rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #e9f1ff 48%, #c4d8ff 52%, #b4cbfa 100%);
  color: #103b7c;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(14, 56, 129, 0.18);
}

.xp-button.secondary {
  background:
    linear-gradient(180deg, #ffffff 0%, #eff8ff 48%, #d9edff 52%, #cfe5ff 100%);
}

.duck-field {
  position: relative;
  min-height: clamp(9rem, 24vh, 11rem);
  border: 1px dashed #80a7df;
  background:
    linear-gradient(180deg, #d8efff 0 66%, #74c76d 66% 100%);
  overflow: hidden;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.interest-card {
  padding: 0.9rem;
  border: 1px solid #9eb6da;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.interest-card h3,
.gallery-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.9fr);
  gap: 1rem;
}

.media-stage,
.playlist-panel {
  padding: 1rem;
  border: 1px solid #9eb6da;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 243, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.playlist-panel h3 {
  margin-top: 0;
}

.playlist-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.playlist-item {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #b6caeb;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  text-align: left;
  cursor: pointer;
}

.playlist-item.is-active {
  border-color: #7da5df;
  background: linear-gradient(180deg, #dfeeff, #eff6ff);
}

.playlist-item strong,
.playlist-item span {
  display: block;
}

.playlist-item span {
  margin-top: 0.25rem;
  color: #415673;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 4rem;
  margin: 1rem 0 1.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #87a8d9;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #0f2756, #1f4b90);
}

.equalizer span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #91f4ff, #54b4ff 55%, #2a74ec);
}

.equalizer span:nth-child(1) { height: 42%; }
.equalizer span:nth-child(2) { height: 75%; }
.equalizer span:nth-child(3) { height: 58%; }
.equalizer span:nth-child(4) { height: 88%; }
.equalizer span:nth-child(5) { height: 49%; }
.equalizer span:nth-child(6) { height: 68%; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.gallery-card {
  padding: 0.8rem;
}

.gallery-card__thumb {
  display: block;
  width: 100%;
  height: 7rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #e8f1ff, #bfd5ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0.45rem 0.9rem rgba(16, 48, 102, 0.13);
}

.gallery-card__thumb.is-art {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(135deg, #7f4fff, #f46d9b 55%, #ffc36f);
}

.gallery-card__thumb.is-brand {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(135deg, #0c1f4c, #215ec7 58%, #83c8ff);
}

.gallery-card__thumb.is-web {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, #fff9df, #c7e6ff 52%, #78a8ff);
}

.gallery-card__thumb.is-archive {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #6e8b58, #b8d88b 52%, #efe4b5);
}

.notepad-sheet {
  padding: 0.8rem 1rem 0.9rem 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid #c3d2e9;
  background:
    linear-gradient(90deg, rgba(226, 134, 134, 0.36) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(180deg, #fefefe 0 1.9rem, #dce6f6 1.9rem 1.95rem);
  background-position: 1.1rem 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.notepad-line {
  margin: 0;
  min-height: 1.95rem;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.notepad-line.is-quote {
  color: #26519d;
  font-style: italic;
}

.notepad-line.is-heading {
  color: #1d4b91;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.window-browser {
  min-width: min(28rem, calc(100vw - 2rem));
  min-height: 26rem;
}

.window-bar.browser {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.56), transparent 40%),
    linear-gradient(180deg, #8bd6ff 0%, #3b91e8 42%, #1d63ca 62%, #17459a 100%);
}

.browser-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #d8e8fb;
}

.ie-chrome {
  position: relative;
  border-bottom: 1px solid #8aa9d4;
  background:
    linear-gradient(180deg, #f9fbff, #dbe9fb 54%, #c7daf4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ie-menubar,
.ie-navrow,
.ie-addressbar,
.ie-favorites,
.ie-statusbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem;
}

.ie-menubar {
  gap: 1rem;
  color: #173b79;
  font-size: 0.86rem;
  position: relative;
}

.ie-menubar button {
  border: 0;
  background: transparent;
  color: #173b79;
  padding: 0.08rem 0.2rem;
  cursor: pointer;
}

.ie-menubar button:hover:not(:disabled),
.ie-menubar button:focus-visible:not(:disabled) {
  outline: 1px solid #7fa0d9;
  background: linear-gradient(180deg, #ffffff, #dfeaff);
}

.ie-menubar button:disabled {
  color: #8899b2;
  cursor: not-allowed;
  text-decoration: none;
}

.ie-menu-dropdown {
  position: absolute;
  z-index: 6;
  top: 2.1rem;
  left: 0.55rem;
  min-width: 13rem;
  max-width: min(28rem, calc(100% - 1.1rem));
  padding: 0.35rem;
  border: 1px solid #7b99c7;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: 0 0.6rem 1.2rem rgba(16, 48, 102, 0.18);
}

.ie-menu-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #173b79;
  padding: 0.35rem 0.55rem;
  text-align: left;
  cursor: pointer;
}

.ie-menu-dropdown button:hover,
.ie-menu-dropdown button:focus-visible {
  background: linear-gradient(180deg, #e9f3ff, #cfe1fb);
  outline: 1px solid #9bb7df;
}

.ie-menu-dropdown button:disabled {
  color: #8b9ab0;
  cursor: not-allowed;
}

.ie-menu-dropdown p {
  margin: 0;
  color: #173b79;
  line-height: 1.35;
}

.ie-navrow {
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid #aec4e5;
}

.ie-button,
.ie-favorites button,
.ie-history-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid #8aa9d4;
  border-radius: 0.25rem;
  background:
    linear-gradient(180deg, #ffffff, #e9f1fc 48%, #d3e2f7);
  color: #163d7b;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ie-button img,
.xp-button img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.ie-button:disabled {
  color: #7d8da5;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.ie-addressbar label,
.ie-favorites label,
.ie-history span {
  color: #213f75;
  font-weight: 700;
}

.ie-addressbar input,
.ie-favorites select {
  flex: 1;
  min-width: 8rem;
  border: 1px solid #7fa0d9;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 0.5rem 0.65rem;
  color: #0d3671;
  box-shadow: inset 0 1px 2px rgba(9, 42, 104, 0.12);
}

.ie-favorites {
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.ie-history {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem;
  border-top: 1px solid #aec4e5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(215, 229, 250, 0.48));
}

.ie-history-list {
  display: flex;
  flex: 1;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.05rem;
}

.ie-history-list button {
  flex: 0 0 auto;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.ie-history-list button.is-current {
  border-color: #2d6dcc;
  background: linear-gradient(180deg, #dff0ff, #bad8ff);
  color: #0f4aa1;
}

.ie-history-note {
  flex: 0 0 auto;
  align-self: center;
  color: #506b96;
  font-size: 0.82rem;
  white-space: nowrap;
}

.ie-frame-shell {
  position: relative;
  flex: 1;
  min-height: 14rem;
  margin: 0.55rem;
  border: 1px solid #6d8ec4;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(226, 237, 255, 0.42)),
    #ffffff;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0.45rem 0.9rem rgba(18, 48, 101, 0.15);
}

.ie-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.ie-frame-overlay,
.ie-frame-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  text-align: center;
  color: #14346d;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.94), rgba(226, 238, 255, 0.86) 46%, rgba(198, 218, 247, 0.92)),
    repeating-linear-gradient(45deg, rgba(41, 98, 177, 0.08) 0 0.45rem, rgba(255, 255, 255, 0.08) 0.45rem 0.9rem);
}

.ie-frame-overlay strong,
.ie-frame-fallback strong {
  font-size: 1.35rem;
  color: #0d4fa8;
}

.ie-frame-fallback {
  max-width: 32rem;
  inset: auto 50% 1.2rem auto;
  transform: translateX(50%);
  border: 1px solid #8aa9d4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(236, 245, 255, 0.95));
  box-shadow: 0 0.6rem 1.4rem rgba(14, 46, 103, 0.22);
}

.ie-statusbar {
  justify-content: space-between;
  border-top: 1px solid #9cb6dd;
  background: linear-gradient(180deg, #eef5ff, #d7e5fa);
  color: #244574;
  font-size: 0.85rem;
}

.duck {
  position: absolute;
  border: none;
  background: transparent;
  font-family: "VT323", monospace;
  font-size: 1.8rem;
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 0.45rem;
  min-width: 100%;
}

.search-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed #9cb7df;
  background: rgba(255, 255, 255, 0.62);
  color: #53627c;
}

.search-result {
  border: 1px solid #bed0ec;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  padding: 0.7rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

