@charset "UTF-8";

/* ============================================
   CONTENT-SPECIFIC STYLES
   콘텐츠 영역 전용 스타일
   ============================================ */

/* ============================================
   1. TOP CONTROLS (날짜 탭, 컨트롤)
   ============================================ */
.top_controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-15);
    background: rgba(24, 30, 38, 0.5);
    border-radius: var(--radius-12);
    padding: var(--space-24);
    border: 1px solid var(--border-secondary);
    margin-bottom: var(--space-30);
}

.controls_flex {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-16);
}

.controls_row {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

/* Date Tabs */
.date_tab {
    display: inline-flex;
    list-style: none;
    gap: 0;
    border-radius: var(--radius-8);
    overflow: hidden;
    border: 1px solid var(--border-secondary);
}

.date_tab li a {
    display: block;
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-secondary);
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--dur-med) var(--ease-standard);
    font-weight: 500;
}

.date_tab li:last-child a {
    border-right: none;
}

.date_tab li.on a {
    background: var(--brand);
    color: var(--bg);
    font-weight: 600;
}

.date_tab li:not(.on) a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Tab Group */
.tab_group {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-8);
    padding: var(--space-4);
    background: rgba(39, 45, 54, 0.6);
}

.tab_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius-6);
    padding: 0 12px;
    height: 32px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--dur-med) var(--ease-standard);
}

.tab_btn.active {
    background: var(--bg);
    color: var(--text-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab_btn:not(.active):hover {
    color: var(--text);
}

/* Date Select */
.date_select {
    display: flex;
    gap: var(--space-10);
    align-items: center;
    flex-wrap: wrap;
}

.select_box {
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-8);
    border: 1px solid var(--border-secondary);
    padding: 0 12px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text);
    transition: all var(--dur-med) var(--ease-standard);
    min-width: 90px;
    position: relative;
}

.select_box:hover {
    border-color: var(--border-hover);
}

.select_box select {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
    width: 100%;
    padding-right: var(--space-20);
}

.select_box .st_select {
    appearance: none;
    background-image: none;
    padding: 0;
    height: auto;
    min-width: auto;
    border: none;
}

.select_box::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237d8590' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* ============================================
   2. SEARCH AREA
   ============================================ */
.search_area {
    background: var(--bg-card);
    border-radius: var(--radius-8);
    padding: var(--space-20);
    border: 1px solid var(--border);
}

.search_grid {
    display: grid;
    grid-template-columns: 150px 1fr 120px;
    gap: var(--space-15);
    align-items: end;
}

