.doctor-main-hero-feed {
    width: 100%;
    margin: 0;
    position: relative;
    background: #f4f6f5;
    padding: 18px 20px 28px;
}

.doctor-main-hero-banner {
    display: none;
}

.doctor-main-community-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    width: min(1260px, 100%);
    max-width: none;
    margin: 0 auto 0 max(0px, calc((100vw - 1400px) / 2 - 20px));
    box-sizing: border-box;
    align-items: start;
}

.washing-promotion-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #053d20;
    box-shadow: 0 10px 28px rgba(5, 61, 32, 0.18);
}

.washing-promotion-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.hospital-website-promotion img { display: block; width: 100%; height: auto; }
.hospital-website-promotion--desktop, .hospital-website-promotion--mobile { display: none; }
.doctor-main-cafe-promotion-left { display: none; }
[data-mobile-promotion][hidden] { display: none !important; }

.washing-promotion-banner--desktop,
.washing-promotion-banner--mobile {
    display: none;
}

.doctor-main-cafe-reserved {
    display: none;
    min-width: 0;
    min-height: 1px;
}

@media (min-width: 901px) {
    .doctor-main-cafe-reserved {
        display: block;
        position: fixed;
        z-index: 2;
        top: 208px;
        right: 32px;
        width: 300px;
    }

    .washing-promotion-banner--desktop {
        display: block;
        width: 300px;
    }

    .doctor-main-cafe-promotion-left { display: block; position: fixed; z-index: 2; top: 208px; left: 32px; width: 250px; }
    .hospital-website-promotion--desktop { display: block; width: 250px; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 28px rgba(5, 61, 32, 0.18); }
}

.doctor-main-cafe-menu {
    position: sticky;
    top: 118px;
    min-width: 0;
}

.doctor-main-cafe-menu-card,
.doctor-main-feed-panel,
.doctor-main-latest-list {
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 8px;
}

.doctor-main-cafe-menu-card {
    padding: 16px 14px;
}

.doctor-main-cafe-menu-card strong {
    display: block;
    margin: 0 0 12px;
    color: #062412;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: 0;
}

.doctor-main-cafe-menu-link {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #31443a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.doctor-main-cafe-menu-link:hover,
.doctor-main-cafe-menu-link:focus,
.doctor-main-cafe-menu-link.is-active {
    color: #fff;
    background: #0b4d2c;
}

.doctor-main-cafe-menu-divider {
    display: block;
    height: 1px;
    margin: 10px 0;
    background: #edf2ef;
}

.doctor-main-cafe-category-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: -2px 0 8px;
    padding: 0 0 0 12px;
}

.doctor-main-cafe-category-link {
    display: flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 6px;
    color: #4d6157;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.doctor-main-cafe-category-link:hover,
.doctor-main-cafe-category-link:focus {
    color: #0b4d2c;
    background: #edf5f0;
}

.doctor-main-feed-panel {
    min-width: 0;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(6, 36, 18, .05);
}

.doctor-main-feed-head,
.doctor-main-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.doctor-main-feed-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: #062412;
    letter-spacing: 0;
}

.doctor-main-feed-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
}

.doctor-main-feed-chat {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #d6a900;
    border-radius: 15px;
    color: #16110a;
    background: #ffdb3d;
    box-shadow: 0 4px 0 #c89a00, 0 9px 18px rgba(75, 53, 0, .16);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.doctor-main-feed-chat::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
}

.doctor-main-feed-chat svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.doctor-main-feed-chat__unread {
    position: absolute;
    z-index: 2;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    box-shadow: 0 2px 5px rgba(127, 29, 29, .28);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.doctor-main-feed-chat__unread[hidden] {
    display: none;
}

.doctor-main-feed-chat:hover {
    border-color: #b98800;
    color: #16110a;
    background: #ffe86b;
    box-shadow: 0 3px 0 #c89a00, 0 12px 22px rgba(75, 53, 0, .2);
    transform: translateY(1px);
}

.doctor-main-feed-chat:focus-visible {
    outline: 3px solid rgba(214, 169, 0, .42);
    outline-offset: 3px;
}

.doctor-main-feed-chat--desktop {
    flex: 0 0 auto;
    margin-right: 12px;
    width: 36px;
    min-width: 36px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 11px;
}

.doctor-main-feed-chat--mobile {
    display: none;
}

.doctor-main-feed-more,
.doctor-main-latest-head a,
.doctor-main-latest-pages a {
    color: #0c5d36;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.doctor-main-feed-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 14px;
    border: 1px solid #0b4d2c;
    border-radius: 999px;
    background: #0b4d2c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.doctor-main-feed-write:hover,
.doctor-main-feed-write:focus {
    background: #063f23;
    border-color: #063f23;
    color: #fff;
    text-decoration: none;
}

.doctor-main-latest-head .doctor-main-feed-write {
    color: #fff;
}

.doctor-main-feed-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 6px;
    margin: 14px 0 12px;
    overflow: visible;
}

.doctor-main-feed-mobile-filter-row,
.doctor-main-thread-composer {
    display: none;
}

.doctor-main-feed-filter {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #d8e3dd;
    border-radius: 999px;
    color: #355144;
    background: #f7faf8;
    font-size: 13px;
    line-height: 16px;
    text-decoration: none;
}

.doctor-main-feed-filter.is-active {
    color: #fff;
    background: #0b4d2c;
    border-color: #0b4d2c;
}

.doctor-main-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.doctor-main-feed-item {
    display: block;
    color: #17241d;
    text-decoration: none;
}

.doctor-main-cafe-list-head,
.doctor-main-cafe-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 86px 64px 54px 86px;
    gap: 8px;
    align-items: center;
}

