#html-to-pdf-btn {
    /* float: right; */
    border: 1px solid #555;
    background: none;
    color: #555; 
    padding: 4px 8px;
    font-size: 1rem; 
    cursor: pointer;
    margin-left: 1rem;
    border-radius: 0.25rem;
}

#html-to-pdf-btn:hover {
    background-color: #eee;
}

.shared-header-shell {
    position: relative;
}

.shared-page .shared-header-shell .am-site-header {
    min-height: 54px;
    padding-right: clamp(8.2rem, 26vw, 10.4rem);
}

.shared-page .shared-header-shell .am-site-logo {
    width: 52px;
    margin-right: 0.12rem;
    padding: 0.16rem;
}

.shared-page .shared-header-shell .am-site-header-text {
    gap: 0.28rem;
}

.shared-page .shared-header-shell .am-site-header-text h1 {
    font-size: clamp(1rem, 3.4vw, 1.22rem);
}

.shared-page .shared-header-shell .am-site-header-text h2 {
    font-size: clamp(0.72rem, 2.3vw, 0.9rem);
    max-width: 32vw;
}

.shared-page #social-share {
    position: absolute;
    right: clamp(0.35rem, 1.8vw, 0.9rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.22rem;
    background: transparent;
    padding: 0.12rem 0.2rem;
    margin: 0;
    border-radius: 7px;
    max-width: calc(100vw - 9.2rem);
    overflow: hidden;
}

.shared-page #social-share h4 {
    display: none;
}

.shared-page #social-share a img {
    display: block;
    width: 16px;
    height: 16px;
}

.shared-page #social-share a,
.shared-page #social-share button {
    flex: 0 0 auto;
}

.shared-page .share-favorite-btn {
    min-width: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}

.shared-page .share-favorite-login-link {
    padding: 0.14rem 0.3rem;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.shared-page .social-share-hint {
    margin: 0.15rem 0 0;
    padding: 0.12rem 0.4rem;
    font-size: 0.8rem;
    color: #4b5f7f;
    text-align: right;
}

.shared-page .am-topbar .am-user-menu {
    font-size: 0.88rem;
}

.shared-page .am-topbar .am-search-form {
    flex: 1 1 340px;
    max-width: 360px;
}

.shared-page .am-topbar .am-search-input {
    font-size: 0.9rem;
}

.shared-page .am-site-nav-list li a {
    font-size: 0.98rem;
}

.shared-page .am-favorites-link {
    margin-right: 16px;
}

.shared-page .am-favorites-count {
    right: auto;
    left: -9px;
}
.owner-pipeline-bar {
    width: 100%;
    max-width: none;
    margin: 0.28rem 0 0.18rem;
    padding: 0.22rem 0.5rem;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    background: #eee;
}
.owner-pipeline-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.14rem;
    padding-left: 0;
}
.owner-pipeline-prefix {
    font-size: 0.96rem;
    font-weight: 700;
    color: #5a4423;
    letter-spacing: 0.01em;
    margin-right: 1.625rem;
    white-space: nowrap;
}
.owner-pipeline-step {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}
.owner-pipeline-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #4a3c12;
    background: #f4f7fb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    flex: 0 0 auto;
}
.owner-pipeline-label {
    font-size: 0.93rem;
    font-weight: 700;
    color: #3e2d14;
    line-height: 1.2;
    white-space: nowrap;
}
.owner-pipeline-connector {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #c9d1df;
    margin: 0 0.12rem;
}
.owner-pipeline-step.is-complete .owner-pipeline-light {
    background: #8bb58b;
    border-color: #3f6b3f;
}
.owner-pipeline-connector.is-complete {
    background: #8bb58b;
}
.shared-page .youtube-transcript-test {
    display: none !important;
}
.item-collection-link {
    color: #1d4f8c;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}
.item-collection-link:hover {
    color: #14365f;
}
.report-edit-disclosure {
    margin: 0.32rem 0 0.55rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid #e4c88d;
    border-radius: 10px;
    background: #fff7e7;
    color: #6b4b12;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
}
.approval-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0.25rem 0 0.6rem 0;
}
.approval-btn {
    border: 1px solid #1b4f8f;
    background: #1f5ea8;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.72rem;
    line-height: 1.1;
    cursor: pointer;
}
.approval-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
.approval-helper-text {
    font-size: 0.86rem;
    color: #4a6188;
}
.approval-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
}
.approval-state-pill.is-approved {
    border: 1px solid #2d7e4c;
    background: #ebf8f0;
    color: #1f633a;
}
#no-images-found-msg {
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
}

.shared-gallery {
    width: 100%;
    margin: 0 auto;
}

.shared-gallery-stage {
    position: relative;
    border: 1px solid #c9cfda;
    border-radius: 12px;
    background: #f9fafc;
    overflow: hidden;
}

.shared-gallery-main-image {
    display: block;
    width: 100%;
    height: clamp(360px, 52vw, 980px);
    object-fit: contain;
    background: #fff;
    cursor: zoom-in;
}

.shared-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid #7b879f;
    border-radius: 999px;
    background: rgba(248, 250, 255, 0.9);
    color: #30425f;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shared-gallery-nav:hover {
    background: #ffffff;
}

