:root {
  color-scheme: light;
  --social-ink: #292721;
  --social-muted: #807a70;
  --social-line: #e9e4dc;
  --social-paper: #fffefa;
  --social-canvas: #f6f3ed;
  --social-accent: #80623a;
  --social-accent-dark: #604725;
  --social-menu: #cbbba5;
  --social-menu-active: #b9a489;
}
.social-profile-views { display: flex; min-width: 0; gap: 8px; margin: 16px 0; overflow-x: auto; border-bottom: 1px solid var(--social-line); scrollbar-width: thin; }
.social-profile-views a { flex: 0 0 auto; padding: 10px 13px; color: var(--social-muted); font-weight: 700; text-decoration: none; }
.social-profile-views a.is-active { border-bottom: 2px solid var(--social-accent); color: var(--social-accent-dark); }

* { box-sizing: border-box; }
body.social-app,
body.social-auth-page {
  width: 100%;
  overflow-x: clip;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  background: var(--social-canvas);
  color: var(--social-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; }
.social-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--social-line);
  background: rgb(255 254 250 / 94%);
  backdrop-filter: blur(12px);
}
.social-site-menu { position: relative; z-index: 2; flex: 0 0 auto; }
.social-site-menu > summary { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; border: 1px solid var(--social-line); border-radius: 999px; padding: 7px 13px; background: #fff; color: var(--social-accent-dark); cursor: pointer; font-size: .9rem; font-weight: 700; list-style: none; }
.social-site-menu > summary::-webkit-details-marker { display: none; }
.social-site-menu > summary > span:first-child { display: grid; width: 22px; height: 22px; place-items: center; }
.social-site-menu > summary svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.social-site-menu[open] > summary { border-color: #c6b393; background: #fbf8f2; }
.social-site-menu-panel { position: absolute; top: calc(100% + 9px); left: 0; display: grid; width: min(33.333vw, 360px); max-height: calc(100dvh - 82px); gap: 4px; overflow-y: auto; border: 1px solid var(--social-line); border-radius: 14px; padding: 8px; background: var(--social-paper); box-shadow: 0 16px 45px rgb(41 39 33 / 20%); }
.social-site-menu-panel > a,
.social-site-menu-panel > button { display: flex; min-width: 0; min-height: 42px; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 7px; background: transparent; color: var(--social-ink); text-align: left; text-decoration: none; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.social-site-menu-panel > a:hover,
.social-site-menu-panel > button:hover,
.social-site-menu-panel > a.is-active { background: #f2ede5; color: var(--social-accent-dark); }
.social-site-menu-panel .social-nav-icon { width: 23px; height: 23px; }
.social-site-menu-panel .social-nav-icon svg { width: 20px; height: 20px; }
.social-site-menu-panel b { margin-left: auto; border-radius: 99px; padding: 1px 6px; background: #a34538; color: #fff; font-size: .7rem; }
.social-topbar-title {
  position: absolute;
  left: 50%;
  color: var(--social-accent-dark);
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .12em;
  transform: translateX(-50%);
}
.social-search-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--social-line);
  border-radius: 999px;
  padding: 7px 16px;
  background: #fff;
  font-family: inherit;
  font-size: .95rem;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}
.social-search-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 36px));
  border: 1px solid var(--social-line);
  border-radius: 20px;
  padding: 22px;
  background: var(--social-paper);
  color: var(--social-ink);
  box-shadow: 0 24px 80px rgb(41 39 33 / 24%);
}
.social-search-dialog::backdrop { background: rgb(35 32 27 / 48%); backdrop-filter: blur(3px); }
.social-search-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.social-search-dialog-header h2 { margin: 4px 0 0; font-family: Georgia, serif; }
.social-quick-search-input { width: 100%; min-height: 48px; border: 1px solid var(--social-line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--social-ink); font: inherit; }
.social-quick-search-input:focus { border-color: #b49362; outline: 3px solid rgb(180 147 98 / 18%); }
.social-search-dialog .social-search-tabs { margin-top: 14px; }
.social-search-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; background: transparent; color: var(--social-muted); font: inherit; font-weight: 700; cursor: pointer; }
.social-search-tabs button.is-active { border-bottom-color: var(--social-accent); color: var(--social-accent-dark); }
.social-quick-search-results { display: grid; max-height: min(470px, 52dvh); gap: 6px; overflow-y: auto; padding: 8px 2px 2px; }
.social-quick-search-results > .social-muted { margin: 12px 4px; }
.social-quick-search-result { display: flex; min-height: 58px; align-items: center; gap: 12px; border-radius: 12px; padding: 8px; color: inherit; text-decoration: none; }
.social-quick-search-result:hover { background: #f5f1e9; }
.social-quick-search-result > img:not(.social-quick-search-thumbnail),
.social-quick-search-result > .social-avatar-fallback { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.social-quick-search-copy { display: grid; min-width: 0; gap: 3px; }
.social-quick-search-copy small { overflow: hidden; color: var(--social-muted); text-overflow: ellipsis; white-space: nowrap; }
.social-quick-search-thumbnail { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.social-search-link:hover { border-color: #c6b393; background: #fbf8f2; }
.social-search-link span { font-size: 1.3rem; line-height: 1; }
.social-brand {
  display: grid;
  width: 54px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
}
.social-brand img {
  display: block;
  width: 52px;
  height: 56px;
  object-fit: contain;
}
.social-auth-card > .social-brand {
  width: 70px;
  height: 82px;
}
.social-auth-card > .social-brand img {
  width: 70px;
  height: 82px;
}
.social-topbar > .social-avatar-link,
.social-topbar > .social-signin-small {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.social-brand {
  color: var(--social-accent-dark);
  text-decoration: none;
}
.social-avatar-link,
.social-post-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #e9decc;
  color: var(--social-accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.social-avatar-link img,
.social-post-avatar img,
.social-sidebar-user img,
.social-person-chip img,
.social-notification-list img,
.social-inbox img,
.social-thread > header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-signin-small { color: var(--social-accent-dark); font-weight: 700; text-decoration: none; }
.social-layout {
  display: grid;
  width: min(1120px, 100%);
  min-height: calc(100vh - 64px);
  grid-template-columns: 230px minmax(0, 680px);
  gap: 38px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}
.social-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  height: calc(100vh - 110px);
  flex-direction: column;
}
.social-nav { display: grid; gap: 8px; }
.social-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--social-menu);
  color: #443d33;
  font-weight: 600;
  text-decoration: none;
}
.social-nav a:hover,
.social-nav a.is-active { background: var(--social-menu-active); color: #332b22; }
.social-nav-icon { display: grid; width: 24px; flex: 0 0 auto; place-items: center; }
.social-nav-icon svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.social-nav b,
.social-mobile-nav b {
  margin-left: auto;
  border-radius: 99px;
  background: #a34538;
  color: #fff;
  font-size: .72rem;
  padding: 2px 7px;
}
.social-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid var(--social-line);
  text-decoration: none;
}
.social-sidebar-user img,
.social-avatar-fallback {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e9decc;
  color: var(--social-accent-dark);
  font-weight: 700;
  object-fit: cover;
}
.social-sidebar-user strong,
.social-sidebar-user small { display: block; }
.social-sidebar-user small { margin-top: 3px; color: var(--social-muted); }
.social-main { min-width: 0; }
.social-feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 20px;
}
.social-feed-shortcuts { display: flex; align-items: center; gap: 12px; }
.social-feed-shortcuts > a:last-child { color: var(--social-muted); font-size: .82rem; text-decoration: none; }
.social-feed-heading h1,
.social-settings-panel h1,
.social-profile-info h1,
.social-welcome h1 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}
.social-section-title { margin: 22px 0 12px; font-family: Georgia, serif; font-size: 1.15rem; }
.social-kicker {
  margin: 0;
  color: var(--social-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.social-welcome,
.social-empty,
.social-settings-panel,
.social-composer,
.social-post,
.social-profile-card,
.social-people,
.social-notification-list,
.social-messages-layout {
  border: 1px solid var(--social-line);
  border-radius: 18px;
  background: var(--social-paper);
}
.social-welcome { margin-bottom: 22px; padding: 24px; }
.social-welcome p:not(.social-kicker) { color: var(--social-muted); line-height: 1.6; }
.social-welcome > div { display: flex; flex-wrap: wrap; gap: 10px; }
.social-primary-button,
.social-secondary-button,
.social-logout-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--social-accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.social-primary-button:hover { background: var(--social-accent-dark); }
.social-secondary-button {
  border: 1px solid #d8c9b4;
  background: #fffefa;
  color: var(--social-accent-dark);
}
.social-google-disabled { width: 100%; opacity: .7; }
.social-composer { margin-bottom: 18px; padding: 16px; }
.social-composer textarea,
.social-settings-form textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--social-ink);
  font: inherit;
}
.social-catalog-picker { display: grid; gap: 6px; margin: 12px 0; color: var(--social-ink); font-size: .88rem; font-weight: 700; }
.social-catalog-picker select { width: 100%; min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-catalog-picker small,
.social-catalog-notice { color: var(--social-muted); font-size: .8rem; font-weight: 400; }
.social-catalog-notice { margin: 10px 0; }
.social-composer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.social-composer-tools select,
.social-file-button {
  min-height: 38px;
  border: 1px solid var(--social-line);
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  color: var(--social-ink);
  font: inherit;
}
.social-file-button input { max-width: 150px; }
.social-post-list { display: grid; gap: 14px; }
.social-home-tabs { display: flex; gap: 8px; margin: 4px 0 18px; border-bottom: 1px solid var(--social-line); }
.social-home-tabs a { flex: 1 1 0; padding: 12px 8px; color: var(--social-muted); font-weight: 750; text-align: center; text-decoration: none; }
.social-home-tabs a.is-active { border-bottom: 3px solid var(--social-accent); color: var(--social-accent-dark); }
.social-visual-stories { margin-bottom: 24px; }
.social-visual-stories,
.social-story-list,
.social-story-post,
.social-story-interactions,
.social-text-stories,
.social-text-story-card,
.social-text-story-detail,
.social-story-chapters,
.social-story-characters { min-width: 0; max-width: 100%; }
.social-visual-stories > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.social-visual-stories > header h1,
.social-story-detail > h1 { margin: 4px 0; font-family: Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.social-visual-stories > header p:last-child { margin: 4px 0 0; color: var(--social-muted); }
.social-story-list { display: grid; gap: 14px; }
.social-story-post > h2 { margin: 16px 0 8px; font-family: Georgia, serif; font-size: 1.3rem; }
.social-story-card-description { margin: 0 0 12px; color: var(--social-muted); line-height: 1.55; }
.social-story-card { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 12px; background: #302d27; text-decoration: none; }
.social-story-card > img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #f1eee8; }
.social-story-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #302d27; }
.social-story-card-grid > img { width: 100%; height: clamp(110px, 24vw, 270px); object-fit: cover; }
.social-story-card-grid > video { width: 100%; height: clamp(110px, 24vw, 270px); object-fit: cover; pointer-events: none; }
.social-story-card-grid > img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; min-height: 220px; }
.social-story-card-grid > video:first-child { grid-column: span 2; grid-row: span 2; height: 100%; min-height: 220px; }
.social-story-card-grid > img:nth-child(n + 4) { display: none; }
.social-story-card-grid > video:nth-child(n + 4) { display: none; }
.social-story-count { position: absolute; right: 12px; bottom: 12px; border-radius: 99px; padding: 7px 11px; background: rgb(0 0 0 / 72%); color: #fff; font-size: .82rem; font-weight: 700; }
.social-story-open-link { display: inline-flex; margin-top: 12px; color: var(--social-accent-dark); font-size: .88rem; font-weight: 750; text-decoration: none; }
.social-story-open-link:hover { text-decoration: underline; }
.social-story-detail { display: grid; gap: 14px; margin: 8px 0 28px; }
.social-story-back { justify-self: start; }
.social-story-description { margin: 0; color: var(--social-muted); line-height: 1.6; }
.social-story-interactions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--social-line); padding-top: 8px; }
.social-story-interactions > .social-post-stats,
.social-story-interactions > .social-comment-form,
.social-story-interactions > .social-comments,
.social-story-interactions > .social-story-open-link,
.social-story-interactions > .social-muted { grid-column: 1 / -1; }
.social-story-save-form { grid-column: 1; margin: 0; }
.social-story-interactions > .social-post-actions { grid-column: 2; justify-self: end; }
.social-story-interactions > .social-story-action-bar { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; gap: 12px; }
.social-story-action-bar .social-story-save-form { grid-column: auto; }
.social-story-action-bar > form,
.social-story-action-bar > button { flex: 1 1 0; }
.social-story-action-bar > form button,
.social-story-action-bar > button { width: 100%; min-height: 46px; border: 1px solid var(--social-line); border-radius: 12px; background: #fff; }
.social-story-action-bar > form button:hover,
.social-story-action-bar > button:hover { border-color: #c6b393; background: #fbf8f2; }
.social-story-post .social-story-interactions { margin-top: 12px; }
.social-story-post:target { border-color: #c8ad7d; box-shadow: 0 0 0 3px rgb(180 147 98 / 18%); }
.social-story-sequence { display: grid; gap: 18px; }
.social-story-sequence figure { margin: 0; }
.social-story-sequence img,
.social-story-sequence video { display: block; width: 100%; max-height: 780px; border-radius: 14px; background: #f1eee8; object-fit: contain; }
.social-story-sequence figcaption { margin-top: 7px; color: var(--social-muted); font-size: .78rem; text-align: right; }
.social-story-form h3,
.social-drawing-tools h4 { margin: 4px 0; font-family: Georgia, serif; }
.social-story-preview-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.social-story-preview-item { min-width: 0; overflow: hidden; border: 1px solid var(--social-line); border-radius: 10px; background: #fff; cursor: grab; }
.social-story-preview-item:active { cursor: grabbing; }
.social-story-preview-item img,
.social-story-preview-item video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1eee8; }
.social-story-preview-info { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; padding: 7px; }
.social-story-preview-info > span { grid-column: 1 / -1; }
.social-story-preview-info > span { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.social-story-preview-info button { min-height: 32px; border: 0; border-radius: 7px; padding: 5px; background: #f2ede5; color: var(--social-accent-dark); cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; }
.social-drawing-tools { display: grid; gap: 10px; border-top: 1px solid var(--social-line); padding-top: 14px; }
.social-drawing-tools canvas { display: block; width: 100%; height: auto; border: 1px solid #d9d3c9; border-radius: 10px; background: #fff; cursor: crosshair; touch-action: none; }
.social-drawing-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.social-drawing-controls label { display: flex; align-items: center; gap: 7px; color: var(--social-muted); font-size: .82rem; }
.social-drawing-controls input[type="range"] { width: 110px; }
.social-drawing-controls input[data-pixel-size] { width: 130px; }
.social-drawing-controls input[type="color"] { width: 40px; height: 36px; border: 1px solid var(--social-line); border-radius: 7px; padding: 3px; background: #fff; }
.social-brush-preview { display: inline-block; flex: 0 0 auto; border: 1px solid; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / 10%); }
.social-drawing-tools canvas:focus-visible,
.social-message-canvas:focus-visible { outline: 3px solid #b89b6b; outline-offset: 2px; }
.social-drawing-controls button[aria-pressed="true"],
.social-message-drawing-tools button[aria-pressed="true"] { border-color: #b74450; background: #f8e8e8; color: #8d303a; }
.social-drawing-palette { display: flex; align-items: center; gap: 5px; }
.social-drawing-palette button { width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; background: var(--palette-color); box-shadow: 0 0 0 1px #bdb6aa; cursor: pointer; }
.social-post { overflow: hidden; padding: 16px; scroll-margin-top: 84px; }
.social-post:target { border-color: #c8ad7d; box-shadow: 0 0 0 3px rgb(180 147 98 / 18%); }
.social-post-author { display: flex; align-items: center; gap: 10px; }
.social-post-author > div { display: grid; gap: 4px; }
.social-post-author > div > a { font-weight: 750; text-decoration: none; }
.social-post-author small,
.social-post-stats,
.social-muted { color: var(--social-muted); font-size: .82rem; }
.social-post-body { margin: 16px 0; line-height: 1.65; overflow-wrap: anywhere; }
.social-post-reference { margin: 14px 0 -8px; color: var(--social-muted); font-size: .82rem; }
.social-post-reference strong { color: var(--social-ink); }
.social-quoted-post { display: grid; gap: 7px; margin: 14px 0; border: 1px solid var(--social-line); border-radius: 12px; padding: 12px; background: #faf8f5; }
.social-quoted-post > a { color: var(--social-accent-dark); font-weight: 750; text-decoration: none; }
.social-quoted-post > strong { font-size: .9rem; }
.social-quoted-post > p { margin: 0; color: var(--social-muted); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.social-quoted-post > img { width: 100%; max-height: 280px; border-radius: 9px; object-fit: contain; background: #f1eee8; }
.social-quote-button,
.social-quote-target { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 7px 10px; background: #f2ede5; color: var(--social-accent-dark); font: inherit; font-weight: 700; text-decoration: none; }
.social-quote-target { display: block; margin: 0; line-height: 1.5; }
.social-post-quote {
  margin: 16px 0;
  border-left: 3px solid #b49362;
  padding: 6px 0 6px 16px;
  color: #5c4b34;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
}
.social-post-image { display: block; width: 100%; max-height: 620px; border-radius: 12px; object-fit: contain; background: #f1eee8; }
.social-post-video { display: block; width: 100%; max-height: 620px; margin-top: 12px; border-radius: 12px; background: #171614; }
.social-video-embed { position: relative; width: 100%; margin-top: 12px; overflow: hidden; border-radius: 12px; background: #171614; aspect-ratio: 16 / 9; }
.social-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-post-video-link { display: inline-flex; margin: 10px 0; border-radius: 9px; padding: 10px 13px; background: #ebe4d8; color: var(--social-accent-dark); font-weight: 700; text-decoration: none; }
.social-post-stats { display: flex; gap: 16px; padding: 12px 0 8px; }
.social-post-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.social-post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--social-line); padding-top: 8px; }
.social-post-actions form { margin: 0; }
.social-action-label { display: none; }
.social-post-actions > form,
.social-post-actions > a { min-width: 0; }
.social-action-icon { display: inline-grid; min-width: 1.25em; place-items: center; font-size: 1.25rem; line-height: 1; }
.social-action-icon svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.social-quote-button { white-space: nowrap; }
.social-like-button,
.social-save-button,
.social-comment-form button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  background: transparent;
  color: var(--social-accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.social-like-button:hover,
.social-save-button:hover,
.social-comment-toggle:hover,
.social-share-button:hover { background: #f2ede5; }
.social-like-button > span:first-child { font-size: 1.25rem; }
.social-like-button.is-liked { color: #b74450; }
.social-save-button.is-saved { color: var(--social-accent-dark); }
.social-like-button.is-liked .social-action-icon svg path { fill: currentColor; }
.social-save-button.is-saved .social-action-icon svg path { fill: rgb(128 98 58 / 16%); }
.social-like-button,
.social-save-button,
.social-quote-button,
.social-comment-toggle,
.social-share-button,
.social-comment-form button { width: 40px; min-width: 40px; height: 40px; justify-content: center; padding: 7px; }
.social-like-button { transition: color .16s ease, transform .16s ease; }
.social-like-button:active { transform: scale(.88); }
.social-comment-toggle,
.social-share-button { display: inline-flex; align-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--social-accent-dark); cursor: pointer; }
.social-comment-toggle[aria-expanded="true"] { background: #f2ede5; color: var(--social-ink); }
.social-post-actions > form,
.social-post-actions > a { display: inline-flex; align-items: center; justify-content: center; }
.social-quote-button { display: inline-flex; align-items: center; border-radius: 9px; color: var(--social-accent-dark); text-decoration: none; }
.social-quote-button:hover { background: #f2ede5; }
.social-post-mentions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; color: var(--social-muted); font-size: .78rem; }
.social-post-mentions > a { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--social-line); border-radius: 99px; padding: 3px 8px 3px 3px; background: #fff; color: var(--social-accent-dark); font-weight: 700; text-decoration: none; }
.social-post-mentions img,
.social-post-mentions .social-avatar-fallback { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; }
.social-comments { display: grid; gap: 6px; margin-top: 12px; }
.social-comment { display: flex; align-items: flex-start; gap: 9px; border-radius: 10px; padding: 8px 10px; background: #f7f4ef; }
.social-comment-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: 50%; background: #e9decc; color: var(--social-accent-dark); font-size: .85rem; font-weight: 700; text-decoration: none; }
.social-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-comment > p { display: grid; gap: 2px; margin: 0; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.social-comment-drawing { display: block; width: min(100%, 360px); max-height: 220px; border: 1px solid var(--social-line); border-radius: 8px; background: #fff; object-fit: contain; }
.social-comments .social-comment-author { color: var(--social-accent-dark); font-weight: 750; text-decoration: none; }
.social-comment-form { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; }
.social-comment-form[hidden] { display: none; }
.social-comment-form [name="body"],
.social-send-message input {
  min-width: 0;
  flex: 1 1 180px;
  border: 1px solid var(--social-line);
  border-radius: 9px;
  padding: 10px;
  background: #fff;
  color: var(--social-ink);
  font: inherit;
}
.social-comment-form [name="body"] { display: block; width: auto; min-height: 44px; max-height: 180px; resize: none; line-height: 1.45; }
.social-comment-form [name="body"]:focus { border-color: #b49362; outline: 3px solid rgb(180 147 98 / 18%); }
.social-comment-form > button[type="submit"] { flex: 0 0 44px; }
.social-comment-drawing-editor { display: grid; width: 100%; min-width: 0; max-width: 100%; flex: 0 0 100%; gap: 8px; }
.social-comment-drawing-editor summary { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--social-line); border-radius: 50%; color: var(--social-accent-dark); cursor: pointer; list-style: none; }
.social-comment-drawing-editor summary::-webkit-details-marker { display: none; }
.social-comment-drawing-editor summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.social-comment-drawing-editor[open] summary { background: #f2ede5; }
.social-comment-drawing-editor summary:hover { background: #f2ede5; }
.social-comment-drawing-editor .social-message-canvas { display: block; width: 100%; min-width: 0; max-width: 100%; height: auto; max-height: 260px; touch-action: none; overscroll-behavior: contain; }
.social-comment-drawing-editor > .social-muted { font-size: .78rem; }
.social-people { margin-bottom: 16px; padding: 15px; }
.social-people h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.1rem; }
.social-people-row { display: flex; gap: 10px; overflow-x: auto; }
.social-person-chip { display: grid; min-width: 75px; justify-items: center; gap: 6px; text-align: center; text-decoration: none; }
.social-person-chip img,
.social-person-chip .social-avatar-fallback { width: 48px; height: 48px; border-radius: 50%; }
.social-person-chip > span:last-child { max-width: 84px; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.social-empty { margin: 20px 0; padding: 24px; color: var(--social-muted); line-height: 1.6; }
.social-empty h1,
.social-empty h2 { color: var(--social-ink); font-family: Georgia, serif; }
.social-notification-list { overflow: hidden; }
.social-notification-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 14px 0 20px; }
.social-notification-filter label { color: var(--social-muted); font-size: .88rem; }
.social-notification-filter select { min-height: 40px; border: 1px solid var(--social-line); border-radius: 9px; padding: 7px 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-notification-list > a,
.social-inbox > a { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--social-line); text-decoration: none; }
.social-notification-list img,
.social-notification-list .social-avatar-fallback,
.social-inbox img,
.social-inbox .social-avatar-fallback { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; }
.social-notification-list small,
.social-inbox small { display: block; margin-top: 4px; color: var(--social-muted); }
.social-messages-layout { display: grid; min-height: 480px; grid-template-columns: minmax(190px, .8fr) 1.2fr; overflow: hidden; }
.social-inbox { border-right: 1px solid var(--social-line); }
.social-inbox > a.is-active { background: #f2ede5; }
.social-inbox > a > span { min-width: 0; }
.social-inbox small { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-new-message { display: grid; gap: 8px; margin-top: 16px; padding: 12px; }
.social-new-message label { display: grid; gap: 6px; color: var(--social-muted); font-size: .8rem; }
.social-new-message input { min-height: 38px; width: 100%; border: 1px solid var(--social-line); border-radius: 8px; padding: 8px; }
.social-thread { display: flex; min-width: 0; flex-direction: column; }
.social-thread > header { display: flex; min-height: 60px; align-items: center; gap: 10px; border-bottom: 1px solid var(--social-line); padding: 10px 14px; }
.social-thread > header img { width: 36px; height: 36px; border-radius: 50%; }
.social-thread > header a { font-weight: 700; text-decoration: none; }
.social-thread-messages { display: flex; flex: 1; flex-direction: column; gap: 8px; overflow-y: auto; padding: 12px; }
.social-thread-messages p { width: fit-content; max-width: 85%; margin: 0; border-radius: 12px 12px 12px 3px; padding: 10px; background: #f0ece5; line-height: 1.5; overflow-wrap: anywhere; }
.social-thread-messages p.is-mine { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: #e9decc; }
.social-thread-messages small { display: block; margin-top: 5px; color: var(--social-muted); font-size: .68rem; }
.social-thread-message { display: grid; width: fit-content; max-width: 85%; gap: 5px; border-radius: 12px 12px 12px 3px; padding: 8px; background: #f0ece5; }
.social-thread-message.is-mine { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: #e9decc; }
.social-thread-message > p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.social-thread-message > small { justify-self: end; color: var(--social-muted); font-size: .68rem; }
.social-drawn-message { display: block; width: min(100%, 520px); max-height: 400px; border-radius: 8px; background: #fff; object-fit: contain; }
.social-message-modes { display: flex; gap: 8px; border-top: 1px solid var(--social-line); padding: 12px 12px 0; }
.social-message-modes button { border: 1px solid var(--social-line); border-radius: 999px; padding: 8px 12px; background: #fff; color: var(--social-muted); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.social-message-modes button.is-active { border-color: #cbbba5; background: #f3ede3; color: var(--social-accent-dark); }
.social-send-text { display: flex; gap: 8px; border-top: 1px solid var(--social-line); padding: 12px; }
.social-send-text input { min-width: 0; min-height: 42px; flex: 1; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px; font: inherit; }
.social-send-text[hidden],
.social-send-drawing[hidden] { display: none; }
.social-send-drawing { display: grid; gap: 10px; border-top: 1px solid var(--social-line); padding: 12px; }
.social-send-drawing [data-message-panel="drawing"] { display: grid; gap: 10px; }
.social-send-drawing > .social-muted { margin: 0; font-size: .85rem; }
.social-message-canvas { display: block; width: 100%; height: auto; max-height: 420px; aspect-ratio: 15 / 7; border: 1px solid var(--social-line); border-radius: 10px; background: #fff; cursor: crosshair; touch-action: none; }
.social-message-drawing-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.social-message-drawing-tools label { display: inline-flex; align-items: center; gap: 6px; color: var(--social-muted); font-size: .78rem; }
.social-message-drawing-tools input[type="range"] { width: 95px; accent-color: var(--social-accent-dark); }
.social-message-drawing-tools input[type="color"] { width: 34px; height: 34px; border: 0; padding: 0; background: transparent; }
.social-message-drawing-tools output { min-width: 20px; color: var(--social-ink); font-weight: 700; }
.social-send-drawing [data-message-status] { min-height: 1.2em; }
.social-profile-card { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; padding: 150px 20px 20px; }
.social-profile-card { box-shadow: 0 8px 28px rgb(45 39 28 / 4%); }
.social-profile-cover { position: absolute; inset: 0 0 auto; height: 150px; overflow: hidden; border-radius: 18px 18px 0 0; background: linear-gradient(130deg, #d7c6ad, #eee7dc 58%, #c7b79e); }
.social-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.social-profile-avatar { position: relative; display: grid; width: 100px; height: 100px; flex: 0 0 auto; overflow: hidden; place-items: center; margin-top: -50px; border: 4px solid var(--social-paper); border-radius: 50%; background: #e9decc; color: var(--social-accent-dark); font-size: 2rem; font-weight: 700; }
.social-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-profile-info { min-width: 0; flex: 1; }
.social-profile-buttons { position: relative; }
.social-profile-info h1 { font-size: 1.55rem; }
.social-profile-info p { color: var(--social-muted); line-height: 1.5; }
.social-profile-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; }
.social-profile-stats a { color: var(--social-muted); text-decoration: none; }
.social-profile-stats a:hover { color: var(--social-accent-dark); text-decoration: underline; }
.social-profile-stats strong { color: var(--social-ink); }
.social-profile-username { margin: -6px 0 8px; color: var(--social-muted); font-size: .9rem; }
.social-birthday-note { display: inline-flex; align-items: center; border: 1px solid #ecd6a8; border-radius: 999px; padding: 7px 11px; background: #fff8e8; color: #76531e !important; font-weight: 700; }
.social-search-page { display: grid; gap: 16px; }
.social-search-form { display: flex; gap: 8px; }
.social-search-form input { min-width: 0; flex: 1; border: 1px solid var(--social-line); border-radius: 10px; padding: 11px 13px; background: var(--social-paper); color: var(--social-ink); font: inherit; }
.social-search-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--social-line); }
.social-search-tabs a { border-bottom: 3px solid transparent; padding: 10px 12px; color: var(--social-muted); font-weight: 700; text-decoration: none; }
.social-search-tabs a.is-active { border-bottom-color: var(--social-accent); color: var(--social-accent-dark); }
.social-search-posts { display: grid; gap: 14px; }
.social-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.social-artistbook-link { display: inline-block; margin-top: 10px; color: var(--social-accent-dark); font-size: .86rem; font-weight: 700; text-decoration: none; }
.social-profile-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.social-profile-buttons form { margin: 0; }
.social-settings-gear { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--social-line); border-radius: 50%; background: #fff; color: var(--social-accent-dark); }
.social-settings-gear svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.social-private-label { color: var(--social-muted); font-size: .82rem; }
.social-private-notice { margin: 16px 0; border: 1px solid var(--social-line); border-radius: 14px; padding: 18px; background: var(--social-paper); }
.social-private-notice h2 { margin: 0 0 8px; font-family: Georgia, serif; }
.social-private-notice p { margin: 0; color: var(--social-muted); line-height: 1.5; }
.social-drawings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.social-drawings-grid > article { min-width: 0; overflow: hidden; border: 1px solid var(--social-line); border-radius: 12px; padding: 10px; background: var(--social-paper); }
.social-drawings-grid > article > img { display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: #f1eee8; }
.social-drawings-grid > article > h2 { margin: 9px 0 4px; font-size: .95rem; overflow-wrap: anywhere; }
.social-drawings-grid > article > p { margin: 0; color: var(--social-muted); font-size: .78rem; }
.social-profile-views { display: flex; gap: 8px; margin: 14px 0 18px; overflow-x: auto; border-bottom: 1px solid var(--social-line); }
.social-profile-views a { flex: 0 0 auto; border-bottom: 3px solid transparent; padding: 10px 12px; color: var(--social-muted); font-size: .88rem; font-weight: 700; text-decoration: none; }
.social-profile-views a:hover,
.social-profile-views a.is-active { border-bottom-color: var(--social-accent); color: var(--social-accent-dark); }
.social-profile-drawing { min-width: 0; overflow: hidden; border: 1px solid var(--social-line); border-radius: 12px; background: var(--social-paper); color: var(--social-ink); text-decoration: none; }
.social-profile-drawing img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1eee8; }
.social-profile-drawing > span { display: block; min-height: 38px; overflow: hidden; padding: 8px; color: var(--social-muted); font-size: .78rem; text-overflow: ellipsis; }
.social-profile-hieroglyph-list,
.social-profile-connections { display: grid; gap: 9px; }
.social-profile-hieroglyph-list > a,
.social-profile-connections > a { display: flex; min-width: 0; align-items: center; gap: 12px; border: 1px solid var(--social-line); border-radius: 12px; padding: 10px; background: var(--social-paper); color: var(--social-ink); text-decoration: none; }
.social-profile-hieroglyph-list > a:hover,
.social-profile-connections > a:hover { border-color: #c6b393; background: #fbf8f2; }
.social-profile-hieroglyph-list img { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.social-profile-hieroglyph-list span { display: grid; gap: 5px; min-width: 0; }
.social-profile-hieroglyph-list small { color: var(--social-muted); }
.social-profile-connections img,
.social-profile-connections .social-avatar-fallback { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.social-settings-nav { display: flex; gap: 8px; margin: 18px 0; padding-bottom: 10px; overflow-x: auto; border-bottom: 1px solid var(--social-line); }
.social-settings-nav a { flex: 0 0 auto; border-radius: 9px; padding: 9px 12px; background: #f2ede5; color: var(--social-accent-dark); font-size: .88rem; font-weight: 700; text-decoration: none; }
.social-settings-form > h2,
.social-settings-form #privacy-settings h2,
.social-settings-account h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 1.15rem; }
.social-settings-form #privacy-settings { display: grid; gap: 10px; margin-top: 14px; border-top: 1px solid var(--social-line); padding-top: 14px; }
.social-birthday-settings { display: grid; gap: 12px; border: 1px solid var(--social-line); border-radius: 14px; padding: 16px; background: #fbf9f5; }
.social-birthday-settings h2 { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; }
.social-birthday-settings label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
.social-birthday-settings input,
.social-birthday-settings select { width: 100%; min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-birthday-settings small { color: var(--social-muted); font-size: .8rem; font-weight: 400; line-height: 1.5; }
.social-settings-form select { min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px; background: #fff; font: inherit; }
.social-settings-form label small { color: var(--social-muted); font-size: .8rem; font-weight: 400; }
.social-settings-account { display: grid; gap: 14px; margin-top: 22px; border-top: 1px solid var(--social-line); padding-top: 18px; }
.social-settings-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-mobile-profile-avatar { display: grid; width: 30px; height: 30px; overflow: hidden; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.social-mobile-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.social-settings-panel { padding: 24px; }
.social-settings-panel { box-shadow: 0 8px 28px rgb(45 39 28 / 4%); }
.social-settings-form { display: grid; gap: 14px; margin: 22px 0; }
.social-settings-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
.social-settings-form input:not([type=file]),
.social-settings-form textarea { width: 100%; border: 1px solid var(--social-line); border-radius: 9px; padding: 11px; font: inherit; }
.social-settings-form input:not([type=file]):focus,
.social-settings-form textarea:focus,
.social-settings-form select:focus { border-color: #b49362; outline: 3px solid rgb(180 147 98 / 16%); }
.social-settings-form textarea { min-height: 100px; }
.social-logout-button { margin: 18px 0; background: #f3e9e7; color: #8a4037; }
.social-alert,
.social-success { border-radius: 10px; padding: 12px 14px; background: #f8e9e6; color: #8a352b; }
.social-success { background: #e8f2e7; color: #315e32; }
.social-auth-page { display: grid; place-items: center; padding: 24px; }
.social-auth-card { width: min(100%, 440px); min-width: 0; border: 1px solid var(--social-line); border-radius: 22px; padding: 32px; background: var(--social-paper); box-shadow: 0 22px 60px rgb(40 32 20 / 8%); }
.social-auth-card > h1 { margin: 18px 0 8px; font-family: Georgia, serif; }
.social-auth-card > p { color: var(--social-muted); line-height: 1.55; }
.social-auth-form,
.social-auth-form label { display: grid; gap: 12px; }
.social-auth-form label { gap: 7px; font-weight: 700; }
.social-auth-form input { width: 100%; border: 1px solid var(--social-line); border-radius: 9px; padding: 12px; font: inherit; }
.social-auth-form small { color: var(--social-muted); }
.social-auth-form .social-remember-option { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: var(--social-ink); font-weight: 600; }
.social-auth-form .social-remember-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--social-accent); }
.social-auth-form .social-primary-button { width: 100%; margin-top: 6px; }
.social-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--social-muted); }
.social-divider::before,
.social-divider::after { height: 1px; flex: 1; background: var(--social-line); content: ""; }
.social-auth-card .g_id_signin { display: flex; width: 100%; max-width: 360px; justify-content: center; overflow: hidden; }
.social-auth-card .g_id_signin iframe { max-width: 100%; }
.social-auth-switch { margin: 22px 0 10px; text-align: center; }
.social-resend-form { display: grid; gap: 9px; margin: 18px 0; border-top: 1px solid var(--social-line); padding-top: 16px; }
.social-resend-form label { display: grid; gap: 7px; color: var(--social-muted); font-size: .86rem; }
.social-resend-form input { min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px; font: inherit; }
.social-auth-switch a,
.social-guest-link { color: var(--social-accent-dark); font-weight: 700; }
.social-guest-link { display: block; text-align: center; }
.social-muted { color: var(--social-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.social-mobile-nav { display: none; }
.social-create-fab {
  position: fixed;
  z-index: 30;
  right: max(26px, calc((100vw - 1120px) / 2));
  bottom: 28px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--social-accent);
  box-shadow: 0 6px 22px rgb(41 39 33 / 22%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
}
.social-create-fab:hover { background: var(--social-accent-dark); }
.social-create-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(84vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--social-line);
  border-radius: 20px;
  padding: 22px;
  background: var(--social-paper);
  color: var(--social-ink);
  box-shadow: 0 18px 70px rgb(41 39 33 / 28%);
}
.social-create-dialog--canvas-focus,
.social-create-dialog--canvas-focus[open] {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.social-create-dialog--canvas-focus .social-create-dialog-heading { display: none; }
.social-create-dialog--canvas-focus .social-story-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.social-create-dialog--canvas-focus .social-story-form > :not(.social-drawing-tools) { display: none; }
.social-create-dialog--canvas-focus .social-drawing-tools {
  min-height: 0;
  flex: 1;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  overflow: hidden;
}
.social-create-dialog--canvas-focus .social-drawing-tools canvas {
  width: min(100%, calc(100dvh * 5 / 3));
  height: auto;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: 5 / 3;
}
.social-canvas-stage { position: relative; display: grid; width: 100%; min-width: 0; place-items: center; overflow: hidden; border-radius: 10px; }
.social-canvas-fullscreen {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(80 70 55 / 22%);
  border-radius: 9px;
  background: rgb(255 255 255 / 92%);
  color: var(--social-ink);
  cursor: pointer;
}
.social-canvas-fullscreen svg,
.social-canvas-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.social-canvas-icon-button { display: inline-grid; min-width: 40px; min-height: 40px; place-items: center; padding: 7px; }
.social-canvas-stage canvas { display: block; }
.social-create-dialog--canvas-focus .social-drawing-tools .social-canvas-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
.social-create-dialog--canvas-focus .social-drawing-controls { max-height: 28dvh; overflow-y: auto; overscroll-behavior: contain; }
.social-create-dialog::backdrop { background: rgb(35 31 25 / 54%); backdrop-filter: blur(3px); }
.social-create-dialog[open] { display: block; }
.social-create-dialog--canvas-focus[open] { display: flex; }
.social-create-dialog--story-focus,
.social-create-dialog--story-focus[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.social-create-dialog--story-focus .social-create-dialog-heading { position: sticky; z-index: 2; top: 0; margin: -2px -2px 18px; border-bottom: 1px solid var(--social-line); padding: 8px 2px 14px; background: var(--social-paper); }
.social-create-dialog--story-focus .social-text-story-form { width: min(100%, 820px); margin: 0 auto; padding-bottom: 24px; }
.social-create-dialog--story-focus.social-create-dialog--canvas-focus,
.social-create-dialog--story-focus.social-create-dialog--canvas-focus[open] {
  overflow: hidden;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.social-create-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.social-create-dialog-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; }
.social-dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0ece5; color: var(--social-ink); cursor: pointer; font-size: 1.5rem; }
.social-create-options { display: grid; gap: 8px; }
.social-create-options > button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--social-line); border-radius: 12px; padding: 12px; background: #fff; color: var(--social-ink); cursor: pointer; font: inherit; text-align: left; }
.social-create-options > button:hover { border-color: #c6b393; background: #fbf8f2; }
.social-create-options > button > span { display: grid; gap: 3px; }
.social-create-options small { color: var(--social-muted); font-size: .8rem; }
.social-create-form { display: grid; gap: 12px; }
.social-create-form[hidden],
.social-create-options[hidden],
.social-create-form [data-dictionary-fields][hidden] { display: none; }
.social-create-form label { display: grid; gap: 6px; color: var(--social-ink); font-size: .88rem; font-weight: 700; }
.social-create-form input:not([type="file"]),
.social-create-form select,
.social-create-form textarea { width: 100%; min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-create-form textarea { resize: vertical; }
.social-create-form input[type="file"] { max-width: 100%; font: inherit; }
.social-create-form select[multiple] { min-height: 110px; }
.social-create-form label small { color: var(--social-muted); font-size: .76rem; font-weight: 400; }
.social-mention-picker { display: grid; min-width: 0; gap: 8px; }
.social-mention-picker > label > span { justify-self: end; color: var(--social-muted); font-size: .76rem; font-weight: 600; }
.social-mention-picker [data-mention-search] { min-width: 0; }
.social-mention-picker [data-mention-search]:focus { border-color: #b49362; outline: 3px solid rgb(180 147 98 / 18%); }
.social-mention-picker > small { color: var(--social-muted); font-size: .76rem; }
.social-mention-suggestions { display: grid; max-height: 220px; gap: 3px; overflow-y: auto; border: 1px solid var(--social-line); border-radius: 10px; padding: 5px; background: #fff; }
.social-mention-option { width: 100%; min-height: 40px; border: 0; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--social-ink); text-align: left; cursor: pointer; font: inherit; }
.social-mention-option:hover:not(:disabled) { background: #f2ede5; color: var(--social-accent-dark); }
.social-mention-option:disabled { color: var(--social-muted); cursor: not-allowed; opacity: .65; }
.social-mention-suggestions > .social-muted { margin: 7px; font-size: .8rem; }
.social-mention-selected { display: flex; flex-wrap: wrap; gap: 6px; }
.social-mention-chip { display: inline-flex; min-height: 34px; align-items: center; gap: 5px; border: 1px solid #d9cbb5; border-radius: 999px; padding: 3px 5px 3px 10px; background: #f8f4ed; color: var(--social-accent-dark); font-size: .82rem; font-weight: 700; }
.social-mention-chip button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 1.1rem; }
.social-mention-chip button:hover { background: #e9decc; }
.social-create-form > div[data-dictionary-fields] { display: grid; gap: 12px; }
.social-artists-page { display: grid; min-width: 0; gap: 14px; }
.social-artist-filters { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(220px, 1.3fr) auto; align-items: end; gap: 12px; border: 1px solid var(--social-line); border-radius: 12px; padding: 12px; background: var(--social-paper); }
.social-artist-filters label { display: grid; min-width: 0; gap: 5px; color: var(--social-muted); font-size: .78rem; font-weight: 700; }
.social-artist-filters input,
.social-artist-filters select { width: 100%; min-height: 42px; border: 1px solid var(--social-line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-artist-result { margin: 0; color: var(--social-muted); font-size: .8rem; }
.social-period-intro { display: grid; gap: 8px; border: 1px solid var(--social-line); border-left: 4px solid var(--social-accent-dark); border-radius: 12px; padding: 16px; background: var(--social-paper); }
.social-period-intro[hidden] { display: none; }
.social-period-intro .social-kicker { margin: 0; }
.social-period-intro h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; }
.social-period-intro > p:not(.social-kicker) { margin: 0; color: var(--social-muted); font-size: .9rem; line-height: 1.6; }
.social-period-intro .social-period-artists { color: var(--social-ink); }
.social-period-intro .social-artist-source { margin-top: 2px; }
.social-artists-grid { display: grid; min-width: 0; gap: 10px; }
.social-artist-card { min-width: 0; overflow: hidden; border: 1px solid var(--social-line); border-radius: 14px; background: var(--social-paper); }
.social-artist-card > summary { display: flex; min-width: 0; min-height: 78px; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.social-artist-card > summary::-webkit-details-marker { display: none; }
.social-artist-card > summary::marker { content: ""; }
.social-artist-card > summary:hover { background: #fbf8f2; }
.social-artist-portrait { display: block; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; background: #f1eee8; }
.social-artist-summary { display: grid; min-width: 0; flex: 1; gap: 4px; }
.social-artist-summary > strong { font-family: Georgia, serif; font-size: 1.1rem; overflow-wrap: anywhere; }
.social-artist-summary > small { color: var(--social-muted); font-size: .78rem; }
.social-artist-expand { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f2ede5; color: var(--social-accent-dark); font-size: 1.2rem; transition: transform .18s ease; }
.social-artist-card[open] .social-artist-expand { transform: rotate(180deg); }
.social-artist-copy { display: grid; gap: 7px; padding: 0 14px 14px; }
.social-artist-copy p { margin: 0; color: var(--social-muted); font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; }
.social-artist-source { justify-self: start; color: var(--social-accent-dark); font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.social-artist-empty-bio { font-style: italic; }
.social-artist-correction { justify-self: start; min-height: 38px; padding: 8px 12px; font-size: .8rem; }
.social-artist-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.social-artist-work { display: grid; min-width: 0; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 10px; align-content: start; padding: 10px; border: 1px solid var(--social-line); border-radius: 10px; background: #fff; }
.social-artist-work > img { display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; object-fit: cover; background: #f1eee8; }
.social-artist-work--text-only { grid-template-columns: minmax(0, 1fr); }
.social-artist-work > div { min-width: 0; }
.social-artist-work h3 { margin: 0; font-family: Georgia, serif; font-size: .92rem; overflow-wrap: anywhere; }
.social-artist-work small { display: block; margin-top: 4px; color: var(--social-accent-dark); font-size: .73rem; }
.social-artist-work p { margin: 6px 0 0; color: var(--social-muted); font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.social-artist-work .social-artist-source { display: inline-block; margin-top: 7px; }
.social-community-feed,
.social-community-books { display: grid; min-width: 0; gap: 14px; }
.social-feed-cards,
.social-book-list { display: grid; min-width: 0; gap: 12px; }
.social-feed-card,
.social-book-card { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 16px; border: 1px solid var(--social-line); border-radius: 14px; padding: 16px; background: var(--social-paper); }
.social-feed-card { display: grid; gap: 8px; }
.social-feed-card .social-kicker { margin: 0; color: var(--social-muted); font-size: .72rem; }
.social-feed-image { display: block; overflow: hidden; border-radius: 10px; background: #f1eee8; }
.social-feed-image img { display: block; width: 100%; max-height: 300px; aspect-ratio: 16 / 9; object-fit: cover; }
.social-feed-card h2,
.social-feed-card h3,
.social-book-card h2 { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.4; overflow-wrap: anywhere; }
.social-feed-card h2 a,
.social-feed-card h3 a { color: var(--social-ink); text-decoration: none; }
.social-feed-card h2 a:hover,
.social-feed-card h3 a:hover,
.social-feed-source-link:hover { color: var(--social-accent-dark); text-decoration: underline; }
.social-feed-card > p:not(.social-kicker),
.social-book-card > div > p { margin: 0; color: var(--social-muted); font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; }
.social-feed-source-link,
.social-feed-attribution { color: var(--social-accent-dark); font-size: .82rem; font-weight: 650; }
.social-feed-source-link { justify-self: start; text-decoration: none; }
.social-feed-attribution { margin: 0; line-height: 1.5; }
.social-feed-attribution a { color: inherit; }
.social-editorial-article { display: grid; max-width: 860px; gap: 16px; margin: 0 auto; }
.social-editorial-article > .social-secondary-button,
.social-editorial-article > .social-primary-button { justify-self: start; }
.social-editorial-article > .social-kicker { margin: 0; color: var(--social-accent-dark); font-size: .78rem; font-weight: 750; }
.social-editorial-article h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.2; overflow-wrap: anywhere; }
.social-editorial-article-copy,
.social-history-event { margin: 0; color: var(--social-ink); font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.social-editorial-attribution { margin: 0; border-top: 1px solid var(--social-line); padding-top: 14px; color: var(--social-muted); font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.social-editorial-attribution a,
.social-history-image figcaption a,
.social-history-card-figure figcaption a { color: var(--social-accent-dark); }
.social-history-image,
.social-history-card-figure { display: grid; gap: 6px; margin: 0; }
.social-history-image img { display: block; width: 100%; max-height: min(68vh, 720px); border-radius: 12px; background: #eee9df; object-fit: contain; }
.social-history-image figcaption,
.social-history-card-figure figcaption { color: var(--social-muted); font-size: .72rem; line-height: 1.5; overflow-wrap: anywhere; }
.social-history-card-image { display: block; width: 100%; max-height: 280px; border-radius: 9px; background: #eee9df; object-fit: cover; }
.social-history-date-form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.social-history-date-form label { color: var(--social-ink); font-size: .86rem; font-weight: 700; }
.social-history-date-form input { min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-history-date-form button { min-height: 42px; }
.social-video-recorder { display: grid; gap: 8px; }
.social-video-recorder > video { display: block; width: min(100%, 520px); max-height: 300px; border-radius: 10px; background: #211f1b; }
.social-video-recorder > div { display: flex; flex-wrap: wrap; gap: 8px; }
.social-video-recorder p { margin: 0; }
.social-book-submit { border: 1px solid var(--social-line); border-radius: 12px; background: var(--social-paper); }
.social-book-submit > summary { padding: 12px 15px; color: var(--social-accent-dark); cursor: pointer; font-weight: 700; }
.social-book-submit > form { display: grid; gap: 12px; padding: 0 15px 15px; }
.social-book-submit label:not(.social-book-rights) { display: grid; gap: 6px; color: var(--social-ink); font-size: .85rem; font-weight: 650; }
.social-book-submit input:not([type="checkbox"]),
.social-book-submit textarea { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px; background: #fff; color: var(--social-ink); font: inherit; }
.social-book-submit textarea { resize: vertical; }
.social-book-submit input[type="file"] { max-width: 100%; }
.social-book-rights { display: flex; align-items: flex-start; gap: 9px; color: var(--social-muted); font-size: .8rem; line-height: 1.45; }
.social-book-rights input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--social-accent-dark); }
.social-book-search { display: flex; min-width: 0; gap: 8px; }
.social-book-search input { min-width: 0; flex: 1; border: 1px solid var(--social-line); border-radius: 9px; padding: 10px 12px; background: #fff; color: var(--social-ink); font: inherit; }
.social-book-card { align-items: center; }
.social-book-card > div { display: grid; min-width: 0; gap: 7px; }
.social-book-card .social-book-author { color: var(--social-accent-dark); font-weight: 650; }
.social-book-card small { color: var(--social-muted); font-size: .75rem; }
.social-book-card > .social-primary-button { flex: 0 0 auto; white-space: nowrap; }
.social-daily-art { display: grid; min-width: 0; gap: 12px; overflow: hidden; border: 1px solid var(--social-line); border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #fbf8f2, var(--social-paper) 62%); }
.social-daily-art--empty { padding: 18px; }
.social-daily-art--empty h2 { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; }
.social-daily-art--empty > p:last-child { margin: 0; color: var(--social-muted); font-size: .86rem; }
.social-daily-art-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.social-daily-art-heading > div:first-child { display: grid; gap: 4px; }
.social-daily-art-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; }
.social-daily-art-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.social-daily-art-controls button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--social-line); border-radius: 50%; background: #fff; color: var(--social-accent-dark); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.social-daily-art-controls button:hover { background: var(--social-menu-active); }
.social-daily-art-controls span { color: var(--social-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.social-daily-art-track { min-width: 0; }
.social-daily-art-track:focus-visible { outline: 3px solid rgb(180 147 98 / 40%); outline-offset: 3px; }
.social-daily-art-slide { display: grid; min-width: 0; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); align-items: stretch; gap: 18px; }
.social-daily-art-slide[hidden] { display: none; }
.social-daily-art-image-link { display: block; min-height: 220px; overflow: hidden; border-radius: 12px; background: #eee9df; }
.social-daily-art-image-link img { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 360px; object-fit: cover; }
.social-daily-art-copy { display: grid; min-width: 0; align-content: start; gap: 9px; }
.social-daily-art-category { margin: 0; color: var(--social-accent-dark); font-size: .75rem; font-weight: 750; }
.social-daily-art-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.social-daily-art-summary,
.social-daily-art-thought { margin: 0; color: var(--social-muted); font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.social-daily-art-thought { border-left: 2px solid var(--social-accent); padding-left: 10px; color: var(--social-ink); }
.social-daily-art-attribution { color: var(--social-muted); font-size: .7rem; line-height: 1.5; overflow-wrap: anywhere; }
.social-daily-art-attribution a { color: var(--social-accent-dark); }
.social-daily-art-stale { margin: 0; color: var(--social-muted); font-size: .78rem; }
.social-authoring-section { display: grid; gap: 12px; border-top: 1px solid var(--social-line); padding-top: 14px; }
.social-authoring-section h4 { margin: 2px 0; font-family: Georgia, serif; }
.social-authoring-section [data-story-character-list],
.social-authoring-section [data-story-chapter-list] { display: grid; gap: 12px; }
.social-authoring-section fieldset { display: grid; gap: 10px; min-width: 0; border: 1px solid var(--social-line); border-radius: 12px; padding: 14px; }
.social-authoring-section legend { padding: 0 6px; color: var(--social-accent-dark); font-weight: 700; }
.social-character-art-result img { display: block; width: min(100%, 220px); max-height: 280px; border-radius: 10px; object-fit: cover; }
.social-text-story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.social-text-story-card { display: grid; overflow: hidden; border: 1px solid var(--social-line); border-radius: 16px; background: var(--social-paper); text-decoration: none; }
.social-text-story-card > img,
.social-text-story-placeholder { display: grid; width: 100%; height: 210px; place-items: center; background: #eee6d8; color: var(--social-accent); font-size: 3rem; object-fit: cover; }
.social-text-story-card-copy { display: grid; gap: 8px; padding: 14px; }
.social-text-story-card-copy > small,
.social-text-story-byline { color: var(--social-muted); font-size: .8rem; }
.social-text-story-card-copy > strong { font-family: Georgia, serif; font-size: 1.12rem; }
.social-text-story-card-copy > span { color: var(--social-muted); font-size: .88rem; line-height: 1.5; }
.social-text-story-detail { display: grid; gap: 18px; border: 1px solid var(--social-line); border-radius: 18px; padding: clamp(16px, 4vw, 34px); background: var(--social-paper); }
.social-text-story-detail > h1 { margin: 0; font-family: Georgia, serif; }
.social-text-story-cover { width: min(100%, 540px); max-height: 420px; justify-self: center; border-radius: 14px; object-fit: cover; }
.social-text-story-byline { margin: -12px 0 0; }
.social-text-story-byline a { color: var(--social-accent-dark); font-weight: 700; }
.social-text-story-summary { border-left: 3px solid var(--social-accent); padding-left: 14px; color: var(--social-muted); line-height: 1.7; }
.social-story-characters > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.social-story-characters article { border: 1px solid var(--social-line); border-radius: 12px; padding: 12px; }
.social-story-characters img { width: 100%; max-height: 220px; border-radius: 8px; object-fit: cover; }
.social-story-characters h3 { margin: 8px 0; }
.social-story-characters p { color: var(--social-muted); line-height: 1.55; }
.social-story-chapters { display: grid; gap: 18px; }
.social-story-chapters > article { border-top: 1px solid var(--social-line); padding-top: 16px; }
.social-story-chapters > article h2 { font-family: Georgia, serif; }
.social-story-chapters > article > div { font-size: var(--story-reader-size, 1.08rem); font-family: Georgia, serif; line-height: 1.95; overflow-wrap: anywhere; white-space: normal; }
.social-reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--social-line); border-bottom: 1px solid var(--social-line); padding: 10px 0; color: var(--social-muted); font-size: .84rem; }
.social-reader-toolbar > div { display: flex; gap: 6px; }
.social-reader-toolbar button { min-width: 42px; min-height: 38px; border: 1px solid var(--social-line); border-radius: 9px; background: #fff; color: var(--social-accent-dark); font: inherit; font-weight: 750; cursor: pointer; }
.social-story-toc { display: grid; gap: 8px; border-radius: 12px; padding: 14px; background: #f7f4ef; }
.social-story-toc > a { min-width: 0; color: var(--social-accent-dark); line-height: 1.4; overflow-wrap: anywhere; text-decoration: none; }
.social-story-toc > a:hover { text-decoration: underline; }
.social-story-chapter-top { display: inline-flex; margin-top: 16px; color: var(--social-accent-dark); font-size: .84rem; font-weight: 700; text-decoration: none; }
.social-authoring-heading { display: grid; gap: 5px; border-bottom: 1px solid var(--social-line); padding-bottom: 14px; }
.social-authoring-heading h3,
.social-authoring-heading p { margin: 0; }
.social-authoring-heading h3 { font-family: Georgia, serif; font-size: 1.45rem; }
.social-authoring-heading > p:last-child { color: var(--social-muted); line-height: 1.55; }
.social-authoring-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.social-authoring-section-heading h4,
.social-authoring-section-heading p { margin: 2px 0; }
.social-authoring-section-heading output { flex: 0 0 auto; border-radius: 99px; padding: 7px 10px; background: #f3ede3; color: var(--social-accent-dark); font-size: .78rem; font-weight: 750; }
.social-text-story-cover-preview { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 12px; border: 1px solid var(--social-line); border-radius: 12px; padding: 8px 12px 8px 8px; color: var(--social-muted); font-size: .82rem; }
.social-text-story-cover-preview[hidden] { display: none; }
.social-text-story-cover-preview img { width: 76px; height: 104px; border-radius: 7px; object-fit: cover; }
.social-authoring-section fieldset > label > small { color: var(--social-muted); font-size: .78rem; font-weight: 400; }
.dictionary-submission { display: grid; gap: 18px; margin-bottom: 16px; }
.dictionary-preview { display: block; width: min(100%, 280px); max-height: 260px; border-radius: 10px; object-fit: contain; background: #f1eee8; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
  .social-topbar { height: 56px; padding: 0 12px; }
  .social-topbar-title { font-size: 1rem; }
  .social-search-dialog { max-height: calc(100dvh - 20px); padding: 17px; }
  .social-quick-search-results { max-height: 56dvh; }
  .social-brand { width: 44px; height: 52px; }
  .social-brand img { width: 44px; height: 50px; }
  .social-layout { display: block; width: 100%; min-width: 0; min-height: calc(100vh - 56px); padding: 14px 12px calc(82px + env(safe-area-inset-bottom)); }
  .social-main,
  .social-feed-heading,
  .social-post,
  .social-profile-card { min-width: 0; }
  .social-sidebar { display: none; }
  .social-welcome { padding: 18px; }
  .social-mobile-nav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    min-height: 58px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    border-top: 1px solid var(--social-line);
    padding: 4px 0 env(safe-area-inset-bottom, 0px);
    background: var(--social-menu);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .social-create-fab { right: 18px; bottom: calc(70px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .social-mobile-nav a { position: relative; display: grid; width: 100%; min-width: 0; min-height: 0; align-content: center; justify-items: center; overflow: hidden; color: var(--social-muted); text-decoration: none; }
  .social-mobile-nav a.is-active { color: var(--social-accent-dark); }
  .social-mobile-nav .social-nav-icon { width: 30px; height: 30px; border-radius: 10px; }
  .social-mobile-nav .social-nav-icon svg { width: 25px; height: 25px; stroke-width: 2; }
  .social-mobile-nav a.is-active .social-nav-icon { background: var(--social-menu-active); }
  .social-mobile-profile-avatar { width: 30px; height: 30px; }
  .social-mobile-nav b { position: absolute; top: 5px; right: calc(50% - 23px); margin: 0; }
  .social-profile-card { align-items: flex-start; flex-wrap: wrap; gap: 14px; padding: 140px 16px 16px; }
  .social-profile-avatar { width: 86px; height: 86px; }
  .social-profile-avatar { margin-top: -42px; }
  .social-profile-cover { height: 140px; }
  .social-profile-info { min-width: calc(100% - 100px); }
  .social-profile-buttons { width: 100%; }
  .social-messages-layout { grid-template-columns: minmax(0, 1fr); }
  .social-inbox { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--social-line); }
  .social-inbox > a { min-width: 130px; flex: 0 0 130px; gap: 6px; padding: 9px 6px; }
  .social-inbox img,
  .social-inbox .social-avatar-fallback { width: 32px; height: 32px; }
  .social-inbox strong { font-size: .75rem; }
  .social-inbox small { max-width: 100px; font-size: .68rem; }
  .social-new-message { min-width: 140px; flex: 0 0 140px; margin-top: 0; padding: 8px 4px; }
  .social-thread { min-height: 420px; }
  .social-thread-messages p,
  .social-thread-message { font-size: .86rem; }
  .social-settings-panel { padding: 18px; }
  .social-post-actions { justify-content: flex-start; gap: 4px; }
  .social-post-actions .social-like-button,
  .social-post-actions .social-save-button,
  .social-post-actions .social-quote-button { min-width: 40px; min-height: 40px; justify-content: center; padding: 7px; }
  .social-post-actions .social-action-icon { font-size: 1.4rem; }
  .social-post-actions .social-action-label,
  .social-comment-form .social-action-label { display: none; }
  .social-comment-form { align-items: center; }
  .social-comment-form [name="body"] { min-width: 0; }
  .social-comment-form button { width: 40px; min-width: 40px; justify-content: center; padding: 7px; }
  .social-auth-page { display: block; padding: 12px; }
  .social-auth-card { width: 100%; padding: 22px; }
  .social-auth-card .g_id_signin { max-width: 100%; }
  .social-drawings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .social-story-preview-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-story-post > h2 { font-size: 1.16rem; }
  .social-story-card > img { max-height: 520px; }
  .social-story-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 2px; }
  .social-story-card-grid > img,
  .social-story-card-grid > video { display: block; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 1; object-fit: cover; }
  .social-story-card-grid > img:first-child,
  .social-story-card-grid > video:first-child { grid-column: 1 / -1; grid-row: auto; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .social-story-count { right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 9px; font-size: .76rem; }
  .social-story-interactions { grid-template-columns: minmax(0, 1fr); }
  .social-story-interactions > .social-post-actions,
  .social-story-interactions > .social-story-action-bar { grid-column: 1; }
  .social-story-action-bar { gap: 6px; }
  .social-story-action-bar > form button,
  .social-story-action-bar > button { min-height: 44px; }
  .social-comment-form { width: 100%; min-width: 0; }
  .social-comment-drawing-editor { flex: 0 0 100%; width: 100%; min-width: 0; }
  .social-comment-drawing-editor .social-message-canvas { width: 100%; height: auto; max-width: 100%; aspect-ratio: 15 / 7; }
  .social-text-story-grid { grid-template-columns: minmax(0, 1fr); }
  .social-text-story-card { grid-template-columns: minmax(88px, 30%) minmax(0, 1fr); align-items: stretch; }
  .social-text-story-card > img,
  .social-text-story-placeholder { width: 100%; height: 100%; min-height: 150px; max-height: 210px; }
  .social-text-story-card-copy { min-width: 0; align-content: center; padding: 12px; overflow-wrap: anywhere; }
  .social-text-story-detail { gap: 14px; padding: 14px; }
  .social-text-story-cover { display: block; width: min(100%, 380px); height: auto; max-height: min(62vh, 520px); aspect-ratio: 3 / 4; object-fit: cover; }
  .social-story-characters > div { grid-template-columns: minmax(0, 1fr); }
  .social-story-characters article { min-width: 0; }
  .social-story-characters img { display: block; width: min(100%, 240px); margin: 0 auto; }
  .social-story-toc { min-width: 0; }
  .social-reader-toolbar { position: sticky; z-index: 2; top: 56px; background: var(--social-paper); }
  .social-story-chapters > article { min-width: 0; scroll-margin-top: 112px; }
  .social-authoring-section-heading { flex-direction: column; }
  .social-text-story-cover-preview { width: 100%; }
  .social-create-dialog--story-focus,
  .social-create-dialog--story-focus[open] { width: 100vw; max-width: 100vw; padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .social-create-dialog--story-focus .social-text-story-form { width: 100%; }
  .social-authoring-section fieldset { padding: 11px; }
  .social-profile-card,
  .social-profile-cover { max-width: 100%; }
  .social-profile-cover img { display: block; width: 100%; }
  .social-artist-card > summary { min-height: 68px; gap: 9px; padding: 8px 10px; }
  .social-artist-filters { grid-template-columns: minmax(0, 1fr); }
  .social-artist-result { min-height: 1em; }
  .social-artist-portrait { width: 52px; height: 52px; }
  .social-artist-summary > strong { font-size: 1rem; }
  .social-artist-copy { padding: 0 11px 11px; }
  .social-artist-copy p { font-size: .78rem; }
  .social-artist-works { grid-template-columns: minmax(0, 1fr); padding: 0 11px 11px; }
  .social-artist-work { grid-template-columns: minmax(0, 76px) minmax(0, 1fr); gap: 8px; padding: 8px; }
  .social-artist-work--text-only { grid-template-columns: minmax(0, 1fr); }
  .social-feed-card,
  .social-book-card { padding: 12px; }
  .social-feed-cards { grid-auto-flow: column; grid-auto-columns: minmax(84%, 1fr); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .social-feed-card { scroll-snap-align: start; }
  .social-feed-image img { max-height: 230px; }
  .social-book-card { align-items: stretch; flex-direction: column; }
  .social-book-card > .social-primary-button { align-self: flex-start; }
  .social-book-search { flex-wrap: wrap; }
  .social-book-search .social-primary-button { flex: 0 0 auto; }
  .social-daily-art { gap: 10px; padding: 12px; }
  .social-daily-art-slide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .social-daily-art-image-link { min-height: 0; max-height: 220px; }
  .social-daily-art-image-link img { height: 210px; min-height: 0; }
  .social-daily-art-copy { gap: 7px; }
  .social-drawing-controls { align-items: flex-start; }
  .social-drawing-controls label { min-height: 38px; }
  .social-settings-panel { min-width: 0; padding: 16px; }
  .social-settings-form label { min-width: 0; overflow-wrap: anywhere; }
}
