/* File: ~/Desktop/HTML-CSS_Extract/9.16.26_UI_Updates/Changed-Code/main.css */
/* ============================================================
   GRYD MAIN STYLESHEET

   Brand/UI baseline:
   Primary:   #6633FF
   Info:      #0284C7
   Secondary: #475569
   Success:   #16A34A
   Warning:   #D97706
   Danger:    #DC2626

   Third-party framework files should NOT be copied into this
   stylesheet. Bootstrap, Tailwind/DaisyUI, Font Awesome, etc.
   are loaded separately from CDNs in base.html.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ============================================================
   1. GRYD DESIGN TOKENS
   ============================================================ */

:root {
  --gryd-primary: #6633FF;
  --gryd-primary-hover: #5522DD;
  --gryd-primary-active: #4419B8;
  --gryd-primary-soft: #EEE9FF;

  --gryd-info: #0284C7;
  --gryd-info-hover: #0369A1;

  --gryd-secondary: #475569;

  --gryd-success: #16A34A;
  --gryd-warning: #D97706;
  --gryd-danger: #DC2626;

  --gryd-neutral: #0B1220;

  --gryd-base-100: #FFFFFF;
  --gryd-base-200: #F6F7FB;
  --gryd-base-300: #E9ECF5;
  --gryd-base-content: #0B1220;

  --gryd-header-height: 64px;
  --gryd-sidebar-width: 270px;

  /*
   * Redesign palette (dashboard, feed, left panel, My profile,
   * My Team). Neutral greys, purple tints and status tints used by
   * the gryd-* components further down. Use these instead of hex.
   */
  --gryd-white: #FFFFFF;
  --gryd-ink: #101828;            /* headings, values */
  --gryd-ink-700: #364153;        /* body text */
  --gryd-ink-500: #6A7282;        /* labels, muted text */
  --gryd-ink-400: #99A1AF;        /* small group titles */
  --gryd-line: #E5E7EB;           /* card borders */
  --gryd-line-soft: #F0F1F4;      /* row dividers, hover */
  --gryd-line-strong: #D0D5DD;    /* dashed empty boxes */
  --gryd-surface-muted: #FAFAFB;
  --gryd-surface-subtle: #FCFCFD;

  --gryd-primary-deep: #4422AB;   /* purple text on light purple */
  --gryd-primary-tint: #F5F1FF;   /* lightest purple fill */
  --gryd-primary-wash: #F7F3FF;   /* header gradients */
  --gryd-primary-mid: #D9CCFF;
  --gryd-primary-border: #C9B8FF;
  --gryd-primary-bright: #7A4DFF;

  --gryd-success-soft: #DCFAE6;
  --gryd-success-ink: #067647;
  --gryd-warning-soft: #FEF0C7;
  --gryd-warning-ink: #B54708;
  --gryd-warning-wash: #FFFAEB;
  --gryd-warning-line: #FEDF89;
  --gryd-warning-bright: #F79009;
  --gryd-warning-icon: #DC6803;
  --gryd-warning-text: #93370D;
  --gryd-warning-title: #7A2E0E;
  --gryd-danger-soft: #FEE4E2;
  --gryd-danger-rose: #C01048;
  --gryd-danger-ink: #B42318;
  --gryd-danger-wash: #FEF3F2;
  --gryd-danger-line: #FECDCA;

  /* avatar / accent colors (initials circles) */
  --gryd-accent-teal: #0E9384;
  --gryd-accent-pink: #DD2590;
  --gryd-accent-orange: #E62E05;
  --gryd-accent-blue: #2E90FA;
  --gryd-accent-violet: #7A5AF8;

  /* account level: Gold (Verification page, level pills) */
  --gryd-gold: #D4AF37;
  --gryd-gold-soft: #FBF5E1;
  --gryd-gold-line: #EBD9A0;
  --gryd-gold-ink: #7A5C0A;

  --gryd-radius-card: 16px;
  --gryd-shadow-card: 0 1px 2px rgba(16, 24, 40, .05);

  /*
   * DaisyUI compatibility.
   * These help align DaisyUI semantic colors with the
   * Gryd style guide when DaisyUI is loaded from its CDN.
   */
  --color-primary: var(--gryd-primary);
  --color-primary-content: #FFFFFF;

  --color-secondary: var(--gryd-secondary);
  --color-secondary-content: #FFFFFF;

  --color-accent: var(--gryd-info);
  --color-accent-content: #FFFFFF;

  --color-neutral: var(--gryd-neutral);
  --color-neutral-content: #E5E7EB;

  --color-base-100: var(--gryd-base-100);
  --color-base-200: var(--gryd-base-200);
  --color-base-300: var(--gryd-base-300);
  --color-base-content: var(--gryd-base-content);

  --color-info: var(--gryd-info);
  --color-info-content: #FFFFFF;

  --color-success: var(--gryd-success);
  --color-success-content: #FFFFFF;

  --color-warning: var(--gryd-warning);
  --color-warning-content: #FFFFFF;

  --color-error: var(--gryd-danger);
  --color-error-content: #FFFFFF;
}


/* ============================================================
   2. GLOBAL PAGE STYLES
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  background: #F7F7F7;
  color: #333333;

  /*
   * Reserve space for the fixed application header.
   */
  padding-top: calc(var(--gryd-header-height) + 16px);
  margin: 0;

  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #444444;
}

ul {
  margin: 0;
}

a {
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}


/* ============================================================
   3. LEGACY GRYD / BOOTSTRAP HEADER COMPATIBILITY
   ============================================================ */

.bg-steel {
  background: var(--gryd-primary);
}

.site-header .navbar-nav .nav-link {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  margin: 0 6px;
  font-size: 15px;
  letter-spacing: 1px;
}

.site-header .navbar-nav .nav-link:visited {
  color: rgba(255, 255, 255, 0.9);
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:active {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark.bg-steel .dropdown-toggle {
  color: #FFFFFF !important;
}

.navbar-dark.bg-steel .dropdown-toggle:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}


/* ============================================================
   4. CONTENT SECTIONS
   ============================================================ */

.content-section {
  background: #FFFFFF;
  padding: 10px 20px;
  border: 1px solid #DDDDDD;
  border-radius: 0.5rem;
  margin-bottom: 20px;
}


/* ============================================================
   5. ARTICLES / POSTS
   ============================================================ */

.article-title {
  color: #444444;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a.article-title:hover {
  color: var(--gryd-primary);
  text-decoration: none;
}

.article-content {
  white-space: pre-line;
}

.article-img {
  height: 65px;
  width: 65px;
  margin-right: 16px;
}

.article-metadata {
  padding-bottom: 1px;
  margin-bottom: 4px;
  border-bottom: 1px solid #E3E3E3;
}

.article-metadata a:hover {
  color: var(--gryd-primary);
  text-decoration: none;
}

.article-svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}


/* ============================================================
   6. PROFILE IMAGES
   ============================================================ */

.account-img {
  height: 170px;
  width: 170px;
  margin: 20px auto 0 auto;
  padding: 5px;

  border: 5px solid #EBEBEB;
  border-radius: 50%;

  object-fit: cover;
  object-position: center;

  box-sizing: border-box;
  display: block;
  background-color: #FFFFFF;

  transform: none;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.account-img-lg {
  width: 170px;
  height: 170px;
  aspect-ratio: 1 / 1;

  border-radius: 50%;

  object-fit: cover;
  object-position: center;

  display: block;
  box-sizing: border-box;

  border: 5px solid #EBEBEB;
  padding: 0;
  margin: 0 auto;

  background-color: #FFFFFF;

  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}


/* ============================================================
   7. ONLINE / OFFLINE STATUS INDICATORS
   ============================================================ */

.online-circle {
  width: 24px;
  height: 24px;

  border-radius: 50%;
  background-color: var(--gryd-success);
  border: 3px solid #FFFFFF;

  bottom: 0;
  right: 10px;
  position: absolute;
}

.offline-circle {
  width: 24px;
  height: 24px;

  border-radius: 50%;
  background-color: #6E6E6E;
  border: 3px solid #FFFFFF;

  bottom: 0;
  right: 10px;
  position: absolute;
}

.img-cont {
  height: 170px;
  width: 170px;
  position: relative;
}

.img-cont2 {
  height: 55px;
  width: 55px;
  position: relative;
}

.img-cont3 {
  height: 78px;
  width: 78px;
  position: relative;
}

.online-circle3 {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background-color: var(--gryd-success);
  border: 3px solid #FFFFFF;

  bottom: -16px;
  right: 2px;
  position: absolute;
}

.offline-circle3 {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background-color: #6E6E6E;
  border: 3px solid #FFFFFF;

  bottom: -16px;
  right: 2px;
  position: absolute;
}

.online-circle2 {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background-color: var(--gryd-success);
  border: 3px solid #FFFFFF;

  bottom: 0;
  right: 6px;
  position: absolute;
}

.offline-circle2 {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background-color: #6E6E6E;
  border: 3px solid #FFFFFF;

  bottom: 0;
  right: 6px;
  position: absolute;
}

.online-circle4 {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background-color: var(--gryd-success);
  border: 3px solid #FFFFFF;

  bottom: 10px;
  right: 10px;
  position: absolute;
}

.offline-circle4 {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background-color: #6E6E6E;
  border: 3px solid #FFFFFF;

  bottom: 10px;
  right: 10px;
  position: absolute;
}

.account-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-heading {
  font-size: 2.5rem;
}


/* ============================================================
   8. SEARCH BAR
   ============================================================ */

#searchbar form {
  width: auto;

  display: flex;
  flex-direction: row;

  border-radius: 50px;
  padding: 3px 15px;

  background-color: transparent;
  border: 1px solid #E4E4E4;

  margin-right: 10px;
}

#searchbar form input::placeholder {
  color: #FFFFFF;
  font-size: 14px;
}

#searchbar form input {
  border: none;
  outline: none;

  color: #FFFFFF;
  font-size: 15px;

  flex: 1;
  background-color: transparent;
}

.search-btn {
  color: #FFFFFF;

  border: none;
  width: 25px;

  padding-left: 10px;
  border-left: 1px solid rgba(202, 202, 202, 0.829);

  outline: none;
  background-color: transparent;
}

.search-btn i {
  font-size: 16px;
}

@media only screen and (max-width: 991px) {
  #searchbar form {
    border-radius: 0;
    margin: 12px 10px 10px 0;
  }
}


/* ============================================================
   9. STANDARD BUTTONS
   ============================================================ */

.btn {
  border-radius: 0.5rem;
  padding: 8px 15px;
  font-size: 14px;
}


/* ============================================================
   10. PRIMARY BUTTONS
   Gryd brand action
   ============================================================ */

.btn-primary,
.btn-primary:visited {
  background-color: var(--gryd-primary) !important;
  border-color: var(--gryd-primary) !important;
  color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gryd-primary-hover) !important;
  border-color: var(--gryd-primary-hover) !important;
  color: #FFFFFF !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: var(--gryd-primary-active) !important;
  border-color: var(--gryd-primary-active) !important;
  color: #FFFFFF !important;
}


/* ============================================================
   11. OUTLINE PRIMARY
   ============================================================ */

.btn-outline-primary {
  background-color: transparent !important;
  color: var(--gryd-primary) !important;
  border-color: var(--gryd-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--gryd-primary) !important;
  border-color: var(--gryd-primary) !important;
  color: #FFFFFF !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--gryd-primary-active) !important;
  border-color: var(--gryd-primary-active) !important;
  color: #FFFFFF !important;
}


/* ============================================================
   12. INFORMATION BUTTONS
   Blue is intentionally reserved for informational UI.
   ============================================================ */

.btn-info {
  background-color: var(--gryd-info) !important;
  border-color: var(--gryd-info) !important;
  color: #FFFFFF !important;
}

.btn-info:hover,
.btn-info:focus {
  background-color: var(--gryd-info-hover) !important;
  border-color: var(--gryd-info-hover) !important;
  color: #FFFFFF !important;
}

.btn-outline-info {
  background-color: transparent !important;
  color: var(--gryd-info) !important;
  border-color: var(--gryd-info) !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus {
  background-color: var(--gryd-info) !important;
  border-color: var(--gryd-info) !important;
  color: #FFFFFF !important;
}


/* ============================================================
   13. SECONDARY BUTTONS
   ============================================================ */

.btn-secondary {
  background-color: var(--gryd-secondary) !important;
  border-color: var(--gryd-secondary) !important;
  color: #FFFFFF !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #334155 !important;
  border-color: #334155 !important;
  color: #FFFFFF !important;
}

.btn-outline-secondary {
  background-color: transparent !important;
  color: var(--gryd-secondary) !important;
  border-color: var(--gryd-secondary) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--gryd-secondary) !important;
  border-color: var(--gryd-secondary) !important;
  color: #FFFFFF !important;
}


/* ============================================================
   14. SEMANTIC BUTTONS
   ============================================================ */

.btn-success {
  background-color: var(--gryd-success) !important;
  border-color: var(--gryd-success) !important;
  color: #FFFFFF !important;
}

.btn-warning {
  background-color: var(--gryd-warning) !important;
  border-color: var(--gryd-warning) !important;
  color: #FFFFFF !important;
}

.btn-danger {
  background-color: var(--gryd-danger) !important;
  border-color: var(--gryd-danger) !important;
  color: #FFFFFF !important;
}

