/* Collect UI-inspired workspace layer: quiet chrome, clear grouping, dense browsing. */

:root {
  --surface-inverse: #151515;
  --surface-inverse-ink: #ffffff;
  --ui-hover: #f1f1ef;
}

body {
  background: var(--bg);
  background-image: none;
  padding-bottom: 36px;
  line-height: 1.6;
}

button,
input,
textarea,
select { letter-spacing: 0; }

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.app-shell-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg-top) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  width: min(100%, var(--wrap-wide));
  min-height: 70px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto minmax(310px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.brand-button {
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--ff-body);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--surface-inverse);
  box-shadow: var(--sh-paper);
}

.brand-mark .ui-icon { width: 19px; height: 19px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; font-weight: 750; }
.brand-copy small { margin-top: 4px; color: var(--faint); font-size: 9px; font-weight: 650; }

.tabbar {
  position: static;
  justify-self: center;
  width: fit-content;
  max-width: none;
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-2);
  box-shadow: none;
  backdrop-filter: none;
}

.tabbar button {
  flex: none;
  min-width: 74px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  gap: 7px;
}

.tabbar button .ico,
.tabbar button.active .ico {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.tabbar button .ui-icon { width: 16px; height: 16px; }
.tabbar button:hover { background: var(--card); color: var(--ink); }
.tabbar button.active { background: var(--surface-inverse); color: var(--surface-inverse-ink); font-weight: 650; }

.status-bar {
  position: static;
  transform: none;
  z-index: auto;
  max-width: 220px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: none;
  background: var(--card);
  font-size: 10px;
}

.status-bar .sb-person.me,
.status-bar .sb-sep { display: none; }
.status-bar .sb-person.other { min-width: 0; }
.status-bar .sb-text { overflow: hidden; text-overflow: ellipsis; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.search-trigger,
.avatar {
  position: static;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  font-family: var(--ff-body);
}

.search-trigger {
  min-width: 78px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
}

.search-trigger:hover,
.avatar:hover { background: var(--ui-hover); border-color: #cfcfcb; }

.avatar {
  width: auto;
  height: 38px;
  padding: 0 11px;
  display: inline-flex;
  gap: 7px;
  font-size: 12px;
}

.avatar::before { display: none; }
.avatar-label { white-space: nowrap; }
.avatar .dot { width: 8px; height: 8px; }

.wrap {
  width: min(100%, var(--wrap-wide));
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 30px 20px 20px;
}

.app-foot {
  position: static;
  padding: 10px 20px 0;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.home-intro {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, .78fr);
  align-items: center;
  gap: 76px;
  padding: 54px 8% 72px;
  border-bottom: 1px solid var(--line);
  animation: intro-enter 680ms var(--ease-out) both;
}

.home-intro-copy { min-width: 0; }
.home-intro-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--m);
  font-size: 10px;
  font-weight: 800;
}

.home-intro h1 {
  color: var(--ink);
  font-family: var(--ff-title);
  font-size: 76px;
  font-weight: 800;
  line-height: 1.02;
}

.home-intro p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.home-search-button {
  width: min(100%, 420px);
  min-height: 54px;
  margin-top: 32px;
  padding: 0 14px 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
  text-align: left;
  cursor: pointer;
  font: 13px var(--ff-body);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.home-search-button:hover { transform: translateY(-2px); border-color: #bfbfba; box-shadow: 0 14px 38px rgba(15,23,42,.1); }

.home-intro-visual {
  position: relative;
  min-height: 360px;
  perspective: 900px;
}

.home-visual-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  background: #161616;
  color: #fff;
  box-shadow: 28px 30px 0 var(--m-soft), -18px -16px 0 var(--card-2);
  transform: rotate(2deg);
  animation: poster-float 6s ease-in-out infinite;
}
.poster-index { position: absolute; top: 20px; right: 22px; color: rgba(255,255,255,.48); font-size: 11px; }
.poster-kicker { display: block; color: rgba(255,255,255,.56); font-size: 9px; font-weight: 800; }
.home-visual-poster strong { position: absolute; left: 24px; bottom: 54px; font-size: 70px; line-height: .85; }
.poster-mark { position: absolute; top: 46%; right: 22px; width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.poster-mark .ui-icon { width: 30px; height: 30px; }
.poster-foot { position: absolute; left: 24px; right: 24px; bottom: 18px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.5); font-size: 9px; }

.home-visual-photos { position: absolute; inset: 0; }
.home-visual-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--card);
  border-bottom-width: 34px;
  border-radius: 4px;
  background: var(--card-2);
  box-shadow: 0 18px 44px rgba(15,23,42,.18);
}
.home-visual-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-visual-photo figcaption { position: absolute; left: 8px; right: 8px; bottom: -28px; overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-visual-photo.photo-1 { inset: 0 10% 8% 4%; transform: rotate(-3deg); }
.home-visual-photo.photo-2 { width: 48%; height: 58%; right: -2%; top: -4%; transform: rotate(4deg); }
.home-visual-photo.photo-3 { width: 46%; height: 48%; right: 0; bottom: -3%; transform: rotate(2deg); }

.home-dashboard {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

.home-primary,
.home-secondary { min-width: 0; }
.home-secondary { position: sticky; top: 98px; border-top: 0; }
.home-feed-head { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.home-feed-head div { display: flex; flex-direction: column; }
.home-feed-head div > span,
.home-rail-label { color: var(--faint); font-size: 9px; font-weight: 800; }
.home-feed-head h2 { margin-top: 2px; font-size: 24px; }
.home-feed-head > span { color: var(--faint); font-size: 11px; }
.home-rail-search {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font: 12px var(--ff-body);
}
.home-rail-search .ui-icon { width: 15px; height: 15px; }
.home-rail-label { margin: 20px 0 8px; }

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  margin: 0 0 16px;
  padding: 26px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-inverse);
  color: var(--surface-inverse-ink);
  box-shadow: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 20px auto;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero h2 { color: #fff; font-size: 24px; font-weight: 650; }
.home-eyebrow { color: rgba(255, 255, 255, .56); font-size: 9px; font-weight: 700; }
.home-hero .icon-action {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.home-hero .home-setup strong { color: #fff; }
.home-hero .home-setup p,
.home-hero .days-caption,
.home-hero .relationship-since,
.home-hero .days-display span { color: rgba(255, 255, 255, .66); }
.home-hero .action-btn.primary { background: #fff; border-color: #fff; color: #111; }

.days-display::before { display: none; }
.days-display strong {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 76px;
  font-weight: 650;
}

.home-quick-actions {
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 0;
}

.home-quick-actions button,
.home-quick-actions button:nth-child(1) {
  min-height: 54px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transition: border-color .16s, background .16s;
}

.home-quick-actions button:first-child {
  background: var(--surface-inverse);
  border-color: var(--surface-inverse);
  color: #fff;
}

.home-quick-actions button:first-child small { color: rgba(255,255,255,.58); }
.home-quick-actions button:first-child > span { color: #fff; }
.home-quick-actions button:hover { transform: none; box-shadow: none; border-color: #bdbdb8; background: var(--ui-hover); }
.home-quick-actions button:first-child:hover { background: #2a2a2a; border-color: #2a2a2a; }
.home-quick-actions button > span { color: var(--ink); }
.home-quick-actions .ui-icon { width: 19px; height: 19px; }

.home-stats {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}

.home-stat {
  min-height: 66px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.home-stat:nth-child(2) { border-right: 0; }
.home-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.home-stat:last-child { border-right: 0; }
.home-stat:hover { transform: none; box-shadow: none; background: var(--ui-hover); }
.home-stat strong { font-size: 22px; }

.home-milestone {
  min-height: 90px;
  padding: 18px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.home-secondary .home-milestone { margin-top: 20px; }

.home-milestone > span { width: 100%; color: var(--faint); font-weight: 650; }
.home-milestone strong { flex: 1; font-size: 15px; }
.home-milestone em { color: var(--ink); font-size: 14px; }
.home-milestone-manage { border-radius: 6px; background: transparent; }
.home-section { margin: 24px 0; }
.home-section-head { margin-bottom: 8px; }
.home-section-head h2 { font-size: 17px; }
.home-task,
.home-memory { min-height: 70px; }
.home-task:hover,
.home-memory:hover { padding-left: 8px; padding-right: 8px; background: var(--ui-hover); }

.view-toolbar {
  min-height: 58px;
  margin-bottom: 16px;
  padding-bottom: 14px;
}
.view-toolbar strong { font-size: 18px; }
.toolbar-action,
.action-btn.primary {
  border-radius: 7px;
  background: var(--surface-inverse);
  border-color: var(--surface-inverse);
  box-shadow: none;
}

.card,
.entry,
.polaroid {
  border-radius: 8px;
  box-shadow: none;
}
.card:hover,
.entry:hover,
.polaroid:hover { transform: none; box-shadow: var(--sh-paper); border-color: #cfcfcb; }

.filters { padding: 4px 0 16px; }
.filters button,
.subtabs button,
.mode-switch,
.mode-switch button,
.seg,
.seg button { border-radius: 6px; }
.filters button.active { transform: none; background: var(--surface-inverse); border-color: var(--surface-inverse); }

.entry { padding: 20px; }
.status { transform: none; border-width: 1px; border-radius: 6px; box-shadow: none; }
.view-note,
.result { border-radius: 7px; }

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface-inverse);
  box-shadow: 0 12px 26px rgba(15,23,42,.18);
}
.fab:hover { background: #2a2a2a; box-shadow: 0 16px 34px rgba(15,23,42,.24); }

.msg-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.msg-list .msg { margin-bottom: 0; }

.field input[type=text],
.field input[type=date],
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
}

.picker-screen { background: var(--bg); }
.picker-card {
  max-width: 420px;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
}
.picker-card::before {
  content: "♡";
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-inverse);
  color: #fff;
  font-size: 22px;
}
.picker-card h1 { font-size: 32px; font-weight: 800; }
.picker-choice { min-height: 56px; border-width: 1px; border-radius: 8px; background: var(--card); }
.picker-choice:first-child { background: var(--surface-inverse); border-color: var(--surface-inverse); color: #fff; }

.search-mask {
  align-items: flex-start;
  padding: min(12vh, 96px) 18px 24px;
  background: rgba(15, 15, 15, .38);
}

.modal-mask { animation: modal-fade 220ms var(--ease-out) both; }
.modal,
.search-panel { animation: modal-rise 300ms var(--ease-out) both; }

.search-panel {
  width: min(100%, 640px);
  max-height: min(74vh, 680px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--sh-panel);
}

.search-field {
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 16px var(--ff-body);
}
.search-field input::placeholder { color: var(--faint); }
.search-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.search-summary {
  padding: 12px 16px 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}
.search-results { max-height: calc(min(74vh, 680px) - 104px); overflow-y: auto; padding: 0 8px 8px; }
.search-result {
  width: 100%;
  min-height: 82px;
  padding: 12px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--ff-body);
}
.search-result:hover { background: var(--ui-hover); }
.search-result-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--card-2); }
.search-result-icon .ui-icon { width: 17px; height: 17px; }
.search-result-copy { min-width: 0; display: flex; flex-direction: column; }
.search-result-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 10px; }
.search-result-meta strong { color: var(--m); font-size: 10px; }
.search-result-meta time { white-space: nowrap; }
.search-result-title { margin-top: 2px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.search-result-excerpt { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-arrow { color: var(--faint); }
.search-empty { padding: 46px 16px; color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 1060px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .status-bar { display: none; }
}

@media (min-width: 901px) {
  #view-comm.active {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 0 32px;
  }
  #view-comm > .comm-toolbar { grid-column: 1 / -1; }
  #view-comm > .filters {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow: visible;
    padding-top: 0;
  }
  #view-comm > .filters button {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border-color: transparent;
    background: transparent;
    text-align: left;
  }
  #view-comm > .filters button:hover { background: var(--ui-hover); }
  #view-comm > .filters button.active { background: var(--surface-inverse); color: #fff; }
  #view-comm > .toggle-shelved { grid-column: 1; grid-row: 3; width: 100%; margin: 8px 0; border-radius: 7px; }
  #view-comm > .entry-list { grid-column: 2; grid-row: 2 / span 3; min-width: 0; }
  #view-timeline,
  #view-message { max-width: 1040px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .home-intro { min-height: 470px; grid-template-columns: 1fr 330px; gap: 38px; padding-left: 4%; padding-right: 4%; }
  .home-intro h1 { font-size: 62px; }
  .home-intro-visual { min-height: 310px; }
  .home-visual-poster strong { font-size: 58px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .app-shell-header {
    position: sticky;
    background: var(--bg-top);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .topbar {
    min-height: 62px;
    padding: 10px 16px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .brand-button { min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy small { display: none; }
  .topbar-actions { grid-column: 2; }
  .status-bar { display: none; }
  .search-trigger { min-width: 40px; width: 40px; padding: 0; }
  .search-trigger > span { display: none; }
  .avatar { width: 40px; padding: 0; justify-content: center; }
  .avatar-label { display: none; }
  .tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 90;
    width: calc(100% - 24px);
    max-width: none;
    margin: 0;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--card) 94%, transparent);
    box-shadow: 0 10px 32px rgba(15,23,42,.16);
    backdrop-filter: blur(18px);
  }
  .tabbar button {
    min-width: 0;
    min-height: 50px;
    padding: 5px 2px;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
  }
  .tabbar button.active { background: var(--surface-inverse); }
  .wrap { padding: 18px 16px 16px; }
  #view-home { margin: -18px -16px 0; }
  .home-intro {
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    padding: 52px 24px 70px;
  }
  .home-intro h1 { font-size: 52px; }
  .home-intro p { font-size: 16px; }
  .home-search-button { margin-top: 24px; }
  .home-intro-visual { min-height: 260px; width: min(100%, 340px); margin-left: auto; }
  .home-visual-poster { box-shadow: 16px 18px 0 var(--m-soft), -10px -10px 0 var(--card-2); }
  .home-visual-poster strong { font-size: 52px; }
  .home-dashboard { display: flex; flex-direction: column; gap: 24px; padding: 24px 16px 0; }
  .home-primary { order: 1; }
  .home-secondary { position: static; order: 2; width: 100%; margin-top: 0; }
  .home-feed-head { min-height: 54px; }
  .home-hero { min-height: 255px; padding: 20px; }
  .home-quick-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .home-quick-actions button,
  .home-quick-actions button:nth-child(1) { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
  .home-quick-actions button:first-child { background: var(--surface-inverse); color: #fff; border-color: var(--surface-inverse); }
  .home-quick-actions button:first-child small { color: rgba(255,255,255,.58); }
  .home-quick-actions button { min-height: 70px; padding: 10px 8px; }
  .home-quick-actions strong { font-size: 12px; }
  .home-quick-actions small { font-size: 9px; }
  .home-milestone { gap: 8px; }
  .home-milestone em { margin-left: 0; }
  .fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .msg-list { grid-template-columns: 1fr; }
  .app-foot { padding-bottom: 4px; }
}

@media (max-width: 420px) {
  .home-quick-actions button {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    text-align: left;
    gap: 2px 7px;
  }
  .home-quick-actions button > span { grid-row: 1 / 3; }
  .home-quick-actions small { display: block; }
  .search-mask { padding: 12px; }
  .search-panel { max-height: calc(100dvh - 24px); }
  .search-results { max-height: calc(100dvh - 128px); }
}

@media (prefers-reduced-motion: reduce) {
  .search-mask,
  .search-panel { animation: none !important; }
  .home-intro,
  .home-visual-poster { animation: none !important; }
}

@keyframes intro-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes poster-float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(.5deg) translateY(-10px); }
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
