/* ============================================================
   Freestyle Grouping Layout
============================================================ */
#chat-module-wrapper.layout-grouping-column {
    width: 100%;
    height: 100%;
    background: var(--chatroom-bg);
}

#chat-module-wrapper.layout-grouping-column:not(.layout-lock-full) {
    background: var(--chatroom-bg);
}

/* ============================================================
   Freestyle Grouping Wrapper
============================================================ */

.freestyle-grouping-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    background: var(--chatroom-bg);
}

.freestyle-navigation {
    position: absolute;
    top: 26px;
    right: 45px;
    z-index: 10;
}

/* ============================================================
   Back To Questionnaires
============================================================ */

.back-to-survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(184, 158, 20, .55);
    border-radius: 8px;
    background: var(--chatroom-input-area-bg);
    color: var(--chatroom-input-btn-color);
    font-size: .85em;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.back-to-survey-btn i {
    font-size: .9em;
}

.back-to-survey-btn:hover:not(:disabled) {
    background: rgba(184, 158, 20, .12);
    border-color: rgba(184, 158, 20, .8);
    box-shadow: 0 0 8px rgba(184, 158, 20, .15);
}

.back-to-survey-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.back-to-survey-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/*--------------------------------------------------------------
# Freestyle - Team Join Panel
--------------------------------------------------------------*/

.team-join-page {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 80px 45px 30px;
    background: var(--chatroom-bg);
    color: #e0e6f0;
    overflow-y: auto;
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.team-join-header {
    margin-bottom: 25px;
}

.team-join-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 8px 0;

    font-size: 1.5em;
    font-weight: 600;

    color: #e0e6f0;
}

.team-join-header h1 i {
    color: var(--chatroom-input-btn-color);
}

.team-join-header p {
    margin: 0;

    color: #9aa8b8;

    font-size: .9em;
}


/*--------------------------------------------------------------
# Search / Filter
--------------------------------------------------------------*/

.team-filter-bar {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}


/*--------------------------------------------------------------
# Search
--------------------------------------------------------------*/

.team-search {
    flex: 1;

    display: flex;
    align-items: center;

    padding: 0 15px;

    border: var(--block-separator-line);
    border-radius: 8px;

    background: var(--chatroom-input-area-bg);

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.team-search:hover {
    background: rgba(255, 255, 255, .025);
}

.team-search:focus-within {
    border-color: rgba(184, 158, 20, .5);

    box-shadow:
        0 0 8px
        rgba(184, 158, 20, .15);
}

.team-search i {
    margin-right: 8px;

    color: var(--chatroom-input-placeholder-color);
}

.team-search input {
    width: 100%;

    padding: 12px 5px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--chatroom-input-text-color);

    font-size: .9em;
}

.team-search input::placeholder {
    color: var(--chatroom-input-placeholder-color);
}


/*--------------------------------------------------------------
# Team Status Filter
--------------------------------------------------------------*/

.team-status-filter {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    padding: 3px;

    border: var(--block-separator-line);
    border-radius: 8px;

    background: var(--chatroom-input-area-bg);
}

.team-filter-option {
    position: relative;

    margin: 0;

    cursor: pointer;
}

.team-filter-option input[type="radio"] {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.team-filter-option span {
    min-width: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 8px 14px;

    border-radius: 6px;

    color: #9aa8b8;

    font-size: .85em;
    font-weight: 500;

    white-space: nowrap;

    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.team-filter-option:hover span {
    background: rgba(255, 255, 255, .04);

    color: #d5dce5;
}

.team-filter-option
input[type="radio"]:checked + span {
    background: rgba(184, 158, 20, .14);

    color: var(--chatroom-input-btn-color);

    font-weight: 600;

    box-shadow:
        inset 0 0 0 1px
        rgba(184, 158, 20, .35);
}

.team-filter-option
input[type="radio"]:focus-visible + span {
    outline:
        2px solid
        var(--chatroom-input-btn-color);

    outline-offset: 2px;
}


/*--------------------------------------------------------------
# Team List
--------------------------------------------------------------*/

.team-list {
    width: 100%;

    border:
        1px solid
        rgba(255, 255, 255, .05);

    border-radius: 8px;

    overflow: hidden;

    background: rgba(20, 30, 40, .45);
}


/*--------------------------------------------------------------
# Team List Header
--------------------------------------------------------------*/

.team-list-header {
    display: grid;

    grid-template-columns:
        minmax(250px, 2fr)
        minmax(150px, 1fr)
        140px
        120px;

    align-items: center;

    min-height: 46px;

    padding: 0 20px;

    background: rgba(20, 30, 40, .8);

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);

    color: #9aa8b8;

    font-size: .85em;
    font-weight: 600;
}


/*--------------------------------------------------------------
# Team Row
--------------------------------------------------------------*/

.team-row {
    display: grid;

    grid-template-columns:
        minmax(250px, 2fr)
        minmax(150px, 1fr)
        140px
        120px;

    align-items: center;

    min-height: 64px;

    padding: 0 20px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .06);

    transition:
        background .3s ease,
        border-color .3s ease;
}