.btn-outline-danger {
  background-color: transparent !important;
  border-color: var(--gryd-danger) !important;
  color: var(--gryd-danger) !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background-color: var(--gryd-danger) !important;
  border-color: var(--gryd-danger) !important;
  color: #FFFFFF !important;
}


/* ============================================================
   15. POST ACTION BUTTONS
   ============================================================ */

.btnhrt {
  padding: 0;
}

.btnhrt i,
.btnhrt i.icon-blue,
.btnhrt i.icon-primary {
  color: var(--gryd-primary) !important;
}

.btncmt {
  padding: 0;
}

.btncmt i {
  font-size: 22px;
  color: var(--gryd-primary);
}

.btnsave {
  font-size: 24px;
  padding: 0;
  color: #FFD23C;
}

.btnsave:hover {
  color: #FFD23C;
  cursor: pointer;
}

.btnedit {
  font-size: 22px;
  padding: 0;
  color: var(--gryd-primary);
}

.btndel {
  font-size: 22px;
  padding: 0;
  color: var(--gryd-danger);
}


/* ============================================================
   16. TEXT / FORM HELPERS
   ============================================================ */

.custom-txt {
  width: 100%;
}


/* ============================================================
   17. CHAT / MESSAGES
   ============================================================ */

.messages-box,
.chat-box {
  height: 58vh;
  overflow-y: auto;
}


/* ============================================================
   18. SCROLLBARS
   ============================================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  width: 5px;
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  width: 1em;
  background-color: #D4D4D4;
  border-radius: 4px;
}


/* ============================================================
   19. BRAND ICONS

   icon-blue is retained ONLY as a legacy compatibility alias.
   New markup should use icon-primary.

   Both intentionally render in GRYD PURPLE, not information
   blue, because these are action/brand icons.
   ============================================================ */

.icon-primary,
i.icon-primary,
.dropdown-item i.icon-primary {
  color: var(--gryd-primary) !important;
}

/* Legacy templates */
.icon-blue,
i.icon-blue,
.dropdown-item i.icon-blue,
.btnhrt i.icon-blue {
  color: var(--gryd-primary) !important;
}


/* ============================================================
   20. NOTIFICATION BADGE
   ============================================================ */

.notify-badge {
  position: absolute;

  right: -10px;
  bottom: 3px;

  background: #FFFFFF;

  box-shadow: 0 0 5px 0.3px rgba(0, 0, 0, 0.25);

  text-align: center;
  border-radius: 100%;

  width: 42px;
  height: 42px;

  color: #808080;

  padding: 5px 10px;
  font-size: 20px;
}


/* ============================================================
   21. BRAND TEXT / BACKGROUND UTILITIES
   ============================================================ */

.text-primary,
a.text-primary {
  color: var(--gryd-primary) !important;
}

a.text-primary:hover,
.text-primary:hover {
  color: var(--gryd-primary-hover) !important;
}

.bg-primary {
  background-color: var(--gryd-primary) !important;
}

.border-primary {
  border-color: var(--gryd-primary) !important;
}

.bg-gryd-primary {
  background-color: var(--gryd-primary) !important;
}

.bg-gryd-primary-soft {
  background-color: var(--gryd-primary-soft) !important;
}

.border-gryd-primary {
  border-color: var(--gryd-primary) !important;
}

.text-gryd-primary {
  color: var(--gryd-primary) !important;
}

.text-gryd-info {
  color: var(--gryd-info) !important;
}


/* ============================================================
   22. ACCESSIBILITY / FOCUS
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gryd-primary);
  outline-offset: 2px;
}


/* ============================================================
   23. NEW RESPONSIVE APPLICATION HEADER

   navbar.html now places:
   hamburger + branding + profile
   inside this single shared flex container.

   This replaces the old independently fixed positioning.
   ============================================================ */

.site-header {
  position: relative;
  z-index: 1030;
}

.gryd-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  height: var(--gryd-header-height);

  z-index: 1040;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 0 20px;

  background-color: #FFFFFF;
  border-bottom: 1px solid var(--gryd-base-300);

  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.08);
}

.gryd-header-left,
.gryd-header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.gryd-header-left {
  gap: 12px;
  flex: 1 1 auto;
}

.gryd-header-right {
  flex: 0 0 auto;
}


/* ============================================================
   24. HAMBURGER BUTTON
   ============================================================ */

.gryd-sidebar-toggle {
  appearance: none;

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid transparent;
  border-radius: 0.5rem;

  background-color: transparent;
  color: var(--gryd-neutral);

  font-size: 21px;

  cursor: pointer;

  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.gryd-sidebar-toggle:hover {
  color: var(--gryd-primary);
  background-color: var(--gryd-primary-soft);
}

.gryd-sidebar-toggle:active {
  color: var(--gryd-primary-active);
}

.gryd-sidebar-toggle:focus {
  outline: none;
}


/* ============================================================
   25. GRYD BRANDING
   ============================================================ */

.gryd-branding {
  min-width: 0;
}

.gryd-brand-link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  min-width: 0;

  color: var(--gryd-neutral);
  text-decoration: none !important;
}

.gryd-brand-link:hover {
  color: var(--gryd-primary);
  text-decoration: none;
}

.gryd-brand-logo {
  display: block;

  height: 32px;
  width: auto;

  max-width: 150px;

  flex: 0 0 auto;
}

.gryd-brand-name {
  color: var(--gryd-neutral);

  font-size: 18px;
  font-weight: 700;

  white-space: nowrap;
}

.gryd-brand-link:hover .gryd-brand-name {
  color: var(--gryd-primary);
}


/* ============================================================
   26. PROFILE AREA
   ============================================================ */

.gryd-user-profile {
  position: relative;
}

.gryd-profile-toggle {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  min-width: 0;

  padding: 6px 8px;

  border-radius: 0.5rem;

  color: var(--gryd-neutral) !important;
  text-decoration: none !important;

  font-weight: 500;

  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.gryd-profile-toggle:hover,
.gryd-profile-toggle:focus {
  color: var(--gryd-primary) !important;
  background-color: var(--gryd-primary-soft);

  text-decoration: none !important;
}

.gryd-profile-image {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  object-fit: cover;

  border: 2px solid var(--gryd-base-300);
}

.gryd-profile-toggle:hover .gryd-profile-image {
  border-color: var(--gryd-primary);
}

.gryd-profile-name {
  display: inline-block;
  white-space: nowrap;
}


/* Bootstrap adds a dropdown arrow. Keep it compact. */

.gryd-profile-toggle.dropdown-toggle::after {
  margin-left: 2px;
}


/* ============================================================
   27. PROFILE DROPDOWN
   ============================================================ */

.gryd-profile-menu {
  min-width: 240px;

  margin-top: 8px;

  padding: 8px 0;

  border: 1px solid var(--gryd-base-300);
  border-radius: 0.5rem;

  background-color: #FFFFFF;

  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.12);
}

.gryd-profile-menu .dropdown-item {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 9px 16px;

  color: var(--gryd-neutral);

  font-size: 14px;
  font-weight: 400;

  white-space: normal;
}

.gryd-profile-menu .dropdown-item i {
  width: 18px;

  flex: 0 0 18px;

  text-align: center;
}

.gryd-profile-menu .dropdown-item:hover,
.gryd-profile-menu .dropdown-item:focus {
  color: var(--gryd-primary);
  background-color: var(--gryd-primary-soft);
}

.gryd-profile-menu .dropdown-divider {
  border-top-color: var(--gryd-base-300);
}

/* Display-only header: who is signed in and the account type */
.gryd-profile-menu-head {
  display: flex;
  flex-direction: column;

  gap: 2px;

  padding: 6px 16px 4px;
}

.gryd-profile-menu-name {
  overflow: hidden;

  color: var(--gryd-neutral);

  font-size: 14px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.gryd-profile-menu-type {
  color: var(--gryd-ink-500);

  font-size: 12px;
}


/* ============================================================
   28. RESPONSIVE SIDEBAR
   ============================================================ */

.gryd-sidebar {
  position: fixed;

  top: var(--gryd-header-height);
  left: 0;
  bottom: 0;

  width: var(--gryd-sidebar-width);

  z-index: 1035;

  background-color: #FFFFFF;

  border-right: 1px solid var(--gryd-base-300);

  box-shadow: 6px 0 20px rgba(11, 18, 32, 0.08);

  overflow-y: auto;
  overflow-x: hidden;

  transform: translateX(-105%);

  transition: transform 0.25s ease;
}

.gryd-sidebar.active {
  transform: translateX(0);
}

.gryd-sidebar-content {
  padding: 16px 12px 30px;
}

.gryd-sidebar-nav,
.gryd-sidebar-submenu {
  list-style: none;

  padding: 0;
  margin: 0;
}

.gryd-sidebar-item {
  margin: 2px 0;
}


/* ============================================================
   29. SIDEBAR LINKS
   ============================================================ */

.gryd-sidebar-link,
.gryd-sidebar-submenu a {
  display: flex;
  align-items: center;

  gap: 10px;

  width: 100%;

  color: var(--gryd-neutral);

  text-decoration: none !important;

  border-radius: 0.5rem;

  font-family: 'Poppins', sans-serif;
}

.gryd-sidebar-link {
  padding: 10px 12px;

  font-size: 14px;
  font-weight: 500;
}

.gryd-sidebar-link > i {
  width: 20px;

  flex: 0 0 20px;

  color: var(--gryd-primary);

  text-align: center;
}

.gryd-sidebar-link:hover,
.gryd-sidebar-link:focus {
  color: var(--gryd-primary);

  background-color: var(--gryd-primary-soft);

  text-decoration: none;
}


/* ============================================================
   30. SIDEBAR SUBMENUS
   ============================================================ */

.gryd-sidebar-submenu {
  margin: 3px 0 8px;
  padding-left: 34px;
}

.gryd-sidebar-submenu li {
  margin: 1px 0;
}

.gryd-sidebar-submenu a {
  padding: 8px 10px;

  font-size: 13px;
  font-weight: 400;
}

.gryd-sidebar-submenu a:hover,
.gryd-sidebar-submenu a:focus {
  color: var(--gryd-primary);
  background-color: var(--gryd-primary-soft);
}

.gryd-sidebar-submenu a i {
  color: var(--gryd-primary);
}


/* ============================================================
   31. SIDEBAR COLLAPSE ARROWS
   ============================================================ */

.gryd-sidebar-link.dropdown-toggle::after {
  margin-left: auto;

  transition: transform 0.2s ease;
}

.gryd-sidebar-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}


/* ============================================================
   32. DAISYUI / TAILWIND BRAND COMPATIBILITY

   These explicit rules are intentional because the project
   loads DaisyUI from a CDN while also retaining legacy
   Bootstrap components.

   main.css is the final GRYD compatibility layer.
   ============================================================ */

.bg-primary {
  background-color: var(--gryd-primary) !important;
}

.text-primary {
  color: var(--gryd-primary) !important;
}

.border-primary {
  border-color: var(--gryd-primary) !important;
}

.bg-base-100 {
  background-color: var(--gryd-base-100) !important;
}

.bg-base-200 {
  background-color: var(--gryd-base-200) !important;
}

.border-base-300 {
  border-color: var(--gryd-base-300) !important;
}

.text-base-content {
  color: var(--gryd-base-content) !important;
}


/* ============================================================
   33. CARDS

   Keep card styling conservative because both Bootstrap and
   DaisyUI use the .card class.
   ============================================================ */

.card {
  border-radius: 0.5rem;
}

.card.bg-base-100 {
  background-color: var(--gryd-base-100) !important;
}

.card.bg-base-200 {
  background-color: var(--gryd-base-200) !important;
}

.card.border-base-300 {
  border-color: var(--gryd-base-300) !important;
}


/* ============================================================
   34. FORM FOCUS STATES
   ============================================================ */

.form-control:focus {
  border-color: var(--gryd-primary);

  box-shadow:
    0 0 0 0.2rem rgba(102, 51, 255, 0.18);
}

.custom-select:focus {
  border-color: var(--gryd-primary);

  box-shadow:
    0 0 0 0.2rem rgba(102, 51, 255, 0.18);
}


/* ============================================================
   35. LINKS USED AS BRAND ACTIONS
   ============================================================ */

.link-primary,
.gryd-link {
  color: var(--gryd-primary);
}

.link-primary:hover,
.gryd-link:hover {
  color: var(--gryd-primary-hover);
}


/* ============================================================
   36. MOBILE / TABLET RESPONSIVENESS
   ============================================================ */

@media (max-width: 767.98px) {

  :root {
    --gryd-header-height: 60px;
    --gryd-sidebar-width: min(86vw, 300px);
  }

  body {
    padding-top: calc(var(--gryd-header-height) + 12px);
  }

  .gryd-header {
    padding-left: 10px;
    padding-right: 10px;

    gap: 8px;
  }

  .gryd-header-left {
    gap: 6px;
  }

  .gryd-sidebar-toggle {
    width: 40px;
    height: 40px;

    flex-basis: 40px;

    font-size: 20px;
  }

  .gryd-brand-logo {
    height: 29px;
  }

  .gryd-brand-name {
    font-size: 17px;
  }

  /*
   * Hide username before it can collide with the logo.
   * The profile image remains available and still opens
   * the complete dropdown.
   */
  .gryd-profile-name {
    display: none;
  }

  .gryd-profile-toggle {
    padding: 4px;
    gap: 4px;
  }

  .gryd-profile-image {
    width: 32px;
    height: 32px;

    flex-basis: 32px;
  }

  .gryd-profile-menu {
    min-width: 220px;

    max-width: calc(100vw - 20px);
  }

  .content-section {
    padding: 10px 14px;
  }

  .account-heading {
    font-size: 2rem;
  }
}


