/* BlueWall — early-FB shared design system (T-002)
   Nested tables for desktop; stacks under 640px.
   Human / imperfect nostalgic, one consistent look. */

:root {
  --bw-blue: #3b5998;
  --bw-blue-mid: #6d84b4;
  --bw-blue-dark: #133783;
  --bw-bg: #eeeeee;
  --bw-panel: #ffffff;
  --bw-border: #94a3c4;
  --bw-link: #3b5998;
  --bw-text: #111111;
  --bw-muted: #555555;
  --bw-online: #60a30e;
  --bw-offline: #999999;
  --bw-font: "lucida grande", tahoma, verdana, arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 11px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bw-bg);
  color: var(--bw-text);
  font-family: var(--bw-font);
  font-size: 11px;
  line-height: 1.35;
}

a {
  color: var(--bw-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  border: 0;
  vertical-align: middle;
}

/* —— page shell / nested table primitives —— */

.bw-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-collapse: collapse;
}

.bw-layout {
  width: 100%;
  border-collapse: collapse;
}

.bw-col-left {
  width: 200px;
  vertical-align: top;
  padding: 10px 8px 10px 0;
}

.bw-col-main {
  vertical-align: top;
  padding: 10px 0;
}

.bw-col-right {
  width: 220px;
  vertical-align: top;
  padding: 10px 0 10px 8px;
}

/* —— blue top chrome bar —— */

.bw-topbar {
  width: 100%;
  background: var(--bw-blue);
  border-bottom: 1px solid var(--bw-blue-dark);
  color: #fff;
}

.bw-topbar-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-collapse: collapse;
}

.bw-topbar td {
  padding: 4px 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.bw-logo {
  display: inline-block;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-decoration: none !important;
  padding: 2px 6px 2px 2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.bw-logo:hover {
  text-decoration: none !important;
}

.bw-logo img {
  margin-right: 4px;
  vertical-align: -2px;
}

.bw-nav a {
  color: #fff !important;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 7px;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.bw-nav a:hover {
  background: var(--bw-blue-mid);
  border-color: var(--bw-blue-dark);
}

.bw-nav a.is-active {
  background: var(--bw-blue-dark);
  border-color: #0d2458;
}

.bw-topbar-search {
  text-align: right;
}

.bw-topbar-search input[type="text"] {
  width: 120px;
  font-size: 11px;
  font-family: var(--bw-font);
  border: 1px solid var(--bw-blue-dark);
  padding: 2px 4px;
}

/* —— panels / boxes —— */

.bw-panel {
  background: var(--bw-panel);
  border: 1px solid var(--bw-border);
  margin-bottom: 10px;
}

.bw-panel-head {
  background: var(--bw-blue);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 6px;
  border-bottom: 1px solid var(--bw-blue-dark);
}

.bw-panel-head a {
  color: #fff !important;
  float: right;
  font-weight: normal;
  font-size: 10px;
}

.bw-panel-body {
  padding: 6px 8px;
}

.bw-panel-subtle .bw-panel-head {
  background: var(--bw-blue-mid);
  border-bottom-color: var(--bw-blue);
}

/* left-column profile box */

.bw-profile-box .bw-profile-pic {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--bw-border);
  margin-bottom: 6px;
  background: #d8dfea;
}

.bw-profile-box .bw-profile-name {
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 2px;
}

.bw-profile-box .bw-profile-status {
  color: var(--bw-muted);
  font-size: 10px;
  margin-top: 0;
  margin-bottom: 6px;
}

.bw-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 0; /* pixel feel */
  margin-right: 3px;
  vertical-align: 0;
  border: 1px solid #333;
}

.bw-status-dot.is-online {
  background: var(--bw-online);
}

.bw-status-dot.is-offline {
  background: var(--bw-offline);
}

.bw-profile-meta {
  font-size: 10px;
  color: var(--bw-muted);
  line-height: 1.45;
}

.bw-profile-meta strong {
  color: var(--bw-text);
}

/* friends grid boxes */

.bw-friends-grid {
  width: 100%;
  border-collapse: collapse;
}

.bw-friends-grid td {
  width: 25%;
  text-align: center;
  vertical-align: top;
  padding: 4px 2px;
  font-size: 10px;
}

.bw-friends-grid img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid var(--bw-border);
  background: #d8dfea;
  display: block;
  margin: 0 auto 3px;
}

.bw-friends-grid a {
  display: block;
}

/* —— beveled / pixel buttons —— */

.bw-btn,
button.bw-btn,
input[type="submit"].bw-btn,
input[type="button"].bw-btn {
  display: inline-block;
  font-family: var(--bw-font);
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: var(--bw-blue);
  background-image: linear-gradient(to bottom, var(--bw-blue-mid), var(--bw-blue));
  border-top: 1px solid #8a9cc2;
  border-left: 1px solid #8a9cc2;
  border-right: 1px solid var(--bw-blue-dark);
  border-bottom: 1px solid var(--bw-blue-dark);
  padding: 3px 10px;
  cursor: pointer;
  text-decoration: none !important;
  image-rendering: pixelated;
}