.doctor-main-cafe-list-head {
    min-height: 36px;
    padding: 8px 4px;
    border-bottom: 1px solid #dfe8e3;
    color: #7c8c84;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.doctor-main-cafe-list-head span:nth-child(n+4) {
    text-align: center;
}

.doctor-main-cafe-row {
    min-height: 46px;
    padding: 12px 4px;
    border-bottom: 1px solid #edf2ef;
    text-decoration: none;
}

.doctor-main-feed-item:hover .doctor-main-feed-item-title,
.doctor-main-feed-item:focus .doctor-main-feed-item-title {
    color: #0b4d2c;
    text-decoration: underline;
}

.doctor-main-feed-board,
.doctor-main-feed-item-title,
.doctor-main-feed-author,
.doctor-main-feed-metric,
.doctor-main-feed-date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
    letter-spacing: 0;
}

.doctor-main-feed-board {
    color: #0c6a3c;
    font-size: 13px;
    font-weight: 800;
}

.doctor-main-feed-item-title {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #17241d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.doctor-main-feed-title-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-main-feed-title-comment {
    flex: 0 0 auto;
    color: #df2f3f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.doctor-main-community-home .doctor-main-feed-item-title[data-feed-notice="true"],
.doctor-main-community-home .doctor-main-thread-title[data-feed-notice="true"] {
    color: #df2f3f;
}

.doctor-main-community-home .doctor-main-feed-notice-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 60px;
    height: 23px;
    padding: 0 10px;
    border: 1px solid #ffc4c9;
    border-radius: 3px;
    background: #fff0f1;
    color: #ef4444;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.doctor-main-community-home .doctor-main-feed-new-badge {
    display: inline-flex;
    flex: 0 0 auto;
    color: #df2f3f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.doctor-main-community-home .doctor-main-thread-title {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    max-width: 100%;
}

.doctor-main-community-home .doctor-main-thread-title .doctor-main-feed-title-main {
    white-space: normal;
}

.doctor-main-feed-author,
.doctor-main-feed-metric,
.doctor-main-feed-date {
    color: #6f7d75;
    font-size: 13px;
    line-height: 1.35;
}

.doctor-main-feed-metric {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.doctor-main-feed-star-metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.doctor-main-feed-star-metric svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: #f5b400;
    stroke-width: 1.9;
    stroke-linejoin: round;
}

.doctor-main-thread-card {
    display: none;
}

.doctor-main-thread-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
    background: #0b4d2c;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.doctor-main-thread-avatar--tone-1 {
    background: #0b4d2c;
}

.doctor-main-thread-avatar--tone-2 {
    background: #315a9f;
}

.doctor-main-thread-avatar--tone-3 {
    background: #8c3f62;
}

.doctor-main-thread-avatar--tone-4 {
    background: #6b5a1f;
}

.doctor-main-thread-avatar--tone-5 {
    background: #19666a;
}

.doctor-main-thread-avatar--tone-6 {
    background: #7a4333;
}

.doctor-main-thread-body,
.doctor-main-thread-meta,
.doctor-main-thread-title,
.doctor-main-thread-excerpt,
.doctor-main-thread-actions {
    min-width: 0;
}

.doctor-main-thread-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctor-main-thread-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.doctor-main-thread-preview-blocks {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.doctor-main-thread-preview-text {
    display: block;
    color: inherit;
    text-decoration: none;
}

.doctor-main-thread-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6f7d75;
    font-size: 12px;
    line-height: 1.3;
}

.doctor-main-thread-meta strong {
    color: #17241d;
    font-size: 13px;
    letter-spacing: 0;
}

.doctor-main-thread-title {
    color: #17241d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}

.doctor-main-thread-excerpt {
    color: #24332b;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.doctor-main-thread-preview-heading {
    color: #16231b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    white-space: normal;
}

.doctor-main-thread-preview-quote {
    border-left: 3px solid #d7e2db;
    padding-left: 10px;
    color: #536057;
    white-space: pre-line;
}

.doctor-main-thread-preview-list {
    display: grid;
    gap: 4px;
    color: #24332b;
    text-decoration: none;
    white-space: normal;
}

.doctor-main-thread-preview-list span {
    position: relative;
    display: block;
    padding-left: 14px;
}

.doctor-main-thread-preview-list span:before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0b4d2c;
}