/* ============================================================
   37. VERY SMALL SCREENS
   ============================================================ */

@media (max-width: 380px) {

  .gryd-header {
    padding-left: 6px;
    padding-right: 6px;
  }

  .gryd-header-left {
    gap: 3px;
  }

  .gryd-sidebar-toggle {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .gryd-brand-logo {
    height: 27px;
  }

  .gryd-brand-name {
    font-size: 15px;
  }

  .gryd-profile-image {
    width: 30px;
    height: 30px;

    flex-basis: 30px;
  }
}


/* ============================================================
   38. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ============================================================
   39. GRYD LEFT ACCOUNT PANEL + PAGE FRAME
   Used by blog/partials/dash_sidebar.html, which base.html shows
   for every logged-in account (business, customer, employee).

   .gryd-shell     - wrapper base.html puts around <main>. With the
                     panel it becomes two columns: panel 248px on the
                     left, page on the right. Without the panel it is
                     a plain wrapper.
   .gryd-dash-side - the panel itself.
   (Moved here from blog/css/gryd-side-panel.css, which was removed.)
   ============================================================ */

/* ---------- 1. page frame (only when the panel is present) ---------- */
.gryd-shell {
  display: flex;
  align-items: flex-start;
}
.gryd-shell > main.container {
  flex: 1 1 auto;
  min-width: 0;
}
.gryd-shell:has(> .gryd-dash-side) {
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 15px 48px;
}
.gryd-shell:has(> .gryd-dash-side) > .gryd-dash-side {
  flex: 0 0 248px;
  width: 248px;
}
.gryd-shell:has(> .gryd-dash-side) > main.container {
  max-width: none;
  margin: 0;
  padding-left: 15px;
  padding-right: 15px;
}

/* ---------- 2. the panel ---------- */
.gryd-dash-side {
  position: sticky;
  top: calc(var(--gryd-header-height, 64px) + 16px);
  background: var(--gryd-white);
  border: 1px solid var(--gryd-line);
  border-radius: var(--gryd-radius-card);
  box-shadow: var(--gryd-shadow-card);
  padding: 12px 10px;
  max-height: calc(100vh - var(--gryd-header-height, 64px) - 32px);
  overflow-y: auto;
  color: var(--gryd-ink-700);
  font-size: 14px;
  line-height: 22px;
}
.gryd-dash-side a { text-decoration: none; }
.gryd-dash-me {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 8px 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--gryd-line-soft);
}
.gryd-dash-me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.gryd-dash-me-name { color: var(--gryd-ink); font-weight: 600; font-size: 14px; line-height: 20px; }
.gryd-dash-me-sub { color: var(--gryd-ink-500); font-size: 12px; line-height: 16px; }
.gryd-dash-grp {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gryd-ink-400); padding: 14px 10px 4px;
}
.gryd-dash-nav { list-style: none; margin: 0; padding: 0; }
.gryd-dash-nav a,
.gryd-dash-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; border-radius: 10px; border: 0; background: transparent;
  color: var(--gryd-ink-700); font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.gryd-dash-nav a:hover, .gryd-dash-nav button:hover { background: var(--gryd-line-soft); color: var(--gryd-ink); }
.gryd-dash-nav a.is-active { background: var(--gryd-primary-tint); color: var(--gryd-primary-deep); }
.gryd-dash-nav i { width: 18px; text-align: center; color: var(--gryd-ink-500); font-size: 14px; }
.gryd-dash-nav a.is-active i { color: var(--gryd-primary); }
.gryd-dash-nav form { margin: 0; }
.gryd-dash-inline-form { margin: 0; display: contents; }
.gryd-dash-cnt {
  margin-left: auto; font-size: 11px; line-height: 18px; padding: 0 8px;
  border-radius: 99px; background: var(--gryd-primary-soft); color: var(--gryd-primary-deep); font-weight: 600;
}

/* ---------- small screens: panel stacks under the page content ---------- */
@media (max-width: 860px) {
  .gryd-shell:has(> .gryd-dash-side) { flex-direction: column; align-items: stretch; gap: 16px; padding: 0 0 32px; }
  .gryd-shell:has(> .gryd-dash-side) > .gryd-dash-side { flex: none; width: auto; margin: 0 15px; }
  .gryd-dash-side { position: static; max-height: none; order: 2; }
  .gryd-dash-side .gryd-dash-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .gryd-dash-side .gryd-dash-nav { grid-template-columns: 1fr; }
}


/* ============================================================
   40. GRYD DASHBOARD COMPONENTS
   Shared by the dashboard (blog/first.html) and the feed
   (blog/home.html): page frame, cards, buttons, tags, avatars,
   lists, empty states. Page-only pieces stay in each template.
   ============================================================ */

body:has(.gryd-dash) { background-color: var(--gryd-base-200); }
body:has(.gryd-dash) main.container { max-width: 1360px; }

.gryd-dash {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  padding: 8px 15px 48px;
  color: var(--gryd-ink-700);
  font-size: 14px;
  line-height: 22px;
}
.gryd-dash a { text-decoration: none; }
.gryd-dash h1, .gryd-dash h2, .gryd-dash h3 { color: var(--gryd-ink); margin: 0; font-weight: 600; }
.gryd-dash p { margin: 0; }

.gryd-dash-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gryd-dash-card {
  background: var(--gryd-white); border: 1px solid var(--gryd-line);
  border-radius: var(--gryd-radius-card); box-shadow: var(--gryd-shadow-card);
}
.gryd-dash-card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--gryd-line-soft);
}
.gryd-dash-card-h h2 { font-size: 16px; line-height: 24px; display: flex; align-items: center; gap: 8px; }
.gryd-dash-card-h h2 i { color: var(--gryd-primary); }
.gryd-dash-card-b { padding: 16px 20px; }
.gryd-dash-link { color: var(--gryd-primary); font-weight: 500; font-size: 13px; white-space: nowrap; }
.gryd-dash-link:hover { color: var(--gryd-primary-deep); text-decoration: underline; }
.gryd-dash-muted { color: var(--gryd-ink-500); }
.gryd-dash-small { font-size: 12px; line-height: 18px; }

/* buttons */
.gryd-dash-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--gryd-line); background: var(--gryd-white); color: var(--gryd-ink-700);
  font: 500 14px/1 Poppins, system-ui, sans-serif; white-space: nowrap; cursor: pointer;
}
.gryd-dash-btn:hover { background: var(--gryd-line-soft); color: var(--gryd-ink); }
.gryd-dash-btn-primary { background: var(--gryd-primary); border-color: var(--gryd-primary); color: var(--gryd-white); }
.gryd-dash-btn-primary:hover { background: var(--gryd-primary-hover); border-color: var(--gryd-primary-hover); color: var(--gryd-white); }
.gryd-dash-btn-soft { background: var(--gryd-primary-tint); border-color: var(--gryd-primary-soft); color: var(--gryd-primary-deep); }
.gryd-dash-btn-soft:hover { background: var(--gryd-primary-soft); color: var(--gryd-primary-deep); }
.gryd-dash-btn-white { background: var(--gryd-white); border-color: var(--gryd-white); color: var(--gryd-primary-deep); }
.gryd-dash-btn-white:hover { background: var(--gryd-primary-tint); color: var(--gryd-primary-deep); }
.gryd-dash-btn-ghostw { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: var(--gryd-white); }
.gryd-dash-btn-ghostw:hover { background: rgba(255,255,255,.22); color: var(--gryd-white); }
.gryd-dash-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.gryd-dash-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* greeting */
.gryd-dash-hello {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--gryd-primary-wash) 0%, var(--gryd-white) 100%);
}
.gryd-dash-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gryd-primary-deep); }
.gryd-dash-hello h1 { font-size: 24px; line-height: 32px; letter-spacing: -.01em; margin-top: 2px; }
.gryd-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gryd-dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.gryd-dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.gryd-dash-gryd-body > span, .gryd-dash-li-grow > span { display: block; }

.gryd-dash-av {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--gryd-white); font-weight: 700; font-size: 14px;
  background: var(--gryd-primary);
}
.gryd-dash-av-round { border-radius: 50%; width: 36px; height: 36px; font-size: 12px; }
.gryd-dash-av-1 { background: var(--gryd-primary); } .gryd-dash-av-2 { background: var(--gryd-accent-teal); }
.gryd-dash-av-3 { background: var(--gryd-accent-pink); } .gryd-dash-av-4 { background: var(--gryd-accent-orange); }
.gryd-dash-av-5 { background: var(--gryd-accent-blue); } .gryd-dash-av-6 { background: var(--gryd-accent-violet); }
.gryd-dash-tag {
  display: inline-block; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 99px;
  background: var(--gryd-line-soft); color: var(--gryd-ink-500); font-weight: 500;
}
.gryd-dash-tag-p { background: var(--gryd-primary-soft); color: var(--gryd-primary-deep); }
.gryd-dash-tag-ok { background: var(--gryd-success-soft); color: var(--gryd-success-ink); }
.gryd-dash-tag-warn { background: var(--gryd-warning-soft); color: var(--gryd-warning-ink); }
.gryd-dash-tag-bad { background: var(--gryd-danger-soft); color: var(--gryd-danger-rose); }

.gryd-dash-list { list-style: none; margin: 0; padding: 0; }
.gryd-dash-li { display: flex; gap: 12px; align-items: center; padding: 12px 20px; }
.gryd-dash-list > li + li { border-top: 1px solid var(--gryd-line-soft); }
.gryd-dash-li-grow { flex: 1; min-width: 0; }
.gryd-dash-li-title { color: var(--gryd-ink); font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gryd-dash-amt { color: var(--gryd-ink); font-weight: 600; text-align: right; }

.gryd-dash-empty {
  text-align: center; padding: 22px 16px; border: 1px dashed var(--gryd-line);
  border-radius: 12px; color: var(--gryd-ink-500); display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.gryd-dash-empty i { font-size: 22px; color: var(--gryd-primary-border); }

@media (max-width: 1180px) {
.gryd-dash-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
.gryd-dash { grid-template-columns: minmax(0, 1fr); padding: 0 0 32px; }
}


/* ============================================================
   41. GRYD SIMPLE PAGES
   One centered column of big, plain cards for non-technical
   users. Used by My profile (users/user_profile_details.html)
   and My Team (referrals/organization.html).

   Markup:
     <div class="gryd-page">
       <header class="gryd-page-head"><h1>..</h1><p>..</p></header>
       <section class="card bg-base-100 border border-base-300 shadow-xs gryd-panel">
         <h2 class="gryd-panel-h">..</h2>
         <div class="gryd-panel-b">..</div>
       </section>
     </div>
   Buttons:  btn btn-primary gryd-btn   (main action)
             btn gryd-btn               (plain white action)
             add gryd-btn-block for a full-width 56px button,
             gryd-btn-link for a quiet text button.
   Rows:     .gryd-fields > .gryd-field > .gryd-field-label + .gryd-field-value
   ============================================================ */

body:has(.gryd-page) { background-color: var(--gryd-base-200); }

.gryd-page {
  width: 100%;
  max-width: 760px;
  margin: 8px auto 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--gryd-ink-700);
  font-size: 16px;
  line-height: 24px;
}
.gryd-page a { text-decoration: none; }
.gryd-page p { margin: 0; }

.gryd-page-head h1 { color: var(--gryd-ink); font-size: 30px; line-height: 38px; font-weight: 600; margin: 0; }
.gryd-page-head p { color: var(--gryd-ink-500); font-size: 17px; margin-top: 4px; }

/* card: DaisyUI card + border + bg-base-100, with the redesign's
   larger radius and softer shadow. Use shadow-xs, not shadow:
   Bootstrap 4 gives .shadow a heavy !important shadow. */
.card.gryd-panel {
  display: block;
  border-radius: var(--gryd-radius-card);
  box-shadow: var(--gryd-shadow-card);
  overflow: hidden;
}
.gryd-panel-h {
  padding: 18px 24px 0;
  color: var(--gryd-ink);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  margin: 0;
}
.gryd-panel-b { padding: 8px 24px 20px; }
/* a card whose only content slot came out empty (privacy settings) is hidden */
.gryd-panel:has(.gryd-panel-slot):not(:has(.gryd-panel-slot > *)) { display: none; }

/* big buttons */
.btn.gryd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: auto; min-height: 48px; padding: 0 22px; border-radius: 12px;
  border: 1px solid var(--gryd-line); background-color: var(--gryd-white); color: var(--gryd-ink-700);
  font: 500 16px/1 Poppins, system-ui, sans-serif; white-space: nowrap;
  box-shadow: none; text-shadow: none;
}
.btn.gryd-btn:hover { background-color: var(--gryd-line-soft); color: var(--gryd-ink); }
.btn.gryd-btn-block { width: 100%; min-height: 56px; font-size: 18px; border-radius: 14px; }
.btn.gryd-btn-link { min-height: 40px; padding: 0 4px; border: 0; background: none; font-size: 15px; color: var(--gryd-ink-500); }
.btn.gryd-btn-link:hover { background: none; color: var(--gryd-danger-ink); text-decoration: underline; }