.search_field {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.sort_controls {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    margin-bottom: var(--space-15);
    justify-content: flex-end;
}

.sort_label {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   3. WDL CARDS (승무패)
   ============================================ */
.wdl-mini.wdl-slim {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.wdl-mini.wdl-slim .wdl-item {
    appearance: none;
    width: 100%;
    border: 1px solid var(--border-secondary);
    background: var(--bg-card);
    border-radius: var(--radius-10);
    padding: 8px 6px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    transition: background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

.wdl-mini.wdl-slim .wdl-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.wdl-mini.wdl-slim .wdl-item:active {
    transform: translateY(0);
}

.wdl-mini.wdl-slim .wdl-item .ico {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-999);
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    position: relative;
}

.wdl-mini.wdl-slim .wdl-item .ico::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-999);
    box-shadow: inset 0 0 0 1.5px var(--border-secondary);
    opacity: 0.9;
}

.wdl-mini.wdl-slim .wdl-item .ico .i {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wdl-mini.wdl-slim .wdl-item .num {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
}

.wdl-mini .wdl-item.win .num {
    color: var(--danger);
}

.wdl-mini .wdl-item.lose .num {
    color: var(--info);
}

.wdl-mini .wdl-item.draw .num {
    color: var(--text-muted);
}

.wdl-mini .wdl-item.win .ico::after {
    box-shadow: inset 0 0 0 1.5px var(--danger);
}

.wdl-mini .wdl-item.lose .ico::after {
    box-shadow: inset 0 0 0 1.5px var(--info);
}

.wdl-mini .wdl-item.draw .ico::after {
    box-shadow: inset 0 0 0 1.5px var(--border-secondary);
}

.wdl-mini .wdl-item.win .i.trophy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5757' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 13v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 5h10'/%3E%3Cpath d='M7 6.5c0 4.5 3 6.5 5 6.5s5-2 5-6.5'/%3E%3Cpath d='M5 6H3c0 3 2.4 4.5 4.5 4.5'/%3E%3Cpath d='M19 6h2c0 3-2.4 4.5-4.5 4.5'/%3E%3C/svg%3E");
}

.wdl-mini .wdl-item.lose .i.x {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a9eff' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.wdl-mini .wdl-item.draw .i.eq {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237d8590' stroke-width='2'%3E%3Cline x1='6' y1='10' x2='18' y2='10'/%3E%3Cline x1='6' y1='14' x2='18' y2='14'/%3E%3C/svg%3E");
}

/* ============================================
   4. TABLES
   ============================================ */
.tbl {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-8);
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.tbl table {
    width: 100%;
    border-collapse: collapse;
}

.tbl thead th {
    background: var(--bg-input);
    padding: 10px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.tbl tbody td {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
}

.tbl tbody tr:last-child td {
    border-bottom: none;
}

.tbl tbody tr:hover {
    background: var(--bg-input);
}

.tbl.tbl_align_set .l {
    text-align: left;
}

.tbl.tbl_align_set .c {
    text-align: center;
}

.tbl.tbl_align_set .r {
    text-align: right;
}

/* ============================================
   5. PAGINATION
   ============================================ */
.pagination_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    margin: var(--space-30) 0;
}

.page_nav_btn,
.page_num_btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-6);
    background: var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-med) var(--ease-standard);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page_nav_btn:hover:not(:disabled),
.page_num_btn:hover:not(.active) {
    background: var(--border-secondary);
    border-color: var(--border-hover);
}


.page_num_btn.active {
    background: var(--brand);
    color: var(--bg);
    border-color: var(--brand);
    font-weight: 600;
}

.page_nav_btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   6. MODAL/LAYER POPUP
   ============================================ */
.layer_popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.layer_popup.show {
    display: flex;
}

.layer_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.layer_content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    max-width: 480px;
    box-shadow: var(--shadow-3);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 10vh);
    width: min(90vw, 700px);
}

.layer_header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
}

.layer_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 0;
}

.layer_close {
    color: var(--text-muted);
}

.layer_close:hover {
    color: var(--text);
}


.layer_body {
    padding: 30px 28px;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.layer_end {
    padding: 5px 28px 5px;
    flex: 1 1 auto;
    background: #090d12;
    border-radius: 0 0 10px 10px;
}
.layer_body .txt {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

.layer_footer {
    padding: var(--space-20) 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--space-10);
    justify-content: flex-end;
    flex: 0 0 auto;
}

/* ============================================
   7. PROMPT SETTINGS
   ============================================ */
.prompt_settings {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-8) var(--radius-8) 0 0;
    padding: var(--space-20);
    border-bottom: none;
}

.setting_item {
    margin-top: var(--space-20);
}

.radio_list,
.checkbox_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 20px;
    background: var(--bg-input);
    padding: var(--space-15);
    margin-top: 5px;
}
.checkbox_list.li_3 {
    grid-template-columns: repeat(3, 1fr);}
.checkbox_list.li_5 {
    grid-template-columns: repeat(5, 1fr);}
.radio_list .st_radio,
.checkbox_list .st_checkbox {
    margin: 0;
}

.checkbox_item_desc {
    color: var(--text-muted);
    font-weight: 400;
}

/* Textarea */
.textarea_wrapper {
    position: relative;
    width: 100%;
}
.textarea_wrapper + .textarea_wrapper {margin-bottom:10px;}
.textarea_wrapper + .textarea_wrapper .st_text {
    border-radius: 0 0 var(--radius-8) var(--radius-8);
}
.st_text {
    width: 100%;
    min-height: 250px;
    background: var(--bg-input);
    border: 1px solid var(--border-secondary);
    border-radius: 0;
    padding: 15px 50px 15px 15px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: all var(--dur-med) var(--ease-standard);
}