.doctor-main-thread-preview-list--ordered {
    counter-reset: doctor-thread-preview-list;
}

.doctor-main-thread-preview-list--ordered span {
    counter-increment: doctor-thread-preview-list;
    padding-left: 22px;
}

.doctor-main-thread-preview-list--ordered span:before {
    content: counter(doctor-thread-preview-list) ".";
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #0b4d2c;
    font-size: 12px;
    font-weight: 800;
}

.doctor-main-thread-preview-callout {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e1e8e4;
    border-radius: 12px;
    background: #f7faf8;
    color: #24332b;
    text-decoration: none;
    white-space: normal;
}

.doctor-main-thread-preview-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #e1e8e4;
    border-radius: 12px;
    background: #fbfcfb;
    color: #233229;
    font-size: 13px;
    line-height: 1.35;
    scrollbar-width: thin;
}

.doctor-main-thread-preview-table > span {
    display: flex;
    min-width: max-content;
    border-top: 1px solid #edf1ef;
}

.doctor-main-thread-preview-table > span:first-child {
    border-top: 0;
    background: #f3f7f4;
    font-weight: 800;
}

.doctor-main-thread-preview-table > span > span {
    min-width: 72px;
    max-width: 180px;
    padding: 8px 10px;
    border-left: 1px solid #edf1ef;
    overflow-wrap: anywhere;
}

.doctor-main-thread-preview-table > span > span:first-child {
    border-left: 0;
}

.doctor-main-thread-more {
    color: #6f7d75;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.doctor-main-thread-inline-media {
    display: block;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    border: 1px solid #e4e9e5;
    border-radius: 14px;
    background: #f7f9f7;
    padding: 0;
    cursor: pointer;
}

.doctor-main-thread-inline-media img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.doctor-main-thread-media-strip {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 0 1px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.doctor-main-thread-media-strip::-webkit-scrollbar {
    display: none;
}

.doctor-main-thread-media {
    flex: 0 0 min(84%, 360px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e4e9e5;
    border-radius: 14px;
    background: #f7f9f7;
    padding: 0;
    scroll-snap-align: start;
    cursor: pointer;
}

.doctor-main-thread-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-thread-attachment-gallery {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 12px 0 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.doctor-thread-attachment-gallery::-webkit-scrollbar {
    display: none;
}

.doctor-thread-attachment-gallery__item {
    flex: 0 0 min(84%, 360px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e4e9e5;
    border-radius: 14px;
    background: #f7f9f7;
    scroll-snap-align: start;
}

.doctor-thread-attachment-gallery__item a,
.doctor-thread-attachment-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
}

.doctor-thread-attachment-gallery__item img {
    object-fit: cover;
}

.doctor-main-thread-link-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e3e8e5;
    border-radius: 14px;
    color: #17241d;
    background: #fff;
    text-decoration: none;
}

.doctor-main-thread-link-preview__image {
    display: block;
    aspect-ratio: 1.91 / 1;
    overflow: hidden;
    background: #f1f4f2;
}

.doctor-main-thread-link-preview__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-main-thread-link-preview__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px 11px;
}

.doctor-main-thread-link-preview > .doctor-main-thread-link-preview__domain,
.doctor-main-thread-link-preview__domain {
    color: #83908a;
    font-size: 12px;
    line-height: 1.25;
}

.doctor-main-thread-link-preview > strong,
.doctor-main-thread-link-preview__body strong {
    color: #17241d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.doctor-main-thread-link-preview > .doctor-main-thread-link-preview__domain,
.doctor-main-thread-link-preview > strong {
    padding: 0 12px;
}

.doctor-main-thread-link-preview > .doctor-main-thread-link-preview__domain {
    padding-top: 10px;
}

.doctor-main-thread-link-preview > strong {
    padding-bottom: 11px;
}

.doctor-main-thread-link-preview__description {
    color: #66736c;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.doctor-main-thread-source-badge {
    color: #16824a;
    font-weight: 700;
}

.doctor-main-thread-external-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    gap: 4px 10px;
    min-height: 44px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #dbe5df;
    border-radius: 14px;
    color: #18251d;
    text-decoration: none;
    background: #f9fbfa;
}

.doctor-main-thread-external-preview span {
    grid-column: 1;
    color: #6c7a72;
    font-size: 12px;
}

.doctor-main-thread-external-preview strong {
    grid-column: 1;
    font-size: 14px;
    line-height: 1.35;
}

.doctor-main-thread-external-preview svg {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 20px;
    height: 20px;
    stroke: #0b4d2c;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.doctor-main-thread-external-preview:hover,
.doctor-main-thread-external-preview:focus-visible {
    border-color: #9fcab2;
    background: #f2f8f4;
    outline: 2px solid transparent;
}

.doctor-main-thread-card--external .doctor-main-thread-actions > span:not(.doctor-main-thread-action) {
    display: none;
}

.doctor-main-thread-external-action svg {
    stroke: #0b4d2c;
}

.doctor-main-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .88);
}