/* label / value rows, one per line */
.gryd-fields { display: flex; flex-direction: column; }
.gryd-field {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  margin: 0; padding: 14px 0; border-top: 1px solid var(--gryd-line-soft); text-align: left;
}
.gryd-fields > :first-child { border-top: 0 !important; }
.gryd-field-label { display: block; color: var(--gryd-ink-500); font-size: 15px; line-height: 24px; font-weight: 500; }
.gryd-field-value { color: var(--gryd-ink); font-size: 17px; line-height: 26px; word-break: break-word; }
.gryd-field-value-long { white-space: pre-line; }
.gryd-field-empty { color: var(--gryd-ink-500) !important; font-style: italic; }

/* "nothing here yet" box */
.gryd-empty-box {
  margin-top: 18px; padding: 22px 16px; text-align: center; font-size: 16px;
  color: var(--gryd-ink-500); background: var(--gryd-surface-muted);
  border: 1px dashed var(--gryd-line-strong); border-radius: 12px;
}

@media (max-width: 640px) {
  .gryd-page { margin-top: 0; gap: 16px; }
  .gryd-field { grid-template-columns: 1fr; }
  .gryd-panel-h { padding: 16px 18px 0; }
  .gryd-panel-b { padding: 6px 18px 16px; }
}


/* ============================================================
   42. GRYD LIST ROWS
   Plain one-line rows inside a section 41 card (.gryd-panel):
   an icon, a name with one line of detail, and big buttons on
   the right (they drop under the text on phones).
   Used by My Gryds (business_chat/grid_requests.html).

   Markup:
     <h3 class="gryd-sub">..</h3>                  small group title
     <ul class="gryd-rows">
       <li class="gryd-row">
         <span class="gryd-row-icon"><i class="fas .."></i></span>
         <div class="gryd-row-main">
           <div class="gryd-row-title">..</div>
           <div class="gryd-row-meta">..</div>
         </div>
         <div class="gryd-row-actions"> btn .. gryd-btn gryd-btn-sm </div>
       </li>
     </ul>
   Status pills: gryd-dash-tag (+ -ok / -bad), section 40.
   ============================================================ */

.gryd-sub {
  color: var(--gryd-ink-500); font-size: 14px; line-height: 20px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 10px;
}
.gryd-panel-b > .gryd-sub:first-child { margin-top: 8px; }

.gryd-rows { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gryd-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--gryd-line); border-radius: 12px; background: var(--gryd-white);
}
.gryd-row-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gryd-primary-tint); color: var(--gryd-primary-deep); font-size: 18px;
}
.gryd-row-icon-muted { background: var(--gryd-line-soft); color: var(--gryd-ink-500); }
.gryd-row-main { flex: 1 1 220px; min-width: 0; }
.gryd-row-title { color: var(--gryd-ink); font-size: 17px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.gryd-row-title .gryd-dash-tag { margin-left: 6px; vertical-align: 2px; font-size: 13px; padding: 2px 10px; }
.gryd-row-meta { color: var(--gryd-ink-500); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.gryd-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gryd-row-actions form { margin: 0; }

/* medium big button for rows: still easy to tap */
.btn.gryd-btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* row action buttons on the brand outline style (section 11 colors) */
.btn.gryd-btn.btn-outline-primary { background-color: var(--gryd-white) !important; }
.btn.gryd-btn.btn-outline-primary:hover,
.btn.gryd-btn.btn-outline-primary:focus { background-color: var(--gryd-primary) !important; }
.btn.gryd-btn.btn-outline-danger { background-color: var(--gryd-white) !important; }
.btn.gryd-btn.btn-outline-danger:hover,
.btn.gryd-btn.btn-outline-danger:focus { background-color: var(--gryd-danger) !important; }

@media (max-width: 640px) {
  .gryd-row { padding: 12px 14px; }
  .gryd-row-actions { width: 100%; }
  .gryd-row-actions > * { flex: 1 1 auto; }
  .gryd-row-actions .btn.gryd-btn { width: 100%; }
}


/* ============================================================
   43. GRYD APP PAGES (shared skin for every logged-in page)
   Every page that shows the left account panel (base.html puts
   it next to <main class="container gryd-main">) gets the same
   look as the redone pages without changing its layout:
   light grey page, white rounded cards with the --gryd-* border
   and shadow, dark headings, 44px buttons and fields, purple
   links and focus rings.
   Everything is wrapped in :where(...) so these rules stay as
   weak as a plain class. Pages that use the redone classes
   (.gryd-page, .gryd-panel, .gryd-dash, .gryd-btn ...) keep
   their own look, because those rules are stronger.
   ============================================================ */

html:has(.gryd-shell > .gryd-dash-side),
body:has(.gryd-shell > .gryd-dash-side) { background-color: var(--gryd-base-200); }

:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) {
  color: var(--gryd-ink-700);
  font-size: 15px;
  line-height: 24px;
  padding-top: 8px;
  padding-bottom: 32px;
}

/* headings */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5) {
  color: var(--gryd-ink);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(h1, .h1) { font-size: 28px; line-height: 36px; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(h2, .h2) { font-size: 22px; line-height: 30px; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(h3, .h3) { font-size: 20px; line-height: 28px; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(legend) {
  color: var(--gryd-ink);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  border-bottom-color: var(--gryd-line-soft) !important;
  padding-bottom: 10px;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.text-muted, small.text-muted) { color: var(--gryd-ink-500) !important; }

/* cards: the old content boxes become the redone white cards */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.content-section, .card, .media.content-section, .bg-white.shadow-sm, .bg-white.rounded, .bg-white.border) {
  background-color: var(--gryd-white);
  border: 1px solid var(--gryd-line);
  border-radius: var(--gryd-radius-card);
  box-shadow: var(--gryd-shadow-card);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.content-section) {
  padding: 20px 24px;
  margin-bottom: 20px;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.card-header) {
  background-color: var(--gryd-white);
  border-bottom: 1px solid var(--gryd-line-soft);
  color: var(--gryd-ink);
  font-weight: 600;
  padding: 16px 20px;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.card-header:first-child) {
  border-radius: var(--gryd-radius-card) var(--gryd-radius-card) 0 0;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.card-footer) {
  background-color: var(--gryd-surface-muted);
  border-top: 1px solid var(--gryd-line-soft);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.card-body) { padding: 20px 24px; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.card-title) { color: var(--gryd-ink); font-weight: 600; }

/* lists */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.list-group) {
  border-radius: var(--gryd-radius-card);
  box-shadow: var(--gryd-shadow-card);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.list-group-item) {
  border-color: var(--gryd-line);
  color: var(--gryd-ink-700);
  padding: 14px 18px;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.list-group-item:first-child) {
  border-top-left-radius: var(--gryd-radius-card);
  border-top-right-radius: var(--gryd-radius-card);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.list-group-item:last-child) {
  border-bottom-left-radius: var(--gryd-radius-card);
  border-bottom-right-radius: var(--gryd-radius-card);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(a.list-group-item:hover, .list-group-item-action:hover) {
  background-color: var(--gryd-primary-tint);
  color: var(--gryd-primary-deep);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.list-group-item.active) {
  background-color: var(--gryd-primary);
  border-color: var(--gryd-primary);
  color: var(--gryd-white);
}

/* links */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(a:not(.btn):not(.list-group-item):not(.dropdown-item):not(.nav-link)) { color: var(--gryd-primary); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(a.article-title, a.mr-2, .article-metadata a) { color: var(--gryd-ink); }

/* buttons: same size, radius and font as the redone pages */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.btn:not(.btnhrt):not(.btncmt):not(.btnsave):not(.btnedit):not(.btndel):not(.btn-link):not(.close)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 10px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.btn-sm:not(.btnhrt):not(.btncmt):not(.btnsave):not(.btnedit):not(.btndel)) {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 14px;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.btn-block) { display: flex; width: 100%; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.btn-light, .btn-outline-light) {
  background-color: var(--gryd-white);
  border: 1px solid var(--gryd-line);
  color: var(--gryd-ink-700);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.btn:focus-visible, .form-control:focus) {
  outline: none;
  box-shadow: 0 0 0 3px var(--gryd-primary-mid) !important;
}

/* form fields */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.form-control, .custom-select, select.form-control) {
  min-height: 44px;
  border: 1px solid var(--gryd-line-strong);
  border-radius: 10px;
  color: var(--gryd-ink);
  font-size: 15px;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(textarea.form-control) { min-height: 96px; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.form-control:focus) { border-color: var(--gryd-primary); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(label, .col-form-label, .form-label) {
  color: var(--gryd-ink-700);
  font-weight: 500;
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.form-text, .help-block) { color: var(--gryd-ink-500); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.input-group > .form-control:not(:last-child)) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.input-group > .input-group-append > .btn) { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* tables */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.table) { color: var(--gryd-ink-700); background-color: var(--gryd-white); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.table th) {
  color: var(--gryd-ink-500);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-color: var(--gryd-line);
}
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.table td) { border-color: var(--gryd-line-soft); vertical-align: middle; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.table-responsive) { border-radius: var(--gryd-radius-card); }

/* alerts, badges, tabs, pagination */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.alert) { border-radius: 12px; font-size: 15px; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.alert-info) { background-color: var(--gryd-primary-tint); border-color: var(--gryd-primary-mid); color: var(--gryd-primary-deep); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.alert-success) { background-color: var(--gryd-success-soft); border-color: var(--gryd-success-soft); color: var(--gryd-success-ink); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.alert-warning) { background-color: var(--gryd-warning-wash); border-color: var(--gryd-warning-line); color: var(--gryd-warning-text); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.alert-danger) { background-color: var(--gryd-danger-wash); border-color: var(--gryd-danger-line); color: var(--gryd-danger-ink); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.badge) { border-radius: 99px; padding: 4px 10px; font-weight: 600; }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.badge-primary, .badge-info) { background-color: var(--gryd-primary-soft); color: var(--gryd-primary-deep); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.nav-tabs .nav-link.active, .nav-pills .nav-link.active) { color: var(--gryd-primary-deep); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.nav-pills .nav-link.active) { background-color: var(--gryd-primary-tint); }
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.modal-content) { border-radius: var(--gryd-radius-card); border-color: var(--gryd-line); }

/* the old chat-style rooms keep their own bubbles; just round the frame */
:where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(hr) { border-top-color: var(--gryd-line-soft); }

/* ---------- page header for restyled pages ----------
   <header class="gryd-app-head">
     <h1><i class="fas fa-..."></i> Page name</h1>
     <p>One plain sentence about the page.</p>
   </header>                                               */
.gryd-app-head { margin: 0 0 18px; }
.gryd-app-head h1 {
  display: flex; align-items: center; gap: 12px; margin: 0;
  color: var(--gryd-ink); font-size: 28px; line-height: 36px; font-weight: 600;
}
.gryd-app-head h1 > i {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gryd-primary-tint); color: var(--gryd-primary); font-size: 19px;
}
.gryd-app-head p { margin: 6px 0 0; color: var(--gryd-ink-500); font-size: 16px; line-height: 24px; }

/* base.html puts page content inside a Bootstrap .row (-15px sides). Old pages
   use .col-* children that add the 15px back; give the redone page column the same. */
.gryd-main > .row > .gryd-page { padding-left: 15px; padding-right: 15px; }

/* ---------- one chat (chat/chatroom.html) ---------- */
.gryd-chat-card { overflow: hidden; }
.gryd-chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--gryd-line-soft); }
.gryd-chat-name { margin: 0; color: var(--gryd-ink); font-size: 20px; line-height: 28px; font-weight: 600; }
.gryd-chat .chat-box { height: 56vh; background: var(--gryd-surface-muted) !important; }
.gryd-chat .chat-text-add .bg-primary { background-color: var(--gryd-primary) !important; border-radius: 14px 14px 4px 14px !important; }
.gryd-chat .chat-text-add .bg-light { background-color: var(--gryd-white) !important; border: 1px solid var(--gryd-line); border-radius: 14px 14px 14px 4px !important; }
.gryd-chat .chat-text-add .text-small { font-size: 16px; line-height: 24px; }
.gryd-chat .chat-text-add .text-muted.text-small { color: var(--gryd-ink) !important; }
.gryd-chat-form { padding: 14px 16px; border-top: 1px solid var(--gryd-line-soft); background: var(--gryd-white); }
.gryd-chat-form .input-group { gap: 10px; flex-wrap: nowrap; }
.gryd-chat-form .form-control { min-height: 48px; border-radius: 10px !important; font-size: 16px; }
.gryd-chat-form .btn.gryd-btn { min-height: 48px; border-radius: 10px !important; }

/* phones/tablets: keep a little air between the cards and the screen edge */
@media (max-width: 860px) {
  .gryd-shell:has(> .gryd-dash-side) > main.container.gryd-main { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 640px) {
  .gryd-app-head h1 { font-size: 24px; line-height: 32px; }
  :where(.gryd-shell:has(> .gryd-dash-side) > .gryd-main) :where(.content-section) { padding: 16px; }
}

/* ---------- wider redone page (two columns of cards) ----------
   <div class="gryd-page gryd-page-wide">
     <header class="gryd-page-head">..</header>
     <div class="gryd-cols"> <div class="gryd-col-main">cards</div> <div class="gryd-col-side">cards</div> </div>
   </div>                                                   */
.gryd-page.gryd-page-wide { max-width: 1100px; }
.gryd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.gryd-col-main, .gryd-col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1180px) { .gryd-cols { grid-template-columns: minmax(0, 1fr); } }