.st_text:hover {
    border-color: var(--border-hover);
}


.st_text::placeholder {
    color: var(--text-placeholder);
}

/* Textarea Height Controls */
.height_controls {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    z-index: 10;
}

.height_btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-6);
    background: var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) var(--ease-standard);
}

.height_btn:hover {
    background: var(--border-secondary);
    border-color: var(--border-hover);
    color: var(--text);
    transform: translateY(-1px);
}

.height_btn:active {
    transform: translateY(0);
}

.height_btn .arrow_icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.height_btn.up .arrow_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8590' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
}

.height_btn.down .arrow_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8590' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.height_btn:hover .arrow_icon {
    filter: brightness(1.5);
}

/* System Auto Input Prompt (Collapsible) */
.sys_textarea {
    border: 1px solid var(--border-secondary);
    background: var(--bg-card);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.sys_textarea .sys_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    border-bottom: 1px solid var(--border);
}

.sys_textarea .tit {
    margin: 0;
    font-weight: 700;
    color: var(--text-strong);
}

.sys_textarea .toggle_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-999);
    border: 1px solid var(--border-secondary);
    background: var(--bg-elev);
    color: var(--text);
    font-size: 12px;
    transition: background var(--dur-med) var(--ease-standard);
}

.sys_textarea .toggle_btn:hover {
    background: var(--bg-hover);
}

.sys_textarea .toggle_btn i {
    width: 16px;
    height: 16px;
    display: inline-block;
    opacity: 0.85;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9d1d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.sys_textarea[aria-expanded='false'] .toggle_btn i {
    transform: rotate(-90deg);
    transition: transform var(--dur-fast) var(--ease-standard);
}

.sys_textarea .logs {
    max-height: 320px;
    overflow: auto;
    padding: var(--space-16);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
}

.sys_textarea .logs pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.sys_textarea[aria-expanded='false'] .logs {
    display: none;
}

/* ============================================
   8. FAVORITE/LIKE BUTTONS
   ============================================ */
.i_fav {
    position: relative;
    min-width: 0;
}

p.tit.box.box_bdr2.tc.fs_b { display: block;max-width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.i_fav .fav_love {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: 6px 0px;
    border: 0;
    border-radius: var(--radius-999);
    background: transparent;
    color: var(--text);
    transition: transform var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.i_fav .fav_love .heart {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transition: transform var(--dur-fast) var(--ease-standard),
    filter var(--dur-fast) var(--ease-standard);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237d8590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 22l7.8-8.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

.i_fav .fav_love.liked {
    color: var(--text);
}

.i_fav .fav_love.liked .heart {
    transform: scale(1.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23c9d1d9' stroke='%23c9d1d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 22l7.8-8.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

.i_fav .fav_love .count {
    font-weight: 700;
    line-height: 1;
    min-width: 1ch;
    text-align: right;
}


/* ============================================
   9. ADD CARD
   ============================================ */
.box.add_card {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.add_plus {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-8);
    border: 1px dashed var(--border-secondary);
    background: var(--border);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--dur-med) var(--ease-standard),
    border-color var(--dur-med) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

.add_plus:hover {
    background: var(--border-secondary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.add_plus:active {
    transform: translateY(0);
}

/* ============================================
   10. COMMENT TRUNCATE
   ============================================ */
.L_comment {
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

/* ============================================
   11. LIST STYLES
   ============================================ */
.list_txt li {
    display: inline-block;
    padding: 6px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    color: inherit;
    list-style: none;
}

/* ============================================
   12. GRID VARIATIONS
   ============================================ */
.w_group.wg_2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-15);
}

.w_group.wg_2.ty42 {
    display: grid;
    grid-template-columns: 4fr 2fr;
    gap: var(--space-15);
}

.w_group.wg_3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-15);
}

.w_group.wg_4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-15);
}

.w_group.wg_5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-15);
}

.w_group.wg_5.addcol {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 64px;
    gap: var(--space-15);
}

.w_group.wg_6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-15);
}

