@import url("https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700&family=Noto+Sans:wght@400;500;600&family=Roboto:wght@400;500;700&display=swap");

:root {
  --bg: #1d1d1d;
  --panel: #303030;
  --panel-soft: #2a2a2a;
  --line: #616161;
  --text: #ffffff;
  --muted: #bdbdbd;
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.5);
  --band: #424242;
  --blue: #2f6bff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Roboto, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; height: 8px; }

::-webkit-scrollbar-track { background-color: #5f5f5f3f; border-radius: 10px; }

::-webkit-scrollbar-thumb { background-color: #8a8a8aa1; border-radius: 10px; }

::-webkit-scrollbar-corner { background: #0000000d; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: -999px;
  top: 6px;
  padding: 6px 12px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}
.skip:focus { left: 10px; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1d1d1d;
  border-bottom: 32px solid var(--band);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  margin: 0 auto;
  padding: 0 48px;
}

.brand { order: 1; flex: none; line-height: 0; }
.brand img { width: 132px; height: auto; }

.nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  min-width: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: Jost, Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent); }
.nav a.is-current { color: #fff; }

.search {
  order: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transition: width 0.18s ease, background 0.18s ease, border-radius 0.18s ease;
}

.search:hover { background: rgba(255, 255, 255, 0.08); }

.search svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.search input {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: none;
  color: #fff;
  font: 400 14px "Noto Sans", Roboto, Arial, sans-serif;
  outline: none;
  opacity: 0;
  cursor: pointer;
}

.search:focus-within {
  justify-content: flex-start;
  width: 300px;
  padding: 0 12px;
  border-radius: 8px;
  background: #292929;
}

.search:focus-within svg { margin-right: 8px; }

.search:focus-within input {
  position: static;
  flex: 1;
  min-width: 0;
  width: auto;
  opacity: 1;
  cursor: text;
}

.search input::placeholder { color: #9e9e9e; }
.search input::-webkit-search-cancel-button { display: none; }

.btn-login {
  order: 5;
  flex: none;
  padding: 5px 15px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-family: "Noto Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.btn-login:hover { background: rgba(47, 107, 255, 0.12); }

.header-user {
  order: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.header-slot { position: relative; display: flex; }

.header-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #d6d6d6;
  cursor: pointer;
}

.header-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-icon-btn svg { width: 19px; height: 19px; fill: currentColor; }

.header-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: 300px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #303030;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.header-pop[hidden] { display: none; }

.header-pop-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
}

.header-pop-empty {
  color: var(--muted);
  font-size: 13.5px;
}

.header-menu {
  width: 190px;
  padding: 6px 0;
}

.header-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.header-menu-item:hover { background: rgba(255, 255, 255, 0.08); }

.header-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.header-user-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: #424242;
  font-size: 12px;
  place-items: center;
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-settings {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  place-items: center;
}

.header-settings:hover { color: #fff; }

.header-settings svg { width: 18px; height: 18px; fill: currentColor; }

.header-logout {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.header-logout:hover { color: #fff; }

.layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-areas: "rail feed";
  align-items: start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.feed { grid-area: feed; min-width: 0; }

body.home { background: #1d1d1d; }

body.home .header { background: #1d1d1d; border-bottom-color: var(--band); }

body.home .home-main {
  max-width: 1584px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

body.home .home-pills {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 22px 0 26px;
}

body.home .home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
  font-family: "Noto Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

body.home .home-pill:hover { background: rgba(47, 107, 255, 0.12); }

body.home .home-pill svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.home .layout {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  grid-template-areas: "rail feed";
  align-items: start;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home .rail .panel {
  padding: 16px;
  border: 1px solid #616161;
  border-radius: 8px;
  background: #303030;
}

body.home .rail .panel + .panel { margin-top: 16px; }

body.home .rail .panel-head {
  margin-bottom: 8px;
  padding: 0;
}

body.home .rail .panel-head h2 {
  font-family: Jost, Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

body.home .rail .panel-head .more { display: none; }

body.home .room-list { display: grid; gap: 8px; }

body.home .room-card {
  overflow: hidden;
  border: 1px solid #616161;
  border-radius: 8px;
  background: #303030;
}

body.home .room-card-link {
  position: static;
  display: block;
  overflow: visible;
  aspect-ratio: auto;
  background: none;
}

body.home .room-media { display: block; background: #262626; }

body.home .room-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

body.home .room-caption {
  position: static;
  padding: 8px;
  background: none;
}

body.home .room-card-link .room-name,
body.home .room-card-link .room-creator {
  color: #fff;
  font-family: "Noto Sans", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.section-head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h1 {
  font-size: 20px;
  font-weight: 500;
}

.more {
  color: var(--blue);
  font-size: 14px;
  white-space: nowrap;
}

.more:hover { color: #6f9bff; }

.feed-list {
  display: grid;
  gap: 14px;
}

.photo {
  overflow: hidden;
  border: 1px solid #616161;
  border-radius: 16px;
  background: #303030;
}

.photo-head {
  display: flex;
  align-items: center;
  padding: 16px;
}

.photo-head .image-menu { margin-left: auto; margin-right: -8px; }

.photo-head .image-menu .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

.photo-head .image-menu svg { width: 24px; height: 24px; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #424242;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.who { min-width: 0; }

.name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name:hover { color: var(--blue); }

.photo .avatar {
  width: 40px;
  height: 40px;
  margin: 8px 16px 8px 8px;
  font-size: 20px;
}

a.avatar { color: #fff; }

.handle {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-media {
  display: block;
  background: #0a0b0e;
}

.photo-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.who-ident {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.who-ident .name { min-width: 0; }

.photo .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.photo .handle {
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

.photo-room {
  display: block;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-room:hover { color: var(--text); }

.photo-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 24px 16px;
}

.photo-cheer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: #8f8f8f;
  font: inherit;
  cursor: pointer;
}

.photo-cheer:hover { color: #c9c9c9; }

.photo-cheer svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.photo-cheer.is-on { color: #fff; }
.photo-cheer.is-on svg { fill: currentColor; stroke: none; }
.photo-cheer:disabled { cursor: default; opacity: 0.7; }

.photo-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.photo-cheers {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.photo-cheers-count { font-weight: 600; }

.photo-comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 24px 6px;
}

.photo-comments:empty { display: none; }

.photo-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.photo-comment-item .avatar {
  flex: none;
  align-self: flex-start;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.photo-comment-more {
  padding-left: 52px;
  color: #9a9a9a;
  font-size: 14px;
  text-decoration: none;
}

.photo-comment-more:hover { color: var(--text); }

.photo-comment-main {
  flex: 1;
  min-width: 0;
}

.photo-comment-delete {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #8f8f8f;
  cursor: pointer;
  opacity: 0;
}

.photo-comment-item:hover .photo-comment-delete,
.photo-comment-delete:focus-visible { opacity: 1; }
.photo-comment-delete:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.photo-comment-delete:disabled { cursor: default; opacity: 0.5; }

.photo-comment-delete svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

@media (hover: none) {
  .photo-comment-delete { opacity: 1; }
}

.photo-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-comment-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.photo-comment-name:hover { text-decoration: underline; }

.photo-comment-handle {
  color: #9a9a9a;
  font-size: 14px;
}

.photo-comment-body {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.photo-comment { padding: 0 24px 14px; }

.photo-comment-input {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid #6d6d6d;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.photo-comment-input::placeholder { color: #9a9a9a; }
.photo-comment-input:focus { outline: none; border-bottom-color: #9a9a9a; }

.photo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  background: #424242;
  color: #fff;
  font-size: 13px;
}

.pill svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill:hover { background: #4f4f4f; color: var(--blue); }

.rail { grid-area: rail; min-width: 0; margin-top: 0; }

.rail .panel { border-radius: 0; }

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.panel + .panel { margin-top: 16px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-head h2 {
  font-size: 16px;
  font-weight: 500;
}

.room-list { display: flex; flex-direction: column; gap: 10px; }

.room-card { display: block; }

.room-card-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #262626;
}

.room-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
}

.room-card-link .room-name {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-card-link .room-creator {
  display: block;
  color: #d2d2d2;
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-row { display: flex; }
.room-row + .room-row { border-top: 1px solid #26282d; }

.room-link {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding: 7px 0;
}

.room-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #424242;
}

.room-info { min-width: 0; flex: 1; }

.room-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-link:hover .room-name { color: #fff; }

.room-stat {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.event-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
}

.event-row + .event-row { border-top: 1px solid #26282d; }

.event-date {
  flex: none;
  width: 42px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.event-info { min-width: 0; flex: 1; }

.event-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-title:hover { color: #fff; }

.event-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-live { color: var(--blue); font-weight: 600; }

.empty {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn.is-copied { color: var(--blue); }

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1d1f23;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.04) 50%, transparent 70%);
  animation: sweep 1.4s linear infinite;
}

.photo-skeleton { height: 320px; border: 1px solid var(--line); }
.room-skeleton { height: 54px; border-radius: 4px; }
.room-skeleton + .room-skeleton { margin-top: 4px; }

@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-width: 940px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "feed" "rail"; }
  body.home .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "feed" "rail"; }
  body.home .home-main { padding: 0 16px 48px; }
  .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 0; }
  .panel + .panel { margin-top: 0; }
  .rail > .panel:only-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .header { position: static; border-bottom-width: 8px; }
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    height: auto;
    padding: 12px 14px;
  }
  .brand { order: 1; }
  .brand img { width: 126px; }
  .btn-login,
  .header-user { order: 5; margin-left: auto; }
  .nav { order: 2; width: 100%; gap: 16px; padding-bottom: 2px; }
  .nav a { font-size: 15px; }
  .search {
    order: 4;
    flex: 1 1 100%;
    justify-content: flex-start;
    width: auto;
    height: 38px;
    margin-left: 0;
    padding: 0 12px;
    border-radius: 8px;
    background: #292929;
  }
  .search svg { margin-right: 8px; }
  .search input {
    position: static;
    flex: 1;
    width: auto;
    padding: 0;
    opacity: 1;
    cursor: text;
  }
}

@media (max-width: 560px) {
  .layout { padding: 18px 14px 40px; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .panel + .panel { margin-top: 12px; }
  .section-head h1 { font-size: 18px; }
  .photo-skeleton { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

.error-page {
  display: grid;
  place-items: start center;
  min-height: 60vh;
  padding: 80px 32px 120px;
}

.error-alert {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #3a2020;
  color: #ef9a9a;
  font-size: 16px;
}

.error-icon {
  display: grid;
  flex: none;
  place-items: center;
}

.error-alert svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ef5350;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.error-alert .error-text {
  color: #ef9a9a;
  font-size: 16px;
}

@media (max-width: 760px) {
  .error-page { padding: 48px 16px 80px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.share-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: content-box;
  width: 280px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  padding: 8px 16px;
  overflow-y: auto;
  border-radius: 20px;
  background: #303030;
  color: #fff;
}

.share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
}

.share-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.share-close {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.share-close svg { display: block; }

.share-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.share-item {
  display: block;
  width: 70px;
  padding: 5px 0 3px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.share-tile {
  display: flex;
  flex-direction: column;
}

.share-icon {
  display: block;
  width: 40px;
  height: 40px;
}

.share-icon svg,
.share-icon img {
  display: block;
  width: 40px;
  height: 40px;
}

.share-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 81;
  padding: 8px 14px;
  border-radius: 4px;
  background: #fff;
  color: #1d1d1d;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.share-toast.is-visible { opacity: 1; }

html.share-open { overflow: hidden; }

@media (max-width: 360px) {
  .share-title { font-size: 20px; line-height: 24px; }
}

.settings-restriction {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #4b3418;
  color: #f2a156;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.settings-restriction-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #f2a156;
}

.settings-restriction-text { min-width: 0; }

.toast-host {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  background: #2f9e44;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  animation: toast-in 0.18s ease-out;
}

.toast.is-leaving { opacity: 0; transition: opacity 0.18s ease-in; }

.toast-text { flex: 1; line-height: 1.35; }

.toast-close {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
}

.toast-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.toast-close:hover { opacity: 1; }

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.image-menu { position: relative; display: inline-flex; }

.image-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 210px;
  padding: 6px 0;
  background: #464646;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.image-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: #f2f2f2;
  font: inherit;
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.image-menu-item:hover,
.image-menu-item:focus-visible { background: #5a5a5a; }

.has-ripple { position: relative; overflow: hidden; }

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-wave 0.55s ease-out forwards;
}

@keyframes ripple-wave {
  to { transform: scale(2.6); opacity: 0; }
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.confirm-card {
  width: min(440px, 100%);
  padding: 24px;
  background: #2f2f2f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.confirm-message {
  margin: 0 0 20px;
  color: #f0f0f0;
  font-size: 15px;
  line-height: 1.5;
}

.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

.confirm-yes,
.confirm-cancel {
  border: 0;
  padding: 10px 24px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  cursor: pointer;
}

.confirm-yes { background: #d13b3b; }
.confirm-yes:hover { background: #e04a4a; }
.confirm-cancel { background: #2f6fed; }
.confirm-cancel:hover { background: #3f7cff; }