/* section heading inside a .gryd-panel card, with an icon */
.gryd-panel-h > i { color: var(--gryd-primary); margin-right: 8px; width: 20px; text-align: center; }
.gryd-panel-h .gryd-panel-h-note { color: var(--gryd-ink-500); font-weight: 500; font-size: 15px; margin-left: 6px; }
.gryd-panel-help { color: var(--gryd-ink-500); font-size: 15px; line-height: 22px; margin: 0 0 12px; }
.gryd-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.gryd-panel-actions form { margin: 0; }

/* round photo in a section 42 row (chats inbox); keeps the online dot */
.gryd-row-avatar { flex: none; width: 44px; height: 44px; }
.gryd-row-avatar > img { width: 44px; height: 44px; object-fit: cover; }
.gryd-row-avatar > .online-circle4,
.gryd-row-avatar > .offline-circle4 { width: 14px; height: 14px; border-width: 2px; bottom: 0; right: 0; }

/* number tiles: big number, plain label, one line of help */
.gryd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .gryd-stats { grid-template-columns: minmax(0, 1fr); } }
.gryd-stat {
  border: 1px solid var(--gryd-line); border-radius: 12px; background: var(--gryd-surface-subtle);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.gryd-stat-value { color: var(--gryd-ink); font-size: 28px; line-height: 34px; font-weight: 600; }
.gryd-stat-label { color: var(--gryd-ink); font-size: 15px; line-height: 22px; font-weight: 600; }
.gryd-stat-note { color: var(--gryd-ink-500); font-size: 14px; line-height: 20px; }

/* a list that scrolls after ~6 rows */
.gryd-scroll { max-height: 460px; overflow-y: auto; padding-right: 4px; }

/* ============================================================
   44. POST SEARCH HITS
   blog/search_results.html + partials/post_search_card.html
   ============================================================ */
.gryd-post-hits { display: flex; flex-direction: column; gap: 14px; }
.gryd-post-hit { border: 1px solid var(--gryd-line); border-radius: 12px; padding: 16px; background: var(--gryd-white); }
.gryd-post-hit-top { display: flex; align-items: center; gap: 12px; }
.gryd-post-hit-title { font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
.gryd-post-hit-title a { color: var(--gryd-ink); }
.gryd-post-hit-title a:hover { color: var(--gryd-primary); }
.gryd-post-hit .article-content { color: var(--gryd-ink-500); margin-bottom: 10px; }
.gryd-post-card .media { align-items: center; }
.gryd-post-card .article-content { color: var(--gryd-ink); font-size: 16px; line-height: 1.6; }
.gryd-post-card .link-preview { margin-top: 12px; }

/* ============================================================
   45. FIELDSET CARDS + LONG TEXT
   A form split into several white cards (e.g. Privacy settings);
   .gryd-prose for long help or policy text inside a card.
   ============================================================ */
fieldset.gryd-panel { min-width: 0; padding: 0; margin-bottom: 18px; }
fieldset.gryd-panel > legend.gryd-panel-h { float: left; width: 100%; margin: 0; border: 0; }
fieldset.gryd-panel > legend.gryd-panel-h + * { clear: both; }
/* long help text inside a card */
.gryd-prose p { color: var(--gryd-ink); font-size: 16px; line-height: 1.65; margin-bottom: 12px; }
.gryd-prose p:last-child { margin-bottom: 0; }
.gryd-prose h2 { color: var(--gryd-ink); font-size: 18px; font-weight: 600; line-height: 1.3; margin: 24px 0 8px; }
.gryd-prose h2:first-child { margin-top: 0; }

/* ============================================================
   46. SMALL HELPERS
   Replace old inline style="" attributes (CSP-safe).
   ============================================================ */
.gryd-ov-auto { overflow: auto; }
.gryd-accent-top { border-top: 4px solid var(--gryd-primary); }
.gryd-accent-top-muted { border-top: 4px solid var(--gryd-line-strong); }
.gryd-cursor { cursor: pointer; }
.gryd-inline-form { display: inline; }
.gryd-offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gryd-hide-init { display: none; }
.gryd-camera-badge { cursor: pointer; position: absolute; bottom: 0; right: 0; }
.gryd-crop-body { max-width: 100%; overflow: auto; }
.gryd-crop-img { max-height: 100%; max-width: 100%; }
.gryd-icon-del { background: none; border: none; padding: 0; color: var(--gryd-danger); font-size: 1.2rem; cursor: pointer; }
.gryd-avatar-30 { height: 30px; width: 30px; object-fit: cover; }

.gryd-page .gryd-field .gryd-field-value a,
.gryd-page .gryd-field .gryd-field-label a {
    color: var(--gryd-ink) !important;
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px;
}

.gryd-page .gryd-field .gryd-field-value a:hover,
.gryd-page .gryd-field .gryd-field-label a:hover,
.gryd-page .gryd-field .gryd-field-value a:visited,
.gryd-page .gryd-field .gryd-field-label a:visited {
    color: var(--gryd-ink) !important;
    text-decoration: underline !important;
}

.gryd-page .gryd-field a:focus-visible {
    outline: 2px solid var(--gryd-ink);
    outline-offset: 3px;
}
.gryd-col-30 { width: 30%; }
.gryd-icon-lg { font-size: 2rem; }
.gryd-pull-up { margin-top: -55px; }
.gryd-max-700 { max-width: 700px; }

/* ============================================================
   47. HEADER NOTIFICATION BELL
   navbar.html: bell icon left of the profile menu. Links to the
   same notifications page as the left panel; red count badge
   shows unread_notifications.
   ============================================================ */
.gryd-header-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 999px;
  color: var(--gryd-ink);
  font-size: 1.15rem;
}
.gryd-header-bell:hover,
.gryd-header-bell:focus,
.gryd-header-bell.is-active {
  color: var(--gryd-primary);
  background-color: var(--gryd-primary-soft);
  text-decoration: none;
}
.gryd-header-bell-cnt {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--gryd-danger);
  color: var(--gryd-white);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* ============================================================
   48. FEED HEADER, TABS + POST CARDS
   Shared by the Feed (blog/home.html) and its Liked / Saved tabs
   (blog/liked_posts.html, blog/saved_posts.html). The tab row is
   blog/partials/feed_tabs.html. Feed-only parts (requests, Gryds &
   partners, right column) stay in home.html.
   ============================================================ */
.gryd-feed-solo { grid-template-columns: minmax(0, 1fr); }

/* page header */
.gryd-feed-head { padding: 20px 24px 0; background: linear-gradient(180deg, var(--gryd-primary-wash) 0%, var(--gryd-white) 100%); border-radius: var(--gryd-radius-card) var(--gryd-radius-card) 0 0; }
.gryd-feed-head-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gryd-feed-head h1 { font-size: 24px; line-height: 32px; letter-spacing: -.01em; margin-top: 2px; }
.gryd-feed-head p { color: var(--gryd-ink-500); margin-top: 2px; }

/* tab row */
.gryd-feed-tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; }
.gryd-feed-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 2px solid transparent; color: var(--gryd-ink-500); font-weight: 500; white-space: nowrap;
}
.gryd-feed-tab:hover { color: var(--gryd-ink); }
.gryd-feed-tab.is-active { color: var(--gryd-primary-deep); border-bottom-color: var(--gryd-primary); }

/* post cards (scoped to .gryd-dash-card: post_detail.html also uses
   .gryd-post-card on a .gryd-panel, which keeps its own padding) */
.gryd-dash-card.gryd-post-card { padding: 18px 20px; }
.gryd-post-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gryd-post-avatar-link { display: inline-flex; flex: 0 0 auto; border-radius: 50%; }
.gryd-post-avatar { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gryd-primary-soft); }
.gryd-post-author { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.gryd-post-author-name { color: var(--gryd-ink); font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gryd-post-author-name:hover { color: var(--gryd-primary); }
.gryd-post-date { color: var(--gryd-ink-500); font-size: 12px; line-height: 18px; }
.gryd-post-gryd { margin-left: auto; flex: none; }
.gryd-post-gryd i { margin-right: 4px; }
.gryd-post-title { margin: 12px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.gryd-post-title a { color: var(--gryd-ink); }
.gryd-post-title a:hover { color: var(--gryd-primary); }
.gryd-post-content { margin-top: 6px; color: var(--gryd-ink-700); overflow-wrap: anywhere; }
.gryd-post-content p:last-child { margin-bottom: 0; }
.gryd-post-actions { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gryd-line-soft); }

/* pagination */
.gryd-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gryd-pagination .gryd-dash-btn.is-current { background: var(--gryd-primary); border-color: var(--gryd-primary); color: var(--gryd-white); }

@media (max-width: 575.98px) {
  .gryd-post-actions .gryd-dash-btn { width: 100%; }
  .gryd-pagination-label { display: none; }
}

/* ============================================================
   49. INDIVIDUAL ACCOUNTS (CUSTOMER / EMPLOYEE)
   Collapsible group (Settings > Interests), "own profile" bar on
   the public profile, Work items in the left panel, and the
   dashboard setup checklist + Work card (blog/first.html).
   ============================================================ */

/* collapsible group: <details class="gryd-collapse"><summary class="gryd-collapse-summary"> */
.gryd-collapse { border: 1px solid var(--gryd-line); border-radius: 12px; background: var(--gryd-white); }
.gryd-collapse-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; cursor: pointer; list-style: none;
}
.gryd-collapse-summary::-webkit-details-marker { display: none; }
.gryd-collapse-title { color: var(--gryd-ink); font-weight: 600; }
.gryd-collapse-hint { color: var(--gryd-ink-500); font-size: 13px; }
.gryd-collapse-icon { margin-left: auto; color: var(--gryd-ink-500); transition: transform .15s ease; }
.gryd-collapse[open] .gryd-collapse-icon { transform: rotate(180deg); }
.gryd-collapse-body { margin: 0; padding: 0 16px 16px; }

/* own public profile: "This is how other people see your profile" bar (users/public_profile.html) */
.gryd-own-view-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 12px; padding: 10px 16px; border-radius: 12px;
  background: var(--gryd-primary-tint); border: 1px solid var(--gryd-primary-border); color: var(--gryd-primary-deep);
}
.gryd-own-view-bar i { margin-right: 6px; }

/* left panel, customer Work section (blog/partials/dash_sidebar.html) */
.gryd-dash-static {
  display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px;
  color: var(--gryd-ink-700); font-weight: 500;
}
.gryd-dash-static > span { display: flex; flex-direction: column; min-width: 0; }
.gryd-dash-static strong { color: var(--gryd-ink); font-weight: 600; overflow-wrap: anywhere; }
.gryd-dash-static-sub { color: var(--gryd-ink-500); font-size: 12px; font-weight: 400; }
.gryd-dash-pending {
  display: flex; flex-direction: column; gap: 2px;
  margin: 4px 0 0; padding: 8px 10px; border-radius: 10px;
  background: var(--gryd-warning-soft); color: var(--gryd-warning-ink); font-size: 13px;
}
.gryd-dash-pending-t { font-weight: 600; }
.gryd-dash-pending i { width: auto; color: inherit; font-size: 12px; }
.gryd-dash-nav a.gryd-dash-pending-link {
  display: inline; width: auto; padding: 0; color: var(--gryd-primary-deep);
  font-weight: 600; text-decoration: underline;
}

/* dashboard (customer view): "Finish setting up" checklist (blog/first.html) */
.gryd-dash-check { margin: 0; padding: 0; list-style: none; }
.gryd-dash-check-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gryd-primary-tint); color: var(--gryd-primary);
}
.gryd-dash-check-ic.is-done { background: var(--gryd-success-soft); color: var(--gryd-success-ink); }

/* dashboard (employee): Work card with My schedule + Projects side by side */
.gryd-dash-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.gryd-dash-work-col { min-width: 0; padding-bottom: 8px; }
.gryd-dash-work-col + .gryd-dash-work-col { border-left: 1px solid var(--gryd-line-soft); }
.gryd-dash-work-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 20px 4px; color: var(--gryd-ink-700); font-size: 13px; font-weight: 600;
}
@media (max-width: 760px) {
  .gryd-dash-work { grid-template-columns: minmax(0, 1fr); }
  .gryd-dash-work-col + .gryd-dash-work-col { border-left: 0; border-top: 1px solid var(--gryd-line-soft); }
}

/* ============================================================
   50. TEAM: INVITES, JOIN CODE, APPLICATIONS, LEAVE / REMOVE,
       BUSINESS SWITCHER, HIRING, "FINISH YOUR CARD CHECK" BLOCK
   Shared by: referrals/organization.html (My Team), add_employee.html
   (Applications), team_invite.html, invite_accept.html,
   remove_employee.html, leave_business.html, apply_to_org.html,
   blog/partials/dash_sidebar.html + blog/first.html (switcher),
   users/partials/needs_verification.html, users/needs_verification.html.
   ============================================================ */

