﻿* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    background: linear-gradient(160deg, #f2f7f1 0%, #f8fbff 100%);
    color: #1f2937;
}

.fo-login-layer-popup {
    border-radius: 16px !important;
    padding: 14px 14px 10px !important;
}

.fo-login-layer-popup .swal2-html-container {
    margin: 10px 0 0 !important;
    padding: 0 !important;
}

.fo-login-layer-form .swal2-input {
    width: calc(100% - 2em) !important;
    margin: 0.5em auto !important;
}

.fo-login-layer-links {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .fo-login-layer-popup {
        width: 96vw !important;
        max-width: 96vw !important;
        padding: 10px 10px 8px !important;
    }

    .fo-login-layer-popup .swal2-title {
        font-size: 20px !important;
    }
}
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 68px 18px 36px;
}
.space { flex: 1 1 auto; }
.row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
}
.top-status-row {
    display: flex;
    align-items: center;
    position: sticky;
    top: 8px;
    z-index: 900;
    margin: 2px 0 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(243, 246, 251, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(209, 219, 233, 0.9);
}
.top-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.text-link-btn {
    height: 40px;
    min-width: 72px;
    border: 1px solid #bfd2c6;
    border-radius: 10px;
    background: #ffffff;
    color: #1d2b24;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.text-link-btn:hover {
    background: #f8fbf9;
}
.title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero-card {
    padding: 20px;
    margin-bottom: 16px;
}
.hero-sub {
    margin: 10px 0 14px;
    color: #6b7280;
    font-size: 14px;
}
.search-row input {
    flex: 1 1 320px;
}
.search-input-wrap {
    position: relative;
    flex: 1 1 320px;
    min-width: 220px;
}
.search-input-wrap input {
    width: 100%;
    padding-right: 40px;
}
.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #e5ebf3;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.search-clear-btn:hover {
    background: #d7e2ee;
}
.search-action-btn {
    height: 40px;
    min-width: 72px;
    border: 1px solid #bfd2c6;
    border-radius: 10px;
    background: #ffffff;
    color: #1d2b24;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.search-action-btn:hover {
    background: #f8fbf9;
}
.sub {
    color: #64748b;
    font-size: 13px;
}
input, textarea, button { font: inherit; }
input, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cad7e6;
    border-radius: 10px;
    background: #fff;
}
textarea {
    min-height: 180px;
    resize: vertical;
}
button {
    border: 1px solid #2458a6;
    background: #2458a6;
    color: #fff;
    padding: 9px 13px;
    border-radius: 10px;
    cursor: default;
}
button.secondary {
    border-color: #94a3b8;
    background: #fff;
    color: #334155;
}
button.danger {
    border-color: #d64545;
    background: #d64545;
}
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.primary-btn {
    border-color: #0f766e;
    background: #0f766e;
}
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feed-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    transition: box-shadow .14s ease, border-color .14s ease;
    position: relative;
    overflow: hidden;
}
.feed-card.is-expanded {
    min-height: 700px;
}
.feed-card.is-collapsed {
    min-height: 116px;
}
.feed-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.feed-card.is-expanded {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 4px;
}
.feed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.feed-board-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
}
.feed-id {
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.01em;
}
.feed-date-chip {
    display: inline-block;
    color: #6b7280;
    font-weight: 700;
}
.feed-title {
    margin: 4px 0 8px;
    font-size: 20px;
    line-height: 1.35;
    color: #111827;
    letter-spacing: -0.02em;
    font-weight: 700;
    word-break: keep-all;
}
.feed-meta {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.feed-meta-item {
    white-space: nowrap;
}
.feed-sep {
    color: #9ca3af;
    font-size: 11px;
}
.feed-stats {
    color: #374151;
    font-weight: 700;
}
.feed-preview {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}
.feed-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    overflow: auto;
    min-height: 680px;
}
.rich-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}
.rich-content-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}
.fo-detail-head-actions {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.fo-detail-head-actions button {
    white-space: nowrap;
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb;
    text-orientation: mixed;
    word-break: keep-all;
    overflow-wrap: normal;
}
.fo-detail-meta-box {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}
.fo-detail-attachments {
    margin-top: 28px;
    margin-bottom: 8px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}
.fo-detail-attachments-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}
.fo-comment-box {
    margin-top: 24px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}
