/* Use one inset for the title, editor, picker and footer. */
#create_post_box {
    --compose-gutter: clamp(16px, 4vw, 28px);
    --compose-tint: color-mix(in srgb, var(--luma-blue) 10%, var(--luma-paper));
    --compose-border: color-mix(in srgb, var(--luma-blue) 28%, var(--luma-paper));
    --tool-size: 36px;
}
#create_post_box .modal_inner {
    width: 548px;
    max-width: 100%;
    padding: var(--compose-gutter);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--luma-ink);
    background: var(--luma-paper);
}
#create_post_box .t_form, #create_post_box .topic_tool { padding: 0; }
#create_post_box .cat_header { gap: 8px; margin-bottom: 14px; }
#create_post_box .luma-compose-title {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 650;
}
.luma-compose-title span:last-child,
#create_post_box:has(.push_item[action="update"]) .luma-compose-title span:first-child { display: none; }
#create_post_box:has(.push_item[action="update"]) .luma-compose-title span:last-child { display: inline; }
#create_post_box .de_cat {
    max-width: 55%;
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: 100px;
    background: var(--compose-tint);
}
#create_post_box .t_cat_toogle {
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    min-width: 0;
    color: var(--luma-blue);
    font: 600 12px/18px system-ui, sans-serif;
}
#create_post_box .t_cat_toogle span, #create_post_box .loca_text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#create_post_box #topic_content {
    box-sizing: border-box;
    width: 100%;
    height: clamp(76px, 13vh, 112px);
    padding: 12px 14px;
    border: 1px solid var(--luma-line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--luma-bg) 65%, var(--luma-paper));
    color: var(--luma-ink);
    caret-color: var(--luma-blue);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
}
#create_post_box #topic_content::placeholder { color: var(--luma-muted); }
#create_post_box #topic_content:focus { box-shadow: 0 0 0 2px var(--compose-border); }
#create_post_box .tool_box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--luma-line);
}
#create_post_box .tool_box .left,
#create_post_box .tool_box .loca,
#create_post_box .moment_sure,
#create_post_box .admin_tool { display: flex; align-items: center; gap: 4px; }
#create_post_box .tool_box .right { margin-left: auto; min-width: 0; max-width: 100%; }
#create_post_box .tool_box .left > div { margin: 0; display: flex; }
#create_post_box .tool_box .left > div > a,
#create_post_box .luma-live-tool,
#create_post_box .laqu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--tool-size);
    min-width: var(--tool-size);
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--luma-muted);
    font: inherit;
    line-height: 1;
    cursor: pointer;
}
#create_post_box .tool_box i:not(.luma-live-symbol) {
    padding: 0;
    font-size: 18px;
    line-height: 1;
    background: transparent;
    color: inherit;
}
#create_post_box .luma-live-tool { border-radius: 99px; padding-inline: 8px; gap: 5px; font-size: 13px; font-weight: 600; }
#create_post_box .moment_btn_line {
    flex: none;
    height: 16px;
    width: 1px;
    margin: 0 2px;
    padding: 0;
    background: var(--luma-line);
}
#create_post_box .tool_box .loca_text { max-width: 7em; color: var(--luma-muted); font-size: 12px; }
#create_post_box .loca_text:empty { display: none; }
#create_post_box .tool_box a[visible="PRIVATE"],
#create_post_box:has(.push_item[type="image"]) .moment_image_type a,
#create_post_box:has(.push_item[type="live"]) .luma-live-tool,
#create_post_box:has(.push_item[type="video"]) .moment_video_type a,
#create_post_box:has(.push_item[type="audio"]) .moment_audio_type a,
#create_post_box:has(.push_item[type="card"]) .moment_card_type a {
    background: var(--compose-tint);
    color: var(--luma-blue);
}
.luma-live-symbol {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    position: relative;
    flex: none;
    border: 1.6px dotted currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}
.luma-live-symbol::before, .luma-live-symbol::after {
    content: "";
    position: absolute;
    width: 62%;
    height: 62%;
    border: 1.4px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}