/* application / invite / member cards (moved here from add_employee.html so My Team can use them too) */
.employee-application-card {
  border: 1px solid var(--gryd-line); border-radius: 12px; padding: 16px;
  background-color: var(--gryd-white); margin-bottom: 14px;
}
.employee-application-card:last-child { margin-bottom: 0; }
.employee-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.employee-info-box { border: 1px solid var(--gryd-line-soft); border-radius: 10px; background-color: var(--gryd-surface-muted); padding: 12px 14px; }
.employee-info-box p { margin-bottom: 0; line-height: 1.4; }
.employee-info-label { display: block; color: var(--gryd-ink-500); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.employee-info-value { color: var(--gryd-ink); font-size: 17px; word-break: break-word; }
.employee-action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.employee-action-row form { margin: 0; }
.gryd-app-head-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }

/* small list rows inside a panel (pending invites, businesses you work for) */
.gryd-mini-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gryd-mini-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--gryd-line); border-radius: 12px; background: var(--gryd-white);
}
.gryd-mini-row-main { flex: 1 1 200px; min-width: 0; }
.gryd-mini-row-t { color: var(--gryd-ink); font-weight: 600; overflow-wrap: anywhere; }
.gryd-mini-row-s { color: var(--gryd-ink-500); font-size: 14px; overflow-wrap: anywhere; }
.gryd-mini-row form { margin: 0; }

/* team join code: big code + Copy / New code */
.gryd-joincode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gryd-joincode-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700;
  letter-spacing: .18em; color: var(--gryd-ink); padding: 8px 16px; border-radius: 12px;
  background: var(--gryd-primary-tint); border: 1px solid var(--gryd-primary-border);
}
.gryd-joincode form { margin: 0; }
.gryd-joincode-copied { color: var(--gryd-success-ink); font-size: 14px; font-weight: 600; }
.gryd-code-input { max-width: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.gryd-code-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.gryd-code-row .form-group { margin: 0; }

/* "three ways to join" numbered list */
.gryd-ways { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gryd-ways li { display: flex; gap: 12px; align-items: flex-start; }
.gryd-ways-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gryd-primary-tint); color: var(--gryd-primary-deep); font-weight: 700; font-size: 14px;
}

/* business switcher (left panel Work section + dashboard Work card) */
.gryd-switch { position: relative; }
.gryd-switch > summary {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; list-style: none;
  color: var(--gryd-ink-700); font-weight: 500;
}
.gryd-switch > summary::-webkit-details-marker { display: none; }
.gryd-switch > summary:hover { background: var(--gryd-line-soft); }
.gryd-switch > summary::after { content: "\25BE"; margin-left: auto; color: var(--gryd-ink-500); font-size: 12px; }
.gryd-switch[open] > summary::after { content: "\25B4"; }
.gryd-switch-menu {
  list-style: none; margin: 4px 0 0; padding: 6px; border: 1px solid var(--gryd-line); border-radius: 12px;
  background: var(--gryd-white); box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
}
.gryd-switch-menu form { margin: 0; }
.gryd-switch-opt {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--gryd-ink); font-size: 14px; text-align: left; cursor: pointer;
}
.gryd-switch-opt:hover { background: var(--gryd-primary-tint); }
.gryd-switch-opt.is-current { font-weight: 600; color: var(--gryd-primary-deep); }
.gryd-switch-opt small { color: var(--gryd-ink-500); font-weight: 400; margin-left: auto; }
.gryd-dash-card-h .gryd-switch > summary { padding: 4px 8px; font-size: 14px; }
.gryd-dash-card-h .gryd-switch-menu { position: absolute; right: 0; z-index: 5; min-width: 240px; }

/* invite line in the left panel (same look as the pending application line) */
.gryd-dash-invite { background: var(--gryd-primary-tint); color: var(--gryd-primary-deep); }

/* Hiring tag (business profile, Find a business, Join a business) */
.gryd-hiring-tag i { margin-right: 4px; }

/* "Finish your card check to do this" block (partial + full page) */
.gryd-needs-verify {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: var(--gryd-primary-tint); border: 1px solid var(--gryd-primary-border); color: var(--gryd-ink);
}
.gryd-needs-verify-ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gryd-white); color: var(--gryd-primary); font-size: 18px;
}
.gryd-needs-verify-t { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.gryd-needs-verify p { margin: 0 0 10px; color: var(--gryd-ink-700); }
.gryd-needs-verify .gryd-panel-actions { margin-top: 6px; }

/* dashboard Work card: footer (Join another business / Leave) + header with switcher */
.gryd-dash-work-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px 14px; border-top: 1px solid var(--gryd-line-soft); font-size: 14px;
}
.gryd-dash-card-h .gryd-switch { margin-left: auto; }

/* mobile menu Work group: business lines + "Switch to" buttons */
.gryd-sidebar-form { margin: 0; }
.gryd-sidebar-btn {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.gryd-sidebar-btn:hover, .gryd-sidebar-btn:focus { color: var(--gryd-primary); background-color: var(--gryd-primary-soft); }
.gryd-sidebar-note { display: block; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.gryd-sidebar-note i { color: var(--gryd-primary); }

/* sign-up: "What brings you to Gryd?" + team invite banner (users/includes/signup_intent_fields.html) */
.gryd-intent { border: 0; margin: 18px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gryd-intent legend { font-size: 17px; font-weight: 600; color: var(--gryd-ink); margin-bottom: 4px; }
.gryd-intent-opt {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--gryd-line); border-radius: 12px; background: var(--gryd-white);
}
.gryd-intent-opt:has(input:checked) { border-color: var(--gryd-primary-border); background: var(--gryd-primary-tint); }
.gryd-intent-opt input { margin-top: 4px; accent-color: var(--gryd-primary); }
.gryd-intent-opt span { display: flex; flex-direction: column; }
.gryd-intent-opt small { color: var(--gryd-ink-500); font-size: 14px; }
.gryd-invite-banner {
  display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--gryd-primary-tint); border: 1px solid var(--gryd-primary-border); color: var(--gryd-ink);
}
.gryd-invite-banner i { color: var(--gryd-primary); font-size: 18px; margin-top: 3px; }
.gryd-invite-banner div { display: flex; flex-direction: column; gap: 2px; }
.gryd-invite-banner span { color: var(--gryd-ink-700); font-size: 15px; }

/* confirm pages (leave a business, remove an employee) */
.gryd-confirm-note { color: var(--gryd-ink-500); font-size: 15px; }

@media (max-width: 575.98px) {
  .gryd-joincode-code { font-size: 22px; }
  .gryd-mini-row .btn.gryd-btn { width: 100%; }
  .gryd-needs-verify { flex-direction: column; }
}


/* ============================================================
   51. VERIFICATION PAGE (ACCOUNT LEVELS)
   users/verify.html: level pill, "What each level gets you"
   (three columns, the user's level marked .is-current), the
   steps to Standard with Done tags, the Gold card.
   Method boxes are normal .gryd-panel cards toggled by the
   page's own JS (.verifyMethodButton / .verifyBox + d-none).
   ============================================================ */

.gryd-level-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px;
  font-size: 14px; line-height: 22px; font-weight: 600;
}
.gryd-level-pill-gold { background: var(--gryd-gold); color: var(--gryd-ink); }
.gryd-level-pill-standard { background: var(--gryd-primary); color: var(--gryd-white); }
.gryd-level-pill-unverified { background: var(--gryd-ink); color: var(--gryd-white); }
.gryd-level-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gryd-level-note { color: var(--gryd-ink-500); font-size: 15px; line-height: 22px; margin-top: 10px !important; }

.gryd-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.gryd-level {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border: 1px solid var(--gryd-line); border-radius: 12px; background: var(--gryd-surface-subtle);
}
.gryd-level.is-current { border: 2px solid var(--gryd-primary); background: var(--gryd-primary-tint); }
.gryd-level-gold.is-current { border-color: var(--gryd-gold); background: var(--gryd-gold-soft); }
.gryd-level-h { display: flex; align-items: center; gap: 8px; color: var(--gryd-ink); font-size: 17px; font-weight: 600; margin: 0; }
.gryd-level-h i { color: var(--gryd-ink-500); }
.gryd-level-standard .gryd-level-h i { color: var(--gryd-primary); }
.gryd-level-gold .gryd-level-h i { color: var(--gryd-gold-ink); }
.gryd-level-you { margin-left: auto; }
.gryd-level dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gryd-level dt { color: var(--gryd-ink-500); font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gryd-level dd { margin: 0; color: var(--gryd-ink-700); font-size: 15px; line-height: 22px; }
.gryd-level-cost { color: var(--gryd-ink) !important; font-weight: 600; }

/* steps to Standard: reuses .gryd-ways (section 50) for the numbered list */
.gryd-ways.gryd-vsteps { gap: 0; }
.gryd-vsteps > li { padding: 14px 0; border-top: 1px solid var(--gryd-line-soft); }
.gryd-vsteps > li:first-child { border-top: 0; }
.gryd-vstep-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gryd-vstep-t { color: var(--gryd-ink); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gryd-vstep-s { color: var(--gryd-ink-500); font-size: 15px; line-height: 22px; }
.gryd-vmethods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 6px; }
.btn.verifyMethodButton.gryd-vmethod {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: auto; min-height: 0;
  margin: 0; padding: 12px 14px; border-radius: 12px; text-align: left; white-space: normal;
  border: 1px solid var(--gryd-line); background: var(--gryd-white); color: var(--gryd-ink);
  font: 600 15px/1.3 Poppins, system-ui, sans-serif;
}
.btn.verifyMethodButton.gryd-vmethod:hover { border-color: var(--gryd-primary-border); background: var(--gryd-primary-tint); color: var(--gryd-ink); }
.gryd-vmethod small { color: var(--gryd-ink-500); font-size: 13px; font-weight: 400; line-height: 18px; }

/* method boxes and notes */
.gryd-verify .verifyBox { scroll-margin-top: 90px; }
.gryd-verify .gryd-panel-b h3 { color: var(--gryd-ink); font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
.gryd-verify .gryd-panel-b p + p { margin-top: 10px; }
.gryd-verify .gryd-panel-b ul { margin: 8px 0 0; padding-left: 20px; }
.gryd-verify .gryd-panel-b .alert { margin: 14px 0 0; border-radius: 12px; }
.gryd-verify .gryd-panel-b form { margin-top: 14px; }
.gryd-verify-table { margin: 12px 0 0; }
.gryd-verify-card-el { margin-top: 12px; padding: 14px !important; height: auto; border-radius: 12px; }
.gryd-notes { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.gryd-notes li { display: flex; gap: 12px; align-items: flex-start; color: var(--gryd-ink-700); font-size: 15px; line-height: 22px; }
.gryd-notes li > i { flex: none; width: 20px; margin-top: 3px; color: var(--gryd-primary); text-align: center; }

@media (max-width: 860px) {
  .gryd-levels { grid-template-columns: minmax(0, 1fr); }
}


/* ============================================================
   52. INDIVIDUAL PAGES (customer / employee round, Nov 1)
   Shared bits for the individual pages restyled to the gryd-page /
   gryd-panel pattern: projects list, chats list, pager, account
   connections, delete account, project detail and employee schedule.
   The last two keep their old page classes, moved here from the
   templates' <style> blocks and scoped to the page.
   ============================================================ */
.gryd-page.gryd-wide { max-width: 1040px; }
.gryd-sub-h { margin: 18px 0 10px; color: var(--gryd-ink); font-size: 17px; line-height: 26px; font-weight: 600; }
.gryd-panel-b > .gryd-sub-h:first-child { margin-top: 4px; }
.gryd-stack { display: flex; flex-direction: column; gap: 20px; }
.gryd-scroll-box { max-height: 280px; overflow-y: auto; padding-right: 6px; }
.card.gryd-panel-danger { border-color: var(--gryd-danger, #dc2626) !important; }
.card.gryd-panel-danger .gryd-panel-h { color: var(--gryd-danger-ink, #b91c1c); }
.gryd-panel-help + .gryd-notes, .gryd-panel-help + .gryd-ways, .gryd-panel-help + .gryd-fields { margin-top: 12px; }

/* inset panel (a panel inside a panel, e.g. project detail) */
.card.gryd-panel.gryd-panel-inset { box-shadow: none; margin: 12px 0; }
.gryd-panel-inset > .gryd-panel-h { padding: 14px 18px 0; font-size: 16px; }
.gryd-panel-inset > .gryd-panel-b { padding: 8px 18px 16px; }
.gryd-panel-h-t { margin: 0; font: inherit; color: inherit; }

/* pager (?page= links) */
.gryd-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }

/* project rows (My jobs & referrals, Projects) */
.gryd-proj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gryd-proj {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  padding: 16px 18px; border: 1px solid var(--gryd-line-soft); border-radius: 12px; background: var(--gryd-white);
}
.gryd-proj-main { flex: 1 1 320px; min-width: 0; }
.gryd-proj-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gryd-ink); font-size: 17px; font-weight: 600; }
.gryd-proj-d { margin-top: 6px !important; color: var(--gryd-ink-700); }
.gryd-proj-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gryd-proj-actions form { margin: 0; }
.gryd-proj .gryd-fields { margin-top: 6px; }
.gryd-proj .gryd-field { grid-template-columns: 170px minmax(0, 1fr); padding: 10px 0; }
.gryd-proj .gryd-field-value { font-size: 16px; }

/* chats (chat/join_room.html) */
.gryd-chats-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gryd-chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gryd-chat-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--gryd-line-soft); }
.gryd-chat-list > :first-child { border-top: 0; }
.gryd-chat-av { position: relative; flex: none; }
.gryd-chat-main { flex: 1; min-width: 0; }
.gryd-chat-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--gryd-ink); }
.gryd-chat-last { color: var(--gryd-ink-500); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gryd-chat-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.gryd-chat-actions form { margin: 0; }
.gryd-chat-person { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--gryd-ink); }
.gryd-chats .gryd-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* account connections (socialaccount/connections.html) */
.gryd-conn-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.gryd-conn-row .form-check-input { position: static; margin: 0; }

