/* ==========================================================================
   PAT Discussion — Frontend Styles (List + Thread View)
   ========================================================================== */

.pat-disc-container {
    font-family: inherit;
}

/* ---------- CTA banner ---------- */
.pat-disc-cta {
    border-radius: 6px;
    padding: 10px 28px 10px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0px 0px 4px #5555551f;
    /* display: none; */
}

.pat-disc-cta-circle {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
}

.pat-disc-cta-circle.small {
    right: 60px;
    top: 10px;
    width: 80px;
    height: 80px;
}

.pat-disc-cta-tail {
    height: 70px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.pat-disc-cta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.pat-disc-cta-heading {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
    color: #3d4754;
    font-family: 'Open Sans', sans-serif;
}
.pat-disc-cta-heading strong {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.pat-disc-cta-heading strong {
    font-weight: 700;
}

.pat-disc-cta-subtitle {
    font-size: 14px;
    color: #7b7b7b;
    line-height: 1.5;
}

/* ---------- Activity bar ---------- */
.pat-disc-activity-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.pat-disc-activity-stats {
    display: block;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    /* border: 1px solid #e3e3e3; */
    /* border-radius: 6px; */
    /* padding: 8px 12px; */
}

.pat-disc-stat strong {color: #49505a;}
.pat-disc-stat-separator { color: #cbd5e1; }
.pat-disc-last-activity strong {color: #49505a;}

.pat-disc-online-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    margin-right: 2px;
    position: relative;
    top: 2px;
    padding: 0 !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    isolation: isolate;
}
.pat-disc-online-dot::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: auto; height: auto;
    margin: 0 !important; padding: 0 !important;
    box-sizing: border-box;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 4px rgb(178 178 178 / 50%);
    z-index: 1;
}
.pat-disc-online-dot::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: auto; height: auto;
    margin: 0 !important; padding: 0 !important;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.6);
    transform-origin: 50% 50%;
    animation: pat-disc-pulsate 2.5s ease-out infinite;
    z-index: 0;
}
    70%  { box-shadow: 0 0 4px rgb(178 178 178 / 50%), 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 4px rgb(178 178 178 / 50%), 0 0 0 0   rgba(34, 197, 94, 0); }
}

.pat-disc-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pat-disc-sort-controls {
    display: flex;
    border-width: 1px 1px 1px 1px;
    border-color: #e3e3e3;
    border-style: solid;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f7f7;
    box-shadow: inset 0 0 4px #efefef;
}

.pat-disc-sort-btn {
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Open Sans';
    border: none;
    background: none;
    color: #919191;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    /* border-bottom: 3px solid #e3e3e3; */
}