.bw-btn:hover,
button.bw-btn:hover {
  background: var(--bw-blue-mid);
  background-image: linear-gradient(to bottom, #8ba0c8, var(--bw-blue-mid));
}

.bw-btn:active,
button.bw-btn:active {
  border-top-color: var(--bw-blue-dark);
  border-left-color: var(--bw-blue-dark);
  border-right-color: #8a9cc2;
  border-bottom-color: #8a9cc2;
  padding: 4px 9px 2px 11px;
}

.bw-btn-pixel {
  background: var(--bw-blue) url("../assets/btn-pixel.png") repeat-x left top;
  background-image: none; /* fallback if asset missing; gradient above still applies */
  image-rendering: pixelated;
}

.bw-btn-green {
  background: #60a30e;
  background-image: linear-gradient(to bottom, #7bc41a, #60a30e);
  border-top-color: #9ed64a;
  border-left-color: #9ed64a;
  border-right-color: #3d6a08;
  border-bottom-color: #3d6a08;
}

/* —— wall / feed posts —— */

.bw-wall-post {
  border-bottom: 1px solid #d8dfea;
  padding: 8px 0;
  clear: both;
}

.bw-wall-post:last-child {
  border-bottom: 0;
}

.bw-wall-post .bw-wall-avatar {
  float: left;
  width: 50px;
  height: 50px;
  margin-right: 8px;
  border: 1px solid var(--bw-border);
  background: #d8dfea;
  object-fit: cover;
}

.bw-wall-post .bw-wall-body {
  margin-left: 60px;
}

.bw-wall-post .bw-wall-author {
  font-weight: bold;
}

.bw-wall-post .bw-wall-time {
  color: var(--bw-muted);
  font-size: 10px;
  margin-left: 4px;
}

.bw-wall-post .bw-wall-text {
  margin: 3px 0 4px;
}

.bw-wall-post .bw-wall-actions {
  font-size: 10px;
  color: var(--bw-muted);
}

.bw-wall-post .bw-wall-actions a {
  margin-right: 6px;
}

.bw-wall-compose {
  margin-bottom: 8px;
}

.bw-wall-compose textarea {
  width: 100%;
  height: 48px;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 4px;
  resize: vertical;
}

/* —— feed / home wall (T-004) —— */

.bw-feed-compose-label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--bw-blue-dark);
}

.bw-wall-compose-actions {
  margin-top: 4px;
  text-align: right;
}

.bw-feed-wall {
  min-height: 40px;
}

.bw-feed-empty {
  padding: 8px 0;
}

.bw-wall-like.is-liked {
  font-weight: bold;
}

.bw-wall-likes {
  margin-left: 4px;
}

.bw-feed-minifeed {
  line-height: 1.5;
}

/* —— footer —— */

.bw-footer {
  max-width: 980px;
  margin: 12px auto 24px;
  padding: 8px 6px;
  text-align: center;
  color: var(--bw-muted);
  font-size: 10px;
  border-top: 1px solid var(--bw-border);
}

.bw-footer a {
  margin: 0 4px;
}

/* —— misc early-FB bits —— */

.bw-hr {
  border: 0;
  border-top: 1px solid var(--bw-border);
  margin: 8px 0;
}

.bw-muted {
  color: var(--bw-muted);
}

.bw-auth-error {
  color: #a31818;
  font-size: 11px;
  margin: 0 0 6px;
}

.bw-clearfix {
  clear: both;
  height: 0;
  overflow: hidden;
}

/* light Neocities texture — sparse, not MySpace chaos */
.bw-pixel-gif {
  image-rendering: pixelated;
}

/* —— public splash / login (feed-like 3-col) —— */

.bw-splash {
  background: #d8dfea;
  background-image: linear-gradient(to bottom, #d8dfea 0%, var(--bw-bg) 180px);
}

.bw-splash-brand-box .bw-splash-brand {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: bold;
  color: var(--bw-blue);
  letter-spacing: -0.03em;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(19, 55, 131, 0.15);
}

.bw-splash-tagline {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--bw-blue-dark);
  font-weight: bold;
  line-height: 1.35;
}

.bw-splash-blurb {
  margin: 0;
  max-width: none;
  font-size: 11px;
  line-height: 1.45;
}

.bw-splash .bw-col-right .bw-login-box,
.bw-splash .bw-col-right .bw-signup-box {
  max-width: none;
}

.bw-auth-fields {
  width: 100%;
  border-collapse: collapse;
}

.bw-auth-fields td {
  padding: 3px 0;
  vertical-align: middle;
}

.bw-auth-label {
  color: var(--bw-muted);
  white-space: nowrap;
}

.bw-auth-fields input[type="text"],
.bw-auth-fields input[type="password"] {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 3px 4px;
  background: #fff;
}

/* Old Facebook-style modal (guest post on splash wall) */
.bw-fb-dialog[hidden] {
  display: none !important;
}

.bw-fb-dialog.is-open,
.bw-fb-dialog:not([hidden]) {
  display: block;
}

.bw-fb-dialog-scrim {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0.45;
  z-index: 900;
}