.shared-gallery-nav-prev {
    left: 10px;
}

.shared-gallery-nav-next {
    right: 10px;
}

.shared-gallery.single-image .shared-gallery-nav {
    display: none;
}

.shared-gallery-thumbs {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.shared-gallery-thumb-btn {
    border: 2px solid #d4dae7;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
}

.shared-gallery-thumb-btn.is-active {
    border-color: #3569c8;
    box-shadow: 0 0 0 2px #3569c822;
}

.shared-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.shared-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(12, 16, 24, 0.65);
}

.shared-gallery-stage.is-zoomed {
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--zoom-stage-w, min(94vw, 1680px));
    height: var(--zoom-stage-h, min(94vh, 980px));
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
    background: #fff;
    overflow: hidden;
}

.shared-gallery-main-image.is-zoomed {
    --zoom-origin-x: 50%;
    --zoom-origin-y: 50%;
    --zoom-hover-scale: 1;
    transform-origin: var(--zoom-origin-x) var(--zoom-origin-y);
    transform: scale(var(--zoom-hover-scale));
    transition: transform 0.12s ease-out;
    width: 100%;
    height: 100%;
    max-height: none;
    cursor: zoom-out;
    background: #fff;
}

.shared-gallery-main-image.is-zoomed.is-hover-inspecting {
    cursor: zoom-out;
}

body.shared-gallery-zoom-open {
    overflow: hidden;
}

.my-appraisals-images {
    max-width:100%; 
    display:block; 
    margin:0 0 10px 0;
}

#call-to-action{padding:0.5rem;background-color:#888;}#call-to-action p{color:#fff;font-weight:bold;text-align:center;font-size:1.5rem;}#call-to-action a{color:#fff;}

.container {
    display: grid;
    margin: 0 auto;
    gap: 10px;
    grid-template-areas:
        "section"
        "main"
        "footer"
        "aside";
    background-color: #fff;
    box-shadow: 0 4px 8px #00000022;
    padding: 0.75rem;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

aside {
    width: 100%;
    grid-area: aside;
}

aside p {
    margin: 1rem auto;
    width: 66%;
    min-width: 400px;
    font-size: 1rem;
    line-height: 1.4rem;
    font-weight: normal;
    font-family: sans-serif;
}

/* so that click-to-zoom images 
which are position absolute
stay in their spot as they grow in size 
section {
    position: relative;
} */

#pdf-generated-date {
    display: none;
}

footer, footer > * {
    display: block;
}

#report-banner {
    flex-direction: column;
    justify-items: center;
}

#report-banner > * {
    align-items: center;
}

.container section img {
    margin-bottom: 0.75rem;
}

.chavatar-box {
    background-color: #f4f8ff;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #4a90e2;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.6;
    max-height: none;
    overflow: visible;
}

#shared-main {
    padding-left: clamp(0.65rem, 1.9vw, 1.45rem);
    padding-right: clamp(0.65rem, 1.9vw, 1.45rem);
}

.shared-panel {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0.55rem 0;
    border: 1px solid #d5dbe8;
    border-radius: 12px;
    background: #fcfdff;
    overflow: hidden;
}

#report-panel {
    display: block;
    width: 100%;
}

.shared-panel > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0.95rem;
    font-size: 1.03rem;
    font-weight: 700;
    color: #1f365e;
    background: #f3f7ff;
    border-bottom: 1px solid transparent;
}

.shared-panel > summary::-webkit-details-marker {
    display: none;
}

.shared-panel > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.42rem;
    transition: transform 0.18s ease;
}

.shared-panel[open] > summary::before {
    transform: rotate(90deg);
}

.shared-panel[open] > summary {
    border-bottom-color: #d5dbe8;
}

.shared-panel-body {
    padding: 0.45rem 0.65rem 0.75rem;
}

.shared-report-body .item-category,
.shared-report-body .item-condition,
.shared-report-body #report-date {
    display: block;
    margin: 0.75rem 0 1.2rem !important;
    font-weight: 400 !important;
    line-height: 1.62;
}

.shared-report-body .item-label,
.shared-report-body .item-category .item-label,
.shared-report-body .item-condition .item-label,
.shared-report-body #report-date .item-label {
    font-weight: 700 !important;
    color: #2d313b;
}

.shared-report-body .item-value,
.shared-report-body .item-category .item-value,
.shared-report-body .item-condition .item-value,
.shared-report-body #report-date .item-value {
    font-weight: 400 !important;
    color: #1f2430;
}

.shared-report-body .item-category a,
.shared-report-body .item-condition a,
.shared-report-body #report-date a {
    font-weight: 400 !important;
}

.shared-report-body h3 {
    margin: 2rem 0 0.7rem;
}

.shared-report-body h3 + p,
.shared-report-body h3 + .item-category,
.shared-report-body h3 + .item-condition,
.shared-report-body h3 + ul {
    margin-top: 0.2rem;
}

.report-image-notes-list {
    margin: 0.2rem 0 0;
    padding-left: 1.15rem;
    color: #1f2430;
}

.report-image-notes-list li + li {
    margin-top: 0.3rem;
}