/* customer project detail (referrals/customer_project_detail.html) */
.gryd-project-detail .payment-plan-note-content { width: 100%; max-height: 50px; overflow-y: auto; overflow-x: hidden; padding: 0.75rem; border: 1px solid var(--gryd-line); border-radius: 0.5rem; background-color: var(--gryd-white); color: var(--gryd-ink); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.gryd-project-detail .payment-plan-note-content::-webkit-scrollbar { width: 8px; }
.gryd-project-detail .payment-plan-note-content::-webkit-scrollbar-thumb { background-color: var(--gryd-line-strong); border-radius: 999px; }
.gryd-project-detail .payment-plan-note-content::-webkit-scrollbar-track { background-color: var(--gryd-surface-muted); border-radius: 999px; }
.gryd-project-detail .customer-note-content { width: 100%; max-height: 100px; overflow-y: auto; overflow-x: hidden; padding: 0.75rem; border: 1px solid var(--gryd-line); border-radius: 0.5rem; background-color: var(--gryd-white); color: var(--gryd-ink); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.gryd-project-detail .customer-note-content::-webkit-scrollbar { width: 8px; }
.gryd-project-detail .customer-note-content::-webkit-scrollbar-thumb { background-color: var(--gryd-line-strong); border-radius: 999px; }
.gryd-project-detail .customer-note-content::-webkit-scrollbar-track { background-color: var(--gryd-surface-muted); border-radius: 999px; }
.gryd-project-detail .referral-detail-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) ); gap: 0.85rem; width: 100%; }
.gryd-project-detail .referral-detail-box { border: 1px solid var(--gryd-line-soft); border-radius: 0.75rem; background-color: var(--gryd-surface-muted); padding: 0.85rem 1rem; min-height: 82px; display: flex; flex-direction: column; justify-content: center; text-align: center; word-break: break-word; }
.gryd-project-detail .referral-detail-label { display: block; color: var(--gryd-primary); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; }
.gryd-project-detail .referral-detail-value { color: var(--gryd-ink); font-size: 0.95rem; }
.gryd-project-detail .communication-section { border-top: 1px solid var(--gryd-line); margin-top: 1.25rem; padding-top: 1.25rem; }
@media (max-width: 768px) {
  .gryd-project-detail .referral-detail-grid { grid-template-columns: 1fr; }
}

/* employee schedule (schedules/employee_org_schedule.html) */
.gryd-emp-schedule-wrap { width: 100%; }
.gryd-emp-schedule .employee-schedule-action-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.gryd-emp-schedule .employee-membership-box { border: 1px solid var(--gryd-line); background-color: var(--gryd-white); border-radius: 0.75rem; padding: 1rem; text-align: center; margin-bottom: 1rem; }
.gryd-emp-schedule .employee-membership-name { color: var(--gryd-primary); font-weight: 700; margin-bottom: 0.25rem; }
.gryd-emp-schedule .employee-membership-meta { color: var(--gryd-ink-500); font-size: 0.95rem; }
.gryd-emp-schedule .employee-weekday-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.gryd-emp-schedule .employee-availability-scroll { max-height: 420px; overflow-y: auto; padding-right: 0.35rem; }
.gryd-emp-schedule .employee-availability-box { border: 1px solid var(--gryd-line); background-color: var(--gryd-white); border-radius: 0.75rem; padding: 1rem; margin-bottom: 0.75rem; text-align: center; }
.gryd-emp-schedule .employee-availability-title { color: var(--gryd-primary); font-weight: 700; margin-bottom: 0.25rem; }
.gryd-emp-schedule .employee-availability-meta { color: var(--gryd-ink); margin-bottom: 0.25rem; }
.gryd-emp-schedule .employee-schedule-split-row { display: flex; gap: 0.75rem; align-items: center; width: 100%; }
.gryd-emp-schedule .employee-schedule-value { flex: 1; }
.gryd-emp-schedule .employee-schedule-unit { width: 150px; }
.gryd-emp-schedule .employee-schedule-input-group input,
.gryd-emp-schedule .employee-schedule-input-group select { width: 100%; background-color: var(--gryd-white); border: 1px solid var(--gryd-line-strong); color: var(--gryd-ink); box-shadow: none; }
.gryd-emp-schedule .employee-schedule-input-group input:focus,
.gryd-emp-schedule .employee-schedule-input-group select:focus { background-color: var(--gryd-white); border-color: var(--gryd-primary); box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); outline: none; }
.gryd-emp-schedule .employee-empty { color: var(--gryd-ink-500); background-color: var(--gryd-surface-muted); border: 1px dashed var(--gryd-line-strong); border-radius: 0.75rem; padding: 1rem; text-align: center; }
@media (max-width: 576px) {
  .gryd-emp-schedule .employee-schedule-split-row { flex-direction: column; align-items: stretch; }
  .gryd-emp-schedule .employee-schedule-unit { width: 100%; }
}

/* text-only panel bodies: space out paragraphs */
.gryd-prose p + p { margin-top: 10px; }

/* presence dot on the 40px feed avatar (feed_card.html keeps img-cont3 for the dot) */
.gryd-post-avatar-link.img-cont3 { position: relative; width: auto; height: auto; }
.gryd-post-avatar-link > .online-circle4,
.gryd-post-avatar-link > .offline-circle4 { width: 13px; height: 13px; border-width: 2px; bottom: -1px; right: -1px; }

@media (max-width: 860px) {
  .gryd-chats-grid { grid-template-columns: minmax(0, 1fr); }
  .gryd-proj .gryd-field { grid-template-columns: minmax(0, 1fr); }
}


/* ============================================================
   53. PUBLIC HEADER LINKS + FOOTER (logged-out visitors)
   ------------------------------------------------------------
   blog/partials/public_nav.html (header right side, from navbar.html)
   blog/partials/public_footer.html (bottom of base.html)
   Both only render when the visitor is logged out.
   ============================================================ */
.gryd-public-nav { display: flex; align-items: center; gap: 6px; }
.gryd-public-nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 10px; color: var(--gryd-ink-700); font-size: 15px; font-weight: 500;
}
.gryd-public-nav-link:hover { color: var(--gryd-primary-deep); background: var(--gryd-primary-tint); text-decoration: none; }
.gryd-public-nav-link.is-active { color: var(--gryd-primary-deep); background: var(--gryd-primary-tint); }
.gryd-public-nav .btn.gryd-public-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; margin-left: 4px;
  border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1.2; box-shadow: none;
}
@media (max-width: 767px) {
  /* phones: the hamburger menu has Browse / About / Log In; keep just Sign Up */
  .gryd-public-nav-link,
  .gryd-public-nav .btn-outline-primary.gryd-public-nav-btn { display: none; }
  .gryd-public-nav .btn.gryd-public-nav-btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
}

.gryd-public-footer {
  margin-top: 48px; padding: 32px 20px 24px;
  background: var(--gryd-white); border-top: 1px solid var(--gryd-line);
}
.gryd-public-footer-in {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px;
}
.gryd-public-footer-brand { display: flex; flex-direction: column; gap: 4px; max-width: 360px; }
.gryd-public-footer-name { color: var(--gryd-primary); font-size: 20px; font-weight: 700; }
.gryd-public-footer-tag { color: var(--gryd-ink-500); font-size: 14px; line-height: 20px; }
.gryd-public-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.gryd-public-footer-links a { color: var(--gryd-ink-700); font-size: 14px; font-weight: 500; }
.gryd-public-footer-links a:hover { color: var(--gryd-primary-deep); }
.gryd-public-footer-copy {
  max-width: 1120px; margin: 20px auto 0; padding-top: 16px;
  border-top: 1px solid var(--gryd-line-soft); color: var(--gryd-ink-500); font-size: 13px;
}


/* ============================================================
   54. PUBLIC PAGE SKIN + SIGN-IN / SIGN-UP SCREENS
   ------------------------------------------------------------
   .gryd-pub     wrapper on every logged-out page (forms, buttons,
                 alerts and links get the same look as the app pages;
                 section 43 only covers pages with the side panel).
   .gryd-auth    centred card for login, sign-up, password reset,
                 email / code confirmation and the allauth layouts.
     <div class="gryd-pub gryd-auth col-12">
       <div class="card gryd-auth-card">
         <header class="gryd-auth-head"><span class="gryd-auth-icon"><i class="fas fa-..."></i></span>
           <h1>Title</h1><p>One plain sentence.</p></header>
         ...form...
         <div class="gryd-auth-actions">buttons</div>
         <p class="gryd-auth-alt">Other option <a>link</a></p>
       </div>
     </div>
   ============================================================ */
body:has(.gryd-pub) { background-color: var(--gryd-base-200); }

:where(.gryd-pub) { color: var(--gryd-ink-700); font-size: 15px; }
:where(.gryd-pub) :where(h1, h2, h3, h4, h5, legend) { color: var(--gryd-ink); font-weight: 600; }
:where(.gryd-pub) :where(a:not(.btn)) { color: var(--gryd-primary); }
:where(.gryd-pub) :where(.text-muted) { color: var(--gryd-ink-500) !important; }
:where(.gryd-pub) :where(.btn:not(.btn-link):not(.close)) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: 10px;
  font-family: 'Poppins', system-ui, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.2;
  box-shadow: none;
}
:where(.gryd-pub) :where(.btn-block) { display: flex; width: 100%; }
:where(.gryd-pub) :where(.btn:focus-visible, .form-control:focus, .custom-select:focus) {
  outline: none; border-color: var(--gryd-primary); box-shadow: 0 0 0 3px var(--gryd-primary-mid) !important;
}
:where(.gryd-pub) :where(.form-control, .custom-select, select.form-control, select) {
  min-height: 44px; border: 1px solid var(--gryd-line-strong); border-radius: 10px;
  color: var(--gryd-ink); font-size: 15px; background-color: var(--gryd-white);
}
:where(.gryd-pub) :where(select[multiple], select[multiple].form-control) { min-height: 120px; }
:where(.gryd-pub) :where(textarea.form-control) { min-height: 96px; }
:where(.gryd-pub) :where(label, .col-form-label, .form-label) { color: var(--gryd-ink-700); font-weight: 500; }
:where(.gryd-pub) :where(.form-text, .help-block, small.form-text) { color: var(--gryd-ink-500); font-size: 13px; }
:where(.gryd-pub) :where(.invalid-feedback, .errorlist, .text-danger) { color: var(--gryd-danger-ink); }
:where(.gryd-pub) :where(ul.errorlist) { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 14px; }
:where(.gryd-pub) :where(.form-group) { margin-bottom: 16px; }
:where(.gryd-pub) :where(.alert) { border-radius: 12px; font-size: 15px; }
:where(.gryd-pub) :where(.alert-info) { background-color: var(--gryd-primary-tint); border-color: var(--gryd-primary-mid); color: var(--gryd-primary-deep); }
:where(.gryd-pub) :where(.alert-success) { background-color: var(--gryd-success-soft); border-color: var(--gryd-success-soft); color: var(--gryd-success-ink); }
:where(.gryd-pub) :where(.alert-warning) { background-color: var(--gryd-warning-wash); border-color: var(--gryd-warning-line); color: var(--gryd-warning-text); }
:where(.gryd-pub) :where(.alert-danger) { background-color: var(--gryd-danger-wash); border-color: var(--gryd-danger-line); color: var(--gryd-danger-ink); }
:where(.gryd-pub) :where(hr) { border-top-color: var(--gryd-line-soft); }

.gryd-auth { display: flex; justify-content: center; padding: 16px 15px 8px; }
.card.gryd-auth-card {
  width: 100%; max-width: 480px; padding: 32px;
  background: var(--gryd-white); border: 1px solid var(--gryd-line);
  border-radius: var(--gryd-radius-card); box-shadow: var(--gryd-shadow-card);
}
.gryd-auth-wide .card.gryd-auth-card { max-width: 720px; }
/* allauth/layouts/base.html: messages + card stack (entrance.html, manage.html) */
.gryd-auth-stack { max-width: 720px; margin: 0 auto; }
.gryd-auth-stack > .alert { margin-bottom: 12px; }
.gryd-auth-body > :last-child { margin-bottom: 0; }
.gryd-auth-head { text-align: center; margin: 0 0 24px; }
.gryd-auth-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px;
  background: var(--gryd-primary-tint); color: var(--gryd-primary); font-size: 20px;
}
.gryd-auth-head h1 { margin: 0; color: var(--gryd-ink); font-size: 26px; line-height: 34px; font-weight: 600; }
.gryd-auth-head p { margin: 6px 0 0; color: var(--gryd-ink-500); font-size: 15px; line-height: 22px; }
.gryd-auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.gryd-auth-actions-row { flex-direction: row; flex-wrap: wrap; }
.gryd-auth-actions .btn { width: 100%; }
.gryd-auth-actions-row .btn { width: auto; flex: 1 1 160px; }
.gryd-auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--gryd-ink-500); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}
.gryd-auth-divider::before,
.gryd-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--gryd-line); }
.gryd-auth-alt { margin: 20px 0 0; text-align: center; color: var(--gryd-ink-500); font-size: 14px; }
.gryd-auth-alt a { font-weight: 600; }
.gryd-auth-note {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--gryd-base-200); color: var(--gryd-ink-700); font-size: 14px; line-height: 21px;
}
.gryd-auth-section {
  margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--gryd-line-soft);
}
.gryd-auth-section-h { margin: 0 0 12px; color: var(--gryd-ink); font-size: 17px; font-weight: 600; }