.doctor-main-image-viewer.is-open {
    display: flex;
}

.doctor-main-image-viewer__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 88vh;
    touch-action: pan-y;
}

.doctor-main-image-viewer img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 8px;
    object-fit: contain;
}

.doctor-main-image-viewer__close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.doctor-main-image-viewer__previous,
.doctor-main-image-viewer__next {
    position: fixed;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.doctor-main-image-viewer__previous {
    left: 14px;
}

.doctor-main-image-viewer__next {
    right: 14px;
}

.doctor-main-image-viewer__previous:disabled,
.doctor-main-image-viewer__next:disabled {
    opacity: .28;
    cursor: default;
}

.doctor-main-image-viewer__counter {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .46);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: translateX(-50%);
}

body.doctor-main-image-viewer-open {
    overflow: hidden;
}

.doctor-main-thread-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #74837b;
    font-size: 12px;
    font-weight: 700;
}

.doctor-main-thread-actions > span:not(.doctor-main-thread-action) {
    display: none;
}

.doctor-main-thread-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #1b2821;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.doctor-main-thread-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.doctor-main-thread-action--star svg {
    stroke: #0b4d2c;
}

.doctor-main-thread-action--star.is-active svg {
    fill: #df2f3f;
    stroke: #df2f3f;
}

.doctor-main-thread-action--comment svg {
    stroke: #1b2821;
}

.doctor-main-thread-action--scrap svg {
    stroke: #1b2821;
}

.doctor-main-thread-action--scrap.is-active svg {
    fill: #0b7a45;
    stroke: #0b7a45;
}

.doctor-main-thread-action--copy {
    cursor: pointer;
}

.doctor-main-thread-action--copy.is-copied {
    color: #0b7a45;
}

.doctor-main-thread-action:focus-visible,
.doctor-main-thread-write-action:focus-visible,
.doctor-thread-write-close:focus-visible,
.doctor-thread-write-menu:focus-visible,
.doctor-thread-write-submit:focus-visible {
    outline: 3px solid rgba(11, 77, 44, .26);
    outline-offset: 3px;
}

.doctor-thread-detail-comment-focus {
    scroll-padding-bottom: 96px;
}

.doctor-thread-detail-actions {
    display: none;
}

.board-star--thread-detail {
    display: inline-flex;
    align-items: center;
}

.doctor-thread-write {
    max-width: 720px;
    margin: 34px auto;
    padding: 32px;
    border: 1px solid #edf2ef;
    border-radius: 8px;
    color: #111816;
    background: #fff;
}

.doctor-write-desktop {
    display: block;
    margin-bottom: 26px;
}

.doctor-write-desktop-path {
    margin: 0 0 8px;
    color: #6f7d75;
    font-size: 13px;
    line-height: 1.35;
}

.doctor-write-desktop h1 {
    margin: 0;
    color: #111816;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.3;
}

.doctor-write-desktop-label {
    display: block;
    margin: 14px 0 8px;
    color: #111816;
    font-size: 14px;
    font-weight: 900;
}

.doctor-write-desktop-label em {
    color: #df2f3f;
    font-style: normal;
}

.doctor-thread-write-mobile-only {
    display: none !important;
}

.doctor-thread-write form {
    max-width: 100%;
}

.doctor-thread-write-head,
.doctor-thread-write-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    border-bottom: 1px solid #edf2ef;
}

.doctor-thread-write-head h1 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
}

.doctor-thread-write-close,
.doctor-thread-write-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #111816;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.doctor-thread-write-menu {
    font-size: 20px;
    font-weight: 900;
}

.doctor-thread-write-body {
    display: block;
    padding: 0;
}

.doctor-thread-write-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.doctor-thread-write-author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #87928c;
    font-size: 14px;
}

.doctor-thread-write-author strong {
    color: #111816;
    font-size: 15px;
    font-weight: 900;
}

.doctor-thread-write-subject {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #dfe6e2;
    border-radius: 8px;
    color: #111816;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
}

.doctor-thread-write-category {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #dfe6e2;
    border-radius: 8px;
    color: #111816;
    background: #fff;
}

.doctor-thread-write .wr_content textarea,
.doctor-thread-write .wr_content iframe {
    width: 100% !important;
    min-height: 220px;
}

.doctor-thread-write .wr_content textarea {
    border: 1px solid #dfe6e2;
    border-radius: 8px;
    padding: 13px;
    color: #111816;
    font-size: 15px;
    line-height: 1.55;
    resize: vertical;
}

.doctor-thread-write-tools,
.doctor-thread-write-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-thread-write-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #7c8781;
    background: transparent;
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
}

.doctor-thread-write-gif {
    border: 2px solid currentColor;
    font-size: 12px;
}

