html,body,#root{min-height:100%;margin:0}
body{background:#f5f5f5;color:#262626;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"PingFang SC",sans-serif}
.app-shell{min-height:100vh}
.sidebar{border-right:1px solid #f0f0f0;box-shadow:1px 0 3px rgba(0,0,0,.03);position:sticky!important;top:0;height:100vh;z-index:30}
.logo{height:64px;padding:0 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #f0f0f0}
.logo-mark{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;background:#1677ff;color:#fff;font-weight:800}
.brand{font-size:15px;font-weight:700;line-height:18px}
.brand-sub{color:#8c8c8c;font-size:11px}
.topbar{height:56px!important;line-height:56px!important;padding:0 24px!important;border-bottom:1px solid #f0f0f0;background:#fff!important;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}
.topbar-title{font-size:14px;font-weight:600}
.content{min-width:0}
.page{max-width:1480px;margin:auto;padding:16px 24px 40px}
.summary-card .ant-card-body{padding:12px 16px}
.summary-card .ant-statistic-title{font-size:12px}
.summary-card .ant-statistic-content{font-size:22px}
.table-card{overflow:hidden}
.table-card .ant-card-body{padding:0}
.table-card .ant-table-thead>tr>th:first-child,.table-card .ant-table-tbody>tr>td:first-child{padding-left:24px}
.server-name{font-weight:650}
.server-run-status{display:inline-flex;align-items:flex-start;flex-direction:column;gap:3px;white-space:nowrap}
.server-run-status .server-run-status-tag{margin:0;font-weight:650;padding:1px 8px}
.server-run-status .secondary{font-size:11px}
.secondary{color:#8c8c8c;font-size:12px}
.contact-watermark-preview{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px;margin:8px 0 16px;background:#e8e8e8;border-radius:8px;max-height:280px;overflow:auto}
.contact-watermark-badge{display:inline-block;flex:none;max-width:100%;box-sizing:border-box;border:1px solid #c5c5c5;border-radius:10px;background:#fff;color:#585858;padding:3px 10px;font:800 26px/1.2 Arial,sans-serif;box-shadow:1px 2px 3px #0003;overflow-wrap:anywhere}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.clickable-row{cursor:pointer}
.clickable-row:hover td{background:#f0f7ff!important}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.page-title{margin:0;font-size:21px;color:#262626}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f5f5f5}
.login-card{width:min(380px,100%);box-shadow:0 8px 28px rgba(0,0,0,.08)}
.login-card .ant-card-body{padding:28px}
.detail-actions{margin-top:14px}
.douyin-preview{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:14px;border:1px solid #e5e7eb;border-radius:6px;background:#fafafa}
.douyin-preview-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.platform-link{max-width:170px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ant-descriptions-item-content{overflow-wrap:anywhere}
.status-error{margin:12px 0}
.dense-form .ant-form-item{margin-bottom:12px}
.douyin-groups-page{box-sizing:border-box;display:flex;height:calc(100vh - 56px);max-width:none;overflow:hidden;flex-direction:column;padding-left:12px;padding-right:12px}
.douyin-groups-page .page-head{flex:none}
.douyin-group-workspace{display:grid;min-height:0;flex:1;grid-template-columns:280px minmax(0,1fr);gap:12px;align-items:stretch;overflow:hidden}
.douyin-group-sidebar{display:flex;height:100%;min-height:0;overflow:hidden;flex-direction:column}
.douyin-group-sidebar .ant-card-head{flex:none}
.douyin-group-sidebar .ant-card-body{display:flex;min-height:0;flex:1;flex-direction:column;padding:0;overflow:hidden}
.resource-list-tools{flex:none;padding:10px;border-bottom:1px solid #f0f0f0}
.resource-list-tools>.ant-select{width:100%}
.douyin-group-nav{display:flex;min-height:0;flex:1;flex-direction:column;padding:6px;overflow-y:auto;overscroll-behavior:contain}
.resource-team-group{display:flex;flex:none;min-width:0;flex-direction:column}
.douyin-group-nav-item{display:block;padding:10px 11px;border-radius:6px;color:#262626;transition:background .15s,color .15s}
.douyin-group-nav-item:hover{background:#f5f5f5;color:#1677ff}
.douyin-group-nav-item.active{background:#e6f4ff;color:#0958d9}
.douyin-group-list-item{display:flex;align-items:center;padding:0}
.douyin-group-nav-link{flex:1;min-width:0;padding:10px 11px;color:inherit}
.douyin-group-list-item>.ant-btn{flex:none;margin-right:6px}
.douyin-group-nav-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:650}
.douyin-group-nav-title>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.douyin-group-nav-title .ant-tag{margin:0;flex:none}
.douyin-group-nav-meta{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:5px;color:#8c8c8c;font-size:11px}
.douyin-group-empty{padding:32px 12px;text-align:center;color:#8c8c8c}
.douyin-group-detail{min-width:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
.douyin-group-detail>.ant-card-body{padding:14px}
.douyin-group-room-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 9px}
.douyin-group-placeholder>.ant-card-body{min-height:320px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#8c8c8c}
.douyin-group-placeholder .anticon{font-size:32px;color:#bfbfbf}
.account-detail-stack{display:flex;min-width:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;flex-direction:column;gap:12px}
.account-secret-field{margin-top:12px}
.servers-page{box-sizing:border-box;display:flex;height:calc(100vh - 56px);max-width:none;overflow:hidden;flex-direction:column;padding:12px}
.servers-page>.page-head{flex:none;margin-bottom:8px}
.servers-page>.ant-alert{flex:none;margin-bottom:8px}
.server-overview{display:flex;flex:none;flex-wrap:wrap;gap:6px 22px;margin-bottom:12px;color:#8c8c8c;font-size:12px}
.server-overview strong{margin-left:7px;color:#262626;font-size:15px}
.server-workspace{display:grid;min-height:0;flex:1;grid-template-columns:300px minmax(0,1fr);gap:12px;overflow:hidden}
.server-list-card{display:flex;min-height:0;height:100%;overflow:hidden;flex-direction:column}
.server-list-card>.ant-card-head{flex:none}
.server-list-card>.ant-card-body{display:flex;min-height:0;flex:1;flex-direction:column;padding:0;overflow:hidden}
.server-list-tools{display:flex;flex:none;flex-direction:column;gap:8px;padding:10px;border-bottom:1px solid #f0f0f0}
.server-list-tools>.ant-select{width:100%}
.server-list-filters{display:flex;gap:6px}
.server-list-filters>.ant-select{flex:1;min-width:0}
.server-nav{display:flex;min-height:0;flex:1;flex-direction:column;gap:4px;overflow-y:auto;overscroll-behavior:contain;padding:6px}
.server-team-group{display:flex;flex:none;min-width:0;flex-direction:column;gap:4px}
.server-team-heading{position:sticky;top:-6px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:6px 10px;border-radius:4px;background:#fafafa;color:#595959;font-size:12px;font-weight:600;line-height:20px}
.server-team-heading>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.server-team-heading>span:last-child{flex:none;color:#8c8c8c;font-size:11px;font-variant-numeric:tabular-nums}
.server-nav-item{display:block;flex:none;padding:10px;border-radius:6px;color:#262626;transition:background .15s}
.server-nav-item:hover{background:#f5f5f5;color:#262626}
.server-nav-item.active{background:#e6f4ff;color:#0958d9}
.server-nav-item:focus-visible{outline:2px solid #1677ff;outline-offset:-2px}
.server-nav-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:650}
.server-nav-title>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.server-nav-title>.server-run-status{flex:none}
.server-nav-address,.server-nav-bindings{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;color:#8c8c8c;font-size:11px}
.server-nav-bindings{color:#595959}
.server-nav-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin-top:7px;color:#8c8c8c;font-size:11px}
.server-nav-meta .ant-tag{margin:0;padding:0 4px;font-size:10px;line-height:17px}
.server-detail-pane{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.server-detail-panel{min-width:0;padding:0 2px 2px}
.server-detail-head{flex-wrap:wrap;align-items:flex-start;margin-bottom:10px}
.server-detail-head .page-title{font-size:18px;overflow-wrap:anywhere}
.server-detail-head>.ant-space{margin-left:auto}
.server-detail-panel .ant-descriptions-item-label{white-space:nowrap}
.server-detail-panel .ant-card-body{min-width:0}
@media(max-width:991px){.topbar{padding:0 14px!important}.page{padding:12px}}
@media(max-width:900px){.douyin-group-workspace{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:1100px){.server-workspace{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:720px){.topbar-title{display:none}.page-head{align-items:flex-start}.ant-table{font-size:12px}}
@media(max-width:680px){.douyin-groups-page{display:block;height:auto;overflow:visible;padding-left:8px;padding-right:8px}.douyin-group-workspace{overflow:visible;grid-template-columns:1fr}.douyin-group-sidebar{height:auto;max-height:none}.douyin-group-sidebar .ant-card-body{max-height:230px}.douyin-group-detail,.account-detail-stack{max-height:none;overflow:visible}}
@media(max-width:680px){.servers-page{height:auto;min-height:calc(100vh - 56px);overflow:visible;padding:8px}.server-workspace{grid-template-columns:1fr;overflow:visible}.server-list-card{height:320px}.server-detail-pane{overflow:visible}.server-detail-head>.ant-space{margin-left:0}.server-overview{gap:5px 14px}}