.shared-panel-chat .shared-panel-body {
    padding-top: 0.35rem;
}

.shared-panel-narration .shared-panel-body {
    padding: 0.55rem 0.65rem 0.8rem;
}

.shared-panel-narration .presentation-cta-row {
    margin: 4px 0 4px 0;
}

.shared-panel-narration .presentation-cta-row .presentation-btn {
    width: auto;
    min-width: 220px;
}

.shared-panel-narration #clear-presentation-form {
    margin: 0;
}

.narration-upsell-copy {
    margin: 0.25rem 0 0.65rem;
    color: #314463;
    font-size: 0.94rem;
    line-height: 1.45;
}

.narration-upsell-video {
    display: block;
    width: min(100%, 760px);
    margin: 0.35rem 0 0.75rem;
    border-radius: 10px;
    border: 1px solid #bcc7da;
    background: #000;
}

.narration-upsell-video[hidden],
.narration-upsell-video-label[hidden] {
    display: none !important;
}

.narration-upsell-video-label {
    margin: 0.18rem 0 0.18rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3d4f70;
}

.podium-prep-panel {
    margin: 0.15rem 0 0.7rem;
    border: 1px solid #bcc7da;
    border-radius: 8px;
    background: #f7f9fd;
}

.podium-prep-summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    list-style: none;
    margin: 0;
    color: #263a61;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.podium-prep-summary::-webkit-details-marker {
    display: none;
}

.podium-prep-summary::before {
    content: "\25B8";
    font-size: 0.86rem;
    line-height: 1;
}

.podium-prep-panel[open] > .podium-prep-summary {
    border-bottom: 1px solid #d4ddeb;
}

.podium-prep-panel[open] > .podium-prep-summary::before {
    content: "\25BE";
}

.podium-prep-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin: 0.75rem 0.75rem 0.65rem;
}

.podium-prep-file-label {
    color: #3d4f70;
    font-size: 0.88rem;
    font-weight: 700;
}

.podium-prep-file-input {
    max-width: 100%;
    color: #263a61;
    font-size: 0.9rem;
}

.podium-prep-video-type {
    max-width: 100%;
    padding: 0.18rem 0.35rem;
    color: #263a61;
    font-size: 0.88rem;
}

.podium-prep-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0.75rem;
}

.podium-prep-preview-box {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed #9aa9c5;
    border-radius: 8px;
    background: #ffffff;
}

.podium-prep-preview-box-webp {
    background: repeating-linear-gradient(
        45deg,
        #fbfcff,
        #fbfcff 10px,
        #f1f4fa 10px,
        #f1f4fa 20px
    );
}

.podium-prep-placeholder {
    padding: 0 0.75rem;
    color: #6b7890;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.podium-prep-video-preview {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: contain;
    background: #000;
}

.podium-prep-preview-box-video.has-video {
    border-style: solid;
    background: #000;
}

.podium-prep-preview-box-video.has-video .podium-prep-placeholder {
    display: none;
}

.podium-prep-preview-box-video.has-video .podium-prep-video-preview {
    display: block;
}

.podium-prep-output-preview {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: contain;
}

.podium-prep-preview-box-webp.has-output {
    border-style: solid;
    background: #eef2f8;
}

.podium-prep-preview-box-webp.has-output .podium-prep-placeholder {
    display: none;
}

.podium-prep-preview-box-webp.has-output .podium-prep-output-preview {
    display: block;
}

.podium-prep-run-btn {
    width: auto;
    min-width: 150px;
    margin: 0.65rem 0.75rem 0;
}

.podium-prep-run-btn:disabled {
    opacity: 0.58;
    cursor: default;
}

.podium-prep-response-text {
    min-height: 1.2rem;
    margin: 0.45rem 0.75rem 0.75rem;
    color: #3d4f70;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.podium-prep-response-text.is-error {
    color: #9a2e2e;
}

.narration-stage-hidden {
    display: none !important;
}

.shared-narration-body {
    max-width: 94%;
    margin: 0 auto;
}

.shared-narration-text {
    margin: 0.75rem auto 0;
    max-width: 92%;
    font-size: 1.08rem;
    line-height: 1.7;
}

.presentation-script-panel {
    margin: 0.8rem auto 0;
    max-width: 92%;
    border: 1px solid #d4deea;
    border-radius: 8px;
    background: #f8fbff;
}

.presentation-script-panel > summary {
    cursor: pointer;
    padding: 0.58rem 0.75rem;
    color: #203a60;
    font-weight: 800;
    line-height: 1.25;
}

.presentation-script-body {
    padding: 0 0.75rem 0.75rem;
}

.presentation-script-body .shared-narration-text {
    max-width: none;
    margin-top: 0.35rem;
}

.shared-panel-report .shared-panel-body {
    max-width: 92%;
    margin: 0 auto;
    padding: 0.6rem clamp(0.5rem, 1.2vw, 1.05rem) 1rem;
}

#chavatar-video-container {
    text-align: center; 
    margin-top: 20px; 
    display: none;
}

#chavatar-video {
    width: 350px;
    height: 525px;
    display: none; 
    margin: 1rem auto;
    object-fit: cover;
} 