.fo-detail-attachments + .fo-comment-box {
    margin-top: 22px;
}
.fo-comment-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}
.fo-comment-form textarea,
.fo-reply-form textarea {
    width: 100%;
    border: 1px solid #cad7e6;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
    min-height: 68px;
}
.fo-comment-form-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.fo-comment-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fo-comment-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}
.fo-comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.fo-comment-author {
    font-weight: 700;
    color: #1f2937;
}
.fo-comment-date {
    color: #64748b;
    font-size: 12px;
}
.fo-comment-content {
    line-height: 1.65;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
}
.fo-comment-mention {
    color: #1d4ed8;
    font-weight: 700;
}
.fo-comment-bottom {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fo-comment-actions {
    display: flex;
    gap: 6px;
}
.fo-comment-link-btn {
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    color: #374151 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-decoration: none;
}
.fo-comment-link-btn:hover {
    border-color: #9ca3af !important;
    color: #111827 !important;
}
.fo-comment-link-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.fo-comment-link-btn.like {
    font-size: 13px !important;
    font-weight: 700 !important;
    border-color: #fecdd3 !important;
    background: #fff1f2 !important;
}
.fo-comment-link-btn.like.is-liked {
    color: #e11d48 !important;
}
.fo-comment-link-btn.danger {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #b42318 !important;
}
.fo-reply-form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d9e5f0;
}
.fo-comment-empty {
    color: #64748b;
    font-size: 13px;
    padding: 8px 0;
}
.fo-attachment-table-wrap {
    overflow: auto;
}
.fo-attachment-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.fo-attachment-table th,
.fo-attachment-table td {
    border: 1px solid #e2ebf4;
    padding: 12px 10px;
    font-size: 13px;
    vertical-align: middle;
}
.fo-attachment-table th {
    background: #f9fafb;
    color: #374151;
    text-align: center;
}
.fo-attachment-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe4ef;
    display: block;
    cursor: zoom-in;
}
.fo-attachment-name {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    word-break: normal;
}
.fo-attachment-name:hover {
    text-decoration: underline;
}
.fo-attachment-download-btn {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}
.content-media-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feed-content-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
    color: #0f172a;
}
.safe-html {
    line-height: 1.7;
    color: #0f172a;
}
.safe-html p {
    margin: 0 0 8px;
}
.safe-html p:last-child {
    margin-bottom: 0;
}
.safe-html ul,
.safe-html ol {
    margin: 0 0 8px;
    padding-left: 20px;
}
.safe-html li {
    margin: 2px 0;
}
.safe-html a {
    color: #1d4ed8;
    text-decoration: underline;
    word-break: break-all;
}
.safe-html img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #d8e3f2;
    background: #fff;
}
.rich-content img,
.safe-html img {
    cursor: zoom-in;
}
.feed-content-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.safe-html.is-clamped {
    max-height: 20.4em;
    overflow: hidden;
}
.feed-content-image,
.detail-content-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #d8e3f2;
    background: #fff;
}
.content-image-link {
    font-size: 12px;
    color: #1d4ed8;
    word-break: break-all;
    text-decoration: underline;
}
.feed-hint {
    margin: 12px 0 0;
    color: #7a8ea8;
    font-size: 12px;
    font-weight: 600;
}
.feed-card.is-expanded .feed-hint {
    color: #2f5b99;
}
.feed-status,
.feed-empty {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 16px 0 6px;
}
.scroll-sentinel {
    width: 100%;
    height: 2px;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 1000;
}
.modal.open { display: flex; }
.comment-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    z-index: 2100;
}
.comment-sheet-overlay.open { display: flex; }
.comment-sheet-panel {
    width: min(720px, 100%);
    max-height: min(78dvh, 680px);
    background: #ffffff;
    border: 1px solid #dbe5ee;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.26);
    overflow: hidden;
    animation: comment-sheet-up 0.18s ease-out;
    display: flex;
    flex-direction: column;
}
.comment-sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 6px;
}
.comment-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
}
.comment-sheet-head {
    padding: 8px 14px 6px;
    border-bottom: 1px solid #edf2f7;
}
.comment-sheet-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.comment-sheet-body {
    padding: 12px 14px 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.comment-sheet-textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #cad7e6;
    border-radius: 12px;
    padding: 12px;
    resize: vertical;
}
.comment-sheet-foot {
    padding: 10px 14px 14px;
    justify-content: flex-end;
    border-top: 1px solid #edf2f7;
}
@keyframes comment-sheet-up {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.write-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    z-index: 2050;
}
.write-sheet-overlay.open { display: flex; }
.write-sheet-panel {
    width: min(920px, 100%);
    max-height: 80dvh;
    background: #ffffff;
    border: 1px solid #dbe5ee;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.26);
    overflow: hidden;
    animation: comment-sheet-up 0.18s ease-out;
    display: flex;
    flex-direction: column;
}
.write-sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 6px;
}
.write-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
}
.write-sheet-head {
    padding: 8px 14px 6px;
    border-bottom: 1px solid #edf2f7;
}
.write-sheet-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.write-sheet-body {
    padding: 12px 14px 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.write-sheet-foot {
    padding: 10px 14px 14px;
    justify-content: flex-end;
    border-top: 1px solid #edf2f7;
}
.modal-box {
    width: min(1120px, calc(100vw - 28px));
    height: min(860px, calc(100vh - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
}
.modal-box .row {
    flex-wrap: nowrap;
}
.modal-box .row > h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal-box button,
.image-viewer-close {
    flex: 0 0 auto;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}
.image-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.image-viewer-image {
    width: min(100vw - 24px, 1200px);
    max-height: calc(100vh - 64px);
    object-fit: contain;
    border-radius: 10px;
    background: #111827;
}
.image-viewer-overlay.is-desktop .image-viewer-image {
    width: 800px;
    height: 600px;
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 120px);
}
.image-viewer-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1201;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, .94);
    color: #111827;
}
.fo-fab-wrap {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1150;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.fo-fab-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d6e2f0;
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.22);
    min-width: 132px;
}
.fo-fab-group-title {
    margin: 2px 2px 0;
    font-size: 11px;
    font-weight: 800;
    color: #516178;
    letter-spacing: .01em;
}
.fo-fab-item {
    border: 1px solid #bfd0e6;
    background: #f8fbff;
    color: #1f2937;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.fo-fab-item.board {
    border-color: #9fbee8;
    background: #edf5ff;
}
.fo-fab-item.board.active {
    border-color: #2f6fca;
    background: #2f6fca;
    color: #fff;
}
.fo-fab-item:hover {
    background: #eef5ff;
}
.fo-fab-item.danger {
    border-color: #f2c8c8;
    background: #fff7f7;
    color: #b42318;
}
.fo-fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #1d4f96;
    background: #1d4f96;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(29, 79, 150, 0.35);
}
.fo-fab-icon {
    width: 22px;
    height: 22px;
    display: block;
}
.fo-fab-btn:hover {
    background: #184582;
}
.detail-card {
    margin-top: 10px;
}
.detail-content {
    line-height: 1.75;
}
.detail-content-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    color: #0f172a;
}
.form-block {
    margin-top: 10px;
}
.write-actions {
    justify-content: flex-end;
    margin-top: 12px;
}
.filepond--root {
    margin-top: 8px;
    margin-bottom: 4px;
}
.filepond--panel-root {
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}
.filepond--drop-label {
    color: #4b5563;
}
@media (max-width: 768px) {
    .container {
        padding: 62px 12px 28px;
    }
    .title {
        font-size: 23px;
    }
    .hero-card {
        padding: 14px;
    }
    .top-meta {
        width: 100%;
        justify-content: flex-end;
    }
    .top-status-row {
        top: 6px;
        padding: 8px;
        border-radius: 10px;
    }
    .feed-card {
        padding: 12px 13px;
        border-radius: 14px;
        min-height: 104px;
    }
    .feed-card.is-expanded {
        min-height: 420px;
    }
    .feed-body {
        min-height: 360px;
    }
    .fo-detail-attachments,
    .fo-comment-box {
        margin-top: 22px;
    }
    .fo-detail-attachments + .fo-comment-box {
        margin-top: 14px;
    }
    .feed-board-badge {
        height: 20px;
        padding: 0 8px;
        font-size: 10px;
    }
    .feed-id {
        font-size: 11px;
    }
    .feed-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .feed-meta {
        font-size: 12px;
        gap: 4px;
    }
    .feed-preview {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 12px;
    }
    .feed-content-text.is-clamped {
        -webkit-line-clamp: 10;
    }
    .search-row input {
        flex-basis: 100%;
    }
    .search-input-wrap {
        flex-basis: 100%;
    }
    .modal {
        padding: 8px;
        align-items: flex-start;
        overflow: auto;
    }
    .comment-sheet-overlay {
        padding: 0;
    }
    .comment-sheet-panel {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 6px - env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }
    .comment-sheet-head {
        padding: 8px 12px 6px;
    }
    .comment-sheet-title {
        font-size: 17px;
    }
    .comment-sheet-body {
        padding: 10px 12px 8px;
    }
    .comment-sheet-textarea {
        min-height: 132px;
    }
    .comment-sheet-foot {
        padding: 8px 12px 12px;
    }
    .write-sheet-overlay {
        padding: 0;
    }
    .write-sheet-panel {
        width: 100%;
        max-width: 100%;
        max-height: calc(80dvh - env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }
    .write-sheet-head {
        padding: 8px 12px 6px;
    }
    .write-sheet-title {
        font-size: 17px;
    }
    .write-sheet-body {
        padding: 10px 12px 8px;
    }
    .write-sheet-panel input,
    .write-sheet-panel textarea,
    .write-sheet-panel .sun-editor-editable {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
    .write-sheet-foot {
        padding: 8px 12px 12px;
    }
    .modal-box {
        width: calc(100vw - 16px);
        height: auto;
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .modal-box > .row:first-child {
        flex-wrap: nowrap;
        align-items: center;
    }
    .modal-box > .row:first-child h2 {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .modal-box button {
        white-space: nowrap;
    }
    .modal-box .write-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    .fo-detail-head-actions {
        width: 100%;
        margin-left: 0;
        gap: 6px;
    }
    .fo-detail-head-actions button {
        font-size: 11px;
        padding: 5px 7px;
        line-height: 1.2;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb;
    }
    .fo-detail-head-actions .fo-detail-action-btn {
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        color: #374151 !important;
        border-radius: 8px !important;
        min-width: 44px;
    }
    .fo-detail-head-actions .fo-detail-action-btn.danger {
        background: #ffffff !important;
        border-color: #fecaca !important;
        color: #b42318 !important;
    }
    .fo-detail-meta-box {
        padding: 7px 9px;
        border-radius: 8px;
    }
    .image-viewer-overlay {
        padding: 8px;
        align-items: center;
    }
    .image-viewer-image {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 64px);
        height: auto;
    }
    .image-viewer-close {
        top: max(8px, env(safe-area-inset-top));
        right: 10px;
        padding: 8px 10px;
    }
    .fo-fab-wrap {
        left: 10px;
        bottom: 10px;
    }
    .fo-fab-panel {
        min-width: 118px;
        padding: 8px;
    }
    .fo-fab-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}




