.ost-profile{padding:18px 0}
.ost-profile__grid{display:grid;grid-template-columns:380px 1fr;gap:26px;align-items:start}
@media (max-width:1024px){.ost-profile__grid{grid-template-columns:1fr;gap:18px}}

.ost-profileCard{
  background:var(--color-beige-light);
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  padding:16px;
  overflow:hidden;
}

.ost-profileCard__avatarWrap{
  position:relative;
  border-radius:10px;
  background:#d9d9d9;
  overflow:hidden;
  height:420px;
}
@media (max-width:1024px){.ost-profileCard__avatarWrap{height:320px}}

.ost-profileCard__avatar{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
}

.ost-profileCard__editAvatar{
  position:absolute;left:12px;right:12px;bottom:12px;
  display:flex;gap:10px;align-items:center;justify-content:center;
  text-decoration:none;
  background:rgba(0,0,0,.55);
  color:#fff;
  border-radius:999px;
  padding:10px 12px;
  backdrop-filter: blur(6px);
  font-weight:700;
  border:0;
  cursor:pointer;
}
.ost-profileCard__editAvatar i{font-size:16px;line-height:1}

.ost-profileCard__name{
  margin-top:14px;
  text-align:center;
  font-weight:400;
  font-size:22px;
  color:var(--color-blue);
  font-family: 'heading';
}

.ost-profileCard__social{
  display:flex;gap:10px;justify-content:center;
  margin-top:12px;
}
.ost-profileCard__socialBtn{
  width:34px;height:34px;border-radius:10px;
  background:var(--color-yellow);
  display:grid;place-items:center;
  text-decoration:none;
  position: relative;
}
.ost-profileCard__socialIcon i{color:#fff;font-size:16px;line-height:1;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}

.ost-profileMain{
  background:#fff;
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  box-shadow:0 16px 30px rgba(0,0,0,.06);
  padding:18px;
}

.ost-profileMain__head{margin-bottom:14px}
.ost-profileMain__title{
  margin:0 0 8px;
  font-weight:700;
  font-size:26px;
  color:var(--color-blue);
}
.ost-profileMain__lead{
  margin:0;
  color:rgba(0,0,0,.70);
  line-height:1.65;
}

.ost-profileMain__metaGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:700px){.ost-profileMain__metaGrid{grid-template-columns:1fr}}

.ost-profileMeta{
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  padding:12px 12px;
}
.ost-profileMeta__label{
  font-weight:700;
  color:var(--color-yellow);
  font-size:13px;
  opacity:.9;
}
.ost-profileMeta__value{
  margin-top:6px;
  font-weight:700;
  color:var(--color-blue);
}
.ost-profileMeta__value a{color:var(--color-blue);text-decoration:none}
.ost-profileMeta__value a:hover{text-decoration:underline}

.ost-profileNotice{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--color-beige-dark);
  background:var(--color-beige-light);
  font-weight:700;
}
.ost-profileNotice.is-ok{border-color:rgba(0,128,0,.25)}
.ost-profileNotice.is-bad{border-color:rgba(180,0,0,.25)}

.ost-profileForm__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:800px){.ost-profileForm__grid{grid-template-columns:1fr}}
.ost-profileField{display:flex;flex-direction:column;gap:8px}
.ost-profileField--full{grid-column:1/-1}
.ost-profileForm__actions{margin-top:14px;display:flex;justify-content:flex-end}