.chavatar-wrapper {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 650px;
    height: clamp(340px, 45vw, 480px);
    overflow: hidden; /* 🎭 Keeps the action inside the proscenium */
    margin: 0.25rem auto;
    text-align: center;
    /* box-shadow: 3px 6px 6px #5555; */
    overflow: hidden;
}

.chavatar-image,
.visual-aid-image,
#chavatar-timeline-video {
    position: absolute;
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
    /* object-fit: contains; */
    object-position: center;
    top: 0;
    left: 0;
    right: 0;
    /* transition: opacity 0.5s ease-in-out; */
}

#chavatar-timeline-video,
.chavatar-image {
    transition: opacity 0.5s ease-in-out;
}

.chavatar-image { 
    z-index: 1; 
}

#chavatar-timeline-video { 
     z-index: 2; 
    /* 🔥 this is the “black becomes transparent” trick */
    /* mix-blend-mode: screen; */
    background: transparent;
    /* optional: prevents the big control overlay from hijacking clicks */pointer-events: none;
    opacity: 0;
}

#chavatar-timeline-video{
  position: absolute;
  top: 0;

  /* center the element */
  left: 45%;
  right: auto;

  height: 100%;
  width: 100%;                 /* your shrink */
  transform: translateX(-50%);/* center it */

  object-fit: cover;        /* or cover, your choice */
  object-position: 45% center;

  z-index: 2;
  background: transparent;
  pointer-events: none;
}

#chavatar-timeline-video.presentation-export-playback {
    display: block !important;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: contain;
    object-position: center;
    background: #000;
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 5;
}

.visual-aid-image {
    z-index: 3;
    opacity: 0; /* hidden until shown */
}

.visual-aid-image.is-podium-avatar-mask {
    filter: brightness(0.7);
}

.presentation-btn {
    width: 88%; 
    display: inline;
    /* max-width: 638px; */
    margin: 4px 0 2px 16px; 
    padding: 7px 9px; 
    font-size: 16px; 
    text-align: center; 
    border-radius: 4px; 
    letter-spacing: 1px; 
    color: #ccf; 
    background-color: #446; 
    border: 2px solid #bbbbff55; 
    font-weight: bold;
}

.presentation-btn:hover {
    color: #eef; 
    background-color: #228; 
    cursor: pointer;
}

.presentation-cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}

.presentation-cta-row .presentation-btn {
    margin: 4px 0 2px 0;
}

.presentation-export-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 0 16px;
}

.presentation-export-row .presentation-btn {
    width: auto;
    min-width: 220px;
    margin: 0;
}

.presentation-export-link {
    color: #2f3f74;
    font-size: 0.9rem;
    font-weight: 800;
}

.presentation-export-link[hidden] {
    display: none !important;
}

.presentation-export-status {
    min-height: 1.2rem;
    margin: 0.35rem 0 0.35rem 16px;
    color: #3d4f70;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.presentation-export-status.is-error {
    color: #9a2e2e;
}

.presentation-credit-estimate {
    margin: 0;
    font-size: 0.88rem;
    color: #5d6f97;
    font-weight: 600;
    white-space: nowrap;
}

.presentation-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 2px 0 4px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b4f84;
}

.presentation-loading[hidden] {
    display: none !important;
}

.presentation-loading-text {
    line-height: 1;
}

#make-composite-img-btn {
    display: none;
}

#take-the-stage-btn {
    background-color: #2f3f74;
    border-color: #9db0ff88;
}

#comparables-peer-review-btn {
    background-color: #2f3f74;
    border-color: #9db0ff88;
    width: min(100%, 460px);
    margin-left: 0;
    margin-top: 2px;
    margin-bottom: 6px;
    white-space: nowrap;
}

#comparables-peer-review-form {
    margin: 0;
}

.premium-research-cta-stack {
    display: grid;
    gap: 4px;
}

.owner-research-panel {
    background-color: #f4f8ff;
    padding: 12px 12px 6px;
    margin-bottom: 12px;
    border-left: 5px solid #4a90e2;
}

.premium-research-credit-note {
    margin: 0 0 2px 16px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #5d6f97;
}

.premium-research-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 2px 0 4px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b4f84;
}

.premium-research-loading[hidden] {
    display: none !important;
}

.premium-research-spinner {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #a9bfde;
    border-top-color: #2b4f84;
    animation: premium-research-spin 0.75s linear infinite;
}

@keyframes premium-research-spin {
    to {
        transform: rotate(360deg);
    }
}

.premium-research-status {
    margin: 6px 0 8px 16px;
    color: #2f5a38;
    font-size: 0.9rem;
    line-height: 1.35;
}

.premium-research-status.is-error {
    color: #8f2d2d;
}

.premium-research-status-detail {
    font-size: 0.82rem;
    word-break: break-word;
    opacity: 0.9;
}

#comparables-peer-review-btn:hover {
    background-color: #228;
}

#comparables-peer-review-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

#take-the-stage-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.presentation-btn-secondary {
    background-color: #5f6676;
    border-color: #c8d2ea66;
    color: #eef2ff;
}

.presentation-btn-secondary:hover {
    background-color: #4c5362;
}