/* sign-up: Individual / Business switch (the two links keep ?profile_type=) */
.gryd-auth-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 24px;
  background: var(--gryd-base-200); border: 1px solid var(--gryd-line); border-radius: 12px;
}
.gryd-auth-switch a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  border-radius: 9px; color: var(--gryd-ink-700); font-weight: 500; text-decoration: none;
}
.gryd-auth-switch a:hover { color: var(--gryd-primary-deep); text-decoration: none; }
.gryd-auth-switch a.is-active {
  background: var(--gryd-white); color: var(--gryd-primary-deep); font-weight: 600; box-shadow: var(--gryd-shadow-card);
}
/* sign-up: interests check list (was an inline .scroll-box style) */
.gryd-pub .scroll-box {
  max-height: 220px; overflow-y: auto; padding: 10px 12px;
  border: 1px solid var(--gryd-line-strong); border-radius: 10px; background: var(--gryd-white);
}
.gryd-pub .scroll-box ul { list-style: none; padding: 0; margin: 0; }
.gryd-pub .scroll-box li { margin: 2px 0; }
.gryd-pub .scroll-box label { font-weight: 400; }
/* sign-up field includes: raw widgets (no .form-control class from the form) */
:where(.gryd-pub) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="date"], input[type="number"], input[type="password"]):not(.form-control) {
  display: block; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--gryd-line-strong); border-radius: 10px;
  color: var(--gryd-ink); font-size: 15px; background-color: var(--gryd-white);
}
:where(.gryd-pub) :where(select):not(.form-control) { display: block; width: 100%; padding: 8px 12px; }
.gryd-auth-sub {
  margin: 20px 0 12px; color: var(--gryd-ink-700); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.gryd-auth-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.gryd-auth-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.gryd-auth-check { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--gryd-base-200); }
.gryd-auth-check.form-check { padding-left: 2.1rem; }
.gryd-auth-check label { font-weight: 400; color: var(--gryd-ink-700); }
@media (max-width: 576px) {
  .gryd-auth-grid, .gryd-auth-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .card.gryd-auth-card { padding: 22px 18px; }
}


/* ============================================================
   55. (retired) Was the landing page (blog/landing.html). The live
   landing page was built by Stephen, so it was removed from this repo.
   Number kept so sections 56-58 keep their numbers.
   ============================================================ */


/* ============================================================
   56. PUBLIC READING PAGES (About, Terms of Service + Privacy)
   ------------------------------------------------------------
   <div class="gryd-pub gryd-pub-page col-12">
     <header class="gryd-pub-head"><p class="gryd-pub-eyebrow">..</p><h1>..</h1><p>..</p></header>
     <div class="card gryd-pub-card"> ... </div>
   Terms: .gryd-legal-* (was an inline .legal-* style block).
   ============================================================ */
.gryd-pub-page { max-width: 840px; margin: 0 auto; padding: 8px 15px 0; }
.gryd-pub-head { margin: 0 0 20px; }
.gryd-pub-eyebrow {
  margin: 0 0 6px; color: var(--gryd-primary-deep); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.gryd-pub-head h1 { margin: 0; color: var(--gryd-ink); font-size: 32px; line-height: 40px; font-weight: 700; }
.gryd-pub-head p { margin: 8px 0 0; color: var(--gryd-ink-500); font-size: 17px; line-height: 26px; }
.card.gryd-pub-card {
  padding: 28px 32px; margin-bottom: 16px; background: var(--gryd-white);
  border: 1px solid var(--gryd-line); border-radius: var(--gryd-radius-card); box-shadow: var(--gryd-shadow-card);
}
.gryd-pub-card p { font-size: 16px; line-height: 27px; color: var(--gryd-ink-700); margin: 0 0 16px; }
.gryd-pub-card p:last-child { margin-bottom: 0; }
.gryd-pub-card strong { color: var(--gryd-ink); }
.gryd-pub-card h2 { margin: 0 0 12px; color: var(--gryd-ink); font-size: 20px; font-weight: 600; }
.gryd-pub-facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gryd-pub-fact {
  padding: 16px; border-radius: 12px; background: var(--gryd-primary-tint); border: 1px solid var(--gryd-primary-soft);
}
.gryd-pub-fact b { display: block; color: var(--gryd-primary-deep); font-size: 26px; line-height: 1.1; font-weight: 700; }
.gryd-pub-fact span { color: var(--gryd-ink-700); font-size: 14px; }
.gryd-pub-team { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gryd-pub-team li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.gryd-pub-team li > i {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gryd-primary-tint); color: var(--gryd-primary);
}
.gryd-pub-team b { color: var(--gryd-ink); display: block; }
.gryd-pub-team span { color: var(--gryd-ink-500); }
.gryd-pub-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 640px) {
  .gryd-pub-facts { grid-template-columns: minmax(0, 1fr); }
  .card.gryd-pub-card { padding: 22px 18px; }
  .gryd-pub-head h1 { font-size: 26px; line-height: 34px; }
}

/* Terms of Service + Privacy Policy (blog/gryd_terms_privacy_policy.html) */
.gryd-legal { max-width: 920px; }
.gryd-legal .card.gryd-pub-card { padding: 36px 40px; }
.gryd-legal h1 { color: var(--gryd-ink); font-size: 26px; line-height: 34px; font-weight: 700; margin: 32px 0 8px; }
.gryd-legal h1:first-child { margin-top: 0; }
.gryd-legal h2 {
  color: var(--gryd-ink); font-size: 19px; line-height: 27px; font-weight: 600;
  margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--gryd-line-soft); scroll-margin-top: calc(var(--gryd-header-height) + 16px);
}
.gryd-legal h1[id] { scroll-margin-top: calc(var(--gryd-header-height) + 16px); }
.gryd-legal p, .gryd-legal li { font-size: 15.5px; line-height: 26px; color: var(--gryd-ink-700); }
.gryd-legal ul, .gryd-legal ol { padding-left: 1.4rem; margin: 0 0 14px; }
.gryd-legal li { margin-bottom: 6px; }
.gryd-legal-meta { color: var(--gryd-ink-500); }
.gryd-legal-notice {
  margin: 18px 0; padding: 14px 16px; border-radius: 12px;
  background: var(--gryd-warning-wash); border: 1px solid var(--gryd-warning-line); color: var(--gryd-warning-text);
}
.gryd-legal-notice p { margin: 0; color: var(--gryd-warning-title); }
.gryd-legal-toc {
  margin: 22px 0; padding: 18px 20px; border-radius: 12px;
  background: var(--gryd-base-200); border: 1px solid var(--gryd-line);
}
.gryd-legal-toc-title { margin-bottom: 10px; color: var(--gryd-ink); font-weight: 600; }
.gryd-legal-toc-columns { columns: 2; column-gap: 32px; }
.gryd-legal-toc a { display: block; break-inside: avoid; margin: 0 0 8px; font-size: 14.5px; }
.gryd-legal-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gryd-line);
}
.gryd-legal-small-note { margin: 0; color: var(--gryd-ink-500); font-size: 14px; }
@media (max-width: 720px) {
  .gryd-legal .card.gryd-pub-card { padding: 22px 18px; }
  .gryd-legal-toc-columns { columns: 1; }
  .gryd-legal-actions { flex-direction: column; align-items: stretch; }
}


/* ============================================================
   57. PUBLIC BROWSE (blog/browse.html, blog/browse_search_results.html)
   ------------------------------------------------------------
   Logged-out post list: search card + sign-up nudge on the side,
   post cards in the main column. Keeps #profileGridPattern.
   ============================================================ */
.gryd-browse { max-width: 1120px; margin: 0 auto; padding: 8px 15px 0; }
.gryd-browse-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.gryd-browse-side { display: grid; gap: 16px; position: sticky; top: calc(var(--gryd-header-height) + 16px); }
.gryd-browse-side .card.gryd-pub-card { padding: 20px; margin: 0; }
.gryd-browse-side h2 { font-size: 17px; margin: 0 0 6px; }
.gryd-browse-side p { font-size: 14px; line-height: 21px; margin: 0 0 12px; color: var(--gryd-ink-500); }
.gryd-browse-search { display: flex; gap: 8px; }
.gryd-browse-search .form-control { flex: 1 1 auto; min-width: 0; }
.gryd-browse-list { display: grid; gap: 16px; }
.gryd-browse-post {
  padding: 20px 22px; background: var(--gryd-white); border: 1px solid var(--gryd-line);
  border-radius: var(--gryd-radius-card); box-shadow: var(--gryd-shadow-card); overflow: auto;
}
.gryd-browse-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--gryd-ink-500); font-size: 13px; }
.gryd-browse-post-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.gryd-browse-post h3 { margin: 0 0 8px; color: var(--gryd-ink); font-size: 19px; line-height: 27px; font-weight: 600; }
.gryd-browse-post-body { color: var(--gryd-ink-700); font-size: 15px; line-height: 24px; }
.gryd-browse-post-body p { margin: 0 0 10px; }
.gryd-browse-post-foot { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--gryd-ink-500); font-size: 14px; }
.gryd-browse-post-foot i { color: var(--gryd-primary); }
.gryd-browse-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.gryd-browse-pager .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.gryd-browse-empty { text-align: center; }
.gryd-browse-empty ul { display: inline-block; text-align: left; color: var(--gryd-ink-500); margin: 0; }
@media (max-width: 900px) {
  .gryd-browse-grid { grid-template-columns: minmax(0, 1fr); }
  .gryd-browse-side { position: static; order: -1; }
}


/* ============================================================
   58. PROFILE PARTIALS (Reputation + Recent posts boxes)
   ------------------------------------------------------------
   users/referral_partial.html  -> .gryd-rep*   (stars, tier, Gryds)
   users/post_detail_partial.html -> .gryd-recent-posts*
   Both are included on the profile pages (sections 41 / 51 frames).
   Replaces two inline <style> blocks that had no CSP nonce.
   ============================================================ */
.gryd-rep { display: grid; gap: 14px; }
.gryd-rep-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.gryd-rep-stars { display: inline-flex; gap: 2px; color: var(--gryd-gold); font-size: 18px; }
.gryd-rep-stars .is-off { color: var(--gryd-line-strong); }
.gryd-rep-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.gryd-rep-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  font-size: 13px; font-weight: 600; background: var(--gryd-primary-tint); color: var(--gryd-primary-deep);
  border: 1px solid var(--gryd-primary-soft);
}
.gryd-rep-badge.is-gold { background: var(--gryd-gold-soft); color: var(--gryd-gold-ink); border-color: var(--gryd-gold-line); }
.gryd-rep-badge.is-silver { background: var(--gryd-base-200); color: var(--gryd-ink-700); border-color: var(--gryd-line); }
.gryd-rep-badge.is-bronze { background: var(--gryd-warning-wash); color: var(--gryd-warning-text); border-color: var(--gryd-warning-line); }
.gryd-rep-badge.is-plain { background: var(--gryd-base-200); color: var(--gryd-ink-500); border-color: var(--gryd-line); }
.gryd-rep-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gryd-rep-stat { padding: 12px 14px; border-radius: 12px; background: var(--gryd-base-200); border: 1px solid var(--gryd-line-soft); }
.gryd-rep-stat b { display: block; color: var(--gryd-ink); font-size: 20px; line-height: 1.2; font-weight: 700; }
.gryd-rep-stat span { color: var(--gryd-ink-500); font-size: 13px; }
.gryd-rep-grids { display: flex; flex-wrap: wrap; gap: 6px; }
.gryd-rep-grids .gryd-rep-badge { font-weight: 500; }
.gryd-rep-label { margin: 0 0 6px; color: var(--gryd-ink-500); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.gryd-recent-posts { display: grid; gap: 10px; }
.gryd-recent-posts-h { margin: 0; color: var(--gryd-ink); font-size: 16px; font-weight: 600; }
.gryd-recent-posts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gryd-recent-posts-row .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
i.grydblue-icon {
    display: inline-block !important;

    width: 26px !important;
    height: 26px !important;
    min-width: 26px;

    background-image: url("images/gryd-round-logo.bf42b9967111.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    background-color: transparent;
    padding: 0;
    border: none;
}
.gryd-shell:has(> .gryd-dash-side) .gryd-dash {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 8px 0 32px;
}

/* Let the page content occupy all available width. */

.gryd-shell:has(> .gryd-dash-side) .gryd-dash-main {
    width: 100%;
    min-width: 0;
}
.gryd-page a.gryd-underline-ink {
    color: var(--gryd-ink) !important;
    text-decoration-line: underline !important;
    text-decoration-style: solid !important;
    text-decoration-color: var(--gryd-ink) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px;
}

.gryd-page a.gryd-underline-ink:hover {
    color: var(--gryd-ink) !important;
    text-decoration-line: underline !important;
}

.gryd-page a.gryd-underline-ink:focus-visible {
    outline: 2px solid var(--gryd-ink) !important;
    outline-offset: 3px;
}