.w_group.wg_5.ty21 {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

/* ============================================
   13. FORM GROUPS
   ============================================ */
.form_group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-20);
    margin-top: var(--space-15);
}

.form_group > * {
    flex-shrink: 0;
}

.form_group--vertical,
.form_group.vertical {
    flex-direction: column;
    gap: var(--space-12);
}

.form_group--compact,
.form_group.compact {
    gap: var(--space-10);
}

.actions_area {
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   14. TEXT LINK
   ============================================ */
.t_btn {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.t_btn:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* ============================================
   15. RESPONSIVE - CONTENT SPECIFIC
   ============================================ */
@media (max-width: 1400px) {
    .w_group.wg_5.ty21 {
        grid-template-columns: repeat(3, 1fr);
    }

    .w_group.wg_5.ty21 > *:nth-child(1) {
        grid-column: 1 / 3;
    }

    .w_group.wg_5.ty21 > *:nth-child(2) {
        grid-column: 3 / 4;
    }

    .w_group.wg_6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .w_group.wg_4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .w_group.wg_5,
    .w_group.wg_5.addcol {
        grid-template-columns: repeat(2, 1fr);
    }

    .w_group.wg_5.ty21 {
        grid-template-columns: repeat(2, 1fr);
    }

    .w_group.wg_5.ty21 > *:nth-child(1) {
        grid-column: 1 / -1;
    }

    .w_group.wg_5.ty21 > *:nth-child(n+2) {
        grid-column: span 1;
    }

    .w_group.wg_6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .search_grid {
        grid-template-columns: 1fr;
        gap: var(--space-15);
    }

    .radio_list,
    .checkbox_list.li_5,
    .checkbox_list {
        grid-template-columns: repeat(2, 1fr);
    }
    .checkbox_list.v3 label.st_checkbox:nth-child(2n) + label:before {display:none;}
    .top_controls .controls_row[style*="space-between"] {
        flex-direction: column;
        align-items: stretch;
    }

    .top_controls .controls_row[style*="flex: 0 0 auto"] {
        justify-content: center;
    }
}

@media (max-width: 805px) {
    .top_controls {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-16);
    }

    .top_controls .btn.bc_g {
        margin-left: 0;
        width: 100%;
    }

    .tab_group {
        width: 100%;
        justify-content: stretch;
    }

    .tab_btn {
        flex: 1;
    }

    .date_tab {
        width: 100%;
        justify-content: center;
    }

    .date_select {
        width: 100%;
        justify-content: flex-start;
    }

    .select_box {
        width: 100%;
    }

    .w_group.wg_2,
    .w_group.wg_3,
    .w_group.wg_4,
    .w_group.wg_5,
    .w_group.wg_5.addcol {
        grid-template-columns: 1fr;
    }

    .w_group.wg_2.ty42 {
        grid-template-columns: 1fr;
    }

    .pagination_wrapper {
        flex-wrap: wrap;
    }

    .page_nav_btn,
    .page_num_btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .radio_list,
    .checkbox_list {
        grid-template-columns: 1fr;
    }
    .checkbox_list.v3 label.st_checkbox + label:before {display:none;}
}

@media (max-width: 560px) {
    .clock_badge,
    .clock-item {
        font-size: 10px;
        padding: 5px 8px;
    }

    .clock-item .val {
        font-size: 12px;
    }
}

@media (max-height: 600px) {
    .layer_header {
        padding: var(--space-16) var(--space-20);
    }

    .layer_body {
        padding: var(--space-16) var(--space-20);
    }

    .layer_footer {
        padding: 14px 20px;
    }
}

@media (max-width: 420px) {
    .layer_header,
    .layer_body {
        padding: var(--space-16);
    }

    .layer_footer {
        padding: 14px 16px;
    }
}