.pat-disc-sort-btn:not(:last-child) { border-right: 1px solid #e3e3e3; }
.pat-disc-sort-btn:hover {color: #777;}
.pat-disc-sort-btn.active {background: white;color: #444;/* border-bottom: 3px solid #3793d1; */}

.pat-disc-new-thread-btn {
    padding: 7px 16px;
    background: #7ce027;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Inter';
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 0 1px 6px 1px #8f8f8f26 !important;
}

.pat-disc-new-thread-btn span {
    display: none;
}

.pat-disc-new-thread-btn:hover {
    transform: scale(1.05) }

/* ---------- Tag filters ---------- */
.pat-disc-stage-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.pat-disc-filter-btn {
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter' !important;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.pat-disc-filter-btn:hover { background: #f8fafc; }
.pat-disc-filter-btn.active {
    background: #34424C;
    color: #fff;
    border-color: #34424C;
}

/* ---------- Feedback CTA ---------- */
.pat-disc-feedback-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #edf4f999;
    border: 1px solid #dfe6ea7a;
    border-radius: 6px;
    margin-bottom: 16px;
}

.pat-disc-overall .pat-disc-feedback-cta {
    border: 1px solid #dfe5eb
}

.pat-disc-feedback-icon {font-size: 24px;flex-shrink: 0;align-self: baseline;display: none;}

.pat-disc-feedback-content {
    flex: 1;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.pat-disc-feedback-content strong {color: #2c4351;font-size: 16px;}
.pat-disc-feedback-content p {margin: 7px 0px 0px;/* padding-top: 4px; *//* border-top: 1px solid #d6e0e7; */}
.pat-disc-feedback-content b {font-weight: 700;}

.pat-disc-feedback-btn {
    padding: 8px 18px;
    background: #34424C;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
    box-shadow: 0 1px 6px 1px #8f8f8f63 !important;
    font-family: 'Inter';
}

.pat-disc-feedback-btn:hover {
    transform: scale(1.05);
    color: white;    
}

/* ---------- Empty state ---------- */
.pat-disc-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.pat-disc-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.pat-disc-empty p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
    color: #64748b;
}

/* ---------- Login prompt ---------- */
.pat-disc-login-prompt {
    text-align: center;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.pat-disc-login-prompt a { color: #3b82f6; font-weight: 600; }

/* ---------- Avatar ---------- */
.pat-disc-avatar {
    width: 75px;
    height: 75px;
    /* min-width: 75px; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    border: 1.5px solid;
    position: relative;
}

.pat-disc-avatar.small {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 10px;
}

.pat-disc-staff-badge {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter';
    background: #eef6fd;
    color: #64748b;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #d8e3eb;
    display: inline-block;
    position: relative;
}

.pat-disc-helpful-badge-wrap {
    position: relative;
    display: inline-block;
    top: -2px;
}

.pat-disc-helpful-badge {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter';
    color: #16a34a;
    background: #dcfce7;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: help;
    border: 1px solid #c0eacd;
}

.pat-disc-helpful-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    width: 260px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.pat-disc-helpful-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #1e293b;
}

.pat-disc-helpful-badge-wrap:hover .pat-disc-helpful-tooltip {
    display: block;
}

/* ---------- Reactions (name-based display) ---------- */
.pat-disc-reactions-block {
    margin-top: 12px;
}

.pat-disc-reaction-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border-left: 3px solid #e2e8f0;
    border-radius: 0 6px 6px 0;
    margin-bottom: 4px;
    font-size: 13px;
    color: #475569;
}

.pat-disc-reaction-row.mine {
    background: #eff6ff;
    border-left-color: #93c5fd;
}

.pat-disc-reaction-emojis {
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    gap: 1px;
}

.pat-disc-reaction-names {
    flex: 1;
    line-height: 1.4;
}

.pat-disc-reaction-undo {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.pat-disc-reaction-undo:hover {
    color: #515861;
}

/* Like button with hover tooltip */
.pat-disc-like-wrap {
    position: relative;
    display: inline-block;
    margin-top: 6px;
}

.pat-disc-like-btn {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: 0.1s;
    box-shadow: 0px 0px 4px #eeeeeeb5;
}

.pat-disc-like-btn:hover {
    transform: scale(1.05);
    color: #555;
}

.pat-disc-like-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    display: flex;
    gap: 2px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 4px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.pat-disc-like-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.pat-disc-like-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: #fff;
}

.pat-disc-like-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 19px;
    border: 7px solid transparent;
    border-top-color: #e2e8f0;
}

.pat-disc-like-option {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: transform 0.15s, background 0.1s;
    line-height: 1;
    position: relative;
}

.pat-disc-like-option:hover {
    transform: scale(1.3);
    background: #f1f5f9;
}

.pat-disc-like-option.active {
    background: #eff6ff;
    transform: scale(1.1);
}

.pat-disc-like-option-emoji {
    display: block;
}

.pat-disc-like-option-label {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 60;
}

.pat-disc-like-option-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
}

.pat-disc-like-option:hover .pat-disc-like-option-label {
    display: block;
}

/* ==========================================================================
   THREAD LIST (rows)
   ========================================================================== */

.pat-disc-thread-list {
    border: 1px solid #dfdfdf;
    border-radius: 6px;
    background: #fff;
}

.pat-disc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-row:last-child { border-bottom: none; }
.pat-disc-row:hover {
    background: #f8fafc80;
    }

.pat-disc-row-pinned {
    background: #fafbff;
    border-left: 3px solid #3793d1;
}

.pat-disc-row-pending {
    opacity: 0.65;
    border-left: 3px solid #f59e0b;
}

.pat-disc-row-avatar {
    flex-shrink: 0;
    overflow: visible;
    padding-bottom: 8px;
    padding-right: 8px;
}

.pat-disc-row-main {
    flex: 1;
    min-width: 0;
}

.pat-disc-row-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.pat-disc-row-title {
    font-size: 16px;
    font-weight: 500;
    color: #435560;
    font-family: 'Inter';
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pat-disc-row-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 7px;
    border-radius: 3px;
    flex-shrink: 0;
    font-family: 'Inter';
}

.pat-disc-row-badge.pinned { display: inline-flex; align-items: center; gap: 5px; background: #34424C; color: #fff; border: 0; border-radius: 4px; padding: 5px 7px 4px; font: 700 11px 'Inter', sans-serif; letter-spacing: .5px; text-transform: uppercase; line-height: 1; vertical-align: middle; }
.pat-disc-row-badge.pinned svg { width: 11px; height: 11px; display: block; }
.pat-disc-row-badge.pending {background: #fef9c3;color: #a16207;border: 1px solid #a162074f;}

.pat-disc-row-tag {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pat-disc-row-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;

    color: #64748b9c;
}

.pat-disc-row-author {
    color: #49505ad9;
    font-weight: 600;
}
.pat-disc-row-sep { color: #cbd5e1; }

.pat-disc-row-client-type {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
}

.pat-disc-row-date {
    
}

.pat-disc-row-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    text-align: center;
}

.pat-disc-row-stat-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.pat-disc-row-stat-label {
    display: block;
    font-size: 10px;
    color: #a8a8a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pat-disc-row-activity {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
}

.pat-disc-row-activity-date {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.pat-disc-row-activity-by {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

/* Cross-promotion cards */
.pat-disc-promo-cards-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.pat-disc-promo-cards-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.pat-disc-promo-cards {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pat-disc-promo-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
    border-radius: 10px;
    padding: 10px 14px 10px 10px;
    text-decoration: none;
    transition: all 0.15s;
    min-width: 180px;
}

.pat-disc-promo-card:hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.pat-disc-promo-circle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pat-disc-promo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pat-disc-promo-text {
    min-width: 0;
}

.pat-disc-promo-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pat-disc-promo-meta {
    font-size: 11px;
    color: #94a3b8;
}

/* Moved thread stub */
.pat-disc-row-moved {
    opacity: 0.6;
    text-decoration: none;
    display: flex;
    border-left: 3px solid #94a3b8;
}

.pat-disc-row-moved:hover {
    opacity: 0.8;
    background: #f8fafc;
}

.pat-disc-row-badge.moved {
    background: #f1f5f9;
    color: #64748b;
}

.pat-disc-row-moved-to {
    color: #64748b;
    font-size: 12px;
}

.pat-disc-row-moved-to strong {
    color: #475569;
}

/* ==========================================================================
   THREAD VIEW (detail page)
   ========================================================================== */

.pat-disc-tv-loading {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 14px;
}

.pat-disc-tv-back {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    margin-bottom: 16px;
    background: none;
    border: none;
    color: #a0a5ab;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}

.pat-disc-tv-back:hover { color: #746974; }

/* Breadcrumb navigation */
.pat-disc-tv-breadcrumb {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 20px !important;
    color: #2c4351;
    font-weight: 400 !important;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    padding-bottom: 6px;
    /* border-bottom: 1px solid #dfdfdf91; */
    margin-top: 40px;
    /* background: #edf4f9; */
    /* border: 1px solid #dfe6ea; */
    border-bottom: 1px solid #ececec;
    border-radius: 6px 6px 0 0;
}

.pat-disc-tv-breadcrumb-back {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans';
    font-size: 20px;
    /* font-weight: 600; */
    color: #7e8b9d;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pat-disc-tv-breadcrumb-back:hover {
    color: #596974 !important;
}

.pat-disc-tv-breadcrumb-sep {
    color: #cbd5e1;
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.pat-disc-tv-breadcrumb-title {
    color: #2c4351;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pat-disc-tv-header {
    /* margin-bottom: 20px; */
}

.pat-disc-tv-title {
    font-size: 19px;
    font-weight: 600;
    color: #435560;
    font-family: 'Inter';
    line-height: 1.4;
    margin-bottom: 6px;
}

.pat-disc-tv-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 7px;
}

/* Original post */
.pat-disc-tv-op {
    display: flex;
    background: #fff;
    border: 1px solid #dfdfdfeb;
    border-radius: 0 0 10px 10px;
    margin-bottom: 24px;
    overflow-x: clip;
    overflow-y: visible;
}

.pat-disc-tv-op-author {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    word-break: break-word;
}

.pat-disc-tv-op-content {
    flex: 1;
    min-width: 0;
    padding: 15px 15px 15px 25px;
    background: #f4f8fb75;
}

.pat-disc-tv-op-date {
    font-size: 13px;
    color: #788597;
    margin-bottom: 10px;
}

.pat-disc-tv-op-body {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    overflow: hidden;
    word-break: break-word;
}

.pat-disc-tv-op-body p {
    margin: 0 0 12px;
    font-size: 15px !important;
}

/* 3.9.46: headings inside a post (used by debriefs filled from a feedback submission) */
.pat-disc-tv-op-body h3 { font: 600 16px/1.4 'Inter', sans-serif; color: #34424C; margin: 22px 0 8px; padding: 0; text-transform: none; letter-spacing: 0; }
.pat-disc-tv-op-body h3:first-child { margin-top: 0; }
/* 3.9.50: in a Candidate Debrief the headings take the section's colour; lists as the candidate wrote them */
.pat-disc-tv-op-body.is-debrief h3 { color: var(--pat-disc-h, #34424C); }
.pat-disc-tv-op-body ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.pat-disc-tv-op-body ul li { margin: 0 0 6px; padding: 0; list-style: disc; }
.pat-disc-tv-op-body p:last-child {
    margin-bottom: 0;
}

.pat-disc-tv-op-body img,
.pat-disc-reply-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    display: block;
}

/* Replies header */
.pat-disc-tv-replies-header {
    font-size: 16px;
    font-weight: 600;
    color: #6d6d6d;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 16px;
    margin-top: 50px;
    font-family: 'Open Sans';
}

.pat-disc-tv-no-replies {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
    font-size: 13px;
    font-family: 'Open Sans';
}

/* Reply card */
.pat-disc-reply {
display: flex;
    background: #fff;
    border: 1px solid #dfdfdfeb;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: clip;
}

.pat-disc-reply:hover { border-color: #e2e8f0; }

/* Highlighted reply (from shared link) */
.pat-disc-reply-highlight {
    background: #eff6ff82 !important;
    border: 1px solid #00acdd !important;
    box-shadow: 0 0 4px #00acdd !important;
    animation: pat-disc-highlight-pulse 1.6s ease-out;
}

@keyframes pat-disc-highlight-pulse {
    0% { box-shadow: 0 0 0 6px rgba(0, 172, 221, 0.35); }
    100% { box-shadow: 0 0 4px #00acdd; }
}

/* Shared mode: highlighted reply */
.pat-disc-shared-reply-highlight .pat-disc-reply {
    background: #eff6ff82;
    border: 1px solid #00acdd;
    box-shadow: 0 0 4px #00acdd;
}

.pat-disc-reply.most-helpful {
    border-color: #cee4d6;
    background: #f0fdf4;
}

.pat-disc-reply-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 80px;
}

.most-helpful .pat-disc-reply-sidebar {
    background: #f8fffa;
    border-right: 1px solid #cee4d6;
}

.pat-disc-reply-content {
    flex: 1;
    min-width: 0;
    padding: 15px 15px 15px 25px;
    background: #f4f8fb75;
}

.most-helpful .pat-disc-reply-content {
    background-color: #f0fdf4;
}

.pat-disc-reply-meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pat-disc-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.pat-disc-reply-date {
    font-size: 13px;
    color: #788597;
    margin-bottom: 10px;
}

.pat-disc-reply-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    overflow: hidden;
    word-break: break-word;
}

.pat-disc-reply-text p {
    margin: 0 0 8px;
}

.pat-disc-reply-text p:last-child {
    margin-bottom: 0;
}

/* Reply bar (button to open reply overlay) */
.pat-disc-tv-reply-bar {
    /* margin-top: 20px; */
    /* padding-top: 16px; */
    /* border-top: 1px solid #ebebeb; */
}

.pat-disc-open-reply-btn {
    display: flex;
    width: 125px;
    height: 58px;
    padding: 12px;
    background: #ebf6fe;
    border: 1px solid #dfe6ea;
    border-radius: 30px;
    color: #2c4351;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 700;
    transition: transform 0.2s;
    position: fixed;
    bottom: 20px;
    right: 265px;
    box-shadow: 0 1px 6px 1px #1111111a;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pat-disc-open-reply-btn img.emoji {
    font-size: 1.5em;
}

.pat-disc-open-reply-btn:hover {
    transform: scale(1.05);
}

/* Reply overlay (bottom sheet — same pattern as thread composer) */
.pat-disc-reply-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.pat-disc-reply-overlay.visible {
    display: block;
    pointer-events: auto;
}

.pat-disc-reply-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
}

.pat-disc-reply-overlay.open .pat-disc-reply-overlay-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.pat-disc-reply-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pat-disc-reply-overlay.open .pat-disc-reply-sheet {
    transform: translateY(0);
}

.pat-disc-reply-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-reply-sheet-title {
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #565656;
}

.pat-disc-reply-sheet-body {
    padding: 16px 22px 24px;
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

/* Quote preview inside reply overlay */
.pat-disc-reply-quote-preview {
    margin-bottom: 10px;
}

.pat-disc-quote-block {
    border-left: 3px solid #cbd5e1;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
}

.pat-disc-quote-attr {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.pat-disc-quote-attr strong {
    color: #64748b;
}

.pat-disc-quote-text {
    color: #475569;
    font-style: italic;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
}

.pat-disc-reply-overlay .pat-disc-editor {
    min-height: 100px;
}

.pat-disc-locked-notice {
    text-align: center;
    padding: 16px;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ---------- Composer (bottom-sheet overlay) ---------- */
.pat-disc-composer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.pat-disc-composer-overlay.visible {
    display: block;
    pointer-events: auto;
}

.pat-disc-composer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
}

.pat-disc-composer-overlay.open .pat-disc-composer-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.pat-disc-composer-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pat-disc-composer-overlay.open .pat-disc-composer-sheet {
    transform: translateY(0);
}

.pat-disc-composer-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d1d5db;
    margin: 10px auto 0;
}

.pat-disc-composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 6px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-composer-heading {
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #565656;
}

.pat-disc-composer-close {
    border-radius: 50%;
    border: none;
    background: none;
    color: #adb0b4;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: 0.2s ease;
}

.pat-disc-composer-close:hover {
    color: #687176;
}

.pat-disc-composer-inner {
    padding: 16px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pat-disc-composer-title,
.pat-disc-composer-stage,
.pat-disc-composer-body {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.pat-disc-composer-title:focus,
.pat-disc-composer-stage:focus,
.pat-disc-composer-body:focus {
    outline: none;
    border-color: #93c5fd;
}

.pat-disc-composer-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.pat-disc-cancel-thread,
.pat-disc-container .pat-disc-link-actions .pat-disc-cancel-thread {
    padding: 8px 16px;
    background: none;
    color: #929292;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Inter';
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.pat-disc-submit-thread,
.pat-disc-reply-submit,
.pat-disc-container .pat-disc-link-actions .pat-disc-submit-thread {
    padding: 8px 20px;
    background: #34424C;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter';
    cursor: pointer;
    transition: 0.2s;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.pat-disc-submit-thread:hover,
.pat-disc-reply-submit:hover { transform: scale(1.05); color: #fff; }


.pat-disc-submit-thread:disabled,
.pat-disc-reply-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* OP top row (date + actions) */
.pat-disc-tv-op-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Reply top row (meta + actions) */
.pat-disc-reply-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* Post action buttons (quote, share) */
.pat-disc-post-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.pat-disc-action-btn {
    padding: 3px 10px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    box-shadow: 0px 0px 4px #eeeeeeb5;
}

.pat-disc-action-btn:hover {
    transform: scale(1.05);
    color: #555;
}

.pat-disc-overall-section.pat-disc-platform-standalone .pat-disc-share-btn {
    display: none !important;
}

.pat-disc-tv-op-content .pat-disc-action-btn img.emoji {
    margin-right: 3px !important;;
}

.pat-disc-delete-btn {
    opacity: 0.4;
    transition: opacity 0.15s;
}

.pat-disc-delete-btn:hover {
    opacity: 1;
    color: #ef4444 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

/* Share button wrapper (for tooltip positioning) */
.pat-disc-share-btn-wrap {
    position: relative;
    display: inline-flex;
}

/* Share tooltip */
.pat-disc-share-tooltip {
    position: absolute;
    bottom: calc(100% + 9px);
    right: 0;
    background: #263238;
    color: #f3f5f8;
    font-size: 12px;
    font-family: 'Inter';
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 50;
}

.pat-disc-share-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: #263238;
}

.pat-disc-share-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Share note inside share panel */
.pat-disc-share-note {
    font-size: 12px;
    color: #64748b;
    background: #f0f9ff;
    border: 1px solid #bacdd7;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ---------- Share overlay (bottom sheet) ---------- */
.pat-disc-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.pat-disc-share-overlay.visible {
    display: block;
    pointer-events: auto;
}

.pat-disc-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
}

.pat-disc-share-overlay.open .pat-disc-share-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.pat-disc-share-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pat-disc-share-overlay.open .pat-disc-share-sheet {
    transform: translateY(0);
}

.pat-disc-share-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 6px 12px;   /* as the composer / reply headers */
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-share-sheet-title {
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #565656;
}

.pat-disc-share-sheet-body {
    padding: 16px 18px 24px;
}

.pat-disc-share-url-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pat-disc-share-url {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    font-family: monospace;
    background: #f8fafc;
}

.pat-disc-share-copy {
    padding: 8px 16px;
    background: #34424C;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Inter';
    transition: 0.2s;
    white-space: nowrap;
}

.pat-disc-share-copy:hover { background: #34424C; }

.pat-disc-share-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pat-disc-share-option {
    padding: 6px 14px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0px 0px 4px #eeeeeeb5;
}

.pat-disc-share-option:hover {
    transform: scale(1.05);
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Share button brand colours */
.pat-disc-share-x:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.pat-disc-share-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff;
}

.pat-disc-share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

.pat-disc-share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.pat-disc-share-email:hover {
    background: #64748b;
    border-color: #64748b;
    color: #ffffff;
}

/* ==========================================================================
   SHARED MODE (non-logged-in visitor view)
   ========================================================================== */

.pat-disc-shared {
    padding-bottom: 100px; /* Space for fixed CTA bar */
}

.pat-disc-shared-thread {
    position: relative;
}

/* Replies teaser with fade */
.pat-disc-shared-replies-wrap {
    position: relative;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.pat-disc-shared-replies-teaser {
    font-size: 14px;
    color: #94a3b8;
    padding: 20px 0 60px;
}

.pat-disc-shared-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Fixed CTA bar at bottom */
.pat-disc-shared-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.pat-disc-shared-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.pat-disc-shared-cta-text {
    flex: 1;
}

.pat-disc-shared-cta-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.pat-disc-shared-cta-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.pat-disc-shared-cta-desc strong {
    color: #334155;
}

.pat-disc-shared-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.pat-disc-shared-cta-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.pat-disc-shared-cta-btn.primary {
    background: #1e293b;
    color: #fff;
    border: none;
}

.pat-disc-shared-cta-btn.primary:hover {
    background: #334155;
    color: #fff;
}

.pat-disc-shared-cta-btn.secondary {
    background: none;
    color: #3b82f6;
    border: none;
    font-size: 12px;
    padding: 4px 0;
}

.pat-disc-shared-cta-btn.secondary:hover {
    color: #1d4ed8;
}

/* Hide interactive elements in shared mode */
.pat-disc-shared .pat-disc-post-actions,
.pat-disc-shared .pat-disc-reactions {
    display: none;
}

/* ==========================================================================
   PROFILE BLOCK
   ========================================================================== */

/* Staff avatar image */
.pat-disc-avatar-img {
    background: none !important;
    border: none !important;
    padding: 0;
    overflow: visible;
}

.pat-disc-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Online indicator */
.pat-disc-online-indicator {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 4;
}

.pat-disc-online-indicator.small {
    width: 8px;
    height: 8px;
    top: -1px;
    right: -1px;
}

.pat-disc-online-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

/* Online: the element becomes a transparent frame; the dot face is drawn by ::before
   (on top) and the pulse by ::after (beneath it) — same box, same centre, and the
   pulse genuinely emerges from behind the white ring. */
.pat-disc-online-indicator.online {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.pat-disc-online-indicator.online::before {
    content: '';
    position: absolute;
    top: -2px; right: -2px; bottom: -2px; left: -2px; /* back over the (now transparent) 2px border */
    box-sizing: border-box;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
    z-index: 1;
}

.pat-disc-online-indicator.online::after {
    content: '';
    position: absolute;
    /* cover the indicator's full border box exactly (its border is 2px), so the
       ring is centred on the dot by construction — no hand-tuned margins */
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    width: auto; height: auto;
    margin: 0 !important;
    box-sizing: border-box;
    border: 3px solid rgba(34, 197, 94, 0.6);
    border-radius: 50%;
    transform-origin: 50% 50%;
    animation: pat-disc-pulsate-sm 2.5s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* avatar indicator keeps the original, tighter pulse */
@keyframes pat-disc-pulsate-sm {
    0%   { transform: scale(0.6); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pat-disc-pulsate {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}




.pat-disc-online-indicator.away {
    background: #edd423;
    box-shadow: 0 0 4px rgba(237, 212, 35, 0.4);
}

.pat-disc-online-indicator.offline {
    background: #94a3b8;
}

/* Profile info */
.pat-disc-profile-info {
    text-align: center;
    margin-top: 16px;
}

.pat-disc-profile-info.small {
    text-align: left;
    margin-top: 0;
}

.pat-disc-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-direction: column;
}

.pat-disc-profile-info.small .pat-disc-profile-name {
    justify-content: flex-start;
    font-size: 13px;
}

.pat-disc-profile-type {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Client type variants — colours match .pat-badge-* */
.pat-disc-type-asp {background: #f0fdf4; color: #16a34a; border: 1px solid #16a34a3d;}
.pat-disc-type-nqp {background: #f5f3ff; color: #7c3aed; border: 1px solid #7c3aed3d;}
.pat-disc-type-exp {background: #fefce8; color: #ca8a04; border: 1px solid #ca8a0463;}

/* Standalone signature shortcode */
.pat-disc-signature-standalone {
    max-width: 600px;
}

.pat-disc-signature-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.pat-disc-signature-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.pat-disc-signature-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.pat-disc-profile-posts {
    font-size: 11px;
    color: #909baa;
    margin-top: 5px;
}

/* Reply sidebar with profile — matches OP sidebar */
.pat-disc-reply-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 175px;
    border-right: 1px solid #ebebeb;
    padding: 20px 20px 20px;
    box-shadow: 1px 0px 4px #eeeeeeb5;
}

/* OP sidebar layout */
.pat-disc-tv-op-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 175px;
    border-right: 1px solid #ebebeb;
    padding: 20px 20px 20px;
    box-shadow: 1px 0px 4px #eeeeeeb5;
}

/* ==========================================================================
   RICH TEXT TOOLBAR
   ========================================================================== */

.pat-disc-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #dfdfdfeb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.pat-disc-toolbar + .pat-disc-editor {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Contenteditable editor */
.pat-disc-editor {
    width: 100%;
    min-height: 120px;
    padding: 10px 14px;
    border: 1px solid #dfdfdfeb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    color: #334155;
    background: #fff;
    outline: none;
    overflow-y: auto;
    transition: border-color 0.15s;
    -webkit-user-modify: read-write-plaintext-only;
    -webkit-user-modify: read-write;
}

.pat-disc-editor:focus {
    border-color: #93c5fd;
}

.pat-disc-editor.is-empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
    position: absolute;
}

.pat-disc-editor {
    position: relative;
}

.pat-disc-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

.pat-disc-editor a {
    color: #3b82f6;
    text-decoration: underline;
}

/* Drag-over state */
.pat-disc-editor-dragover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

/* Image uploading placeholder */
.pat-disc-img-uploading {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 12px;
    margin: 4px 0;
}

/* Image selected state + resize handle */
.pat-disc-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    cursor: default;
}

.pat-disc-img-wrap {
    display: inline-block;
    position: relative;
    line-height: 0;
}

.pat-disc-img-wrap.active img {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.pat-disc-resize-handle {
    display: none;
    position: absolute;
    bottom: 4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border: 2px solid #fff;
    border-radius: 2px;
    cursor: nwse-resize;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pat-disc-img-wrap.active .pat-disc-resize-handle {
    display: block;
}

/* ---------- Link insert dialog (nested in sheet) ---------- */

/* Dim the sheet content behind the link dialog */
.pat-disc-sheet-dimmed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(100, 116, 139, 0.15);
    z-index: 10;
    border-radius: inherit;
    pointer-events: none;
}

.pat-disc-sheet-dimmed > .pat-disc-reply-sheet-header,
.pat-disc-sheet-dimmed > .pat-disc-reply-sheet-body,
.pat-disc-sheet-dimmed > .pat-disc-composer-header,
.pat-disc-sheet-dimmed > .pat-disc-composer-inner {
    pointer-events: none;
}

.pat-disc-link-dialog {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pat-disc-link-dialog.visible {
    pointer-events: auto;
}

.pat-disc-link-dialog.open {
    opacity: 1;
}

.pat-disc-link-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    width: 340px;
    max-width: 90%;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.pat-disc-link-dialog.open .pat-disc-link-panel {
    transform: scale(1);
}

.pat-disc-link-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-link-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.pat-disc-link-panel-body {
    padding: 12px 16px 16px;
}

.pat-disc-link-field {
    margin-bottom: 10px;
}

.pat-disc-link-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
}

.pat-disc-link-input {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.pat-disc-link-input:focus {
    outline: none;
    border-color: #93c5fd;
}

.pat-disc-link-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.pat-disc-link-actions-right {
    display: flex;
    gap: 8px;
}

/* ---------- Emoji picker dialog ---------- */
.pat-disc-emoji-dialog {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pat-disc-emoji-dialog.visible {
    pointer-events: auto;
}

.pat-disc-emoji-dialog.open {
    opacity: 1;
}

.pat-disc-emoji-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    width: 360px;
    max-width: 90%;
    max-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.pat-disc-emoji-dialog.open .pat-disc-emoji-panel {
    transform: scale(1);
}

.pat-disc-emoji-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-emoji-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0 8px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.pat-disc-emoji-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.pat-disc-emoji-tab:hover {
    color: #475569;
}

.pat-disc-emoji-tab.active {
    color: #1e293b;
    border-bottom-color: #3b82f6;
}

.pat-disc-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.pat-disc-emoji-item {
    background: none;
    border: none;
    font-size: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
    padding: 0;
    line-height: 1;
}

.pat-disc-emoji-item:hover {
    background: #f1f5f9;
}

.pat-disc-link-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
    transition: color 0.15s;
}

.pat-disc-link-remove:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Inline quote in editor */
.pat-disc-inline-quote {
    border-left: 3px solid #cbd5e1;
    background: #f5f7fa;
    padding: 8px 12px;
    margin: 0 0 12px 0 !important;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
}

.pat-disc-inline-quote strong {
    font-weight: 700;
    color: #505c64;
}

/* Signature editor (shorter) */
.pat-disc-signature-editor {
    min-height: 60px;
}

.pat-disc-toolbar-btn {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    color: #475569;
    font-family: inherit;
    transition: all 0.15s;
    line-height: 1;
}

.pat-disc-toolbar-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pat-disc-toolbar-btn.active {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
}

.pat-disc-toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   SIGNATURE
   ========================================================================== */

.pat-disc-signature {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.5;
}

.pat-disc-signature a { color: #3b82f6; }
.pat-disc-signature b, .pat-disc-signature strong { color: #64748b; font-style: normal; }

/* ==========================================================================
   PROFILE PAGE ([pat-discussion-profile] shortcode)
   ========================================================================== */

.pat-disc-profile-page {
    max-width: 600px;
}

.pat-disc-profile-page-section {
    margin-bottom: 28px;
}

.pat-disc-profile-page-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.pat-disc-profile-page-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pat-disc-profile-page-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pat-disc-profile-page-preview .pat-disc-profile-info {
    text-align: left;
}

.pat-disc-profile-page-preview .pat-disc-profile-name {
    justify-content: flex-start;
    font-size: 14px;
}

.pat-disc-profile-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pat-disc-signature-status {
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pat-disc-activity-bar { flex-direction: column; align-items: flex-start; }
    .pat-disc-bar-right { width: 100%; justify-content: space-between; }

    .pat-disc-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .pat-disc-row-stats { gap: 14px; }
    .pat-disc-row-activity { width: auto; text-align: left; }

    .pat-disc-feedback-cta { flex-direction: column; text-align: center; }

    .pat-disc-shared-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .pat-disc-shared-cta-actions {
        width: 100%;
    }

    .pat-disc-shared-cta-btn.primary {
        width: 100%;
    }
}

/* ==========================================================================
   MOST POPULAR SIDEBAR
   ========================================================================== */

.pat-disc-list-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pat-disc-list-layout .pat-disc-thread-list, .pat-disc-overall-section .pat-disc-thread-list {
    flex: 1;
    min-width: 0;
}
/* Section pages: the list carries the base border, matching the Most Popular card */
.pat-disc-list-layout .pat-disc-thread-list { overflow: clip; }
/* Overall hub: the scheme card already has a border, so the list inside stays borderless */
.pat-disc-overall-section .pat-disc-thread-list { border: none; border-radius: 0; }

.pat-disc-popular-sidebar {
    flex-shrink: 0;
    width: 200px;
    position: sticky;
    top: 40px;
    border: 1px solid #dfdfdfeb;
    border-radius: 6px;
    overflow: clip;
    background: #f4f8fb75;
}

.pat-disc-popular-title {
    font-size: 16px;
    font-weight: 500;
    background: white;
    letter-spacing: 0.5px;
    color: #4c4c4c;
    margin-bottom: 0px;
    padding: 8px 16px;
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 1px 4px #eeeeeeb5
}

.pat-disc-popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px 12px 13px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.1s;
}

.pat-disc-popular-item:hover {
    background: #f4f6f9;
}

.pat-disc-popular-item:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.pat-disc-popular-item-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.pat-disc-popular-item-avatar.staff {
    background: #fce7f3;
    color: #db2777;
}

.pat-disc-popular-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pat-disc-popular-item-body {
    min-width: 0;
}

.pat-disc-popular-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #435560;
    font-family: 'Inter';
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pat-disc-popular-item-meta {
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE: 760px — hide popular sidebar
   ========================================================================== */

@media (max-width: 760px) {
    .pat-disc-popular-sidebar {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE: 520px — sidebar above content, horizontal layout
   ========================================================================== */

@media (max-width: 520px) {
    .pat-disc-tv-op {
        flex-direction: column;
    }

    .pat-disc-tv-op-sidebar,
    .pat-disc-reply-sidebar {
        flex-direction: row;
        width: auto;
        align-items: center;
        gap: 10px;
    }

    .pat-disc-tv-op-sidebar .pat-disc-avatar,
    .pat-disc-reply-sidebar .pat-disc-avatar,
    .pat-disc-tv-op-sidebar .pat-disc-avatar-img,
    .pat-disc-reply-sidebar .pat-disc-avatar-img {
        flex-shrink: 0;
    }

    .pat-disc-tv-op-sidebar .pat-disc-profile-info,
    .pat-disc-reply-sidebar .pat-disc-profile-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 0;
    }

    .pat-disc-tv-op-sidebar .pat-disc-profile-name,
    .pat-disc-reply-sidebar .pat-disc-profile-name {
        justify-content: flex-start;
    }

    .pat-disc-reply {
        flex-direction: column;
    }
}

/* ==========================================================================
   @MENTIONS
   ========================================================================== */

/* Mention links in posts */
.pat-disc-mention {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    background: #eff6ff;
    padding: 1px 4px;
    border-radius: 3px;
    cursor: default;
    white-space: nowrap;
}

.pat-disc-mention:hover {
    background: #dbeafe;
}

/* In editors, make mentions non-editable inline elements */
.pat-disc-editor .pat-disc-mention {
    user-select: all;
}

/* Autocomplete dropdown — appended to body, fixed position */
.pat-disc-mention-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
    min-width: 200px;
    max-width: 300px;
    z-index: 100010;
}

.pat-disc-mention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.1s;
}

.pat-disc-mention-item:last-child {
    border-bottom: none;
}

.pat-disc-mention-item:hover,
.pat-disc-mention-item.active {
    background: #f0f6ff;
}

.pat-disc-mention-item-name {
    font-weight: 600;
    color: #1e293b;
}

.pat-disc-mention-item-type {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 8px;
}

/* ==========================================================================
   AVATAR UPLOAD / CROP
   ========================================================================== */

/* Avatar wrapper for edit button overlay */
.pat-disc-avatar-wrapper {
    position: relative;
    display: inline-block;
}

/* Preparation score ring — overlaid bottom-right of avatar */
.pat-disc-score-ring {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    cursor: help;
    z-index: 2;
}

.pat-disc-score-ring svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.pat-disc-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #444;
    line-height: 1;
    top: -1px;
}

.pat-disc-avatar-edit-inline {
    width: 24px !important;
    height: 24px !important;
    top: -2px !important;
    right: -2px !important;
    opacity: 1;
    padding: 4px !important;
}

.pat-disc-avatar-edit-inline:hover {
    transform: scale(1.15);
}

.pat-disc-avatar-edit-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Shortcode display */
.pat-disc-avatar-editor-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pat-disc-avatar-display {
    position: relative;
    display: inline-block;
}

.pat-disc-avatar-large {
    width: 90px !important;
    height: 90px !important;
    font-size: 26px !important;
}
@media (max-width: 600px) {
    .pat-disc-avatar-large {
        width: 77px !important;
        height: 77px !important;
        font-size: 22px !important;
    }
}

.pat-disc-avatar-edit-btn {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.15s;
    padding: 5px;
}

.pat-disc-avatar-edit-btn:hover,
.pat-disc-avatar-edit-btn:focus-visible {
    box-shadow: #3537374f 0px 0px 6px 0px;
    border: 2px solid #00acdd;
    outline: none;
}

.pat-disc-avatar-edit-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.pat-disc-avatar-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

/* Dialog */
.pat-disc-avatar-dialog {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pat-disc-avatar-dialog.visible {
    visibility: visible;
}

.pat-disc-avatar-dialog.open {
    opacity: 1;
}

.pat-disc-avatar-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.pat-disc-avatar-dialog-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 360px;
    max-width: 92vw;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.pat-disc-avatar-dialog.open .pat-disc-avatar-dialog-panel {
    transform: scale(1);
}

.pat-disc-avatar-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.pat-disc-avatar-dialog-title {
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #565656;
}

/* Dialog / sheet heading: the logo mark sits bottom-left of the header as a
   background, bleeding slightly off the corner, with the title cleared past it */
.pat-disc-dialog-heading { display: inline-flex; align-items: center; min-width: 0; }
.pat-disc-dialog-logo { display: none; }
.pat-disc-avatar-dialog-header,
.pat-disc-share-sheet-header,
.pat-disc-reply-sheet-header,
.pat-disc-composer-header {
    position: relative;
    background-image: url('../images/dialog-logo.svg');
    background-repeat: no-repeat;
    background-position: 0 9px;
    background-size: 48px auto;
    padding-left: 60px !important;
}

.pat-disc-avatar-dialog-body {
    padding: 18px;
}

.pat-disc-avatar-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
}

/* Dropzone */
.pat-disc-avatar-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.15s;
    cursor: pointer;
}

.pat-disc-avatar-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.pat-disc-avatar-dropzone-text {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
}

.pat-disc-avatar-browse {
    padding: 0;
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    font-family: inherit;
}

.pat-disc-avatar-dropzone-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* Crop area */
.pat-disc-avatar-crop-area {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

#pat-disc-avatar-canvas {
    border-radius: 4px;
    cursor: grab;
    touch-action: none;
    background: #f8fafc;
    max-width: 100%;   /* scale down with the dialog on narrow screens; buffer stays 240px */
    height: auto;
    aspect-ratio: 1 / 1;
}

#pat-disc-avatar-canvas:active {
    cursor: grabbing;
}

.pat-disc-avatar-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 35px 15px;
}

.pat-disc-avatar-zoom-label { display: none; }

/* Zoom slider: blue filled track to the left of a white thumb (site slider style) */
#pat-disc-avatar-zoom {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #3793D1 0%, #3793D1 var(--pat-zoom-pct, 0%), #e4e7eb var(--pat-zoom-pct, 0%), #e4e7eb 100%);
    outline: none;
    margin: 0;
    cursor: pointer;
}
#pat-disc-avatar-zoom::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: transparent; }
#pat-disc-avatar-zoom::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -5px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d6dbe0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: grab;
}
#pat-disc-avatar-zoom:active::-webkit-slider-thumb { cursor: grabbing; }
#pat-disc-avatar-zoom::-moz-range-track { height: 8px; border-radius: 8px; background: #e4e7eb; }
#pat-disc-avatar-zoom::-moz-range-progress { height: 8px; border-radius: 8px; background: #3793D1; }
#pat-disc-avatar-zoom::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d6dbe0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Dialog footer buttons */
.pat-disc-avatar-dialog-footer .pat-disc-cancel-thread { font-family: 'Open Sans', sans-serif; }
.pat-disc-avatar-dialog-footer .pat-disc-submit-thread { font-weight: 500; }

.pat-disc-avatar-crop-hint {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0 0;
}

/* Remove button */
.pat-disc-avatar-remove-btn {
    background: #e02424;
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s;
}

.pat-disc-avatar-remove-btn:hover {
    background: #c81e1e;
}

.pat-disc-avatar-dialog-footer .pat-disc-submit-thread { border-radius: 999px; }
.pat-disc-avatar-dialog-footer .pat-disc-cancel-thread { margin-left: auto; }
.pat-disc-avatar-dialog-footer button { white-space: nowrap; }
.pat-disc-avatar-dialog-footer .pat-disc-avatar-remove-btn,
.pat-disc-avatar-dialog-footer .pat-disc-submit-thread { padding: 8px 16px; }

/* ==========================================================================
   Overall Discussions Hub  [pat-overall-discussions]
   ========================================================================== */

.pat-disc-overall {
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---- Empty state ---- */
.pat-disc-overall-empty {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.pat-disc-overall-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

/* ---- Group (participated / subscribed-only) ---- */
.pat-disc-overall-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pat-disc-overall-group .pat-disc-thread-view {
    /* margin: 0 2%; */
}

/* ---- Individual scheme section ---- */
.pat-disc-overall-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* ---- Section header ---- */
.pat-disc-overall-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.pat-disc-overall-section .pat-disc-cta-subtitle {
    display: none;
}

.pat-disc-overall-section-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.pat-disc-overall-scheme-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pat-disc-overall-scheme-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pat-disc-overall-new-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 20px;
}

.pat-disc-overall-view-link {
    flex-shrink: 0;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.pat-disc-overall-view-link:hover {
    color: #1e293b;
    text-decoration: underline;
}

/* ---- Thread list ---- */
.pat-disc-overall-thread-list {
    display: flex;
    flex-direction: column;
}

.pat-disc-overall-thread-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.pat-disc-overall-thread-row:last-child {
    border-bottom: none;
}

.pat-disc-overall-thread-row:hover {
    background: #f8fafc;
}

.pat-disc-overall-thread-row.has-new {
    background: #fffbeb;
}

.pat-disc-overall-thread-row.has-new:hover {
    background: #fef3c7;
}

.pat-disc-overall-thread-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pat-disc-overall-thread-title {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pat-disc-overall-thread-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pat-disc-overall-authored-tag {
    font-size: 11px;
    font-weight: 600;
    background: #ede9fe;
    color: #6d28d9;
    padding: 1px 6px;
    border-radius: 3px;
}

.pat-disc-overall-stage-tag {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 3px;
}

.pat-disc-overall-activity {
    font-size: 11px;
    color: #94a3b8;
}

.pat-disc-overall-thread-aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.pat-disc-overall-reply-count {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.pat-disc-overall-new-count {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ---- No threads placeholder ---- */
.pat-disc-overall-no-threads {
    padding: 16px;
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

/* ==========================================================================
   Overall Discussions Hub  [pat-overall-discussions]

   The CTA banner (.pat-disc-cta), thread rows (.pat-disc-row / .pat-disc-list-layout),
   activity bar (.pat-disc-activity-bar), and composer overlay
   (.pat-disc-composer-overlay) all reuse their existing styles verbatim.
   Only the hub-level structural wrappers need new rules here.
   ========================================================================== */

/* Hub root */
.pat-disc-overall {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 3% 3% 3% 3%;
    background: linear-gradient(0deg, #fff, #eff6fb85);
}

/* Group headings ("Your discussions" / "Subscribed — no activity yet") */
.pat-disc-overall-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pat-disc-overall-group:last-of-type {
    margin-top: 60px;
}

.pat-disc-overall-group-label {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #515558;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7e9;
}

/* Per-scheme section card */
.pat-disc-overall-section {
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px #adb4b814;
}

.pat-disc-overall-section.pat-disc-platform-standalone {
    background: none !important;
    border: none;
    box-shadow: none;
}

.pat-disc-platform-standalone .pat-disc-cta {
    border: 1px solid #e2e2e2cc; !important
;
    border-radius: 10px 10px 0 0 !important;
} 

/* Remove the CTA's own border-radius when it sits at the top of a card */
.pat-disc-overall-section .pat-disc-cta {
    border-radius: 0;
    padding: 2px 28px 2px 0;
    margin-bottom: 0px;
    box-shadow: inset 0px 0px 1px #5555550a;
    border-bottom: 1px solid #dddddd63;
}

.pat-disc-overall-section .pat-disc-cta-heading {
    font-size: 17px;
}

.pat-disc-overall-section .pat-disc-cta-tail {
    height: 50px;
}

.pat-disc-overall-section .pat-disc-activity-bar {
    background: #fafcfd;
    padding: 8px 10px;
    margin-bottom: 0px;
    border-bottom: 1px solid #eee;
    box-shadow: inset 0 0 4px #f5f5f5;
    /* display: none; */
}

.pat-disc-platform-standalone .pat-disc-activity-bar {
    border: 1px solid #e2e2e29c !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px;
}

.pat-disc-overall-section .pat-disc-activity-bar .pat-disc-activity-stats {
    padding-left: 12px;
    font-weight: 600;
    
}

.pat-disc-overall-section .pat-disc-activity-bar .pat-disc-new-thread-btn {
    font-size: 13px;
    padding: 5px 10px;
}

/* "Full discussion →" link in the activity bar */
.pat-disc-overall-view-btn {
    font-size: 14px;
    font-weight: 600;
    color: #a8b4c5;
    text-decoration: none;
    transition: color 0.15s;
}

.pat-disc-overall-view-btn span {
    font-family: 'Inter';
    color: #ddd;
    transition: color 0.15s;
}

.pat-disc-overall-view-btn:hover {
    color: #4d6777;
}

.pat-disc-overall-view-btn:hover span {
    color: #aba9a9
}

/* "No activity" prompt inside a subscribed-only section */
.pat-disc-overall-no-activity {
    padding: 20px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.pat-disc-overall-no-activity p {
    margin: 4px 0 0;
}

/* Empty state button — discussion tab and overall hub */
.pat-disc-empty {
    text-align: center;
}

.pat-disc-empty .pat-disc-new-thread-btn {
    margin-top: 20px;
}

/* Overall hub empty state sits inside a section card — needs padding */
.pat-disc-overall-empty-state {
    padding: 28px 20px 32px;
}

/* Overall hub — group header with description */
.pat-disc-overall-group-header {
    margin-bottom: 4px;
}

.pat-disc-overall-group-desc {
    font-size: 13px !important;
    color: #5e626ae8;
    margin: 14px 0 14px 0 !important;
    line-height: 1.5;
    font-family: 'Inter';
    display: none;
}

.pat-disc-overall-group-desc a {
    color: #6c727a !important;
    border-bottom: 1px dashed #c9d2da !important;
    transition: 0.1s;
}

.pat-disc-overall-group-desc a:hover {
    color: #464c57 !important;
}

/* ==========================================================================
   Migration popover  (overall discussions hub)
   ========================================================================== */

.pat-disc-migration-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.pat-disc-migration-overlay.visible {
    display: flex;
}

.pat-disc-migration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pat-disc-migration-overlay.open .pat-disc-migration-backdrop {
    opacity: 1;
}

.pat-disc-migration-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 440px;
    margin: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.pat-disc-migration-overlay.open .pat-disc-migration-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pat-disc-migration-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.pat-disc-migration-close:hover {
    color: #1e293b;
}

.pat-disc-migration-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.pat-disc-migration-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.pat-disc-migration-body {
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
    text-align: left;
    margin-bottom: 20px;
}

.pat-disc-migration-body p {
    margin: 0 0 10px;
}

.pat-disc-migration-body p:last-child {
    margin-bottom: 0;
}

.pat-disc-migration-dismiss-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    margin-bottom: 18px;
    align-self: flex-start;
}

.pat-disc-migration-dismiss-label input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.pat-disc-migration-got-it {
    width: 100%;
    padding: 11px 0;
    background: #1e3a4f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.pat-disc-migration-got-it:hover {
    background: #162d3e;
}

/* Overall hub — site-wide online count bar */
.pat-disc-overall-online-bar {
    display: inline-flex;
    align-items: flex-end;
    gap: 7px;
    color: #90959b;
    padding-bottom: 3px;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    height: 32px;
    background-color: #eeeeee87;
    align-self: center;
    margin-right: 8px;
}

.pat-disc-overall-online-bar strong {
    color: #555555;
    font-weight: 600;
}

span.pat-disc-overall-online-count {
    padding-left: 8px !important;
    font-size: 14px !important;
}

span.pat-disc-overall-last-activity {
    padding-right: 12px !important;
    font-size: 14px !important;
    padding-left: 0px !important;
}

/* the optional-label spans must be invisible wrappers: no theme span padding/size can apply to them */
.pat-disc-overall-online-bar .pat-disc-pill-label { display: inline !important; font: inherit !important; color: inherit !important; padding: 0 !important; margin: 0 !important; line-height: inherit !important; letter-spacing: inherit !important; }

span.pat-disc-overall-last-activity::before {
    content: "•";
    color: #919191;
    padding-right: 2px;
    font-size: 14px
    
}

/* ==========================================================================
   Platform section — inline thread view within overall hub
   ========================================================================== */

.pat-disc-platform-section .pat-disc-platform-thread-view {
    padding-top: 8px;
}

/* The back button rendered by the thread view AJAX sits inside our container;
   frontend.js's closeThread() is a no-op here — our popstate handler fires
   instead. No extra styling needed, the existing .pat-disc-tv-breadcrumb
   and #pat-disc-back-to-list styles apply as-is. */

/* Fade in the thread view when it loads */
.pat-disc-platform-thread-view .pat-disc-tv-container {
    animation: patPlatformFadeIn 0.18s ease;
}

@keyframes patPlatformFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   v3.2 — Follow, Edit window, Drafts, Email preferences
   ============================================================ */

/* Follow button */
.pat-disc-follow-btn.following {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.pat-disc-follow-btn.following .pat-disc-follow-icon {
    display: inline-block;
    animation: pat-disc-bell 0.5s ease;
}
@keyframes pat-disc-bell {
    0%   { transform: rotate(0); }
    25%  { transform: rotate(-18deg); }
    50%  { transform: rotate(14deg); }
    75%  { transform: rotate(-8deg); }
    100% { transform: rotate(0); }
}

/* Toast */
.pat-disc-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: #1e293b;
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100000;
    max-width: calc(100vw - 32px);
}
.pat-disc-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Edited marker */
.pat-disc-edited-marker {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 6px;
    cursor: help;
}

/* Edit mode: same header as composing (the pencil and amber underline were removed in 3.9.9) */

/* Draft restored bar */
.pat-disc-draft-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.pat-disc-draft-discard {
    background: none;
    border: none;
    color: #b45309;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

/* Email preferences (profile page) */
.pat-disc-email-prefs {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.pat-disc-pref-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    margin: 0;
}
.pat-disc-pref-row:last-of-type { border-bottom: none; }
.pat-disc-pref-row:hover { background: #f8fafc; }
.pat-disc-pref-row input[type="checkbox"] {
    margin: 3px 0 0 0;
    width: 16px;
    height: 16px;
    accent-color: #3793d1;
    flex-shrink: 0;
}
.pat-disc-pref-text { display: flex; flex-direction: column; gap: 2px; }
.pat-disc-pref-text strong { font-size: 14px; color: #1e293b; font-weight: 600; }
.pat-disc-pref-text small { font-size: 12px; color: #64748b; line-height: 1.5; }
.pat-disc-email-prefs .pat-disc-profile-page-actions { padding: 0 16px 10px; min-height: 18px; }
.pat-disc-signature-status.error { color: #dc2626; }

/* Followed threads (profile page) */
.pat-disc-followed-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.pat-disc-followed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.pat-disc-followed-row:last-child { border-bottom: none; }
.pat-disc-followed-main { min-width: 0; }
.pat-disc-followed-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pat-disc-followed-title:hover { color: #3793d1; }
.pat-disc-followed-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.pat-disc-followed-empty {
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}
@media (max-width: 600px) {
    .pat-disc-followed-row { flex-direction: column; align-items: stretch; }
    .pat-disc-followed-title { white-space: normal; }
}

/* Sections picker (profile page) */
.pat-disc-sections-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.pat-disc-section-chip{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer;font-size:13px;color:#475569;margin:0;transition:.15s}
.pat-disc-section-chip:hover{border-color:#cbd5e1}
.pat-disc-section-chip.on{background:#ebf6fe;border-color:#bfdbfe;color:#1e293b;font-weight:600}
.pat-disc-section-chip input{accent-color:#3793d1;width:15px;height:15px;margin:0;flex-shrink:0}
.pat-disc-section-chip img{width:34px;height:auto;flex-shrink:0}
.pat-disc-section-swatch{width:34px;height:20px;border-radius:4px;background:var(--sc,#3793d1);flex-shrink:0;opacity:.8}
.pat-disc-section-chip span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Account tabs (Edit Details popup) — same treatment as the PAT Section Layout
   Activities / Resources / Discussion tabs: grey labels, active tab is a white
   card with a brand top rule that merges into the panel below. */
.pat-disc-account-tabs{--pat-disc-brand:#3793d1}
.pat-disc-tabbar{display:flex;border-bottom:1px solid #dfe6ea;padding:0 12px;margin:0;background:transparent;overflow-x:auto;scrollbar-width:none}
.pat-disc-tabbar::-webkit-scrollbar{display:none}
.pat-disc-tab{flex-shrink:0;padding:8px 20px;border:none;background:none;cursor:pointer;font-size:16px;font-family:'Open Sans',sans-serif;font-weight:500;color:#a0a5ab;border-top:3px solid transparent;margin-bottom:-1px;border-bottom:1px solid transparent;transition:all .2s ease;display:flex;align-items:center;gap:6px;border-top-left-radius:4px;border-top-right-radius:4px}
.pat-disc-tab:hover{color:#646970}
.pat-disc-tab.active{color:#596974;background:#fff;border-top-color:var(--pat-disc-brand);border-bottom-color:#fff;border-left:1px solid #dfe6ea;border-right:1px solid #dfe6ea;box-shadow:0 -3px 7px #d6dde2}
.pat-disc-tab:focus-visible{outline:2px solid var(--pat-disc-brand);outline-offset:-2px}
.pat-disc-tab-icon{font-size:14px;line-height:1}
.pat-disc-tabpanel{background:#fff;border:1px solid #dfe6ea;border-top:none;border-radius:0 0 8px 8px;padding:22px 20px}
.pat-disc-tabpanel .pat-disc-profile-page-section{margin-bottom:24px}
.pat-disc-tabpanel .pat-disc-profile-page-section:last-child{margin-bottom:0}
/* The lightbox is white; give the tab bar the page-grey band so the active tab reads as a card */
.popup-container-edit .pat-disc-account-tabs{margin:0 -40px;padding:0}
.popup-container-edit .pat-disc-tabbar{background:#f4f6f8;padding:10px 24px 0;border-bottom-color:#dfe6ea}
.popup-container-edit .pat-disc-tabpanel{border:none;border-radius:0;padding:24px 40px 8px}
@media (max-width:600px){.pat-disc-tab{padding:8px 12px;font-size:14px}.popup-container-edit .pat-disc-account-tabs{margin:0 -16px}.popup-container-edit .pat-disc-tabpanel{padding:20px 16px 4px}}
/* Sections search */
.pat-disc-sections-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.pat-disc-sections-search{flex:1;min-width:200px;font:inherit;font-size:13px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#1e293b}
.pat-disc-sections-search:focus{outline:none;border-color:#3793d1;box-shadow:0 0 0 3px rgba(55,147,209,.15)}
.pat-disc-sections-onlysel{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#64748b;margin:0;cursor:pointer;white-space:nowrap}
.pat-disc-sections-onlysel input{accent-color:#3793d1;margin:0}
/* Narrow popup: two-column chips */
.popup-container-edit .pat-disc-sections-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.pat-disc-tabpanel[hidden]{display:none}

/* Subscription tab */
.pat-disc-sub-card{border:1px solid #e2e8f0;border-radius:10px;padding:18px 20px;background:#fff}
.pat-disc-sub-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.pat-disc-sub-product{font-size:20px;font-weight:700;color:#1e293b;font-family:'Inter',sans-serif}
.pat-disc-sub-status{display:inline-flex;align-items:center;gap:7px;margin-top:6px;font-size:13px;font-weight:600;color:#64748b}
.pat-disc-sub-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}
.pat-disc-sub-status.ok{color:#16a34a}.pat-disc-sub-status.ok .pat-disc-sub-dot{background:#22c55e}
.pat-disc-sub-status.warn{color:#d97706}.pat-disc-sub-status.warn .pat-disc-sub-dot{background:#f59e0b}
.pat-disc-sub-status.expired,.pat-disc-sub-status.off{color:#dc2626}.pat-disc-sub-status.expired .pat-disc-sub-dot,.pat-disc-sub-status.off .pat-disc-sub-dot{background:#ef4444}
.pat-disc-sub-buy{text-decoration:none;display:inline-block;border-radius:999px;padding:9px 20px}
.pat-disc-sub-bar{height:6px;background:#eef2f6;border-radius:3px;margin:16px 0 4px;overflow:hidden}
.pat-disc-sub-bar-fill{height:100%;border-radius:3px;background:#22c55e}
.pat-disc-sub-bar-fill.warn{background:#f59e0b}.pat-disc-sub-bar-fill.expired{background:#ef4444}
.pat-disc-sub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px 20px;margin:16px 0 0}
.pat-disc-sub-grid dt{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;font-weight:600}
.pat-disc-sub-grid dd{margin:3px 0 0;font-size:14px;color:#1e293b;font-weight:600;word-break:break-word}
.pat-disc-sub-grid dd small{display:block;font-size:12px;color:#64748b;font-weight:400;margin-top:1px}
.pat-disc-sub-pill{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:#dcfce7;color:#16a34a;white-space:nowrap}


/* ==========================================================================
   3.2.27 — Activity bar: hold the layout whatever the theme does to buttons
   ========================================================================== */
.pat-disc-activity-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pat-disc-activity-stats { flex: 1 1 auto; min-width: 0; }
.pat-disc-bar-right { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 10px; flex: 0 0 auto; width: auto; }
.pat-disc-sort-controls { flex: 0 0 auto !important; width: auto !important; max-width: none; }
.pat-disc-sort-btn { white-space: nowrap; width: auto; display: inline-block; margin: 0; }
.pat-disc-activity-bar .pat-disc-new-thread-btn { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; margin: 0 !important; white-space: nowrap; line-height: 1.3; }
@media (max-width: 768px) {
    .pat-disc-activity-bar { flex-direction: row; }
    .pat-disc-activity-stats { flex: 1 1 100%; }
    .pat-disc-bar-right { flex: 1 1 100%; width: 100%; justify-content: space-between; }
    .pat-disc-sort-controls { flex: 1 1 auto !important; }
    .pat-disc-sort-btn { flex: 1 1 0; text-align: center; padding: 7px 6px; font-size: 13px; }
}
@media (max-width: 480px) {
    .pat-disc-bar-right { flex-wrap: wrap !important; }
    .pat-disc-sort-controls { flex: 1 1 100% !important; }
    .pat-disc-activity-bar .pat-disc-new-thread-btn { width: 100% !important; }
}


/* ==========================================================================
   3.3.0 — Staff roundel + Candidate Debrief
   Tunables (override in the theme or Customizer → Additional CSS):
     .pat-disc-row-debrief { --pat-debrief-body: #345466; --pat-debrief-arrow: var(--pat-disc-brand);
                             --pat-debrief-arrow-opacity: 1; --pat-debrief-icon: 44px; --pat-debrief-disc: #fff; }
     .pat-disc-filter-debrief { --pat-debrief-count-opacity: 1; --pat-debrief-border: 100%; }
   ========================================================================== */
.pat-disc-staff-roundel { padding: 4px; box-sizing: border-box; background: transparent; border: 0; }
.pat-disc-staff-roundel img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.14)); }

.pat-disc-row-debrief {
    --pat-debrief-body: #345466;
    --pat-debrief-arrow: var(--pat-disc-brand, #D72723);
    --pat-debrief-arrow-opacity: 1;
    --pat-debrief-icon: 44px;
    --pat-debrief-disc: #fff;
    background: linear-gradient(90deg, color-mix(in srgb, var(--pat-disc-brand, #D72723) 5%, #fff) 0, #fff 55%);
    border-left: 4px solid var(--pat-disc-brand, #D72723);
    flex-wrap: wrap;
}
.pat-disc-avatar.pat-disc-avatar-debrief {
    background: var(--pat-debrief-disc);
    border-color: color-mix(in srgb, var(--pat-disc-brand, #D72723) 25%, #fff);
    color: var(--pat-debrief-body);
}
.pat-disc-debrief-icon { width: var(--pat-debrief-icon); height: var(--pat-debrief-icon); display: block; }
.pat-disc-debrief-icon .pat-disc-debrief-arrow { color: var(--pat-debrief-arrow); opacity: var(--pat-debrief-arrow-opacity); }
.pat-disc-debrief-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif; /* 3.9.55 */
    font-size: 12px;
    font-weight: 500; /* 3.9.55: was 700 */
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pat-disc-brand-fg, #fff);
    background: var(--pat-disc-brand, #D72723);
    border-radius: 4px;
    padding: 5px 7px 4px; /* caps sit high in the em box; a touch more on top evens the optical padding */
    margin-right: 8px;
    vertical-align: middle;
    line-height: 1;
}
.pat-disc-row-debrief .pat-disc-row-title-line { margin-bottom: 6px; display: flex; align-items: center; min-width: 0; }
.pat-disc-row-debrief .pat-disc-row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pat-disc-name-mode .pat-disc-pref-row input[type="radio"] { margin-top: 3px; }
.pat-disc-row-debrief .pat-disc-row-meta { margin-top: 2px; }
.pat-disc-debrief-behalf { font-size: 12px; color: #8a94a6; margin-top: 4px; }
.pat-disc-debrief-behalf strong { color: #475467; font-weight: 600; }
.pat-disc-debrief-quote {
    flex: 1 1 100%;
    margin: 4px 0 0;
    padding-left: 12px;
    border-left: 2px solid color-mix(in srgb, var(--pat-disc-brand, #D72723) 25%, #fff);
    font-size: 13.5px;
    font-style: italic;
    color: #475467;
    line-height: 1.5;
}
.pat-disc-row-debrief .pat-disc-debrief-quote { margin-left: 90px; } /* avatar column (60px + 8px padding) + row gap + 8px */

/* Debriefs filter pill — protected, first after All Topics */
.pat-disc-filter-debrief {
    --pat-debrief-count-opacity: 1;
    --pat-debrief-border: 55%; /* border only: the colour is mixed toward white, the element itself stays opaque */
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--pat-disc-brand, #D72723) !important;
    border-color: color-mix(in srgb, var(--pat-disc-brand, #D72723) var(--pat-debrief-border), #fff) !important;
    background: #fff;
}
.pat-disc-filter-debrief i {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--pat-disc-brand-fg, #fff);
    background: var(--pat-disc-brand, #D72723);
    opacity: var(--pat-debrief-count-opacity);
}
.pat-disc-filter-debrief.active { background: var(--pat-disc-brand, #D72723) !important; color: #fff !important; border-color: var(--pat-disc-brand, #D72723) !important; }
.pat-disc-filter-debrief.active i { background: #fff; color: var(--pat-disc-brand, #D72723); }

/* Composer option (staff only) */
.pat-disc-debrief-opt { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: 13px; color: #667085; cursor: pointer; }
.pat-disc-debrief-opt input { margin: 0; }
.pat-disc-debrief-opt-badge { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #D72723; border-radius: 4px; padding: 3px 8px; }
.pat-disc-debrief-opt-help { color: #98a2b3; }

@media (max-width: 768px) {
    .pat-disc-row-debrief .pat-disc-debrief-quote { margin-left: 0 !important; }
    .pat-disc-debrief-opt { flex-wrap: wrap; }
}


/* ==========================================================================
   3.4.0 — Settings cog (stats bar, forum activity bar) + composer nudge
   ========================================================================== */
.pat-disc-stats-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pat-disc-stats-row .pat-disc-settings-link { margin-right: 10px; }   /* keep the cog off the screen edge when the bar is right-aligned */
.pat-disc-settings-link { position: relative; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #596981; text-decoration: none !important; transition: .15s; flex: 0 0 auto; box-shadow: none !important; }
.pat-disc-settings-link svg { width: 20px; height: 20px; display: block; }
.pat-disc-settings-link:hover { color: #34424C; background: #eef1f4; }
/* The stats bar can sit inside theme header markup whose own span/font rules outrank ours, so pin the type here */
a.pat-disc-settings-link .pat-disc-settings-tooltip { font-family: 'Inter', sans-serif !important; font-size: 12px !important; line-height: 1.4 !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: #f3f5f8 !important; }
.pat-disc-settings-tooltip { bottom: auto; top: calc(100% + 9px); left: 50%; right: auto; transform: translate(-50%, -4px); }
.pat-disc-settings-tooltip::after { top: auto; bottom: 100%; left: 50%; right: auto; margin-left: -5px; border-top-color: transparent; border-bottom-color: #263238; }
.pat-disc-settings-link--left .pat-disc-settings-tooltip { left: 0; transform: translate(0, -4px); }
.pat-disc-settings-link--left .pat-disc-settings-tooltip::after { left: 11px; margin-left: 0; }
.pat-disc-settings-link:hover .pat-disc-settings-tooltip { opacity: 1; transform: translate(-50%, 0); }
.pat-disc-settings-link--left:hover .pat-disc-settings-tooltip { transform: translate(0, 0); }
/* stats-bar cog sits at the page's right edge: open the tooltip leftwards so it can't leave the viewport */
.pat-disc-settings-link--right .pat-disc-settings-tooltip { left: auto; right: 0; transform: translate(0, -4px); }
.pat-disc-settings-link--right .pat-disc-settings-tooltip::after { left: auto; right: 11px; margin-left: 0; }
.pat-disc-settings-link--right:hover .pat-disc-settings-tooltip { transform: translate(0, 0); }
/* JS-applied flips when the default side would leave the viewport */
.pat-disc-settings-link .pat-disc-settings-tooltip.is-flip-right { left: auto !important; right: 0 !important; transform: translate(0, -4px) !important; }
.pat-disc-settings-link .pat-disc-settings-tooltip.is-flip-right::after { left: auto !important; right: 11px !important; margin-left: 0 !important; }
.pat-disc-settings-link .pat-disc-settings-tooltip.is-flip-left { left: 0 !important; right: auto !important; transform: translate(0, -4px) !important; }
.pat-disc-settings-link .pat-disc-settings-tooltip.is-flip-left::after { left: 11px !important; right: auto !important; margin-left: 0 !important; }
.pat-disc-settings-link:hover .pat-disc-settings-tooltip.is-flip-right,
.pat-disc-settings-link:hover .pat-disc-settings-tooltip.is-flip-left { transform: translate(0, 0) !important; }
@media (max-width: 600px) { .pat-disc-settings-tooltip { max-width: calc(100vw - 32px); } }
/* Hidden tooltips must not add to the page's scroll width (they caused a phantom gap on narrow screens),
   so they are display:none until hover and fade in with a keyframe instead of a transition */
.pat-disc-settings-link .pat-disc-settings-tooltip { display: none; transition: none; }
.pat-disc-settings-link:hover .pat-disc-settings-tooltip,
.pat-disc-settings-link .pat-disc-settings-tooltip.visible { display: block; opacity: 1; animation: patDiscTipIn .25s ease; }
@keyframes patDiscTipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; } }
@media (max-width: 600px) { .pat-disc-settings-tooltip { white-space: normal; width: 220px; text-align: left; } .pat-disc-settings-tooltip br { display: none; } }
.pat-disc-composer-nudge { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 12px; padding: 10px 12px; border-radius: 6px; background: #f6f9fc; border: 1px solid #e3ebf2; font-size: 12.5px; color: #4a5968; line-height: 1.45; font-family: 'Open Sans', sans-serif; }
.pat-disc-composer-nudge svg { width: 16px; height: 16px; flex: 0 0 16px; color: #3793d1; margin-top: 1px; }
.pat-disc-composer-nudge a { color: #3793d1; font-weight: 600; text-decoration: none; }
.pat-disc-composer-nudge a:hover { text-decoration: underline; }

/* ==========================================================================
   3.5.0 — Suspensions, reports, custom tags
   ========================================================================== */
.pat-disc-container.pat-disc-suspended-read { position: relative; min-height: 420px; }
.pat-disc-container.pat-disc-suspended-read > *:not(.pat-disc-suspension) { filter: blur(5px); pointer-events: none; user-select: none; opacity: .75; }
.pat-disc-suspension--read { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(246,247,249,.35); }
.pat-disc-susp-card { background: #fff; border: 1px solid #e3e8ee; border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.12); max-width: 460px; padding: 26px 28px; text-align: center; font-family: 'Open Sans', sans-serif; }
.pat-disc-susp-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff4e5; color: #c77700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.pat-disc-susp-icon svg { width: 24px; height: 24px; }
.pat-disc-susp-card h4 { margin: 0 0 6px; font: 600 18px 'Inter', sans-serif; color: #2c3440; }
.pat-disc-susp-card p { margin: 0 0 10px; color: #5b6570; font-size: 14px; }
.pat-disc-susp-until { display: inline-block; background: #f3f5f8; border-radius: 6px; padding: 6px 12px; font-weight: 600; color: #2c3440; margin: 4px 0 12px; }
.pat-disc-susp-why { font-size: 13px; color: #6b7684; }
.pat-disc-susp-help { font-size: 13px; color: #6b7684; border-top: 1px solid #eef1f4; padding-top: 10px; margin-top: 8px; }
.pat-disc-susp-help a { color: #3793d1; font-weight: 600; text-decoration: none; }
.pat-disc-suspension--post { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 6px; background: #fff8ec; border: 1px solid #f6dfb5; color: #7a4f00; font-size: 13px; margin-bottom: 14px; font-family: 'Open Sans', sans-serif; }
.pat-disc-suspension--post svg { width: 18px; height: 18px; flex: 0 0 18px; }
.pat-disc-suspension--post a { color: #3793d1; font-weight: 600; text-decoration: none; }
.pat-disc-suspended-post .pat-disc-new-thread-btn,
.pat-disc-suspended-post .pat-disc-reply-btn,
.pat-disc-suspended-post .pat-disc-tv-reply-btn,
.pat-disc-suspended-post .pat-disc-reaction-btn,
.pat-disc-suspended-post .pat-disc-quote-btn,
.pat-disc-suspended-post .pat-disc-composer { opacity: .45; pointer-events: none; }
.pat-disc-held-note { margin: 10px 0; padding: 10px 12px; border-radius: 6px; background: #fff8ec; border: 1px solid #f6dfb5; color: #7a4f00; font-size: 13px; }
.pat-disc-report-btn.done { color: #c77700; cursor: default; }
.pat-disc-tag-row { display: flex; gap: 8px; align-items: center; }
.pat-disc-tag-row .pat-disc-composer-stage { flex: 1 1 auto; }
.pat-disc-newtag-btn { border: 1px dashed #c9d2dc; background: #fff; color: #596981; border-radius: 5px; padding: 6px 10px; font: 600 12px 'Inter', sans-serif; cursor: pointer; white-space: nowrap; }
.pat-disc-newtag-btn:hover { border-color: #3793d1; color: #3793d1; }
.pat-disc-newtag { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0 4px; padding: 10px 12px; background: #f6f9fc; border: 1px solid #e3ebf2; border-radius: 6px; font-size: 12.5px; }
.pat-disc-newtag input[type="text"] { flex: 1 1 220px; border: 1px solid #d7dee6; border-radius: 5px; padding: 6px 9px; font: 13px 'Open Sans', sans-serif; }
.pat-disc-newtag-swatches { display: inline-flex; gap: 5px; }
.pat-disc-newtag-swatches label { cursor: pointer; }
.pat-disc-newtag-swatches input { position: absolute; opacity: 0; width: 0; height: 0; }
.pat-disc-newtag-swatches i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d2dc; }
.pat-disc-newtag-swatches input:checked + i { box-shadow: 0 0 0 2px #2c3440; }
.pat-disc-newtag-add { background: #2c3440; color: #fff; border: 0; border-radius: 5px; padding: 6px 12px; font: 600 12px 'Inter', sans-serif; cursor: pointer; }
.pat-disc-newtag-msg { color: #596981; }
.pat-disc-debrief-saton { display: block; margin: 6px 0 2px; font-size: 13px; color: #4a5968; }
.pat-disc-debrief-saton input { border: 1px solid #d7dee6; border-radius: 5px; padding: 4px 8px; font: 13px 'Open Sans', sans-serif; margin: 0 6px; }
.pat-disc-debrief-saton small { color: #8a94a3; }

/* report popover (3.5.0) */
.pat-disc-overall.pat-disc-suspended-read { position: relative; min-height: 420px; }
.pat-disc-overall.pat-disc-suspended-read > *:not(.pat-disc-suspension) { filter: blur(5px); pointer-events: none; user-select: none; opacity: .75; }
.pat-disc-report-pop { position: absolute; z-index: 60; right: 0; bottom: calc(100% + 9px); width: 260px; background: #263238; color: #f3f5f8; border-radius: 8px; padding: 10px 12px 10px; font: 12.5px/1.4 'Inter', sans-serif; box-shadow: 0 10px 28px rgba(16,24,40,.25); text-align: left; }
.pat-disc-report-pop::after { content: ''; position: absolute; top: 100%; right: 14px; border: 6px solid transparent; border-top-color: #263238; }
.pat-disc-report-title { font: 600 14px/1.3 'Inter', sans-serif; color: #fff; margin: 0 -12px 8px; padding: 0 12px 9px; border-bottom: 1px solid #3a4852; }
.pat-disc-report-pop label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; color: #dbe3ea; }
.pat-disc-report-pop input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; width: 15px; height: 15px; border-radius: 50%; background: #1b252c; border: 1.5px solid #3b4851; flex: 0 0 15px; cursor: pointer; position: relative; }
.pat-disc-report-pop input[type="radio"]:checked::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #00acdd; }
.pat-disc-report-pop textarea { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid #46555f; border-radius: 5px; background: #1f2a31; color: #f3f5f8; font: 12.5px 'Open Sans', sans-serif; padding: 6px 8px; resize: vertical; }
.pat-disc-report-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.pat-disc-report-cancel { background: none; border: 0; color: #9fb0bf; font: 600 12px 'Inter', sans-serif; cursor: pointer; }
.pat-disc-report-send { background: #7ce027; color: #fff; border: 0; border-radius: 5px; padding: 6px 12px; font: 600 12px 'Inter', sans-serif; cursor: pointer; }
.pat-disc-report-send:disabled { opacity: .6; }
@media (max-width: 480px) { .pat-disc-report-pop { right: auto; left: 0; } .pat-disc-report-pop::after { right: auto; left: 14px; } }
.pat-disc-reply.pat-disc-has-pop, .pat-disc-tv-op.pat-disc-has-pop { overflow: visible; }

/* ==========================================================================
   3.6.0 — Forum hub: title, latest rail, section status headers, footers, empty invite
   ========================================================================== */
.pat-disc-hub-title { font: 600 26px/1.2 'Open Sans', sans-serif; color: #2c3440; margin: 0 0 18px; }
.pat-disc-hub-label { font-size: 12px; color: #667085; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin: 0 0 10px; }
.pat-disc-hub-rail-wrap { margin: 0 0 26px; }
.pat-disc-hub-rail-wrap .pat-disc-overall-group-header { margin-bottom: 14px; }
.pat-disc-hub-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .pat-disc-hub-rail { grid-template-columns: repeat(2, 1fr); } .pat-disc-hub-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }   /* two columns; an odd third card spans the row */
@media (max-width: 640px)  { .pat-disc-hub-rail { grid-template-columns: 1fr; } .pat-disc-hub-card:last-child:nth-child(odd) { grid-column: auto; } }
.pat-disc-hub-card { position: relative; display: flex; flex-direction: column; border: 1px solid #e4e9ee; border-radius: 8px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.03); overflow: hidden; text-decoration: none !important; color: inherit; transition: box-shadow .15s, border-color .15s; }
.pat-disc-hub-card:hover { border-color: #cfd6de; box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.pat-disc-hub-card { --pat-hub-wash: 3%; padding-top: 0; background: linear-gradient(45deg, color-mix(in srgb, var(--c) var(--pat-hub-wash), #fff) 0%, #fff 55%); }   /* faint organisation wash from the bottom-left */
.pat-disc-hub-card.is-debrief { --pat-hub-wash: 3%; background: linear-gradient(45deg, color-mix(in srgb, var(--c) var(--pat-hub-wash), #fff) 0%, color-mix(in srgb, var(--c) 2%, #fff) 55%); }
.pat-disc-hub-card-edge, .pat-disc-hub-card-edge-r { display: none; }

.pat-disc-hub-card-org { --pat-hub-band: 8%; display: flex; align-items: center; gap: 10px; height: 46px; margin: 0 -16px 16px; padding: 0 16px; font: 600 13.5px 'Open Sans', sans-serif; color: var(--c); background: color-mix(in srgb, var(--c) var(--pat-hub-band), #fff); border-bottom: 1px solid color-mix(in srgb, var(--c) 10%, #fff); }   /* organisation band across the top of the card; fixed height so titles line up */
.pat-disc-hub-card-org.has-tail { padding-left: 0; }                           /* tail sits flush against the card's left edge */
.pat-disc-hub-card-org.has-tail img { height: 38px; width: auto; max-width: 70px; object-fit: contain; object-position: left center; display: block; }
.pat-disc-hub-card-org.has-tail:not(:has(img)) { padding-left: 16px; }
.pat-disc-hub-card-org > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* long names truncate rather than wrap; full name in the title attribute */
.pat-disc-hub-card-org.is-roundel img { height: 35px; width: auto; display: block; margin-left: var(--pat-hub-roundel-shift, -6px); }   /* shift absorbs transparent padding in the artwork so the disc's left edge lines up with the title */

.pat-disc-hub-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 15px/1.35 'Inter', sans-serif; color: #2c3440; }
.pat-disc-hub-card-title .pat-disc-debrief-badge { margin-right: 8px; }
/* 3.9.56: a title that wraps beside the badge needs taller lines, or the second line sits tight under the badge */
.pat-disc-hub-card-title { line-height: 1.75; } /* 3.9.57: was 1.6 */
.pat-disc-hub-card-title .pat-disc-debrief-badge { position: relative; top: -1px; }
.pat-disc-hub-card-title { margin-bottom: 20px; }
.pat-disc-hub-card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #8a94a3; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef1f4; }   /* pinned to the bottom of equal-height cards, hairline above */
.pat-disc-hub-card-meta b { color: #4a5968; font-weight: 600; }
/* section header: status line + right cluster inside the existing CTA banner */
.pat-disc-overall-section .pat-disc-cta { padding-right: 10px; }
.pat-disc-overall-section .pat-disc-cta-text { flex: 1 1 auto; min-width: 0; }
.pat-disc-cta-status { display: block; font-size: 12.5px; color: #7b8794; }
.pat-disc-cta-right { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; z-index: 2; }
.pat-disc-hub-chip { display: inline-flex; align-items: center; border-radius: 14px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pat-disc-hub-chip.is-new { background: #e9f9e0; color: #2f7a0f; }
.pat-disc-hub-chip.is-count { background: rgba(255,255,255,.5); color: #6b7684; }
.pat-disc-hub-avs { display: inline-flex; }
.pat-disc-hub-avs i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: inline-flex; align-items: center; justify-content: center; font: 600 9px 'Inter', sans-serif; color: #fff; overflow: hidden; font-style: normal; }
.pat-disc-hub-avs i:first-child { margin-left: 0; }
.pat-disc-hub-avs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pat-disc-overall-section .pat-disc-cta-right .pat-disc-new-thread-btn { padding: 6px 12px; font-size: 13px; }
.pat-disc-platform-bar { display: none; }                      /* list view: stats live in the header */
.pat-disc-overall-section.is-thread-open .pat-disc-platform-bar { display: flex; }
/* footer */
.pat-disc-hub-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-top: 1px solid #eef1f4; font-size: 13px; color: #7b8794; }
.pat-disc-hub-foot a, .pat-disc-hub-expand { color: #3793d1; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font-family: inherit; font-size: 13px; cursor: pointer; }
.pat-disc-hub-foot a:hover, .pat-disc-hub-expand:hover { text-decoration: underline; }
/* empty invite */
.pat-disc-hub-empty { padding: 26px 18px 22px; text-align: center; }
.pat-disc-hub-empty p { margin: 0 0 12px; color: #5b6570; }
.pat-disc-hub-starters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 14px; }
.pat-disc-hub-starter { border: 1px dashed #c9d2dc; border-radius: 16px; padding: 5px 12px; font: 13px 'Open Sans', sans-serif; color: #4a5968; background: #fff; cursor: pointer; }
.pat-disc-hub-starter:hover { border-color: #34424C; color: #34424C; box-shadow: 0 1px 6px 1px #8f8f8f26; }
.pat-disc-hub-who { font-size: 13px; color: #7b8794; }

@media (max-width: 700px) {
  .pat-disc-cta-right { position: static; transform: none; flex-wrap: wrap; margin-top: 8px; }
  .pat-disc-overall-section .pat-disc-cta { flex-wrap: wrap; }
}


/* ==========================================================================
   3.6.21 — Narrow-width tidy-up: thread rows, hub section headers, stats pill
   ========================================================================== */
/* Thread rows: avatar | main on the first line, stats + activity on a second line (all views) */
@media (max-width: 600px) {
    .pat-disc-row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "avatar main" "avatar foot"; column-gap: 12px; row-gap: 6px; align-items: start; padding: 12px 14px; }
    .pat-disc-row-avatar { grid-area: avatar; }
    .pat-disc-row-main { grid-area: main; min-width: 0; }
    .pat-disc-row-title { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.3; }
    .pat-disc-row-debrief .pat-disc-row-title { white-space: normal; }
    .pat-disc-row-meta { flex-wrap: wrap; row-gap: 2px; }
    .pat-disc-row-stats { grid-area: foot; display: flex; gap: 14px; align-items: center; }
    .pat-disc-row-stat { display: inline-flex; gap: 5px; align-items: baseline; }
    .pat-disc-row-stat-value { font-size: 13px; }
    .pat-disc-row-stat-label { font-size: 10px; }
    .pat-disc-row-stats { justify-self: start; }
    .pat-disc-row-activity { display: none; }   /* the meta line already carries the date */
}
/* Hub section headers: heading and cluster share one row (cluster can't overlap long names); cluster wraps beneath on phones */
.pat-disc-overall-section .pat-disc-cta { flex-wrap: wrap; }
.pat-disc-overall-section .pat-disc-cta-text { flex: 1 1 260px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.pat-disc-overall-section .pat-disc-cta-heading { flex: 1 1 240px; min-width: 0; }
.pat-disc-overall-section .pat-disc-cta-right { position: static; transform: none; margin-left: auto; }
/* Below tablet width the cluster always drops under the heading, so long organisation names keep the full line */
@media (max-width: 840px) {
    .pat-disc-overall-section .pat-disc-cta { gap: 8px 14px; padding: 10px 12px 10px 0; align-items: flex-start; }
    .pat-disc-overall-section .pat-disc-cta-tail { margin-top: 2px; }
    .pat-disc-overall-section .pat-disc-cta-tail { height: 40px; }
    .pat-disc-overall-section .pat-disc-cta-text { flex: 1 1 0; min-width: 0; }
    .pat-disc-overall-section .pat-disc-cta-heading { font-size: 16px; line-height: 1.25; display: block; flex-basis: 100%; }
    .pat-disc-overall-section .pat-disc-cta-right { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; gap: 8px; }
    .pat-disc-overall-section .pat-disc-cta-circle { display: none; }
}
/* Stats pill: on phones drop the labels, keep the numbers */
@media (max-width: 600px) {
    /* standalone [pat-disc-stats-bar] on phones: just "● 19 candidates online"; the last-activity part is dropped */
    .pat-disc-stats-row .pat-disc-overall-online-bar { height: auto; padding: 5px 0; align-items: center; white-space: nowrap; }
    .pat-disc-stats-row span.pat-disc-overall-last-activity { display: none !important; }
    .pat-disc-stats-row span.pat-disc-overall-online-count { padding-right: 12px !important; }
}
/* "Your / Other Discussions" explainer: same button and tooltip as the Activities toolbar's decoder "?" */
.pat-disc-overall-group-label { display: flex; align-items: center; gap: 8px; }
.pat-disc-group-info { position: relative; display: inline-flex; align-items: center; }
.pat-disc-group-info-btn { width: 23px; height: 23px; border-radius: 50%; background: #e3e6ea; color: #6b6b6b; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: help; border: 1px solid #d3d8dd; font-family: inherit; line-height: 1; padding: 1px 1px 0 2px; transition: background .15s; flex-shrink: 0; box-shadow: none; }
.pat-disc-group-info-btn:hover, .pat-disc-group-info.is-open .pat-disc-group-info-btn { background: #34424C; color: #fff; border-color: #34424C; }
.pat-disc-group-tip { display: none; position: absolute; left: 0; top: calc(100% + 10px); width: 296px; background: #263238; color: #f3f5f8; font-family: 'Inter'; padding: 12px 14px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 99999; line-height: 1.55; pointer-events: auto; }
.pat-disc-group-info:hover .pat-disc-group-tip, .pat-disc-group-info.is-open .pat-disc-group-tip { display: block; }
.pat-disc-group-tip-arrow { position: absolute; top: -4px; left: 9px; width: 12px; height: 12px; background: #263238; transform: rotate(45deg); border-radius: 2px; }
.pat-disc-group-tip-title { font-size: 14px; font-weight: 500; color: #f3f5f8; margin-bottom: 8px; }
.pat-disc-group-tip-body { margin: 0; color: #94a3b8; font-size: 12px !important; font-family: 'Inter' !important; line-height: 1.55; font-weight: 400; }
.pat-disc-group-tip-body strong { color: #f0f0f0; font-weight: 500; }
@media (max-width: 600px) {
    /* anchor the tooltip to the group label so it never leaves the screen; the arrow is moved under the button by script */
    .pat-disc-overall-group-label { position: relative; }
    .pat-disc-group-info { position: static; }
    .pat-disc-group-tip { left: 0; width: min(296px, calc(100vw - 48px)); }
}


/* ==========================================================================
   3.6.26 — Narrow-width fixes: share tooltip, CTA type, last-activity, floating Reply
   ========================================================================== */
/* floating Reply button always above avatars, dots and score rings */
.pat-disc-open-reply-btn { z-index: 900; }
@media (max-width: 600px) {
    .pat-disc-cta-heading { font-size: 16px; line-height: 1.25; }
    .pat-disc-cta-subtitle { font-size: 12.5px; line-height: 1.4; }
    .pat-disc-activity-stats .pat-disc-last-activity,
    .pat-disc-activity-stats .pat-disc-last-activity + .pat-disc-stat-separator,
    .pat-disc-activity-stats .pat-disc-stat-separator:has(+ .pat-disc-last-activity) { display: none !important; }
    /* share tooltip wraps and is kept on screen by script */
    .pat-disc-share-tooltip { white-space: normal; width: max-content; max-width: calc(100vw - 40px); }
}
@media (max-width: 410px) {
    .pat-disc-open-reply-btn { width: 58px; padding: 0; }
    .pat-disc-open-reply-label { display: none; }
}

/* 3.6.27 — Discussion tab at narrow widths */
@media (max-width: 768px) {
    /* cog sits on the stats line, top-right of the bar */
    .pat-disc-activity-bar { position: relative; }
    .pat-disc-activity-stats { padding-right: 44px; }
    .pat-disc-bar-right .pat-disc-settings-link { position: absolute; top: -2px; right: 0; }
}
@media (max-width: 600px) {
    /* original post / reply header rows: date on its own line, actions beneath */
    .pat-disc-tv-op-top, .pat-disc-reply-top { flex-wrap: wrap; gap: 8px; align-items: center; }
    .pat-disc-tv-op-top .pat-disc-tv-op-date, .pat-disc-reply-top .pat-disc-reply-date { flex: 1 1 100%; margin-bottom: 0; white-space: nowrap; }
    .pat-disc-tv-op-top .pat-disc-post-actions, .pat-disc-reply-top .pat-disc-post-actions { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
    .pat-disc-share-tooltip { font-size: 12px; }
}
/* date and action buttons vertically centred on one line at all widths */
.pat-disc-tv-op-top .pat-disc-tv-op-date, .pat-disc-reply-top .pat-disc-reply-date { margin-bottom: 0; display: inline-flex; align-items: center; }
.pat-disc-reply-top .pat-disc-post-actions, .pat-disc-tv-op-top .pat-disc-post-actions { align-items: center; }

/* 3.6.28 — share tooltip: pinned type; on phones it becomes a short toast above the floating Reply button */
.pat-disc-share-btn-wrap .pat-disc-share-tooltip { font-family: 'Inter', sans-serif !important; font-size: 12px !important; line-height: 1.4 !important; font-weight: 400 !important; color: #f3f5f8 !important; letter-spacing: 0 !important; }
@media (max-width: 600px) {
    .pat-disc-share-btn-wrap .pat-disc-share-tooltip { display: none !important; }   /* no share tooltip on phones */
}

/* 3.6.30 — pinned rows: a plain navy pin in the row's top-right corner, no badge box */
.pat-disc-row-pinned { position: relative; }
.pat-disc-row .pat-disc-row-badge.pinned { position: absolute; top: 8px; right: 10px; background: none; padding: 0; color: #34424C; line-height: 1; }
.pat-disc-row .pat-disc-row-badge.pinned svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .pat-disc-row .pat-disc-row-badge.pinned { top: 6px; right: 8px; } }

/* 3.6.31 — row meta: items never break internally; the line wraps between items instead */
.pat-disc-row-meta { flex-wrap: wrap; row-gap: 3px; }
.pat-disc-row-meta > * { white-space: nowrap; }
.pat-disc-row-client-type { white-space: nowrap; }
/* between 600px and 900px give the main column more room: tighter stats, narrower activity column */
@media (min-width: 601px) and (max-width: 900px) {
    .pat-disc-row { gap: 12px; }
    .pat-disc-row-stats { gap: 12px; }
    .pat-disc-row-activity { width: 96px; }
    .pat-disc-row-activity-date { font-size: 13px; }
    .pat-disc-row-activity-by { font-size: 11px; }
}

/* 3.6.32 — sort pill and New Thread share one height (36px), at every width */
.pat-disc-bar-right { align-items: stretch; }
.pat-disc-activity-bar .pat-disc-new-thread-btn { height: 36px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.pat-disc-sort-controls { height: 36px; box-sizing: border-box; align-items: stretch; }
.pat-disc-sort-btn { padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.pat-disc-bar-right .pat-disc-settings-link { align-self: center; }

/* 3.6.34: thread-view breadcrumb on narrow screens. The organisation name and thread
   title flow as text (name wraps, title follows on) and the size steps down. */
@media (max-width: 840px) {
    .pat-disc-tv-breadcrumb { font-size: 17px !important; }
    .pat-disc-tv-breadcrumb-back { font-size: 17px; }
    .pat-disc-tv-breadcrumb-sep { font-size: 15px; }
}
@media (max-width: 600px) {
    .pat-disc-tv-breadcrumb { display: block; font-size: 15px !important; line-height: 1.4; margin-top: 24px; margin-bottom: 16px; }
    .pat-disc-tv-breadcrumb-back { display: inline; font-size: 15px; white-space: normal; text-align: left; line-height: inherit; overflow-wrap: anywhere; }
    .pat-disc-tv-breadcrumb-sep { display: inline; font-size: 14px; margin: 0 4px; line-height: inherit; }
    .pat-disc-tv-breadcrumb-title { display: inline; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}

/* 3.6.35: ≤520px sidebar runs horizontally; left-align the name, STAFF pill and
   post count instead of centring them against each other. */
@media (max-width: 520px) {
    .pat-disc-tv-op-sidebar .pat-disc-profile-info,
    .pat-disc-reply-sidebar .pat-disc-profile-info { align-items: flex-start; }
    .pat-disc-tv-op-sidebar .pat-disc-profile-name,
    .pat-disc-reply-sidebar .pat-disc-profile-name { align-items: flex-start; justify-content: flex-start; }
    .pat-disc-tv-op-sidebar .pat-disc-profile-posts,
    .pat-disc-reply-sidebar .pat-disc-profile-posts,
    .pat-disc-tv-op-sidebar .pat-disc-profile-type,
    .pat-disc-reply-sidebar .pat-disc-profile-type { text-align: left; }
}


/* ==========================================================================
   3.7.0 — External thread page (logged-out): banner + stats, full opening
   post, shared reply in full, decoy replies under a fade, double-height join bar
   ========================================================================== */
.pat-disc-shared { padding-bottom: 190px; }
.pat-disc-activity-bar--shared { justify-content: flex-start; }
.pat-disc-shared-replies-wrap { border-top: 0; padding-top: 0; margin-top: 12px; }
.pat-disc-reply-decoy { filter: blur(5px); user-select: none; pointer-events: none; }
.pat-disc-reply-decoy .pat-disc-reply-text { color: #98a2b3; }
.pat-disc-shared-replies-wrap .pat-disc-shared-fade { top: 25%; height: auto; background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 90%); }
.pat-disc-shared .pat-disc-tv-op-sidebar .pat-disc-profile-name,
.pat-disc-shared .pat-disc-reply-sidebar .pat-disc-profile-name { flex-direction: column; }

/* 3.9.0 — join bar "6B": brand stripe (rotating ticks, log-in) over a white row (logo, message, button) */
.pat-disc-join-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; background: #fff; border-top: 1px solid #e4e9ee; box-shadow: 0px -4px 12px #41414124; font-family: 'Open Sans', sans-serif; }
.pat-disc-join-stripe { display: flex; align-items: center; gap: 20px; padding: 10px 28px 10px calc(1% + 12px); background: var(--pat-disc-brand, #3793D1); color: #fff; font-size: 15px; }
.pat-disc-join-cyc { flex: 1; min-width: 0; display: grid; }
/* outgoing set fades out first, incoming follows, so two sets are never legible at once */
.pat-disc-join-set { grid-area: 1 / 1; display: flex; align-items: center; justify-content: flex-start; gap: 10px 40px; opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.pat-disc-join-set.on { opacity: 1; transform: none; transition: opacity .45s ease .32s, transform .45s ease .32s; }
.pat-disc-join-it { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #fff; white-space: nowrap; }
.pat-disc-join-it b { font-weight: 700; }
.pat-disc-join-it svg { width: 18px; height: 18px; flex: none; opacity: .6; }
.pat-disc-join-login { flex: none; margin-left: auto; color: #fff !important; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.pat-disc-join-login span { opacity: .78; }
.pat-disc-join-login b { font-weight: 700; }
/* sits 10px inside the button's right edge (optical alignment with its rounded corner) */
.pat-disc-join-login { margin-right: 10px; }
.pat-disc-join-main { display: flex; align-items: center; gap: 36px; padding: 15px 28px 15px 1%; }
.pat-disc-join-logo { height: 48px; width: auto; flex: none; display: block; }
.pat-disc-join-lead { flex: 1; min-width: 0; }
.pat-disc-join-lead h3 { margin: 0; font: 600 22px/1.2 'Open Sans', sans-serif; color: #2b3640; white-space: nowrap; }
.pat-disc-join-lead h3 em { font-style: normal; color: var(--pat-disc-brand, #3793D1); }
.pat-disc-join-lead p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.4; color: #627279; }
/* button: the site's .fixed-cta .buy look (Open Sans 600, uniform size, 0.6 price), scaled to the bar */
.pat-disc-join-btn { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .27em; /* 3.9.22: one word space (was 8px) */ height: 52px; padding: 0 42px; border-radius: 10px; background: #7ce027; color: #fff !important; font: 600 18px 'Open Sans', sans-serif; white-space: nowrap; text-decoration: none !important; box-shadow: 0 5px 10px 5px #c3deef2b; transition: transform .2s; }
.pat-disc-join-btn span { opacity: .85; }
.pat-disc-join-btn:hover { transform: scale(1.05); }
/* light brand colours (yellows): dark text on the stripe, heading accent darkened a step */
.pat-disc-join-light .pat-disc-join-stripe, .pat-disc-join-light .pat-disc-join-it, .pat-disc-join-light .pat-disc-join-login { color: #1f2937 !important; }
.pat-disc-join-light .pat-disc-join-lead h3 em { color: color-mix(in srgb, var(--pat-disc-brand) 62%, #000); }
.pat-disc-shared { padding-bottom: 160px; }
@media (max-width: 1500px) {
    .pat-disc-join-stripe { padding: 8px 28px 8px calc(1% + 10px); }
    .pat-disc-join-stripe, .pat-disc-join-it { font-size: 13.5px; }
    .pat-disc-join-it svg { width: 16px; height: 16px; }
    .pat-disc-join-set { gap: 10px 30px; }
    .pat-disc-join-login { font-size: 13px; }
    .pat-disc-join-main { gap: 28px; padding: 12px 28px 12px 1%; }
    .pat-disc-join-logo { height: 40px; }
    .pat-disc-join-lead h3 { font-size: 19px; }
    .pat-disc-join-lead p { font-size: 13px; margin-top: 3px; }
    .pat-disc-join-btn { height: 46px; padding: 0 30px; font-size: 16px; border-radius: 8px; }
}
@media (max-width: 1000px) {
    .pat-disc-join-logo { display: none; }
    .pat-disc-join-lead h3 { white-space: normal; font-size: 17.5px; }
    .pat-disc-join-lead p { font-size: 12.5px; }
    .pat-disc-join-btn { height: 42px; padding: 0 24px; font-size: 15px; }
    .pat-disc-join-main { gap: 22px; padding: 11px 20px; }
}
@media (max-width: 890px) { .pat-disc-join-it:nth-child(3) { display: none; } }
@media (max-width: 600px) {
    /* phone: no log-in link (it's in the site header); ticks centred, heading centred, full-width button */
    .pat-disc-join-stripe { padding: 7px 14px; }
    .pat-disc-join-login { display: none; }
    .pat-disc-join-cyc { overflow: hidden; }
    .pat-disc-join-set { justify-content: center; gap: 6px 18px; }
    .pat-disc-join-it:nth-child(3) { display: inline-flex; }
    .pat-disc-join-it, .pat-disc-join-stripe { font-size: 12px; }
    .pat-disc-join-it { gap: 6px; }
    .pat-disc-join-it svg { width: 14px; height: 14px; }
    .pat-disc-join-main { flex-direction: column; align-items: stretch; gap: 9px; padding: 10px 16px 12px; }
    .pat-disc-join-lead h3 { font-size: 16px; text-align: center; }
    .pat-disc-join-lead p { display: none; }
    .pat-disc-join-btn { width: 100%; height: 46px; font-size: 16px; padding: 0 16px; }
    .pat-disc-join-btn:hover { transform: none; }
    .pat-disc-shared { padding-bottom: 150px; }
}
@media (max-width: 520px) {
    .pat-disc-join-it:nth-child(3) { display: none; }
    .pat-disc-join-set { gap: 6px 16px; }
}
@media (max-width: 380px) {
    .pat-disc-join-it, .pat-disc-join-stripe { font-size: 11px; }
    .pat-disc-join-set { gap: 6px 12px; }
}
.pat-disc-join-p-short { display: none; }
/* keep the sentence on one line: drop the logo first, then switch to the shorter wording */
@media (max-width: 1180px) { .pat-disc-join-logo { display: none; } .pat-disc-join-main { padding-left: 24px; } .pat-disc-join-stripe { padding-left: 24px; } }
@media (max-width: 1000px) { .pat-disc-join-stripe { padding-left: 20px; padding-right: 20px; } .pat-disc-join-main { padding-left: 20px; } }
@media (max-width: 600px) { .pat-disc-join-stripe { padding: 7px 14px; } .pat-disc-join-main { padding: 10px 16px 12px; } }
@media (max-width: 880px) { .pat-disc-join-p-full { display: none; } .pat-disc-join-p-short { display: inline; } }
.pat-disc-join-lead p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .pat-disc-join-lead p { display: none; } }
@media (prefers-reduced-motion: reduce) { .pat-disc-join-set, .pat-disc-join-set.on { transition: none; } }

/* 3.9.3 — Candidate Debrief: closing line under the teaser (visible text for "pilot assessment feedback") */
.pat-disc-debrief-line { font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1.5; color: #627279; border-top: 1px solid #eef1f4; margin-top: 14px; padding-top: 12px; }
.pat-disc-debrief-line b { color: #34424C; font-weight: 600; }
.pat-disc-debrief-line span { color: var(--pat-disc-brand, #3793D1); font-weight: 600; }
.pat-disc-debrief-line.is-light span { color: color-mix(in srgb, var(--pat-disc-brand) 62%, #000); }

/* 3.7.2 — Candidate Debrief on public/shared pages: real first lines, scrambled remainder under a fade */
.pat-disc-tv-op-body--teaser { position: relative; max-height: 150px; overflow: hidden; }
.pat-disc-op-decoy { filter: blur(5px); user-select: none; color: #98a2b3; }
.pat-disc-op-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 85%); pointer-events: none; }

/* ==========================================================================
   3.8.0 — First-visit welcome popover (hub)
   ========================================================================== */
.pat-disc-welcome { position: fixed; inset: 0; z-index: 100000; background: rgba(27,37,44,.45); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; animation: pat-disc-welcome-in .35s ease forwards; animation-delay: .4s; font-family: 'Open Sans', sans-serif; }
@keyframes pat-disc-welcome-in { to { opacity: 1; } }
.pat-disc-welcome-card { background: #fff; border-radius: 6px; width: 100%; max-width: 750px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; position: relative; max-height: calc(100vh - 40px); overflow-y: auto; }
.pat-disc-welcome-band { position: relative; height: 128px; background: linear-gradient(90deg,#3793d1 0%,#5fb0e4 100%); color: #fff; padding: 20px 32px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.pat-disc-welcome-l1 { font-size: 26px; font-weight: 400; opacity: .9; line-height: 1.15; position: relative; z-index: 1; }
.pat-disc-welcome-l2 { font-size: 30px; font-weight: 600; line-height: 1.2; position: relative; z-index: 1; }
.pat-disc-welcome-corner { position: absolute; right: -24px; bottom: -36px; width: 110px; height: 110px; transform: rotate(-22deg); opacity: .9; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.pat-disc-welcome-body { padding: 26px 32px 24px; }
.pat-disc-welcome-body p { font: 400 13px 'Open Sans', sans-serif; color: #4d565f; line-height: 1.7; margin: 0 0 26px; }
.pat-disc-welcome-body p b { color: #34424C; font-weight: 600; }
.pat-disc-welcome-intro { font-size: 15px !important; color: #4d565f !important; line-height: 1.9 !important; }
.pat-disc-ul { display: inline-block; position: relative; font-weight: 600; color: #34424C; padding-bottom: 9px; white-space: nowrap; }
.pat-disc-ul svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 12px; overflow: visible; pointer-events: none; }
.pat-disc-welcome-row { border: 1px solid #e4e9ee; border-radius: 8px; padding: 12px 16px 13px; margin: 0 0 10px; background: #fff; }
.pat-disc-welcome-body p + .pat-disc-welcome-row { margin-top: 34px; }
.pat-disc-welcome-row-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.pat-disc-welcome-row-t { font: 600 15px 'Inter', sans-serif; color: #686868; }
.pat-disc-welcome-btn { display: inline-flex; align-items: center; height: 32px; background: #fff; color: #34424C !important; border: 1px solid #d9dde3; padding: 0 14px; font: 600 12.5px 'Inter', sans-serif; border-radius: 6px; cursor: pointer; transition: .1s; text-decoration: none !important; white-space: nowrap; }
.pat-disc-welcome-btn:hover { transform: scale(1.03); box-shadow: 0 0 6px #e8e8e8; border-color: #00acdd; }
.pat-disc-welcome-row-d { font: 400 13px 'Open Sans', sans-serif; color: #4d565f; margin-top: 3px; line-height: 1.5 !important; } /* 3.9.36: one description style for the welcome dialog and the account pop-overs */
.pat-disc-welcome-row-d + .pat-disc-welcome-row-d { margin-top: 8px; }
.pat-disc-welcome-row-d b { color: #34424C; font-weight: 600; }
.pat-disc-welcome-tog { width: 40px; height: 22px; border-radius: 11px; background: #cfd6dc; position: relative; border: 0; padding: 0; cursor: pointer; flex: none; }
.pat-disc-welcome-tog:after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.pat-disc-welcome-tog.on { background: #7cba3f; } .pat-disc-welcome-tog.on:after { left: 21px; }
.pat-disc-welcome-foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 6px 32px 26px; }
.pat-disc-welcome-link { color: #34424C !important; font: 600 13.5px 'Open Sans', sans-serif; text-decoration: none !important; margin-right: auto; }
.pat-disc-welcome-link em { font-style: normal; font-weight: 400; color: #98a2b3; }
.pat-disc-welcome-faint { margin-right: auto; font: 400 12.5px 'Open Sans', sans-serif; color: #b0b8c1; }
.pat-disc-welcome-go { background: #36454f; color: #fff; border: 0; border-radius: 30px; padding: 14px 28px; font: 600 15px 'Inter', sans-serif; cursor: pointer; }
.pat-disc-welcome-go:hover { background: #2b3740; }
@media (max-width: 560px) {
    .pat-disc-welcome { padding: 0; align-items: flex-end; }
    .pat-disc-welcome-card { border-radius: 14px 14px 0 0; max-height: 92vh; }
    .pat-disc-welcome-band { height: 92px; padding: 16px 22px; }
    .pat-disc-welcome-l1 { font-size: 20px; } .pat-disc-welcome-l2 { font-size: 24px; }
    .pat-disc-welcome-body { padding: 20px 22px 18px; }
    .pat-disc-welcome-intro { font-size: 13.5px !important; line-height: 1.8 !important; }
    .pat-disc-welcome-foot { padding: 4px 22px 22px; flex-wrap: wrap; gap: 12px; }
    .pat-disc-welcome-link, .pat-disc-welcome-faint { flex-basis: 100%; margin: 0; }
    .pat-disc-welcome-go { width: 100%; }
    .pat-disc-welcome-row { padding: 10px 12px 11px; } .pat-disc-welcome-row-h { flex-wrap: wrap; gap: 8px; }
}

/* 3.8.2 — welcome popover: a touch more air under "Welcome to the discussion,"; "How You Appear" switch */
.pat-disc-welcome-l2 { margin-top: 5px; }
.pat-disc-welcome-seg { display: inline-flex; border: 1px solid #d7dde3; border-radius: 6px; overflow: hidden; flex: none; max-width: 100%; }
.pat-disc-welcome-seg button { font: 600 12.5px 'Inter', sans-serif; color: #686868; background: #fff; border: 0; border-left: 1px solid #d7dde3; padding: 6px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pat-disc-welcome-seg button:first-child { border-left: 0; }
.pat-disc-welcome-seg button.on { background: #34424C; color: #fff; }
.pat-disc-welcome-seg button:focus-visible { outline: 2px solid #00acdd; outline-offset: -2px; }

/* 3.9.6 — shared/public banner without a tail image (platform sections): give the text a left inset */
.pat-disc-cta.pat-disc-cta--notail { padding-left: 22px; }
/* 3.9.12 — the same inset on the section's Discussion tab and on the hub, for sections with no icon (other organisations).
   On the hub below tablet width it matches that layout's 12px right-hand padding. */
@media (max-width: 840px) { .pat-disc-overall-section .pat-disc-cta.pat-disc-cta--notail { padding-left: 12px; } }

/* =====================================================================
   3.9.15 — External Forum View: [pat-disc-forum]
   ===================================================================== */
.pat-disc-forum { font-family: 'Open Sans', sans-serif; color: #34424C; font-size: 14px; background: #fff; text-align: left; }
.pat-disc-forum, .pat-disc-forum * { box-sizing: border-box; }
.pat-disc-forum a { text-decoration: none !important; }
.pdf-strip { background: linear-gradient(90deg, #e3eff8, #f1f7fb); border-bottom: 1px solid #dbe6ee; box-shadow: 0 2px 4px rgba(52,66,76,.06); text-align: center; padding: 14px 20px; font-size: 16px; line-height: 1.5; color: #4a5a64; position: relative; }
.pdf-strip b { color: #34424C; font-weight: 700; }
.pdf-hero { position: relative; background: linear-gradient(0deg, #eff7ffdb, #fff); padding: 48px 56px 70px; text-align: center; }
.pdf-online { position: absolute; top: 12px; right: 24px; display: inline-flex; align-items: center; gap: 8px; background: #f3f5f7; border-radius: 30px; padding: 6px 14px; font-size: 14px; line-height: 1.4; color: #667085; }
.pdf-online i { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bbf7d0; flex: none; }
.pdf-online b { color: #34424C; font-weight: 600; }
.pat-disc-forum .pdf-h { margin: 0; padding: 0; font: 400 32px/1.3 'Open Sans', sans-serif; font-size: 32px !important; color: #34424C; letter-spacing: 0; text-transform: none; }
.pat-disc-forum .pdf-h strong, .pat-disc-forum .pdf-h b { font-weight: 700; color: #34424C; }
.pat-disc-forum .pdf-h .pat-disc-ul { font-weight: 700; }
.pdf-h-narrow { display: none; }
/* 3.9.25: rotating phrase. Both phrases share one cell, so the heading keeps its width and the first words never move. */
.pdf-hrot { display: inline-grid; vertical-align: top; text-align: left; }
.pdf-hrot-i { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; white-space: nowrap; }
.pdf-hrot-i.on { opacity: 1; transform: none; transition: opacity .45s ease .32s, transform .45s ease .32s; }
.pdf-h-narrow .pdf-hrot-i { white-space: normal; }
.pdf-h-narrow.pdf-hrot { display: none; }
.pat-disc-forum .pdf-sub { margin: 24px auto 0; padding: 0; color: #627279; font-size: 16px; line-height: 1.6; max-width: 900px; }
.pdf-bar { display: flex; gap: 8px 16px; padding: 16px 56px; border-bottom: 1px solid #e4e9ee; align-items: center; flex-wrap: wrap; scroll-margin-top: 20px; }
.pdf-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; flex: 1; }
.pat-disc-forum .pdf-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e4e9ee; border-radius: 30px; padding: 6px 14px 6px 8px; margin: 0; font: 600 13px/1.5 'Open Sans', sans-serif; color: #667085; background: #fff; cursor: pointer; max-width: 260px; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pdf-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pat-disc-forum .pdf-chip img { height: 18px; width: auto; flex: none; margin: 0; }
.pat-disc-forum .pdf-chip-all { padding-left: 14px; }
.pat-disc-forum .pdf-chip.on { background: #34424C; color: #fff; border-color: #34424C; }
.pat-disc-forum .pdf-chip-extra { display: none; }
.pat-disc-forum.pdf-all-chips .pdf-chip-extra { display: inline-flex; }
.pat-disc-forum.pdf-all-chips .pdf-chip-more { display: none; }
.pdf-sort { display: inline-flex; background: #ededed; border-radius: 30px; padding: 3px; flex: none; margin-left: auto; }
.pat-disc-forum .pdf-sort-i { padding: 7px 14px; margin: 0; border: 0; border-radius: 30px; background: none; box-shadow: none; font: 500 13px/1.4 'Open Sans', sans-serif; color: #959595; cursor: pointer; text-transform: none; letter-spacing: 0; }
.pat-disc-forum .pdf-sort-i.on { background: #34424C; color: #fff; }
/* 3.9.25: visitors' filters wobble and show the standard tooltip */
.pdf-bar { position: relative; }
.pat-disc-forum .pdf-wobble { animation: pdfWobble .45s ease; }
@keyframes pdfWobble { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.pdf-tip { position: absolute; z-index: 50; background: #263238; color: #f3f5f8; font: 400 12px/1.4 'Inter', sans-serif; padding: 6px 12px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s ease; }
.pdf-tip::after { content: ''; position: absolute; top: 100%; left: var(--pdf-tip-x, 50%); margin-left: -5px; border: 5px solid transparent; border-top-color: #263238; }
.pdf-tip.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pat-disc-forum .pdf-wobble { animation: none; } }
/* 3.9.24: full width, no frame. Rows are solid rectangles with the Discussion tab's row rule and hover (.pat-disc-row). */
.pdf-list { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; margin: 0; padding: 0; background: #fff; }
.pdf-list::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #f1f5f9; }
.pdf-list.pdf-fade { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 210px), rgba(0,0,0,0) calc(100% - 8px)); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 210px), rgba(0,0,0,0) calc(100% - 8px)); }
.pat-disc-forum .pdf-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; align-items: center; padding: 14px 32px 14px 56px; border-bottom: 1px solid #f1f5f9; color: inherit; transition: 0.2s ease; }
.pat-disc-forum .pdf-row:nth-child(even) { padding: 14px 56px 14px 32px; }
.pat-disc-forum a.pdf-row:hover { background: #f8fafc80; }
/* 3.9.21: only rows that are links react to the pointer */
.pat-disc-forum a.pdf-row { cursor: pointer; }
.pat-disc-forum a.pdf-row:hover .pdf-t-txt { color: #3793D1; }
.pdf-lead { width: 84px; height: 66px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f6f8fa; border: 1px solid #edf0f3; overflow: hidden; }
.pat-disc-forum .pdf-lead img { max-width: 56px; max-height: 46px; width: auto; height: auto; margin: 0; }
.pdf-lead i { width: 14px; height: 14px; border-radius: 50%; }
/* 3.9.16: tail images against the left edge, as large as fits without clipping */
/* 3.9.19: bigger box; the tail is also scaled up a little from its left edge (the artwork has clear space around it) */
.pdf-lead.pdf-lead-tail { justify-content: flex-start; padding: 0; --pdf-tail-scale: 1.14; border-color: #72727214; box-shadow: inset 0 0 4px #bababa2b; }
.pat-disc-forum .pdf-lead-tail img { width: 75%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: left 75%; transform: scale(var(--pdf-tail-scale)); transform-origin: left center; }
.pdf-lead.pdf-lead-roundel { border-color: #72727214; box-shadow: inset 0 0 4px #bababa2b; }
.pat-disc-forum .pdf-lead-roundel img { width: 70px; height: 58px; max-width: none; max-height: none; object-fit: contain; object-position: 15% center; display: block; margin: auto; }
.pat-disc-forum .pdf-list, .pat-disc-forum .pdf-empty { transition: opacity .15s ease; }
/* 3.9.47: above 1920px the filter row and the thread list stop at 80% of the screen and sit centred; the heading and the bottom bar still run edge to edge */
@media (min-width: 1921px) {
    .pat-disc-forum > .pdf-bar, .pat-disc-forum > .pdf-list, .pat-disc-forum > .pdf-empty { width: 80%; margin-left: auto; margin-right: auto; }
    /* 3.9.48: the heading area's pale blue carries on down both sides; the list stays white */
    .pat-disc-forum { background: #eff7ffdb; }
    .pat-disc-forum > .pdf-list, .pat-disc-forum > .pdf-empty { background-color: #fff; }
}
.pat-disc-forum.pdf-loading .pdf-list, .pat-disc-forum.pdf-loading .pdf-empty { opacity: .45; pointer-events: none; }
.pdf-hero.pdf-no-online { padding-top: 48px; }
.pdf-main { display: block; min-width: 0; }
.pdf-t { display: flex; align-items: center; min-width: 0; margin: 0 0 4px; font-size: 17px; font-weight: 600; color: #34424c; font-family: 'Inter', sans-serif; line-height: 1.35; }
.pdf-t-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; transition: color .12s ease; }
.pdf-active { flex: none; font-style: normal; font-size: 10px; font-weight: 600; color: #16a34a; background: #dcfce7; border-radius: 3px; padding: 2px 7px; margin-left: 10px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.5; }
.pdf-t .pat-disc-debrief-badge { flex: none; }
.pdf-x { display: block; font-size: 14px; color: #596981; line-height: 1.55; margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-x.pdf-lock { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #627279; margin: 8px 0 10px; }
.pdf-lock svg { width: 13px; height: 13px; fill: #98a2b3; flex: none; }
/* 3.9.26: "Posted in Section by Author · time", in the Discussion tab's meta style (.pat-disc-row-meta, .pat-disc-row-author, .pat-disc-row-sep, .pat-disc-staff-badge) */
.pdf-m { display: flex; gap: 5px; align-items: center; font-size: 13px; line-height: 1.5; color: #64748b9c; white-space: nowrap; overflow: hidden; }
.pdf-in { flex: none; }
.pdf-by { display: inline-flex; align-items: center; gap: 5px; }
.pat-disc-forum .pdf-m .pat-disc-staff-badge { top: 0; margin: 0; line-height: 1.3; }
.pat-disc-forum .pdf-m .pat-disc-row-client-type { line-height: 1.3; }
.pat-disc-forum .pdf-t .pat-disc-row-tag { margin-left: 8px; font-family: 'Inter', sans-serif; line-height: 1.5; }
.pdf-sec { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.pdf-sec span { overflow: hidden; text-overflow: ellipsis; }
.pdf-sec i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pdf-by, .pdf-when { flex: none; }
.pdf-empty { padding: 40px 20px; text-align: center; color: #627279; font-size: 15px; }

/* the bar: rotating sentence and log-in over the offer row, devices standing above it */
.pat-disc-forum-bar .pdf-proof { display: flex; align-items: center; gap: 20px; padding: 12px 28px 12px calc(1% + 12px); background: #f4f8fb; border-bottom: 1px solid #e4e9ee; font-size: 15px; line-height: 1.45; color: #627279; }
.pat-disc-forum-bar .pdf-proof b { color: #34424C; font-weight: 600; }
.pdf-rot { display: grid; flex: 1; min-width: 0; align-items: center; } /* 3.9.22: every sentence sits on the row's centre line, however many lines it takes */
.pdf-rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .3s ease; }
.pdf-rot > span.on { opacity: 1; transform: none; transition: opacity .45s ease .32s, transform .45s ease .32s; }
.pat-disc-forum-bar .pdf-login { flex: none; color: #627279 !important; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.pat-disc-forum-bar .pdf-login b { color: #34424C; font-weight: 700; }
.pat-disc-forum-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 150px; background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 92%); pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.pat-disc-forum-bar.pdf-fading::before { opacity: 1; }
.pat-disc-forum-bar .pdf-devices { position: absolute; right: 0; bottom: 0; height: 300px; width: auto; max-width: none; margin: 0; display: block; pointer-events: none; filter: drop-shadow(0 -6px 18px rgba(52,66,76,.16)); }
.pat-disc-forum-bar.has-devices .pdf-proof, .pat-disc-forum-bar.has-devices .pat-disc-join-main { padding-right: 560px; }
@media (min-width: 1501px) { .pat-disc-forum-bar .pat-disc-join-main { padding-top: 20px; padding-bottom: 20px; } }
@media (max-width: 1500px) {
    .pdf-strip { padding: 11px 20px; font-size: 15px; }
    .pdf-hero { padding: 52px 40px 58px; }
    .pdf-hero.pdf-no-online { padding-top: 34px; }
    .pat-disc-forum .pdf-h { font-size: 30px !important; }
    .pdf-t { font-size: 17px; }
    .pat-disc-forum .pdf-sub { margin-top: 16px; font-size: 15px; }
    .pdf-bar { padding: 12px 40px; }
    .pat-disc-forum .pdf-row { padding: 13px 24px 13px 40px; }
    .pat-disc-forum .pdf-row:nth-child(even) { padding: 13px 40px 13px 24px; }
    .pdf-list.pdf-fade { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 170px), rgba(0,0,0,0) calc(100% - 8px)); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 170px), rgba(0,0,0,0) calc(100% - 8px)); }
    .pat-disc-forum-bar .pdf-proof { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
    .pat-disc-forum-bar .pdf-login { font-size: 13px; }
    .pat-disc-forum-bar .pdf-devices { height: 200px; }
    .pat-disc-forum-bar::before { height: 110px; }
    .pat-disc-forum-bar.has-devices .pdf-proof, .pat-disc-forum-bar.has-devices .pat-disc-join-main { padding-right: 385px; }
}
@media (max-width: 1180px) { .pat-disc-forum-bar .pdf-proof { padding-left: 24px; } }
@media (max-width: 1100px) {
    .pdf-hero { padding: 54px 32px 50px; }
    .pdf-hero.pdf-no-online { padding-top: 38px; }
    .pat-disc-forum .pdf-chip { max-width: 210px; }
    .pat-disc-forum-bar .pat-disc-join-lead p { display: none; }
    .pat-disc-forum .pdf-h { font-size: 26px !important; line-height: 1.45; }
    .pdf-t { font-size: 16.5px; }
    .pat-disc-forum .pdf-sub { margin-top: 20px; }
    .pdf-bar { padding: 14px 32px; }
    .pdf-list { grid-template-columns: minmax(0, 1fr); }
    .pdf-list::before { display: none; }
    .pat-disc-forum .pdf-row, .pat-disc-forum .pdf-row:nth-child(even) { padding: 14px 32px; }
    .pat-disc-forum-bar .pdf-login { display: none; }
    .pat-disc-forum-bar .pdf-devices { height: 150px; }
    .pat-disc-forum-bar.has-devices .pdf-proof, .pat-disc-forum-bar.has-devices .pat-disc-join-main { padding-right: 270px; }
}
@media (max-width: 1000px) { .pat-disc-forum-bar .pdf-proof { padding-left: 20px; } }
@media (max-width: 720px) { .pdf-online-last { display: none; } }
@media (max-width: 600px) {
    .pdf-strip { padding: 10px 16px; font-size: 13.5px; }
    .pdf-hero { padding: 16px 18px 36px; }
    .pdf-online { position: static; margin: 0 0 14px; font-size: 12px; padding: 4px 10px; gap: 6px; }
    .pdf-online i { width: 9px; height: 9px; }
    .pdf-online-long { display: none; }
    .pat-disc-forum .pdf-h { font-size: 22px !important; }
    .pdf-h-wide.pdf-hrot { display: none; }
    .pdf-h-narrow.pdf-hrot { display: grid; justify-items: center; text-align: center; }
    .pat-disc-forum .pdf-sub { display: none; }
    .pdf-bar { padding: 12px 16px; }
    .pdf-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pdf-chips::-webkit-scrollbar { display: none; }
    .pat-disc-forum .pdf-chip { flex: none; }
    .pat-disc-forum.pdf-all-chips .pdf-chips { flex-wrap: wrap; }
    .pdf-sort { display: none; }
    .pdf-list.pdf-fade { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 120px), rgba(0,0,0,0) calc(100% - 8px)); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 120px), rgba(0,0,0,0) calc(100% - 8px)); }
    .pat-disc-forum .pdf-row { grid-template-columns: 60px minmax(0, 1fr); gap: 0 12px; padding: 12px 16px; }
    .pat-disc-forum .pdf-row:nth-child(even) { padding: 12px 16px; }
    .pdf-lead { width: 60px; height: 50px; }
    .pat-disc-forum .pdf-lead img { max-width: 40px; max-height: 34px; }
    .pat-disc-forum .pdf-lead-tail img { max-width: none; max-height: none; }
    .pat-disc-forum .pdf-lead-roundel img { width: 50px; height: 42px; max-width: none; max-height: none; }
    .pdf-hero.pdf-no-online { padding-top: 24px; }
    .pdf-t { font-size: 15.5px; }
    .pdf-x { font-size: 13.5px; margin-bottom: 6px; }
    .pdf-m { font-size: 12px; }
    .pdf-by { display: none; }
    .pdf-row-deb .pdf-t { display: block; }
    .pdf-row-deb .pdf-t .pat-disc-debrief-badge { display: table; margin: 0 0 6px; font-size: 10.5px; }
    .pdf-row-deb .pdf-t-txt { display: block; }
    .pdf-x.pdf-lock { margin: 4px 0 6px; font-size: 12.5px; }
    .pat-disc-forum-bar .pdf-proof { display: none; } /* 3.9.31: phones get the offer row only */
    .pat-disc-forum-bar .pdf-devices { display: none; }
    .pat-disc-forum-bar::before { height: 90px; }
    .pat-disc-forum-bar.has-devices .pdf-proof { padding-right: 14px; }
    .pat-disc-forum-bar.has-devices .pat-disc-join-main { padding-right: 16px; }
}
/* 3.9.42: [pat-disc-preview]: one section's latest threads on its product page. Rows are the forum view's own (.pdf-row). */
.pat-disc-forum.pat-disc-preview { background: none; }
.pdp-h { font: 600 26px/1.3 'Inter', sans-serif; color: #34424C; margin: 0 0 14px; }
.pdp-h b { font-weight: 600; }
.pdp-pill { display: flex; margin: 0 0 18px; }
.pdp-pill .pat-disc-overall-online-bar { margin: 0; }
.pdp-pill span.pdp-last-only { padding-left: 12px !important; }
.pdp-pill span.pdp-last-only::before { content: none; }
.pdp-frame { border: 1px solid #e4e9ee; border-radius: 8px; overflow: hidden; background: #fff; }
.pat-disc-preview .pdf-list { grid-template-columns: minmax(0, 1fr); }
.pat-disc-preview .pdf-list::before { display: none; }
.pat-disc-preview .pdf-row, .pat-disc-preview .pdf-row:nth-child(even) { padding: 14px 22px; }
.pat-disc-preview .pdf-row:last-child { border-bottom: 0; }
.pdp-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 16px 22px; border-radius: 8px; background: #f4f8fb; border: 1px solid #e4e9ee; font: 400 14.5px/1.5 'Open Sans', sans-serif; color: #627279; }
.pdp-foot b { color: #34424C; font-weight: 600; }
.pdp-foot span { font-size: 13px; }
.pat-disc-forum a.pdp-go { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 24px; border-radius: 30px; background: #36454f; color: #fff !important; font: 600 14.5px 'Inter', sans-serif; white-space: nowrap; transition: background .15s; }
.pat-disc-forum a.pdp-go:hover { background: #2b3740; }
.pdp-empty { border: 1px solid #e4e9ee; border-radius: 8px; overflow: hidden; background: #fafcfd; text-align: center; }
/* the External Forum View's launch strip (.pdf-strip), in miniature */
.pdp-new { background: linear-gradient(90deg, #e3eff8, #f1f7fb); border-bottom: 1px solid #dbe6ee; padding: 8px 16px; font: 400 13.5px/1.5 'Open Sans', sans-serif; color: #4a5a64; }
.pdp-new b { color: #34424C; font-weight: 700; }
.pdp-empty-b { padding: 28px 24px 30px; }
.pdp-empty-t { font: 600 17px/1.4 'Inter', sans-serif; color: #34424C; }
.pdp-empty-d { font: 400 13.5px/1.6 'Open Sans', sans-serif; color: #627279; max-width: 620px; margin: 8px auto 18px; }
@media (max-width: 600px) {
    .pdp-h { font-size: 20px; }
    .pat-disc-preview .pdf-row, .pat-disc-preview .pdf-row:nth-child(even) { padding: 12px 14px; }
    .pat-disc-preview .pdf-by { display: inline-flex; }
    .pat-disc-preview .pat-disc-row-client-type, .pat-disc-preview .pdf-by .pat-disc-row-sep, .pat-disc-preview .pdf-t .pat-disc-row-tag { display: none; }
    .pdp-pill span.pat-disc-overall-last-activity:not(.pdp-last-only) { display: none !important; }
    .pdp-pill span.pat-disc-overall-online-count { padding-right: 12px !important; }
    .pdp-foot { flex-direction: column; align-items: stretch; text-align: center; padding: 14px 16px; }
    .pdp-empty-b { padding: 22px 16px 24px; }
    .pdp-empty-t { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .pdf-rot > span, .pdf-rot > span.on, .pdf-hrot-i, .pdf-hrot-i.on { transition: none; } }

/* =====================================================================
   3.9.32 — account pop-overs. Shell, cards and footer are the welcome pop-over's own
   classes (.pat-disc-welcome-*); what follows is only what those do not cover.
   ===================================================================== */
html.pat-acct-open { overflow: hidden; }
.pat-acct { position: fixed; inset: 0; z-index: 100000; background: rgba(27,37,44,.45); display: flex; align-items: center; justify-content: center; padding: 20px; font-family: 'Open Sans', sans-serif; text-align: left; }
.pat-acct[hidden] { display: none; }
.pat-acct, .pat-acct * { box-sizing: border-box; }
/* 3.9.38: header, tabs and footer stay put; only the middle scrolls */
.pat-acct .pat-acct-card { outline: 0; display: flex; flex-direction: column; overflow: hidden; }
.pat-acct .pat-acct-tabs, .pat-acct .pat-acct-foot { flex: none; }
.pat-acct .pat-acct-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 22px; }
.pat-acct .pat-acct-foot { padding: 14px 32px 16px; border-top: 1px solid #eef1f4; background: #fff; }
.pat-acct .pat-acct-band { height: 62px; padding: 17px 32px; flex: none; }
.pat-acct .pat-acct-band .pat-disc-welcome-l2 { margin-top: 0; font-size: 21px; color: #fff; }
.pat-acct .pat-acct-band .pat-disc-welcome-corner { width: 74px; height: 74px; bottom: -23px; }
.pat-acct .pat-acct-body { padding-top: 22px; }
.pat-acct .pat-disc-welcome-row:last-child { margin-bottom: 0; }
.pat-acct .pat-disc-welcome-row-h .pat-disc-welcome-faint { margin: 0; }
[data-pat-acct] { cursor: pointer; }
.pat-acct-btn { display: inline-flex; align-items: center; height: 36px; background: #fff; color: #34424C; border: 1px solid #d9dde3; padding: 0 16px; font: 600 13px 'Inter', sans-serif; border-radius: 6px; cursor: pointer; }
.pat-acct-btn:hover { border-color: #00acdd; box-shadow: 0 0 6px #e8e8e8; }
/* tab strip */
/* 3.9.33: the grey line is drawn behind the tabs, so the active tab covers it and runs into the panel below */
.pat-acct-tabs { display: flex; gap: 8px; background: #f4f4f4; padding: 10px 10px 0; border-bottom: 0; box-shadow: inset 0 -1px 0 #e3e3e3; overflow-x: auto; scrollbar-width: none; }
.pat-acct-tabs::-webkit-scrollbar { display: none; }
.pat-acct .pat-acct-tab { flex: 1 0 auto; margin: 0; border: 0; border-top: 3px solid transparent; background: #e8e8e8; color: #9a9a9a; font: 600 15px 'Open Sans', sans-serif; padding: 13px 12px 13px; margin-bottom: 1px; cursor: pointer; border-radius: 3px 3px 0 0; white-space: nowrap; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pat-acct .pat-acct-tab.on { background: #fff; color: #34424C; border-top-color: #3793D1; margin-bottom: 0; padding-bottom: 14px; }
.pat-acct .pat-acct-tab.is-off, .pat-acct .pat-acct-tab.is-off:hover { background: #f0f0f0; color: #c9c9c9; cursor: default; pointer-events: none; }
.pat-acct-pane { display: none; } .pat-acct-pane.on { display: block; }
/* labels, notes, status */
.pat-acct-tag { font: 600 12.5px 'Open Sans', sans-serif; white-space: nowrap; }
.pat-acct-tag-ok { color: #5a9a1f; } .pat-acct-tag-warn { color: #b45309; }
.pat-acct-ctl { display: inline-flex; align-items: center; gap: 12px; }
.pat-acct-note { padding: 14px 16px; box-shadow: 0 0px 2px #dfdfdfa6; border-radius: 4px; font-size: 13px; line-height: 1.5; font-family: 'Inter', sans-serif; margin: 14px 0; background: #e9f2fb; border: 1px solid #c3d9ef; color: #2f5f93; }
.pat-acct-note b { display: block; font: 600 15px 'Inter', sans-serif; color: #24538a; margin: 0 0 8px; }
.pat-acct .pat-acct-body > .pat-acct-note:last-child { margin-bottom: 0; }
.pat-acct-status { font: 400 12.5px 'Open Sans', sans-serif; color: #5a9a1f; min-height: 0; }
.pat-acct-status:not(:empty) { margin-top: 8px; } .pat-acct-status.error { color: #b91c1c; }
.pat-acct-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 16px; font: 400 13.5px 'Inter', sans-serif; color: #34424C; }
.pat-acct-kv div { padding: 7px 0; } .pat-acct-kv div:nth-child(odd) { color: #686868; font-weight: 600; }
.pat-acct-kv em { font-style: normal; color: #98a2b3; margin-left: 8px; font-size: 12.5px; }
.pat-acct-gap { display: block; height: 10px; }
.pat-acct .pat-disc-welcome-body p.pat-acct-more { margin: 16px 0 0; font: 400 13px/1.5 'Open Sans', sans-serif; color: #4d565f; }
.pat-acct-more a { color: #1a73c9; text-decoration: none; font-weight: 600; }
.pat-acct-history { margin-top: 10px; }
/* footer */
.pat-acct .pat-acct-foot { align-items: center; }
.pat-acct .pat-acct-foot .pat-disc-welcome-faint { margin-right: auto; }
.pat-acct .pat-acct-quiet { background: none; border: 0; padding: 6px 4px; margin: 0; font: 600 13.5px 'Open Sans', sans-serif; color: #627279; cursor: pointer; box-shadow: none; }
.pat-acct .pat-acct-quiet:hover { color: #34424C; }
.pat-acct .pat-disc-welcome-go[hidden] { display: none; }
.pat-acct a.pat-acct-pay { background: #7a73f0; color: #fff !important; font-weight: 400; text-decoration: none !important; display: inline-block; white-space: nowrap; }
.pat-acct a.pat-acct-pay:hover { background: #6b63e6; } .pat-acct a.pat-acct-pay b { font-weight: 700; }
/* name selector: the welcome pop-over's segmented control, on radio labels */
.pat-acct-seg label { font: 600 12.5px 'Inter', sans-serif; color: #686868; background: #fff; border-left: 1px solid #d7dde3; padding: 6px 12px; margin: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; position: relative; }
.pat-acct-seg label:first-child { border-left: 0; } .pat-acct-seg label.on { background: #34424C; color: #fff; }
.pat-acct-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pat-acct-seg label:has(input:focus-visible) { outline: 2px solid #00acdd; outline-offset: -2px; }
/* switch: the welcome pop-over's toggle, on a checkbox */
.pat-acct .pat-acct-tog { position: relative; display: block; width: 40px; height: 22px; flex: none; margin: 0; padding: 0; cursor: pointer; }
.pat-acct .pat-acct-tog input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pat-acct-tog i { display: block; width: 40px; height: 22px; border-radius: 11px; background: #cfd6dc; position: relative; transition: background .15s; }
.pat-acct-tog i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.pat-acct-tog input:checked + i { background: #7cba3f; } .pat-acct-tog input:checked + i::after { left: 21px; }
.pat-acct-tog input:focus-visible + i { outline: 2px solid #00acdd; outline-offset: 2px; }
/* avatar and signature */
.pat-acct .pat-acct-ctl .pat-disc-avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.pat-acct .pat-acct-ctl.pat-disc-avatar-wrapper { display: inline-flex; position: static; width: auto; height: auto; flex: none; }
.pat-acct-sig { margin-top: 10px; }
/* S2Member's profile form */
.pat-acct-s2 form { margin: 0; }
.pat-acct-s2 #ws-plugin--s2member-profile-submit { display: none !important; }
.pat-acct-s2 #ws-plugin--s2member-profile-saved { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: #f0fbe4; border: 1px solid #cfe9b0; color: #3f6b12; font: 600 13px 'Inter', sans-serif; }
.pat-acct-s2 .pat-acct-s2head { display: none; }
.pat-acct-f { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; align-items: center; }
.pat-acct-f + .pat-acct-f { margin-top: 10px; }
.pat-acct-f-full { display: block; }
.pat-acct .pat-acct-lab { font: 600 13.5px/1.4 'Inter', sans-serif !important; color: #757575 !important; margin: 0 !important; padding: 0 !important; display: block; text-transform: none; letter-spacing: 0; }
.pat-acct-f-hide { display: none !important; }
.pat-acct-f-full, .pat-acct-f-full label { font: 400 13px/1.5 'Open Sans', sans-serif !important; color: #4d565f !important; }
.pat-acct-s2 input[type=text], .pat-acct-s2 input[type=email], .pat-acct-s2 input[type=password], .pat-acct-s2 select, .pat-acct-s2 textarea,
.pat-acct-tools input[type=search] { width: 100% !important; max-width: none; height: auto !important; min-height: 0; margin: 0 !important; border: 1px solid #d9dde3 !important; border-radius: 6px !important; padding: 9px 12px !important; font: 400 14px/1.4 'Inter', sans-serif !important; color: #34424C !important; background-color: #fff !important; box-shadow: none !important; }
.pat-acct-s2 input:disabled, .pat-acct-s2 input[readonly] { background-color: #f1f3f5 !important; color: #98a2b3 !important; }
/* 3.9.34: drop-downs carry the blue block with a white arrow used elsewhere in the software (matched from a screenshot) */
.pat-acct-s2 select:not([multiple]) { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 50px !important; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'><path fill='%23fff' d='M1.2 1h9.6L6 9.2z'/></svg>"), linear-gradient(#3793D1, #3793D1) !important;
    background-repeat: no-repeat !important; background-position: right 13px center, right center !important; background-size: 12px 10px, 38px 100% !important; }
.pat-acct-s2 select::-ms-expand { display: none; }
.pat-acct-s2 table { width: 100%; border: 0; } .pat-acct-s2 td { padding: 6px 0; border: 0; }
/* 3.9.35: the strength meter keeps the theme's look but not its outer spacing */
.pat-acct-s2 .ws-plugin--s2member-password-strength { font-size: 12px; margin: 0 !important; }
.pat-acct-s2 .pat-acct-f-full { margin: 10px 0 0 !important; padding: 0 !important; }
.pat-acct-s2 .pat-acct-f-full > :last-child { margin-bottom: 0 !important; }
.pat-acct-s2 .pat-acct-f-full p:empty, .pat-acct-s2 .pat-acct-f-full br { display: none; }
.pat-acct-s2 .pat-disc-welcome-row > :last-child { margin-bottom: 0 !important; }
/* sections: the External Forum View's image boxes */
.pat-acct-tools { display: flex; align-items: center; gap: 14px; margin-top: 12px; font: 400 13px 'Open Sans', sans-serif; color: #7a838c; }
/* 3.9.36: tick boxes in the software's style (matched from a screenshot): white with a soft border, #3793d1 with a white tick when on */
.pat-acct :not(.pat-acct-tog) > input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 18px !important; height: 18px !important; min-height: 0; flex: none; margin: 0 !important; padding: 0 !important; border: 1.5px solid #a9c8e3 !important; border-radius: 4px !important; background: #fff no-repeat center / 12px 12px !important; box-shadow: 0 1px 2px rgba(55,147,209,.18) !important; cursor: pointer; vertical-align: middle; }
.pat-acct :not(.pat-acct-tog) > input[type=checkbox]:checked { border-color: #3793d1 !important; background-color: #3793d1 !important; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.3l2.5 2.5 5-5.4'/></svg>") !important; }
.pat-acct :not(.pat-acct-tog) > input[type=checkbox]:disabled { border-color: #e2e6ea !important; background-color: #f4f5f6 !important; box-shadow: none !important; cursor: default; }
.pat-acct :not(.pat-acct-tog) > input[type=checkbox]:focus-visible { outline: 2px solid #00acdd; outline-offset: 2px; }
.pat-acct-tools label { font: 400 13px/1.5 'Open Sans', sans-serif !important; color: #4d565f !important; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin: 0; cursor: pointer; }
.pat-acct-seclist { margin-top: 10px; }
.pat-acct .pat-acct-sec { display: flex; align-items: center; gap: 12px; padding: 8px 0; margin: 0; border: 0; border-top: 1px solid #f1f3f5; border-radius: 0; background: none; cursor: default; font-size: 14px; font-weight: 400; color: inherit; }
.pat-acct .pat-acct-sec:first-child { border-top: 0; padding-top: 2px; }
.pat-acct .pat-acct-sec b { flex: 1; min-width: 0; font: 600 14px 'Inter', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pat-acct .pat-acct-sec .pdf-lead { flex: none; }
.pat-acct .pat-acct-sec .pdf-lead-tail img { width: 75%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: left 75%; transform: scale(var(--pdf-tail-scale)); transform-origin: left center; flex-shrink: 1; }
.pat-acct .pat-acct-sec .pdf-lead-roundel img { width: 70px; height: 58px; max-width: none; max-height: none; object-fit: contain; object-position: 15% center; display: block; margin: auto; }
/* payment options */
.pat-acct-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pat-acct .pat-acct-opt { position: relative; border: 2px solid #e2e2e2; border-radius: 6px; padding: 12px 14px; margin: 0; display: flex; justify-content: space-between; gap: 8px; font: 600 15px 'Inter', sans-serif; color: #98a2b3; cursor: pointer; background: #fff; transition: .12s; }
.pat-acct .pat-acct-opt.on { border: 2px solid #35a8f5; color: #34424C; box-shadow: 0 0 6px rgba(53,168,245,.35); }
.pat-acct-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pat-acct-opt:has(input:focus-visible) { outline: 2px solid #00acdd; outline-offset: 2px; }
/* referral code */
.pat-acct-code { margin-top: 12px; border: 1px solid #35a8f5; background: #e8f3fa; text-align: center; padding: 16px; font: 400 22px 'Open Sans', sans-serif; color: #34424C; letter-spacing: .5px; user-select: all; }
@media (max-width: 640px) {
    .pat-acct-f { grid-template-columns: 1fr; gap: 4px; }
    .pat-acct-kv { grid-template-columns: 128px minmax(0, 1fr); gap: 0 12px; font-size: 13px; }
    .pat-acct-kv em { display: block; margin: 2px 0 0; }
    .pat-acct-opts { grid-template-columns: 1fr; }
    .pat-acct-tools { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .pat-acct { padding: 0; align-items: flex-end; }
    .pat-acct .pat-acct-band { height: 62px; padding: 16px 22px; } .pat-acct .pat-acct-band .pat-disc-welcome-l2 { font-size: 20px; }
    .pat-acct .pat-acct-tab { font-size: 14px; padding: 11px 10px 11px; } .pat-acct .pat-acct-tab.on { padding-bottom: 12px; }
    .pat-acct .pat-acct-foot { padding: 10px 22px 14px; flex-wrap: nowrap; gap: 14px; }
    .pat-acct .pat-acct-foot .pat-disc-welcome-faint { display: none; }
    .pat-acct .pat-acct-foot .pat-acct-quiet { flex: none; margin-right: auto; }
    .pat-acct .pat-acct-foot .pat-disc-welcome-go { width: auto; flex: 1 1 auto; padding: 12px 16px; text-align: center; }
    .pat-acct .pat-acct-foot .pat-disc-welcome-go[data-pat-acct-close] { flex: 0 0 auto; padding: 12px 28px; margin-left: auto; }
    .pat-acct .pat-acct-body { padding-bottom: 18px; }
    .pat-acct .pat-acct-sec .pdf-lead { width: 60px; height: 50px; }
    .pat-acct .pat-acct-sec .pdf-lead-roundel img { width: 50px; height: 42px; }
}
@media (max-width: 380px) {
    .pat-acct .pat-acct-foot { padding: 10px 16px 14px; gap: 10px; }
    .pat-acct .pat-acct-foot .pat-disc-welcome-go { font-size: 13.5px; padding: 12px 10px; min-width: 0; }
}

/* 3.9.60: hub, member with no assessment chosen. The size and corners of a section, drawn as an empty slot. */
.pat-disc-hub-choose { border: 2px dashed #d5dde5; border-radius: 10px; padding: 34px 24px 36px; margin: 0; text-align: center; background: #fbfcfd; }
.pat-disc-hub-choose-t { font: 600 17px/1.3 'Inter', sans-serif; color: #34424C; margin: 0 0 8px; }
.pat-disc-hub-choose p { max-width: 560px; margin: 0 auto 18px; font-size: 14.5px; line-height: 1.6; color: #627279; }
.pat-disc-hub-choose .pat-disc-welcome-btn { height: 36px; padding: 0 16px; font-size: 13px; }

/* 3.9.66: [pat-disc-preview], section with no threads. More room around the invitation text, the underlined phrase,
   and beneath it a miniature of the public Forum list (the same rows, reduced). */
.pat-disc-preview .pdp-empty-b .pdp-empty-d { margin: 14px auto 28px; }
/* 3.9.68: sized for a product page, whose own text is large (the "Larger" sizes agreed from the comparison). */
.pat-disc-preview .pdp-empty .pdp-new { font-size: 15.5px; padding: 10px 16px; }
.pat-disc-preview .pdp-empty-b { padding: 36px 24px 38px; }
.pat-disc-preview .pdp-empty-t { font-size: 22px; }
.pat-disc-preview .pdp-empty-b .pdp-empty-d { font-size: 16.5px; line-height: 1.7; max-width: 780px; margin: 16px auto 30px; }
.pat-disc-preview .pdp-empty a.pdp-go { height: 48px; padding: 0 30px; font-size: 16.5px; }
.pat-disc-preview .pdp-empty-d .pat-disc-ul { font-weight: 600; }
.pdp-else { border-top: 1px solid #e4e9ee; background: #fff; text-align: left; }
.pdp-else-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid #eef1f4; }
.pdp-else-h > span { font: 600 15px 'Inter', sans-serif; color: #686868; }   /* 3.9.67: as .pat-disc-welcome-row-t ("Refer a Colleague or Friend") */
.pdp-else-h .pdp-pill { margin: 0; flex: none; white-space: nowrap; font: 400 14px/1.5 'Open Sans', sans-serif; }
.pdp-pill span.pdp-online-only { padding-right: 12px !important; }   /* the count alone: the space the last-activity part gives elsewhere */
.pat-disc-preview .pdf-list.pdp-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); zoom: .85; text-align: left; }   /* 3.9.68: the rows are 2 to 3px smaller than on the Forum page: titles 14.5px (17), excerpt 12px (14), meta 11px (13) */
@media (max-width: 700px) {
    .pat-disc-preview .pdf-list.pdp-mini { grid-template-columns: minmax(0, 1fr); }
    .pat-disc-preview .pdf-list.pdp-mini .pdf-row:nth-child(n+5) { display: none; }   /* a phone shows four, not a long column */
    .pdp-else-h { padding: 12px 16px; }
    .pat-disc-preview .pdp-empty-t { font-size: 19px; }
    .pat-disc-preview .pdp-empty-b { padding: 28px 18px 30px; }
    .pat-disc-preview .pdp-empty-b .pdp-empty-d { font-size: 15px; }
    .pat-disc-preview .pdp-empty .pdp-new { font-size: 14px; }
}

/* 3.9.70: [pat-disc-preview], section WITH threads: one block. Launch banner, the section's own threads (three at
   most), a call to action in one row, then Latest Elsewhere. From the foot of the first thread the list fades, so
   the second and third run into the call to action beneath. */
.pdp-empty.pdp-block { text-align: left; }
.pdp-block .pdp-new { text-align: center; }
.pdp-own { background: #fff; }
.pdp-own-3 { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 34%, rgba(0,0,0,.04) 100%); mask-image: linear-gradient(180deg, #000 0, #000 34%, rgba(0,0,0,.04) 100%); }
.pdp-own-2 { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 50%, rgba(0,0,0,.04) 100%); mask-image: linear-gradient(180deg, #000 0, #000 50%, rgba(0,0,0,.04) 100%); }
.pdp-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 24px 26px; background: #fafcfd; }
.pdp-own-1 + .pdp-cta { border-top: 1px solid #e4e9ee; }   /* a single thread does not fade, so it needs the line */
.pdp-cta > div { min-width: 0; }
.pat-disc-preview .pdp-cta .pdp-empty-t { font-size: 20px; }
.pat-disc-preview .pdp-cta .pdp-empty-d { font-size: 16px; line-height: 1.7; max-width: none; margin: 8px 0 0; }
.pat-disc-preview .pdp-cta a.pdp-go { flex: none; height: 48px; padding: 0 30px; font-size: 16.5px; }
@media (max-width: 700px) {
    .pdp-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 16px 22px; }
    .pat-disc-preview .pdp-cta .pdp-empty-t { font-size: 18px; }
    .pat-disc-preview .pdp-cta .pdp-empty-d { font-size: 15px; }
}