.ost-userStream{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.ost-userStreamItem{
  background:var(--color-beige-light);
  border:1px solid var(--color-beige-dark);
  border-radius:16px;
  padding:14px;
}
.ost-userStreamItem__head{
  display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;
}
.ost-userStreamItem__title{
  color:var(--color-blue);
  font-weight:900;
  text-decoration:none;
}
.ost-userStreamItem__time{color:rgba(0,0,0,.55);font-weight:700;font-size:13px}
.ost-userStreamItem__text{margin-top:10px;color:rgba(0,0,0,.72);line-height:1.6;font-weight:650}
.ost-userStreamItem__foot{margin-top:12px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.ost-userStreamItem__link{color:var(--color-blue);font-weight:900;text-decoration:none}
.ost-userStreamItem__link:hover{text-decoration:underline}
.ost-userStreamItem__rating{display:flex;gap:10px;align-items:center;margin-top:10px}
.ost-userStreamItem__ratingText{font-weight:900;color:rgba(0,0,0,.7)}
.ost-stars i{margin-right:4px}

/* User archive */
.ost-userArchive{padding:10px 0}
.ost-userArchive__title{margin:0 0 12px;font-weight:900;color:var(--color-blue);font-size:28px}
.ost-userArchive__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media (max-width:1024px){.ost-userArchive__grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px){.ost-userArchive__grid{grid-template-columns:repeat(2,1fr)}}

.ost-userCard{
  background:var(--color-beige-light);
  border:1px solid var(--color-beige-dark);
  border-radius:16px;
  padding:14px;
  box-shadow:0 12px 22px rgba(0,0,0,.06);
}
.ost-userCard__link{display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none}
.ost-userCard__avatar{width:90px;height:90px;border-radius:999px;background-size:cover;background-position:center;border:3px solid #fff;box-shadow:0 10px 16px rgba(0,0,0,.10)}
.ost-userCard__name{font-weight:900;color:var(--color-blue);text-align:center}

/* Mini profile (offcanvas) */
.ost-miniProfile{
  background:var(--color-beige-light);
  border:1px solid var(--color-beige-dark);
  border-radius:18px;
  padding:14px;
}
.ost-miniProfile__head{display:flex;gap:12px;align-items:center;text-decoration:none}
.ost-miniProfile__avatar{width:46px;height:46px;border-radius:999px;background-size:cover;background-position:center;border:3px solid #fff;box-shadow:0 10px 16px rgba(0,0,0,.10)}
.ost-miniProfile__name{font-weight:900;color:var(--color-blue);display:block}
.ost-miniProfile__hint{font-weight:700;color:rgba(0,0,0,.55);font-size:13px}
.ost-miniProfile__nav{margin-top:12px}
.ost-miniProfile__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ost-miniProfile__link{
  display:flex;gap:10px;align-items:center;
  text-decoration:none;
  background:#fff;
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  padding:10px 12px;
  font-weight:900;
  color:var(--color-blue);
}
.ost-miniProfile__link i{font-size:16px;line-height:1}
.ost-miniProfile__count{
  margin-left:auto;
  min-width:28px;
  text-align:center;
  font-weight:900;
  font-size:12px;
  background:var(--color-yellow);
  color:#fff;
  border-radius:999px;
  padding:4px 8px;
}

/* Dropdown menu */
.ost-profileMenu{margin-top:16px;position:relative}
.ost-profileMenu__btn{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;
  background:#fff;
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  padding:10px 12px;
  font-weight:700;
  color:var(--color-blue);
  cursor:pointer;
}
.ost-profileMenu__btn i{font-size:14px;line-height:1}
.ost-profileMenu__panel{
  position:absolute;left:0;right:0;top:calc(100% + 8px);
  background:#fff;
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  overflow:hidden;
  z-index:50;
  box-shadow:0 16px 30px rgba(0,0,0,.10);
}
.ost-profileMenu__item{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  text-decoration:none;
  font-weight:600;
  color:var(--color-blue);
  border-top:1px solid rgba(0,0,0,.05);
}
.ost-profileMenu__item:first-child{border-top:none}
.ost-profileMenu__item:hover{background:var(--color-beige-light)}
.ost-profileMenu__item.is-active{background:var(--color-blue);color:#fff}
.ost-profileMenu__count{
  min-width:28px;
  text-align:center;
  font-weight:700;
  font-size:12px;
  background:var(--color-yellow);
  color:#fff;
  border-radius:999px;
  padding:4px 8px;
}
.ost-profileMenu__item.is-active .ost-profileMenu__count{background:rgba(255,255,255,.18);color:#fff}

/* Avatar upload overlay + progress */
.ost-profileCard__avatarUpload{
  position:absolute;left:12px;right:12px;top:12px;
  background:rgba(0,0,0,.45);
  border-radius:10px;
  padding:10px;
  backdrop-filter: blur(6px);
}
.ost-profileCard__avatarUploadBar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  overflow:hidden;
}
.ost-profileCard__avatarUploadBar span{
  display:block;height:100%;
  width:0%;
  background:var(--color-yellow);
  border-radius:999px;
  transition:width .12s linear;
}
.ost-profileCard__avatarUploadText{
  margin-top:8px;
  color:#fff;
  font-weight:700;
  font-size:13px;
  text-align:center;
}

/* Stream layout with square post thumb */
.ost-userStreamItem__row{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:14px;
  align-items:start;
}
@media (max-width:700px){.ost-userStreamItem__row{grid-template-columns:64px 1fr}}
.ost-userStreamItem__thumb{
  width:76px;height:76px;
  border-radius:10px;
  background-size:cover;background-position:center;
  border:1px solid var(--color-beige-dark);
  background-color:#e8e8e8;
  display:block;
  text-decoration:none;
}
.ost-userStreamItem__thumb.is-empty{background-image:none}
@media (max-width:700px){.ost-userStreamItem__thumb{width:64px;height:64px}}
.ost-userStreamItem__col{min-width:0}

/* Edit/Delete UI */
.ost-userStreamItem__tools{display:flex;gap:10px;align-items:center}
.ost-userStreamItem__tool{
  border:1px solid var(--color-beige-dark);
  background:#fff;
  color:var(--color-blue);
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.ost-userStreamItem__tool.is-danger{background:transparent;color:#b00000}
.ost-userStreamItem__edit{margin-top:12px;border-top:1px solid rgba(0,0,0,.06);padding-top:12px}
.ost-userStreamItem__textarea{
  width:100%;
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  padding:10px 10px;
  font-weight:700;
  outline:none;
  background:#fff;
}
.ost-userStreamItem__editRating{margin-top:10px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ost-userStreamItem__editRatingLabel{font-weight:700;color:var(--color-blue)}
.ost-userStreamItem__editRating select{
  border:1px solid var(--color-beige-dark);
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  color:var(--color-blue);
  background:#fff;
}
.ost-userStreamItem__editActions{margin-top:10px;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.ost-userStreamItem__btn{
  border:1px solid var(--color-beige-dark);
  background:#fff;
  color:var(--color-blue);
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.ost-userStreamItem__btn.is-primary{background:var(--color-blue);color:#fff;border-color:var(--color-blue)}
.ost-userStreamItem__editStatus{margin-top:10px;font-weight:700;color:#b00000}

/* ---------------------------------------------------------
   Profile Dropdown: open upward + z-index
--------------------------------------------------------- */
.ost-profileMenu{margin-top:16px;position:relative;z-index:1200}
.ost-profileMenu__btn{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;
}
.ost-profileMenu__btnText{font-weight:800}
.ost-profileMenu__btnIcon{
  display:inline-flex;align-items:center;justify-content:center;
  margin-left:auto;
}
.ost-profileMenu__btnIcon i{font-size:16px;line-height:1}

/* panel opens upward */
.ost-profileMenu__panel{
  position:absolute;left:0;right:0;
  bottom:calc(100% + 8px);
  top:auto;
  z-index:1300;
}

/* give panel a stronger shadow so it reads above content */
.ost-profileMenu__panel{
  box-shadow:0 22px 44px rgba(0,0,0,.14);
}

/* ---------------------------------------------------------
   Review edit stars (composer-like)
--------------------------------------------------------- */
.ost-editStars{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  margin-top:10px;
}
.ost-editStars [data-star]{
  width:38px;height:38px;
  border-radius:10px;
  border:1px solid var(--color-beige-dark);
  background:#fff;
  display:grid;place-items:center;
  cursor:pointer;
}
.ost-editStars [data-star] i{font-size:16px;line-height:1;color:var(--color-blue)}
.ost-editStars [data-star]:hover{background:var(--color-beige-light)}
.ost-editStars__live{
  font-weight:900;
  color:rgba(0,0,0,.7);
}

/* ensure dropdown overlays avatar upload UI */
.ost-profileCard__avatarUpload{z-index:20}
.ost-profileMenu{z-index:1200}
/* ---------------------------------------------------------------------------
   Bookmarks (Profile)
   ---------------------------------------------------------------------------
   Erwartete Struktur (aus meiner Ausgabe):
   - Container: [data-ost-bookmarks="1"]
   - Item:      [data-ost-bookmark-item="1"][data-post-id="123"]
   - Remove:    [data-ost-bm-remove="1"]
   - Status:    [data-ost-bm-status="1"]
--------------------------------------------------------------------------- */

.ost-profile [data-ost-bookmarks="1"]{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Card */
.ost-profile .ost-bookmarkItem,
.ost-profile [data-ost-bookmark-item="1"]{
  border:1px solid var(--color-beige-dark);
  background:var(--color-beige-light);
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  position:relative;
}

/* Optional Thumbnail */
.ost-profile .ost-bookmarkItem__thumb,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__thumb{
  width:74px;
  height:74px;
  border-radius:14px;
  background:rgba(0,0,0,.05);
  background-size:cover;
  background-position:center;
  flex:0 0 74px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
}

/* Content */
.ost-profile .ost-bookmarkItem__col,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__col{
  flex:1;
  min-width:0;
}

/* Head row: title + meta */
.ost-profile .ost-bookmarkItem__head,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

/* Title */
.ost-profile .ost-bookmarkItem__title,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__title{
  font-weight:700;
  line-height:1.25;
  color:var(--color-blue);
  text-decoration:none;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ost-profile .ost-bookmarkItem__title:hover,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__title:hover{
  color:var(--color-yellow);
}

/* Excerpt / small text */
.ost-profile .ost-bookmarkItem__text,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__text{
  margin-top:6px;
  color:var(--color-blue);
  opacity:.9;
  line-height:1.5;
  font-size:.98em;
}

/* Footer */
.ost-profile .ost-bookmarkItem__foot,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__foot{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* "Open" link */
.ost-profile .ost-bookmarkItem__link,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__link{
  color:var(--color-blue);
  text-decoration:none;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.ost-profile .ost-bookmarkItem__link:hover,
.ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__link:hover{
  color:var(--color-yellow);
}

/* Remove button (looks like small secondary button) */
.ost-profile [data-ost-bm-remove="1"],
.ost-profile .ost-bookmarkItem__remove{
  appearance:none;
  border:1px solid var(--color-blue);
  background:transparent;
  color:var(--color-blue);
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:transform .08s ease, border-color .15s ease, color .15s ease, background-color .15s ease, opacity .15s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.ost-profile [data-ost-bm-remove="1"]:hover,
.ost-profile .ost-bookmarkItem__remove:hover{
  border-color:var(--color-yellow);
  color:var(--color-yellow);
  background:rgba(0,0,0,.02);
}

.ost-profile [data-ost-bm-remove="1"]:active,
.ost-profile .ost-bookmarkItem__remove:active{
  transform:scale(.98);
}

/* Disabled / loading states (JS adds status on item) */
.ost-profile [data-ost-bookmark-item="1"].is-loading [data-ost-bm-remove="1"],
.ost-profile [data-ost-bookmark-item="1"].is-busy [data-ost-bm-remove="1"]{
  opacity:.6;
  pointer-events:none;
}

/* Inline status bubble */
.ost-profile [data-ost-bm-status="1"]{
  display:none;
  margin-left:10px;
  font-size:.92em;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.55);
  color:var(--color-blue);
  white-space:nowrap;
}

.ost-profile [data-ost-bm-status="1"].is-loading{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Spinner (pure CSS) */
.ost-profile [data-ost-bm-status="1"].is-loading:before{
  content:"";
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.15);
  border-top-color:var(--color-yellow);
  animation:ostSpin .7s linear infinite;
}

.ost-profile [data-ost-bm-status="1"].is-ok{
  display:inline-flex;
  border-color:rgba(0,0,0,.08);
  background:rgba(255,255,255,.65);
}

.ost-profile [data-ost-bm-status="1"].is-bad{
  display:inline-flex;
  border-color:rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
}

.ost-profile [data-ost-bm-status="1"].is-warn{
  display:inline-flex;
  border-color:rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
}

@keyframes ostSpin{
  to{transform:rotate(360deg)}
}

/* Responsive */
@media (max-width: 680px){
  .ost-profile .ost-bookmarkItem,
  .ost-profile [data-ost-bookmark-item="1"]{
    flex-direction:column;
    gap:10px;
  }

  .ost-profile .ost-bookmarkItem__thumb,
  .ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__thumb{
    width:100%;
    height:160px;
    flex:0 0 auto;
  }

  .ost-profile .ost-bookmarkItem__head,
  .ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__head{
    align-items:flex-start;
  }

  .ost-profile .ost-bookmarkItem__title,
  .ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__title{
    white-space:normal;
  }

  .ost-profile .ost-bookmarkItem__foot,
  .ost-profile [data-ost-bookmark-item="1"] .ost-bookmarkItem__foot{
    flex-direction:column;
    align-items:flex-start;
  }
}