.bw-fb-dialog-box {
  position: fixed;
  z-index: 910;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: 420px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #3b5998;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-family: var(--bw-font);
}

.bw-fb-dialog-head {
  background: #6d84b4;
  background: linear-gradient(to bottom, #6d84b4 0%, #3b5998 100%);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bw-fb-dialog-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.bw-fb-dialog-body {
  padding: 12px 14px 14px;
  font-size: 11px;
  color: var(--bw-text);
}

.bw-fb-dialog-body p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.bw-fb-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bw-fb-dialog-cancel {
  margin-left: 4px;
  font-size: 11px;
}

.bw-wall-post.is-anonymous .bw-wall-author {
  color: #333;
  font-style: italic;
}

.bw-wall-avatar-anon {
  background: #1a1a1e;
  border-color: #111 !important;
}

.bw-splash-top-links a {
  color: #fff !important;
  font-weight: bold;
}

/* —— mobile: stack nested columns —— */

@media (max-width: 640px) {
  html {
    font-size: 12px;
  }

  body {
    font-size: 12px;
  }

  .bw-page,
  .bw-topbar-inner,
  .bw-layout {
    width: 100% !important;
    max-width: 100%;
  }

  .bw-topbar td {
    display: block;
    white-space: normal;
    padding: 4px 8px;
  }

  .bw-topbar-search {
    text-align: left;
  }

  .bw-nav a {
    display: inline-block;
    margin: 1px 0;
  }

  .bw-col-left,
  .bw-col-main,
  .bw-col-right {
    display: block;
    width: 100% !important;
    padding: 8px;
  }

  .bw-profile-box .bw-profile-pic {
    width: 120px;
  }

  .bw-friends-grid td {
    width: 33.33%;
  }

  .bw-wall-post .bw-wall-avatar {
    width: 40px;
    height: 40px;
  }

  .bw-wall-post .bw-wall-body {
    margin-left: 50px;
  }

  .bw-splash-brand-box .bw-splash-brand {
    font-size: 24px;
  }

  .bw-auth-fields,
  .bw-auth-fields tr,
  .bw-auth-fields td {
    display: block;
    width: 100%;
  }

  .bw-auth-label {
    white-space: normal;
    padding-bottom: 0 !important;
  }
}

/* === T-005 profile === */

.bw-profile-layout .bw-col-main {
  padding-left: 4px;
}

.bw-profile-song {
  margin: 0;
  font-size: 11px;
  color: var(--bw-muted);
  font-style: italic;
}

.bw-profile-song-panel.is-absent,
.bw-profile-song-panel[hidden] {
  display: none !important;
}

.bw-profile-song-notice {
  margin: 0 0 8px;
  padding: 6px 8px;
  background: #fff8c5;
  border: 1px solid #e6d46a;
  color: #5c4b00;
  font-size: 11px;
  line-height: 1.4;
}

.bw-profile-song-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: bold;
}

.bw-profile-song-audio {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 0 8px;
}

.bw-profile-song-upload {
  display: inline-block;
  position: relative;
  margin-right: 6px;
  vertical-align: middle;
  cursor: pointer;
}

.bw-profile-song-upload .bw-btn {
  pointer-events: none;
}

.bw-profile-song-file {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.bw-profile-song-manage {
  margin-top: 4px;
}

.bw-profile-song-msg {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--bw-muted);
  min-height: 1em;
}

.bw-profile-song-msg.is-error {
  color: #a00;
}

.bw-profile-about {
  margin: 0 0 6px;
  line-height: 1.45;
}

.bw-profile-interests {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

.bw-profile-wall {
  min-height: 40px;
}

.bw-profile-wall-empty {
  padding: 8px 0;
}

.bw-profile-about-panel .bw-profile-about {
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .bw-profile-layout .bw-col-left,
  .bw-profile-layout .bw-col-main {
    display: block;
    width: 100% !important;
    padding: 8px;
  }

  .bw-profile-song-panel {
    margin-bottom: 8px;
  }
}

/* === T-006 friends === */

.bw-friends-search-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
}

.bw-friends-search {
  width: 100%;
  max-width: 180px;
  font-family: var(--bw-font);
  font-size: 11px;
  padding: 3px 4px;
  border: 1px solid var(--bw-border);
  background: #fff;
  color: var(--bw-text);
  box-sizing: border-box;
}

.bw-friend-request {
  padding: 8px 0;
  border-bottom: 1px solid #d8dfea;
  font-size: 11px;
  line-height: 1.35;
}

.bw-friend-request:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bw-friend-request-avatar {
  float: left;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--bw-border);
  background: #d8dfea;
  margin-right: 8px;
}

.bw-friend-request-body {
  margin-left: 50px;
}

.bw-friend-request-name {
  font-weight: bold;
  color: var(--bw-link);
}

.bw-friend-request-actions {
  margin-top: 4px;
}

.bw-friend-request-actions .bw-btn {
  font-size: 10px;
  padding: 2px 8px;
}

.bw-btn-ghost {
  background: #f0f0f0;
  border-color: #999 #ccc #ccc #999;
  color: var(--bw-text);
}

