/* AOL Instant Messenger 5.1 skin and the Windows XP taskbar/desktop. Loaded
   after aol.css, whose XP window chrome (.win), buttons and fields it reuses. */

[hidden] { display: none !important }

/* ---------- taskbar and the AIM layer ---------- */
body.has-xpbar #app { bottom: calc(30px + env(safe-area-inset-bottom, 0px)) }
#aimdesk { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); z-index: 5000; pointer-events: none; overflow: hidden }
#aimdesk > * { pointer-events: auto }
#aimdesk .win.minned { display: none }
.xpbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(30px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 6000;
  display: flex; align-items: center; font: 11px var(--ui); color: #fff;
  background: linear-gradient(#3168d5, #4993e6 6%, #2157d7 30%, #2663e0 88%, #1941a5); border-top: 1px solid #0c59b9 }
.xp-start { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 20px 0 9px; border: 0; border-radius: 0 12px 12px 0; cursor: pointer;
  background: linear-gradient(#3c9a3c, #5cbf5c 12%, #3a9a3a 55%, #2c7d2c); color: #fff; font: italic bold 18px "Trebuchet MS", Tahoma, sans-serif;
  text-shadow: 1px 1px 2px #1a4a1a; box-shadow: inset -3px 0 4px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.4) }
.xp-start i { padding-bottom: 2px }
.xp-flag { width: 17px; height: 15px; border-radius: 3px 5px 3px 5px; transform: skewY(-6deg); background: conic-gradient(#7cbb00 0 25%, #ffb900 0 50%, #00a1f1 0 75%, #f65314 0); box-shadow: 0 0 0 1px rgba(0,0,0,.25) }
.xp-tasks { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 0 6px; overflow: hidden }
.xp-task { flex: 0 1 160px; min-width: 34px; height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 8px; cursor: pointer; text-align: left;
  border: 1px solid #1a4fbf; border-radius: 3px; background: linear-gradient(#4a90f5, #3a7ff0 40%, #2d6ee5); color: #fff; font: 11px var(--ui); box-shadow: inset 1px 1px rgba(255,255,255,.35) }
.xp-task span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.xp-task svg { flex: none }
.xp-task.on { background: linear-gradient(#1c49b0, #1e4fb8); box-shadow: inset 1px 1px 2px rgba(0,0,0,.55) }
.xp-task.flash { animation: xpflash 1.1s steps(1) infinite }
@keyframes xpflash { 50% { background: linear-gradient(#ffc663, #f39a1d) } }
.xp-tray { flex: none; align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 10px;
  background: linear-gradient(#0c99f0, #13a3f3 10%, #0d8be4 60%, #0a74c8); border-left: 1px solid #0a5ab0; box-shadow: inset 1px 0 1px #18bbff }
.xp-aim { border: 0; background: none; padding: 0; display: flex; cursor: pointer }
.xp-aim.off svg { filter: grayscale(1) brightness(1.3) }
.xp-clock { white-space: nowrap }

/* stand-alone desktop (aim.html) */
body.xp-desktop { background: linear-gradient(#2a62cf, #5b97e6 35%, #a7cdf0 57%, #79b84a 58.5%, #4f9a24 72%, #2f7212) }
.xp-icons { position: fixed; left: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 14px; z-index: 1 }
.xp-icon { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px; border: 1px solid transparent; background: none; cursor: pointer;
  color: #fff; text-shadow: 1px 1px 2px #000; font: 11px var(--ui); text-align: center; text-decoration: none }
.xp-icon:focus-visible, .xp-icon:hover { border: 1px dotted #fff }
.xp-icon .xp-ii { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center }

/* ---------- AIM windows ---------- */
.aim .wbody { background: var(--face); font: 11px var(--ui) }
.aim-tico { display: flex } .aim-tico svg { width: 16px; height: 16px }
.aim-logo { flex: none; display: flex; align-items: center; gap: 5px; margin: 6px auto 4px; padding: 3px 12px 3px 6px; max-width: calc(100% - 8px);
  background: linear-gradient(135deg, #0a1a6e, #17359f 55%, #3561d4); border: 1px solid #000; color: #fff }
.aim-logo svg { flex: none }
.aim-word { font: bold 13px/1.05 var(--arial); white-space: nowrap } .aim-word b { font-size: 16px; letter-spacing: -.5px } .aim-word sup { font-size: 7px }
.aim-ib { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid transparent; background: none; padding: 2px 4px; color: #000; font: 11px var(--ui); border-radius: 3px; cursor: pointer }
.aim-ib:hover:not(:disabled) { border-color: #7b9ebd; background: rgba(255,255,255,.65) }
.aim-ib:disabled { opacity: .45; cursor: default }
.aim-ib small { font-size: 10px; white-space: nowrap }
.aim-dim, .aim-empty { color: #808080 }

/* Sign On */
.aim-so .wbody { padding: 0 12px 8px; display: flex; flex-direction: column }
.aim-so-f { display: flex; flex-direction: column; gap: 2px }
.aim-lbl { margin-top: 6px }
.aim-link { align-self: flex-start; border: 0; background: none; padding: 0; color: #00e; text-decoration: underline; font: 11px var(--ui); cursor: pointer }
.aim-cks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 4px }
.aim-cks label { display: flex; align-items: center; gap: 3px; white-space: nowrap }
.aim-so-btns { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4px }
.aim-help { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8ab4f8, #1d4bb0); color: #fff; font: bold 15px var(--arial); display: flex; align-items: center; justify-content: center }
.aim-go { font-weight: bold }
.aim-ver { margin-top: 10px; color: #333 }
.aim-stat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center }
.aim-stat-run svg { animation: aimrun .5s ease-in-out infinite alternate }
@keyframes aimrun { from { transform: translateX(-8px) } to { transform: translateX(8px) } }

/* Buddy List */
.aim-bl .wbody { display: flex; flex-direction: column; padding: 0 5px 4px; gap: 4px }
.aim-tabs { flex: none; display: flex; padding-left: 3px; margin-bottom: -5px; position: relative; z-index: 1 }
.aim-tabs button { border: 1px solid #919b9c; border-bottom: 0; background: linear-gradient(#fff, #ecebe6); padding: 2px 8px; font: 11px var(--ui); border-radius: 3px 3px 0 0; margin-right: -1px; cursor: pointer }
.aim-tabs button.on { background: #fcfcfe; border-top: 2px solid #e68b2c; padding-bottom: 4px; margin-top: -2px }
.aim-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid #919b9c; background: #fcfcfe; padding: 5px 4px 3px; gap: 3px }
.aim-tree { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7f9db9; padding: 2px 1px; outline: 0 }
.aim-g { display: flex; align-items: center; gap: 2px; padding: 1px 2px; user-select: none; cursor: default; white-space: nowrap }
.aim-g.offg b { color: #808080; font-style: italic }
.aim-tw { width: 12px; text-align: center; font-size: 10px; cursor: pointer }
.aim-b { display: flex; align-items: center; gap: 2px; padding: 1px 2px 1px 12px; user-select: none; cursor: default; white-space: nowrap }
.aim-bi { width: 14px; flex: none; display: flex; align-items: center }
.aim-b.sel, .aim-g.sel { background: var(--sel); color: #fff } .aim-g.sel b { color: #fff }
.aim-b.off, .aim-b.dim { color: #808080 } .aim-b.off span { font-style: italic }
.aim-b.arrive span { font-weight: bold }
.aim-b.depart span { font-style: italic; color: #808080 }
.aim-row1 { flex: none; display: flex; gap: 3px }
.aim-row2 { flex: none; display: flex; gap: 6px; align-items: center; padding: 2px 4px; border: 1px solid #919b9c; border-radius: 2px }
.aim-today { flex-direction: row; gap: 3px; border-color: #7b9ebd; background: linear-gradient(#fff, #e3e9f3) }
.aim-gico { font-size: 18px; line-height: 20px; color: #3a5a9a } .aim-del { font: bold 20px/20px var(--arial); color: #c01010 }
.aim-banner { flex: none; display: block; margin: 0 auto; padding: 2px 16px; background: linear-gradient(90deg, #0a1a6e, #1d3fb0, #0a1a6e); border: 1px solid #000; color: #ffd21a;
  font: italic 14px var(--arial); text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap }
.aim-banner b { color: #fff; font-style: normal }
.aim-ticker { flex: none; cursor: pointer }
.aim-tk { overflow: hidden; white-space: nowrap; background: #fff; border: 1px solid #7f9db9; height: 17px; line-height: 15px }
.aim-tkt { display: inline-block; padding-left: 100%; animation: aimtk 30s linear infinite }
.aim-tk:hover .aim-tkt { animation-play-state: paused }
@keyframes aimtk { to { transform: translateX(-100%) } }
.aim-q { margin-right: 20px }
.aim-ticker .up, .aim-td-q .up { color: #008000 } .aim-ticker .dn, .aim-td-q .dn { color: #c00000 }
.aim-tkn { font-size: 10px; color: #333; padding-top: 1px }

/* IM window */
.aim-im .wbody, .aim-chat .wbody { display: flex; flex-direction: column; gap: 3px; padding: 4px }
.aim-to { display: flex; align-items: center; gap: 6px } .aim-to input { flex: 1 }
.aim-log { flex: 1; min-height: 50px; background: #fff; border: 1px solid #7f9db9; overflow-y: auto; padding: 3px 5px; font: 13px var(--arial); overflow-wrap: anywhere }
.aim-me { color: #ff0000 } .aim-them { color: #0000ff }
.aim-t { color: #777; font-size: 10px }
.aim-sys { color: #808080; font-size: 11px }
.aim-fmt { flex: none; display: flex; align-items: center; gap: 1px; flex-wrap: wrap }
.aim-fmt button { min-width: 22px; height: 21px; border: 1px solid transparent; background: none; border-radius: 2px; padding: 0 3px; font: 12px var(--arial); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #000 }
.aim-fmt button:hover, .aim-fmt button.on { border-color: #7b9ebd; background: #fff }
.aim-fmt sub, .aim-fmt sup { font-size: 7px }
.aim-fc { border-bottom: 3px solid #000; line-height: 1; font-weight: bold }
.aim-fsep { width: 1px; height: 16px; background: #aca899; margin: 0 2px }
.aim-in { height: 54px; flex: none; border: 1px solid #7f9db9; background: #fff; padding: 3px 5px; font: 13px var(--arial); overflow-y: auto; outline: 0; overflow-wrap: anywhere }
.aim-acts { flex: none; display: flex; align-items: flex-end; gap: 1px; flex-wrap: wrap }
.aim-acts .grow { flex: 1 }
.aim-vsep { width: 1px; align-self: stretch; background: #aca899; margin: 2px 3px }
.aim-send { flex: none; display: flex; flex-direction: column; align-items: center; border: 1px solid #7b9ebd; background: linear-gradient(#fff, #e3e9f3); border-radius: 3px; padding: 2px 10px; font: bold 11px var(--ui); cursor: pointer; color: #000 }
.aim-send:hover { background: linear-gradient(#fff, #d4e0f2) }
.aim-send small { font-size: 10px }

/* Buddy Info */
.aim-info .wbody { display: flex; flex-direction: column; gap: 6px; padding: 6px }
.aim-info-h { display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid #7f9db9; padding: 6px; line-height: 1.5 }
.aim-info-p { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7f9db9; padding: 6px; font: 12px var(--arial) }
.aim-info-p th { text-align: left; padding-right: 6px; vertical-align: top; white-space: nowrap }
.aim-info-away { background: #fffbd0; border: 1px solid #d8c870; padding: 4px; margin-bottom: 6px }
.aim-info-b { flex: none; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap }

/* Chat */
.aim-ch-main { flex: 1; min-height: 0; display: flex; gap: 4px }
.aim-ch-main .aim-log { min-width: 0 }
.aim-ch-side { width: 130px; flex: none; display: flex; flex-direction: column; gap: 3px }
.aim-ch-n { font-weight: bold }
.aim-ch-list { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7f9db9; padding: 2px }
.aim-ch-list div { padding: 1px 3px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none }
.aim-ch-list .sel { background: var(--sel); color: #fff }
.aim-ch-list .ign { text-decoration: line-through; color: #808080 }
.aim-ch-btns { display: flex; justify-content: space-around }
.aim-ch-row { flex: none; display: flex; gap: 4px; align-items: stretch } .aim-ch-row .aim-in { flex: 1; min-width: 0 }

/* dialogs */
.aim-reg { padding: 8px 12px; gap: 4px }
.aim-reg p { margin: 0 0 4px }
.aim-reg label.ck { flex-direction: row; gap: 5px }
.aim-reg textarea.field { resize: vertical; font: 12px var(--arial) }
.aim-prefs fieldset { border: 1px solid #d0d0bf; border-radius: 3px; margin: 0 0 4px; padding: 3px 8px 5px }
.aim-blk div { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 }
.aim-away-t { margin: 8px 10px 4px; padding: 6px; background: #fff; border: 1px solid #7f9db9; min-height: 56px; max-height: 92px; overflow: auto; font: 12px var(--arial); overflow-wrap: anywhere }
.aim-inv { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 6px }
.aim-inv-m { background: #fff; border: 1px solid #7f9db9; padding: 4px }
.aim-about { padding: 4px 14px; text-align: center; line-height: 1.4 }

/* AIM Today */
.aim-today .wbody { display: flex; flex-direction: column }
.aim-td-h { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: linear-gradient(90deg, #0a1a6e, #1d3fb0); color: #fff; font: 16px var(--arial) }
.aim-td-h span { margin-left: auto; font-size: 11px; color: #d8e4ff }
.aim-td-b { flex: 1; min-height: 0; overflow: auto; background: #fff; padding: 4px 10px 8px; font: 12px var(--arial) }
.aim-td-b h4 { margin: 8px 0 4px; color: #0a1a6e; font-size: 13px }
.aim-td-n { padding: 3px 0; border-bottom: 1px dotted #ccd }
.aim-td-q td { padding: 1px 12px 1px 0 }

@media (max-width: 560px) {
  .xp-task span { display: none }
  .xp-task { flex: none }
  .xp-start { font-size: 15px; padding-right: 12px }
  .aim-ch-side { width: 100px }
}

/* ---------- 5.1 Buddy List, after the real 5.1.3036 render ---------- */
.aim-bl .wbody { background: #f7f3e6; padding: 0 3px 2px; gap: 0 }
.aim-brand { flex: none; display: flex; align-items: center; gap: 3px; padding: 2px 2px 1px; font: 11px var(--arial); color: #000 }
.aim-brand b { font: bold 12px var(--arial) } .aim-brand i { font-style: italic } .aim-brand sup { font-size: 6px }
.aim-ad { flex: none; align-self: center; width: 122px; height: 76px; margin: 2px 0 4px; display: flex; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 70% 30%, #3b6fe0, #0f2c9a 70%); border: 1px solid #0a1a6e; color: #fff; text-decoration: none; overflow: hidden }
.aim-ad span { font: italic bold 12px/1.05 var(--arial) } .aim-ad span b { font: bold 15px var(--arial); font-style: normal } .aim-ad sup { font-size: 6px }
.aim-blbar { flex: none; display: flex; align-items: center; gap: 4px; padding: 1px 3px; border: 1px solid #a8a490; border-bottom: 0; background: #fffdf4; font: 11px var(--ui) }
.aim-blname { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.aim-blico svg { width: 26px; height: 20px; display: block }
.aim-setup { flex: none; display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid #a8a490; border-bottom: 0; background: #fffdf4 }
.aim-setup .btn { min-width: 0; height: 20px; padding: 0 5px; font-size: 10px }
.aim-bl .aim-tree { border: 1px solid #a8a490; border-radius: 0; font: bold 12px var(--arial) }
.aim-bl .aim-b { font: 12px var(--arial); padding-left: 10px }
.aim-bl .aim-b.sel { background: #ffff80; color: #000; outline: 1px dotted #000; outline-offset: -1px }
.aim-bl .aim-g.sel { background: none; color: #000 } .aim-bl .aim-g.sel b { color: #000; text-decoration: underline dotted }
.aim-row1, .aim-row2 { flex: none; display: flex; justify-content: space-around; gap: 0; padding: 2px 0; border: 1px solid #a8a490; border-top: 0 }
.aim-row2 { border-radius: 0; background: #f7f3e6 }
.aim-row1 .aim-ib, .aim-row2 .aim-ib { padding: 1px 2px; min-width: 0 }
.aim-row1 .aim-ib.on { border-color: #7b9ebd; background: #fff }
.aim-row1 svg, .aim-row2 svg { width: 28px; height: 24px }
.aim-ticker { border: 1px solid #a8a490; border-top: 0; background: #fff }
.aim-ticker .aim-tk { display: flex; border: 0; height: 16px }
.aim-tkico { flex: none; width: 16px; text-align: center; color: #333 }
.aim-tkw { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap }
.aim-tkn { background: #f7f3e6; padding: 1px 3px }

/* 5.1 IM window */
.aim-im .wbody { background: #f7f3e6 }
.aim-im .wmenu { align-items: center }
.aim-wl { margin-left: auto; font-style: normal; padding: 0 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.aim-im .aim-log, .aim-chat .aim-log { font: 14px "Times New Roman", Times, "Liberation Serif", serif }
.aim-im .aim-in { font-family: "Times New Roman", Times, "Liberation Serif", serif }
.aim-fmt { justify-content: center; background: #fffdf4; border: 1px solid #c8c4b0 }
.aim-fb { border: 1px solid #333; padding: 0 2px; line-height: 1; font-weight: bold; color: #00e }
.aim-bud { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 6px; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #fff, #c8d8f8 60%, #8fa8e0); border: 1px solid #5a6a9a }
.aim-acts { align-items: center; border-top: 1px solid #c8c4b0; padding-top: 3px }
.aim-im .aim-send { background: none; border: 1px solid transparent; padding: 1px 6px; gap: 1px }
.aim-im .aim-send:hover { border-color: #7b9ebd; background: rgba(255,255,255,.6) }
.aim-meter { display: block; width: 46px; height: 6px; border: 1px solid #555; background: #300; overflow: hidden }
.aim-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e02020, #e0e020 50%, #20c020) }

/* AIM mail */
.aim-mail .wbody { display: flex; flex-direction: column; gap: 4px; padding: 4px; background: #f7f3e6 }
.aim-mailf { flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 0 }
.aim-mailf label { display: grid; grid-template-columns: 56px 1fr; align-items: center }
.aim-mailf textarea { flex: 1; min-height: 80px; resize: none; font: 13px var(--arial) }
.aim-mailb { flex: none; display: flex; align-items: center; gap: 6px; justify-content: flex-end }
.aim-mailb > span { margin-right: auto }
.aim-mlist { flex: 1; min-height: 60px; overflow: auto; background: #fff; border: 1px solid #7f9db9 }
.aim-mrow { display: grid; grid-template-columns: 110px 1fr 76px; gap: 6px; padding: 1px 4px; cursor: default; white-space: nowrap }
.aim-mrow span { overflow: hidden; text-overflow: ellipsis }
.aim-mrow.unread { font-weight: bold } .aim-mrow.sel { background: var(--sel); color: #fff }
.aim-mview { flex: 1.3; min-height: 60px; overflow: auto; background: #fff; border: 1px solid #7f9db9; padding: 4px 6px; font: 12px var(--arial) }
.aim-mbody { margin-top: 6px; overflow-wrap: anywhere }
.aim-info-h table td { padding-right: 8px } .aim-info-h th { text-align: left }

/* My AIM > Keep Buddy List on Top */
.win.aim-ontop { z-index: 2147483000 !important }