.doctor-thread-write-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.doctor-thread-file-preview {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scroll-snap-type: x proximity;
}

.doctor-thread-file-preview[hidden] {
    display: none !important;
}

.doctor-thread-file-preview__item {
    position: relative;
    flex: 0 0 min(72vw, 280px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid #dfe4e1;
    border-radius: 8px;
    background: #f3f5f4;
    scroll-snap-align: start;
}

.doctor-thread-file-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-thread-file-preview__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.doctor-thread-file-preview__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 24, 20, .72);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.doctor-thread-write-footer {
    border-top: 1px solid #edf2ef;
    border-bottom: 0;
    margin-top: 18px;
    padding-top: 18px;
}

.doctor-thread-write-add {
    color: #c9d0cc;
    font-size: 15px;
    font-weight: 700;
}

.doctor-thread-write-submit {
    min-width: 70px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #0b4d2c;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.doctor-thread-write-submit:disabled {
    color: #fff;
    background: #d8ddda;
    cursor: progress;
}

.doctor-thread-title-dialog[hidden] {
    display: none !important;
}

.doctor-thread-title-dialog {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .32);
}

.doctor-thread-title-dialog__panel {
    width: min(100%, 420px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(5, 24, 13, .2);
    padding: 18px;
}

.doctor-thread-title-dialog__panel h2 {
    margin: 0 0 12px;
    color: #111816;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.doctor-thread-title-dialog__panel input {
    width: 100%;
    height: 46px;
    border: 1px solid #dce3de;
    border-radius: 14px;
    background: #f4f5f4;
    color: #111816;
    font-size: 15px;
    padding: 0 14px;
    box-sizing: border-box;
}

.doctor-thread-title-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.doctor-thread-title-dialog__actions button {
    min-width: 68px;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #eef2ef;
    color: #17241d;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.doctor-thread-title-dialog__actions button:last-child {
    background: #03240F;
    color: #fff;
}

@media (min-width: 901px) {
    .doctor-thread-mobile-post #bo_v_atc,
    .doctor-thread-mobile-post #bo_v_con,
    .doctor-thread-mobile-post .anklko-content,
    .doctor-thread-mobile-post .company-qna-content {
        font-size: 12pt !important;
        line-height: 1.65 !important;
    }
}

@media (max-width: 900px) {
    #top_btn {
        display: none !important;
    }
}

.doctor-main-feed-mobile-loader {
    display: none;
    color: #7a8981;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.doctor-main-feed-mobile-loader[hidden] {
    display: none !important;
}

.doctor-main-feed-pagination,
.doctor-main-latest-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 34px;
    margin-top: auto;
    padding-top: 8px;
}

.doctor-main-feed-page-control,
.doctor-main-feed-page-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 4px;
    color: #547066;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.doctor-main-feed-page-control:hover,
.doctor-main-feed-page-control:focus,
.doctor-main-feed-page-control.is-active {
    color: #fff;
    background: #0b4d2c;
}

.doctor-main-feed-page-gap {
    color: #9aa9a1;
}

.doctor-main-feed-empty {
    margin: 28px 0;
    color: #728178;
    font-size: 14px;
    text-align: center;
}

.doctor-main-latest {
    background: #f4f6f5;
    padding: 26px 20px 80px;
}

.doctor-main-latest-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.doctor-main-latest-content {
    min-width: 0;
}

.doctor-main-latest-head {
    margin-bottom: 14px;
}

.doctor-main-latest-head h1 {
    margin: 0;
    font-size: 28px;
    color: #062412;
    letter-spacing: 0;
}

.doctor-main-latest-filters {
    margin: 0 0 12px;
}

.doctor-main-latest-list {
    padding: 0 18px;
    overflow: hidden;
}

.doctor-main-latest-item {
    color: #1b2821;
}