.bw-friends-page-grid td {
  padding: 8px 4px;
}

.bw-friends-empty,
.bw-friends-requests-empty {
  margin: 0;
  font-size: 11px;
}

.bw-friends-requests-label {
  margin: 8px 0 6px;
  font-weight: bold;
  font-size: 11px;
  color: var(--bw-muted);
}

.bw-friends-requests-label:first-child {
  margin-top: 0;
}

.bw-friend-request.is-outgoing {
  opacity: 0.95;
}
/* === T-007 messages === */

.bw-msg-layout {
  width: 100%;
}

.bw-msg-col-inbox {
  width: 58%;
  padding-right: 8px;
}

.bw-msg-col-detail {
  width: 42%;
  padding-left: 4px;
}

.bw-msg-mock-label {
  float: right;
  font-weight: normal;
  font-size: 10px;
  color: #d8dfea;
  opacity: 0.95;
}

.bw-msg-inbox {
  width: 100%;
  border-collapse: collapse;
}

.bw-msg-inbox th {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid var(--bw-border);
  color: var(--bw-blue-dark);
  background: #f7f7f7;
}

.bw-msg-inbox td {
  padding: 5px 6px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.bw-msg-row {
  cursor: pointer;
}

.bw-msg-row:hover td {
  background: #edf0f7;
}

.bw-msg-row.is-active td {
  background: #dce2f0;
}

.bw-msg-row.is-unread .bw-msg-from,
.bw-msg-row.is-unread .bw-msg-subject-text {
  font-weight: bold;
}

.bw-msg-from {
  width: 28%;
  white-space: nowrap;
}

.bw-msg-date {
  width: 18%;
  white-space: nowrap;
  color: var(--bw-muted);
  text-align: right;
}

.bw-msg-snippet {
  color: var(--bw-muted);
  font-weight: normal;
}

.bw-msg-detail {
  min-height: 120px;
}

.bw-msg-detail-meta {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
  line-height: 1.5;
}

.bw-msg-detail-body {
  white-space: pre-wrap;
  line-height: 1.45;
}

.bw-msg-detail-empty {
  padding: 8px 0;
}

.bw-msg-compose-note {
  margin: 0 0 8px;
}

.bw-msg-compose-label {
  display: block;
  font-weight: bold;
  margin: 6px 0 2px;
  color: var(--bw-blue-dark);
}

.bw-msg-compose input[type="text"],
.bw-msg-compose textarea {
  width: 100%;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 4px;
}

.bw-msg-compose textarea {
  resize: vertical;
  min-height: 56px;
}

.bw-msg-compose-actions {
  margin-top: 6px;
  text-align: right;
}

@media (max-width: 640px) {
  .bw-msg-col-inbox,
  .bw-msg-col-detail {
    display: block;
    width: 100% !important;
    padding: 8px;
  }

  .bw-msg-from,
  .bw-msg-date {
    width: auto;
  }

  .bw-msg-snippet {
    display: none;
  }
}
/* === T-008 photos === */

.bw-photos-main {
  padding: 10px 8px;
}

.bw-photos-intro {
  margin: 0 0 12px;
}

.bw-photos-view-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: bold;
  color: var(--bw-blue-dark);
}

.bw-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.bw-albums-grid-item {
  min-width: 0;
}

.bw-album-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--bw-border);
  background: var(--bw-panel);
  color: var(--bw-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bw-album-card:hover,
.bw-album-card.is-selected {
  border-color: var(--bw-blue);
  background: #edf0f7;
}

.bw-album-cover {
  display: block;
  margin-bottom: 6px;
  background: #d8dfea;
  text-align: center;
  line-height: 0;
}

.bw-album-cover img {
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #c4cde0;
}

.bw-album-meta {
  display: block;
}

.bw-album-title {
  display: block;
  font-weight: bold;
  color: var(--bw-link);
}

.bw-album-count {
  display: block;
  color: var(--bw-muted);
  font-size: 10px;
}

.bw-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.bw-photo-thumb {
  background: #d8dfea;
  border: 1px solid var(--bw-border);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
}

.bw-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #b8c4d8;
}

@media (max-width: 640px) {
  .bw-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .bw-thumbs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .bw-photos-main {
    padding: 8px;
  }
}
/* === T-009 about === */

.bw-about-wrap {
  padding: 20px 12px 28px;
}

.bw-about-panel {
  max-width: 640px;
  margin: 0 auto;
}

.bw-about-body {
  line-height: 1.45;
}

.bw-about-lead {
  margin: 0 0 14px;
  font-size: 13px;
}

.bw-about-heading {
  margin: 16px 0 8px;
  padding: 0;
  font-size: 12px;
  font-weight: bold;
  color: #3b5998;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bw-about-doctrine {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #3b5998;
  background: #eef2f9;
}

.bw-about-doctrine p {
  margin: 0 0 8px;
}

.bw-about-doctrine p:last-child {
  margin-bottom: 0;
}

.bw-about-links {
  margin: 18px 0 0;
  padding-top: 10px;
  border-top: 1px solid #d8dfea;
  font-size: 11px;
}