.team-row:last-child {
    border-bottom: none;
}

.team-row:hover {
    background: rgba(255, 255, 255, .035);
}


/*--------------------------------------------------------------
# Team Name
--------------------------------------------------------------*/

.team-name-cell {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #e0e6f0;

    font-weight: 600;
}

.team-name-cell i {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(184, 158, 20, .12);

    color: var(--chatroom-input-btn-color);

    font-size: .85em;
}

.team-name-cell span {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/*--------------------------------------------------------------
# Leader
--------------------------------------------------------------*/

.team-leader-cell {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #bdc3c7;

    font-size: .9em;
}

.team-leader-cell i {
    flex-shrink: 0;

    color: #8293a4;
}

.team-leader-cell span {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/*--------------------------------------------------------------
# Member Count
--------------------------------------------------------------*/

.team-members-cell {
    color: #cbd5e0;

    font-size: .9em;
    font-weight: 600;
}


/*--------------------------------------------------------------
# Team Action
--------------------------------------------------------------*/

.team-action-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}


/*--------------------------------------------------------------
# Join Button
--------------------------------------------------------------*/

.join-team-btn {
    min-width: 82px;

    padding: 7px 15px;

    border:
        1px solid
        rgba(184, 158, 20, .5);

    border-radius: 6px;

    background: transparent;

    color: var(--chatroom-input-btn-color);

    font-size: .85em;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.join-team-btn:hover {
    background: rgba(184, 158, 20, .1);

    border-color: rgba(184, 158, 20, .8);

    box-shadow:
        0 0 8px
        rgba(184, 158, 20, .2);
}

.join-team-btn.full,
.join-team-btn:disabled {
    border-color: rgba(255, 255, 255, .08);

    background: rgba(255, 255, 255, .02);

    color: #667482;

    cursor: not-allowed;

    box-shadow: none;
}


/*--------------------------------------------------------------
# Loading
--------------------------------------------------------------*/

.team-loading {
    width: 100%;

    box-sizing: border-box;

    padding: 45px 20px;

    text-align: center;

    color: #8293a4;

    font-size: .9em;
}

.team-loading i {
    margin-right: 8px;
}


/*--------------------------------------------------------------
# Empty
--------------------------------------------------------------*/

.team-empty {
    padding: 50px 20px;

    text-align: center;

    color: #8293a4;
}

.team-empty i {
    margin-bottom: 12px;

    font-size: 1.8em;
}

.team-empty p {
    margin: 0;
}


/*--------------------------------------------------------------
# Create Team Section
--------------------------------------------------------------*/

.create-team-section {
    width: 100%;

    box-sizing: border-box;

    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid
        rgba(255, 255, 255, .1);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;
}


/*--------------------------------------------------------------
# Create Team Button
--------------------------------------------------------------*/

.create-team-btn {
    min-width: 150px;

    padding: 9px 18px;

    border:
        1px solid
        rgba(184, 158, 20, .55);

    border-radius: 8px;

    background: transparent;

    color: var(--chatroom-input-btn-color);

    font-size: .9em;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.create-team-btn i {
    margin-right: 6px;
}

.create-team-btn:hover {
    background: rgba(184, 158, 20, .1);

    border-color: rgba(184, 158, 20, .8);

    box-shadow:
        0 0 10px
        rgba(184, 158, 20, .2);
}


/*--------------------------------------------------------------
# Create Team Form
--------------------------------------------------------------*/

.create-team-form-item {
    width: 100%;

    margin-top: 18px;
}

.create-team-form-item label {
    display: block;

    margin-bottom: 8px;

    color: #bdc3c7;

    font-size: .85em;
    font-weight: 600;
}

.create-team-form-item input {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 8px;

    outline: none;

    background: var(--chatroom-input-area-bg);

    color: var(--chatroom-input-text-color);

    font-size: .9em;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.create-team-form-item input:focus {
    border-color: rgba(184, 158, 20, .5);

    box-shadow:
        0 0 8px
        rgba(184, 158, 20, .15);
}


/*--------------------------------------------------------------
# Create Team Submit Button
--------------------------------------------------------------*/

.create-team-submit-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    padding: 10px 18px;

    border:
        1px solid
        rgba(184, 158, 20, .65);

    border-radius: 8px;

    background: rgba(184, 158, 20, .12);

    color: var(--chatroom-input-btn-color);

    font-size: .9em;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .15s ease;
}

.create-team-submit-btn:hover {
    background: rgba(184, 158, 20, .2);

    border-color: rgba(184, 158, 20, .9);

    box-shadow:
        0 0 10px
        rgba(184, 158, 20, .18);
}

.create-team-submit-btn:active {
    transform: translateY(1px);
}

.create-team-submit-btn:disabled {
    opacity: .45;

    cursor: not-allowed;

    box-shadow: none;
}


/*==============================================================
# Freestyle - Team View
==============================================================*/

.team-view-page {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    padding: 30px 45px;

    background: var(--chatroom-bg);

    color: #e0e6f0;

    overflow-y: auto;
}


/*--------------------------------------------------------------
# Team View Header
--------------------------------------------------------------*/

.team-view-header {
    margin-bottom: 30px;

    padding-bottom: 22px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}

.team-view-title {
    display: flex;
    align-items: center;

    gap: 14px;
}

.team-view-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(184, 158, 20, .12);

    color: var(--chatroom-input-btn-color);

    font-size: 1.05em;
}

.team-view-label {
    display: block;

    margin-bottom: 4px;

    color: #8293a4;

    font-size: .78em;
}

.team-view-title h1 {
    margin: 0;

    color: #e0e6f0;

    font-size: 1.5em;
    font-weight: 600;
}


/*--------------------------------------------------------------
# Team View Section
--------------------------------------------------------------*/

.team-view-section {
    margin-top: 25px;
}

.team-view-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.team-view-section-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: #9aa8b8;

    font-size: .85em;
    font-weight: 600;
}

.team-view-section-title i {
    color: var(--chatroom-input-btn-color);
}

.team-view-section-header
.team-view-section-title {
    margin-bottom: 0;
}


/*--------------------------------------------------------------
# Member Count
--------------------------------------------------------------*/

.team-member-count {
    min-width: 28px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 0 8px;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    border-radius: 12px;

    background: rgba(255, 255, 255, .03);

    color: #9aa8b8;

    font-size: .75em;
    font-weight: 600;
}


/*--------------------------------------------------------------
# Team Member List
--------------------------------------------------------------*/

.team-member-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


/*--------------------------------------------------------------
# Team Member Card
--------------------------------------------------------------*/

.team-member-card {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    box-sizing: border-box;

    padding: 13px 16px;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    border-radius: 8px;

    background: rgba(20, 30, 40, .45);

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.team-member-card:hover {
    background: rgba(255, 255, 255, .035);

    border-color: rgba(255, 255, 255, .09);
}

.team-member-main {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}


/*--------------------------------------------------------------
# Member Avatar
--------------------------------------------------------------*/

.team-member-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 50%;

    background: rgba(255, 255, 255, .06);

    color: #d8dee8;

    font-size: .85em;
    font-weight: 600;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}


/*--------------------------------------------------------------
# Member Info
--------------------------------------------------------------*/

.team-member-info {
    min-width: 0;
}

.team-member-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;
}