.luma-live-symbol::after { width: 22%; height: 22%; background: currentColor; border: 0; }
#create_post_box .moment_type_main { padding-top: 14px; }
#create_post_box .luma-live-picker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 17px 16px;
    border: 1px dashed var(--compose-border);
    border-radius: 13px;
    color: var(--luma-ink);
    background: color-mix(in srgb, var(--compose-tint) 46%, var(--luma-paper));
    cursor: pointer;
}
.luma-live-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.luma-upload-symbol, .luma-picker-add {
    display: inline-grid;
    place-items: center;
    color: var(--luma-blue);
    line-height: 1;
}
.luma-upload-symbol {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--compose-tint);
    font-size: 23px;
}
.luma-picker-add { width: 26px; height: 26px; border: 1px solid var(--compose-border); border-radius: 50%; font-size: 16px; }
.luma-picker-copy { display: grid; gap: 3px; }
.luma-picker-copy strong { color: var(--luma-ink); font-size: 15px; line-height: 1.4; }
.luma-picker-copy small, .luma-picker-tip { color: var(--luma-muted); font-size: 12px; line-height: 1.55; }
#create_post_box .luma-picker-tip { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 0; font-family: inherit; }
#create_post_box .luma-picker-tip i { color: var(--luma-blue); }
#create_post_box .luma-live-picker:is(:focus-within,.is-dragging) { outline: 2px solid var(--luma-blue); outline-offset: 2px; }
#create_post_box .luma-live-picker.is-dragging { background: var(--compose-tint); }
#create_post_box .luma-live-pairs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    max-height: min(36vh, 310px);
    overflow: auto;
    list-style: none;
}
.luma-live-pairs li {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--luma-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--luma-paper);
}
.luma-live-pairs li:only-child { grid-column: 1 / -1; }
.luma-pair-frame {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 8 / 5;
    background: var(--luma-bg);
    color: var(--luma-muted);
    font-size: 22px;
}
.luma-live-pairs li:only-child .luma-pair-frame { max-height: 150px; aspect-ratio: auto; height: 20vh; }
.luma-pair-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.luma-pair-frame img[hidden] { display: none; }
.luma-pair-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 5px 3px 10px;
    font-size: 12px;
}
.luma-pair-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.luma-pair-caption button {
    position: relative;
    padding: 0;
    line-height: 1;
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    color: var(--luma-muted);
    background: transparent;
    font-size: 17px;
    cursor: pointer;
}
.luma-pair-caption button i {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}
#create_post_box .luma-live-status { margin: 8px 0 0; font-size: 13px; overflow-wrap: anywhere; font-family: inherit; }
#create_post_box .luma-live-status:empty, #create_post_box .luma-live-pairs:empty { display: none; }
#create_post_box .form_footer {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--luma-line);
}
#create_post_box .admin_tool { gap: 12px; }
#create_post_box .admin_tool a { margin: 0; min-height: 36px; font-size: 12px; color: var(--luma-muted); }
#create_post_box .moment_sure { gap: 8px; margin-left: auto; }
#create_post_box .moment_sure button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    margin: 0;
    padding: 0 16px;
    border-radius: 10px;
    font: 600 14px/1 system-ui, sans-serif;
}
#create_post_box .push_close { color: var(--luma-muted); background: var(--luma-bg); }
#create_post_box .push_item { color: #fff; background: #316d94; }
#create_post_box .push_item:disabled { opacity: .6; }
#create_post_box .push_item i { margin: 0; }
#create_post_box :is(a, button):focus-visible, .luma-live-photo:focus-visible { outline: 2px solid var(--luma-blue); outline-offset: 2px; }
@media (hover: hover) {
    #create_post_box .tool_box :is(a, button):hover, #create_post_box .luma-live-picker:hover { background: var(--compose-tint); }
    #create_post_box .admin_tool a:hover, .luma-live-pairs button:hover { color: var(--luma-blue); }
}
@media (max-width: 560px) {
    #create_post_box { padding: 12px; --tool-size: 32px; }
    #create_post_box .tool_box .left { gap: 2px; }
}
@media (max-width: 400px) {
    #create_post_box { --tool-size: 30px; }
    #create_post_box .tool_box { column-gap: 3px; }
    #create_post_box .tool_box .left { gap: 1px; }
    #create_post_box .luma-live-tool { padding-inline: 5px; }
}
@media (max-width: 359px) {
    #create_post_box { padding: 8px; --tool-size: 28px; }
    #create_post_box .tool_box .left { gap: 0; }
    #create_post_box .moment_sure button { padding-inline: 12px; }
    #create_post_box .admin_tool { gap: 6px; }
    #create_post_box .luma-live-picker { padding: 12px; gap: 8px; }
}
.luma .img_list .luma-live-photo {
    display: inline-block;
    width: min(100%, 260px);
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #18232b;
    cursor: pointer;
    touch-action: pan-y pinch-zoom;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.luma .img_list .luma-live-photo > img,
.luma .img_list .luma-live-photo > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.luma .img_list .list_inner > .luma-live-photo { border-radius: 12px; isolation: isolate; }
.luma .img_list .list_inner:has(> .luma-live-photo:only-child) { display: grid; grid-template-columns: minmax(0, 1fr); }
.luma .img_list .list_inner > button.luma-live-photo:only-child {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
}
.luma .img_list .list_inner > button.luma-live-photo:only-child > img {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    max-height: 560px;
}
.luma .img_list .list_inner > button.luma-live-photo:not(:only-child) { aspect-ratio: 4 / 3; }
.luma .luma-live-photo > video { position: absolute; inset: 0; opacity: 0; background: #18232b; }
.luma .img_list .list_inner > .luma-live-photo:only-child > :is(img, video) { object-fit: contain; }
.luma .luma-live-photo.is-playing > video { opacity: 1; }
.luma .img_list .luma-live-badge, #create_post_box .luma-live-badge {
    position: absolute;
    inset: 10px auto auto 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    color: #fff;
    background: rgb(33 37 42 / 60%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font: 500 12px/1 system-ui, sans-serif;
    white-space: nowrap;
    pointer-events: none;
}
.luma-live-badge .luma-live-symbol { width: 13px; height: 13px; }
.luma-live-label { color: inherit; font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
    .luma-live-photo.is-playing > video { transition: opacity 140ms ease-out; }
    .luma-live-photo.is-playing .luma-live-symbol { animation: luma-live-ring 3s linear infinite; }
    @keyframes luma-live-ring { to { transform: rotate(1turn); } }
}
