/* Ganson+ main stylesheet. Written for this project; sizes and colours match
   the 2013 Google+ look as recreated by Loogle+. */

:root {
  --bg: #e4e4e4;
  --card: #fff;
  --bar: #f6f6f6;
  --line: #ccc;
  --line-soft: #d8d8d8;
  --text: #333;
  --text-strong: #262626;
  --text-body: #404040;
  --muted: #999;
  --link: #007bff;
  --red: #dd4b39;
  --red-dark: #c23321;
  --green: #55a644;
  --green-dark: #478b39;
  --blue: #4d90fe;
  --tab: #007bff;
  --shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.09);
  --header-h: 60px;
  --sub-h: 40px;
  --col: 500px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* Bootstrap 4's link colours, as on Loogle's stream pages. */
a { color: var(--link); text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2 { font-weight: 400; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, Menlo, monospace; }

/* ---------- Buttons ---------- */
.g-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  background: linear-gradient(#f8f8f8, #f1f1f1);
  color: #444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.g-btn:hover { border-color: #c6c6c6; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); text-decoration: none; }
.g-btn:disabled { opacity: 0.55; cursor: default; }
.g-btn-green { background: var(--green); border-color: rgba(10, 10, 10, 0.1); color: #fff; }
.g-btn-green:hover { background: var(--green-dark); }
.g-btn-red { background: linear-gradient(#dd4b39, #d14836); border-color: #c13929; color: #fff; }
.g-btn-red:hover { background: linear-gradient(#dd4b39, #c53727); border-color: #b0281a; }
.g-btn-dark { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.gp-link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 13px; }
.gp-link:hover { text-decoration: underline; }
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid currentColor;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
}

/* ---------- Header, measured from Loogle+ ----------
   Loogle's header uses Roboto; everything below it uses Bootstrap's
   Helvetica Neue stack. The bell and name sit where Loogle's percentage
   margins put them (sampled at 1280, 1440, 1653 and 1920px); the avatar
   is always 58px from the right edge and the name 206px. */
.gp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  height: 60px;
  padding: 0 15px;
  background: #fff;
  font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif;
}
.gp-logo { flex: none; display: block; width: 120px; margin-top: 10px; line-height: 0; }
.gp-logo img { display: block; width: 120px; height: 40px; }
/* Loogle's box starts 22px after the logo and moves right on wider screens.
   (Below 1600px Loogle's own rules slid it over the logo; that bug is fixed.) */
.gp-search { display: flex; flex: none; margin: 10px 0 0 max(22px, calc(22px + (100% - 1608px) * 0.232)); }
.gp-search input {
  width: 463px;
  height: 30px;
  padding: 1px 2px 1px 5px;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  box-shadow: 1px 1px 5px #f3f3f3;
  background: #fff;
  color: #333;
  font: 14px/20px Roboto, RobotoDraft, Helvetica, Arial, sans-serif;
}
.gp-search button {
  width: 79px;
  height: 30px;
  padding: 6px 32px;
  border: 1px solid #3079ed;
  border-radius: 2px;
  background-color: #4d90fe;
  background-image: linear-gradient(#4d90fe, #4787ed);
  cursor: pointer;
}
.gp-header-right { display: contents; }
.gp-bell {
  position: absolute;
  top: 16px;
  left: calc(58.125% + 270.7px);
  width: 25px;
  height: 25px;
  padding: 3px 0 0 8px;
  border: 0;
  border-radius: 0;
  background: #d24b2e;
  color: #fff;
  font: 450 14px/20px Roboto, RobotoDraft, Helvetica, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
@media (min-width: 1441px) { .gp-bell { left: calc(65.26% + 169px); } }
@media (min-width: 1654px) { .gp-bell { left: calc(70.79% + 78.5px); } }
/* Right-aligned 43px before the avatar, so long names grow leftwards instead of covering it. */
.gp-me-name { position: absolute; top: 22px; right: 101px; color: #333; font: 400 14px/20px Roboto, RobotoDraft, Helvetica, Arial, sans-serif; white-space: nowrap; }
.gp-me-name:hover { color: #333; text-decoration: none; }
.gp-me-avatar { position: absolute; top: 10px; left: calc(100% - 58px); padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
.gp-me-avatar img { width: 40px; height: 40px; border-radius: 0; object-fit: cover; }

.gp-account-card {
  position: absolute;
  top: 52px;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 320px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 80;
}
.gp-account-card img { width: 96px; height: 96px; border-radius: 2px; object-fit: cover; }
.gp-account-card div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gp-account-card strong { font-size: 16px; }
.gp-account-card span { color: var(--muted); }
.gp-account-card form { width: 100%; display: flex; justify-content: flex-end; border-top: 1px solid #eee; padding-top: 12px; }

/* ---------- Notifications panel (slides down) ---------- */
.gp-notifications {
  position: absolute;
  top: calc(var(--header-h) - 4px);
  right: 60px;
  width: 400px;
  max-height: min(560px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  background: #e5e5e5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  z-index: 80;
  transform-origin: top right;
}
.gp-notifications::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 88px;
  border: 9px solid transparent;
  border-top: 0;
  border-bottom-color: #f5f5f5;
}
.gp-notifications-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f5f5f5;
  color: #6f6f6f;
  font-size: 15px;
}
.gp-notifications-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.gp-notifications-all { padding: 10px; text-align: center; background: #f5f5f5; font-size: 13px; }
.notification {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.notification:hover { background: #fafafa; }
.notification-link { display: flex; gap: 10px; flex: 1; min-width: 0; color: var(--text); }
.notification-link:hover { text-decoration: none; }
.notification-dismiss { align-self: flex-start; border: 0; background: none; color: #999; font-size: 18px; line-height: 18px; cursor: pointer; padding: 0 2px; }
.notification-dismiss:hover { color: #333; }
.notification.unread { box-shadow: inset 3px 0 0 var(--red), 0 1px 1px rgba(0, 0, 0, 0.12); }
.notification img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.notification-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 18px; }
.notification-snippet { color: #666; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notification time { color: var(--muted); font-size: 12px; }
.notification.leaving { transform: translateX(-110%); opacity: 0; }
.notification-icon { margin: 8px; }

/* ---------- Sub header with stream tabs ---------- */
/* Sub-header, measured from Loogle+ (.sub-header, #open-sidebar, .nav-tabs) */
.gp-subheader {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  background: #f6f6f6;
  font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif;
}
.gp-menu-toggle {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #939393;
  font: 400 13px/18.5714px Roboto, RobotoDraft, Helvetica, Arial, sans-serif;
  cursor: pointer;
  z-index: 2;
}
.gp-menu-toggle .icon { margin: 0 9px 0 2px; }
/* Loogle's label is "Home " (trailing space) then " > ", with the label 4px and the arrow 2px below centre. */
.gp-menu-label { position: relative; top: 4px; margin-right: 7px; }
.gp-menu-chevron { position: relative; top: 2px; margin-left: 2px; color: #000; }
/* Loogle centres its tab menu in the space after "Home >", 10px in from the menu's edge. */
.gp-tabs {
  display: flex;
  height: 40px;
  margin: 0 auto;
  padding-left: 10px;
}
.gp-tabs > a, .gp-tab-more > button {
  display: block;
  height: 40px;
  padding: 10px 15px;
  margin-right: 20px;
  border: 0;
  background: none;
  color: #000;
  font: 400 14px/20px Roboto, RobotoDraft, Helvetica, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.gp-tabs > a:hover, .gp-tab-more > button:hover { color: #000; text-decoration: none; }
.gp-tabs > a.active { padding-bottom: 7px; border-bottom: 3px solid #007bff; font-weight: 700; cursor: default; }
.gp-tab-more { position: relative; }
.gp-tab-more .caret { margin-left: 2px; border-top-style: dashed; }
.gp-subheading { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font-size: 15px; font-weight: 700; color: #222; }

/* ---------- Dropdown menus ---------- */
.gp-menu {
  position: absolute;
  z-index: 90;
  min-width: 180px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform-origin: top;
}
.gp-menu > a, .gp-menu > button, .gp-menu > label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 16px;
  border: 0;
  background: none;
  color: #333;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.gp-menu > a:hover, .gp-menu > button:hover, .gp-menu > label:hover { background: #eee; text-decoration: none; }
.gp-menu .count { margin-left: auto; color: var(--muted); }
.gp-tab-more .gp-menu { top: 100%; left: 0; }

/* ---------- Left ribbon (hidden until opened; slides in) ---------- */
.gp-ribbon {
  position: fixed;
  top: calc(var(--header-h) + var(--sub-h));
  left: 0;
  bottom: 0;
  z-index: 70;
  width: 250px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #d0d0d0;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease-in-out, visibility 0.3s;
}
.gp-ribbon ul { list-style: none; margin: 0; padding: 0; }
.gp-ribbon li a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 18px;
  color: #9f9f9f;
  font-size: 16px;
  border-left: 3px solid transparent;
}
.gp-ribbon li a:hover { background: #f5f5f5; color: #555; text-decoration: none; }
.gp-ribbon li a.current { color: #000; border-left-color: var(--red); background: #fafafa; }
.gp-ribbon .icon { transform: scale(1.15); filter: grayscale(1) opacity(0.55); }
.gp-ribbon li a:hover .icon, .gp-ribbon li a.current .icon { filter: none; }
.gp-ribbon-foot { padding: 14px 21px; font-size: 12px; color: var(--muted); }
body.ribbon-open .gp-ribbon { transform: none; visibility: visible; }

/* ---------- Butterbar ---------- */
.gp-butterbar { display: none; }

/* ---------- Main + stream ---------- */
.gp-main { padding: 15px 15px 60px; }
.gp-main-public { max-width: 900px; margin: 0 auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.stream { display: flex; flex-direction: column; align-items: center; }
.stream > * { width: 100%; max-width: var(--col); margin: 0 0 20px; }
/* JS lays cards out in columns, filling the shortest one, like 2013. */
.stream.columns { flex-direction: row; align-items: flex-start; justify-content: center; gap: 20px; }
.stream.columns > * { max-width: none; margin: 0; }
.stream-col { display: flex; flex-direction: column; gap: 20px; width: var(--col); flex: none; min-width: 0; }
.stream-note, .stream-empty { padding: 16px 18px; color: #555; }
.stream-empty h2 { margin: 0 0 6px; font-size: 18px; color: #222; }
.stream-empty p { margin: 0; }
.stream-loader { display: flex; justify-content: center; padding: 20px; }
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ccc;
  border-top-color: var(--red);
  border-radius: 50%;
}

/* ---------- Share box (bounces open) ---------- */
.share-box {
  position: relative;
  padding: 10px;
  background: var(--bar);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.share-collapsed {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: #999;
  text-align: left;
  cursor: text;
}
.share-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.share-quick { display: flex; justify-content: space-around; margin-top: 10px; }
.share-quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 70px;
  padding: 6px;
  border: 0;
  background: none;
  color: #8b8b8b;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
}
.share-quick button:hover { background: #ececec; color: #333; }
.share-quick .icon { transform: scale(1.3); }
.share-box[data-state=open] .share-collapsed,
.share-box[data-state=open] .share-quick { display: none; }
.share-box[data-state=open] { background: #fff; }
.share-box.shared { }
.share-form { display: flex; flex-direction: column; gap: 10px; }
.share-text {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  font: 14px/21px Arial, sans-serif;
  resize: vertical;
  outline: none;
}
.share-text:focus { border-color: var(--blue); }
.share-attach-row { display: flex; gap: 6px; }
.share-attach-row button { padding: 5px 8px; border: 1px solid transparent; background: none; cursor: pointer; border-radius: 2px; }
.share-attach-row button:hover { border-color: #ddd; background: #f5f5f5; }
.share-attachments input[type=url] { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line-soft); font: inherit; }
.share-photos { }
.share-link, .share-video { }
.share-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.share-thumbs figure { position: relative; margin: 0; width: 80px; height: 80px; }
.share-thumbs img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #ddd; }
.share-thumbs button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; line-height: 20px; padding: 0; }
.share-audience { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid #eee; }
.share-to { color: #666; font-size: 13px; }
.audience-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #c3d9ff;
  border-radius: 2px;
  background: #e6effc;
  color: #1c4587;
  font-size: 12px;
  cursor: pointer;
}
.audience-chip.public { background: #e7f4e4; border-color: #b7dfae; color: #2d6a1f; }
.audience-chip.community { background: #fde8e6; border-color: #f2b8b0; color: #8a2519; }
.audience-chip::after { content: '×'; margin-left: 4px; color: rgba(0, 0, 0, 0.4); }
.audience-picker { position: relative; }
.audience-menu { top: 100%; left: 0; max-height: 260px; overflow-y: auto; }
.share-actions { display: flex; align-items: center; gap: 8px; }
.share-status { color: #666; font-size: 13px; }

/* ---------- Post card ---------- */
.post-front {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.post.leaving { pointer-events: none; }

.post-main { padding: 10px; }
.post-head { position: relative; display: flex; align-items: flex-start; }
.post-avatar-link { flex: none; line-height: 0; }
.post-avatar { width: 50px; height: 50px; margin-right: 15px; border-radius: 50%; object-fit: cover; background: #eee; }
.post-who { flex: 1; min-width: 0; padding-top: 7px; }
.post-who .post-meta { margin-top: 2px; }
.post-author { color: var(--text-strong); font-weight: 700; }
.post-reshared-label { color: var(--muted); }
.staff-badge { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; text-transform: uppercase; letter-spacing: 0.3px; }
.post-meta { color: var(--muted); font-size: 13px; }
.post-meta a { color: var(--muted); }
.post-menu-btn { flex: none; width: 28px; height: 24px; border: 1px solid transparent; background: none; color: #999; cursor: pointer; border-radius: 2px; }
.post-menu-btn:hover { border-color: #ddd; color: #333; }
.post-menu { top: 26px; right: 0; }
.post-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 6px; }
.tag-chip {
  padding: 1px 8px;
  border: 0;
  border-radius: 2px;
  background: #eee;
  color: #666;
  font-size: 12px;
  cursor: pointer;
}
.tag-chip:hover { background: var(--link); color: #fff; }
.post-content {
  margin: 12px 0 5px 14px;
  color: var(--text-body);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.post-content a.hashtag, .comment-content a.hashtag { color: var(--link); }
.post-content a.mention, .comment-content a.mention { color: var(--link); font-weight: 500; }
.post-edit textarea { width: 100%; min-height: 90px; padding: 6px; border: 1px solid var(--line-soft); font: 14px/21px Arial, sans-serif; }
.post-edit div { display: flex; gap: 8px; margin-top: 6px; }
.post-photos { display: grid; gap: 3px; margin: 10px -10px 0; }
.post-photos.count-1 { grid-template-columns: 1fr; }
.post-photos.count-2 { grid-template-columns: 1fr 1fr; }
.post-photos.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-photos.count-3 .post-photo:first-child { grid-row: span 2; }
.post-photos.count-4 { grid-template-columns: 1fr 1fr; }
.post-photo { position: relative; display: block; overflow: hidden; background: #eee; }
.post-photo img { display: block; width: 100%; height: 100%; object-fit: cover; max-height: 600px; }
.post-photos.count-1 img { height: auto; }
.post-photos:not(.count-1) img { aspect-ratio: 1; }
.more-photos { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 26px; }
.post-video { margin: 10px -10px 0; background: #000; aspect-ratio: 16 / 9; }
.post-video-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.post-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(33, 33, 33, 0.85); }
.play-badge::after { content: ''; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.post-video-play:hover .play-badge { background: #e62117; }
.post-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.post-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: var(--text);
}
.post-link:hover { text-decoration: none; background: #f3f3f3; }
.post-link-text { display: flex; flex-direction: column; min-width: 0; }
.post-link-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-link-text span { color: var(--muted); font-size: 12px; }
.reshared { margin: 10px 0 0 14px; padding: 8px 0 4px 12px; border-left: 3px solid #e5e5e5; }
.reshared .post-content { margin-left: 0; }
.reshared-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.reshared-avatar { width: 24px; height: 24px; border-radius: 50%; }
.reshared-link { display: inline-block; margin-top: 6px; font-size: 12px; }
.reshared-gone { color: var(--muted); font-style: italic; }

/* Bar with +1 and share, like the grey strip under 2013 posts */
.post-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--bar);
  border-top: 1px solid #fff;
}
.plus-one {
  width: 35px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.plus-one.on { background: #cc4331; border-color: #cc4331; color: #fff; }
.plus-count { color: #333; font-weight: 700; font-size: 13px; }
.plus-count.pop { display: inline-block; }
.reshare-btn { display: flex; align-items: center; justify-content: center; width: 35px; height: 25px; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; }
.reshare-btn:hover { border-color: #999; }
.reshare-count { color: #666; font-size: 13px; }
.more-comments { margin-left: auto; }

/* Comments */
.post-comments { background: var(--bar); border-radius: 0 0 2px 2px; }
.comment-list:empty { display: none; }
.comment-list { padding: 4px 13px 0; }
.comment { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ececec; }
.comment:last-child { border-bottom: 0; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.comment-author { color: var(--text-strong); font-weight: 700; }
.comment-head time { color: var(--muted); font-size: 12px; }
.comment-plus, .comment-delete, .comment-report { margin-left: auto; padding: 0 5px; border: 1px solid transparent; border-radius: 2px; background: none; color: #999; font-size: 12px; font-weight: 700; cursor: pointer; opacity: 0; }
.comment-plus + .comment-delete, .comment-plus + .comment-report { margin-left: 0; }
.comment:hover .comment-plus, .comment:hover .comment-delete, .comment:hover .comment-report, .comment-plus.on { opacity: 1; }
.comment-plus.on { color: var(--red); }
.comment-plus:hover, .comment-delete:hover, .comment-report:hover { border-color: #ddd; color: #333; }
.comment-content { color: var(--text-body); line-height: 1.4; overflow-wrap: anywhere; }
.comment.leaving { }

.comment-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 13px;
}
.comment-form-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: none; }
.comment-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  resize: none;
  overflow: hidden;
  outline: none;
}
.comment-buttons { display: none; width: 100%; gap: 6px; padding-left: 36px; }
.comment-form.expanded .comment-form-avatar { display: block; }
.comment-form.expanded .comment-input { height: 60px; overflow-y: auto; border-color: var(--blue); }
.comment-form.expanded .comment-buttons { display: flex; }

/* ---------- Profile ---------- */
.profile { max-width: 1040px; margin: -15px auto 0; }
.profile-cover { position: relative; height: 360px; overflow: hidden; background: #666; }
.profile-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-cover-change { position: absolute; right: 16px; bottom: 16px; cursor: pointer; }
.profile-card { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 24px; margin: 0 0 20px; padding: 0 24px; border-top: 0; }
.profile-avatar-wrap { position: relative; margin-top: -90px; }
.profile-avatar { width: 160px; height: 160px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: #eee; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); display: block; }
.profile-avatar-change { position: absolute; inset: 4px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 13px; opacity: 0; cursor: pointer; }
.profile-avatar-wrap:hover .profile-avatar-change { opacity: 1; }
.profile-id { flex: 1; min-width: 220px; padding: 14px 0 10px; }
.profile-name { margin: 0; font-size: 28px; line-height: 34px; color: #222; }
.profile-handle { color: var(--muted); }
.profile-tagline { margin: 6px 0 0; color: #555; }
.profile-counts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; color: #777; font-size: 13px; }
.profile-actions { position: relative; padding-bottom: 14px; }
.profile-hint { max-width: 220px; margin: 0; color: var(--muted); font-size: 12px; }
.circle-button { position: relative; }
.circle-button .plus { font-size: 16px; }
.circle-menu { top: 100%; right: 0; margin-top: 4px; }
.circle-menu label { cursor: pointer; }
.circle-menu-new input { width: calc(100% - 24px); margin: 6px 12px 2px; height: 28px; padding: 0 6px; border: 1px solid #ddd; font: inherit; font-size: 13px; }
.profile-tabs { display: flex; width: 100%; gap: 6px; border-top: 1px solid #eee; }
.profile-tabs a { padding: 12px 18px 9px; color: #555; border-bottom: 3px solid transparent; font-weight: 500; }
.profile-tabs a:hover { text-decoration: none; border-bottom-color: #f2b8b0; }
.profile-tabs a.active { color: #222; border-bottom-color: var(--red); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.about-card { position: relative; padding: 16px 20px; }
.about-card h2 { margin: 0 0 12px; font-size: 16px; color: #222; }
.about-edit { position: absolute; top: 18px; right: 20px; }
.about-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; }
.about-card dt { color: #777; font-size: 13px; }
.about-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.about-card dd input, .about-card dd textarea { width: 100%; padding: 4px 6px; border: 1px solid var(--line-soft); font: inherit; }
.about-card .about-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.photo-grid-card { padding: 16px 20px; }
.photo-grid-card h2 { margin: 0 0 12px; font-size: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: #eee; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.profile .stream { margin-top: 0; }

/* ---------- People / circles ---------- */
.people-page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.circles-card, .people-card { padding: 16px 20px; }
.circles-head h1 { margin: 0; font-size: 20px; }
.circles-head p { margin: 4px 0 0; }
.circle-row { display: flex; flex-wrap: wrap; gap: 28px; padding: 26px 8px 10px; }
.circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f1f1f1;
  box-shadow: inset 0 0 0 1px #ddd;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.circle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-size: 13px;
  line-height: 16px;
  padding: 6px;
  z-index: 1;
}
.circle-name { font-weight: 700; color: #333; font-size: 12px; line-height: 14px; max-width: 84px; overflow-wrap: anywhere; }
.circle-count { color: var(--muted); font-size: 18px; margin-top: 2px; }
.circle.drop-target { transform: scale(1.14); background: #dbe9ff; box-shadow: inset 0 0 0 2px var(--blue); }
.circle.selected { background: #e6effc; box-shadow: inset 0 0 0 2px var(--blue); }
.circle-new { background: none; box-shadow: inset 0 0 0 2px #ccc; border: 0; }
.circle-new .circle-inner { box-shadow: none; background: none; color: #777; }
.circle-plus { font-size: 30px; line-height: 30px; color: #999; }
.circle-orbit { position: absolute; inset: 0; pointer-events: none; }
.circle-orbit img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--a)) translate(0) rotate(calc(var(--a) * -1));
  opacity: 0;
}
.circle.selected .circle-orbit img { transform: rotate(var(--a)) translate(60px) rotate(calc(var(--a) * -1)); opacity: 1; }
.circle-tools { display: flex; gap: 16px; align-items: center; padding: 10px 8px 0; border-top: 1px solid #eee; margin-top: 8px; }
.people-card h2 { margin: 0 0 14px; font-size: 16px; }
.people-search input { width: 100%; max-width: 360px; height: 30px; margin-bottom: 14px; padding: 0 8px; border: 1px solid #d0d0d0; font: inherit; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  text-align: center;
  cursor: grab;
}
.person:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); text-decoration: none; }
.person.dragging { opacity: 0.4; transform: scale(0.95); }
.person.hidden-by-filter { display: none; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.person-name { font-weight: 700; color: var(--text-strong); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-handle { color: var(--muted); font-size: 12px; }
.person-add { margin-top: 8px; height: 24px; font-size: 12px; }
.people-empty { grid-column: 1 / -1; }
.person-circle-menu { position: absolute; }

/* ---------- Communities ---------- */
.communities-page { max-width: 1040px; margin: 0 auto; }
.communities-head { display: flex; justify-content: space-between; align-items: center; }
.communities-head h1 { margin: 0; font-size: 22px; }
.section-title { font-size: 15px; font-weight: 700; color: #555; margin: 22px 0 10px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.community-tile { display: flex; flex-direction: column; overflow: hidden; color: var(--text); }
.community-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.community-tile-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.community-tagline { color: #666; font-size: 13px; }
.community-stats { color: var(--muted); font-size: 12px; }
.community-page { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.community-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + var(--sub-h) + 15px); }
.community-card { overflow: hidden; }
.community-cover { position: relative; }
.community-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.community-cover-change { position: absolute; right: 8px; bottom: 8px; cursor: pointer; }
.community-info { padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.community-info h1 { margin: 0; font-size: 20px; }
.community-info p { margin: 0; }
.community-about { padding: 0 16px 16px; color: #555; font-size: 13px; overflow-wrap: anywhere; }
.community-members { padding: 14px 16px; }
.community-members h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.member-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.member-faces img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.community-main { flex: 0 1 var(--col); min-width: 0; }

/* ---------- Dialogs ---------- */
.gp-dialog { width: min(480px, 92vw); padding: 0; border: 0; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35); border-radius: 2px; }
.gp-dialog[open] { }
.gp-dialog::backdrop { background: rgba(255, 255, 255, 0.75); }
.dialog-form { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.dialog-form h2 { margin: 0; font-size: 18px; }
.dialog-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
.dialog-form input, .dialog-form textarea, .dialog-form select { padding: 6px 8px; border: 1px solid #d0d0d0; font: inherit; color: var(--text); }
.dialog-actions { display: flex; gap: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.88); }
.lightbox img { max-width: 94vw; max-height: 90vh; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.lightbox button { position: absolute; top: 16px; right: 20px; border: 0; background: none; color: #fff; font-size: 34px; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; right: auto; font-size: 44px; transform: translateY(-50%); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ---------- Simple pages ---------- */
.list-page { max-width: 760px; margin: 0 auto 20px; padding: 18px 22px; }
.list-page h1 { margin: 0 0 10px; font-size: 22px; }
.list-page h2 { margin: 0 0 12px; font-size: 16px; }
.list-head { display: flex; justify-content: space-between; align-items: center; }
.notification-page-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.search-page { max-width: 1040px; margin: 0 auto; }
.settings-page section { padding: 16px 0; border-top: 1px solid #eee; }
.settings-page h2 { margin: 0 0 10px; font-size: 16px; }
.settings-form { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.settings-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
.settings-form input { height: 30px; padding: 0 8px; border: 1px solid #d0d0d0; font: inherit; }
.settings-form button { align-self: flex-start; }
.notice { padding: 8px 12px; border-radius: 2px; }
.notice-ok { background: #e7f4e4; color: #2d6a1f; }
.notice-error { background: #fce4e1; color: #8a2519; }
.text-page { max-width: 760px; margin: 0 auto; padding: 24px 32px; line-height: 1.55; color: #333; }
.text-page h1 { margin-top: 0; font-size: 26px; }
.text-page h2 { font-size: 18px; margin-top: 24px; }
.text-page .updated { color: var(--muted); }
.error-page { max-width: 460px; margin: 60px auto; padding: 30px; text-align: center; }
.error-code { font-size: 64px; line-height: 70px; color: var(--red); font-weight: 300; }
.public-page .public-header { padding: 16px 20px; background: #fff; border-bottom: 1px solid #e5e5e5; }

/* ---------- Moderation ---------- */
.mod-page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.mod-page .list-page { max-width: none; margin: 0; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.mod-section { padding: 16px 20px; }
.mod-section h2 { margin: 0 0 12px; font-size: 16px; }
.mod-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mod-form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.mod-form label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #555; }
.mod-form label.check { flex-direction: row; align-items: center; gap: 6px; }
.mod-form input:not([type=checkbox]), .mod-form textarea, .mod-form select { height: 29px; padding: 0 8px; border: 1px solid #d0d0d0; font: inherit; }
.mod-form textarea { height: auto; padding: 6px 8px; }
.mod-result { background: #f5f5f5; padding: 8px; font-size: 13px; }
.report { padding: 12px 0; border-top: 1px solid #eee; }
.report blockquote { margin: 6px 0; padding: 6px 10px; background: #f8f8f8; border-left: 3px solid #ddd; color: #555; overflow-wrap: anywhere; }
.mod-log { width: 100%; border-collapse: collapse; font-size: 13px; }
.mod-log td { padding: 5px 8px; border-top: 1px solid #eee; vertical-align: top; overflow-wrap: anywhere; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .gp-notifications { right: 0; left: 0; width: auto; }
  .gp-notifications::before { display: none; }
  .gp-tabs { position: static; transform: none; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
  .gp-tabs > a, .gp-tab-more > button { margin-right: 4px; padding: 10px 10px 7px; }
  .gp-subheading { position: static; transform: none; margin-left: 8px; }
  .gp-menu-label { display: none; }
  .gp-main { padding: 10px 8px 60px; }
  .stream > * { margin-bottom: 12px; }
  .profile { margin-top: -10px; }
  .profile-cover { height: 180px; }
  .profile-card { padding: 0 14px; }
  .profile-avatar-wrap { margin-top: -60px; }
  .profile-avatar { width: 110px; height: 110px; }
  .community-page { flex-direction: column; align-items: stretch; }
  .community-side { width: auto; position: static; }
  .circle { width: 118px; height: 118px; }
  .circle-inner { width: 78px; height: 78px; }
  .circle-row { gap: 16px; justify-content: center; }
  .text-page { padding: 18px; }
  .about-card dl { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Motion, matched to Loogle+ ---------- */
/* Share box: the small box fades out over 300ms, then the big composer appears. */
.share-box { transition: opacity 0.3s; }
.share-box.fading { opacity: 0; }
.share-box[data-state=open] {
  width: 100%;
  max-width: 650px;
  padding: 10px;
  background: #f6f6f6;
  border: 1px solid rgba(10, 10, 10, 0.1);
  box-shadow: 3px 0 33px 0 #000;
}
.share-holder { display: flex; justify-content: center; margin: 25px 0 30px; }
.share-holder:empty { display: none; }
.comment-list { max-height: 200px; overflow-y: auto; }
/* After sharing, the stream fades out and back in over 500ms. */
.stream { transition: opacity 0.5s; }
.stream.fading { opacity: 0; }
/* Dismissing a notification fades it out over 250ms. */
.notification.leaving { opacity: 0; transition: opacity 0.25s; }
/* Reloads fade the whole page out first. */
body { transition: opacity 0.4s; }
body.leaving { opacity: 0; }
/* Comment box: opens instantly, the +1 hides, your picture shows. */
.post.commenting .plus-one, .post.commenting .plus-count { display: none; }
.comment-form.expanded { background: #f6f6f6; }
.comment-form.expanded .comment-input { height: 60px; max-width: 440px; border-color: #ccc; text-indent: 1ch; }
.comment-form-avatar { width: 25px; height: 25px; border-radius: 5%; }
.caught-up { text-align: center; color: #aaa; padding: 30px 0 10px; }
.caught-up img { width: 106px; height: 106px; cursor: pointer; }

/* ---------- Profile header, matched to Loogle+ ---------- */
.profile { max-width: none; margin: -15px -15px 0; }
.banner { position: relative; width: 100%; height: 20em; overflow: hidden; margin-bottom: 10px; background: #555; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.profilestuff { position: absolute; left: 19%; right: 6%; bottom: 22%; display: flex; align-items: center; gap: 7px; }
.pfp-container { position: relative; display: inline-block; line-height: 0; }
img.pfp-picture { width: 100px; height: 100px; border-radius: 1000px; object-fit: cover; }
.change-photo-button { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); padding: 5px 10px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 12px; line-height: 16px; white-space: nowrap; border-radius: 2px; cursor: pointer; display: none; }
.pfp-container:hover .change-photo-button { display: block; }
.profile-username { margin: 0 0 0 7px; padding: 0 1%; color: #fff; font-size: 30px; font-weight: 500; }
.profile-username .staff-badge { vertical-align: 6px; }
.change-cover-button { margin-left: auto; height: 35px; width: 152px; display: flex; align-items: center; justify-content: center; background: #1d1e19; border: 1px solid #1d1e19; border-radius: 2px; color: #cfd1d3; font-size: 13px; font-weight: bold; cursor: pointer; }
.profilestuff .circle-button { margin-left: auto; }
.profile > .stream, .profile > .stream-loader, .profile > .about-grid, .profile > .photo-grid-card { margin-left: 15px; margin-right: 15px; }
@media (max-width: 760px) {
  .profile { margin: -10px -8px 0; }
  .banner { height: 14em; }
  .profilestuff { left: 12px; right: 12px; bottom: 16px; }
  img.pfp-picture { width: 72px; height: 72px; }
  .profile-username { font-size: 20px; }
  .change-cover-button { width: auto; padding: 0 10px; }
}

/* ---------- Share box, measured from Loogle+ ---------- */
/* Closed: a 500px grey box with a 470x100 text box and the four icons under it. */
.share-box { width: 500px; max-width: 100%; padding: 10px; background: #f6f6f6; border: 0; border-radius: 2px; box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.09); }
.share-box .share-collapsed {
  display: block; width: 470px; max-width: 100%; height: 100px; margin: 8px 0 0 4px; padding: 3px 2px 2px;
  border: 1px solid #d8d8d8; background: #fff; color: #999; font: 14px/21px Arial, sans-serif; text-align: left; cursor: text;
}
.share-box .share-quick { display: flex; justify-content: flex-start; gap: 30px; margin: 18px 0 8px 30px; }
.share-box .share-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; background: none; border: 0; color: #8b8b8b; font-size: 12px; line-height: 15px; cursor: pointer; }
.share-box .share-quick button:hover { background: none; color: #333; }
.share-box .share-quick .icon { transform: scale(1.25); }
.share-quick-label.strong { color: #000; font-weight: bold; }
.share-box[data-state=open] .share-collapsed-wrap { display: none; }

/* Open: the 650px composer from Loogle+. */
.share-box[data-state=open] {
  position: relative; width: 650px; max-width: 100%; min-height: 300px; padding: 10px 10px 60px; margin: 40px auto 0;
  background: #f6f6f6; border: 1px solid rgba(10, 10, 10, 0.1); border-radius: 0; box-shadow: 3px 0 33px 0 #000;
}
.share-form { display: block; }
.share-level-1 { position: relative; display: flex; align-items: flex-start; min-height: 110px; }
.share-pfp { width: 100px; height: 100px; margin: 10px 0 0 18px; border-radius: 50%; object-fit: cover; flex: none; }
.share-triangle { position: absolute; left: 128px; top: 7px; width: 40px; height: 40px; background: #fff; border-bottom: 1px solid #d8d8d8; border-left: 1px solid #d8d8d8; transform: scale(0.7, 0.7) rotate(45deg); z-index: 1; }
.share-box .share-text {
  position: relative; z-index: 2; width: 471px; max-width: calc(100% - 142px); height: 100px; min-height: 100px; margin: 8px 0 0 24px; padding: 3px 2px 2px;
  border: 1px solid rgba(10, 10, 10, 0.1); background: #fff; color: #000; font: 14px/21px Arial, sans-serif; resize: vertical; outline: none;
}
.share-attach-row { display: flex; align-items: center; gap: 0; margin: 12px 0 0 63px; }
.share-attach-label { width: 77px; font-size: 13px; font-weight: 700; color: #333; }
.share-attach-row button { display: flex; align-items: center; gap: 4px; margin-right: 22px; padding: 0; border: 0; background: none; color: #333; font-size: 11px; cursor: pointer; }
.share-attach-row button:hover { border: 0; background: none; text-decoration: underline; }
.share-attach-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #f0f0f0; }
.share-attach-icon .icon { transform: scale(0.85); }
.share-attachments { margin: 10px 0 0 142px; }
.share-attachments input[type=url] { width: 471px; max-width: 100%; }
.share-actions { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: #fff; }
.share-button, .cancel-button { height: 33px; padding: 0 20px; border: 1px solid rgba(10, 10, 10, 0.1); border-radius: 2px; font: 14px Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.share-button { background: #55a644; color: #fff; }
.share-button:disabled { opacity: 0.6; }
.cancel-button { background: #fbfbfb; color: #000; }
.share-actions .share-audience { position: relative; display: flex; align-items: center; gap: 8px; margin-left: 10px; padding: 0; border: 0; }
.share-actions .audience-menu { top: auto; bottom: 100%; left: 0; }
.share-actions .audience-chip::after { content: none; }
@media (max-width: 700px) {
  .share-pfp, .share-triangle { display: none; }
  .share-box .share-text { width: 100%; max-width: 100%; margin-left: 0; }
  .share-attach-row { margin-left: 0; }
  .share-attachments { margin-left: 0; }
}

/* Closed share box, second pass against Loogle+ */
.share-box .share-collapsed { box-sizing: border-box; }
.share-box .share-collapsed-wrap { position: relative; }
.share-caret { position: absolute; left: 42px; top: 101px; width: 14px; height: 14px; background: #fff; border-right: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8; transform: rotate(45deg); }
.share-box .share-quick { gap: 0; margin: 20px 0 6px 12px; }
.share-box .share-quick button { width: 94px; height: 48px; justify-content: space-between; border-right: 1px solid #ddd; border-radius: 0; }
.share-box .share-quick .icon { transform: scale(1.2); margin-top: 2px; }
.share-box .share-quick .share-quick-label { font-size: 12px; color: #8b8b8b; }
.share-box .share-quick .share-quick-label.strong { color: #000; font-weight: bold; }

/* ---------- Header, tabs, cards, comments, sidebar: measured from Loogle+ ---------- */
.post-meta { font-size: 14px; }
.post-main { padding-bottom: 50px; }
.post-comments { position: relative; background: #fff; border-radius: 0 0 2px 2px; }
.comment-list { background: #f6f6f6; border-top: 1px solid #fff; padding: 0 17px; }
.more-comments { display: block; padding: 8px 17px 0; background: #f6f6f6; }
.comment { gap: 10px; padding: 0; margin: 17px 0; border-bottom: 0; }
.comment-avatar { width: 36px; height: 36px; border-radius: 3px; }
.comment-head { font-size: 14px; gap: 0; }
.comment-author { font-size: 14px; }
.comment-head time { margin: 0 10px; font-size: 14px; color: #b3b3b3; }
.comment-content { font-size: 14px; line-height: 20px; }
.comment-form { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center; min-height: 50px; padding: 5px 0 0; background: transparent; }
.comment-form .plus-one { position: absolute; left: 13px; top: 12px; }
.comment-input { position: relative; left: 17%; flex: none; width: 275px; height: 30px; padding: 3px 2px 2px; border: 1px solid #ccc; background: #fff; color: #333; font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.comment-form.expanded { background: #f6f6f6; min-height: 125px; }
.comment-form.expanded .comment-input { left: 23px; width: 440px; max-width: calc(100% - 60px); height: 60px; text-indent: 1ch; border-color: #ccc; }
.comment-form.expanded .plus-one { display: none; }
.comment-form-avatar { position: absolute; left: 18px; top: 17px; width: 25px; height: 25px; border-radius: 5%; display: none; }
.comment-form.expanded .comment-form-avatar { display: block; }
.comment-buttons { width: 440px; max-width: calc(100% - 60px); padding: 6px 0 0; gap: 5px; }
.comment-buttons .g-btn { height: auto; padding: 6px 12px; border: 0; border-radius: 2px; font-size: 13px; font-weight: 400; color: #fff; background: #999; }
.comment-buttons .g-btn-green { background: #55a644; }
.plus-one { width: 35px; height: 25px; padding: 0; border: 1px solid #ccc; border-radius: 0; background: transparent; color: #333; font: 700 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: center; }
.plus-one.on { background: #cc4331; border-color: #cc4331; color: #fff; }
.gp-ribbon { top: var(--header-h); bottom: auto; height: calc(100vh - var(--header-h)); border: 1px solid #d0d0d0; border-top: 0; z-index: 75; }
.gp-ribbon li { margin-bottom: 5px; }
.gp-ribbon li a, .gp-ribbon li a.current { border-left: 0; background: none; color: #9f9f9f; padding: 0 16px; }
.gp-ribbon li a.current { color: #797b7b; }
.gp-ribbon li a:hover { background: #f5f5f5; }
.gp-ribbon .icon { filter: none; transform: scale(1.3); }
/* composer, second pass */
.share-box .share-text { resize: none; }
.share-attach-row button { font-weight: 400; font-size: 11px; }
.share-attach-icon { background: #e8e8e8; }
.share-actions .share-to { color: #999; font-size: 13px; }
.share-actions .audience-chip { height: auto; padding: 0; border: 0; background: none; color: #777; font-size: 13px; }
.audience-caret { padding: 2px 4px; border: 0; background: none; color: #999; cursor: pointer; }
@media (max-width: 760px) {
  .gp-me-name { display: none; }
  .comment-input { width: calc(100% - 70px); }
}


/* ---------- About page, measured from Loogle+ ---------- */
.about-boxes { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 0 20px; padding: 15px; }
.about-box { position: relative; width: 500px; max-width: 100%; min-height: 300px; margin: 15px 0; padding: 20px; background: #fff; border-top: 6px solid; border-bottom: 1px solid #ccc; color: #333; font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.about-story { border-top-color: #dc8e78; }
.about-info { border-top-color: #92b979; }
.about-box h3 { margin: 20px 0 10px; font-size: 24px; line-height: 26.4px; font-weight: 500; }
.about-fields strong { display: block; font-weight: 700; }
.about-fields p { margin: 0 0 10px; overflow-wrap: anywhere; }
.about-inline strong { display: inline; }
.about-box .unset { color: #333; }
.about-box .about-edit { position: static; color: #337ab7; }
.about-box input, .about-box textarea { width: 100%; padding: 4px 6px; border: 1px solid #d8d8d8; font: inherit; }
.about-inline input { width: auto; }
.about-box .about-actions { display: flex; gap: 8px; margin: 6px 0; }
.banner { height: 280px; }
.profilestuff { top: 60px; bottom: auto; left: 19%; }
@media (max-width: 760px) { .profilestuff { top: auto; bottom: 16px; left: 12px; } }

/* ---------- Communities page, measured from Loogle+ ---------- */
.communities-page { max-width: 1232px; margin: 0 auto; }
.communities-head { display: flex; justify-content: space-between; align-items: flex-start; }
.communities-title { margin: 20px 0 10px; color: #606060; font: 500 22px/24.2px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.create-community-button { margin-top: 27px; height: 30px; padding: 0 12px; border: 1px solid #b3d8ff; border-radius: 0; background: #4479d6; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.communities-page .community-grid { display: flex; flex-wrap: wrap; gap: 0; }
.card-other { display: block; width: 250px; height: 340px; margin: 10px; background: #fff; box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.09); color: #333; }
.card-other:hover { text-decoration: none; }
.card-img-other { display: block; width: 250px; height: 250px; object-fit: cover; }
.card-name-other { margin: 10px 0 0 10px; color: #606060; font: 700 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-members-other { margin-left: 10px; color: #646766; font-size: 11.5px; line-height: 16px; }
.card-img-two { display: block; width: 24px; height: 24px; margin: 5px 0 0 11px; border-radius: 3px; object-fit: cover; }

/* ---------- Community page, measured from Loogle+ ---------- */
/* Side column 300px, shrinking against the two post columns like Loogle's flex row. */
.community-page { display: flex; align-items: flex-start; justify-content: flex-start; gap: 0; margin-left: -15px; }
.community-side-col { flex: 0 1 300px; min-width: 214px; }
.community-page .community-main { flex: 1 1 1040px; max-width: none; min-width: 0; }
#community-side-panel { display: flow-root; width: 200px; min-height: 600px; margin: -6px auto 0; background: #fefefe; box-shadow: 2px 2px 3px 2px #ccc; }
.cside-name { margin: 21px 10px 0; font-size: 20px; line-height: 24px; font-weight: 700; color: #333; overflow-wrap: anywhere; }
.cside-tagline { margin: 4px 10px 0; font-size: 14px; color: #333; }
.cside-image { position: relative; height: 300px; margin-top: 21px; overflow: hidden; }
.cside-image img { width: 200px; height: 300px; object-fit: cover; display: block; }
.cside-buttons { position: absolute; left: 15px; top: 15px; display: flex; flex-direction: column; gap: 35px; }
.cside-button { display: flex; align-items: center; justify-content: center; width: 90px; height: 30px; padding: 1.5px; border: 1px solid #b3d8ff; background: #4479d6; color: #ccc; font-size: 12px; font-weight: 700; cursor: pointer; }
.cside-button.cside-light { background: #fafafa; border-color: #ccc; color: #000; }
.cside-title { margin: 11px 8px 0 17px; color: #ababab; font-size: 12px; font-weight: 700; }
.cside-about { min-height: 150px; margin: 10px 8px 0 17px; font-size: 14px; color: #333; overflow-wrap: anywhere; }
.cside-links-title { margin: 10px 10px 0; color: #ccc; font-size: 14px; }
.cside-members { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 10px 12px; }
.cside-members img { width: 24px; height: 24px; border-radius: 3px; object-fit: cover; }
@media (max-width: 720px) {
  .community-page { flex-direction: column; align-items: stretch; margin-left: 0; }
  .community-side-col { flex: none; min-width: 0; }
  #community-side-panel { width: auto; min-height: 0; margin: 0 0 16px; }
  .cside-image img { width: 100%; }
}

/* Single post page, measured from Loogle+: a 350px author card, then the post. */
.single-post { display: flex; justify-content: space-between; align-items: flex-start; max-width: 1073px; margin: 7px auto 0; padding: 10px; box-sizing: border-box; }
.single-post-card { flex: none; width: 350px; height: 350px; box-sizing: border-box; margin: 10px 10px 10px 141px; padding: 10px; background: #fff; border-radius: 5px; }
.single-post-who { width: 145px; margin: 90.75px auto 0; text-align: center; }
.single-post-avatar { display: block; width: 135px; height: 135px; border-radius: 50%; background: #ccc; object-fit: cover; }
.single-post-name { display: block; width: 135px; margin-top: 5px; color: #333; font-size: 14px; line-height: 20px; }
.single-post-name:hover { text-decoration: none; }
.single-post > .post { flex: none; width: 530px; margin: 10px; }
.single-post .post-avatar { width: 60px; height: 60px; }
.single-post .post-content { margin-left: 3%; line-height: 1.5; white-space: pre-wrap; }
.single-post .comment-list { max-height: 200px; overflow: auto; border-top: 1px solid #ccc; }
@media (max-width: 1080px) {
  .single-post { justify-content: center; }
  .single-post-card { margin-left: 10px; }
}
@media (max-width: 920px) {
  .single-post { flex-direction: column; align-items: center; }
  .single-post-card { display: none; }
  .single-post > .post { width: 100%; max-width: 530px; }
}

/* Stream spacing, measured from Loogle+: cards 250px tall at least, 10px
   apart; posts start 10px down, the share box / page header 7px down. */
.stream > * { margin-bottom: 10px; }
.stream-col { gap: 10px; padding-top: 10px; }
.stream-col > .share-box:first-child, .stream-col > .hot-header:first-child { margin-top: -3px; }
.post-front { display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; box-sizing: border-box; }
.share-box:not([data-state=open]) { height: 224px; box-sizing: border-box; }

/* What's hot header card (Loogle's #bob-post-create) */
.hot-header { box-sizing: border-box; width: 500px; max-width: 100%; height: 112px; padding: 10px; background: #f6f6f6; border-radius: 2px; box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.09); }
.hot-header h2 { margin: 20px 0 10px; color: #a5a5a5; font-size: 30px; font-weight: 500; line-height: 33px; }
.hot-header b { position: relative; top: 7px; margin-left: 6px; color: #454545; font-size: 12px; font-weight: 700; }

/* Profile, measured from Loogle+ (about.php, photos.php) */
.gp-crumb-icon.icon-profile, .gp-crumb-icon.icon-photos { transform: scale(0.85); }
.about-boxes { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 0; max-width: 1591px; margin: 0 auto; padding: 15px; box-sizing: border-box; }
.about-box { box-sizing: border-box; height: 300px; min-height: 0; border: 1px solid #ccc; }
.about-story { border-top: 6px solid #dc8e78; }
.about-info { border-top: 6px solid #92b979; }

/* Edit popups (Loogle's #editbox-story / #editbox-intro) */
.about-modal { position: fixed; inset: 0; z-index: 10000; overflow: auto; background: rgba(0, 0, 0, 0.5); }
.about-modal[hidden] { display: none; }
.about-modal-box { position: relative; bottom: 25vh; width: 600px; height: 500px; margin: 15vw auto 0; background: #fff; box-shadow: 1px 1px 5px #f3f3f3; color: #333; font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.about-modal-bar { height: 50px; }
.about-modal-story .about-modal-bar { background: #dc8e78; }
.about-modal-info .about-modal-bar { background: #92b979; }
.about-modal-bar h3 { margin: 0; padding-top: 15px; color: #fff; font-size: 20px; font-weight: 500; line-height: 22px; text-align: center; }
.about-modal-field { padding: 15.5px 20px 0; }
.about-modal-field:nth-of-type(2) { padding-top: 32px; }
.about-modal-field b { display: block; font-size: 13px; font-weight: 700; line-height: 15px; }
.about-modal-field input, .about-modal-field textarea { display: block; box-sizing: border-box; width: 454px; height: 24px; margin-top: 15px; padding: 0 2px; border: 1px solid rgba(10, 10, 10, 0.1); background: #fff; color: #333; font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; resize: none; outline: none; }
.about-modal-story .about-modal-field:nth-of-type(3), .about-modal-story .about-modal-field:nth-of-type(4) { padding-top: 26px; }
.about-modal-field textarea { height: 150px; margin-top: 4px; overflow-y: auto; }
.about-modal-buttons button { position: absolute; top: 465px; height: 27px; padding: 0; font: 700 11.2px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.about-modal-cancel { left: 428px; width: 72px; border: 1px solid rgba(106, 106, 106, 0.5); border-radius: 0; background: #fff; color: #272727; }
.about-modal-save { left: 507px; width: 73px; border: 2.4px solid #3079ed; border-radius: 1.6px; background: #4d90fe linear-gradient(#4d90fe, #4787ed); color: #fff; }
@media (max-width: 640px) {
  .about-modal-box { bottom: 0; width: auto; height: auto; min-height: 500px; margin: 20px 12px; }
  .about-modal-field input, .about-modal-field textarea { width: 100%; }
  .about-modal-buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 20px; }
  .about-modal-buttons button { position: static; }
}

/* Photos tab: Loogle's bootstrap thumbnail grid, no banner */
.photo-gallery { display: flex; flex-wrap: wrap; align-items: flex-start; max-width: 1591px; margin: 0 auto; padding: 15px; box-sizing: border-box; }
.photo-cell { width: 25%; padding: 0 15px; box-sizing: border-box; }
.photo-thumb { margin-bottom: 20px; padding: 4px; border: 1px solid #ddd; border-radius: 4px; background: #fff; line-height: 1.42857; }
.photo-thumb img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.photo-gallery-empty { width: 100%; margin: 0; text-align: center; }
@media (max-width: 991px) { .photo-cell { width: 100%; } }