.team-member-name {
    overflow: hidden;

    color: #e0e6f0;

    font-size: .9em;
    font-weight: 600;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.team-member-role {
    margin-top: 3px;

    color: #8293a4;

    font-size: .75em;
}


/*--------------------------------------------------------------
# Member Tag
--------------------------------------------------------------*/

.team-member-tag {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 3px 8px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 999px;

    background: rgba(255, 255, 255, .04);

    color: #9aa8b8;

    font-size: .7em;
    font-weight: 600;

    white-space: nowrap;
}


/*--------------------------------------------------------------
# Leader
#
# Leader 不修改整張 Card。
# 只有 Leader Tag 顯示特殊樣式。
--------------------------------------------------------------*/

.team-member-card.is-leader {
    border-color: rgba(255, 255, 255, .06);

    background: rgba(20, 30, 40, .45);

    box-shadow: none;
}

.team-member-card.is-leader:hover {
    border-color: rgba(255, 255, 255, .09);

    background: rgba(255, 255, 255, .035);
}

.team-member-card.is-leader
.team-member-avatar {
    border-color: transparent;

    background: rgba(255, 255, 255, .06);

    color: #d8dee8;
}


/*--------------------------------------------------------------
# Leader Tag
--------------------------------------------------------------*/

.team-member-tag.leader-tag {
    border-color: rgba(184, 158, 20, .35);
    background: rgba(184, 158, 20, .10);

    color: var(--chatroom-input-btn-color);
}

.team-member-tag.leader-tag i {
    color: var(--chatroom-input-btn-color);
}


/*--------------------------------------------------------------
# Current User / Self
#
# 只有自己會使用金色外框與背景。
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Self
--------------------------------------------------------------*/

.team-member-card.is-self {
    border-color: rgba(212, 175, 55, .85);

    background: rgba(212, 175, 55, .055);

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, .08),
        0 4px 18px rgba(212, 175, 55, .08);
}

