/* ------------------------------------------------------------------------
   f2012book — a reconstruction of the 2012 social-network look.
   Palette:  chrome #3b5998 · link #3b5998 · page #e9eaed · rule #d3d6db
   Type:     "lucida grande", tahoma, verdana, arial — 11px base, 13px body
   ------------------------------------------------------------------------ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #e9eaed;
  color: #333;
  font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
  font-size: 11px;
  line-height: 1.28;
}

/* ========================================================================
   Liquid Glass refresh
   Keeps the original 2012 information architecture while replacing its
   opaque chrome with a layered, translucent surface system.
   ======================================================================== */
:root {
  --glass-ink: #17233b;
  --glass-muted: #61708b;
  --glass-blue: #3678f6;
  --glass-violet: #7467f5;
  --glass-line: rgba(255, 255, 255, .58);
  --glass-surface: rgba(255, 255, 255, .62);
  --glass-surface-strong: rgba(255, 255, 255, .78);
  --glass-shadow: 0 18px 45px rgba(42, 61, 104, .13), 0 3px 12px rgba(42, 61, 104, .08);
}

html { min-height: 100%; background: #dce9ff; }
body {
  min-height: 100%;
  color: var(--glass-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  background:
    radial-gradient(circle at 7% 2%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 28rem),
    radial-gradient(circle at 91% 17%, rgba(155,195,255,.68) 0, rgba(155,195,255,0) 26rem),
    radial-gradient(circle at 56% 79%, rgba(207,187,255,.46) 0, rgba(207,187,255,0) 31rem),
    linear-gradient(135deg, #e8f2ff 0%, #d8e7ff 46%, #e6dcff 100%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.19) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
a { color: #2866d9; }
a:hover { color: #174da9; text-decoration: none; }

.fb-bar {
  height: 58px;
  background: linear-gradient(120deg, rgba(27, 48, 100, .88), rgba(50, 89, 178, .78) 56%, rgba(105, 79, 181, .78));
  border-bottom: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 8px 28px rgba(27, 50, 107, .2), inset 0 -1px rgba(255,255,255,.16);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.fb-bar-inner { height: 58px; gap: 8px; }
.fb-logo {
  width: 30px; height: 30px; margin-right: 1px; border-radius: 10px;
  color: #fff; background: linear-gradient(145deg, #93c9ff, #5b66f4 63%, #8c59e9);
  font: 700 25px/30px Georgia, serif; box-shadow: 0 5px 15px rgba(5,17,72,.3), inset 0 1px rgba(255,255,255,.5);
}
.fb-wordmark, .fb-me { font-size: 16px; letter-spacing: -.5px; }
.fb-search input {
  width: 250px; height: 30px; padding: 0 11px; border: 1px solid rgba(255,255,255,.38); border-radius: 10px;
  color: #1d2a42; background: rgba(255,255,255,.82); box-shadow: inset 0 1px 1px rgba(28,46,94,.08), 0 2px 8px rgba(3,16,55,.12);
}
.fb-search input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(166,211,255,.25); }
.jewel { width: 32px; height: 30px; border-radius: 9px; line-height: 29px; color: rgba(255,255,255,.86); }
.jewel:hover, .bar-link:hover { border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.16); }
.jewel .count, .nav-item .badge { border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff5b6a, #e12764); box-shadow: 0 2px 7px rgba(157,13,57,.35); }
.bar-link { padding: 6px 8px; border-radius: 9px; font-weight: 600; }
.bar-sep { background: rgba(255,255,255,.2); }

.page { padding-top: 76px; gap: 14px; }
.page.narrow { padding-top: 76px; }
.col-left { padding: 8px; border: 1px solid var(--glass-line); border-radius: 17px; background: rgba(255,255,255,.3); box-shadow: 0 10px 30px rgba(55,82,138,.06); backdrop-filter: blur(16px); }
.nav-title { padding: 11px 8px 5px; color: #6e7d97; font-size: 10px; letter-spacing: .75px; }
.nav-item { margin: 2px 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; color: #31415e; font-weight: 600; transition: .18s ease; }
.nav-item:hover { transform: translateX(2px); border-color: rgba(255,255,255,.66); background: rgba(255,255,255,.5); }
.nav-item.active { color: #195bd1; background: linear-gradient(110deg, rgba(207,229,255,.86), rgba(234,224,255,.7)); border-color: rgba(255,255,255,.76); box-shadow: 0 4px 12px rgba(67,114,190,.11); }

.box, .tl-cap, .profile-bar {
  border: 1px solid var(--glass-line); border-radius: 17px; background: var(--glass-surface);
  box-shadow: var(--glass-shadow); overflow: hidden; backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.box { margin-bottom: 14px; }
.box-head {
  padding: 10px 13px; border-bottom: 1px solid rgba(112,134,176,.14);
  color: #243653; background: linear-gradient(115deg, rgba(255,255,255,.68), rgba(236,243,255,.32)); font-weight: 700;
}
.box-body { padding: 12px; }
.box-foot { border-top-color: rgba(112,134,176,.14); background: rgba(255,255,255,.32); }
.story { padding: 13px 14px; }
.story + .story { border-top-color: rgba(112,134,176,.14); }
.story-actor, .person .nm { color: #234a91; }
.story-meta, .grey, .comment-meta { color: var(--glass-muted); }
.story-photo { border: 1px solid rgba(255,255,255,.72); border-radius: 12px; box-shadow: 0 8px 22px rgba(45,67,111,.12); }
.like-line { border: 1px solid rgba(255,255,255,.48); border-radius: 9px; background: rgba(237,244,255,.52); }
.comments { border-top-color: rgba(112,134,176,.12); }

.composer { background: rgba(255,255,255,.64); }
.composer-tabs, .composer-foot { background: rgba(244,248,255,.46); border-color: rgba(112,134,176,.14); }
.composer-tabs span { padding: 10px 12px; border-color: rgba(112,134,176,.13); color: #64718a; }
.composer-tabs span.on { color: #2763cf; background: rgba(255,255,255,.68); }
.composer textarea { padding: 12px; border-bottom-color: rgba(112,134,176,.12); background: rgba(255,255,255,.3); color: var(--glass-ink); }
.composer-foot { padding: 8px 10px; }

.btn {
  padding: 4px 10px; border: 1px solid rgba(78,107,159,.25); border-radius: 9px; color: #34445f;
  background: rgba(255,255,255,.68); box-shadow: 0 3px 8px rgba(48,73,124,.1), inset 0 1px rgba(255,255,255,.7); transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); box-shadow: 0 7px 15px rgba(48,73,124,.15); }
.btn-primary {
  border: 1px solid rgba(255,255,255,.42); background: linear-gradient(135deg, #3b86fa, #5a63e9 68%, #8055e4); box-shadow: 0 6px 16px rgba(58,91,220,.28), inset 0 1px rgba(255,255,255,.34); text-shadow: none;
}
.btn-primary:hover { background: linear-gradient(135deg, #4b91ff, #675ff2 68%, #8d59ea); }
.inp, .comment-form input, .privacy-pick select {
  border: 1px solid rgba(93,122,176,.24); border-radius: 9px; background: rgba(255,255,255,.68); color: var(--glass-ink);
}
.inp:focus, .comment-form input:focus { border-color: rgba(63,126,244,.7); box-shadow: 0 0 0 3px rgba(76,143,255,.15); }
.flash { border-color: rgba(63,126,244,.28); border-radius: 12px; background: rgba(218,235,255,.68); color: #244982; }
.error-box { border-color: rgba(237,89,100,.42); border-radius: 12px; background: rgba(255,230,232,.73); }

.announcement > .box-head { background: linear-gradient(115deg, rgba(66,122,235,.82), rgba(120,88,227,.82)); color: #fff; }
.announcement .story { background: rgba(250,252,255,.38); }
.flyout, .typeahead { border-color: var(--glass-line); border-radius: 14px; background: rgba(250,252,255,.87); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px); }
.flyout-head, .flyout-foot { background: rgba(238,245,255,.62); border-color: rgba(112,134,176,.14); }
.msg-row, .notif { border-color: rgba(112,134,176,.11); }
.msg-row:hover, .notif:hover, .msg-row.unread:hover, .notif.unread:hover { background: rgba(210,229,255,.58); }
.msg-row.unread, .notif.unread { background: rgba(224,236,255,.56); }

.chat-rail, .chat-win { border-color: rgba(255,255,255,.44); background: rgba(248,251,255,.74); box-shadow: -9px 0 30px rgba(36,58,110,.13); backdrop-filter: blur(18px); }
.chat-rail-head, .chat-win-head { background: linear-gradient(110deg, rgba(47,103,211,.84), rgba(108,79,201,.84)); }
.chat-row:hover { background: rgba(211,229,255,.56); }

.cover { border-color: var(--glass-line); border-radius: 18px 18px 0 0; box-shadow: var(--glass-shadow); }
.profile-bar { border-top: 1px solid rgba(255,255,255,.58); border-radius: 0 0 17px 17px; }
.profile-tabs a.tab:hover, .profile-tabs span.on { background: rgba(218,232,255,.7); border-radius: 9px; }

.landing-bar { background: linear-gradient(120deg, rgba(27,48,100,.92), rgba(74,84,180,.88)); box-shadow: 0 8px 26px rgba(30,48,97,.2); }
.landing-main { padding-top: 62px; }
.landing-signup { padding: 22px; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass-surface); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px); }
.footer { border-color: rgba(255,255,255,.55); color: #65728a; }

@media (max-width: 1039px) {
  .col-left { width: 180px; }
}
@media (max-width: 899px) {
  .page, .page.narrow { padding-top: 18px; }
  .fb-bar, .fb-bar-inner { min-height: 58px; height: auto; }
}
@media (max-width: 759px) {
  .page, .page.narrow { padding-top: 14px; }
  .col-left { width: 100%; padding: 5px; border-radius: 14px; }
  .col-left .nav-item { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.45); border-radius: 9px; }
  .col-left .nav-item.active { background: linear-gradient(110deg, rgba(207,229,255,.92), rgba(234,224,255,.82)); }
  .box { border-radius: 14px; }
}

.reaction-picker { position: relative; display: inline-block; }
.reaction-picker summary { cursor: pointer; list-style: none; }
.reaction-picker summary::-webkit-details-marker { display: none; }
.reaction-menu {
  position: absolute; z-index: 40; bottom: calc(100% + 7px); left: -7px;
  display: flex; gap: 3px; padding: 5px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; background: rgba(25,27,32,.94); box-shadow: 0 10px 24px rgba(0,0,0,.32);
}
.reaction-menu button { border: 0; padding: 3px; border-radius: 50%; background: transparent; font-size: 17px; cursor: pointer; transition: transform .18s ease; }
.reaction-menu button:hover { transform: scale(1.25); }
.share-picker { display: inline-block; }
.share-picker summary { cursor: pointer; }
.share-picker form { position: absolute; z-index: 45; width: min(300px, calc(100vw - 40px)); margin-top: 7px; padding: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(27,29,34,.97); box-shadow: 0 12px 28px rgba(0,0,0,.34); }
.share-picker input { width: 100%; margin-bottom: 7px; }.share-picker select { margin-right: 6px; }
.shared-story { display: block; margin-top: 8px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: #e8ebef; background: rgba(255,255,255,.045); }
.shared-story span { display: block; margin-top: 3px; color: #adb3bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.shared-story:hover { text-decoration: none; background: rgba(255,255,255,.08); }
.activity-row { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-top: 1px solid rgba(255,255,255,.09); }.activity-row:first-of-type { border-top: 0; }.activity-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.09); }
.event-row { display: flex; gap: 12px; padding: 13px; border-top: 1px solid rgba(255,255,255,.1); }.event-row:first-of-type { border-top: 0; }.event-date { display: grid; align-content: center; width: 48px; height: 52px; flex: none; border-radius: 11px; text-align: center; background: rgba(255,255,255,.1); }.event-date strong { font-size: 20px; line-height: 20px; }.event-date span { font-size: 11px; color: #b9bec8; }.event-info { min-width: 0; flex: 1; }.event-rsvp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }.event-invites { display: flex; flex-wrap: wrap; gap: 7px 12px; }.event-invites label { font-size: 12px; font-weight: normal; } @media (max-width: 759px) { .event-row { padding: 12px; }.event-rsvp .btn { padding: 6px 9px; } }
.story-pinned { margin-top: 6px; color: #d8dce3; font-size: 11px; }.story-pin { align-self: flex-start; margin-left: 5px; border: 0; background: transparent; color: #c6cad2; cursor: pointer; }.story-pin:hover { color: #fff; transform: scale(1.12); }.member-role { margin-top: 3px; padding: 0; border: 0; color: #b9bec8; background: transparent; font-size: 10px; cursor: pointer; }.member-role:hover { color: #fff; text-decoration: underline; }

a { color: #3b5998; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
img { border: 0; vertical-align: middle; }
img.avatar { object-fit: cover; background: #c8ccd4; }
p { margin: 0 0 8px; }

input, textarea, select, button { font-family: inherit; font-size: 11px; }
/* file pickers have an intrinsic width and will happily overflow a narrow box */
input[type="file"] { max-width: 100%; }

/* ------------------------------------------------------------- blue bar */

/* Mở như app cài đặt (không có thanh địa chỉ) thì tắt cảm giác "kéo để làm mới" ở
   trình duyệt thường — dễ bị kéo nhầm khi cuộn lên đầu trang. */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: contain; }
}

.fb-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 42px;
  background: #3b5998;
  border-bottom: 1px solid #133783;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  z-index: 400;
}

.fb-bar-inner {
  width: 1000px;
  margin: 0 auto;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-logo {
  display: block;
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 3px;
  color: #3b5998;
  font: bold 22px/22px Georgia, "Times New Roman", serif;
  text-align: center;
  margin-right: 4px;
  flex: none;
}
.fb-logo:hover { text-decoration: none; }

.fb-wordmark {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: -.3px;
  margin-right: 8px;
}
.fb-wordmark:hover { text-decoration: none; }

/* trang cá nhân: ảnh đại diện + tên chủ trang thay cho logo */
.fb-me {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-right: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: -.3px;
}
.fb-me:hover { text-decoration: none; }
.fb-me img { width: 24px; height: 24px; flex: none; object-fit: cover; border-radius: 3px; background: #fff; }
.fb-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* search */
.fb-search { position: relative; flex: none; }
.fb-search input {
  width: 235px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid #1d2a5b;
  border-radius: 2px;
  background: #fff;
  color: #333;
}
.fb-search input:focus { outline: none; border-color: #0e1633; }

.typeahead {
  position: absolute;
  top: 24px; left: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #b1b1b1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  display: none;
}
.typeahead.open { display: block; }
.typeahead a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 11px;
}
.typeahead a:last-child { border-bottom: 0; }
.typeahead a:hover { background: #3b5998; color: #fff; text-decoration: none; }
.typeahead img { width: 24px; height: 24px; }

/* notification jewels */
.fb-jewels { display: flex; gap: 1px; margin-left: 12px; position: relative; }
.jewel {
  position: relative;
  display: block;
  width: 30px; height: 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: center;
  color: #d8dfea;
  font: 13px/22px tahoma, sans-serif;
}
.jewel svg { vertical-align: -3px; }
.jewel:hover { background: #4f6aa3; border-color: #29447e; text-decoration: none; }
.jewel .count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 14px;
  padding: 0 3px;
  background: #f00;
  border: 1px solid #d40000;
  border-radius: 2px;
  color: #fff;
  font: bold 10px/13px tahoma, sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.jewel .count:empty, .jewel .count.zero { display: none; }

/* the jewel drop-down */
.flyout {
  position: absolute;
  top: 33px; left: -30px;
  width: 320px;
  background: #fff;
  border: 1px solid #b1b1b1;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .35);
  display: none;
  z-index: 500;
}
.flyout.open { display: block; }
.flyout::before {
  content: "";
  position: absolute;
  top: -6px; left: 44px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  filter: drop-shadow(0 -1px 0 #b1b1b1);
}
.flyout-head {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  background: #f2f2f2;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-weight: bold;
}
/* overscroll-behavior: cuộn chuột trong hộp không làm trang phía sau cuộn theo khi tới đầu/cuối hộp. */
.flyout-list { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
/* Hộp thư thấp hơn (khoảng 4 dòng) để luôn có phần cuộn và nhìn thấy dòng kế tiếp lấp ló. */
#msgList { max-height: 264px; }
.flyout-foot {
  padding: 5px 8px;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
  text-align: center;
  font-weight: bold;
}
.flyout-empty { padding: 16px 10px; color: #999; text-align: center; }
/* Ba biểu tượng cách nhau 31px: mũi tên của mỗi hộp thả trỏ vào giữa biểu tượng của nó. */
#msgFlyout::before { left: 70px; }
#notifFlyout::before { left: 101px; }

.msg-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 7px 8px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 11px;
  cursor: pointer;
}
.msg-row:last-child { border-bottom: 0; }
.msg-row:hover { background: #edf2fa; text-decoration: none; }
.msg-row.unread { background: #eceff5; }
.msg-row.unread:hover { background: #e2e8f2; }
.msg-row img { width: 32px; height: 32px; flex: none; object-fit: cover; }
.msg-row .what { flex: 1; min-width: 0; line-height: 1.35; }
.msg-row .what strong { color: #3b5998; }
.msg-row .say { color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.unread .say { color: #333; font-weight: bold; }
.msg-row .when { color: #999; margin-top: 1px; }
.msg-row .n {
  flex: none; align-self: center;
  min-width: 14px; padding: 0 3px;
  background: #f00; border-radius: 2px;
  color: #fff; font: bold 10px/14px tahoma, sans-serif; text-align: center;
}

.notif {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 7px 8px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 11px;
}
.notif:last-child { border-bottom: 0; }
.notif:hover { background: #edf2fa; text-decoration: none; }
.notif.unread { background: #eceff5; }
.notif.unread:hover { background: #e2e8f2; }
.notif img { width: 32px; height: 32px; flex: none; object-fit: cover; }
.notif .what { flex: 1; line-height: 1.35; }
.notif .what strong { color: #3b5998; }
.notif .when { color: #999; margin-top: 2px; }
.notif .kind { flex: none; font-size: 13px; opacity: .75; }

.fb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.bar-link {
  display: block;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
}
.bar-link:hover { background: #4f6aa3; border-color: #29447e; text-decoration: none; }
.bar-link img { width: 16px; height: 16px; margin-right: 4px; }
.bar-sep { width: 1px; height: 20px; background: #4f6aa3; margin: 0 3px; }
.bar-link .bl-short { display: none; }

/* --------------------------------------------------------------- layout */

.viewport { margin-right: 200px; }
.viewport.no-chat { margin-right: 0; }

.page {
  width: 1000px;
  margin: 0 auto;
  padding: 52px 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.page.narrow { width: 851px; display: block; }

.col-left  { width: 180px; flex: none; }
.col-main  { width: 500px; flex: none; }
.col-right { width: 300px; flex: none; }
.col-wide  { width: 810px; }

/* ---------------------------------------------------------------- boxes */

.box {
  background: #fff;
  border: 1px solid #b3b3b3;
  border-color: #ccc #b3b3b3 #999;
  border-radius: 3px;
  margin-bottom: 10px;
}
.box-head {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e5e5;
  background: #f2f2f2;
  font-weight: bold;
  color: #333;
  border-radius: 3px 3px 0 0;
}
.box-body { padding: 8px; }
.box-foot {
  padding: 5px 8px;
  border-top: 1px solid #e5e5e5;
  background: #f7f7f7;
  border-radius: 0 0 3px 3px;
}

h1, h2, h3 { margin: 0 0 6px; font-size: 13px; }
.grey { color: #999; }
.small { font-size: 11px; }
.mt8 { margin-top: 8px; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #999;
  border-bottom-color: #888;
  border-radius: 2px;
  background: #f6f7f8 linear-gradient(#f8f8f8, #ebebeb);
  color: #333;
  font-size: 11px;
  font-weight: bold;
  line-height: 16px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #f2f2f2 linear-gradient(#f2f2f2, #e2e2e2); text-decoration: none; }
.btn:active { background: #e9e9e9; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }

.btn-primary {
  border-color: #29447e #29447e #1a356e;
  background: #5b74a8 linear-gradient(#6d84b4, #5b74a8);
  color: #fff;
  box-shadow: inset 0 1px 1px #8a9cc2;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
}
.btn-primary:hover { background: #5872a7 linear-gradient(#6178ad, #4f6aa3); }
.btn-large { padding: 4px 12px; font-size: 13px; line-height: 18px; }

.btn[disabled] { opacity: .55; cursor: default; }

/* --------------------------------------------------------- form fields */

.field { margin-bottom: 8px; }
.field label { display: block; margin-bottom: 3px; font-weight: bold; color: #333; }
.inp {
  width: 100%;
  padding: 4px 5px;
  border: 1px solid #bdc7d8;
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
  color: #333;
}
.inp:focus { outline: none; border-color: #8a9cc2; box-shadow: 0 0 3px rgba(82, 168, 236, .4); }
textarea.inp { resize: vertical; min-height: 54px; }

.error-box {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #dd3c10;
  border-radius: 3px;
  background: #ffebe8;
  color: #333;
}
.flash {
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid #3b5998;
  border-radius: 3px;
  background: #d8dfea;
  color: #333;
}

/* -------------------------------------------------------- left nav rail */

.nav-title {
  padding: 4px 6px;
  color: #999;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 3px;
  color: #333;
  font-size: 12px;
  font-weight: bold;
}
.nav-item:hover { background: #dfe3ee; text-decoration: none; }
.nav-item.active { background: #dfe3ee; }
.nav-item .ico { width: 16px; text-align: center; font-size: 13px; }
.nav-item .badge {
  margin-left: auto;
  padding: 0 4px;
  background: #f00;
  border-radius: 2px;
  color: #fff;
  font: bold 10px/14px tahoma, sans-serif;
}
.nav-item img.avatar { width: 24px; height: 24px; }

/* ------------------------------------------------------------- composer */

.composer { padding: 0; }
.composer-tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  background: #f7f7f7;
  border-radius: 3px 3px 0 0;
}
.composer-tabs span {
  padding: 6px 10px;
  color: #666;
  font-weight: bold;
  border-right: 1px solid #e5e5e5;
}
.composer-tabs span.on { background: #fff; color: #333; }
.composer textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  color: #333;
  resize: vertical;
}
.composer textarea:focus { outline: none; }
.composer-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f7f7f7;
  border-radius: 0 0 3px 3px;
}
.composer-foot .grow { margin-left: auto; }
.file-pick { color: #666; }
.file-pick input { display: none; }
.privacy-pick { color: #666; }
.privacy-pick select { border: 1px solid #ccd0d5; border-radius: 2px; font-size: 11px; color: #444; padding: 2px 3px; margin-left: 2px; }

/* ---------------------------------------------------------------- story */

.story { padding: 10px 12px; scroll-margin-top: 54px; /* chừa thanh xanh cố định khi cuộn tới #story-N */ }
.story + .story { border-top: 1px solid #e5e5e5; }
.story-head { display: flex; gap: 8px; }
.story-head img.avatar { width: 40px; height: 40px; flex: none; }
.story-byline { flex: 1; min-width: 0; }
.story-actor { font-size: 13px; font-weight: bold; }
.story-meta { color: #999; font-size: 11px; margin-top: 2px; }
.story-arrow { color: #999; font-weight: normal; padding: 0 2px; }
.story-body { font-size: 13px; margin-top: 4px; word-wrap: break-word; }
.story-photo { display: block; margin-top: 6px; max-width: 100%; border: 1px solid #ddd; }
.story-x {
  color: #ccc;
  font-size: 14px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 2px;
}
.story-x:hover { color: #888; }

.story-actions { margin-top: 6px; color: #999; font-size: 11px; }
.story-actions a { color: #3b5998; }
.story-actions .dot { padding: 0 4px; color: #ccc; }

.like-line {
  margin-top: 6px;
  padding: 4px 6px;
  background: #f2f2f2;
  border-radius: 2px;
  font-size: 11px;
  color: #333;
}
.like-line:empty { display: none; }

.comments { margin-top: 6px; border-top: 1px solid #e5e5e5; }
.comment {
  display: flex;
  gap: 6px;
  padding: 6px 0 0;
}
.comment img.avatar { width: 32px; height: 32px; flex: none; }
.comment-body { font-size: 12px; word-wrap: break-word; }
.comment-meta { color: #999; font-size: 11px; margin-top: 2px; }
.comment-form { display: flex; gap: 6px; padding: 6px 0 0; }
.comment-form img.avatar { width: 32px; height: 32px; flex: none; }
.comment-form input {
  flex: 1;
  padding: 5px 6px;
  border: 1px solid #bdc7d8;
  border-radius: 2px;
  font-size: 12px;
}
.comment-form input:focus { outline: none; border-color: #8a9cc2; }

/* -------------------------------------------------------------- profile */

.cover {
  position: relative;
  height: 315px;
  /* Longhands so an inline background-image can replace just the placeholder. */
  background-color: #8b9dc3;
  background-image: linear-gradient(#a3b3d1, #5b74a8);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid #b3b3b3;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.cover .shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
}
.cover .profile-pic {
  position: absolute;
  left: 14px; bottom: -6px;
  width: 160px; height: 160px;
  background: #fff;
  padding: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.cover .profile-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .cover-name {
  position: absolute;
  left: 190px; bottom: 12px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.profile-bar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 8px 0 190px;
  background: #fff;
  border: 1px solid #b3b3b3;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  margin-bottom: 10px;
}
.profile-tabs { display: flex; gap: 2px; }
.profile-tabs span, .profile-tabs a.tab {
  padding: 4px 10px;
  color: #666;
  font-weight: bold;
  border-radius: 2px;
}
.profile-tabs a.tab:hover { background: #eceff5; text-decoration: none; }
.profile-tabs span.on { background: #eceff5; color: #333; }
.profile-actions { margin-left: auto; display: flex; gap: 5px; align-items: center; }

/* the tile strip between the cover and the timeline */
.tiles { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 2px; }
.tiles .tile-about { width: 351px; flex: none; }
.tiles .tile { width: 240px; flex: none; }
.tile-bio { font-size: 12px; margin-bottom: 8px; }
.tile-grid { display: flex; flex-wrap: wrap; gap: 3px; }
.tile-grid a {
  display: block;
  width: 71px; height: 71px;
  background: #eceff5;
  border: 1px solid #ddd;
  overflow: hidden;
}
.tile-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-grid a:hover { border-color: #3b5998; }

/* -------------------------------------------- the 2012 Timeline spine */

/* 851px canvas, with the rightmost 60px reserved as the year-navigator lane,
   so the spine is centred on the remaining 791px of story space. */
.timeline {
  position: relative;
  width: 851px;
  padding: 4px 60px 24px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 395px; top: 0; bottom: 0;
  width: 2px;
  background: #c3c8d2;
}

.tl-cap {
  position: relative;
  z-index: 2;
  width: 190px;
  margin: 0 auto 8px;
  padding: 5px 0;
  background: #fff;
  border: 1px solid #b3b3b3;
  border-radius: 3px;
  text-align: center;
  font-weight: bold;
  color: #333;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.tl-cap.bottom { margin-top: 10px; margin-bottom: 0; width: 240px; line-height: 1.5; }

/* month markers sit on the line */
.tl-divider {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 6px 0;
}
.tl-divider span {
  display: inline-block;
  padding: 3px 12px;
  background: #e9eaed;
  border: 1px solid #c3c8d2;
  border-radius: 3px;
  color: #666;
  font-weight: bold;
}

/* Two real columns either side of the spine. Each column stacks on its own, so
   a tall story on one side no longer leaves a blank band on the other. */
.tl-full { position: relative; z-index: 2; margin-bottom: 8px; }
.tl-month { display: flex; align-items: flex-start; gap: 51px; }
.tl-col { width: 370px; flex: none; }
/* The right column is offset half a story down. Without it, the first story in
   each column starts at the same height and their two arrows collide on a single
   dot — which is what made some junctions look different from the rest. */
.tl-col.right { margin-top: 26px; }
.tl-item { position: relative; margin-bottom: 6px; }
.tl-item .box { margin-bottom: 0; }

/* Connector, arrow and dot share one axis at y = 22px from the top of the box,
   level with the poster's name. Every junction is then identical. */
.tl-link {
  position: absolute;
  top: 21px;
  width: 26px; height: 2px;
  background: #c3c8d2;
  z-index: 2;
}
.tl-col.left .tl-link { right: -26px; }
.tl-col.right .tl-link { left: -26px; }

.tl-dot {
  position: absolute;
  top: 17.5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a3a9b5;
  z-index: 4;
}
.tl-col.left .tl-dot { right: -30px; }
.tl-col.right .tl-dot { left: -30px; }

/* The outer triangle is the box's border colour; a second one sits 1px inside
   it in white, so the arrow reads as an extension of the bordered box. */
.tl-nub {
  position: absolute;
  top: 14px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  z-index: 3;
}
.tl-col.left .tl-nub { right: -8px; border-left: 8px solid #b3b3b3; }
.tl-col.right .tl-nub { left: -8px; border-right: 8px solid #b3b3b3; }
.tl-nub::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.tl-col.left .tl-nub::before { left: -1px; border-left: 8px solid #fff; }
.tl-col.right .tl-nub::before { right: -1px; border-right: 8px solid #fff; }

/* year navigator hanging off the right edge */
.tl-years {
  position: absolute;
  top: 0; right: 0;
  width: 56px;
}
.tl-years-inner {
  position: sticky;
  top: 52px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 0;
  background: #dfe3ee;
  border: 1px solid #c3c8d2;
  border-radius: 3px;
  text-align: center;
}
.tl-years-inner .now,
.tl-years-inner a {
  display: block;
  padding: 3px 0;
  font-weight: bold;
  color: #3b5998;
}
.tl-years-inner .now { color: #666; border-bottom: 1px solid #c3c8d2; margin-bottom: 2px; }
.tl-years-inner a:hover { background: #fff; text-decoration: none; }

.info-row { display: flex; gap: 6px; padding: 4px 0; font-size: 12px; }
.info-row .k { width: 90px; flex: none; color: #999; }

.friend-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-grid .cell { width: 76px; text-align: center; font-size: 11px; }
.friend-grid .cell img { width: 76px; height: 76px; display: block; object-fit: cover; }
.friend-grid .cell a.nm { display: block; margin-top: 2px; }

/* --------------------------------------------------- friends / requests */

.person {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #e5e5e5;
}
.person:last-child { border-bottom: 0; }
.person img.avatar { width: 50px; height: 50px; flex: none; object-fit: cover; }
.person .who { flex: 1; min-width: 0; }
.person .nm { font-size: 13px; font-weight: bold; }
.person .acts { display: flex; gap: 5px; align-items: flex-start; }
.person form { display: inline; }
.person .friend-tag { align-self: center; margin-right: 2px; white-space: nowrap; }

/* ô tìm người ở Find Friends và ô lọc ở All Friends */
.find-form { display: flex; gap: 6px; padding: 10px 12px; align-items: center; }
.find-form .inp { flex: 1; min-width: 0; height: 26px; padding: 2px 6px; font-size: 13px; }

/* ---------------------------------------------------------- chat rail */

.chat-rail {
  position: fixed;
  top: 42px; right: 0; bottom: 0;
  width: 200px;
  background: #fff;
  border-left: 1px solid #b3b3b3;
  z-index: 300;
  display: flex;
  flex-direction: column;
}
.chat-rail-head {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e5e5;
  color: #999;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .4px;
}
.chat-rail-list { flex: 1; overflow-y: auto; }
.buddy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: #333;
  font-size: 12px;
  cursor: pointer;
}
.buddy:hover { background: #eceff5; text-decoration: none; }
.buddy img { width: 24px; height: 24px; flex: none; object-fit: cover; }
.buddy .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buddy .dot { width: 8px; height: 8px; border-radius: 50%; background: #8bc34a; flex: none; }
.buddy .n {
  padding: 0 4px;
  background: #f00;
  border-radius: 2px;
  color: #fff;
  font: bold 10px/14px tahoma, sans-serif;
}
.chat-rail-foot {
  padding: 5px 8px;
  border-top: 1px solid #e5e5e5;
  background: #f7f7f7;
  color: #666;
}

/* chat windows, docked bottom-right of the content area */
.chat-dock {
  position: fixed;
  right: 205px; bottom: 0;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  z-index: 350;
}
.chat-win {
  width: 240px;
  background: #fff;
  border: 1px solid #29447e;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
}
.chat-win-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: #6d84b4;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.chat-win-head .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-win-head .x { color: #d8dfea; padding: 0 2px; }
.chat-win-head .x:hover { color: #fff; text-decoration: none; }
.chat-log {
  height: 190px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  font-size: 12px;
}
.chat-win.min .chat-log, .chat-win.min .chat-input { display: none; }
.chat-msg { margin-bottom: 5px; word-wrap: break-word; }
.chat-msg .who { font-weight: bold; color: #3b5998; }
.chat-msg.mine .who { color: #666; }
.chat-msg .at { color: #ccc; font-size: 10px; margin-left: 4px; }
.chat-input { border-top: 1px solid #ccc; }
.chat-input input {
  width: 100%;
  padding: 6px;
  border: 0;
  font-size: 12px;
}
.chat-input input:focus { outline: none; }

/* ---------------------------------------------------------------- tags */

a.tagged { font-weight: bold; }

/* the "@" picker that hangs under a composer or comment box */
.tagbox {
  position: absolute;
  z-index: 320;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #b1b1b1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  display: none;
}
.tagbox.open { display: block; }
.tagbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 12px;
  cursor: pointer;
}
.tagbox-row:last-child { border-bottom: 0; }
.tagbox-row img { width: 24px; height: 24px; object-fit: cover; flex: none; }
.tagbox-row.on, .tagbox-row:hover { background: #3b5998; color: #fff; text-decoration: none; }

/* forms need to be the positioning context for the picker */
.js-taggable { position: relative; }
/* the comment row is a flex line, so pin the picker under the input explicitly */
.comment-form .tagbox { top: 100%; left: 38px; right: 0; }

.tag-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 8px; }
.tag-chips:empty { display: none; }
.tag-chips-label { color: #999; margin-right: 2px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px 1px 6px;
  background: #dfe3ee;
  border: 1px solid #b7c0d8;
  border-radius: 2px;
  color: #3b5998;
  font-weight: bold;
}
.tag-chip .x { color: #8a9cc2; font-weight: normal; }
.tag-chip .x:hover { color: #3b5998; text-decoration: none; }

.js-tag-hint { color: #999; }
.js-tag-hint strong { color: #3b5998; }

/* profile picture and cover photo stories */
.avatar-shot img {
  display: block;
  width: 180px; height: 180px;
  margin-top: 6px;
  object-fit: cover;
  background: #fff;
  padding: 3px;
  border: 1px solid #ccc;
}
.cover-shot img {
  display: block;
  width: 100%;
  max-height: 190px;
  margin-top: 6px;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* -------------------------------------------------------- announcements */

.announcement {
  border-color: #29447e #29447e #1a356e;
  box-shadow: 0 1px 3px rgba(41, 68, 126, .2);
}
.announcement > .box-head {
  background: #6d84b4 linear-gradient(#7b90bd, #5b74a8);
  border-bottom-color: #29447e;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
}
.announcement > .box-head .grey { color: #d8dfea; }
.announcement .ann-mark { margin-right: 3px; }
.announcement .story { background: #f5f7fb; }

.ann-row { border-bottom: 1px solid #e5e5e5; }
.ann-row:last-child { border-bottom: 0; }
.ann-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}
.ann-row-head .grow { margin-left: auto; }
.ann-pill {
  padding: 1px 6px;
  background: #dfe3ee;
  border: 1px solid #b7c0d8;
  border-radius: 2px;
  color: #3b5998;
  font-weight: bold;
}

/* ------------------------------------------------------- groups / pages */

/* A group's picture, or a lettered tile in its place. */
.gart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #6d84b4 linear-gradient(#8b9dc3, #5b74a8);
  border: 1px solid #29447e;
  color: #fff;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
  vertical-align: middle;
}
.gart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gart.big { width: 100%; height: 100%; font-size: 76px; border: 0; }

.group-cover { height: 200px; }
.group-pic { bottom: -6px; }

/* ------------------------------------------------------ albums / photos */

.story-verb { font-weight: normal; color: #333; }

.shot-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.shot-grid a {
  display: block;
  width: 96px; height: 96px;
  border: 1px solid #ddd;
  overflow: hidden;
  background: #eceff5;
}
.shot-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-grid a:hover { border-color: #3b5998; }
.shot-grid.wide a { width: 128px; height: 128px; }

/* Bài đăng kèm 2-5 ảnh: lưới lấp đầy bề rộng thân bài (khoảng 400px). */
.shot-grid.gallery a { width: calc(50% - 2px); height: 200px; }
.shot-grid.gallery.n3 a:first-child,
.shot-grid.gallery.n5 a:first-child { width: 100%; height: 240px; }
.shot-grid.gallery.n3 a:not(:first-child) { width: calc(50% - 2px); height: 160px; }
.shot-grid.gallery.n5 a:not(:first-child) { width: calc(25% - 3px); height: 100px; }
.shot-grid.gallery.n4 a { width: calc(50% - 2px); height: 140px; }
.shot-grid .more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3b5998;
  font-size: 18px;
  font-weight: bold;
  background: #eceff5;
}
.shot-grid .more span { font-size: 11px; font-weight: normal; color: #666; }
.shot-grid .more:hover { text-decoration: none; background: #dfe3ee; }

.album-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.album-cell {
  display: block;
  width: 178px;
  color: #333;
}
.album-cell:hover { text-decoration: none; }
.album-cell:hover .nm { text-decoration: underline; }
.album-cell .shot {
  display: block;
  width: 178px; height: 133px;
  background: #eceff5;
  border: 1px solid #ccc;
  padding: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  overflow: hidden;
}
.album-cell .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cell .blank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 28px;
  opacity: .35;
}
.album-cell .nm { display: block; margin-top: 5px; font-size: 12px; font-weight: bold; color: #3b5998; }

/* the black photo theatre */
body.theatre { background: #000; color: #ccc; }

.theatre-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  color: #ccc;
}
.theatre-bar a { color: #9cb0d7; }
.theatre-bar .grey { color: #777; }
.theatre-title { flex: 1; font-size: 12px; }
.theatre-close { font-size: 15px; }

.theatre-body { display: flex; align-items: stretch; min-height: calc(100vh - 40px); }

.stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
}
.stage img { max-width: 100%; max-height: calc(100vh - 100px); display: block; }
.stage-nav {
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .35);
  font-size: 46px;
  line-height: 1;
}
.stage-nav.prev { left: 0; justify-content: flex-start; padding-left: 14px; }
.stage-nav.next { right: 0; justify-content: flex-end; padding-right: 14px; }
.stage-nav:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); }

.theatre-side {
  width: 330px;
  flex: none;
  background: #fff;
  color: #333;
  border-left: 1px solid #333;
  padding: 12px;
  overflow-y: auto;
}
.theatre-side .side-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.theatre-side .side-head img.avatar { width: 40px; height: 40px; }
.side-caption { font-size: 13px; margin-bottom: 8px; }
.side-caption-form { display: flex; gap: 5px; margin-bottom: 10px; }
.side-caption-form .inp { font-size: 12px; }
.side-actions { border-top: 1px solid #e5e5e5; padding-top: 8px; }
.side-foot { margin-top: 12px; border-top: 1px solid #e5e5e5; padding-top: 8px; }

/* --------------------------------------------------------- poke banner */

.poke-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #e5e5e5;
}
.poke-card:last-child { border-bottom: 0; }
.poke-card img { width: 40px; height: 40px; object-fit: cover; }
.poke-card .who { flex: 1; font-size: 12px; }

/* -------------------------------------------------------- landing page */

.landing-bar {
  background: #3b5998;
  border-bottom: 1px solid #133783;
  /* room underneath for the "Forgot your password?" link, which is out of flow */
  padding: 8px 0 22px;
}
.landing-bar .inner {
  width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.landing-bar .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  /* sits level with the inputs rather than with the labels above them */
  padding-top: 15px;
}
.app-brand-icon-link { display: inline-flex; text-decoration: none; }
.app-brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.38));
  transition: transform .24s cubic-bezier(.2,.8,.2,1), filter .24s ease;
}
.app-brand-icon-link:hover .app-brand-icon,
.app-brand-icon-link:focus-visible .app-brand-icon {
  transform: translateY(-2px) scale(1.045);
  filter: drop-shadow(0 7px 15px rgba(0,0,0,.5)) brightness(1.1);
}
.landing-promise {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 13px 16px 14px;
  border-left: 3px solid rgba(255,255,255,.82);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.11), 0 9px 24px rgba(0,0,0,.18);
  color: #d4d8e0;
  line-height: 1.45;
}
.landing-promise strong {
  color: #f6f7f9;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: .01em;
}
.landing-promise span { font-size: 13px; }

/* Every column is label-over-control, so the controls line up on one baseline. */
.login-form { display: flex; align-items: flex-start; gap: 8px; }
.login-field { position: relative; display: flex; flex-direction: column; }
.landing-bar label,
.login-field .label-spacer {
  display: block;
  height: 13px;
  margin-bottom: 2px;
  color: #fff;
  font-size: 11px;
  line-height: 13px;
}
.landing-bar input {
  width: 152px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid #1d2a5b;
  border-radius: 2px;
}
.landing-bar .btn { height: 22px; line-height: 18px; }
/* Taken out of flow so it can't push the email column down. */
.landing-bar .forgot {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 3px;
  color: #9cb0d7;
  font-size: 10px;
  white-space: nowrap;
}

.landing-main {
  width: 980px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.landing-pitch { width: 540px; }
.landing-pitch h2 { font-size: 18px; color: #141823; margin-bottom: 14px; }
.landing-pitch ul { margin: 0; padding-left: 18px; font-size: 13px; color: #333; }
.landing-pitch li { margin-bottom: 8px; }
.landing-signup { width: 400px; }
.landing-signup h2 { font-size: 24px; color: #141823; margin-bottom: 2px; }
.landing-signup .sub { font-size: 13px; color: #333; margin-bottom: 12px; }
.two-up { display: flex; gap: 8px; }
.two-up > * { flex: 1; }
.radio-row { display: flex; gap: 14px; align-items: center; font-size: 12px; margin: 4px 0 10px; }
.radio-row label { font-weight: normal; display: flex; gap: 4px; align-items: center; }
.terms { color: #777; font-size: 11px; margin: 8px 0; line-height: 1.4; }

.footer {
  width: 980px;
  margin: 0 auto;
  padding: 14px 0 30px;
  border-top: 1px solid #ddd;
  color: #999;
  font-size: 11px;
}
.footer a { color: #999; margin-right: 10px; }

/* ========================================================================
   Responsive
   The 2012 look was fixed-width, so it is rebuilt in stages: first the chat
   rail goes, then the third column, then the Timeline's two-column spine,
   and finally everything stacks into one column for a phone.
   ======================================================================== */

/* --- under 1230px there is no room for the chat rail beside the page --- */
@media (max-width: 1229px) {
  .viewport { margin-right: 0; }
  .chat-rail { display: none; }
  .chat-dock { right: 8px; }
}

/* --- under 1040px the third column moves below instead of beside --- */
@media (max-width: 1039px) {
  .fb-bar-inner { width: auto; padding: 0 8px; }
  .page {
    width: auto;
    max-width: 1000px;
    flex-wrap: wrap;
    padding-left: 8px;
    padding-right: 8px;
  }
  .col-main, .col-wide { width: auto; flex: 1; min-width: 0; }
  /* full width on its own row, so friend requests and chat stay reachable */
  .col-right { width: 100%; order: 3; }
  .col-right:empty { display: none; }
}

/* --- under 900px the 851px Timeline canvas no longer fits --- */
@media (max-width: 899px) {
  /* The bar's links no longer fit on one line, so it stops being fixed and
     wraps into rows: brand + jewels, then search, then the account links. */
  .fb-bar { position: static; height: auto; }
  .fb-bar-inner { height: auto; flex-wrap: wrap; padding: 6px 8px; gap: 6px; }
  .fb-jewels { margin-left: auto; }
  .fb-search { order: 5; width: 100%; }
  .fb-search input { width: 100%; height: 26px; }
  .typeahead { width: 100%; }
  .fb-right { order: 6; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 2px; }
  .bar-sep { display: none; }
  .flyout { left: auto; right: 0; width: min(320px, calc(100vw - 16px)); }
  .flyout::before { left: auto; right: 42px; }

  .page, .page.narrow { padding-top: 10px; }
  .page.narrow { width: auto; max-width: 851px; }

  /* max-width matters: with a min-height set, aspect-ratio would otherwise
     widen the cover past the page on very narrow screens */
  .cover { height: auto; aspect-ratio: 851 / 315; min-height: 170px; max-width: 100%; }
  .cover .profile-pic { width: 120px; height: 120px; }
  .cover .cover-name { left: 148px; font-size: 22px; }
  .profile-bar { padding-left: 148px; }

  .tiles { flex-direction: column; }
  .tiles .tile-about, .tiles .tile { width: 100%; }
  .profile-cols { flex-direction: column; }
  .profile-cols .side, .profile-cols .main { width: 100%; }

  /* the spine and its two columns collapse into one plain column */
  .timeline { width: 100%; padding-right: 0; }
  .timeline::before { display: none; }
  .tl-years { display: none; }
  .tl-month { display: block; }
  .tl-col, .tl-col.right { width: 100%; margin-top: 0; }
  .tl-dot, .tl-nub, .tl-link { display: none; }
  .tl-cap { width: auto; max-width: 260px; }

  .landing-bar .inner, .landing-main, .footer { width: auto; padding-left: 12px; padding-right: 12px; }
  .landing-main { gap: 24px; }
  .landing-pitch { width: 55%; }
  .landing-signup { width: 45%; }
}

/* --- phone --- */
@media (max-width: 759px) {
  /* 16px keeps iOS from zooming in when a field is focused */
  input, textarea, select { font-size: 16px; }

  /* bigger taps on the bar the 899px rules already reflowed */
  .fb-logo { margin-right: 2px; }
  .fb-wordmark { font-size: 15px; margin-right: 0; }
  .fb-jewels { gap: 2px; }
  .jewel { width: 38px; height: 30px; font-size: 15px; line-height: 28px; }
  .fb-search input { height: 30px; }

  /* phone: rút ngắn chữ (tên riêng thay vì cả họ tên, "Friends" thay vì "Find
     Friends") để 5 mục luôn vừa đúng 1 hàng, không cần xuống dòng hay cuộn */
  .fb-right { flex-wrap: nowrap; }
  .bar-link { padding: 5px 6px; font-size: 11px; white-space: nowrap; flex: none; }
  .bar-link .bl-full { display: none; }
  .bar-link .bl-short { display: inline; }

  .page, .page.narrow {
    width: 100%;
    max-width: none;
    flex-direction: column;
    padding: 10px 8px 30px;
    gap: 8px;
  }
  .col-left, .col-main, .col-wide, .col-right { width: 100%; flex: none; }

  /* the left rail becomes a swipeable strip of chips above the content */
  .col-left {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .col-left .nav-title { display: none; }
  .col-left .nav-item {
    flex: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 9px;
  }
  .col-left .nav-item.active { background: #dfe3ee; border-color: #b7c0d8; }
  .col-left .nav-item .badge { margin-left: 4px; }

  /* readable body copy beats period-accurate 11px on a phone */
  .story-body, .composer textarea, .inp { font-size: 15px; }
  .comment-body, .chat-msg { font-size: 13px; }
  .story-actor, .person .nm { font-size: 14px; }
  .story-actions, .like-line, .grey, .small { font-size: 12px; }

  /* touch targets */
  .btn { padding: 6px 12px; line-height: 18px; }
  .btn-large { padding: 8px 16px; }
  .nav-item { padding: 8px 6px; }
  .story-actions a { padding: 2px 0; }

  .cover { min-height: 130px; }
  /* the picture stays inside the cover so it can't collide with the tab bar */
  .cover .profile-pic { width: 72px; height: 72px; padding: 2px; left: 8px; bottom: 8px; }
  .cover .cover-name { left: 92px; bottom: 10px; font-size: 17px; }
  .profile-bar {
    height: auto;
    flex-wrap: wrap;
    row-gap: 5px;
    padding: 6px 8px;
  }
  .profile-tabs { flex-wrap: wrap; }
  .profile-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .gart.big { font-size: 40px; }

  .two-up { flex-direction: column; gap: 0; }
  .person { flex-wrap: wrap; }
  .person .acts { width: 100%; }
  .friend-grid .cell { width: 72px; }
  .friend-grid .cell img { width: 72px; height: 72px; }
  .shot-grid a, .shot-grid.wide a { width: 30vw; height: 30vw; max-width: 128px; max-height: 128px; }
  .shot-grid.gallery a, .shot-grid.gallery.n3 a:not(:first-child), .shot-grid.gallery.n4 a { max-width: none; max-height: none; width: calc(50% - 2px); height: 44vw; }
  .shot-grid.gallery.n3 a:first-child, .shot-grid.gallery.n5 a:first-child { width: 100%; max-width: none; height: 56vw; }
  .shot-grid.gallery.n5 a:not(:first-child) { max-width: none; max-height: none; width: calc(25% - 3px); height: 22vw; }
  .album-cell { width: 100%; }
  .album-cell .shot { width: 100%; height: 40vw; }
  .tile-grid a { width: 30vw; height: 30vw; max-width: 96px; max-height: 96px; }

  /* photo theatre: image on top, its details below */
  .theatre-body { flex-direction: column; }
  .stage { flex: none; padding: 12px; }
  .stage img { max-height: 55vh; }
  .stage-nav { width: 56px; font-size: 34px; }
  /* the details panel takes the rest of the screen so no page gap shows through */
  .theatre-side { width: 100%; flex: 1; border-left: 0; border-top: 1px solid #333; }

  /* Chat trên điện thoại: mở toàn màn hình thay vì khung nhỏ góc dưới — khung
     nhỏ định chiều cao bằng vh (40vh) + position:fixed đáy màn hình vỡ bố cục
     rất nặng khi bàn phím ảo bật lên (Safari/Chrome di động không co lại các
     phần tử fixed/vh theo đúng vùng nhìn thực khi có bàn phím, nên phần đầu
     cửa sổ chat bị đẩy khuất, để lại một mảng trắng trống trơn). Toàn màn
     hình + flexbox (log flex:1, input nằm tự nhiên trong luồng, không phải
     vh) để trình duyệt tự tính lại đúng không gian còn lại khi bàn phím mở. */
  /* .chat-dock luôn có mặt trên mọi trang (kể cả khi chưa mở chat nào) —
     tuyệt đối không được đặt inset/top ở đây, nếu không nó co giãn thành một
     lớp phủ toàn màn hình vô hình, chặn hết thao tác chạm dù rỗng. Chỉ co
     giãn toàn màn hình ở .chat-win, thứ chỉ tồn tại khi thật sự có cửa sổ
     chat đang mở. */
  .chat-dock { right: 0; left: 0; bottom: 0; padding-bottom: 0; }
  .chat-win {
    position: fixed;
    top: var(--vvt, 0px);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--vvh, 100dvh);
    border-radius: 0;
  }
  /* trang nền không được cuộn theo khi đang chat, nếu không khung chat trôi theo */
  body.chat-open { overflow: hidden; }
  .chat-log { flex: 1; height: auto; min-height: 0; }
  .chat-win-head { flex: none; padding: 10px; font-size: 14px; }
  .chat-win-head .x { padding: 0 8px; font-size: 18px; }
  .chat-input { flex: none; padding-bottom: env(safe-area-inset-bottom); }
  /* dưới 16px thì iOS tự phóng to trang khi chạm vào ô nhập */
  .chat-input input { font-size: 16px; padding: 10px; }
  /* Thu nhỏ trên điện thoại: đóng hẳn khung chat thay vì để lại thanh tiêu đề
     phủ kín màn hình (phần tử position:fixed + inset:0 không tự co theo nội
     dung con bị ẩn). */
  .chat-win.min { display: none; }

  .landing-bar { padding-bottom: 26px; }
  .landing-bar .inner { flex-wrap: wrap; row-gap: 10px; }
  .landing-bar .brand { padding-top: 0; width: 100%; margin-right: 0; }
  .login-form { width: 100%; flex-wrap: wrap; row-gap: 8px; }
  .login-field { flex: 1; min-width: 130px; }
  .landing-bar input { width: 100%; height: 30px; }
  .landing-bar .btn { height: 30px; line-height: 20px; }

  .landing-main { flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
  .landing-pitch, .landing-signup { width: 100%; }
  .landing-pitch h2 { font-size: 16px; }
  .landing-signup h2 { font-size: 21px; }
  .footer { padding-bottom: 24px; }
}

/* Liquid Glass overrides must remain last: legacy rules above intentionally
   preserve layout, while this layer owns the visual language. */
html { min-height: 100%; background: #dce9ff; }
body {
  min-height: 100%; color: var(--glass-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px;
  background: radial-gradient(circle at 7% 2%, rgba(255,255,255,.95) 0, transparent 28rem), radial-gradient(circle at 91% 17%, rgba(155,195,255,.68) 0, transparent 26rem), radial-gradient(circle at 56% 79%, rgba(207,187,255,.46) 0, transparent 31rem), linear-gradient(135deg, #e8f2ff 0%, #d8e7ff 46%, #e6dcff 100%); background-attachment: fixed;
}
a { color: #2866d9; } a:hover { color: #174da9; text-decoration: none; }
.fb-bar { height: 58px; background: linear-gradient(120deg, rgba(27,48,100,.88), rgba(50,89,178,.78) 56%, rgba(105,79,181,.78)); border-bottom-color: rgba(255,255,255,.4); box-shadow: 0 8px 28px rgba(27,50,107,.2), inset 0 -1px rgba(255,255,255,.16); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.fb-bar-inner { height: 58px; gap: 8px; }
.fb-logo { width: 30px; height: 30px; margin-right: 1px; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#93c9ff,#5b66f4 63%,#8c59e9); font: 700 25px/30px Georgia,serif; box-shadow: 0 5px 15px rgba(5,17,72,.3), inset 0 1px rgba(255,255,255,.5); }
.fb-wordmark,.fb-me { font-size: 16px; letter-spacing: -.5px; }
.fb-search input { width: 250px; height: 30px; padding: 0 11px; border-color: rgba(255,255,255,.38); border-radius: 10px; color: #1d2a42; background: rgba(255,255,255,.82); box-shadow: inset 0 1px 1px rgba(28,46,94,.08),0 2px 8px rgba(3,16,55,.12); }
.fb-search input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(166,211,255,.25); }.jewel { width: 32px; height: 30px; border-radius: 9px; line-height: 29px; color: rgba(255,255,255,.86); }.jewel:hover,.bar-link:hover { border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.16); }.jewel .count,.nav-item .badge { border: 0; border-radius: 999px; background: linear-gradient(135deg,#ff5b6a,#e12764); box-shadow: 0 2px 7px rgba(157,13,57,.35); }.bar-link { padding: 6px 8px; border-radius: 9px; font-weight: 600; }.bar-sep { background: rgba(255,255,255,.2); }
.page,.page.narrow { padding-top: 76px; }.page { gap: 14px; }.col-left { padding: 8px; border: 1px solid var(--glass-line); border-radius: 17px; background: rgba(255,255,255,.3); box-shadow: 0 10px 30px rgba(55,82,138,.06); backdrop-filter: blur(16px); }.nav-title { padding: 11px 8px 5px; color: #6e7d97; font-size: 10px; letter-spacing: .75px; }.nav-item { margin: 2px 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; color: #31415e; font-weight: 600; transition: .18s ease; }.nav-item:hover { transform: translateX(2px); border-color: rgba(255,255,255,.66); background: rgba(255,255,255,.5); }.nav-item.active { color: #195bd1; background: linear-gradient(110deg,rgba(207,229,255,.86),rgba(234,224,255,.7)); border-color: rgba(255,255,255,.76); box-shadow: 0 4px 12px rgba(67,114,190,.11); }
.box,.tl-cap,.profile-bar { border: 1px solid var(--glass-line); border-radius: 17px; background: var(--glass-surface); box-shadow: var(--glass-shadow); overflow: hidden; backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%); }.box { margin-bottom: 14px; }.box-head { padding: 10px 13px; border-bottom-color: rgba(112,134,176,.14); color: #243653; background: linear-gradient(115deg,rgba(255,255,255,.68),rgba(236,243,255,.32)); font-weight: 700; }.box-body { padding: 12px; }.box-foot { border-top-color: rgba(112,134,176,.14); background: rgba(255,255,255,.32); }.story { padding: 13px 14px; }.story + .story { border-top-color: rgba(112,134,176,.14); }.story-actor,.person .nm { color: #234a91; }.story-meta,.grey,.comment-meta { color: var(--glass-muted); }.story-photo { border-color: rgba(255,255,255,.72); border-radius: 12px; box-shadow: 0 8px 22px rgba(45,67,111,.12); }.like-line { border: 1px solid rgba(255,255,255,.48); border-radius: 9px; background: rgba(237,244,255,.52); }.comments { border-top-color: rgba(112,134,176,.12); }
.composer { background: rgba(255,255,255,.64); }.composer-tabs,.composer-foot { background: rgba(244,248,255,.46); border-color: rgba(112,134,176,.14); }.composer-tabs span { padding: 10px 12px; border-color: rgba(112,134,176,.13); color: #64718a; }.composer-tabs span.on { color: #2763cf; background: rgba(255,255,255,.68); }.composer textarea { padding: 12px; border-bottom-color: rgba(112,134,176,.12); background: rgba(255,255,255,.3); color: var(--glass-ink); }.composer-foot { padding: 8px 10px; }
.btn { padding: 4px 10px; border: 1px solid rgba(78,107,159,.25); border-radius: 9px; color: #34445f; background: rgba(255,255,255,.68); box-shadow: 0 3px 8px rgba(48,73,124,.1),inset 0 1px rgba(255,255,255,.7); transition: transform .16s ease,box-shadow .16s ease; }.btn:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); box-shadow: 0 7px 15px rgba(48,73,124,.15); }.btn-primary { border-color: rgba(255,255,255,.42); background: linear-gradient(135deg,#3b86fa,#5a63e9 68%,#8055e4); box-shadow: 0 6px 16px rgba(58,91,220,.28),inset 0 1px rgba(255,255,255,.34); text-shadow: none; }.btn-primary:hover { background: linear-gradient(135deg,#4b91ff,#675ff2 68%,#8d59ea); }.inp,.comment-form input,.privacy-pick select { border-color: rgba(93,122,176,.24); border-radius: 9px; background: rgba(255,255,255,.68); color: var(--glass-ink); }.inp:focus,.comment-form input:focus { border-color: rgba(63,126,244,.7); box-shadow: 0 0 0 3px rgba(76,143,255,.15); }.flash { border-color: rgba(63,126,244,.28); border-radius: 12px; background: rgba(218,235,255,.68); color: #244982; }.error-box { border-color: rgba(237,89,100,.42); border-radius: 12px; background: rgba(255,230,232,.73); }
.announcement > .box-head { background: linear-gradient(115deg,rgba(66,122,235,.82),rgba(120,88,227,.82)); color: #fff; }.announcement .story { background: rgba(250,252,255,.38); }.flyout,.typeahead { border-color: var(--glass-line); border-radius: 14px; background: rgba(250,252,255,.87); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px); }.flyout-head,.flyout-foot { background: rgba(238,245,255,.62); border-color: rgba(112,134,176,.14); }.msg-row,.notif { border-color: rgba(112,134,176,.11); }.msg-row:hover,.notif:hover,.msg-row.unread:hover,.notif.unread:hover { background: rgba(210,229,255,.58); }.msg-row.unread,.notif.unread { background: rgba(224,236,255,.56); }
.chat-rail,.chat-win { border-color: rgba(255,255,255,.44); background: rgba(248,251,255,.74); box-shadow: -9px 0 30px rgba(36,58,110,.13); backdrop-filter: blur(18px); }.chat-rail-head,.chat-win-head { background: linear-gradient(110deg,rgba(47,103,211,.84),rgba(108,79,201,.84)); }.chat-row:hover { background: rgba(211,229,255,.56); }.cover { border-color: var(--glass-line); border-radius: 18px 18px 0 0; box-shadow: var(--glass-shadow); }.profile-bar { border-top-color: rgba(255,255,255,.58); border-radius: 0 0 17px 17px; }.profile-tabs a.tab:hover,.profile-tabs span.on { background: rgba(218,232,255,.7); border-radius: 9px; }.landing-bar { background: linear-gradient(120deg,rgba(27,48,100,.92),rgba(74,84,180,.88)); box-shadow: 0 8px 26px rgba(30,48,97,.2); }.landing-main { padding-top: 62px; }.landing-signup { padding: 22px; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass-surface); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px); }.footer { border-color: rgba(255,255,255,.55); color: #65728a; }
@media (max-width: 899px) { .page,.page.narrow { padding-top: 18px; }.fb-bar,.fb-bar-inner { min-height: 58px; height: auto; } }
@media (max-width: 759px) { .page,.page.narrow { padding-top: 14px; }.col-left { width: 100%; padding: 5px; border-radius: 14px; }.col-left .nav-item { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.45); border-radius: 9px; }.col-left .nav-item.active { background: linear-gradient(110deg,rgba(207,229,255,.92),rgba(234,224,255,.82)); }.box { border-radius: 14px; } }

/* Monochrome smoked-glass colourway */
:root { --glass-ink: #f5f6f8; --glass-muted: #a8adb8; --glass-blue: #e8eaee; --glass-violet: #afb4be; --glass-line: rgba(255,255,255,.18); --glass-surface: rgba(28,30,34,.62); --glass-surface-strong: rgba(40,42,47,.78); --glass-shadow: 0 22px 54px rgba(0,0,0,.38), 0 3px 13px rgba(0,0,0,.22); }
html { background: #101113; }
body { color: var(--glass-ink); background: radial-gradient(circle at 8% 0%, rgba(112,118,130,.27) 0, transparent 27rem), radial-gradient(circle at 92% 12%, rgba(255,255,255,.09) 0, transparent 25rem), radial-gradient(circle at 50% 100%, rgba(82,86,96,.22) 0, transparent 34rem), linear-gradient(135deg,#101113 0%,#181a1e 48%,#0d0e10 100%); }
body::before { background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); }
a,.story-actor,.person .nm { color: #f1f3f5; } a:hover { color: #fff; }
.fb-bar { background: linear-gradient(120deg,rgba(12,13,15,.94),rgba(37,39,44,.86) 55%,rgba(17,18,21,.9)); border-bottom-color: rgba(255,255,255,.16); box-shadow: 0 8px 30px rgba(0,0,0,.4),inset 0 -1px rgba(255,255,255,.08); }
.fb-logo { color: #17181b; background: linear-gradient(145deg,#fff,#afb3bb 64%,#737780); box-shadow: 0 5px 15px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.75); }
.fb-search input { color: #f7f8fa; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); box-shadow: inset 0 1px rgba(255,255,255,.07),0 2px 8px rgba(0,0,0,.2); }.fb-search input::placeholder { color: #b9bdc6; }.fb-search input:focus { border-color: rgba(255,255,255,.64); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }.jewel:hover,.bar-link:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); }.jewel .count,.nav-item .badge { color: #17181b; background: linear-gradient(135deg,#fff,#a6abb4); box-shadow: 0 2px 8px rgba(0,0,0,.32); }
.col-left { border-color: var(--glass-line); background: rgba(31,33,37,.43); box-shadow: 0 10px 30px rgba(0,0,0,.13); }.nav-title { color: #969ca8; }.nav-item { color: #d5d8df; }.nav-item:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.09); }.nav-item.active { color: #fff; background: linear-gradient(110deg,rgba(255,255,255,.18),rgba(157,162,173,.12)); border-color: rgba(255,255,255,.2); box-shadow: 0 4px 13px rgba(0,0,0,.17); }
.box,.tl-cap,.profile-bar { border-color: var(--glass-line); background: var(--glass-surface); box-shadow: var(--glass-shadow); }.box-head { color: #f1f3f5; border-bottom-color: rgba(255,255,255,.11); background: linear-gradient(115deg,rgba(255,255,255,.12),rgba(255,255,255,.035)); }.box-foot { border-top-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }.story + .story,.comments { border-color: rgba(255,255,255,.1); }.story-meta,.grey,.comment-meta { color: var(--glass-muted); }.story-photo { border-color: rgba(255,255,255,.18); box-shadow: 0 8px 23px rgba(0,0,0,.32); }.like-line { color: #e1e4e9; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.075); }
.composer { background: rgba(29,31,35,.68); }.composer-tabs,.composer-foot { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }.composer-tabs span { color: #adb2bd; border-color: rgba(255,255,255,.09); }.composer-tabs span.on { color: #fff; background: rgba(255,255,255,.11); }.composer textarea { color: #f5f6f8; border-bottom-color: rgba(255,255,255,.1); background: rgba(0,0,0,.07); }.composer textarea::placeholder { color: #a7acb5; }
.btn { color: #ecedf0; border-color: rgba(255,255,255,.19); background: rgba(255,255,255,.09); box-shadow: 0 3px 8px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.1); }.btn:hover { color: #fff; background: rgba(255,255,255,.16); box-shadow: 0 7px 15px rgba(0,0,0,.3); }.btn-primary { color: #16171a; border-color: rgba(255,255,255,.55); background: linear-gradient(135deg,#fff,#b8bdc5 68%,#90959e); box-shadow: 0 6px 16px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.78); }.btn-primary:hover { background: linear-gradient(135deg,#fff,#d1d4d9 68%,#a9aeb6); }.inp,.comment-form input,.privacy-pick select { color: #f5f6f8; border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.14); }.inp:focus,.comment-form input:focus { border-color: rgba(255,255,255,.62); box-shadow: 0 0 0 3px rgba(255,255,255,.09); }.flash { color: #e8eaee; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }.error-box { color: #ffe8e8; border-color: rgba(255,139,139,.45); background: rgba(133,33,33,.35); }
.announcement > .box-head { color: #17181b; background: linear-gradient(115deg,rgba(255,255,255,.92),rgba(165,170,179,.82)); }.announcement .story { background: rgba(0,0,0,.05); }.flyout,.typeahead { color: #eef0f4; border-color: var(--glass-line); background: rgba(28,30,34,.92); box-shadow: var(--glass-shadow); }.flyout::before { border-bottom-color: rgba(28,30,34,.92); }.flyout-head,.flyout-foot { color: #f3f4f6; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }.msg-row,.notif { color: #e5e7eb; border-color: rgba(255,255,255,.08); }.msg-row:hover,.notif:hover,.msg-row.unread:hover,.notif.unread:hover { background: rgba(255,255,255,.11); }.msg-row.unread,.notif.unread { background: rgba(255,255,255,.07); }
.chat-rail,.chat-win { color: #e8eaee; border-color: rgba(255,255,255,.14); background: rgba(25,27,31,.84); box-shadow: -9px 0 30px rgba(0,0,0,.33); }.chat-rail-head,.chat-win-head { background: linear-gradient(110deg,rgba(35,37,42,.96),rgba(75,78,86,.86)); }.chat-row:hover { background: rgba(255,255,255,.09); }.cover { border-color: rgba(255,255,255,.2); box-shadow: var(--glass-shadow); }.profile-tabs a.tab:hover,.profile-tabs span.on { color: #fff; background: rgba(255,255,255,.11); }.landing-bar { background: linear-gradient(120deg,rgba(12,13,15,.95),rgba(48,50,56,.9)); box-shadow: 0 8px 26px rgba(0,0,0,.35); }.landing-signup { background: var(--glass-surface); }.footer { border-color: rgba(255,255,255,.15); color: #a8adb8; }
@media (max-width: 759px) { .col-left .nav-item { color: #e5e7eb; border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.075); }.col-left .nav-item.active { color: #fff; background: linear-gradient(110deg,rgba(255,255,255,.18),rgba(157,162,173,.12)); } }

/* Soft-detail pass: rounded iconography, portrait rings and gentler imagery. */
img.avatar,
.story-head img.avatar,
.comment img.avatar,
.comment-form img.avatar,
.person img.avatar,
.msg-row img,
.notif img,
.chat-row img,
.fb-me img {
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,.52);
  box-shadow: 0 4px 12px rgba(0,0,0,.3), inset 0 0 0 1px rgba(0,0,0,.18);
}
.fb-me img { border-width: 1px; }
.cover .profile-pic {
  overflow: hidden; padding: 4px; border: 1px solid rgba(255,255,255,.58); border-radius: 50%;
  background: rgba(28,30,34,.78); box-shadow: 0 12px 26px rgba(0,0,0,.46), 0 0 0 5px rgba(255,255,255,.07);
}
.cover .profile-pic img { border-radius: 50%; }
.nav-item .ico {
  display: inline-grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 2px 5px rgba(0,0,0,.14);
}
.nav-item:hover .ico,.nav-item.active .ico { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.24); }
.jewel { border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px rgba(255,255,255,.07); }
.jewel:hover { box-shadow: inset 0 1px rgba(255,255,255,.16), 0 4px 10px rgba(0,0,0,.16); }
.grouptile, .group-tile, .group-icon { border-radius: 9px !important; overflow: hidden; box-shadow: inset 0 1px rgba(255,255,255,.2), 0 3px 7px rgba(0,0,0,.2); }
.tile-grid a,.friend-grid .cell img,.shot-grid a,.album-cell .shot { border-radius: 12px; overflow: hidden; border-color: rgba(255,255,255,.18); box-shadow: 0 5px 13px rgba(0,0,0,.22); }
.tile-grid a:hover,.shot-grid a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.52); box-shadow: 0 10px 20px rgba(0,0,0,.3); }
.story-photo { border-radius: 16px; }
.story-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #b8bdc7; background: rgba(255,255,255,.06); }
.story-x:hover { color: #fff; background: rgba(255,255,255,.16); }
.btn { min-height: 28px; border-radius: 12px; }
.btn-primary { border-radius: 12px; }
.composer-tabs span:first-child { border-radius: 15px 0 0 0; }
.composer-tabs span:last-child { border-radius: 0 15px 0 0; }
.comment-form input,.inp { border-radius: 12px; }
.privacy-pick select { border-radius: 10px; }
.count,.nav-item .badge { outline: 2px solid rgba(23,24,27,.52); }
@media (max-width: 759px) {
  .nav-item .ico { width: 25px; height: 25px; flex-basis: 25px; border-radius: 9px; }
  .cover .profile-pic { border-width: 2px; }
}

/* Contrast audit: legacy components that use their own foreground colors. */
.buddy { color: #e9ebef; border-color: rgba(255,255,255,.09); }
.buddy .nm { color: #edf0f4; font-weight: 600; }
.buddy .dot { box-shadow: 0 0 0 3px rgba(139,195,74,.11), 0 0 10px rgba(139,195,74,.32); }
.buddy .n { color: #17181b; background: #f4f5f6; border-radius: 999px; }
.chat-rail-foot { color: #aeb4be; border-top-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
.chat-log { color: #e7e9ed; background: rgba(16,17,20,.74); }
.chat-msg .who,.chat-msg.mine .who { color: #f6f7f8; }.chat-msg .at { color: #969ca7; }.chat-input { border-top-color: rgba(255,255,255,.1); }.chat-input input { color: #f1f3f5; background: rgba(0,0,0,.16); }.chat-input input::placeholder { color: #9096a1; }

.timeline::before,.tl-link { background: linear-gradient(#8e949e,#d7dbe1,#8e949e); opacity: .65; }
.tl-dot { background: #e9ebef; border-color: #767d88; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.tl-col.left .tl-nub { border-left-color: rgba(255,255,255,.18); }.tl-col.right .tl-nub { border-right-color: rgba(255,255,255,.18); }
.tl-col.left .tl-nub::before { border-left-color: #24262b; }.tl-col.right .tl-nub::before { border-right-color: #24262b; }
.tl-cap { color: #f4f5f6; background: rgba(31,33,38,.76); }.tl-divider span { color: #d9dde4; border-color: rgba(255,255,255,.18); background: rgba(28,30,35,.72); }
.tl-years-inner { border-color: rgba(255,255,255,.2); background: rgba(31,33,38,.84); box-shadow: 0 8px 20px rgba(0,0,0,.26); }.tl-years-inner .now,.tl-years-inner a { color: #edf0f4; }.tl-years-inner .now { border-bottom-color: rgba(255,255,255,.13); }.tl-years-inner a:hover { color: #fff; background: rgba(255,255,255,.12); }

.info-row .k,.file-pick,.privacy-pick,.tag-chips-label,.js-tag-hint { color: #aeb4be; }.story-arrow,.story-actions { color: #aeb4be; }.story-actions a,.js-tag-hint strong,.album-cell .nm { color: #f1f3f5; }
.story-verb,.album-cell .meta,.photo-meta { color: #c5cad3; }.avatar-shot img,.cover-shot img { border-color: rgba(255,255,255,.22); border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: 0 8px 18px rgba(0,0,0,.26); }
.tagbox { color: #eff1f4; border-color: rgba(255,255,255,.2); border-radius: 14px; background: rgba(28,30,35,.96); box-shadow: var(--glass-shadow); overflow: hidden; }.tagbox-row { color: #e9ebef; border-color: rgba(255,255,255,.09); }.tagbox-row.on,.tagbox-row:hover { background: rgba(255,255,255,.15); color: #fff; }.tagbox-row img { border-radius: 50%; }.tag-chip { color: #f0f2f5; border-color: rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); }.tag-chip .x { color: #c8cdd5; }
.ann-row { border-color: rgba(255,255,255,.1); }.ann-row-head { color: #eff1f4; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); }.ann-pill { color: #e9ebef; border-color: rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); }
.gart { border-color: rgba(255,255,255,.18); border-radius: 11px; background: linear-gradient(145deg,#9299a4,#4a4f58); box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.22); }
.shot-grid .more,.album-cell { color: #e9ebef; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }.shot-grid .more span { color: #aeb4be; }.shot-grid .more:hover { background: rgba(255,255,255,.13); }
.theatre-side,.theatre-bar { color: #e9ebef; background: #151619; }.theatre-bar .grey { color: #aeb4be; }
.landing-main,.landing-pitch h2,.landing-pitch ul,.landing-signup h2,.landing-signup .sub { color: #f0f2f5; }.terms,.footer a { color: #aeb4be; }

/* Message and notification flyouts: explicit foregrounds beat legacy blue/grey. */
.flyout { color: #eef0f3; }
.flyout-head { color: #fff; font-size: 13px; }
.flyout-foot a { color: #fff; }
.flyout-empty { color: #c4c9d1; }
.msg-row .what strong,.notif .what strong { color: #f6f7f9; font-weight: 700; }
.msg-row .say,.notif .say { color: #c5cad2; }
.msg-row.unread .say { color: #eef0f4; }
.msg-row .when,.notif .when { color: #9da4af; }
.msg-row .n { color: #151619; border: 0; border-radius: 999px; background: #f5f6f8; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.notif .kind { filter: grayscale(1) brightness(1.45); }

/* Settings preview and native file controls were inline / browser-default. */
.col-right .box .box-body > img[style*="width:160px"] {
  display: block; margin: 4px auto 10px; padding: 4px !important;
  border: 2px solid rgba(255,255,255,.64) !important; border-radius: 50%;
  background: rgba(26,28,32,.8) !important; box-shadow: 0 12px 27px rgba(0,0,0,.43), 0 0 0 5px rgba(255,255,255,.07);
}
input[type="file"] { color: #bfc5cf; }
input[type="file"]::file-selector-button {
  margin-right: 8px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  color: #eceff3; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.12); cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: rgba(255,255,255,.18); }

/* Avatar language: softly rounded squares, never circular. */
img.avatar,
.story-head img.avatar,
.comment img.avatar,
.comment-form img.avatar,
.person img.avatar,
.msg-row img,
.notif img,
.chat-row img,
.fb-me img,
.tagbox-row img { border-radius: 12px !important; }
.fb-me img { border-radius: 8px !important; }
.cover .profile-pic { border-radius: 24px; }
.cover .profile-pic img { border-radius: 19px; }
.col-right .box .box-body > img[style*="width:160px"] { border-radius: 24px; }
@media (max-width: 759px) {
  img.avatar,.story-head img.avatar,.comment img.avatar,.comment-form img.avatar,.person img.avatar,.msg-row img,.notif img,.chat-row img { border-radius: 10px !important; }
  .cover .profile-pic { border-radius: 18px; }.cover .profile-pic img { border-radius: 14px; }
}

/* Motion system: slow, spring-like transitions instead of abrupt hover states. */
:root { --soft-ease: cubic-bezier(.22, 1, .36, 1); }
.person,.buddy,.msg-row,.notif,.nav-item,.tile-grid a,.friend-grid .cell,.shot-grid a,.album-cell,.group-tile,
.story-photo,.avatar-shot img,.cover-shot img,.gart,.box,.cover .profile-pic,.col-right .box .box-body > img[style*="width:160px"] {
  transition: transform .38s var(--soft-ease), box-shadow .38s var(--soft-ease), background-color .32s ease, border-color .32s ease, filter .38s ease;
}
.person,.buddy,.msg-row,.notif { position: relative; }
.person:hover,.buddy:hover { transform: translateX(4px); background: rgba(255,255,255,.075); }
.person:hover img.avatar,.buddy:hover img.avatar { transform: scale(1.07); box-shadow: 0 8px 18px rgba(0,0,0,.38), 0 0 0 3px rgba(255,255,255,.1); }
img.avatar,.story-head img.avatar,.comment img.avatar,.comment-form img.avatar,.person img.avatar,.msg-row img,.notif img,.chat-row img,.fb-me img {
  transition: transform .38s var(--soft-ease), box-shadow .38s var(--soft-ease), filter .38s ease;
}
.msg-row:hover,.notif:hover { transform: translateY(-1px) scale(1.012); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.msg-row:hover img,.notif:hover img { transform: scale(1.08); filter: brightness(1.08); }
.tile-grid a:hover,.friend-grid .cell:hover,.shot-grid a:hover,.album-cell:hover { transform: translateY(-5px) scale(1.025); box-shadow: 0 15px 26px rgba(0,0,0,.34); filter: brightness(1.08); }
.tile-grid a img,.friend-grid .cell img,.shot-grid a img,.album-cell .shot img { transition: transform .55s var(--soft-ease), filter .42s ease; }
.tile-grid a:hover img,.friend-grid .cell:hover img,.shot-grid a:hover img,.album-cell:hover .shot img { transform: scale(1.075); filter: saturate(.82) brightness(1.1); }
.story-photo:hover,.avatar-shot img:hover,.cover-shot img:hover { transform: translateY(-3px) scale(1.008); box-shadow: 0 16px 30px rgba(0,0,0,.38); filter: brightness(1.07); }
.gart:hover { transform: translateY(-2px) rotate(-1.5deg) scale(1.06); box-shadow: 0 9px 18px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.27); }
.cover .profile-pic:hover,.col-right .box .box-body > img[style*="width:160px"]:hover { transform: translateY(-4px) scale(1.025); box-shadow: 0 18px 32px rgba(0,0,0,.48), 0 0 0 7px rgba(255,255,255,.09); }
.nav-item:hover { transition-duration: .3s; }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Subtle hover calibration: keep an affordance without a bright flash. */
.buddy:hover {
  transform: translateX(2px);
  background: rgba(255,255,255,.045) !important;
  box-shadow: 0 4px 11px rgba(0,0,0,.14);
}
.buddy:hover img.avatar { transform: scale(1.025); box-shadow: 0 5px 12px rgba(0,0,0,.28), 0 0 0 2px rgba(255,255,255,.07); }
.msg-row:hover,.notif:hover,.msg-row.unread:hover,.notif.unread:hover { transform: translateY(-1px) scale(1.004); background: rgba(255,255,255,.065) !important; box-shadow: 0 5px 12px rgba(0,0,0,.13); }
.msg-row:hover img,.notif:hover img { transform: scale(1.035); filter: brightness(1.025); }
.person:hover { transform: translateX(2px); background: rgba(255,255,255,.045); }
.tile-grid a:hover,.friend-grid .cell:hover,.shot-grid a:hover,.album-cell:hover { transform: translateY(-3px) scale(1.012); box-shadow: 0 10px 20px rgba(0,0,0,.27); filter: brightness(1.025); }
.tile-grid a:hover img,.friend-grid .cell:hover img,.shot-grid a:hover img,.album-cell:hover .shot img { transform: scale(1.035); filter: saturate(.92) brightness(1.035); }

/* Chat rail uses the same rounded navigation chips as the left sidebar. */
.chat-rail { padding: 10px 8px 8px; border-left-color: rgba(255,255,255,.12); background: rgba(20,22,26,.9); }
.chat-rail-head { padding: 8px 9px 10px; border-bottom: 0; color: #9fa6b1; letter-spacing: .75px; }
.chat-rail-list { padding: 0 1px; }
.buddy {
  gap: 8px; margin: 3px 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 12px;
  color: #dfe3e9; font-weight: 600; background: transparent;
}
.buddy img { width: 29px; height: 29px; border-radius: 12px !important; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.22); }
.buddy .nm { color: #e7eaf0; }
.buddy:hover { border-color: rgba(255,255,255,.17); background: linear-gradient(110deg,rgba(255,255,255,.11),rgba(255,255,255,.045)) !important; box-shadow: 0 4px 11px rgba(0,0,0,.14); }
.buddy .dot { width: 9px; height: 9px; margin-left: 2px; border: 2px solid rgba(20,22,26,.9); box-shadow: 0 0 0 2px rgba(139,195,74,.12),0 0 10px rgba(139,195,74,.32); }
.buddy .n { min-width: 20px; padding: 1px 6px; font: 700 11px/17px ui-sans-serif,system-ui,sans-serif; text-align: center; }
.chat-rail-foot { margin-top: 7px; padding: 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.035); }

/* Form hierarchy: labels must remain readable above dark glass fields. */
.field label { color: #eef0f4; font-weight: 700; letter-spacing: .01em; }
.field label + .inp:placeholder-shown { color: #9da4af; }
.field + .grey,.box-body > .grey { color: #b7bdc7; }

/* All native choice controls share the smoked-glass palette, including popup rows. */
select,
.inp[type="date"],
.inp[type="time"] {
  color-scheme: dark;
  color: #f1f3f6;
  border-color: rgba(255,255,255,.22);
  background-color: rgba(16,18,21,.78);
}
select.inp,
.privacy-pick select {
  min-height: 34px;
  padding: 5px 32px 5px 10px;
  border-radius: 12px;
  background-image: linear-gradient(45deg, transparent 50%, #eef0f4 50%), linear-gradient(135deg, #eef0f4 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
}
select:hover { border-color: rgba(255,255,255,.38); background-color: rgba(255,255,255,.075); }
select:focus { outline: none; border-color: rgba(255,255,255,.72); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
select option,
select optgroup {
  color: #f0f2f5;
  background: #23262b;
}
select option:checked { color: #fff; background: #5a606a; }

/* Custom select surface: the native field remains only as the submitted value. */
.glass-select { position: relative; width: 100%; min-width: 0; }
.glass-native-select {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important;
  padding: 0 !important; opacity: 0 !important; pointer-events: none !important; clip-path: inset(50%) !important;
}
.glass-select-trigger {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 34px; padding: 6px 37px 6px 11px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; color: #f2f4f7;
  background: rgba(16,18,21,.78); box-shadow: inset 0 1px rgba(255,255,255,.06); text-align: left; cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s var(--soft-ease);
}
.glass-select-trigger::after {
  content: ""; position: absolute; top: 50%; right: 15px; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid #edf0f4; border-bottom: 2px solid #edf0f4; transform: rotate(45deg);
  transition: transform .28s var(--soft-ease), margin-top .28s var(--soft-ease);
}
.glass-select-trigger:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.glass-select-trigger:focus-visible { outline: none; border-color: rgba(255,255,255,.72); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.glass-select.open .glass-select-trigger { border-color: rgba(255,255,255,.56); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
.glass-select.open .glass-select-trigger::after { margin-top: -2px; transform: rotate(225deg); }
.glass-select-menu {
  position: absolute; z-index: 560; top: calc(100% + 7px); left: 0; right: 0; display: grid; gap: 3px;
  max-height: 260px; padding: 6px; overflow-y: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 16px;
  background: rgba(31,33,38,.97); box-shadow: 0 18px 35px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; visibility: hidden; transform: translateY(-5px) scale(.98); transform-origin: top center;
  transition: opacity .2s ease, visibility .2s step-end, transform .28s var(--soft-ease);
}
.glass-select.open .glass-select-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition: opacity .2s ease, transform .28s var(--soft-ease); }
.glass-select-option {
  display: block; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; color: #dfe3e9;
  background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s var(--soft-ease);
}
.glass-select-option:hover,.glass-select-option:focus-visible { outline: none; color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.09); transform: translateX(2px); }
.glass-select-option.selected { color: #fff; border-color: rgba(255,255,255,.18); background: linear-gradient(110deg,rgba(255,255,255,.16),rgba(255,255,255,.08)); box-shadow: 0 3px 9px rgba(0,0,0,.12); }
.privacy-pick .glass-select { display: inline-block; width: 92px; vertical-align: middle; margin-left: 2px; }
.privacy-pick .glass-select-trigger { min-height: 27px; padding: 4px 25px 4px 8px; border-radius: 10px; font-size: 11px; }
.privacy-pick .glass-select-trigger::after { right: 10px; width: 6px; height: 6px; }

/* A select menu is a floating layer, not content of the settings card.  Let it
   extend beyond the rounded card and raise the active field above the next card. */
form.box:has(.glass-select) { overflow: visible; position: relative; }
form.box:has(.glass-select.open) { z-index: 20; }
.composer:has(.glass-select) { overflow: visible; position: relative; z-index: 20; }
.composer:has(.glass-select.open) { z-index: 30; }
.glass-select { z-index: 1; }
.glass-select.open { z-index: 30; }

/* Timeline year links use the same frameless treatment as the top navigation. */
.tl-years-inner {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.tl-years-inner .now,
.tl-years-inner a {
  padding: 5px 0;
  border: 0;
  background: transparent;
  transition: color .22s ease, text-shadow .22s ease, transform .3s var(--soft-ease);
}
.tl-years-inner .now { margin: 0 0 2px; color: #cdd1d8; }
.tl-years-inner a { color: #aeb5c0; }
.tl-years-inner a:hover {
  color: #fff;
  background: transparent;
  text-decoration: none;
  text-shadow: 0 0 9px rgba(255,255,255,.28);
  transform: translateY(-1px);
}

/* Sidebar icons sit directly on the rail; the row itself provides the only
   active/hover surface, avoiding a redundant icon-shaped button inside it. */
.nav-item .ico,
.nav-item:hover .ico,
.nav-item.active .ico {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

/* Cover crop controls in Settings. */
.cover-position-control {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.cover-position-preview {
  height: 76px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background-color: rgba(255,255,255,.07);
  background-image: linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.025));
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 5px 13px rgba(0,0,0,.16);
}
.cover-position-sliders { min-width: 0; }
.cover-position-sliders > label:first-child { display: block; margin-bottom: 4px; color: #eef0f4; font-weight: 700; }
.range-field { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; margin: 5px 0; color: #b9bec7; font-size: 12px; }
.range-field input[type="range"] { width: 100%; accent-color: #d9dde4; }
.cover-position-sliders .grey { margin-top: 5px; font-size: 11px; }
@media (max-width: 560px) { .cover-position-control { grid-template-columns: 1fr; } }

/* Flyout rows must never scale: scaling creates a horizontal scrollbar and makes
   the footer flicker while the pointer moves between notification rows. */
.flyout-list { overflow-x: hidden; }
.msg-row,.notif { transform: none !important; }
.msg-row:hover,.notif:hover,.msg-row.unread:hover,.notif.unread:hover {
  transform: none !important;
  box-shadow: 0 4px 11px rgba(0,0,0,.12);
  background: rgba(255,255,255,.065) !important;
}
.msg-row:hover img,.notif:hover img { transform: scale(1.025); }

/* Messages flyout follows the same no-layout-shift rule as notifications. */
#msgList,#notifList {
  /* Never expose a horizontal scrollbar in notification/message flyouts. */
  overflow-x: clip !important;
  scrollbar-width: none;
}
#msgList::-webkit-scrollbar,#notifList::-webkit-scrollbar:horizontal { height: 0; }

/* Opening a conversation creates a separate chat window.  Its log must never
   inherit a horizontal scrollbar from a long name, URL or unbroken message. */
.chat-win,.chat-log { overflow-x: clip; }
.chat-log { scrollbar-width: thin; }
.chat-log::-webkit-scrollbar:horizontal { height: 0; }
.chat-msg { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.chat-input { min-width: 0; overflow: hidden; }
.chat-input input { min-width: 0; max-width: 100%; }

/* The right-hand online-friends rail may animate a buddy a few pixels.  Keep
   that motion inside the rail instead of turning it into a horizontal scrollbar. */
.chat-rail { overflow: hidden; }
.chat-rail-list { min-width: 0; overflow-x: clip !important; scrollbar-width: none; }
.chat-rail-list::-webkit-scrollbar:horizontal { height: 0; }
.chat-rail-list .buddy { min-width: 0; max-width: 100%; }

/* Do not draw a bright left accent when a chat buddy is hovered/selected. */
.chat-rail .buddy:hover,
.chat-rail .buddy:focus-visible {
  box-shadow: 0 4px 11px rgba(0,0,0,.14) !important;
}

/* Small breathing room below the chat rail heading. */
.chat-rail-list { padding-top: 8px; }

/* Keep the profile avatar wholly inside the cover: the old negative bottom
   offset clipped its rounded lower edge against the profile navigation. */
.cover .profile-pic { bottom: 8px; }

/* Profile avatar frame: transparent glass only, without the opaque black rim. */
.cover .profile-pic {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 12px 26px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.35);
}
.cover-viewable { cursor: zoom-in; }
.cover-viewable .profile-pic { cursor: default; }
.profile-pic-viewable { cursor: zoom-in !important; }
.cover-adjust {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  color: #f4f6f8; background: rgba(18,20,24,.42); box-shadow: inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0;
  transform: translateY(-3px); transition: opacity .24s ease, transform .3s var(--soft-ease), background-color .24s ease;
}
.cover:hover .cover-adjust,.cover-adjust:focus-visible { opacity: 1; transform: translateY(0); }
.cover-adjust:hover { color: #fff; background: rgba(255,255,255,.14); text-decoration: none; }

/* The actual profile cover uses object-fit: cover, then the persisted pan/zoom
   transform, so it matches the direct crop editor instead of a fixed centre crop. */
.cover-image {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--cover-object-x, 50%) var(--cover-object-y, 50%);
  transform: scale(var(--cover-scale, 1));
  transform-origin: center; pointer-events: none;
}
.cover .shade,.cover .profile-pic,.cover .cover-name,.cover .cover-adjust { z-index: 1; }

/* Full-width, cover-ratio crop stage: drag the image and use the mouse wheel
   to zoom.  No range controls are exposed because direct manipulation is more precise. */
.cover-position-control { display: block; padding: 12px; }
.cover-position-preview.cover-crop-stage {
  position: relative; width: 100%; height: auto; aspect-ratio: 851 / 315; min-height: 170px;
  border-radius: 13px; background-position: 50% 50%; background-repeat: no-repeat;
  cursor: grab; touch-action: none; user-select: none;
}
.cover-position-preview.cover-crop-stage.is-dragging { cursor: grabbing; }
.cover-crop-hint {
  position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 8px;
  color: #edf0f4; background: rgba(15,17,21,.58); box-shadow: inset 0 1px rgba(255,255,255,.12);
  font-size: 11px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none;
}
.cover-position-sliders { margin-top: 9px; }
.cover-position-sliders > label:first-child { margin-bottom: 2px; }

/* Square counterpart of the cover crop editor in the Settings preview card. */
.avatar-position-control { display: grid; place-items: center; }
.avatar-position-preview.avatar-crop-stage {
  position: relative; width: min(100%, 205px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px; background-repeat: no-repeat; background-position: 50% 50%;
  box-shadow: 0 10px 24px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.12);
  cursor: grab; touch-action: none; user-select: none; overflow: hidden;
}
.avatar-position-preview.avatar-crop-stage.is-dragging { cursor: grabbing; }
.avatar-position-save { margin-top: 10px; }
.avatar-crop-hint {
  position: absolute; right: 7px; bottom: 7px; padding: 4px 6px; border-radius: 7px; color: #edf0f4;
  background: rgba(15,17,21,.62); font-size: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none;
}
.cover .profile-pic img {
  object-position: var(--avatar-object-x, 50%) var(--avatar-object-y, 50%);
  transform: scale(var(--avatar-scale, 1));
  transform-origin: center;
}
.cover .profile-pic.avatar-crop-ready {
  background-repeat: no-repeat;
  background-origin: content-box;
  background-clip: content-box;
}
.cover .profile-pic.avatar-crop-ready img { opacity: 0; }

/* Primary actions use a light glass face; keep their copy dark on hover/focus
   instead of inheriting the generic white hover text meant for dark buttons. */
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible {
  color: #16171a;
  text-shadow: none;
}

/* Shared dark liquid-glass system.  A single alpha variable lets the Home
   control adjust every major surface without compromising readable text. */
:root { --ui-glass-opacity: .71; --ui-glass-menu-opacity: .71; --ui-glass-chrome-opacity: .09; }
.box,.tl-cap,.profile-bar,.col-left,.composer,.chat-rail,.chat-win,.flyout,.typeahead,.tagbox {
  background-color: rgb(24 26 31 / var(--ui-glass-opacity));
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.box-head,.box-foot,.composer-tabs,.composer-foot,.flyout-head,.flyout-foot,.chat-rail-head,.chat-win-head {
  background-color: rgb(255 255 255 / var(--ui-glass-chrome-opacity));
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.fb-bar {
  background: linear-gradient(120deg,rgb(12 13 15 / var(--ui-glass-opacity)),rgb(38 40 46 / var(--ui-glass-opacity)) 55%,rgb(17 18 21 / var(--ui-glass-opacity));
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
}
.glass-tuner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 18px 4px 2px;
  padding: 10px 8px 2px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #aeb4be;
  font-size: 10px;
  letter-spacing: .45px;
  text-transform: uppercase;
}
.glass-tuner input[type="range"] { width: 100%; margin: 0; accent-color: #d7dbe2; cursor: ew-resize; }

/* Menus must use the same adjustable alpha as panels; otherwise their own
   fixed opaque paint hides the effect of the slider. */
.glass-select-menu {
  background: linear-gradient(135deg,
    rgb(57 61 70 / var(--ui-glass-menu-opacity)),
    rgb(20 23 28 / var(--ui-glass-menu-opacity)));
}

/* Dropdown menus are a translucent glass layer: nearby content shows through
   softly, while the local backdrop blur preserves text contrast. */
.glass-select-menu {
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(135deg,
    rgb(57 61 70 / var(--ui-glass-menu-opacity)),
    rgb(20 23 28 / var(--ui-glass-menu-opacity)));
  box-shadow: 0 18px 38px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.17);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

/* Brand aligns to the actual left navigation rail (the page excludes the chat
   rail when it is centred), while its flex spacer keeps search/nav in place. */
.fb-bar .fb-wordmark {
  position: absolute; top: 0; left: var(--brand-rail-left, max(0px, calc((100vw - 1200px) / 2)));
  display: flex; align-items: center; justify-content: center; width: 180px; height: 58px;
  width: var(--brand-rail-width, 180px);
  margin: 0; text-align: center;
}
.fb-bar-inner:has(.fb-wordmark)::before { content: ""; flex: 0 0 180px; }
@media (max-width: 759px) {
  .fb-bar .fb-wordmark { position: static; display: block; width: auto; height: auto; }
  .fb-bar-inner:has(.fb-wordmark)::before { display: none; }
}

/* Gentle glass response for card title bars.  It deliberately avoids scaling so
   stacked panels never shift when the pointer crosses a heading. */
.box-head,.tl-cap,.flyout-head,.chat-rail-head,.chat-win-head {
  transition: color .24s ease, background-color .28s ease, box-shadow .28s var(--soft-ease),
    transform .28s var(--soft-ease), border-color .28s ease;
}
.box-head:hover,.tl-cap:hover,.flyout-head:hover,.chat-rail-head:hover,.chat-win-head:hover {
  color: #fff;
  background-color: rgba(255,255,255,.135);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 7px 16px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

/* Top navigation stays airy: hover illuminates the content, never draws a button box. */
.fb-bar .jewel {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: color .22s ease, filter .22s ease, opacity .22s ease;
}
.fb-bar .bar-link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: color .22s ease, text-shadow .22s ease, opacity .22s ease;
}
.fb-bar .jewel:hover,.fb-bar .bar-link:hover {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.fb-bar .jewel:hover { filter: brightness(1.28) drop-shadow(0 0 6px rgba(255,255,255,.2)); }
.fb-bar .bar-link:hover { text-shadow: 0 0 9px rgba(255,255,255,.28); }
.fb-bar .fb-me { transition: color .22s ease, text-shadow .22s ease; }
.fb-bar .fb-me:hover { color: #fff; text-shadow: 0 0 9px rgba(255,255,255,.24); }

/* Visible but restrained motion for the top navigation, without a button shell. */
.fb-bar .jewel svg { transform-origin: center; transition: transform .34s var(--soft-ease), filter .28s ease; }
.fb-bar .jewel:hover svg { transform: translateY(-2px) scale(1.09); }
.fb-bar .bar-link { position: relative; transform: translateY(0); transition: color .24s ease, text-shadow .24s ease, transform .34s var(--soft-ease); }
.fb-bar .bar-link::after {
  content: ""; position: absolute; right: 8px; bottom: 1px; left: 8px; height: 1px;
  border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 8px rgba(255,255,255,.32);
  opacity: 0; transform: scaleX(.35); transition: opacity .2s ease, transform .34s var(--soft-ease);
}
.fb-bar .bar-link:hover { transform: translateY(-2px); }
.fb-bar .bar-link:hover::after { opacity: .9; transform: scaleX(1); }
.fb-bar .fb-me:hover img { transform: translateY(-1px); }
#msgList .msg-row,#msgList .msg-row:hover,#msgList .msg-row.unread:hover {
  transform: none !important;
  box-shadow: none;
}
#msgList .msg-row:hover,#msgList .msg-row.unread:hover {
  background: rgba(255,255,255,.065) !important;
  box-shadow: 0 4px 11px rgba(0,0,0,.12);
}
#msgList .msg-row img,#msgList .msg-row:hover img { transform: none !important; filter: none; }

/* Feed and Settings share one desktop shell.  Keeping the column arithmetic
   in one place prevents a page from being squeezed differently by its own
   content (the old 1000px container was 8px narrower than its children). */
:root {
  --app-rail-width: 180px;
  --app-main-width: 500px;
  --app-aside-width: 300px;
  --app-column-gap: 14px;
  --app-card-radius: 17px;
  --app-shell-width: calc(var(--app-rail-width) + var(--app-main-width) + var(--app-aside-width) + (var(--app-column-gap) * 2));
}
.page.app-shell {
  width: var(--app-shell-width);
  display: grid;
  grid-template-columns: var(--app-rail-width) var(--app-main-width) var(--app-aside-width);
  align-items: start;
  gap: var(--app-column-gap);
}
.page.app-shell > .col-left,
.page.app-shell > .col-main,
.page.app-shell > .col-right {
  width: auto;
  min-width: 0;
  align-self: start;
}
.page.app-shell .col-left,
.page.app-shell .box,
.page.app-shell .composer {
  border-radius: var(--app-card-radius);
}
.page.app-shell .composer { overflow: hidden; }

/* The self-edit link belongs to the profile navigation, not to the family of
   raised action buttons.  It stays frameless and answers hover with light and
   a small lift only. */
.profile-actions .profile-edit-link {
  min-height: 0;
  padding: 5px 0;
  border: 0 !important;
  border-radius: 0 !important;
  color: #b9bec8;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none;
  transition: color .24s ease, text-shadow .28s ease, transform .34s var(--soft-ease), filter .28s ease;
}
.profile-actions .profile-edit-link:hover,
.profile-actions .profile-edit-link:focus-visible {
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255,255,255,.3);
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* The top bar is intentionally typography and icon-led.  This final, scoped
   reset wins over the reusable jewel/button treatment used elsewhere. */
.fb-bar .fb-jewels > .jewel,
.fb-bar .fb-right > .bar-link {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.fb-bar .fb-jewels > .jewel {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  color: #e5e8ed !important;
  opacity: .88;
}
.fb-bar .fb-jewels > .jewel svg { display: block; }
.fb-bar .fb-jewels > .jewel:hover,
.fb-bar .fb-jewels > .jewel:focus-visible,
.fb-bar .fb-right > .bar-link:hover,
.fb-bar .fb-right > .bar-link:focus-visible {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.fb-bar .fb-jewels > .jewel:hover,
.fb-bar .fb-jewels > .jewel:focus-visible { opacity: 1; }

/* Top controls deliberately have their own vocabulary.  They do not inherit
   the reusable jewel/button classes, so page-state styling can never turn
   them back into rounded pills. */
.fb-bar .top-jewel {
  position: relative; display: grid; place-items: center; flex: 0 0 32px !important; width: 32px; min-width: 32px; height: 30px;
  border: 0; border-radius: 0; color: #e5e8ed; background: transparent; box-shadow: none; opacity: .88;
  transition: color .22s ease, opacity .22s ease, filter .28s ease, transform .34s var(--soft-ease);
}
.fb-bar .top-jewel svg { display: block; transform-origin: center; transition: transform .34s var(--soft-ease); }
.fb-bar .top-jewel:hover,.fb-bar .top-jewel:focus-visible { color: #fff; background: transparent; box-shadow: none; opacity: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); transform: translateY(-2px); }
.fb-bar .top-jewel:hover svg,.fb-bar .top-jewel:focus-visible svg { transform: scale(1.09); }
.fb-bar .top-jewel .count { position: absolute; top: -3px; right: -3px; min-width: 14px; padding: 0 3px; border: 0; border-radius: 999px; color: #17181b; background: linear-gradient(135deg,#fff,#a6abb4); font: 700 10px/13px ui-sans-serif,system-ui,sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.32); }
.fb-bar .top-jewel .count:empty,.fb-bar .top-jewel .count.zero { display: none; }
.fb-bar .top-jewel .count.zero { display: none !important; }
.fb-bar .fb-jewels { flex: 0 0 auto; gap: 6px; }
.fb-bar .top-link { position: relative; display: block; flex: none; padding: 6px 8px; border: 0; border-radius: 0; color: #e5e8ed; background: transparent; box-shadow: none; font-weight: 600; white-space: nowrap; transform: translateY(0); transition: color .24s ease, text-shadow .24s ease, transform .34s var(--soft-ease); }
.fb-bar .top-link .bl-short { display: none; }
.fb-bar .top-link::after { content: ""; position: absolute; right: 8px; bottom: 1px; left: 8px; height: 1px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 8px rgba(255,255,255,.32); opacity: 0; transform: scaleX(.35); transition: opacity .2s ease, transform .34s var(--soft-ease); }
.fb-bar .top-link:hover,.fb-bar .top-link:focus-visible { color: #fff; background: transparent; box-shadow: none; text-decoration: none; text-shadow: 0 0 9px rgba(255,255,255,.28); transform: translateY(-2px); }
.fb-bar .top-link:hover::after,.fb-bar .top-link:focus-visible::after { opacity: .9; transform: scaleX(1); }
@media (max-width: 759px) {
  .fb-bar .top-link .bl-full { display: none; }
  .fb-bar .top-link .bl-short { display: inline; }
}

@media (max-width: 1039px) {
  .page.app-shell {
    width: auto;
    max-width: 1000px;
    display: flex;
    gap: var(--app-column-gap);
  }
}
@media (max-width: 759px) {
  .page.app-shell { gap: 8px; }
}

/* Phone is a deliberate compact layout, not the desktop columns merely
   squeezed into a narrow viewport.  The header and composer keep one clear
   action per line, while navigation remains reachable with a short swipe. */
@media (max-width: 759px) {
  .fb-bar-inner { padding: 10px 14px 8px; gap: 9px; }
  .fb-wordmark { flex: 1; font-size: 21px; letter-spacing: -.45px; }
  .fb-jewels { margin-left: auto; gap: 8px; }
  .fb-bar .top-jewel { flex-basis: 30px !important; width: 30px; min-width: 30px; }
  .fb-search { order: 4; }
  .fb-search input { height: 42px; border-radius: 13px; font-size: 16px; }
  .fb-right {
    order: 5; width: 100%; margin: 0; padding: 1px 0 3px;
    flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .fb-right::-webkit-scrollbar { display: none; }
  .fb-bar .top-link { padding: 7px 0; font-size: 13px; }

  .page.app-shell { padding: 12px 12px 34px; gap: 12px; }
  .page.app-shell > .col-left {
    gap: 7px; padding: 0 1px 2px; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; scrollbar-width: none;
  }
  .page.app-shell > .col-left::-webkit-scrollbar { display: none; }
  .page.app-shell .col-left .nav-item {
    margin: 0; padding: 9px 11px; border-radius: 11px; font-size: 14px;
    background: rgba(255,255,255,.055);
  }

  .page.app-shell .composer { border-radius: 15px; }
  .composer-tabs span { flex: 1; min-width: 0; padding: 11px 4px; font-size: 13px; line-height: 1.25; text-align: center; }
  .composer textarea { min-height: 78px; padding: 13px; }
  .composer-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 12px; }
  .composer-foot .grow, .composer-foot .js-tag-hint { display: none; }
  .composer-foot .file-pick { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .composer-foot .privacy-pick { white-space: nowrap; }
  .composer-foot .privacy-pick select { min-height: 36px; font-size: 14px; }
  .composer-foot .btn { min-height: 36px; padding: 6px 14px; }

  .story { padding: 14px 13px; }
  .story-head img.avatar { width: 46px; height: 46px; }
  .story-actor { font-size: 16px; }
  .story-body { margin-top: 7px; font-size: 16px; line-height: 1.42; }
  .story-actions { margin-top: 9px; font-size: 14px; }
  .comment-form { margin-top: 10px; }

  /* Preview belongs immediately after profile changes, before the password
     section, so touch editing does not require scrolling past another form. */
  .settings-shell .col-main { display: contents; }
  .settings-shell .settings-form { order: 2; }
  .settings-shell .col-right { order: 3; }
  .settings-shell .password-form { order: 4; }
  .settings-shell .col-right .box { margin-bottom: 0; }
  .avatar-position-preview.avatar-crop-stage { width: min(100%, 250px); border-radius: 22px; }
  .avatar-crop-hint, .cover-crop-hint { font-size: 11px; }
}

/* Composer must stay legible at every density: tab names are navigation labels,
   never two-line headings, and publishing controls retain a predictable order. */
.composer-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.composer-tabs span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
@media (max-width: 1300px) {
  .composer-tabs span { padding: 10px 6px; font-size: 13px; }
  .composer-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
  }
  .composer-foot .grow, .composer-foot .js-tag-hint { display: none; }
  .composer-foot .file-pick {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .composer-foot .privacy-pick { white-space: nowrap; }
}
@media (max-width: 759px) {
  .composer-tabs span {
    padding: 10px 3px;
    font-size: 12px !important;
    line-height: 1.25;
  }
  .composer-foot { padding: 9px 10px; }
}