.premium-research-holders {
    margin: 1rem 0 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.premium-research-holder {
    display: block;
    width: 100%;
    border: 1px solid #d7dde8;
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.7rem 0.9rem;
}

.premium-research-title {
    display: block;
    margin: 0 0 0.3rem;
}

.premium-research-holder-summary {
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fd 100%);
}

.peer-review-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.peer-review-summary-card {
    display: grid;
    gap: 0.16rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid #dde5f0;
    border-radius: 10px;
    background: #fff;
}

.peer-review-summary-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5d687d;
}

.peer-review-summary-value {
    font-size: 1rem;
    line-height: 1.42;
    color: #162338;
    font-weight: 700;
}

.peer-review-summary-note {
    margin: 0.72rem 0 0;
    color: #4b5a70;
    font-size: 0.92rem;
    line-height: 1.45;
}

.researched-market-panel {
    margin: 0.85rem 0 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #d9e1eb;
    border-left: 4px solid #5a7da8;
    border-radius: 10px;
    background: #f8fbff;
}

.researched-market-panel-title {
    margin: 0 0 0.45rem;
    color: #17304f;
}

.researched-market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin: 0;
}

.researched-market-row {
    display: grid;
    gap: 0.1rem;
    margin: 0;
}

.researched-market-row dt {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5d687d;
}

.researched-market-row dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.42;
    color: #162338;
    font-weight: 700;
}

.researched-market-note {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5a70;
}

.premium-research-placeholder {
    margin: 0;
    color: #546070;
}

.premium-comparables-list {
    display: grid;
    gap: 0.6rem;
}

.premium-comparable-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.7rem;
    padding: 0.55rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e3e8f1;
}

.premium-comparable-thumb-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #d9dde3;
    border: 1px solid #c4cbd5;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.06em;
}

.premium-comparable-thumb-wrap {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #eef2f7;
    border: 1px solid #cfd9e6;
    overflow: hidden;
}

.premium-comparable-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-comparable-title {
    margin: 0 0 0.15rem;
    font-size: 0.97rem;
    line-height: 1.25;
}

.premium-comparable-title a {
    color: #1a3f70;
}

.premium-comparable-meta {
    margin: 0;
    font-size: 0.86rem;
    color: #5d6778;
}

.premium-comparable-meta-list {
    display: grid;
    gap: 0.22rem;
    margin: 0;
}

.premium-comparable-meta-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0.45rem;
    align-items: start;
}

.premium-comparable-meta-row dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5d6778;
}

.premium-comparable-meta-row dd {
    margin: 0;
    font-size: 0.88rem;
    color: #1f2430;
    line-height: 1.35;
}

.premium-comparable-notes,
.premium-peer-review-text {
    margin: 0.3rem 0 0;
    color: #334155;
    white-space: pre-wrap;
}

.premium-peer-review-section + .premium-peer-review-section {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e1e7f0;
}

.premium-peer-review-section h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #17253f;
}

.premium-peer-review-section .premium-peer-review-text {
    line-height: 1.58;
}

.enter-left {
    animation: slideFadeInLeft 0.5s ease-out forwards;
  }
  
  @keyframes slideFadeInLeft {
    0% {
      opacity: 0;
      transform: translateX(-100%);
    }
    100% {
      opacity: 1;
      transform: translateX(0%);
    }
  }
  
  .exit-left {
    animation: slideFadeOutLeft 0.5s ease-in-out forwards;
  }
  
  @keyframes slideFadeOutLeft {
    0% {
      opacity: 1;
      transform: translateX(0%);
    }
    100% {
      opacity: 0;
      transform: translateX(-100%);
    }
  }  

#chav-vid-btn, #send-email-btn {
    font-size: 1.1rem;
    border-radius: 6px;
    padding: 8px 16px; 
    display: block; 
    margin: 12px auto;
}

#enable-speech-chat {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #888;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#send-email-btn {
    display: none;
}

#chav-vid-btn {
    display: none;
}

#chav-vid-btn:hover {
   background-color: #aaa;
   color: #eee;
}

.chat-container {
    display: block;
    min-height: 0;
    border: 3px solid #cccccc55;
    border-radius: 10px;
    padding: 12px;
    width: 95%;
    margin: 14px auto;
    background-color: #fdfdfd;
    font-family: sans-serif;
    text-align: left;
}

.chat-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-chat-mode-badge {
    margin: 0 0 8px 0;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #1e5ab459;
    background: #1e5ab41f;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
}

.owner-chat-mode-source {
    opacity: 0.8;
}

/* #logged-in-user-chat-ui {
    display: none;
} 
*/

.chat-input-container {
    padding: 6px 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #aaa;
    box-sizing: border-box;
}

#chat-input {
    width: 100%;
}

.chat-window {
    display: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin: 15px auto;
    overflow-y: auto;
    background-color: #eee;
    width: 96%;
    color: #333;
}

.chat-window.has-messages {
    display: block;
}