.team-member-card.is-self:hover {
    border-color: rgba(212, 175, 55, 1);

    background: rgba(212, 175, 55, .08);
}

.team-member-card.is-self
.team-member-avatar {
    border: 1px solid rgba(212, 175, 55, .35);

    background: rgba(212, 175, 55, .14);

    color: #e4c45b;
}

.team-member-card.is-self
.team-member-name {
    color: #f0d778;
}


/*--------------------------------------------------------------
# Self Tag
--------------------------------------------------------------*/

.team-member-tag.self-tag {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 3px 8px;

    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 999px;

    background: rgba(212, 175, 55, .14);

    color: #e4c45b;

    font-size: .7em;
    font-weight: 600;

    white-space: nowrap;
}

.team-member-tag.self-tag i {
    color: #e4c45b;

    font-size: .85em;
}


/*--------------------------------------------------------------
# Leader + Self
#
# 自己剛好是 Leader 時：
# Card 仍然按照 Self 金色處理。
--------------------------------------------------------------*/

.team-member-card.is-leader.is-self {
    border-color: rgba(212, 175, 55, .90);

    background: rgba(212, 175, 55, .055);

    box-shadow:
        0 0 0 1px
        rgba(212, 175, 55, .08),
        0 4px 18px
        rgba(212, 175, 55, .08);
}

.team-member-card.is-leader.is-self:hover {
    border-color: rgba(212, 175, 55, 1);

    background: rgba(212, 175, 55, .08);
}

.team-member-card.is-leader.is-self
.team-member-avatar {
    border-color: rgba(212, 175, 55, .40);

    background: rgba(212, 175, 55, .14);

    color: #e4c45b;
}


/*--------------------------------------------------------------
# Kick Member Button
--------------------------------------------------------------*/

.team-kick-btn {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-width: 80px;

    padding: 7px 12px;

    border:
        1px solid
        rgba(220, 80, 80, .35);

    border-radius: 6px;

    background: transparent;

    color: #d96a6a;

    font-size: .78em;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.team-kick-btn:hover {
    background: rgba(220, 80, 80, .08);

    border-color: rgba(220, 80, 80, .65);

    box-shadow:
        0 0 8px
        rgba(220, 80, 80, .1);
}

.team-kick-btn:disabled {
    opacity: .5;

    cursor: not-allowed;

    box-shadow: none;
}


/*--------------------------------------------------------------
# No Other Members
--------------------------------------------------------------*/

.team-member-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 35px 20px;

    border:
        1px dashed
        rgba(255, 255, 255, .08);

    border-radius: 8px;

    color: #8293a4;

    font-size: .85em;
}

