/* DungSai Submit sheet — mobile-first, one-column layout */
.ds-submit-sheet-form{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:18px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
}

.ds-submit-sheet-form *{
    box-sizing:border-box;
}

.ds-submit-sheet-form label,
.ds-submit-story-field,
.ds-submit-image-field{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    gap:8px !important;
    color:#111;
}

.ds-submit-sheet-form label > span,
.ds-submit-story-field > span,
.ds-submit-image-field > span{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    font-size:16px;
    line-height:1.35;
    font-weight:800;
}

.ds-submit-sheet-form textarea{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:220px !important;
    margin:0 !important;
    padding:15px 16px !important;
    resize:vertical;
    border:1px solid #cfcfcf !important;
    border-radius:14px !important;
    background:#fff !important;
    color:#111 !important;
    font:inherit !important;
    font-size:17px !important;
    line-height:1.5 !important;
    outline:none;
    appearance:none;
    -webkit-appearance:none;
}

.ds-submit-sheet-form textarea:focus{
    border-color:#111 !important;
    box-shadow:0 0 0 2px rgba(0,0,0,.06);
}

.ds-submit-image-field{
    padding:14px !important;
    border:1px solid #e1e1e1 !important;
    border-radius:14px !important;
    background:#fafafa !important;
}

.ds-submit-image-field input[type="file"]{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:10px 0 !important;
    border:0 !important;
    background:transparent !important;
    color:#222 !important;
    font:inherit !important;
    font-size:15px !important;
}

.ds-submit-image-field small{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    color:#666 !important;
    font-size:13px !important;
    line-height:1.45 !important;
    font-weight:500 !important;
}

.ds-submit-sheet-form > button[type="submit"]{
    display:block !important;
    width:100% !important;
    min-height:52px !important;
    margin:0 !important;
    padding:14px 18px !important;
    border:0 !important;
    border-radius:12px !important;
    background:#111 !important;
    color:#fff !important;
    font:inherit !important;
    font-size:16px !important;
    font-weight:900 !important;
    text-align:center !important;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
}

.ds-submit-sheet-form > button[type="submit"]:disabled{
    opacity:.55;
    cursor:default;
}

.ds-submit-sheet-message{
    display:block;
    min-height:20px;
    width:100%;
    margin:0;
    color:#555;
    font-size:13px;
    line-height:1.45;
}

/* Keep the form comfortably inside the shared bottom sheet. */
.ds-common-sheet-body .ds-submit-sheet-form,
.ds-sheet-body .ds-submit-sheet-form{
    padding:4px 0 12px !important;
}

@media (max-width:480px){
    .ds-submit-sheet-form{
        gap:16px !important;
    }
    .ds-submit-sheet-form textarea{
        min-height:210px !important;
    }
}


/* Gallery-only image picker */
.ds-submit-gallery-field{display:block;width:100%;margin:0;padding:0;border:0;min-width:0;}
.ds-submit-gallery-field legend{display:block;width:100%;margin:0 0 6px;padding:0;font-size:16px;font-weight:900;color:#111;}
.ds-submit-gallery-field>p{margin:0 0 10px;color:#666;font-size:13px;line-height:1.4;}
.ds-submit-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;max-height:360px;overflow:auto;padding:1px;}
.ds-gallery-pick-item{position:relative;display:block!important;width:100%!important;margin:0!important;cursor:pointer;aspect-ratio:1/1;border-radius:9px;overflow:hidden;background:#eee;}
.ds-gallery-pick-item input{position:absolute;opacity:0;pointer-events:none;}
.ds-gallery-pick-item img{display:block;width:100%;height:100%;object-fit:cover;}
.ds-gallery-pick-check{position:absolute;right:6px;top:6px;display:none;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#111;color:#fff;font-size:14px;font-weight:900;box-shadow:0 1px 5px rgba(0,0,0,.2);}
.ds-gallery-pick-item input:checked + img{outline:4px solid #111;outline-offset:-4px;}
.ds-gallery-pick-item input:checked ~ .ds-gallery-pick-check{display:flex;}
.ds-gallery-more{display:block;width:100%;min-height:42px;margin:10px 0 0;border:1px solid #111!important;border-radius:999px!important;background:#fff!important;color:#111!important;font-weight:900!important;}



/* FNailLife topic category bottom sheet */
.ds-submit-category-field{display:block;width:100%;min-width:0;}
.ds-submit-category-field>.ds-submit-field-label{display:block;margin:0 0 8px;font-size:16px;font-weight:900;color:#111;}
.fnl-category-picker{position:relative;width:100%;}
.fnl-category-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%!important;min-height:54px!important;margin:0!important;padding:12px 16px!important;border:1px solid #d0d0d0!important;border-radius:14px!important;background:#fff!important;color:#777!important;font:inherit!important;font-size:16px!important;font-weight:700!important;text-align:left!important;box-shadow:none!important;}
.fnl-category-trigger.has-value{color:#111!important;}
.fnl-category-trigger:focus-visible{outline:2px solid #111;outline-offset:2px;}
.fnl-category-chevron{flex:0 0 10px;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);}
.fnl-category-overlay{position:fixed;inset:0;z-index:99980;background:rgba(0,0,0,.42);backdrop-filter:blur(1px);}
.fnl-category-sheet{position:fixed;left:0;right:0;bottom:0;z-index:99990;display:flex;flex-direction:column;width:min(100%,720px);height:94dvh;max-height:94dvh;margin:0 auto;background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.2);overflow:hidden;animation:fnlCategoryUp .2s ease-out;}
.fnl-category-sheet[hidden],.fnl-category-overlay[hidden]{display:none!important;}
@keyframes fnlCategoryUp{from{transform:translateY(18px);opacity:.7}to{transform:translateY(0);opacity:1}}
.fnl-category-sheet-handle{width:44px;height:5px;margin:10px auto 4px;border-radius:999px;background:#c8c8c8;}
.fnl-category-sheet-head{position:sticky;top:0;z-index:2;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px 14px;border-bottom:1px solid #ededed;background:#fff;}
.fnl-category-sheet-head h3{margin:0;font-size:22px;line-height:1.2;font-weight:900;color:#111;}
.fnl-category-sheet-close{display:grid!important;place-items:center;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f3f3f3!important;color:#111!important;font-size:30px!important;font-weight:400!important;line-height:1!important;}
.fnl-category-options{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;max-height:none;padding:4px 0 max(18px,env(safe-area-inset-bottom));scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;}
.fnl-category-option{display:flex!important;align-items:center;justify-content:space-between;gap:14px;width:100%!important;min-height:58px!important;margin:0!important;padding:13px 22px!important;border:0!important;border-bottom:1px solid #efefef!important;border-radius:0!important;background:#fff!important;color:#111!important;font:inherit!important;font-size:18px!important;font-weight:700!important;text-align:left!important;}
.fnl-category-option:last-child{border-bottom:0!important;}
.fnl-category-option:active{background:#f5f5f5!important;}
.fnl-category-check{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:2px solid #c8c8c8;border-radius:50%;color:transparent;font-size:15px;font-weight:900;}
.fnl-category-option.is-selected .fnl-category-check{border-color:#111;background:#111;color:#fff;}
body.fnl-category-open{overflow:hidden!important;touch-action:none;}
@media (min-width:721px){.fnl-category-sheet{bottom:20px;height:min(88dvh,780px);max-height:min(88dvh,780px);border-radius:26px;}.fnl-category-overlay{padding:20px;}}