.chat-faq-video {
    display: block;
    width: 96%;
    max-width: 1280px;
    margin: 10px auto 4px;
    border-radius: 12px;
    border: 1px solid #bbb;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chat-faq-video[hidden],
.chat-faq-image[hidden] {
    display: none;
}

.chat-faq-image {
    display: block;
    margin: 10px auto 6px;
    width: 96%;
    max-width: 1280px;
    border-radius: 12px;
    border: 1px solid #bbb;
    background: #f9f9f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    object-position: center center;
}

.chat-faq-image.is-portrait {
    /* Render portrait sources in a wide frame so tiny centered subjects are much larger. */
    width: min(96%, 1200px);
    aspect-ratio: 14 / 10;
    object-fit: cover;
    object-position: center 18%;
}

.chat-faq-image.is-landscape {
    width: min(96%, 1280px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.chat-faq-image.is-square {
    width: min(90%, 980px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.chat-faq-image.is-kangxi {
    width: min(96%, 1280px);
    max-width: 1280px;
    height: clamp(420px, 56vw, 820px);
    max-height: 820px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 18%;
}

.chat-bubble {
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 10px;
    border-radius: 10px;
    max-width: 78%;
    font-size: 17px;
    line-height: 24px;
}

.user-bubble {
    background-color: #e6f2ff;
    margin-left: auto;
    text-align: right;
}

.ai-bubble {
    background-color: #eaffea;
    margin-right: auto;
    text-align: left;
}     

@media (max-width: 699px) {
    .shared-page,
    .shared-page * {
        box-sizing: border-box;
    }
    .shared-page {
        overflow-x: hidden;
    }
    .shared-page .container,
    .shared-page section,
    .shared-page main,
    .shared-page #shared-main,
    .shared-page .chavatar-box,
    .shared-page .shared-panel,
    .shared-page .shared-panel-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }
    .shared-page .container {
        padding: 0.45rem;
        gap: 0.55rem;
    }
    .shared-page section,
    .shared-page main,
    .shared-page #shared-main {
        padding-left: 0;
        padding-right: 0;
    }
    .chavatar-box {
        padding: 0.35rem 0.25rem 0.55rem;
        border-left-width: 3px;
    }
    .chavatar-heading {
        font-size: 1.05rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .shared-gallery-stage,
    .shared-gallery-main-image {
        width: 100%;
        max-width: 100%;
    }
    .shared-gallery-main-image {
        height: min(72vw, 380px);
    }
    .shared-panel-narration .shared-panel-body {
        padding: 0.35rem 0 0.7rem;
    }
    .shared-narration-body {
        max-width: 100%;
    }
    .shared-panel-narration .presentation-cta-row,
    .presentation-export-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        margin: 0.35rem 0;
    }
    .shared-panel-narration .presentation-cta-row .presentation-btn,
    .presentation-export-row .presentation-btn,
    .presentation-btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        font-size: 15px;
        line-height: 1.25;
    }
    .presentation-export-status,
    .presentation-loading {
        margin-left: 0;
    }
    .narration-upsell-copy {
        margin: 0.45rem 0 0.55rem;
        font-size: 0.86rem;
        line-height: 1.35;
    }
    .chavatar-wrapper {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: calc(100svh - 170px);
        margin: 0.35rem auto 0.25rem;
    }
    .shared-panel-narration .chavatar-image-frame {
        border: 0;
    }
    .chavatar-image,
    .visual-aid-image,
    #chavatar-timeline-video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        object-position: center top;
    }
    #chavatar-timeline-video {
        left: 0;
        right: 0;
        transform: none;
    }
    .chavatar-audio-player {
        width: 100%;
        box-sizing: border-box;
        margin: 0.45rem 0 0;
    }
    .shared-narration-text {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.55;
    }
    .peer-review-summary-grid {
        grid-template-columns: 1fr;
    }
    .researched-market-grid {
        grid-template-columns: 1fr;
    }
    .premium-comparable-card {
        grid-template-columns: 1fr;
    }
    .premium-comparable-thumb-wrap,
    .premium-comparable-thumb-placeholder {
        width: 100%;
        max-width: 220px;
        height: 140px;
    }
    .premium-comparable-meta-row {
        grid-template-columns: 1fr;
        gap: 0.08rem;
    }
    .peer-review-summary-value {
        font-size: 0.96rem;
    }
    .shared-gallery-main-image {
        height: clamp(300px, 72vw, 560px);
    }
    .shared-gallery-thumb-btn {
        width: 72px;
        height: 72px;
    }
    .shared-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }
    .chat-bubble {
        max-width: 90%;
        font-size: 16px;
        line-height: 23px;
    }
    .shared-panel > summary {
        font-size: 0.98rem;
    }
    .shared-panel-report .shared-panel-body {
        max-width: 100%;
    }
}

@media (min-width:700px) {

    .container {
        display: grid;
        width: min(90vw, 1860px);
        max-width: none;
        margin: 0 auto;
        gap: 12px;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        transition: grid-template-columns 500ms ease;
        grid-template-rows: auto auto;
        grid-template-areas:
            "section main"
            "footer footer"
            "aside aside";
    }

    .container.is-image-focus {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }

    #report-banner {
        display: flex;
        justify-items: space-around;
        align-items: center;
    }

    footer p {
        font-size:1rem;
        width: 87%;  
        margin: 1rem auto;
    }

}