/* === T-052 settings === */

.bw-settings-wrap {
  padding: 16px 12px 28px;
}

.bw-settings-panel {
  max-width: 560px;
  margin: 0 auto;
}

.bw-settings-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  border-bottom: 1px solid #d8dfea;
}

.bw-settings-tab {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  color: var(--bw-link);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
}

.bw-settings-tab:hover {
  background: #edf0f7;
}

.bw-settings-tab.is-active {
  background: var(--bw-panel);
  border-color: #d8dfea;
  border-bottom-color: var(--bw-panel);
  color: var(--bw-text);
}

.bw-settings-pane[hidden] {
  display: none !important;
}

.bw-settings-form {
  margin: 0;
}

.bw-settings-field {
  margin-bottom: 10px;
}

.bw-settings-field label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 3px;
  color: var(--bw-muted);
}

.bw-settings-input,
.bw-settings-form textarea.bw-settings-input,
.bw-settings-form select.bw-settings-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 4px 6px;
}

.bw-settings-avatar-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.bw-settings-avatar-preview {
  border: 1px solid var(--bw-border);
  background: #d8dfea;
}

.bw-settings-file {
  font-size: 11px;
  max-width: 100%;
}

.bw-settings-hint {
  font-size: 10px;
  margin: 4px 0 0;
}

.bw-settings-actions {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bw-settings-actions-top {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8dfea;
}

.bw-settings-save-msg {
  font-size: 11px;
  color: var(--bw-online);
  font-weight: bold;
}

.bw-settings-account p {
  margin: 0 0 8px;
  font-size: 12px;
}

.bw-settings-logout-wrap {
  margin-top: 16px !important;
}

a.bw-settings-logout {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 640px) {
  .bw-settings-avatar-row {
    flex-direction: column;
  }
}

/* === wall comments + profile links === */

.bw-wall-avatar-link {
  float: left;
  display: block;
  line-height: 0;
}

.bw-wall-author {
  color: var(--bw-link);
  font-weight: bold;
  text-decoration: none;
  margin-right: 6px;
}

a.bw-wall-author:hover {
  text-decoration: underline;
}

.is-noop-profile-link {
  cursor: pointer;
}

/* === T-056 profile wire === */

.bw-profile-actions-wrap {
  margin-top: 8px;
}

.bw-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.bw-profile-actions .bw-btn {
  margin: 0;
}

.bw-profile-compose {
  margin-bottom: 8px;
}

.bw-wall-comment-toggle {
  margin-left: 8px;
}

.bw-wall-comments {
  margin-top: 8px;
  padding: 8px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
}

.bw-wall-comment-form {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  align-items: center;
}

.bw-wall-comment-form .bw-wall-comment-input {
  flex: 1;
  min-width: 0;
}

.bw-wall-comment {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
}

.bw-wall-comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.bw-wall-comment-avatar-link {
  float: left;
  margin-right: 8px;
  line-height: 0;
}

.bw-wall-comment-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bw-border);
  background: #d8dfea;
}

.bw-wall-comment-body {
  margin-left: 40px;
  font-size: 11px;
}

.bw-wall-comment-author {
  font-weight: bold;
  color: var(--bw-link);
  text-decoration: none;
  margin-right: 6px;
}

.bw-wall-comment-time {
  color: var(--bw-muted);
  font-size: 10px;
}

.bw-wall-comment-text {
  margin-top: 2px;
}

.bw-wall-comment-form {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.bw-wall-comment-input {
  flex: 1;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 4px;
}

.bw-wall-comments-empty {
  font-size: 10px;
  margin-bottom: 4px;
}

/* === conversations / chat thread === */

.bw-conv-list {
  max-height: 480px;
  overflow: auto;
}

.bw-conv-row,
.bw-msg-row.bw-conv-row {
  display: block;
  padding: 8px 6px;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

.bw-conv-row:hover,
.bw-conv-row.is-active {
  background: #edf0f7;
}

.bw-conv-row.is-unread .bw-conv-name,
.bw-conv-row.is-unread .bw-conv-preview {
  font-weight: bold;
}

.bw-conv-avatar {
  float: left;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bw-border);
  background: #d8dfea;
  margin-right: 8px;
}

.bw-conv-meta {
  margin-left: 50px;
}

.bw-conv-name {
  font-weight: bold;
  color: var(--bw-link);
  margin-right: 8px;
}

.bw-conv-time {
  float: right;
  color: var(--bw-muted);
  font-size: 10px;
}

.bw-conv-preview {
  color: var(--bw-muted);
  font-size: 11px;
  margin-top: 2px;
}

.bw-chat-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: bold;
}

.bw-chat-thread-body {
  max-height: 280px;
  overflow: auto;
  margin-bottom: 8px;
  padding: 4px 0;
}

.bw-chat-bubble {
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #f0f2f7;
  border: 1px solid #d8dfea;
}

.bw-chat-bubble.is-mine {
  background: #eef8e6;
  border-color: #c5dfb0;
}