@media (max-width: 1150px) {
    .doctor-main-community-shell {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .doctor-main-cafe-list-head,
    .doctor-main-cafe-row {
        grid-template-columns: 104px minmax(0, 1fr) 78px 58px 48px 80px;
        gap: 7px;
    }
}

@media (max-width: 900px) {
    .doctor-main-hero-feed {
        padding: 0;
        background: #fff;
    }

    .doctor-main-community-shell {
        display: block;
        width: 100%;
    }

    .doctor-main-cafe-menu {
        display: none;
    }

    .doctor-main-cafe-reserved {
        display: none;
    }

    .washing-promotion-banner--mobile {
        display: block;
        width: 180px;
        margin: 14px auto;
    }
    .hospital-website-promotion--mobile { display: block; width: 180px; margin: 14px auto; overflow: hidden; border-radius: 12px; }

    .doctor-main-feed-panel {
        border-width: 0 0 1px;
        border-radius: 0;
        box-shadow: none;
        padding: 0 14px 0;
    }

    .doctor-main-feed-chat {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 12px;
    }

    .doctor-main-feed-chat--desktop {
        display: inline-flex;
    }

    .doctor-main-feed-chat--desktop.is-index {
        display: none;
    }

    .doctor-main-feed-chat--mobile {
        display: inline-flex;
    }

    .doctor-main-feed-head {
        display: none;
    }

    .doctor-main-feed-panel > .doctor-main-feed-filters,
    .doctor-main-latest-head,
    .doctor-main-latest-content > .doctor-main-latest-filters {
        display: none;
    }

    .doctor-main-feed-mobile-filter-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0 11px;
        border-bottom: 1px solid #edf2ef;
    }

    .doctor-main-feed-mobile-filter-row .doctor-main-feed-filters {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
        margin: 0;
        overflow: hidden;
    }

    .doctor-main-feed-mobile-filter-row .doctor-main-feed-chat {
        flex: 0 0 auto;
    }

    .doctor-main-thread-composer {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 0;
        border-bottom: 1px solid #edf2ef;
        color: #17241d;
        text-decoration: none;
    }

    .doctor-main-thread-composer-body {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
    }

    .doctor-main-thread-composer-body strong {
        color: #17241d;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.2;
    }

    .doctor-main-thread-composer-body span {
        color: #8a9690;
        font-size: 15px;
        line-height: 1.35;
    }

    .doctor-main-feed-list,
    .doctor-main-latest-list {
        border: 0;
        border-radius: 0;
        padding: 0;
        background: #fff;
    }

    .doctor-main-feed-item {
        border-bottom: 1px solid #edf2ef;
    }

    .doctor-main-cafe-row {
        display: none;
    }

    .doctor-main-cafe-list-head {
        display: none;
    }

    .doctor-main-thread-card {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 15px 0;
    }

    .doctor-main-thread-card--no-author {
        grid-template-columns: minmax(0, 1fr);
    }

    .doctor-main-thread-actions {
        gap: 21px;
        margin-top: 3px;
    }

    .doctor-main-thread-actions span {
        min-height: 18px;
    }

    body.doctor-thread-detail-comment-focus #top_btn,
    body.doctor-thread-detail-comment-focus #quick,
    body.doctor-thread-detail-comment-focus #ft {
        display: none !important;
    }

    .doctor-thread-detail-comment-focus #bo_v_con,
    .doctor-thread-detail-comment-focus .anklko-content,
    .doctor-thread-detail-comment-focus .company-qna-content {
        min-height: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .doctor-thread-detail-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 8px 0 12px;
        padding: 0;
        color: #1b2821;
    }

    .doctor-thread-detail-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        color: inherit;
        background: transparent;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        touch-action: manipulation;
    }

    .doctor-thread-detail-action svg,
    .board-star--thread-detail .board-star__icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .doctor-thread-detail-manage {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .doctor-thread-detail-manage-menu {
        position: absolute;
        right: 0;
        bottom: 34px;
        z-index: 30;
        display: none;
        min-width: 94px;
        padding: 6px;
        border: 1px solid #e4e8e5;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(6, 36, 18, .14);
    }

    .doctor-thread-detail-manage.is-open .doctor-thread-detail-manage-menu {
        display: block;
    }

    .doctor-thread-detail-manage-item {
        display: block;
        padding: 9px 12px;
        border-radius: 8px;
        color: #1b2821;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.1;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
    }

    .doctor-thread-detail-manage-item:active,
    .doctor-thread-detail-manage-item:hover {
        background: #f4f6f4;
    }

    .doctor-thread-detail-manage-item--delete {
        color: #df2f3f;
    }

    .board-star--thread-detail {
        margin: 0 !important;
    }

    .board-star--thread-detail .board-star__button {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #1b2821;
        box-shadow: none;
        touch-action: manipulation;
    }

    .board-star--thread-detail .board-star__icon svg {
        width: 24px;
        height: 24px;
    }

    .board-star--thread-detail .board-star__button.is-active,
    .board-star--thread-detail .board-star__button.is-active .board-star__icon svg {
        color: #df2f3f;
        fill: #df2f3f;
        stroke: #df2f3f;
    }

    .board-star--thread-detail .board-star__count {
        margin-left: 5px;
        color: inherit;
        font-size: 13px;
        font-weight: 600;
    }

    .doctor-thread-detail-action:focus-visible,
    .board-star--thread-detail .board-star__button:focus-visible {
        outline: 2px solid #123c69;
        outline-offset: 3px;
    }

    .doctor-thread-detail-comment-focus #bo_vc {
        margin-top: 8px !important;
        border-top: 1px solid #edf0ed;
        padding-top: 7px;
        padding-bottom: calc(var(--doctor-thread-sticky-comment-height, 56px) + var(--doctor-thread-sticky-comment-bottom, 0px) + 8px) !important;
    }

    .doctor-thread-detail-comment-focus #bo_vc .anklko-comments__head,
    .doctor-thread-detail-comment-focus #bo_vc h2 {
        min-height: 27px;
        padding: 0 0 6px !important;
        margin: 0 !important;
        border: 0 !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .doctor-thread-detail-comment-focus #bo_vc .anklko-comment,
    .doctor-thread-detail-comment-focus #bo_vc .company-qna-reply,
    .doctor-thread-detail-comment-focus #bo_vc article {
        margin: 0 !important;
        padding: 9px 0 10px !important;
        border-bottom: 1px solid #eef1ef !important;
        gap: 8px !important;
    }

    .doctor-thread-detail-comment-focus #bo_vc .anklko-comment__meta,
    .doctor-thread-detail-comment-focus #bo_vc .company-qna-reply-head,
    .doctor-thread-detail-comment-focus #bo_vc header {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 3px 6px !important;
        margin: 0 0 3px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .doctor-thread-detail-comment-focus #bo_vc .member,
    .doctor-thread-detail-comment-focus #bo_vc .guest,
    .doctor-thread-detail-comment-focus #bo_vc .sv_member,
    .doctor-thread-detail-comment-focus #bo_vc .sv_guest,
    .doctor-thread-detail-comment-focus #bo_vc .ci-fb-author {
        display: inline-block;
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: top;
    }

    .doctor-thread-detail-comment-focus #bo_vc .anklko-comment__body,
    .doctor-thread-detail-comment-focus #bo_vc .company-qna-reply-content,
    .doctor-thread-detail-comment-focus #bo_vc .cmt_contents,
    .doctor-thread-detail-comment-focus #bo_vc .ci-fb-content {
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #1f2a24;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .doctor-thread-detail-comment-focus #bo_vc .cmt_contents > p,
    .doctor-thread-detail-comment-focus #bo_vc .ci-fb-content > p,
    .doctor-thread-detail-comment-focus #bo_vc .anklko-comment__body > p {
        margin: 0 !important;
        min-height: 0 !important;
    }

    .doctor-thread-detail-sticky-comment {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: var(--doctor-thread-sticky-comment-bottom, 0px);
        z-index: 1000;
        display: block !important;
        margin: 0 !important;
        padding: 6px 10px calc(6px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #e7ece8 !important;
        background: #fff !important;
        box-shadow: 0 -10px 30px rgba(6, 36, 18, .08);
        will-change: bottom;
    }

    .doctor-thread-detail-sticky-comment .company-qna-answer-panel,
    .doctor-thread-detail-sticky-comment .company-qna-answer-form {
        display: contents !important;
    }

    .doctor-thread-detail-sticky-comment .company-qna-answer-head,
    .doctor-thread-detail-sticky-comment h2,
    .doctor-thread-detail-sticky-comment label[for="wr_content"],
    .doctor-thread-detail-sticky-comment .company-qna-answer-label,
    .doctor-thread-detail-sticky-comment .anklko-comment-count,
    .doctor-thread-detail-sticky-comment .company-qna-answer-count {
        display: none !important;
    }

    .doctor-thread-detail-sticky-comment form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
    }

    .doctor-thread-detail-sticky-comment .anklko-comment-form__footer,
    .doctor-thread-detail-sticky-comment .company-qna-answer-foot,
    .doctor-thread-detail-sticky-comment .btn_confirm {
        display: contents !important;
    }

    .doctor-thread-detail-sticky-comment .bo_vc_w_info,
    .doctor-thread-detail-sticky-comment .anklko-comment-form__meta,
    .doctor-thread-detail-sticky-comment .secret_cm,
    .doctor-thread-detail-sticky-comment .chk_box,
    .doctor-thread-detail-sticky-comment .btn_confirm label {
        display: none !important;
    }

    .doctor-thread-detail-sticky-comment textarea#wr_content {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 84px;
        margin: 0 !important;
        padding: 9px 14px !important;
        border: 1px solid #e4e7e5 !important;
        border-radius: 999px !important;
        background: #f4f5f4 !important;
        resize: none !important;
        box-shadow: inset 0 1px 2px rgba(17, 24, 39, .04);
        color: #15231b !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .doctor-thread-detail-sticky-comment #btn_submit {
        min-width: 52px;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 999px;
    }

    .doctor-main-feed-pagination,
    .doctor-main-latest-pages {
        display: none;
    }

    .doctor-main-feed-mobile-loader {
        display: block;
        padding: 16px 0 22px;
        margin: 0;
    }

    .doctor-main-latest {
        padding: 0 14px 56px;
        background: #fff;
    }

    .doctor-main-latest-inner {
        width: 100%;
    }

    .doctor-main-latest-head h1 {
        font-size: 22px;
    }

    .doctor-thread-write {
        max-width: none;
        margin: 0;
        min-height: 100vh;
        padding: 0 14px calc(90px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
    }

    .doctor-write-desktop,
    .doctor-write-desktop-label,
    .doctor-thread-write-mobile-hidden,
    .doctor-thread-write-category,
    .doctor-thread-write-subject {
        display: none !important;
    }

    .doctor-thread-write-mobile-only {
        display: flex !important;
    }

    .doctor-main-thread-avatar.doctor-thread-write-mobile-only {
        display: inline-flex !important;
    }

    .doctor-thread-write-head {
        margin: 0 -14px;
        padding: 0 14px;
    }

    .doctor-thread-write-body {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 16px 0;
    }

    .doctor-thread-write .cke_top,
    .doctor-thread-write .cke_bottom,
    .doctor-thread-write .se2_tool,
    .doctor-thread-write .se2_multy,
    .doctor-thread-write .editor-toolbar,
    .doctor-thread-write .toastui-editor-toolbar {
        display: none !important;
    }

    .doctor-thread-write .wr_content {
        border: 0 !important;
    }

    .doctor-thread-write .wr_content textarea,
    .doctor-thread-write .wr_content iframe {
        min-height: 240px !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        font-size: 17px !important;
        line-height: 1.55 !important;
    }

    .doctor-thread-write-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        min-height: 64px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -10px 30px rgba(6, 36, 18, .06);
    }
}