@media (min-width: 1200px) {

    .container {
        width: min(88vw, 1960px);
        max-width: none;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .container.is-image-focus {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }

    /*
    #html-to-pdf-btn:hover {
        cursor: pointer;
        background-color: 'forestgreen';
    }
    */
}

@media (prefers-reduced-motion: reduce) {
    .container {
        transition: none !important;
    }
}

.play-button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.play-button:hover {
    background-color: #45a049;
}

/* Account Page: Phase 1 information architecture */
.account-page .account-container {
    display: block;
    max-width: 1100px;
    padding: 1rem;
    margin: 0 auto;
    box-shadow: none;
}

.account-page #user-menu-holder {
    gap: 0.5rem;
}

.account-page .account-topbar-profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d2d2d2;
    background-color: #f3f3f3;
    flex: 0 0 auto;
}

.account-page .account-credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #b7d0f5;
    background: #eef5ff;
    color: #204a81;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.account-page .account-credit-summary-card {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0.35rem 0 0.65rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #b7d0f5;
    border-radius: 10px;
    background: #eef5ff;
    color: #204a81;
}

.account-page .account-credit-summary-label {
    flex-basis: 100%;
    color: #405a7d;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.account-page .account-credit-summary-card strong {
    color: #123d75;
    font-size: 1.25rem;
    line-height: 1.1;
}

.account-page .account-credit-summary-unit {
    color: #405a7d;
    font-size: 0.92rem;
    font-weight: 700;
}

.account-page .account-main {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-template-areas:
        "profile"
        "security"
        "notifications"
        "billing"
        "privacy"
        "danger";
    padding: 0;
    min-height: 0;
    border-right: none;
    align-items: stretch;
}

.account-page .account-main h3,
.account-page .account-main h4,
.account-page .account-main p,
.account-page .account-main label {
    margin: 0;
}

@media (max-width: 780px) {
    .owner-pipeline-bar {
        padding: 0.2rem 0.42rem;
    }
    .owner-pipeline-track {
        gap: 0.16rem;
        padding-left: 0;
    }
    .owner-pipeline-prefix {
        font-size: 0.99rem;
        margin-right: 0.95rem;
    }
    .owner-pipeline-label {
        font-size: 0.96rem;
    }
    .owner-pipeline-connector {
        width: 16px;
        margin: 0 0.08rem;
    }
}

@media (max-width: 980px) {
    .shared-page #social-share {
        right: 0.35rem;
    }
}

@media (max-width: 760px) {
    .shared-page #qr-code-holder,
    .shared-page #qr-code {
        display: none !important;
    }
    .shared-page #social-share {
        position: absolute;
        transform: translateY(-50%);
        justify-content: flex-end;
        gap: 0.16rem;
        padding: 0.05rem 0.1rem;
    }
    .shared-page .shared-header-shell .am-site-header {
        min-height: 48px;
        padding: 0.12rem 6.6rem 0.12rem 0.36rem;
        gap: 0.24rem;
    }
    .shared-page .shared-header-shell .am-site-logo {
        width: 40px;
        padding: 0.1rem;
    }
    .shared-page .shared-header-shell .am-site-header-text {
        gap: 0;
    }
    .shared-page .shared-header-shell .am-site-header-text h1 {
        font-size: 1rem;
    }
    .shared-page .shared-header-shell .am-site-header-text h2 {
        display: none;
    }
    .shared-page #social-share a img {
        width: 14px;
        height: 14px;
    }
    .shared-page .share-favorite-btn {
        min-width: 21px;
        width: 21px;
        height: 21px;
        font-size: 0.9rem;
    }
    .shared-page .share-favorite-login-link {
        max-width: 38px;
        overflow: hidden;
        padding: 0.12rem 0.2rem;
        font-size: 0;
    }
    .shared-page .share-favorite-login-link::before {
        content: "\2661";
        font-size: 0.9rem;
    }
    .shared-page .am-topbar .am-search-form {
        flex: 1 1 auto;
        max-width: none;
    }
    .shared-page .am-topbar .am-search-input {
        font-size: 0.88rem;
    }
    .shared-page .am-favorites-link {
        right: 34px;
        top: 14px;
    }
}

.account-page .account-section {
    grid-area: auto;
    display: block;
    width: 100%;
    margin: 0;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    background-color: #fff;
    padding: 1.1rem 1.2rem;
}

.account-page .account-profile {
    grid-area: profile;
}

.account-page .account-security {
    grid-area: security;
}

.account-page .account-notifications {
    grid-area: notifications;
}

.account-page .account-billing {
    grid-area: billing;
}

.account-page .account-privacy {
    grid-area: privacy;
}

.account-page .account-danger {
    grid-area: danger;
}

.account-page .account-section-header h3 {
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #1f1f1f;
}

.account-page .account-profile-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
    grid-template-columns: 1fr;
}

.account-page .profile-pic-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 260px;
}

.account-page #profile-pic-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.account-page .profile-pic-uploader {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 220px;
    max-width: 240px;
}

.account-page #profile-pic-chooser {
    width: 220px;
    margin: 0;
    font-size: 0.9rem;
}

.account-page #save-profile-pic-btn {
    width: 220px;
    min-height: 42px;
    margin: 0;
    font-size: 0.95rem;
}

