/*
|--------------------------------------------------------------------------
| Herzschild Talk Version5.0 Build3
| core.css
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Reset
========================================================================== */

#herzschild-talk-app,
#herzschild-talk-app *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

#herzschild-talk-app{

    display:flex;

    flex-direction:column;

    width:100%;
    max-width:420px;
    height:min(860px,calc(100dvh - 40px));
    min-height:600px;

    margin:20px auto;

    position:relative;

    overflow:hidden;

    background:#ffffff;

    border:1px solid #dddddd;

    border-radius:16px;

    font-family:
        "Hiragino Sans",
        "Yu Gothic",
        sans-serif;

    color:#333333;

}

/* ==========================================================================
   Utility
========================================================================== */

#herzschild-talk-app img{

    display:block;

    max-width:100%;

    height:auto;

}

#herzschild-talk-app button{

    border:none;

    background:none;

    cursor:pointer;

    font:inherit;

}

#herzschild-talk-app a{

    color:inherit;

    text-decoration:none;

}

#herzschild-talk-app ul{

    list-style:none;

}

/* ==========================================================================
   Header
========================================================================== */

.ht-header{

    flex:0 0 auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:12px 16px;

    background:#06C755;

    color:#ffffff;

}

.ht-header-left{

    display:flex;

    align-items:center;

    gap:12px;

    min-width:0;

}

.ht-header-icon{

    width:48px;

    height:48px;

    overflow:hidden;

    border-radius:50%;

    background:#e5e5e5;

    flex-shrink:0;

}

.ht-header-icon img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.ht-header-icon-empty{

    width:100%;

    height:100%;

    background:#d5d5d5;

}

.ht-header-title{

    display:flex;

    flex-direction:column;

    min-width:0;

}

.ht-name{

    font-size:18px;

    font-weight:700;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.ht-status{

    margin-top:2px;

    font-size:12px;

    opacity:.85;

}

.ht-header-right{

    display:flex;

    align-items:center;

}

.ht-header-menu{

    display:flex;

    align-items:center;

    justify-content:center;

    width:42px;

    height:42px;

    border-radius:8px;

    color:#ffffff;

    font-size:22px;

    transition:.2s;

}

.ht-header-menu:hover{

    background:rgba(255,255,255,.15);

}

/* ==========================================================================
   Loading
========================================================================== */

.ht-loading{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,.96);

    z-index:9999;

}

.ht-loading-container{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:18px;

}

.ht-loading-spinner{

    width:46px;

    height:46px;

    border:4px solid #dddddd;

    border-top-color:#06C755;

    border-radius:50%;

    animation:ht-loading-spin .8s linear infinite;

}

.ht-loading-text{

    font-size:15px;

    font-weight:600;

    color:#555555;

}

@keyframes ht-loading-spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================================================
   Layout
========================================================================== */

.ht-layout{

    display:flex;

    flex-direction:column;

    flex:1 1 auto;
    min-height:0;
    height:auto;

    background:transparent;

}

.ht-main{

    position:relative;

    flex:1;
    min-height:0;

    overflow:hidden;

}

.ht-view{

    display:none;

    width:100%;

    height:100%;

    overflow:hidden;

    background:#f5f5f5;

}

.ht-view.is-active{

    display:flex;

    flex-direction:column;

}
