/* Practice-app aside for the static composition course. Mirrors src/app/study/AppAside.module.css. */
.gs-app-aside {
  position: fixed; right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 58;
  width: min(360px, calc(100vw - 40px));
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: 15px; align-items: start;
  padding: 16px 44px 16px 16px;
  background: var(--chrome-raised, #14100b);
  border: 1px solid var(--chrome-line, #2a2218);
  border-top: 2px solid rgba(200, 168, 106, 0.7);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10, 8, 7, 0.45);
  color: var(--chrome-text, #f2ece0);
  font-family: var(--body, 'Hanken Grotesk', 'Helvetica Neue', Helvetica, sans-serif);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gs-app-aside[data-shown='1'] { opacity: 1; transform: none; }
.gs-app-aside img { width: 56px; height: 56px; border-radius: 13px; border: 1px solid rgba(200, 168, 106, 0.35); display: block; max-width: none; }
.gs-app-aside .gs-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gs-app-aside .gs-kicker { font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold, #c8a86a); }
.gs-app-aside .gs-title { font-family: var(--display, 'Fraunces', Georgia, serif); font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: var(--chrome-text, #f2ece0); }
.gs-app-aside .gs-line { font-size: 13.75px; line-height: 1.45; color: var(--chrome-muted, #9c9180); margin: 0; }
.gs-app-aside .gs-short, .gs-app-aside .gs-sub { display: none; }
.gs-app-aside .gs-get {
  grid-column: 2; margin-top: -5px; justify-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: 9999px;
  background: var(--gold, #c8a86a); color: #100c06;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background-color 0.2s ease;
}
.gs-app-aside .gs-get:hover { background: #d6b97f; }
.gs-app-aside .gs-close {
  position: absolute; top: 6px; right: 6px;
  width: 36px; height: 36px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--chrome-muted, #9c9180); cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.gs-app-aside .gs-close:hover { color: var(--chrome-text, #f2ece0); background: #1c160f; }
.gs-app-aside .gs-get:focus-visible, .gs-app-aside .gs-close:focus-visible { outline: 2px solid var(--gold, #c8a86a); outline-offset: 2px; }
@media (max-width: 767px) {
  .gs-app-aside {
    left: 12px; right: 12px; width: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center;
    gap: 10px; padding: 7px 46px 7px 9px;
  }
  .gs-app-aside img { width: 40px; height: 40px; border-radius: 10px; }
  .gs-app-aside .gs-kicker, .gs-app-aside .gs-line, .gs-app-aside .gs-long { display: none; }
  .gs-app-aside .gs-short { display: inline; }
  .gs-app-aside .gs-sub { display: block; font-size: 12.5px; line-height: 1.3; color: var(--chrome-muted, #9c9180); }
  .gs-app-aside .gs-sub-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gs-app-aside .gs-sub-line + .gs-sub-line { display: none; }
  .gs-app-aside .gs-body { gap: 2px; }
  .gs-app-aside .gs-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gs-app-aside .gs-get { grid-column: 3; margin-top: 0; min-height: 44px; padding: 0 13px; font-size: 13.5px; white-space: nowrap; }
  .gs-app-aside .gs-close { top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px; }
}
@media (min-width: 768px) {
  .gs-app-aside {
    display: flex; align-items: center; gap: 4px;
    right: 6px; width: auto; max-width: 300px; height: 52px; box-sizing: border-box;
    padding: 3px;
    border-top-width: 1px; border-color: rgba(200, 168, 106, 0.55);
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(10, 8, 7, 0.4);
  }
  .gs-app-aside img, .gs-app-aside .gs-body { display: none; }
  .gs-app-aside .gs-get {
    margin: 0; min-height: 44px; min-width: 44px; padding: 0; gap: 0;
    border-radius: 9999px;
    background: transparent; color: var(--gold, #c8a86a);
    font-size: 14.5px; white-space: nowrap;
  }
  .gs-app-aside .gs-get::before {
    content: ''; flex: none; width: 44px; height: 44px; border-radius: 9999px;
    background: url('/study/app-icon-96.png') center / cover no-repeat;
  }
  .gs-app-aside .gs-get:hover { background: transparent; }
  .gs-app-aside .gs-get-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .gs-app-aside .gs-close { display: none; position: static; flex: none; width: 44px; height: 44px; }
  .gs-app-aside:hover, .gs-app-aside:focus-within { padding-right: 0; }
  .gs-app-aside:hover .gs-get-text, .gs-app-aside:focus-within .gs-get-text {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; padding: 0 6px 0 10px;
    text-decoration: underline; text-decoration-color: rgba(200, 168, 106, 0.45); text-underline-offset: 4px;
  }
  .gs-app-aside:hover .gs-close, .gs-app-aside:focus-within .gs-close { display: inline-flex; }
}
@media (max-width: 767px) {
  .gs-app-aside .gs-get-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-app-aside { transition: opacity 0.2s linear; transform: none; }
}