.account-page #profile-pic-response-text {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: #3b3b3b;
}

.account-page .account-profile-details h4 {
    margin-bottom: 0.65rem;
    font-size: 1.45rem;
    line-height: 1.25;
    color: #2a2a2a;
}

.account-page .account-profile-details p,
.account-page .account-stats-row p {
    margin: 0.35rem 0;
    font-size: 1.12rem;
    line-height: 1.45;
    color: #232323;
}

.account-page .account-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ececec;
}

.account-page .account-muted-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #575757;
}

.account-page .account-admin-preview-links {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ececec;
}

.account-page .account-admin-preview-links ul {
    margin: 0.45rem 0 0;
    padding-left: 1.2rem;
}

.account-page .account-admin-preview-links li {
    margin: 0.2rem 0;
}

.account-page .account-admin-preview-links a {
    color: #1b4f93;
    text-decoration: none;
    font-weight: 600;
}

.account-page .account-admin-preview-links a:hover {
    text-decoration: underline;
}

.account-page .privacy-control-card {
    border: 1px solid #dedede;
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
    margin-top: 0.85rem;
}

.account-page .account-inline-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.account-page #searchable-radio-btns input {
    width: 22px;
    height: 22px;
    margin: 0;
}

.account-page #searchable-radio-btns p {
    font-size: 1.1rem;
    line-height: 1.45;
}

.account-page #searchable-radio-btns label {
    font-size: 1.1rem;
    line-height: 1.4;
}

.account-page #channel-visibility-radio-btns .account-inline-choice,
.account-page #video-privacy-radio-btns .account-inline-choice {
    justify-content: flex-start;
    gap: 0.45rem;
    margin-top: 0.45rem;
    margin-left: 0;
    padding-left: 0;
}

.account-page #channel-visibility-radio-btns input,
.account-page #video-privacy-radio-btns input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 auto;
}

.account-page #channel-visibility-radio-btns label,
.account-page #video-privacy-radio-btns label {
    margin: 0;
    width: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    line-height: 1.35;
}

.account-page #profile-pic-visibility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.account-page #profile-pic-visibility input {
    width: 24px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
}

.account-page #profile-pic-visibility label {
    font-size: 1.1rem;
    line-height: 1.4;
}

.account-page .account-inline-form {
    margin-top: 0.85rem;
}

.account-page .account-inline-form button {
    width: auto;
    min-width: 260px;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.5rem 0.9rem;
    line-height: 1.2;
}

.account-page .account-danger {
    border-color: #efc7c7;
    background-color: #fff9f9;
}

.account-page .danger-form {
    margin: 0;
}

.account-page .danger-form p {
    margin-top: 0;
    font-size: 1.08rem;
    line-height: 1.55;
}

.account-page .danger-confirm-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0;
}

.account-page .danger-confirm-row label {
    font-size: 1.12rem;
    line-height: 1.4;
}

.account-page .danger-form input[type='submit'] {
    min-height: 46px;
    width: min(100%, 420px);
}

.account-page .account-footer-links {
    grid-area: footer;
}

.account-page .account-footer-links ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0.5rem 0 0;
}

@media (min-width: 900px) {
    .account-page .account-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "profile profile"
            "security notifications"
            "billing privacy"
            "danger danger";
    }

    .account-page .account-profile-grid {
        grid-template-columns: 260px minmax(0, 1fr);
        column-gap: 1.35rem;
    }
}

@media (max-width: 699px) {
    .account-page,
    .account-page * {
        box-sizing: border-box;
    }

    .account-page .account-credit-badge {
        display: none;
    }

    .account-page .account-topbar-profile-pic {
        width: 28px;
        height: 28px;
    }

    .account-page .account-container {
        width: 100%;
        max-width: 100vw;
        padding: 0.35rem;
        overflow-x: hidden;
    }

    .account-page .account-main {
        gap: 0.8rem;
        width: 100%;
        min-width: 0;
    }

    .account-page .account-section {
        width: 100%;
        min-width: 0;
        padding: 0.6rem;
        border-radius: 10px;
        overflow-wrap: anywhere;
    }

    .account-page .account-section-header h3 {
        font-size: 1.45rem;
    }

    .account-page .account-profile-details h4 {
        font-size: 1.25rem;
    }

    .account-page .profile-pic-uploader {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .account-page #profile-pic-chooser,
    .account-page #save-profile-pic-btn {
        width: 100%;
    }

    .account-page .account-profile-details p,
    .account-page .account-stats-row p,
    .account-page .account-muted-text,
    .account-page #searchable-radio-btns p,
    .account-page #searchable-radio-btns label,
    .account-page #profile-pic-visibility label,
    .account-page .danger-form p,
    .account-page .danger-confirm-row label {
        font-size: 1.02rem;
    }

    .account-page .account-inline-form button {
        width: 100%;
        min-width: 0;
    }

    .account-page .danger-form input[type='submit'] {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    .account-page .danger-confirm-row {
        align-items: flex-start;
    }

    .account-page .account-footer-links ul {
        flex-wrap: wrap;
        gap: 0.55rem;
    }
}