.bw-chat-bubble-meta {
  font-size: 10px;
  color: var(--bw-muted);
  margin-bottom: 2px;
}

.bw-chat-from {
  font-weight: bold;
  color: var(--bw-link);
  text-decoration: none;
  margin-right: 6px;
}

.bw-chat-reply textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 4px;
}

.bw-chat-quick-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
  font-family: var(--bw-font);
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid var(--bw-border);
  background: #fff;
  color: var(--bw-link);
  cursor: pointer;
  position: relative;
}

.bw-chat-quick-btn:hover {
  background: #edf0f7;
}

.bw-chat-quick-btn.is-unread {
  background: #eef2fa;
  border-color: #8a9cc2;
}

.bw-chat-quick-btn.is-unread strong {
  font-weight: bold;
  color: #1c2a4a;
}

.bw-chat-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #3b5998;
  vertical-align: middle;
}

.bw-feed-friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bw-feed-friends-list li {
  margin: 0 0 6px;
  padding: 0;
}

.bw-feed-friends-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bw-link);
  text-decoration: none;
}

.bw-feed-friends-list a:hover {
  text-decoration: underline;
}

.bw-feed-friends-list img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bw-border);
  background: #d8dfea;
  flex-shrink: 0;
}

/* === floating chat window === */

#bw-chat-root {
  position: relative;
  z-index: 1000;
}

.bw-chat-window {
  position: fixed;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #3b5998;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  font-family: var(--bw-font);
  min-width: 280px;
  min-height: 220px;
}

.bw-chat-window[hidden] {
  display: none !important;
}

.bw-chat-window-title {
  background: linear-gradient(to bottom, #6d84b4, #3b5998);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 6px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.bw-chat-window-controls {
  cursor: default;
}

.bw-chat-window-controls button {
  background: #d8dfea;
  border: 1px solid #133783;
  color: #133783;
  font-size: 11px;
  width: 18px;
  height: 18px;
  line-height: 14px;
  padding: 0;
  margin-left: 2px;
  cursor: pointer;
  pointer-events: auto;
}

.bw-chat-window-body {
  flex: 1;
  overflow: auto;
  padding: 8px;
  background: #fafafa;
}

.bw-chat-window-reply {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-top: 1px solid #d8dfea;
  background: #eee;
}

.bw-chat-window-reply input {
  flex: 1;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 3px 4px;
}

.bw-chat-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  background: linear-gradient(
    135deg,
    transparent 50%,
    #3b5998 50%,
    #3b5998 60%,
    transparent 60%,
    transparent 70%,
    #3b5998 70%,
    #3b5998 80%,
    transparent 80%
  );
}

.bw-chat-dock {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100vw - 24px);
}

.bw-chat-dock[hidden] {
  display: none !important;
}

.bw-chat-dock-btn {
  font-family: var(--bw-font);
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  border: 2px solid #133783;
  background: linear-gradient(to bottom, #6d84b4, #3b5998);
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* === T-059 post media === */

.bw-compose-media {
  margin-top: 6px;
  padding: 6px 0 2px;
  border-top: 1px solid #d8dfea;
}

.bw-compose-media-label {
  display: block;
  font-size: 10px;
  font-weight: bold;
  color: #3b5998;
  margin-bottom: 3px;
}

.bw-compose-file {
  font-family: var(--bw-font);
  font-size: 11px;
  width: 100%;
}

.bw-compose-media-preview {
  margin-top: 6px;
  max-width: 100%;
}

.bw-compose-media-preview-img,
.bw-compose-media-preview-video {
  display: block;
  max-width: 220px;
  max-height: 160px;
  border: 1px solid #b7b7b7;
  background: #eee;
}

.bw-compose-media-error {
  margin: 4px 0 0;
  font-size: 10px;
  color: #a00;
}

.bw-wall-media {
  margin: 6px 0 4px;
  max-width: 100%;
}

.bw-wall-media-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #b7b7b7;
  background: #f0f0f0;
}

.bw-wall-video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border: 1px solid #b7b7b7;
  background: #111;
}

@media (max-width: 640px) {
  .bw-compose-media-preview-img,
  .bw-compose-media-preview-video {
    max-width: 100%;
  }
}


/* —— Feedback forum shell (T-014; board UI in T-016) —— */

.bw-feedback-panel .bw-feedback-intro {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.4;
}

.bw-feedback-board {
  min-height: 48px;
}

.bw-feedback-empty {
  margin: 0;
  font-size: 11px;
}

.bw-feedback-filter-list {
  font-size: 11px;
  line-height: 1.5;
}

.bw-feedback-filter {
  color: var(--bw-link);
  text-decoration: none;
}

.bw-feedback-filter:hover {
  text-decoration: underline;
}

.bw-feedback-filter.is-active {
  font-weight: bold;
  color: var(--bw-text);
  text-decoration: none;
}

.bw-feedback-filter-hint {
  margin: 6px 0 0;
  font-size: 10px;
}

.bw-feedback-compose {
  margin-bottom: 10px;
}

.bw-feedback-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 3px;
}

.bw-feedback-compose textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 4px;
  resize: vertical;
  background: #fff;
}