/* Opt-in mobile image gallery. Original markup remains the desktop/no-JS fallback. */
.doctor-mobile-gallery { display: none; }
@media (max-width: 900px) {
    .doctor-mobile-gallery-ready .doctor-main-thread-inline-media,
    .doctor-mobile-gallery-ready .doctor-main-thread-media-strip {
        display: none !important;
    }
    .doctor-mobile-gallery {
        display: block; width: 100%; max-width: 420px; min-width: 0; margin: 8px 0 4px;
        color: #24412e; box-sizing: border-box;
    }
    .doctor-mobile-gallery__rail {
        position: relative; display: flex; gap: 8px; width: 100%; min-width: 0;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .doctor-mobile-gallery__rail::after { content: ""; flex: 0 0 28px; }
    .doctor-mobile-gallery__rail::-webkit-scrollbar { display: none; }
    .doctor-mobile-gallery__slide {
        position: relative; display: block; flex: 0 0 calc(100% - 36px); min-width: 0;
        aspect-ratio: 1 / 1.06; margin: 0; padding: 0; overflow: hidden; scroll-snap-align: start;
        border: 1px solid #e0e6de; border-radius: 12px; background: #f3f5f0; cursor: zoom-in;
    }
    .doctor-mobile-gallery__slide img {
        display: block; width: 100%; height: 100%; max-width: 100%; max-height: none;
        margin: 0; object-fit: cover; user-select: none; -webkit-user-drag: none;
    }
    .doctor-mobile-gallery__expand {
        position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center;
        width: 27px; height: 27px; border-radius: 7px; background: rgba(255,255,255,.94);
        color: #607767; font-size: 21px; line-height: 1; pointer-events: none;
    }
    .doctor-mobile-gallery__nav {
        display: flex; align-items: center; justify-content: space-between;
        gap: 4px; min-width: 0; min-height: 44px;
    }
    .doctor-mobile-gallery__dots { display: flex; flex: 0 1 auto; min-width: 0; }
    .doctor-mobile-gallery__dot {
        position: relative; width: 20px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer;
    }
    .doctor-mobile-gallery__dot[hidden] { display: none; }
    .doctor-mobile-gallery__dot::before {
        content: ""; position: absolute; width: 5px; height: 5px; left: 7px; top: 15px;
        border-radius: 4px; background: #d8dfd8; pointer-events: none;
    }
    .doctor-mobile-gallery__dot.is-active::before { left: 3px; width: 14px; background: #0b4d2c; }
    .doctor-mobile-gallery__counter { flex-shrink: 0; font-size: 12px; color: #7b897e; white-space: nowrap; }
    .doctor-mobile-gallery__counter strong { color: #24412e; font-weight: 700; }
    .doctor-mobile-gallery__arrows { display: flex; flex-shrink: 0; gap: 3px; }
    .doctor-mobile-gallery__arrow {
        width: 36px; height: 40px; padding: 0; border: 1px solid #e5ebe5; border-radius: 20px;
        background: #fff; color: #24412e; font: 25px/1 sans-serif; cursor: pointer;
    }
    .doctor-mobile-gallery__arrow:disabled { opacity: .3; cursor: default; }
    .doctor-mobile-gallery .doctor-mobile-gallery__hint {
        margin: 2px 0 8px; padding: 0; font-size: 11px; line-height: 1.5; color: #7c8a80;
    }
    .doctor-mobile-gallery--single .doctor-mobile-gallery__slide { flex-basis: 100%; }
    .doctor-mobile-gallery--single .doctor-mobile-gallery__rail::after,
    .doctor-mobile-gallery--single .doctor-mobile-gallery__nav { display: none; }
    .doctor-mobile-gallery button:focus-visible,
    .doctor-mobile-gallery__rail:focus-visible { outline: 2px solid #0b6b43; outline-offset: -3px; }
}
