*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Microsoft YaHei",sans-serif;
}

body{
    background:#f4f6f9;
}

.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:200px;
    background:#2f323a;
    color:#e6e6e6;
    display:flex;
    flex-direction:column;
    overflow: hidden;
    flex-shrink: 0;
    /* 2f323a */
}

.logo{
    height:43px;
    display:flex;
    align-items:center;
    justify-content:center;

    color: #91939b;
    font-weight: 800;
    font-size:16px;
    background:#292a36;
    border-bottom:0px solid #3c3f48;
}

.menu{
    list-style:none;
    padding-top:6px;
}

.menu li{
    color: #91939b;
    font-weight: 800;
    padding:3px 8px;
}

.menu-item{
    width: 100%;
    display: block;
    text-align: left;
    font-weight: 800;
    padding:8px 12px 9px 16px;
    font-size:12px;
    border-radius:6px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor:pointer;
    transition:0.2s;
}

.menu-section{

    font-size:11px;
    color:#9aa0a6;
    letter-spacing:0.5px;
    padding:18px 18px 6px 18px;
    padding-right: 20px;
    margin-top:6px;

}

.menu-item:hover{
    background:#222429;
}

.menu-item.active{
    background:#222429;
    color:white;
}

.main{
    flex:1;
    min-width: 0;
    display:flex;
    flex-direction:column;
}

.topbar{
    min-height:42px;
    background:#393c44;

    color:white;

    display:flex;
    align-items:center;

    font-size:12px;

}

.topbar-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.page-title{
    font-size:14px;
    font-weight:500;
    color:#e8e8e8;
}

.topbar{
    box-shadow:0 1px 3px rgba(0,0,0,0.08);
}

.user-info{
    font-size:13px;
    color:#d0d0d0;
}

.content{
    flex:1;
    padding:30px 0;
    background:#262930;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 clamp(16px, 6vw, 120px);
    flex: 1;
    overflow-y: auto;
}

.content .container::-webkit-scrollbar {
    width: 6px;
}

.content .container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.content .container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.content .container::-webkit-scrollbar-track {
    background: transparent;
}

.user-menu{
    position:relative;
}

.user-button{
    width: auto;
    padding:6px 10px;
    border-radius:6px;
    font-size:13px;
    cursor:pointer;
    transition:0.2s;
    display:inline-block;
    border: 0;
    background: transparent;
    color: white;
}

.user-button:hover{
    background:#4a4f5a;
}

.dropdown{
    position:absolute;
    top:35px;
    right:0;
    background:rgb(65, 49, 49);
    color: #c7c8c9;
    border-radius:8px;
    padding:6px;
    display:none;
    min-width:100%;
    box-shadow:0 6px 16px rgba(0,0,0,0.15);
    font-weight: 800;
    z-index: 999;
}

.dropdown-item{
    width: 100%;
    padding:8px 12px;
    font-size:13px;
    border-radius:6px;
    cursor:pointer;
    transition:0.15s;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    white-space: nowrap;
}

.dropdown-item:hover{
    background:#3f3f46;
}

.card{
    background:#3a3e47;
    border-radius:8px;
    padding:20px;
    color:#e6e6e6;
}

.modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.65);

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-content {
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 25px;
    border-radius: 14px;

    background: #1e1e1e;
    color: white;

    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

h2 {
    margin-bottom: 18px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;

    border: none;
    border-radius: 6px;

    background: #2c2c2c;
    color: white;
}

input:focus {
    outline: none;
    background: #3a3a3a;
}

button {
    width: 100%;
    padding: 10px;

    border: none;
    border-radius: 6px;

    background: #38404b;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #373b49;
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-item:focus-visible,
.user-button:focus-visible,
.dropdown-item:focus-visible,
.link-button:focus-visible {
    outline: 2px solid #6cb6ff;
    outline-offset: 2px;
}

.links {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.link-button {
    width: auto;
    padding: 0;
    background: transparent;
    color: #4da3ff;
    border: 0;
    font: inherit;
}

.link-button:hover {
    background: transparent;
    text-decoration: underline;
}

.status {
    margin-top: 10px;
    font-size: 13px;
    color: #ccc;
}

.hidden {
    display: none;
}

.code-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.code-row input {
    flex: 1;
    margin-bottom: 0;
}

.code-row button {
    width: 90px;
    background: #2196F3;
}

.code-row button:disabled {
    background: #555;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.empty-state {
    color: #b9bbc2;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}

.close {
    width: auto;
    float: right;
    padding: 2px 8px;
    background: transparent;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 760px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        padding: 16px 0;
    }

    .container {
        padding: 0 16px;
    }
}