.bw-feedback-slider-block {
  margin: 8px 0;
}

.bw-feedback-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  color: var(--bw-muted);
  margin-bottom: 2px;
}

.bw-feedback-sat-value {
  font-weight: bold;
  font-size: 12px;
}

.bw-feedback-slider {
  --bw-sat-thumb: #8b0000;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to right,
    #8b0000 0%,
    #8b4500 25%,
    #8b8b00 50%,
    #458b00 75%,
    #006400 100%
  );
  border: 1px solid var(--bw-border);
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

.bw-feedback-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 18px;
  background: var(--bw-sat-thumb, #8b0000);
  border: 1px solid #333;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.bw-feedback-slider::-moz-range-thumb {
  width: 14px;
  height: 18px;
  background: var(--bw-sat-thumb, #8b0000);
  border: 1px solid #333;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.bw-feedback-slider::-moz-range-track {
  height: 16px;
  background: transparent;
  border: none;
}

.bw-feedback-slider-hint {
  margin: 3px 0 0;
  font-size: 10px;
}

.bw-feedback-compose-actions {
  margin-top: 6px;
}

.bw-feedback-compose-status {
  margin-left: 8px;
  font-size: 10px;
}

.bw-feedback-list-wrap {
  margin-top: 4px;
}

.bw-feedback-item {
  border-bottom: 1px solid #d8dfea;
  padding: 8px 0;
}

.bw-feedback-item:last-child {
  border-bottom: 0;
}

.bw-feedback-item-head {
  font-size: 10px;
  margin-bottom: 3px;
}

.bw-feedback-status {
  display: inline-block;
  padding: 0 4px;
  margin-right: 6px;
  border: 1px solid var(--bw-border);
  background: #eceff5;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.bw-feedback-status-open {
  background: #e8f0d8;
  border-color: #8aaa4a;
  color: #3d6a08;
}

.bw-feedback-status-closed {
  background: #eee;
  border-color: #999;
  color: #666;
}

.bw-feedback-sat-chip {
  display: inline-block;
  min-width: 22px;
  padding: 0 4px;
  margin-right: 6px;
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  text-align: center;
  border: 1px solid #333;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.bw-feedback-item-body {
  font-size: 11px;
  line-height: 1.4;
  margin: 2px 0 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bw-feedback-item-actions {
  font-size: 10px;
  color: var(--bw-muted);
  margin-bottom: 6px;
}

.bw-feedback-item-actions a {
  margin-right: 4px;
}

.bw-feedback-item-actions .bw-muted {
  margin-right: 8px;
}

.bw-feedback-engagement {
  margin-left: 4px;
}

.bw-feedback-comments {
  margin: 4px 0 4px 8px;
  border-left: 2px solid #d8dfea;
  padding-left: 8px;
}

.bw-feedback-comment {
  margin-bottom: 4px;
}

.bw-feedback-comment-body {
  font-size: 11px;
  line-height: 1.35;
}

.bw-feedback-comment-meta {
  font-size: 9px;
}

.bw-feedback-comments-empty {
  margin: 0 0 4px;
  font-size: 10px;
}

.bw-feedback-comment-form {
  margin: 4px 0 0 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.bw-feedback-comment-input {
  flex: 1;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 3px 4px;
}

/* T-018 — developer notice + admin affordances */

.bw-feedback-developer-notice {
  margin: 4px 0 8px;
  padding: 6px 8px;
  border: 1px solid #c9a227;
  background: #fff8db;
  box-shadow: inset 0 0 0 1px #fff3b0;
}

.bw-feedback-developer-notice-label {
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7a5b00;
  margin-bottom: 2px;
}

.bw-feedback-developer-notice-body {
  font-size: 11px;
  line-height: 1.4;
  color: #3d2e00;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bw-feedback-admin {
  margin: 4px 0 8px;
  padding: 6px 8px;
  border: 1px dashed #8b9dc3;
  background: #f5f7fb;
}

.bw-feedback-admin-close {
  margin-bottom: 6px;
}

.bw-feedback-notice-form .bw-feedback-label {
  display: block;
  margin-bottom: 2px;
}

.bw-feedback-notice-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--bw-font);
  font-size: 11px;
  border: 1px solid var(--bw-border);
  padding: 3px 4px;
  margin-bottom: 4px;
  resize: vertical;
}

.bw-feedback-admin-comment-form {
  margin: 4px 0 0 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.bw-feedback-comment-admin {
  padding: 3px 4px;
  border-left: 3px solid #3b5998;
  background: #eef2f8;
}

.bw-feedback-comment-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  color: #3b5998;
  margin-right: 4px;
}

/* === T-017 admin RBAC === */

.bw-admin-panel {
  margin-bottom: 10px;
}

.bw-admin-status {
  font-size: 11px;
  margin: 0 0 8px;
  min-height: 1.2em;
}

.bw-admin-status-error {
  color: #8b0000;
  font-weight: bold;
}

.bw-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.bw-admin-table th,
.bw-admin-table td {
  border: 1px solid #d8dfea;
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
}

.bw-admin-table th {
  background: #eceff5;
  color: #3b5998;
  font-weight: bold;
}

.bw-admin-grant-form .bw-admin-field {
  margin-bottom: 8px;
}

.bw-admin-grant-form label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

.bw-admin-input {
  font-family: var(--bw-font);
  font-size: 11px;
  width: 100%;
  max-width: 240px;
  border: 1px solid var(--bw-border);
  padding: 3px 4px;
}

.bw-admin-check {
  display: block;
  font-size: 11px;
  font-weight: normal;
  margin: 4px 0;
}

.bw-admin-actions {
  margin-top: 8px;
}

.bw-admin-submit,
.bw-admin-revoke {
  font-family: var(--bw-font);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border: 1px solid #29447e;
  background: #5c75a9;
  color: #fff;
  cursor: pointer;
}

.bw-admin-revoke {
  background: #8b9dc3;
  border-color: #627aad;
}

/* —— Developer tools (/dev.html) —— */
.bw-dev-env {
  display: inline-block;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid #3b5998;
  background: #d8dfea;
  color: #1c2a4d;
  margin-bottom: 8px;
}
.bw-dev-env.is-live {
  background: #ffebe8;
  border-color: #dd3c10;
  color: #8c1c00;
}
.bw-dev-row {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  border: 1px solid #94a3c4;
  background: #f7f7f7;
}
.bw-dev-row > div {
  display: table-cell;
  vertical-align: middle;
  padding: 8px 10px;
}
.bw-dev-row-label {
  font-weight: bold;
}
.bw-dev-row-meta {
  color: #555;
  font-size: 10px;
  font-weight: normal;
}
.bw-dev-row-control {
  width: 72px;
  text-align: right;
}
.bw-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 20px;
  vertical-align: middle;
}
.bw-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bw-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c4cde0;
  border: 1px solid #627aad;
  border-radius: 2px;
}
.bw-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 22px;
  left: 2px;
  top: 2px;
  background: #fff;
  border: 1px solid #627aad;
  border-radius: 1px;
}
.bw-toggle input:checked + .bw-toggle-slider {
  background: #3b5998;
  border-color: #1d2a5b;
}
.bw-toggle input:checked + .bw-toggle-slider:before {
  left: 26px;
  background: #eceff5;
}
.bw-toggle input:disabled + .bw-toggle-slider {
  opacity: 0.55;
  cursor: not-allowed;
}
.bw-toggle-text {
  position: absolute;
  right: 5px;
  top: 2px;
  font-size: 9px;
  font-weight: bold;
  color: #1d2a5b;
  pointer-events: none;
}
.bw-toggle input:checked + .bw-toggle-slider .bw-toggle-text {
  left: 5px;
  right: auto;
  color: #fff;
}
.bw-dev-locked {
  color: #8c1c00;
  font-size: 10px;
}