.team-member-empty i {
    color: #667482;
}


/*--------------------------------------------------------------
# Team View Actions
--------------------------------------------------------------*/

.team-view-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 24px;
}


/*--------------------------------------------------------------
# Leave Team Button
--------------------------------------------------------------*/

.leave-team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 9px 16px;

    border:
        1px solid
        rgba(220, 80, 80, .35);

    border-radius: 8px;

    background: rgba(220, 80, 80, .06);

    color: #d96b6b;

    font-size: .85em;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .15s ease;
}

.leave-team-btn:hover {
    background: rgba(220, 80, 80, .12);

    border-color: rgba(220, 80, 80, .55);

    color: #ef8a8a;
}

.leave-team-btn:active {
    transform: scale(.98);
}

.leave-team-btn:disabled {
    opacity: .5;

    cursor: not-allowed;

    pointer-events: none;
}

.leave-team-btn i {
    font-size: .9em;
}

/* ============================================================
   Freestyle Grouping Button
============================================================ */
.lock-full-freestyle-action {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.enter-freestyle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    padding: 10px 22px;
    border: 1px solid rgba(184, 158, 20, .55);
    border-radius: 8px;
    background: transparent;
    color: var(--chatroom-input-btn-color);
    font-size: .9em;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.enter-freestyle-btn i {
    font-size: 1em;
}

.enter-freestyle-btn:hover:not(:disabled) {
    background: rgba(184, 158, 20, .1);
    border-color: rgba(184, 158, 20, .8);
    box-shadow: 0 0 10px rgba(184, 158, 20, .2);
}

.enter-freestyle-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.enter-freestyle-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.enter-freestyle-btn[hidden] {
    display: none !important;
}
/* ============================================================
   Dark Mode
============================================================ */

[data-theme="dark"] .enter-freestyle-btn {
    background: #547fc4;
}

[data-theme="dark"] .enter-freestyle-btn:hover:not(:disabled) {
    background: #6b94d6;
}



/*==============================================================
# Responsive
==============================================================*/

@media (max-width: 900px) {

    .team-join-page {
        padding: 75px 25px 25px;
    }

    .team-view-page {
        padding: 25px;
    }

    .freestyle-navigation {
        top: 20px;
        right: 25px;
    }


    /* Search / Filter */

    .team-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .team-status-filter {
        width: 100%;

        box-sizing: border-box;
    }

    .team-filter-option {
        flex: 1;
    }

    .team-filter-option span {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;
    }


    /* Team List */

    .team-list {
        overflow-x: auto;
    }

    .team-list-header,
    .team-row {
        min-width: 700px;
    }


    /* Create Team */

    .create-team-section {
        flex-direction: column;
        align-items: stretch;
    }

    .create-team-btn {
        width: 100%;
    }


    /* Team View */

    .team-member-card {
        gap: 10px;
    }

    .team-kick-btn {
        min-width: 38px;

        width: 38px;
        height: 38px;

        padding: 0;
    }

    .team-kick-btn span {
        display: none;
    }

}


@media (max-width: 600px) {

    .team-join-page {
        padding: 70px 15px 20px;
    }

    .team-view-page {
        padding: 20px 15px;
    }

    .freestyle-navigation {
        top: 15px;
        right: 15px;
    }

    .back-to-survey-btn {
        padding: 8px 12px;
        font-size: .8em;
    }


    /* Filter */

    .team-filter-option span {
        padding: 8px 7px;

        font-size: .8em;
    }


    /* Team View Header */

    .team-view-icon {
        width: 40px;
        height: 40px;
    }

    .team-view-title h1 {
        font-size: 1.25em;
    }


    /* Member */

    .team-member-card {
        padding: 11px 12px;
    }

    .team-member-avatar {
        width: 34px;
        height: 34px;
    }

    .team-member-name-row {
        gap: 5px;
    }

    .team-member-tag {
        padding: 2px 6px;

        font-size: .66em;
    }


    /* Team Actions */

    .team-view-actions {
        margin-top: 20px;
    }

    .leave-team-btn {
        width: 100%;
    }

    .enter-freestyle-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

}