.bw-dev-login {
  margin-top: 8px;
}
.bw-dev-login-box {
  margin-top: 8px;
}

/* —— Admin session length chart (OG FB style) —— */
.bw-panel-head-sub {
  float: right;
  font-weight: normal;
  font-size: 10px;
  color: #d8dfea;
}
.bw-sess-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
}
.bw-sess-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: bold;
  color: #333;
}
.bw-sess-control .bw-admin-input {
  min-width: 180px;
}
.bw-sess-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #333;
}
.bw-sess-chart-mount {
  margin-top: 4px;
}
.bw-sess-chart-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #94a3c4;
  background: linear-gradient(#ffffff, #edf0f5);
  min-height: 160px;
}
.bw-sess-y {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #b0bdd4;
  background: #f5f7fb;
  position: relative;
}
.bw-sess-y-title {
  flex: 0 0 auto;
  padding: 4px 4px 0;
  font-size: 9px;
  color: #555;
  text-align: center;
  line-height: 1.2;
}
.bw-sess-y-scale {
  flex: 1 1 auto;
  position: relative;
  margin: 4px 0 18px;
  min-height: 120px;
}
.bw-sess-y-tick {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  pointer-events: none;
}
.bw-sess-y-label {
  font-size: 9px;
  color: #333;
  white-space: nowrap;
  padding-right: 2px;
}
.bw-sess-y-line {
  flex: 0 0 6px;
  height: 1px;
  background: #94a3c4;
}
.bw-sess-chart {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 160px;
  padding: 8px 6px 4px;
  overflow-x: auto;
  box-sizing: border-box;
}
.bw-sess-bar {
  flex: 0 0 auto;
  width: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.bw-sess-bar-plot {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  margin-bottom: 2px;
}
.bw-sess-bar-fill {
  width: 10px;
  min-height: 2px;
  background: #3b5998;
  border: 1px solid #29487d;
  box-sizing: border-box;
}
.bw-sess-bar.is-empty .bw-sess-bar-fill {
  background: #d8dfea;
  border-color: #b0bdd4;
}
.bw-sess-bar-label {
  flex: 0 0 auto;
  font-size: 9px;
  color: #666;
  line-height: 1;
}
.bw-sess-note {
  margin-top: 8px;
  font-size: 11px;
}

